Iniit
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
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) {
|
||||
class RuleManager extends Unibase.Platform.Core.BaseManager {
|
||||
savecontactdefault(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/saveorderapprovalruledefaultcontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getRuleTags(IncludedTags, ExcludedTags, TagLobs) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/forms/getincludedandexcludedtags/includedtags/' + IncludedTags + '/excludedtags/' + ExcludedTags + '/taggroupids/' + TagLobs + '';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savecontactdefaultPaymentTerm(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/savepaymenttermruledefaultcontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savecontactdetails(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/savecreditimitruledefaultcontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateCreditLimitRuleContact(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/updatecreditlimitrulecontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdatePriceCodeRuleContact(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/updatepricecoderulecontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdatePaymentTermRuleContact(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/updatepaymenttermrulecontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateOrderApprovalRuleContact(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/updateorderapprovalrulecontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savecontactdefaultPriceCode(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/savepricecoderuledefaultcontact';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateRuleTags(IncludedTags, ExcludedTags, TagLobIds, PKId, InstalledAppId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/rules/updateruletagsdetailsbytags/includedtags/' + IncludedTags + '/excludedtags/' + ExcludedTags + '/lobids/' + TagLobIds + '/pkid/' + PKId + '/installedappid/' + InstalledAppId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshcreditlimitrules(versionguid, rulename, pkid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/configureruleactionprovider/versionguid/' + versionguid + '/rulename/' + rulename + '/pkid/' + pkid + '/lobid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
debugger;
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPriceCodeRule(PriceCodeRuleId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/refreshpricecoderule/pricecoderuleid/' + PriceCodeRuleId;
|
||||
return yield this.dataHelper().postAsync(url, PriceCodeRuleId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshCreditRule(ruleid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/refreshcreditlimitrule/ruleid/' + ruleid;
|
||||
return yield this.dataHelper().postAsync(url, ruleid).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPaymentTermRule(PaymentTermRuleId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/refreshpaymenttermrule/paymenttermruleid/' + PaymentTermRuleId;
|
||||
return yield this.dataHelper().postAsync(url, PaymentTermRuleId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshOrderApprovalRule(OrderApprovalRuleId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/refreshorderapprovalrule/orderapprovalruleid/' + OrderApprovalRuleId;
|
||||
return yield this.dataHelper().postAsync(url, OrderApprovalRuleId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshSkuRecommendation(SkuRecommendationId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/refreshskurecommendation/skurecommendationid/' + SkuRecommendationId;
|
||||
return yield this.dataHelper().postAsync(url, SkuRecommendationId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new RuleManager();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Managers.RuleManager = RuleManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"rulemanager.js","sourceRoot":"","sources":["rulemanager.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAU,OAAO,CAqGhB;AArGD,WAAU,OAAO;IACb,IAAiB,IAAI,CAmGpB;IAnGD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAiGxB;QAjGD,WAAiB,QAAQ;YACrB,I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,UAAU,QAAQ;gCACzE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;yBACrC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBA7FY,oBAAW,cA6FvB,CAAA;YACL,CAAC,EA/FgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA+FxB;QACL,CAAC,EAjGgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAiGxB;IACL,CAAC,EAnGgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAmGpB;AACL,CAAC,EArGS,OAAO,KAAP,OAAO,QAqGhB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{savecontactdefault(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/saveorderapprovalruledefaultcontact",n).then(function(n){return n})})}getRuleTags(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/unibase/platform/forms/getincludedandexcludedtags/includedtags/"+n+"/excludedtags/"+t+"/taggroupids/"+i+"";return yield this.dataHelper().getAsync(r).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}savecontactdefaultPaymentTerm(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/savepaymenttermruledefaultcontact",n).then(function(n){return n})})}savecontactdetails(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/savecreditimitruledefaultcontact",n).then(function(n){return n})})}UpdateCreditLimitRuleContact(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/updatecreditlimitrulecontact",n).then(function(n){return n})})}UpdatePriceCodeRuleContact(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/updatepricecoderulecontact",n).then(function(n){return n})})}UpdatePaymentTermRuleContact(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/updatepaymenttermrulecontact",n).then(function(n){return n})})}UpdateOrderApprovalRuleContact(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/updateorderapprovalrulecontact",n).then(function(n){return n})})}savecontactdefaultPriceCode(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/automationrules/savepricecoderuledefaultcontact",n).then(function(n){return n})})}updateRuleTags(n,t,i,r,u){return __awaiter(this,void 0,void 0,function*(){const f="apis/v4/unibase/transact/rules/updateruletagsdetailsbytags/includedtags/"+n+"/excludedtags/"+t+"/lobids/"+i+"/pkid/"+r+"/installedappid/"+u;return yield this.dataHelper().postAsync(f,null).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshcreditlimitrules(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/pricelists/configureruleactionprovider/versionguid/"+n+"/rulename/"+t+"/pkid/"+i+"/lobid/0";return yield this.dataHelper().getAsync(r).then(function(n){return n})})}refreshPriceCodeRule(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/refreshpricecoderule/pricecoderuleid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshCreditRule(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/refreshcreditlimitrule/ruleid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshPaymentTermRule(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/refreshpaymenttermrule/paymenttermruleid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshOrderApprovalRule(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/refreshorderapprovalrule/orderapprovalruleid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshSkuRecommendation(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/refreshskurecommendation/skurecommendationid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.RuleManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,41 @@
|
||||
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 Unibase;
|
||||
(function (Unibase) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class CouponManager extends Unibase.Platform.Core.BaseManager {
|
||||
couponDelete(couponid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/coupons/deletecoupon/couponid/' + couponid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new CouponManager();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Managers.CouponManager = CouponManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Unibase.Apps || (Unibase.Apps = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"couponmanager.js","sourceRoot":"","sources":["couponmanager.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAU,OAAO,CA6BhB;AA7BD,WAAU,OAAO;IACb,IAAiB,IAAI,CA2BpB;IA3BD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAyBxB;QAzBD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAuBxB;YAvBD,WAAiB,QAAQ;gBACrB,MAAa,aAAc,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAC1D,YAAY,CAAC,QAAQ;;4BAEvB,MAAM,GAAG,GAAG,yDAAyD,GAAG,QAAQ,CAAC;4BAEjF,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAEvE,IAAI,QAAQ,CAAC,MAAM,IAAI,IAAI,EAAE;oCACzB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iCACjD;gCACD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBAEP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;yBACvC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBArBY,sBAAa,gBAqBzB,CAAA;YACL,CAAC,EAvBgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAuBxB;QACL,CAAC,EAzBgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAyBxB;IACL,CAAC,EA3BgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QA2BpB;AACL,CAAC,EA7BS,OAAO,KAAP,OAAO,QA6BhB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseManager{couponDelete(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/transact/coupons/deletecoupon/couponid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.CouponManager=i})(i=t.Managers||(t.Managers={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Unibase||(Unibase={}));
|
||||
@@ -0,0 +1,72 @@
|
||||
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) {
|
||||
class EInvoiceManager extends Unibase.Platform.Core.BaseManager {
|
||||
geteinvoicepayload(einvoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transactintegrations/einvoice/getirnwithwayinvoicepayload/invoiceid/" + einvoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
geteinvoicebyid(einvoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transactintegrations/einvoice/geteinvoicebyeinvoiceid/einvoiceid/" + einvoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
geteinvoicebyinvoiceid(invoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transactintegrations/einvoice/geteinvoicebyinvoiceid/invoiceid/" + invoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
saveEInvoiceItems(eInvoiceId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transactintegrations/einvoice/savingeinvoiceitems/einvoiceid/' + eInvoiceId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new EInvoiceManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.EInvoiceManager = EInvoiceManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"einvoicemanager.js","sourceRoot":"","sources":["einvoicemanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAqChB;AArCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAmCpB;IAnCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAiCxB;QAjCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,C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,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAiCxB;IACL,CAAC,EAnCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAmCpB;AACL,CAAC,EArCS,OAAO,KAAP,OAAO,QAqChB"}
|
||||
@@ -0,0 +1,137 @@
|
||||
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) {
|
||||
class EstimateManager extends Unibase.Platform.Core.BaseManager {
|
||||
getEstimateItems(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/getestimateitembyid/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEstimateItem(EstimateItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/getestimateitem/estimateitemid/' + EstimateItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
managePrice(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/manageprice';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEstimate(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/getestimate/id/' + EstimateId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
estimatePrint(EstimateId, TemplateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimate/getestimatehtml/estimateid/' + EstimateId + '/templateid/' + TemplateId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEstimatePermissions() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/getsalesestimatepermissions';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
adjustEstimateItem(EstimateItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/adjustestimateitem/estimateitemid/' + EstimateItemId;
|
||||
return yield this.dataHelper().postAsync(url, EstimateItemId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
voidEstimate(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/voidestimate/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, EstimateId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
confirmEstimate(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/confirmestimate/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, EstimateId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLeadDetails(LeadId, LobId, OrderTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/estimates/getleaddetails/leadid/' + LeadId + '/lobid/' + LobId + '/ordertypeid/' + OrderTypeId + '/branchid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLeadByLeadId(LeadId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/leads/getleadbyleadid/leadid/' + LeadId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new EstimateManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.EstimateManager = EstimateManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"estimatemanager.js","sourceRoot":"","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)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{getEstimateItems(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/getestimateitembyid/estimateid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getEstimateItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/getestimateitem/estimateitemid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}managePrice(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/estimates/manageprice",n).then(function(n){return n})})}getEstimate(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/getestimate/id/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=""&&n.result!==null&&(n.result=JSON.parse(n.result)),n})})}estimatePrint(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/estimate/getestimatehtml/estimateid/"+n+"/templateid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getEstimatePermissions(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/transact/estimates/getsalesestimatepermissions").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}adjustEstimateItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/adjustestimateitem/estimateitemid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}voidEstimate(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/voidestimate/estimateid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}confirmEstimate(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/estimates/confirmestimate/estimateid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getLeadDetails(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/estimates/getleaddetails/leadid/"+n+"/lobid/"+t+"/ordertypeid/"+i+"/branchid/0";return yield this.dataHelper().getAsync(r).then(function(n){return n.result!=null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.EstimateManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,73 @@
|
||||
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) {
|
||||
class EWayBillManager extends Unibase.Platform.Core.BaseManager {
|
||||
getPrintEWayBill(ewaybillid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transact/ewaybill/getprintewaybill/ewaybillid/" + ewaybillid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
getEwayBill(ewaybillid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transact/ewaybill/getewaybill/ewaybillid/" + ewaybillid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
getewaybillpayload(ewaybillid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transact/ewaybill/getewaybillpayload/ewaybillid/" + ewaybillid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
getEwayBillByInvoiceId(invoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = "apis/v4/bizgaze/transact/ewaybill/getewaybillbyinvoiceid/ewaybillinvoiceid/" + invoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new EWayBillManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.EWayBillManager = EWayBillManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps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ACK,kBAAkB,CAAC,UAAU;;4BAC/B,MAAM,GAAG,GAAG,kEAAkE,GAAG,UAAU,CAAC;4BAC5F,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,IAAI,QAAQ,CAAC,MAAM,IAAI,IAAI,EAAE;oCACzB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oCAC9C,OAAO,QAAQ,CAAC;iCACnB;4BACL,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,EAAE,CAAC;wBAC3C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAlCY,wBAAe,kBAkC3B,CAAA;YACL,CAAC,EApCgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAoCxB;QACL,CAAC,EAtCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAsCxB;IACL,CAAC,EAxCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAwCpB;AACL,CAAC,EA1CS,OAAO,KAAP,OAAO,QA0ChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{getPrintEWayBill(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ewaybill/getprintewaybill/ewaybillid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){if(n.result!=null)return n.result=JSON.parse(n.result),n})})}getEwayBill(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ewaybill/getewaybill/ewaybillid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){if(n.result!=null)return n.result=JSON.parse(n.result),n})})}getewaybillpayload(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ewaybill/getewaybillpayload/ewaybillid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){if(n.result!=null)return n.result=JSON.parse(n.result),n})})}getEwayBillByInvoiceId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ewaybill/getewaybillbyinvoiceid/ewaybillinvoiceid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){if(n.result!=null)return n.result=JSON.parse(n.result),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.EWayBillManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,172 @@
|
||||
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 Expenses;
|
||||
(function (Expenses) {
|
||||
class ExpenseManager extends Unibase.Platform.Core.BaseManager {
|
||||
changestatus(expenseItemId, statusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/changeexpenseitemsstatus/expenseitemid/' + expenseItemId + '/statusid/' + statusId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deletedocument(expenseItemId, documentFileId, documentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/deleteexpensedocument/expenseitemid/' + expenseItemId + '/documentfileid/' + documentFileId + '/documentid/' + documentId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
checkexpenseitems(expenseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/checkexpenseitem/expenseid/' + expenseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLob(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/getlob/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getVehicleType() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/getvehicles';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDraftExpenseByContact() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/getexpenselist';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAdvanceCategory() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/getadvancecategory';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
approveexpenseitemlist(expenseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/approveexpenseitemlist/expenseid/' + expenseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
checkexpenseamount(expenseCategoryId, expAmount, employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/checkexpenseamount/expensecategoryid/' + expenseCategoryId + '/expAmount/' + expAmount + '/employeeId/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
checkDocumentByDesignation(expenseId, userId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/checkdocumentbydesignation/expenseid/' + expenseId + '/userid/' + userId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
FinancialManagerForApproved(expenseId, installedAppId, versionGuid, stageId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/financialmanagerforapproved/expenseid/' + expenseId + '/installedappid/' + installedAppId + '/versionguid/' + versionGuid + '/stageid/' + stageId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
confirmExpenseItemList(expenseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/confirmexpenseitemlist/expenseid/' + expenseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
advanceitemdetails(expenseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/expenses/advanceitemdetails/expenseid/' + expenseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getUserRoleByUserId(userId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/Roles/GetRoles/UserId/' + userId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ExpenseManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Expenses.ExpenseManager = ExpenseManager;
|
||||
})(Expenses = Managers.Expenses || (Managers.Expenses = {}));
|
||||
})(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
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{changestatus(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/expenses/changeexpenseitemsstatus/expenseitemid/"+n+"/statusid/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}deletedocument(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/expenses/deleteexpensedocument/expenseitemid/"+n+"/documentfileid/"+t+"/documentid/"+i;return yield this.dataHelper().postAsync(r,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}checkexpenseitems(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/expenses/checkexpenseitem/expenseid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getLob(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/expenses/getlob/employeeid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getVehicleType(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/transact/expenses/getvehicles").then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getDraftExpenseByContact(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/transact/expenses/getexpenselist").then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getAdvanceCategory(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/transact/expenses/getadvancecategory").then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}approveexpenseitemlist(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/expenses/approveexpenseitemlist/expenseid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}checkexpenseamount(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/expenses/checkexpenseamount/expensecategoryid/"+n+"/expAmount/"+t+"/employeeId/"+i;return yield this.dataHelper().getAsync(r).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}checkDocumentByDesignation(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/expenses/checkdocumentbydesignation/expenseid/"+n+"/userid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}FinancialManagerForApproved(n,t,i,r){return __awaiter(this,void 0,void 0,function*(){const u="apis/v4/bizgaze/transact/expenses/financialmanagerforapproved/expenseid/"+n+"/installedappid/"+t+"/versionguid/"+i+"/stageid/"+r;return yield this.dataHelper().postAsync(u,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}confirmExpenseItemList(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/expenses/confirmexpenseitemlist/expenseid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}advanceitemdetails(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/expenses/advanceitemdetails/expenseid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getUserRoleByUserId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/Roles/GetRoles/UserId/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.ExpenseManager=t})(t=n.Expenses||(n.Expenses={}))})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,49 @@
|
||||
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 Forecast;
|
||||
(function (Forecast) {
|
||||
class ForecastManager extends Unibase.Platform.Core.BaseManager {
|
||||
getMachinesDataforfilter(obj) {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
downloadData(obj) {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
executeforecastdata(wise, value) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = '/apis/v4/bizgaze/integrations/forecast/executeforecastdata/wise/' + wise + '/value/' + value;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ForecastManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Forecast.ForecastManager = ForecastManager;
|
||||
})(Forecast = Managers.Forecast || (Managers.Forecast = {}));
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"irulemanager.js","sourceRoot":"","sources":["irulemanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ieinvoicemanager.js","sourceRoot":"","sources":["ieinvoicemanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iestimatemanager.js","sourceRoot":"","sources":["iestimatemanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iewaybillmanager.js","sourceRoot":"","sources":["iewaybillmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iexpensemanager.js","sourceRoot":"","sources":["iexpensemanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"icouponmanager.js","sourceRoot":"","sources":["icouponmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iinvoicemanager.js","sourceRoot":"","sources":["iinvoicemanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"idcmanager.js","sourceRoot":"","sources":["idcmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iitemmanager.js","sourceRoot":"","sources":["iitemmanager.ts"],"names":[],"mappings":""}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"itransactsettingmanager.js","sourceRoot":"","sources":["itransactsettingmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ipaymentmanager.js","sourceRoot":"","sources":["ipaymentmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ipaymenttermmanager.js","sourceRoot":"","sources":["ipaymenttermmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iledgermanager.js","sourceRoot":"","sources":["iledgermanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ioffermanager.js","sourceRoot":"","sources":["ioffermanager.ts"],"names":[],"mappings":""}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iopportunitymanager.js","sourceRoot":"","sources":["iopportunitymanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iordermanager.js","sourceRoot":"","sources":["iordermanager.ts"],"names":[],"mappings":""}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isubscriptionmanager.js","sourceRoot":"","sources":["isubscriptionmanager.ts"],"names":[],"mappings":""}
|
||||
Vendored
Executable
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"itaxmanager.js","sourceRoot":"","sources":["itaxmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ivouchermanager.js","sourceRoot":"","sources":["ivouchermanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iwalletmanager.js","sourceRoot":"","sources":["iwalletmanager.ts"],"names":[],"mappings":""}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iworkordermanager.js","sourceRoot":"","sources":["iworkordermanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,463 @@
|
||||
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) {
|
||||
class DCManager extends Unibase.Platform.Core.BaseManager {
|
||||
getDcItems(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = url;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDetails(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = url;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderDetails(OrderId, DcTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getorderdetails/orderid/' + OrderId + '/dctypeid/' + DcTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemDetails(ItemId, OrderItemId, OrderId, BranchId, IsClaim, dctypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/getitemdetails/itemid/' + ItemId + '/orderitemid/' + OrderItemId + '/orderid/' + OrderId + '/branchid/' + BranchId + '/isclaim/' + IsClaim + '/dctypeid/' + dctypeid;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLobSettings(LobId, BranchId, DcTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/getlobsettings/lobid/' + LobId + '/branchid/' + BranchId + '/dctypeid/' + DcTypeId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savedcItemList(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savedcitemlist/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savedcItem(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savedcitem';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdcsbyorderid(orderid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcbyorderid/orderid/' + orderid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyItemId(itemid, dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/Dc/getdcitemsbyitemid/dcid/' + dcid + '/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyItemIdanddcid(itemid, dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/Dc/getdcitemsbyitemidanddcid/itemid/' + itemid + '/dcid/' + dcid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdc(dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getdc/dcid/' + dcid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyId(DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcitembydcitemid/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
dcPrint(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdchtml/dcid/' + DcId + '/templateid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getMrpDcQty(itemid, BranchId, MrpId, isdcty) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getavailablemrpqty/itemid/' + itemid + '/branchid/' + BranchId + '/mrpid/' + MrpId + '/isdcqty/' + isdcty;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInventoryApplyType(LobId, Type, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/settings/getinventoryapplytype/lobid/' + LobId + '/type/' + Type + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcStock(ItemId, BranchId, isdcqty) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getavailableqty/itemid/' + ItemId + '/branchid/' + BranchId + '/isclaim/false/isdcqty/' + isdcqty;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyOrderItemId(Orderitemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcitembyorderitemid/' + Orderitemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteDcItem(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/deletedcitem';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetBatchandMRPQty(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getserialNo(StockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstockbystockid/stockid/' + StockId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getserialNobySerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAllocatedStocks(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getScannedSerialNos(DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getscannedserialnosbydcitemid/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemScannedSerialNos(DcItemId, StockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getitemscannedserialnos/dcitemid/' + DcItemId + '/parentstockid/' + StockId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getActiveStocks(DcItemId, StockStatusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getactivestocks/dcitemid/' + DcItemId + '/StockStatusId/' + StockStatusId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteSerialNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/deleteserialno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteSerialNobyDcItemId(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/ChangeSerialNoStage';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemSerialNos(DcItemId, ParentStockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstocksbyparentstockid/parentstockid/' + ParentStockId + '/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdcSerialNos(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstocksbydcid/dcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getActivedcSerialNos(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getactivestocksbydcid/dcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
generateCouponforSNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/generatecouponforsno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetSerialNosCount(DcItemId, DcType, IsTransfer) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getdcserialnoscountbydcitemid/dcitemid/' + DcItemId + '/DcType/' + DcType + '/istransfer/' + IsTransfer;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
generateMasterSerialNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/generatemasterserialno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanSerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanMasterSerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scrappedSNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/generatemastercode/scrappedsno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanDCAndGrn(DcId, StockId, DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/ScanDCandGRN/dcid/' + DcId + '/stockid/' + StockId + '/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAvailQty(ItemId, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/items/getitemavailability_rec/itemid/' + ItemId + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemRecDetails(ItemRecId, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/items/GetItemReconcilationDetails/itemrecid/' + ItemRecId + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savegrn(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savegrn';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcByRefDcId(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/Getdcbyrefdcid/refdcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLogisticDetails(LogisticId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/logistics/getlogisticsbyid/logisticid/' + LogisticId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPickerDetails(frompincode, topincode, weight, height, breadth, length) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/integrations/pickrr/pricecalculator/pickup_pincode/' + frompincode + '/drop_pincode/' + topincode
|
||||
+ '/weight/' + weight + '/height/' + height + '/breadth/' + breadth + '/length/' + length;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
cancelPicker(TrackingdId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/integrations/pickrr/cancelorder/' + TrackingdId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateCancelOrder(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/logistics/updatecancelorder';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateIsReconcil(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/itemrecon/updateisreconcil';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new DCManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.DCManager = DCManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,212 @@
|
||||
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) {
|
||||
class ItemManager extends Unibase.Platform.Core.BaseManager {
|
||||
getVariantsForOrder(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getvariantsfororder';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemsForOrder(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsfororder';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getitemsfororder(PriceCodeId, ContactId, ItemId, LobId, OrderType, OfferOnly, IsExcise, Query) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsfororder/pricecodeid/' + PriceCodeId + '/contactid/' + ContactId + '/itemid/' + ItemId + '/lobid/' + LobId + '/ordertype/' + OrderType + '/offeronly/' + OfferOnly + '/isexcise/' + IsExcise + '/query/' + Query;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdefitemsbom(PriceCodeId, ContactId, ItemId, OrderType, IsExcise, WareHouseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemdefinitionbyitemidasync/itemid/' + ItemId + '/pricecodeid/' + PriceCodeId
|
||||
+ '/contactid/' + ContactId + '/ordertype/' + OrderType + '/isexcise/' + IsExcise + '/warehouseid/' + WareHouseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getVariantsDetailsWithAvailability(ItemId, PriceCodeId, ContactId, OrderType, IsExcise, WarehouseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getvariantsdetailswithavailability/itemids/' + ItemId + '/pricecodeid/' + PriceCodeId + '/contactid/' + ContactId + '/ordertype/' + OrderType + '/isexcise/' + IsExcise + '/warehouseid/' + WarehouseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemAvailableQty(itemid, BranchId, IsClaim) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemavailability/ItemId/' + itemid + '/BranchId/' + BranchId + '/IsClaim/' + IsClaim;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemsAvailableQty(ItemIds, BranchIds, IsClaim) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsavailability/ItemIds/' + ItemIds + '/BranchIds/' + BranchIds + '/IsClaim/' + IsClaim;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemSettings(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getgeneralSetting/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDefaultItems(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getdefaultitems';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItem(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getitem/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getProduct(productid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var id = Number(productid);
|
||||
const url = 'apis/v4/bizgaze/transact/items/getproduct/productid/' + id;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemWarranty(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemwarranty/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshInventoryType() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/refreshinventorytype/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response);
|
||||
MessageHelper.Instance().showSuccess(response.message, '');
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveWaranty(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/saveitemwarranty';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveMileage(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/savemileage';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemRecDetails(ItemRecid, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/GetItemRecDetails/itemrecid/' + ItemRecid + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemBOMs(ParentItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/GetItemBOMs/parentitemid/' + ParentItemId;
|
||||
return yield this.dataHelper().getAsync(url).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;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ItemManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.ItemManager = ItemManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
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) {
|
||||
class TransactSettingManager extends Unibase.Platform.Core.BaseManager {
|
||||
getBranchSettingByInstalledApp(InstalledAppId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/settings/getbranchsettingbyinstalledappid/installedappid/' + InstalledAppId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new TransactSettingManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.TransactSettingManager = TransactSettingManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transactsettingmanager.js","sourceRoot":"","sources":["transactsettingmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAwBhB;AAxBD,WAAU,OAAO;IACb,IAAiB,IAAI,CAsBpB;IAtBD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAoBxB;QApBD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAkBxB;YAlBD,WAAiB,QAAQ;gBACrB,MAAa,sBAAuB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAEnE,8BAA8B,CAAC,cAAsB;;4BACvD,MAAM,GAAG,GAAG,oFAAoF,GAAG,cAAc,CAAC;4BAClH,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAsB,EAAE,CAAC;wBAClD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAhBY,+BAAsB,yBAgBlC,CAAA;YACL,CAAC,EAlBgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAkBxB;QACL,CAAC,EApBgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAoBxB;IACL,CAAC,EAtBgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAsBpB;AACL,CAAC,EAxBS,OAAO,KAAP,OAAO,QAwBhB"}
|
||||
@@ -0,0 +1,701 @@
|
||||
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) {
|
||||
class InvoiceManager extends Unibase.Platform.Core.BaseManager {
|
||||
getItemById(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getitem/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLatestMrpByItemId(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getlatestmrp/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getMrpById(mrpid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getmrp/mrpid/' + mrpid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getlobsummary() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/loboutstandingsummary';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetMrpandBatchQty(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemDetails(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getItemDetails';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemDetailsList(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getItemDetailsList/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
gettaxpercentages(taxgroupid, branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/tax/gettaxpercentages/taxgroupid/' + taxgroupid + '/branchid/' + branchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingSalesInvoicesByContactId(ContactId, IsOverDue) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getpendingsalesinvoicesbycontactid/contactid/' + ContactId + '/isoverdue/' + IsOverDue;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCreditNotesByContactId(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getcreditnotesbycontactid/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getRecentFiveInvoicesBySpocId(OrgContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getrecentfiveinvoicesbyspocid/orgcontactid/' + OrgContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLastFiveClearedInvoices(OrgContactId, OrgId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getlastfiveclearedinvoices/orgcontactid/' + OrgContactId + '/orgid/' + OrgId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getorganization(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 != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getorgcontact(orgcontactid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/orgcontacts/getorgcontact/orgcontactid/' + orgcontactid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getbranche(branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/companies/getbranchbybranchid/branchid/' + branchid;
|
||||
return yield this.dataHelper().getAsync(url).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;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInvoiceItems(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getMrps(itemid, dctypeid, branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/getmrpslistbyitemid/itemid/' + itemid + '/dctype/' + dctypeid + "/branchid/" + branchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getBatches(itemid, dctypeid, branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/getbatchlistbyitemid/itemid/' + itemid + '/dctype/' + dctypeid + "/branchid/" + branchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingDiscountsForInvoice(dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getpendingdiscountsforinvoice/dcid/' + dcid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderDcDetails(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getorderbranchsettings(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getordersettings/orderid/' + OrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemSetting(itemid, branchid, typeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsetting/itemid/' + itemid + '/branchid/' + branchid + '/type/' + typeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetSampleInvoiceNo(invoiceNo, invidate, seriesid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getsampleinvoiceno/invoiceno/' + invoiceNo + "/invoicedate/" + invidate + "/seriesid/" + seriesid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
gettemplates(installedappid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/templates/gettemplatesbyapp/installedappid/' + installedappid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetTemplateSetting(installedappid, branchid, lobid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/gettemplatesetting/installedappid/' + installedappid + '/branchid/' + branchid + '/lobid/' + lobid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTempNextNumber(SeriesId, date) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoicenextnumber/seriesid/' + SeriesId + '/invoicedate/' + date;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== "" && response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getprintinvoice(invoiceid, isprintpreview, ispos) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getprintinvoice/invoiceid/' + invoiceid + '/isprintpreview/' + isprintpreview + '/ispos/' + ispos;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateinvoiceseries(invoiceid, seriesid, invoiceno, templateid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/updateinvoiceseries/invoiceid/' + invoiceid + '/seriesid/' + seriesid + '/invoiceno/' + invoiceno + '/templateid/' + templateid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
Updateconnecteddc(dcid, invoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/Updateconnecteddc/dcid/' + dcid + '/invoiceid/' + invoiceid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateInvoice(InvoiceId, salespersonid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/updateinvoicesalesperson/invoiceid/' + InvoiceId + '/salespersonid/' + salespersonid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateInvoiceItemTaxAllocs(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/updateinvoiceitemtaxallocs';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getinvoiceitems(invoiceid, itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoiceitemsbyinvoiceid/invoiceid/' + invoiceid + '/isreturn/false/itemid' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getBatchByBatchId(BatchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getbatch/batchid/' + BatchId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPlanVolume(ItemId, OrganizationId, InvoiceApplyType) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getplanvolumebyitem/itemid/' + ItemId + '/organizationid/' + OrganizationId + '/type/' + InvoiceApplyType;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getJournalWallets(invoicedate, invoiceid, contactid, invoicetype, lobId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getjournalwallets/invoicedate/' + invoicedate + '/invoiceid/' + invoiceid + '/contactid/' + contactid + '/invoicetype/' + invoicetype + '/lobid/' + lobId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "") {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getJournalAllocs(invoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getjournalallocs/invoiceid/' + invoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSeries(installedappid, branchid, lobid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/seriessettings/getseriessettings/lobid/' + lobid + '/branchid/' + branchid + '/installedappid/' + installedappid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInvoiceItemDetails(invoiceitemid, taxgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoiceitemdetails/invoiceitemid/' + invoiceitemid + '/taxgroupid/' + taxgroupid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCustomerTurnOver(organizationid, excludeinvoiceid, invoicedate, applytype) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getcustomerturnover/organizationid/' + organizationid + '/excludeinvoiceid/' + excludeinvoiceid + "/invoicedate/" + invoicedate + "/applytype/" + applytype;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTcsDeclaration(partitionid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/gettcsdeclarationbypartitionid/partitionid/' + partitionid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "") {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveTcsDeclaration(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/savetcsdeclaration';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetInvoicePermissions(invoicetypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoicepermissions/invoicetypeid/' + invoicetypeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetTenants(tenantid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/gettenant/tenantid/' + tenantid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshInvoiceTypes() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/refreshinvoicetypes/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetTCSTaxgroupforReturn(invoiceid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/gettcstaxgroupforreturn/invoiceid/' + invoiceid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetFirstPendingInvoicesBySalesPerson(salespersonid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getfirstpendinginvoices/salespersionid/' + salespersonid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
changeManagers(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/changemanagers';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
changeManager(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/updatemanagerdetails';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdcbydcno(dcno) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcbydcno/dcno/' + dcno;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== '')
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getproductsbyLobid(lobid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getproductsbylobid/lobid/' + lobid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemsUnitPriceByProductId(productId, contactId, term) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsunitpricebyproductid/productid/' + productId + '/contactid/' + contactId + '/term/' + term;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getpricebyProductId(itemid, lobid, productId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getlatestprices/itemids/' + itemid + '/lobid/' + lobid + '/productid/' + productId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getitemname(searchtext) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsbyterm/term/' + searchtext;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOffersByItemIdWithPrice(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getrelatedofferwithprice';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInvoiceByDc(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoicebydc/dcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "") {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
loadEbs(url1) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = url1;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getIsEnableSalesPipeline(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingInvoicesByOrganizationName(OrganizationName) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getpendinginvoicesbyorganizationname/organizationname/' + OrganizationName;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getGSTRReport(gstno) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var fromdate = Unibase.Platform.Helpers.NavigationHelper.commonFilter_FromDate;
|
||||
var todate = Unibase.Platform.Helpers.NavigationHelper.commonFilter_ToDate;
|
||||
var fromdatestring = moment(fromdate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
var todatestring = moment(todate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/exportgstr1returndetails/gstno/' + gstno + '/fromdate/' + fromdatestring + '/todate/' + todatestring;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshTaxclassifications() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var fromdate = Unibase.Platform.Helpers.NavigationHelper.commonFilter_FromDate;
|
||||
var todate = Unibase.Platform.Helpers.NavigationHelper.commonFilter_ToDate;
|
||||
var fromdatestring = moment(fromdate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
var todatestring = moment(todate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/refreshtaxclassificaions/fromdate/' + fromdatestring + '/todate/' + todatestring;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
RefreshEInvoice(irn) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transactintegrations/einvoice/refresheinvoices/irn/' + irn;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInvoiceByorder(orderid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getinvoicesbyorderid/orderid/' + orderid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "") {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getbulkprint(fromdate, todate, salespersonid, organizationid, invoicetype) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
var fromdatestring = moment(fromdate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
var todatestring = moment(todate, "YYYY/MM/DD").format("YYYY-MM-DD");
|
||||
const url = 'apis/v4/bizgaze/transact/invoices/getbulkinvoiceprint/organizationid/' + organizationid + '/salespersonid/' + salespersonid + '/fromdate/' + fromdatestring + '/todate/' + todatestring + '/invoicetype/' + invoicetype;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
debugger;
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new InvoiceManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.InvoiceManager = InvoiceManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,159 @@
|
||||
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) {
|
||||
class LedgerManager extends Unibase.Platform.Core.BaseManager {
|
||||
getFiscalYearByPartitionId(PartitionId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getfiscalyearbypartitionid/partitionid/' + PartitionId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshFiscalYear(PartitionId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/refreshfiscalyear/partitionid/' + PartitionId;
|
||||
return yield this.dataHelper().postAsync(url, PartitionId).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshAllFiscalYears() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/refreshallfiscalyears/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
AllBalanceSheetIndexes(Reporttypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/AllBalanceSheets/Reporttypeid/' + Reporttypeid;
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateBalanceSheetIndexes(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/UpdateBalSheetIndexes';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
SaveBalSheetIndex(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savebalsheetindex/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLobLedgerSetting(lobid, branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getlobledgersetting/lobid/' + lobid + '/settingname/Bizgaze_Extension_Transact_Ledger_LedgerSettingName_Adjustment/branchid/' + branchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReconciliationData(Ledgerid, fromdate, todate, portalgroupwise, page, term, row) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerjournalentrylist/ledgerid/' + Ledgerid + '/fromdate/' + fromdate + '/todate/' + todate + '/portalgroupwise/' + portalgroupwise + '/page/' + page + '/rows/' + row + '/term/' + term;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveReconcile(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savereconcile/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = response.result;
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveLedgerReconcile(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/saveledgerreconcile/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = response.result;
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
SaveClosingbalance(fiscalyearid, fromdate, todate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savefiscalyearclosingbalance/fiscalyearid/' + fiscalyearid + '/fromdate/' + fromdate + '/todate/' + todate;
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLedgerById(ledgerid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerbyledgerid/ledgerid/' + ledgerid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getBankReconcileById(bankreconcileid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getbankreconcile/bankreconcileid/' + bankreconcileid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new LedgerManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.LedgerManager = LedgerManager;
|
||||
})(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
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{getFiscalYearByPartitionId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getfiscalyearbypartitionid/partitionid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshFiscalYear(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/refreshfiscalyear/partitionid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshAllFiscalYears(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/refreshallfiscalyears/np","{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}AllBalanceSheetIndexes(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/AllBalanceSheets/Reporttypeid/"+n;return yield this.dataHelper().postAsync(t,"{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}UpdateBalanceSheetIndexes(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/UpdateBalSheetIndexes",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}SaveBalSheetIndex(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/savebalsheetindex/List",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getLobLedgerSetting(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/ledgers/getlobledgersetting/lobid/"+n+"/settingname/Bizgaze_Extension_Transact_Ledger_LedgerSettingName_Adjustment/branchid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getReconciliationData(n,t,i,r,u,f,e){return __awaiter(this,void 0,void 0,function*(){const o="apis/v4/bizgaze/transact/ledgers/getledgerjournalentrylist/ledgerid/"+n+"/fromdate/"+t+"/todate/"+i+"/portalgroupwise/"+r+"/page/"+u+"/rows/"+e+"/term/"+f;return yield this.dataHelper().getAsync(o).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}saveReconcile(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/savereconcile/List",n).then(function(n){return n.result!==null&&(n.result=n.result),n})})}saveLedgerReconcile(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/saveledgerreconcile/List",n).then(function(n){return n.result!==null&&(n.result=n.result),n})})}SaveClosingbalance(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/ledgers/savefiscalyearclosingbalance/fiscalyearid/"+n+"/fromdate/"+t+"/todate/"+i;return yield this.dataHelper().postAsync(r,"{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getLedgerById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getledgerbyledgerid/ledgerid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getBankReconcileById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getbankreconcile/bankreconcileid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.LedgerManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,88 @@
|
||||
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) {
|
||||
class MbcMccMtcLeadsManager extends Unibase.Platform.Core.BaseManager {
|
||||
checkdocument(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/checkmbcmccmtcleadsdocuments/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
changeStage(MbcMccMtcLeadId, InstalledAppId, VersionGuid, StageId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/stagechangebymasterapproval/mbcmccmtcleadid/' + MbcMccMtcLeadId + '/installedappid/' + InstalledAppId + '/versionguid/' + VersionGuid + '/stageid/' + StageId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
downloadfiles(MbcMccMtcLeadId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/getdocumentfilepath/mbcmccmtcleadid/' + MbcMccMtcLeadId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deletembcoffercontacts(offercontactid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/deletembcoffercontacts/offercontactid/' + offercontactid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
mbccsvfiledata() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmbcleadcsvfiledataasync/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
monthlywiseeligibility() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmonthlywiseeligibilityforalltenantsasync/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new MbcMccMtcLeadsManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.MbcMccMtcLeadsManager = MbcMccMtcLeadsManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mbcmccmtcleadsmanager.js","sourceRoot":"","sources":["mbcmccmtcleadsmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CA0EhB;AA1ED,WAAU,OAAO;IACb,IAAiB,IAAI,CAwEpB;IAxED,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAsExB;QAtED,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAoExB;YApED,WAAiB,QAAQ;gBACrB,MAAa,qBAAsB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAElE,aAAa,CAAC,eAAoB,EAAE,cAAmB,EAAE,WAAgB,EA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ACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAqB,EAAE,CAAC;wBACjD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAlEY,8BAAqB,wBAkEjC,CAAA;YACL,CAAC,EApEgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAoExB;QACL,CAAC,EAtEgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAsExB;IACL,CAAC,EAxEgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAwEpB;AACL,CAAC,EA1ES,OAAO,KAAP,OAAO,QA0EhB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{checkdocument(n,t,i,r){return __awaiter(this,void 0,void 0,function*(){const u="apis/v4/bizgaze/mobil/mbcmccttcleads/checkmbcmccmtcleadsdocuments/mbcmccmtcleadid/"+n+"/installedappid/"+t+"/versionguid/"+i+"/stageid/"+r;return yield this.dataHelper().postAsync(u,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}changeStage(n,t,i,r){return __awaiter(this,void 0,void 0,function*(){const u="apis/v4/bizgaze/mobil/mbcmccttcleads/stagechangebymasterapproval/mbcmccmtcleadid/"+n+"/installedappid/"+t+"/versionguid/"+i+"/stageid/"+r;return yield this.dataHelper().postAsync(u,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}downloadfiles(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/mobil/mbcmccttcleads/getdocumentfilepath/mbcmccmtcleadid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){if(n.result!==null)return n})})}deletembcoffercontacts(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/mobil/mbcmccttcleads/deletembcoffercontacts/offercontactid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}mbccsvfiledata(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmbcleadcsvfiledataasync/np",null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}monthlywiseeligibility(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/mobil/mbcmccttcleads/refreshmonthlywiseeligibilityforalltenantsasync/np",null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.MbcMccMtcLeadsManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,315 @@
|
||||
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) {
|
||||
class OfferManager extends Unibase.Platform.Core.BaseManager {
|
||||
generatewallet(OfferId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/generateofferwallet/id/' + OfferId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
generatetabretantionfortabscheme(OfferId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/GenerateTabSchemeAsync/id/' + OfferId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshtabschemecontacts(OfferId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshtabschemecontacts/offerid/' + OfferId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
edittabschemecontact(OfferId, ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/edittabschemecontact/offerid/' + OfferId + '/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updatetabschemecontact(array) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/savetabschemecontact/List';
|
||||
return yield this.dataHelper().postAsync(url, array).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getplanitems(PlanId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getallplanitems/planid/' + PlanId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getoffer(offerid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getoffers/offerid/' + offerid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getplanincentives(PlanId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getallplanincentives/planid/' + PlanId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getplan(PlanId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getplan/planid/' + PlanId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getofferplans(OfferId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getplans/offerid/' + OfferId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCustomerPlanData(OrganizationId, SalesPersonId, LobId, OwnerId, Showplanewise, IsJson, OfferId, GroupName) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getcustomerplandata/organizationid/' + OrganizationId + '/salespersonid/' + SalesPersonId + '/lobid/' + LobId + '/ownerid/' + OwnerId + '/showplanewise/' + Showplanewise + '/isjson/' + IsJson + '/offerid/' + OfferId + '/groupname/' + GroupName;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getRelatedOffersByItem(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getrelatedoffersbyitem';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
changeOfferPlanStatus(planid, StatusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/changeofferplanstatus/planid/' + planid + '/statusid/' + StatusId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getoffers(itemid, contactid, quantity, invoiceapplytype, rowtotal, ApplyDate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getplanvolumebyquantity/itemid/' + itemid + '/contactid/' + contactid + '/quantity/' + quantity + '/applytype/' + invoiceapplytype + '/rowtotal/' + rowtotal + '/applydate/' + ApplyDate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshofferproviders() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshofferproviders/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
return response.message;
|
||||
});
|
||||
});
|
||||
}
|
||||
getwalletamount(contactid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/wallets/getwalletamount/contactid/' + contactid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPlanitems(Planid, pageIndex, term) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getplanitemsByplanid/planid/' + Planid + '/page/' + pageIndex + '/rows/8/term/' + term;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
ChangeOfferStatus(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/changeofferstatus';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
excludeoffercontacts(offercontactid, StatusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/excludeoffercontacts/offercontactid/' + offercontactid + '/statusid/' + StatusId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshalloffercontacts(offerid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshalloffercontacts/offerid/' + offerid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshrtscontacts() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshrtsoffercontacts/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
gettabsachemedata(planid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/gettabschemedata/planid/' + planid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdmsvolume(contactid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getdmsvolume/contactid/' + contactid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdiscounts(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/getdiscounts/List';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshcontacts(offerid, offername) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshalltenantcontacts/offerid/' + offerid + '/offername/' + offername;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshallwallets(offerid, offername) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshallwallets/offerid/' + offerid + '/offername/' + offername;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshallofferswallets() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/refreshallofferswallets/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
changeplanstatus(array) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/updateofferplanstatus/List';
|
||||
return yield this.dataHelper().postAsync(url, array).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateplanstatus(planid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/offers/updateplanstatus/planid/' + planid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new OfferManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.OfferManager = OfferManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,101 @@
|
||||
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) {
|
||||
class OpportunityManager extends Unibase.Platform.Core.BaseManager {
|
||||
getOpportunityItems(OpportunityItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunityitem/opportunityitemid/' + OpportunityItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOpportunityItemsById(OpportunityId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunityitems/opportunityid/' + OpportunityId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOpportunity(OpportunityId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/opportunity/getopportunity/opportunityid/' + OpportunityId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOpportunityInformaion(OrganizationId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/mobil/MobilLeads/getmobilleadbycontactid/contactid/' + OrganizationId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDetails(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = url;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteOpportunityItem(OpportunityItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
const url = 'apis/v4/bizgaze/transact/opportunity/deleteopportunityitem/opportunityitemid/' + OpportunityItemId;
|
||||
return yield this.dataHelper().postAsync(url, OpportunityItemId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteOpportunityItemForl360(OpportunityItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
const url = 'apis/v4/bizgaze/mobil/opportunity/deleteOpportunityItemForl360/opportunityitemid/' + OpportunityItemId;
|
||||
return yield this.dataHelper().postAsync(url, OpportunityItemId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new OpportunityManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.OpportunityManager = OpportunityManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"opportunitymanager.js","sourceRoot":"","sources":["opportunitymanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAgEhB;AAhED,WAAU,OAAO;IACb,IAAiB,IAAI,CA8DpB;IA9DD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CA4DxB;QA5DD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA0DxB;YA1DD,WAAiB,QAAQ;gBACrB,MAAa,kBAAmB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAC/D,mBAAmB,CAAC,iBAAiB;;4BACvC,MAAM,GAAG,GAAG,4EAA4E,GAAG,iBAAiB,CAAC;4BAC7G,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBACK,uBAAuB,CAAC,aAAa;;4BACvC,MAAM,GAAG,GAAG,yEAAyE,GAAG,aAAa,CAAC;4BACtG,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,C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,CAAC;qBAAA;oBACK,qBAAqB,CAAC,iBAAyB;;4BACjD,MAAM,GAAG,GAAG,+EAA+E,GAAG,iBAAiB,CAAC;4BAChH,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAAC,UAAU,QAAa;gCACzF,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAC;wBAC9C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAxDY,2BAAkB,qBAwD9B,CAAA;YACL,CAAC,EA1DgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA0DxB;QACL,CAAC,EA5DgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QA4DxB;IACL,CAAC,EA9DgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QA8DpB;AACL,CAAC,EAhES,OAAO,KAAP,OAAO,QAgEhB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{getOpportunityItems(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunityitem/opportunityitemid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunityItemsById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunityitems/opportunityid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunity(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/getopportunity/opportunityid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getOpportunityInformaion(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/mobil/MobilLeads/getmobilleadbycontactid/contactid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getDetails(n){return __awaiter(this,void 0,void 0,function*(){const t=n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}deleteOpportunityItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/opportunity/deleteopportunityitem/opportunityitemid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.OpportunityManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,658 @@
|
||||
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) {
|
||||
class OrderManager extends Unibase.Platform.Core.BaseManager {
|
||||
getDetails(OrganizationId, LobId, OrderTypeId, IsPointsOrder, IsLead = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getdetails/organizationid/' + OrganizationId + '/lobid/' + LobId + '/ordertypeid/' + OrderTypeId + '/ispointsorder/' + IsPointsOrder + '/branchid/0/islead/' + IsLead;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getClaimDetails(ClaimId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getclaimdetails/claimid/' + ClaimId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderDetails(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderbyorderid/id/' + OrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderByOrganization(OrganizationId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderbyorganizationid/organizationid/' + OrganizationId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCustomerCreditHealth(OrgContactId, OrgId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getcustomercredithealth/orgcontactid/' + OrgContactId + '/orgid/' + OrgId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSalesFrequency(OrgContactId, OrgId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getsalesfrequency/orgcontactid/' + OrgContactId + '/orgid/' + OrgId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTotals(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/gettotals';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPurchasePlanTotals(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpurchaseplantotals';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
duplicateOrder(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/duplicateorder/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, OrderId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
confirmOrder(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/confirmorder/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, OrderId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
voidOrder(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/voidorder/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, OrderId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
checkOrderDcCompleted(OrderId, DcTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/checkorderdccompleted/orderid/' + OrderId + '/dctypeid/' + DcTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPermissions(installedappid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpermissions/installedappid/' + installedappid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingQty(OrderId, ItemId, dctype, OrderItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getitempendingqty/orderid/' + OrderId + '/itemid/' + ItemId + '/dctype/' + dctype + '/orderitemid/' + OrderItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemTaxDetails(ItemId, AssessableAmount, OrderType, OrderPortalId, BillingAddressId, isCform, IsExcise) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getitemtaxdetails/itemid/' + ItemId + '/assessableamount/' + AssessableAmount + '/ordertype/' + OrderType + '/orderportalid/' + OrderPortalId + '/billingaddressid/' + BillingAddressId + '/iscform/' + isCform + '/isexcise/' + IsExcise;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
orderPrint(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderhtml/orderid/' + OrderId + '/templateid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
reSaveOrder(OrderId, TenantId, FormId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/resaveorder/orderid/' + OrderId + '/tenantid/' + TenantId + '/formid/' + FormId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderItemsDetails(OrderItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderitem/orderitemid/' + OrderItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderItems(OrderId, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderitemsbyorderidanditemid/orderid/' + OrderId + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderItemsByPrice(OrderId, ItemId, UnitPrice) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderitembyprice/orderid/' + OrderId + '/itemid/' + ItemId + '/unitprice/' + UnitPrice;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
adjustOrderItemQuantityByItem(orderitemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/adjustorderitemquantitybyitem/orderitemid/' + orderitemid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
adjustOrderItemQuantityByOrder(orderid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/adjustorderitemquantitybyorder/orderid/' + orderid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingOrderItemsByItemAndCustomer(OrderType, ItemId, OrganizationId, Page, Rows, branchId, OrderId = 0) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpendingorderitemsbyitemandcustomer/ordertype/' + OrderType + '/itemid/' + ItemId + '/organizationid/' + OrganizationId + '/orderid/' + OrderId + '/page/' + Page + '/rows/' + Rows;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveOrderItems(postdata, IsDirectSave, OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/saveorderitems/isdirectsave/' + IsDirectSave + '/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteOrderItem(OrderItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/deleteorderitem/orderitemid/' + OrderItemId;
|
||||
return yield this.dataHelper().postAsync(url, OrderItemId).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
resetMoQ(LobId, BranchId, ContactId, EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/resetmoq/lobid/' + LobId + '/branchid/' + BranchId + '/contactid/' + ContactId + '/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
resetMoQ_Proc(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/resetmoq_proc/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReOrderItems(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getreorderitems';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
predictPurchasePlan(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/predictpurchaseplan';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
predictPurchasePlan_proc(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/predictpurchaseplan_proc/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPurchasePlanCalculations_proc(EstimateId, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/refreshpurchaseplancalculations_proc/estimateid/' + EstimateId + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPurchasePlanCalculations(EstimateId, ItemId, Tenant_Id, Branch_Id) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpurchaseplancalculations/estimateid/' + EstimateId + '/itemid/' + ItemId + '/tenant_id/' + Tenant_Id + '/branch_id/' + Branch_Id;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTenantWisePurchasePlanCalculations(EstimateId, ItemId, TenantId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/gettenantwisepurchaseplancalculations/estimateid/' + EstimateId + '/itemid/' + ItemId + '/tenantid/' + TenantId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPurchasePlanItems(EstimateId, LoadTypeId, SearchTerm, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpurchaseplanitems/estimateid/' + EstimateId + '/loadtypeid/' + LoadTypeId + '/searchterm/' + SearchTerm + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderItemsSummary(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingOrderItems(OrderId, IsPending) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderitemsummary/orderid/' + OrderId + '/ispendingqty/' + IsPending;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingOrderItemQty(OrderItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpendingorderitemqty/orderitemid/' + OrderItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingItemsForInvoice(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpendingitemsforinvoice/orderid/' + OrderId + '/ismergeorder/false';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderSettings(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getordersettings/orderid/' + OrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderSettingsByLob(SettingName, LobId, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getordersettingsbylob/settingname/' + SettingName + '/lobid/' + LobId + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderBranchSettings(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getbranchsettings/orderid/' + OrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderItemQuantity(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderitemquantity/orderid/' + OrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getClaimPendingQuantity(ClaimId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getclaimpendingquantity/claimid/' + ClaimId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderByRefOrderId(RefOrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getorderbyreforderid/reforderid/' + RefOrderId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCartItems(ContactId, LobId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getcartitems/contactid/' + ContactId + '/lobid/' + LobId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInventoryApplyType(LobId, Type, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/settings/getinventoryapplytype/lobid/' + LobId + '/type/' + Type + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEmployeeLeverage(EmployeeId, LobId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/employeeleverages/getemployeeleverage/employeeid/' + EmployeeId + '/lobid/' + LobId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSeriesSettings(LobId, BranchId, InstalledAppId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/seriessettings/getseriessettings/lobid/' + LobId + '/branchid/' + BranchId + '/installedappid/' + InstalledAppId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
createOrderItems(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/integrations/subscription/createorder';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updatePurchasePlanDetails(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/updatepurchaseplandetails';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savePurchasePlanOrder(EstimateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/savepurchaseplanorder/estimateid/' + EstimateId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveROQ(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/saveroq';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateTokensToLowerCase(TemplateIds, Columns) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/updatetokenstolowercase/templateids/' + TemplateIds + '/columns/' + Columns;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
replaceTokens(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/replacetokens';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshTokens(TemplateIds) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/refreshtokens/templateids/' + TemplateIds;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLastOrder(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getlastorder/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
RefreshInvoiceQty(orderid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/refreshinvoicedqty/orderid/' + orderid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
RefreshDeliveredQty(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/refreshdeliveredqty/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
RefreshDCAndInvoiceQty(OrderId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/refreshdcandinvoiceqty/orderid/' + OrderId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
purchaseIndentPrint(PurchaseIndentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpurchaseindenthtml/purchaseindentid/' + PurchaseIndentId + '/templateid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPurchaseIndentDetails(PurchaseIndentId, Type) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpurchaseindentdetails/purchaseindentid/' + PurchaseIndentId + '/type/' + Type;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingPurchaseIndentItems(PurchaseIndentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpendingpurchaseindentitems/purchaseindentid/' + PurchaseIndentId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendingPurchaseIndentEstimateItems(PurchaseIndentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/orders/getpendingpurchaseindentestimateitems/purchaseindentid/' + PurchaseIndentId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new OrderManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.OrderManager = OrderManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,197 @@
|
||||
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) {
|
||||
var _PaymentManager_region, _PaymentManager_endregion;
|
||||
class PaymentManager extends Unibase.Platform.Core.BaseManager {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
_PaymentManager_region.set(this, void 0);
|
||||
_PaymentManager_endregion.set(this, void 0);
|
||||
}
|
||||
getpayment(Id) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getpayment/paymentid/' + Id;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deletePayment(paymentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/deletepayment/paymentid/' + paymentId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPaymentModeSeriesSetting(paymenttypeid, paymentmodeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var url = _appsettings.server_url() + '/apis/v4/bizgaze/transact/payments/getseriessetting/paymentmodeid/' + paymentmodeid + '/paymenttypeid/' + paymenttypeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPendings(contactid, paymentid, query, journaltypeid, lobid, paymentdate, controltype) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getpendings/contactid/' + contactid + '/paymentid/' + paymentid + '/query/' + query + '/journaltypeid/' + journaltypeid + '/lobid/' + lobid + '/paymentdate/' + paymentdate + '/controltype/' + controltype;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAdvancePaymentsByOrgId(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getadvancepaymentsbyorgid/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAllPendingPayments(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getallpendingpayments/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLastFivePaymentsByContactId(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getlastfivepaymentsbycontactid/contactid/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReturnedChequesBySpocId(SpocId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getreturnedchequesbyspocid/spocid/' + SpocId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPaymentModes() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/refreshpaymentmodes/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
return response.message;
|
||||
});
|
||||
});
|
||||
}
|
||||
paymentPrint(paymentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getpaymenthtml/paymentid/' + paymentId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAccountSettingByPaymentType(paymentTypeId, settingTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getaccountsettingbypaymenttype/paymenttypeid/' + paymentTypeId + '/settingtypeid/' + settingTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAccountSettingsByPaymentType(paymentTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getaccountsettingbypaymenttype/paymenttypeid/' + paymentTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
changestatus(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
const url = 'apis/v4/bizgaze/transact/payments/paymentstagechangebystatus/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
reverseentryforreceiptreject() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
const url = 'apis/v4/bizgaze/transact/payments/reverseentryforreceiptreject/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
reconcileEntry(paymentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/reconcileentry/paymentid/' + paymentId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPaymentByRemoteId(remoteId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getpaymentbyremoteid/remoteid/' + remoteId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new PaymentManager();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
_PaymentManager_region = new WeakMap(), _PaymentManager_endregion = new WeakMap();
|
||||
Managers.PaymentManager = PaymentManager;
|
||||
})(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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,101 @@
|
||||
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) {
|
||||
class PaymentTermManager extends Unibase.Platform.Core.BaseManager {
|
||||
deletePaymentTermItem(paymentTermItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/paymentterms/deletepaymenttermitem/id/' + paymentTermItemId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result != null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getallpaymentterms(id) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/paymentterms/allpaymentterms/' + id + '';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getWallets(contactid, paymentid, query, journaltypeid, lobid, paymentdate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getwallets/contactid/' + contactid + '/paymentid/' + paymentid + '/query/' + query + '/journaltypeid/' + journaltypeid + '/lobid/' + lobid + '/paymentdate/' + paymentdate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDues(contactid, paymentid, query, journaltypeid, lobid, paymentdate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/getwallets/contactid/' + contactid + '/paymentid/' + paymentid + '/query/' + query + '/journaltypeid/' + journaltypeid + '/lobid/' + lobid + '/paymentdate/' + paymentdate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPaymentTerm(paymenttermid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/paymentterms/getpaymentterm/paymenttermid/' + paymenttermid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPaymentTermByOrg(OrganizationId, LobId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/paymentterms/getpaymenttermbyorg/organizationid/' + OrganizationId + '/lobid/' + LobId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPaymentTermTypes() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/paymentterms/refreshtermtypes/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new PaymentTermManager();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Managers.PaymentTermManager = PaymentTermManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"paymenttermmanager.js","sourceRoot":"","sources":["paymenttermmanager.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAU,OAAO,CA0FhB;AA1FD,WAAU,OAAO;IACb,IAAiB,IAAI,CAwFpB;IAxFD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAsFxB;QAtFD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAoFxB;YApFD,WAAiB,QAAQ;gBACrB,MAAa,kBAAmB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAC/D,qBAAqB,CAAC,iBAAiB;;4BAIzC,MAAM,GAAG,GAAG,iEAAiE,GAAG,iBAAiB,CAAC;4BAElG,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAEtE,IAAI,QAAQ,CAAC,MAAM,IAAI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AAE;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBACK,uBAAuB;;4BACzB,MAAM,GAAG,GAAG,2DAA2D,CAAC;4BACxE,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCACtE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAkB,EAAE,CAAC;yBAC5C;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBAlFY,2BAAkB,qBAkF9B,CAAA;YACL,CAAC,EApFgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAoFxB;QACL,CAAC,EAtFgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAsFxB;IACL,CAAC,EAxFgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAwFpB;AACL,CAAC,EA1FS,OAAO,KAAP,OAAO,QA0FhB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{deletePaymentTermItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/paymentterms/deletepaymenttermitem/id/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}getallpaymentterms(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/paymentterms/allpaymentterms/"+n+"";return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getWallets(n,t,i,r,u,f){return __awaiter(this,void 0,void 0,function*(){const e="apis/v4/bizgaze/transact/payments/getwallets/contactid/"+n+"/paymentid/"+t+"/query/"+i+"/journaltypeid/"+r+"/lobid/"+u+"/paymentdate/"+f;return yield this.dataHelper().getAsync(e).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getDues(n,t,i,r,u,f){return __awaiter(this,void 0,void 0,function*(){const e="apis/v4/bizgaze/transact/payments/getwallets/contactid/"+n+"/paymentid/"+t+"/query/"+i+"/journaltypeid/"+r+"/lobid/"+u+"/paymentdate/"+f;return yield this.dataHelper().getAsync(e).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getPaymentTerm(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/paymentterms/getpaymentterm/paymenttermid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getPaymentTermByOrg(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/paymentterms/getpaymenttermbyorg/organizationid/"+n+"/lobid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}refreshPaymentTermTypes(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/paymentterms/refreshtermtypes/np",null).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.PaymentTermManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -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
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,70 @@
|
||||
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 Unibase;
|
||||
(function (Unibase) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class TaxManager extends Unibase.Platform.Core.BaseManager {
|
||||
getTaxes(taxgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/taxmanager/gettaxes/taxgroupid/' + taxgroupid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTaxCodeById(taxcodeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/tax/gettaxcodebyid/taxcodeid/' + taxcodeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAssignedBranches(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/companies/getassignedbranches';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getBranch(taxid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/companies/getbranchbytaxid/taxid/' + taxid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new TaxManager();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Managers.TaxManager = TaxManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Unibase.Apps || (Unibase.Apps = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"taxmanager.js","sourceRoot":"","sources":["taxmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CA8DZ;AA9DL,WAAU,OAAO;IACb,IAAiB,IAAI,CA4DhB;IA5DL,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CA0DpB;QA1DL,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAwDpB;YAxDL,WAAiB,QAAQ;gBACrB,MAAa,UAAW,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAEvD,QAAQ,CAAC,UAAkB;;4BAE7B,MAAM,GAAG,GAAG,0DAA0D,GAAG,UAAU,CAAC;4BACpF,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAEhE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ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AM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,UAAU,EAAE,CAAC;yBACpC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBAEA;gBAtDQ,mBAAU,aAsDlB,CAAA;YACL,CAAC,EAxDY,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAwDpB;QACL,CAAC,EA1DY,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QA0DpB;IACL,CAAC,EA5DY,IAAI,GAAJ,YAAI,KAAJ,YAAI,QA4DhB;AACL,CAAC,EA9DK,OAAO,KAAP,OAAO,QA8DZ"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseManager{getTaxes(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/taxmanager/gettaxes/taxgroupid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getTaxCodeById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/tax/gettaxcodebyid/taxcodeid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getAssignedBranches(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/crm/companies/getassignedbranches",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getBranch(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/crm/companies/getbranchbytaxid/taxid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.TaxManager=i})(i=t.Managers||(t.Managers={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Unibase||(Unibase={}));
|
||||
@@ -0,0 +1,115 @@
|
||||
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) {
|
||||
class VoucherManager extends Unibase.Platform.Core.BaseManager {
|
||||
getJournalData(journalId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/getjournaldata/journalid/' + journalId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getVoucherItems(voucherId, contactId, trnType) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/voucheritems/voucherid/' + voucherId + '/contactid/' + contactId + '/entrytype/' + trnType;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLedgerDetails(ledgerId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerdetails/ledgerid/' + ledgerId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteVoucher(voucherId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/deletejournaldata/journalid/' + voucherId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLedgerBalance(ledgerId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerbalance/ledgerid/' + ledgerId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshTypes() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/refreshtypes/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
return response.message;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDefaultVoucherSeries() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/getdefaultvoucherseries';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshApplyTypes() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/refreshjournalapplytypes/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
return response.message;
|
||||
});
|
||||
});
|
||||
}
|
||||
PrintVouchers(journalId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/vouchers/getvouchershtml/journalid/' + journalId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new VoucherManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.VoucherManager = VoucherManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user