This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1,641 @@
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Transact;
(function (Transact) {
let Managers;
(function (Managers) {
let Subscriptions;
(function (Subscriptions) {
class SubscriptionManager extends Unibase.Platform.Core.BaseManager {
WithoutPurchaseAddonsItems(organizationid, itemid, tenureid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/withoutpurchaseaddonitem/organizationid/' + organizationid + '/itemid/' + itemid + '/tenureid/' + tenureid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getAddonsItems(itemid, tenureid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getaddonsitemsdata/itemid/' + itemid + '/tenureid/' + tenureid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOfferItems(itemid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getofferitems/itemid/' + itemid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getPlanItem(token, mail) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getplanitemslist/token/' + token + '/mail/' + mail;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
createCustomer(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/integrations/subscription/createcustomer';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
createInvoice(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/invoice/createinvoicefromorder';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
createGateWayOrder(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/integrations/paymentgateway/createorder';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSuperAdmin() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/getadminforsubscription';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getCustomerDetails(orgId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/getorganization/organizationid/' + orgId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getUserbyPhoneorMail(phonenumber, emailaddress) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'account/getuserbyphoneormail/' + phonenumber + '/' + emailaddress;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
createNewTenant(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'account/registertenant';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
savePaymentbyInvoiceData(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/payments/savepaymentbyinvoicedata';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getLoBbyItem(ItemId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getlobbyitem/itemid/' + ItemId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
SaveSubcribedAddons(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubcribedaddonsdata/List';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveSubscriptionOrderData(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubscripuionorderdata';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveSubscriptionPaymentData(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubscriptionpaymentdata';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubscriptionPaymentData(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscripuionpaymentdata/orderid/' + OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetSubscripuionPaymentInfo(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscripuionpaymentinfo/orderid/' + OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubscribedPlanItemId(OrganizationId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscripuionorderdata/organizationid/' + OrganizationId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubscriptionOrderData(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscripuionorderdata/orderid/' + OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getPaymentDetailsbyOrderId(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/integrations/paymentgateway/getpaymentdetails/orderid/'
+ OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubscriptionOrderItems(BizOrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/orders/getorderitems/orderid/'
+ BizOrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
sendRegistrationMail(emailaddress, ismail) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/sendemailtoregisteruser/toemail/' + emailaddress + '/ismail/' + ismail;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
VerifyOtp(otpid, UserOtp) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/validateotpuser/otpid/' + otpid + '/userotp/' + UserOtp;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getItemsList(SubscriptionItemType) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getplanitemsdata/subscriptionitemtype/'
+ SubscriptionItemType;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetPlanInfo(planId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getplanitemsbyid/itemid/'
+ planId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveCartItems(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savecartitemsdatadata/List';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getItemsbyMail(mail) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getitemsbymail/mail/' + mail;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getItem(ItemId, tenureid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getplanitemdata/itemid/'
+ ItemId + '/tenureid/' + tenureid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getbomitems(ItemId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getbomitemsinfo/parentitemid/'
+ ItemId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTenures(ItemId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettenuresbyitemid/itemid/'
+ ItemId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTenurePrice(ItemId, tenureid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettenurefromitemidtenureid/itemid/'
+ ItemId + '/tenure/' + tenureid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getGeneratedPassWord() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getgeneratedpassword/np';
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getInvoiceDetails(invoiceid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/invoices/getinvoice/invoiceid/' + invoiceid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
updateInvoiceStage(versionguid, orderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/updateinvoicestage/versionguid/' + versionguid + '/orderid/' + orderId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
updateOrdersStage(orderId, OrderStatusId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/updateorderstage/orderid/' + orderId + '/orderstatusid/' + OrderStatusId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
sendEmailandPasswordtoRegisteruser(emailaddress, password) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/sendemailandpasswordtoregisteruser/toemail/' + emailaddress + '/password/' + password;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
gettenure(organizationid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettenuredata/organizationid/' + organizationid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
paymentOrderItem(organizationid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/paymentorderitemdata/organizationid/' + organizationid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
updateAppsStatusInChildTenant(organizationid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/updateappsstatusinchildtenant/organizationid/' + organizationid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
updateSubcribedUser(organizationid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubscribeduser/organizationid/' + organizationid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOrgnaizationInfo(OrgName) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getorganizationinfo/orgname/' + OrgName;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOrgnaizationIdByName(OrgName) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getorganizationidbyname/orgnizationname/' + OrgName;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
UpdatePaymentDeatils(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/updatepaymentdeatils';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
UpdatedPaymentStage(InvoiceId, PaymentStatus) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/updatepaymentstage/invoiceid/' + InvoiceId + '/paymentstatus/' + PaymentStatus;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubcribtionssettingInfo(SettingType) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscribtionsettingsinfo/settingtype/' + SettingType;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTryUserInfo(leadId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettryuserinfo/leadid/' + leadId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getUserInfoByContactNo(ContactNumber) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscribtionuserinfobycontactno/contactnumber/' + ContactNumber;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result)
response.result = JSON.parse(response.result);
return response;
});
});
}
getContactnumuberdetails(phonenumner) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getcontactnumberbynumber/' + phonenumner;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
SaveSubscriptionsUserInfo(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubcriptionuserinfo';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
SubcriptionsBackgroundProcess(orderid, subscriptionEndDate, Loginurl) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/subcriptionsbackgroundprocessallapi/orderid/' + orderid + '/duedate/' + subscriptionEndDate + '/loginurl/' + Loginurl;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
SaveSucriptionPayementDetails(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/savesubscriptionPaymentgetwaydeatils';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetSubscripuionUserPlanInfoByOrderId(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscribtionuserplaninfobyorderid/orderid/' + OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetUserInfoByOrderId(OrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getuserinfobyorderid/orderid/' + OrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getCityName() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/cities/crm/cityautocomplete';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getTenureList(itemid, tenure) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettenurelist/itemid/' + itemid + '/tenure/' + tenure;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTenurePeriodAndPrice(itemid, tenure, tenureperiod) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/gettenureperiodandprice/itemid/' + itemid + '/tenure/' + tenure + '/tenureperiod/' + tenureperiod;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
SubscriptionsRepay(orderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/subscribeuserrepayementprocess/orderid/' + orderid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getSubscripuionOrderByBizorderId(BizOrderId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/getsubscripuionorderbybizorderid/bizorderid/' + BizOrderId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
SubscriptionsUserValidationInfo(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/transact/subscriptions/validationuserinfo';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new SubscriptionManager();
return this._instance;
}
}
Subscriptions.SubscriptionManager = SubscriptionManager;
})(Subscriptions = Managers.Subscriptions || (Managers.Subscriptions = {}));
})(Managers = Transact.Managers || (Transact.Managers = {}));
})(Transact = Apps.Transact || (Apps.Transact = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long