123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- 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 = {}));
|