Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1
  1. 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())})},Unibase,Bizgaze;(function(Unibase){let Platform;(function(Platform){let Series;(function(Series){let Managers;(function(Managers){class SeriesManager extends Platform.Core.BaseManager{getseries(appkeyid,installedappid){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/seriesautocomplete/appkeyid/"+appkeyid+"/installedappid/"+installedappid;return yield this.dataHelper().getAsync(url).then(function(response){return JSON.parse(response.result)})})}createSeries(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/apps/createseries",obj).then(function(response){return response.result!=null&&(response.result=JSON.parse(response.result)),response})})}getSeries(AppKeyId,InstalledAppId){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getserieslist/appKeyid/"+AppKeyId+"/installedappid/"+InstalledAppId;return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getActiveSeries(appkeyid,installedappId){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getactiveseries/appkeyid/"+appkeyid+"/installedappid/"+installedappId;return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}changeSeriesStatus(SeriesId,Status){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/changeseriesformatstatus/seriesid/"+SeriesId+"/status/"+Status;return yield this.dataHelper().postAsync(url,null)})}getSeriesById(seriesid){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getseries/seriesid/"+seriesid;return yield this.dataHelper().getAsync(url).then(function(response){return response.result!=null&&(response.result=JSON.parse(response.result)),response})})}updateSeries(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/apps/updateseries",obj).then(function(response){return response.result!=null&&(response.result=JSON.parse(response.result)),response})})}saveSeriesFormat(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/apps/saveseriesformat",obj).then(function(response){return response.result!=null&&(response.result=JSON.parse(response.result)),response})})}getSeriesFormats(SeriesId){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getseriesformatlist/seriesid/"+SeriesId;return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getSeriesFormatBySeriesId(SeriesId,SeriesFormatId){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getseriesformatbyseriesandformatid/seriesid/"+SeriesId+"/seriesformatid/"+SeriesFormatId;return yield this.dataHelper().getAsync(url).then(function(response){return response.result&&(response.result=JSON.parse(response.result)),response})})}getSeriesFormat(SeriesFormatId){return __awaiter(this,void 0,void 0,function*(){const url="apis/v4/unibase/platform/apps/getseriesformat/seriesformatid/"+SeriesFormatId;return yield this.dataHelper().getAsync(url).then(function(response){return response.result&&(response.result=JSON.parse(response.result)),response})})}static Instance(){return this._instance===undefined&&(this._instance=new SeriesManager),this._instance}}Managers.SeriesManager=SeriesManager})(Managers=Series.Managers||(Series.Managers={}))})(Series=Platform.Series||(Platform.Series={}))})(Platform=Unibase.Platform||(Unibase.Platform={}))})(Unibase||(Unibase={}));__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())})},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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getlobsummary(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/bizgaze/transact/invoices/loboutstandingsummary").then(function(response){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),response})})}GetMrpandBatchQty(url){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getItemDetails(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/getItemDetails",obj).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getItemDetailsList(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/getItemDetailsList/List",obj).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!=""&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!=""&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getInvoiceItems(url){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getOrderDcDetails(url){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==""&&response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}UpdateInvoiceItemTaxAllocs(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/updateinvoiceitemtaxallocs",obj).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!==""&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!==""&&(response.result=JSON.parse(response.result)),response})})}saveTcsDeclaration(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/savetcsdeclaration",obj).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}refreshInvoiceTypes(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/refreshinvoicetypes/np","{}").then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}changeManagers(postdata){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/changemanagers",postdata).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}changeManager(obj){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/invoices/updatemanagerdetails",obj).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!==""&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getOffersByItemIdWithPrice(postdata){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/items/getrelatedofferwithprice",postdata).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!==""&&(response.result=JSON.parse(response.result)),response})})}loadEbs(url1){return __awaiter(this,void 0,void 0,function*(){const url=url1;return yield this.dataHelper().getAsync(url).then(function(response){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getIsEnableSalesPipeline(url){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync(url).then(function(response){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!=""&&response.result!==null&&(response.result=JSON.parse(response.result)),response})})}getGSTRReport(gstno){return __awaiter(this,void 0,void 0,function*(){var fromdate=Unibase.Platform.Helpers.NavigationHelper.commonFilter_FromDate,todate=Unibase.Platform.Helpers.NavigationHelper.commonFilter_ToDate,fromdatestring=moment(fromdate,"YYYY/MM/DD").format("YYYY-MM-DD"),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}refreshTaxclassifications(){return __awaiter(this,void 0,void 0,function*(){var fromdate=Unibase.Platform.Helpers.NavigationHelper.commonFilter_FromDate,todate=Unibase.Platform.Helpers.NavigationHelper.commonFilter_ToDate,fromdatestring=moment(fromdate,"YYYY/MM/DD").format("YYYY-MM-DD"),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&(response.result=JSON.parse(response.result)),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){return response.result!==null&&response.result!==""&&(response.result=JSON.parse(response.result)),response})})}getbulkprint(fromdate,todate,salespersonid,organizationid,invoicetype){return __awaiter(this,void 0,void 0,function*(){var fromdatestring=moment(fromdate,"YYYY/MM/DD").format("YYYY-MM-DD"),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){return response.result!==null&&(response.result=JSON.parse(response.result)),response})})}static Instance(){return this._instance===undefined&&(this._instance=new InvoiceManager),this._instance}}Managers.InvoiceManager=InvoiceManager})(Managers=Transact.Managers||(Transact.Managers={}))})(Transact=Apps.Transact||(Apps.Transact={}))})(Apps=Bizgaze.Apps||(Bizgaze.Apps={}))}(Bizgaze||(Bizgaze={}));