@nomalism-com/api 0.8.153 → 0.8.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +124 -124
- package/dist/index.js +275 -275
- package/dist/modules/documentManagement/index.d.ts +3 -3
- package/dist/modules/documentManagement/index.js +12 -12
- package/dist/modules/documentManagement/multimedia.d.ts +6 -6
- package/dist/modules/documentManagement/multimedia.js +70 -70
- package/dist/modules/integration/dynamicData.d.ts +8 -8
- package/dist/modules/integration/dynamicData.js +103 -103
- package/dist/modules/integration/errorHandler.d.ts +5 -5
- package/dist/modules/integration/errorHandler.js +58 -58
- package/dist/modules/integration/field.d.ts +26 -26
- package/dist/modules/integration/field.js +93 -93
- package/dist/modules/integration/fieldGroup.d.ts +12 -12
- package/dist/modules/integration/fieldGroup.js +118 -118
- package/dist/modules/integration/file.d.ts +5 -5
- package/dist/modules/integration/file.js +83 -83
- package/dist/modules/integration/googleFilePermission.d.ts +4 -4
- package/dist/modules/integration/googleFilePermission.js +92 -92
- package/dist/modules/integration/googleSheets.d.ts +11 -11
- package/dist/modules/integration/googleSheets.js +103 -103
- package/dist/modules/integration/history.d.ts +11 -11
- package/dist/modules/integration/history.js +63 -63
- package/dist/modules/integration/index.d.ts +3 -3
- package/dist/modules/integration/index.js +12 -12
- package/dist/modules/integration/observation.d.ts +8 -8
- package/dist/modules/integration/observation.js +94 -94
- package/dist/modules/integration/observationType.d.ts +10 -10
- package/dist/modules/integration/observationType.js +107 -107
- package/dist/modules/integration/settings.d.ts +6 -6
- package/dist/modules/integration/settings.js +104 -104
- package/dist/modules/integration/task.d.ts +10 -10
- package/dist/modules/integration/task.js +113 -113
- package/dist/modules/integration/taskAttachment.d.ts +7 -7
- package/dist/modules/integration/taskAttachment.js +72 -72
- package/dist/modules/integration/taskGroup.d.ts +8 -8
- package/dist/modules/integration/taskGroup.js +103 -103
- package/dist/modules/integration/taskNote.d.ts +8 -8
- package/dist/modules/integration/taskNote.js +92 -92
- package/dist/modules/print/index.d.ts +4 -4
- package/dist/modules/print/index.js +9 -9
- package/dist/modules/print/npc.d.ts +5 -5
- package/dist/modules/print/npc.js +70 -70
- package/dist/modules/print/printer.d.ts +6 -6
- package/dist/modules/print/printer.js +70 -70
- package/dist/modules/print/schedulePrintJob.d.ts +8 -8
- package/dist/modules/print/schedulePrintJob.js +139 -139
- package/dist/modules/stock/attribute.d.ts +16 -16
- package/dist/modules/stock/attribute.js +143 -143
- package/dist/modules/stock/attributeValue.d.ts +12 -12
- package/dist/modules/stock/attributeValue.js +140 -140
- package/dist/modules/stock/cabide.d.ts +17 -17
- package/dist/modules/stock/cabide.js +147 -147
- package/dist/modules/stock/cabideProduct.d.ts +10 -10
- package/dist/modules/stock/cabideProduct.js +127 -127
- package/dist/modules/stock/clientCurrentAccount.d.ts +5 -5
- package/dist/modules/stock/clientCurrentAccount.js +61 -61
- package/dist/modules/stock/color.d.ts +13 -13
- package/dist/modules/stock/color.js +139 -139
- package/dist/modules/stock/composition.d.ts +12 -12
- package/dist/modules/stock/composition.js +127 -127
- package/dist/modules/stock/compositionMaterial.d.ts +13 -13
- package/dist/modules/stock/compositionMaterial.js +140 -140
- package/dist/modules/stock/documentHeader.d.ts +46 -46
- package/dist/modules/stock/documentHeader.js +372 -372
- package/dist/modules/stock/documentLine.d.ts +18 -29
- package/dist/modules/stock/documentLine.js +147 -147
- package/dist/modules/stock/documentLineAssoc.d.ts +30 -30
- package/dist/modules/stock/documentLineAssoc.js +166 -166
- package/dist/modules/stock/documentLineFolder.d.ts +6 -6
- package/dist/modules/stock/documentLineFolder.js +92 -92
- package/dist/modules/stock/documentSet.d.ts +8 -8
- package/dist/modules/stock/documentSet.js +114 -114
- package/dist/modules/stock/documentType.d.ts +14 -14
- package/dist/modules/stock/documentType.js +117 -117
- package/dist/modules/stock/externalDocumentHeader.d.ts +15 -15
- package/dist/modules/stock/externalDocumentHeader.js +135 -135
- package/dist/modules/stock/externalDocumentType.d.ts +6 -6
- package/dist/modules/stock/externalDocumentType.js +70 -70
- package/dist/modules/stock/index.d.ts +3 -3
- package/dist/modules/stock/index.js +12 -12
- package/dist/modules/stock/location.d.ts +12 -12
- package/dist/modules/stock/location.js +140 -140
- package/dist/modules/stock/maintenance.d.ts +12 -12
- package/dist/modules/stock/maintenance.js +140 -140
- package/dist/modules/stock/maintenanceAssoc.d.ts +12 -12
- package/dist/modules/stock/maintenanceAssoc.js +127 -127
- package/dist/modules/stock/maintenancePreset.d.ts +10 -10
- package/dist/modules/stock/maintenancePreset.js +114 -114
- package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -8
- package/dist/modules/stock/maintenancePresetAssoc.js +91 -91
- package/dist/modules/stock/maintenanceType.d.ts +13 -13
- package/dist/modules/stock/maintenanceType.js +140 -140
- package/dist/modules/stock/moloniRequest.d.ts +5 -5
- package/dist/modules/stock/moloniRequest.js +59 -59
- package/dist/modules/stock/orderManagement.d.ts +11 -11
- package/dist/modules/stock/orderManagement.js +88 -88
- package/dist/modules/stock/payment.d.ts +24 -24
- package/dist/modules/stock/payment.js +233 -233
- package/dist/modules/stock/plot.d.ts +35 -35
- package/dist/modules/stock/plot.js +223 -223
- package/dist/modules/stock/preSale.d.ts +11 -11
- package/dist/modules/stock/preSale.js +125 -125
- package/dist/modules/stock/preSaleProduct.d.ts +4 -4
- package/dist/modules/stock/preSaleProduct.js +70 -70
- package/dist/modules/stock/primaryColor.d.ts +13 -13
- package/dist/modules/stock/primaryColor.js +140 -140
- package/dist/modules/stock/product.d.ts +31 -31
- package/dist/modules/stock/product.js +223 -223
- package/dist/modules/stock/productAttribute.d.ts +12 -12
- package/dist/modules/stock/productAttribute.js +127 -127
- package/dist/modules/stock/productCategory.d.ts +13 -13
- package/dist/modules/stock/productCategory.js +140 -140
- package/dist/modules/stock/productColor.d.ts +12 -12
- package/dist/modules/stock/productColor.js +127 -127
- package/dist/modules/stock/productImage.d.ts +14 -14
- package/dist/modules/stock/productImage.js +130 -130
- package/dist/modules/stock/productName.d.ts +13 -13
- package/dist/modules/stock/productName.js +140 -140
- package/dist/modules/stock/productNamePreset.d.ts +13 -13
- package/dist/modules/stock/productNamePreset.js +140 -140
- package/dist/modules/stock/productPart.d.ts +14 -14
- package/dist/modules/stock/productPart.js +139 -139
- package/dist/modules/stock/productSubCategory.d.ts +13 -13
- package/dist/modules/stock/productSubCategory.js +139 -139
- package/dist/modules/stock/productUse.d.ts +13 -13
- package/dist/modules/stock/productUse.js +140 -140
- package/dist/modules/stock/productUseAssoc.d.ts +12 -12
- package/dist/modules/stock/productUseAssoc.js +126 -126
- package/dist/modules/stock/promotion.d.ts +13 -13
- package/dist/modules/stock/promotion.js +140 -140
- package/dist/modules/stock/promotionAssoc.d.ts +12 -12
- package/dist/modules/stock/promotionAssoc.js +127 -127
- package/dist/modules/stock/propostaSheets.d.ts +9 -9
- package/dist/modules/stock/propostaSheets.js +109 -109
- package/dist/modules/stock/providerCurrentAccount.d.ts +5 -5
- package/dist/modules/stock/providerCurrentAccount.js +61 -61
- package/dist/modules/stock/queryList.d.ts +11 -11
- package/dist/modules/stock/queryList.js +116 -116
- package/dist/modules/stock/queryParameter.d.ts +8 -8
- package/dist/modules/stock/queryParameter.js +105 -105
- package/dist/modules/stock/returnReason.d.ts +6 -6
- package/dist/modules/stock/returnReason.js +92 -92
- package/dist/modules/stock/schedule.d.ts +11 -11
- package/dist/modules/stock/schedule.js +61 -61
- package/dist/modules/stock/similarProduct.d.ts +12 -12
- package/dist/modules/stock/similarProduct.js +127 -127
- package/dist/modules/stock/startDocumentHeaderLastUpdate.d.ts +4 -4
- package/dist/modules/stock/startDocumentHeaderLastUpdate.js +59 -59
- package/dist/modules/stock/stockMovement.d.ts +9 -9
- package/dist/modules/stock/stockMovement.js +79 -79
- package/dist/modules/stock/topMenu.d.ts +5 -5
- package/dist/modules/stock/topMenu.js +61 -61
- package/dist/modules/stock/typeOfInventory.d.ts +13 -13
- package/dist/modules/stock/typeOfInventory.js +140 -140
- package/dist/modules/stock/typeOfLocation.d.ts +13 -13
- package/dist/modules/stock/typeOfLocation.js +140 -140
- package/dist/modules/stock/unitOfMeasure.d.ts +13 -13
- package/dist/modules/stock/unitOfMeasure.js +140 -140
- package/dist/modules/stock/vatTax.d.ts +13 -13
- package/dist/modules/stock/vatTax.js +140 -140
- package/dist/modules/stock/vatTaxZone.d.ts +14 -14
- package/dist/modules/stock/vatTaxZone.js +140 -140
- package/dist/modules/stock/vatValidation.d.ts +4 -4
- package/dist/modules/stock/vatValidation.js +63 -63
- package/dist/modules/stock/websiteRequest.d.ts +10 -10
- package/dist/modules/stock/websiteRequest.js +96 -96
- package/dist/modules/stock/workflow.d.ts +8 -8
- package/dist/modules/stock/workflow.js +103 -103
- package/dist/modules/tickets/channel.d.ts +8 -8
- package/dist/modules/tickets/channel.js +114 -114
- package/dist/modules/tickets/clt.d.ts +7 -7
- package/dist/modules/tickets/clt.js +114 -114
- package/dist/modules/tickets/index.d.ts +3 -3
- package/dist/modules/tickets/index.js +12 -12
- package/dist/modules/tickets/language.d.ts +7 -7
- package/dist/modules/tickets/language.js +114 -114
- package/dist/modules/tickets/tickets.d.ts +10 -10
- package/dist/modules/tickets/tickets.js +92 -92
- package/dist/modules/user/address.d.ts +12 -12
- package/dist/modules/user/address.js +127 -127
- package/dist/modules/user/bankData.d.ts +12 -12
- package/dist/modules/user/bankData.js +127 -127
- package/dist/modules/user/clientType.d.ts +12 -12
- package/dist/modules/user/clientType.js +127 -127
- package/dist/modules/user/clients.d.ts +17 -17
- package/dist/modules/user/clients.js +140 -140
- package/dist/modules/user/commissioner.d.ts +15 -15
- package/dist/modules/user/commissioner.js +140 -140
- package/dist/modules/user/contactTypes.d.ts +12 -12
- package/dist/modules/user/contactTypes.js +127 -127
- package/dist/modules/user/contacts.d.ts +14 -14
- package/dist/modules/user/contacts.js +149 -149
- package/dist/modules/user/country.d.ts +12 -12
- package/dist/modules/user/country.js +140 -140
- package/dist/modules/user/deliveryMethods.d.ts +8 -8
- package/dist/modules/user/deliveryMethods.js +116 -116
- package/dist/modules/user/entityList.d.ts +7 -7
- package/dist/modules/user/entityList.js +105 -105
- package/dist/modules/user/favorites.d.ts +7 -7
- package/dist/modules/user/favorites.js +92 -92
- package/dist/modules/user/groupPermission.d.ts +7 -7
- package/dist/modules/user/groupPermission.js +94 -94
- package/dist/modules/user/index.d.ts +3 -3
- package/dist/modules/user/index.js +12 -12
- package/dist/modules/user/language.d.ts +12 -12
- package/dist/modules/user/language.js +127 -127
- package/dist/modules/user/logout.d.ts +2 -2
- package/dist/modules/user/logout.js +58 -58
- package/dist/modules/user/maturityDates.d.ts +8 -8
- package/dist/modules/user/maturityDates.js +116 -116
- package/dist/modules/user/password.d.ts +5 -5
- package/dist/modules/user/password.js +68 -68
- package/dist/modules/user/paymentCondition.d.ts +11 -11
- package/dist/modules/user/paymentCondition.js +127 -127
- package/dist/modules/user/paymentMethods.d.ts +8 -8
- package/dist/modules/user/paymentMethods.js +116 -116
- package/dist/modules/user/permission.d.ts +7 -7
- package/dist/modules/user/permission.js +94 -94
- package/dist/modules/user/provider.d.ts +15 -15
- package/dist/modules/user/provider.js +153 -153
- package/dist/modules/user/providerType.d.ts +12 -12
- package/dist/modules/user/providerType.js +127 -127
- package/dist/modules/user/purchaseCondition.d.ts +12 -12
- package/dist/modules/user/purchaseCondition.js +127 -127
- package/dist/modules/user/reasonForExemption.d.ts +12 -12
- package/dist/modules/user/reasonForExemption.js +127 -127
- package/dist/modules/user/refreshToken.d.ts +5 -5
- package/dist/modules/user/refreshToken.js +59 -59
- package/dist/modules/user/segmentsArea.d.ts +12 -12
- package/dist/modules/user/segmentsArea.js +127 -127
- package/dist/modules/user/sessions.d.ts +5 -5
- package/dist/modules/user/sessions.js +59 -59
- package/dist/modules/user/shippings.d.ts +11 -11
- package/dist/modules/user/shippings.js +127 -127
- package/dist/modules/user/socialMedia.d.ts +11 -11
- package/dist/modules/user/socialMedia.js +127 -127
- package/dist/modules/user/storeOperator.d.ts +16 -16
- package/dist/modules/user/storeOperator.js +151 -151
- package/dist/modules/user/swift.d.ts +12 -12
- package/dist/modules/user/swift.js +127 -127
- package/dist/modules/user/tenant.d.ts +6 -6
- package/dist/modules/user/tenant.js +92 -92
- package/dist/modules/user/user.d.ts +18 -18
- package/dist/modules/user/user.js +151 -151
- package/dist/modules/user/userPermission.d.ts +7 -7
- package/dist/modules/user/userPermission.js +83 -83
- package/dist/modules/user/userPositions.d.ts +12 -12
- package/dist/modules/user/userPositions.js +127 -127
- package/dist/modules/user/userToken.d.ts +9 -9
- package/dist/modules/user/userToken.js +116 -116
- package/dist/modules/user/vehicles.d.ts +6 -6
- package/dist/modules/user/vehicles.js +92 -92
- package/dist/modules/user/zipCode.d.ts +6 -6
- package/dist/modules/user/zipCode.js +69 -69
- package/dist/modules/view/eventHistory.d.ts +4 -4
- package/dist/modules/view/eventHistory.js +59 -59
- package/dist/modules/view/index.d.ts +2 -2
- package/dist/modules/view/index.js +11 -11
- package/dist/shared/client.d.ts +2 -2
- package/dist/shared/client.js +24 -24
- package/package.json +54 -54
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.getExportCurrentAccountUrl = exports.exportPayments = exports.findSettledMaterialEntranceByDate = exports.exportCurrentAccount = exports.updateDownloadedBatchNumber = exports.findPaymentBatches = exports.findPaymentsNotExported = exports.createProvidersPayments = exports.findSettledMaterialEntranceProviders = exports.findSettledMaterialEntrance = exports.findCurrentAccountByOwnerId = exports.deleteBatch = exports.findById = exports.findByOwnerId = exports.findPaginated = exports.find = exports.publicRoute = exports.route = void 0;
|
|
43
|
-
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var _1 = require(".");
|
|
45
|
-
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "payment/");
|
|
46
|
-
exports.publicRoute = "".concat(_1.serviceHostname).concat(_1.servicePublicPath, "payment/");
|
|
47
|
-
var repository = {
|
|
48
|
-
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
|
-
var response;
|
|
50
|
-
return __generator(this, function (_a) {
|
|
51
|
-
switch (_a.label) {
|
|
52
|
-
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
53
|
-
case 1:
|
|
54
|
-
response = _a.sent();
|
|
55
|
-
return [2, response.data];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}); },
|
|
59
|
-
findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
-
var response;
|
|
61
|
-
return __generator(this, function (_a) {
|
|
62
|
-
switch (_a.label) {
|
|
63
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
|
|
64
|
-
case 1:
|
|
65
|
-
response = _a.sent();
|
|
66
|
-
return [2, response.data];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}); },
|
|
70
|
-
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
-
var response;
|
|
72
|
-
return __generator(this, function (_a) {
|
|
73
|
-
switch (_a.label) {
|
|
74
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "by_owner"), {
|
|
75
|
-
params: params,
|
|
76
|
-
})];
|
|
77
|
-
case 1:
|
|
78
|
-
response = _a.sent();
|
|
79
|
-
return [2, response.data];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}); },
|
|
83
|
-
findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
-
var response;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
switch (_a.label) {
|
|
87
|
-
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
88
|
-
case 1:
|
|
89
|
-
response = _a.sent();
|
|
90
|
-
return [2, response.data];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}); },
|
|
94
|
-
deleteBatch: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
-
var response;
|
|
96
|
-
return __generator(this, function (_a) {
|
|
97
|
-
switch (_a.label) {
|
|
98
|
-
case 0: return [4, client_1.default.delete("".concat(exports.route, "delete_batch").concat(selector.id))];
|
|
99
|
-
case 1:
|
|
100
|
-
response = _a.sent();
|
|
101
|
-
return [2, response.data];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}); },
|
|
105
|
-
findCurrentAccountByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
-
var response;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "current_account"), {
|
|
110
|
-
params: params,
|
|
111
|
-
})];
|
|
112
|
-
case 1:
|
|
113
|
-
response = _a.sent();
|
|
114
|
-
return [2, response.data];
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}); },
|
|
118
|
-
findSettledMaterialEntrance: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
-
var response;
|
|
120
|
-
return __generator(this, function (_a) {
|
|
121
|
-
switch (_a.label) {
|
|
122
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance"), {
|
|
123
|
-
params: params,
|
|
124
|
-
})];
|
|
125
|
-
case 1:
|
|
126
|
-
response = _a.sent();
|
|
127
|
-
return [2, response.data];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}); },
|
|
131
|
-
findSettledMaterialEntranceProviders: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
132
|
-
var response;
|
|
133
|
-
return __generator(this, function (_a) {
|
|
134
|
-
switch (_a.label) {
|
|
135
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance_providers"))];
|
|
136
|
-
case 1:
|
|
137
|
-
response = _a.sent();
|
|
138
|
-
return [2, response.data];
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}); },
|
|
142
|
-
createProvidersPayments: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
143
|
-
return __generator(this, function (_a) {
|
|
144
|
-
switch (_a.label) {
|
|
145
|
-
case 0: return [4, client_1.default.post("".concat(exports.route, "provider"), body)];
|
|
146
|
-
case 1:
|
|
147
|
-
_a.sent();
|
|
148
|
-
return [2];
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}); },
|
|
152
|
-
findPaymentsNotExported: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
-
var response;
|
|
154
|
-
return __generator(this, function (_a) {
|
|
155
|
-
switch (_a.label) {
|
|
156
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "not_exported"))];
|
|
157
|
-
case 1:
|
|
158
|
-
response = _a.sent();
|
|
159
|
-
return [2, response.data];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}); },
|
|
163
|
-
findPaymentBatches: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
-
var response;
|
|
165
|
-
return __generator(this, function (_a) {
|
|
166
|
-
switch (_a.label) {
|
|
167
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "batches"))];
|
|
168
|
-
case 1:
|
|
169
|
-
response = _a.sent();
|
|
170
|
-
return [2, response.data];
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
}); },
|
|
174
|
-
updateDownloadedBatchNumber: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
-
return __generator(this, function (_a) {
|
|
176
|
-
switch (_a.label) {
|
|
177
|
-
case 0: return [4, client_1.default.put("".concat(exports.route, "downloaded_batch_number").concat(params))];
|
|
178
|
-
case 1:
|
|
179
|
-
_a.sent();
|
|
180
|
-
return [2];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}); },
|
|
184
|
-
exportCurrentAccount: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var response;
|
|
186
|
-
return __generator(this, function (_a) {
|
|
187
|
-
switch (_a.label) {
|
|
188
|
-
case 0: return [4, client_1.default.get("".concat(exports.publicRoute, "export_current_account"), {
|
|
189
|
-
params: params,
|
|
190
|
-
})];
|
|
191
|
-
case 1:
|
|
192
|
-
response = _a.sent();
|
|
193
|
-
return [2, response.data];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}); },
|
|
197
|
-
findSettledMaterialEntranceByDate: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
-
var response;
|
|
199
|
-
return __generator(this, function (_a) {
|
|
200
|
-
switch (_a.label) {
|
|
201
|
-
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance_by_date"), {
|
|
202
|
-
params: params,
|
|
203
|
-
})];
|
|
204
|
-
case 1:
|
|
205
|
-
response = _a.sent();
|
|
206
|
-
return [2, response.data];
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
}); },
|
|
210
|
-
exportPayments: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
-
return __generator(this, function (_a) {
|
|
212
|
-
switch (_a.label) {
|
|
213
|
-
case 0: return [4, client_1.default.post("".concat(exports.route, "export_payments"), body)];
|
|
214
|
-
case 1:
|
|
215
|
-
_a.sent();
|
|
216
|
-
return [2];
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}); },
|
|
220
|
-
};
|
|
221
|
-
exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.deleteBatch = repository.deleteBatch, exports.findCurrentAccountByOwnerId = repository.findCurrentAccountByOwnerId, exports.findSettledMaterialEntrance = repository.findSettledMaterialEntrance, exports.findSettledMaterialEntranceProviders = repository.findSettledMaterialEntranceProviders, exports.createProvidersPayments = repository.createProvidersPayments, exports.findPaymentsNotExported = repository.findPaymentsNotExported, exports.findPaymentBatches = repository.findPaymentBatches, exports.updateDownloadedBatchNumber = repository.updateDownloadedBatchNumber, exports.exportCurrentAccount = repository.exportCurrentAccount, exports.findSettledMaterialEntranceByDate = repository.findSettledMaterialEntranceByDate, exports.exportPayments = repository.exportPayments;
|
|
222
|
-
var getExportCurrentAccountUrl = function (_a) {
|
|
223
|
-
var owner_id = _a.owner_id, start_date = _a.start_date, end_date = _a.end_date, token = _a.token;
|
|
224
|
-
var qs = new URLSearchParams();
|
|
225
|
-
qs.set('owner_id', owner_id);
|
|
226
|
-
if (start_date)
|
|
227
|
-
qs.set('start_date', start_date.toISOString());
|
|
228
|
-
if (end_date)
|
|
229
|
-
qs.set('end_date', end_date.toISOString());
|
|
230
|
-
qs.set('token', token);
|
|
231
|
-
return "".concat(exports.publicRoute, "export_current_account?").concat(qs.toString());
|
|
232
|
-
};
|
|
233
|
-
exports.getExportCurrentAccountUrl = getExportCurrentAccountUrl;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.getExportCurrentAccountUrl = exports.exportPayments = exports.findSettledMaterialEntranceByDate = exports.exportCurrentAccount = exports.updateDownloadedBatchNumber = exports.findPaymentBatches = exports.findPaymentsNotExported = exports.createProvidersPayments = exports.findSettledMaterialEntranceProviders = exports.findSettledMaterialEntrance = exports.findCurrentAccountByOwnerId = exports.deleteBatch = exports.findById = exports.findByOwnerId = exports.findPaginated = exports.find = exports.publicRoute = exports.route = void 0;
|
|
43
|
+
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
+
var _1 = require(".");
|
|
45
|
+
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "payment/");
|
|
46
|
+
exports.publicRoute = "".concat(_1.serviceHostname).concat(_1.servicePublicPath, "payment/");
|
|
47
|
+
var repository = {
|
|
48
|
+
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
|
+
var response;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
switch (_a.label) {
|
|
52
|
+
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
53
|
+
case 1:
|
|
54
|
+
response = _a.sent();
|
|
55
|
+
return [2, response.data];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}); },
|
|
59
|
+
findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var response;
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
switch (_a.label) {
|
|
63
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
|
|
64
|
+
case 1:
|
|
65
|
+
response = _a.sent();
|
|
66
|
+
return [2, response.data];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}); },
|
|
70
|
+
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
+
var response;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
switch (_a.label) {
|
|
74
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_owner"), {
|
|
75
|
+
params: params,
|
|
76
|
+
})];
|
|
77
|
+
case 1:
|
|
78
|
+
response = _a.sent();
|
|
79
|
+
return [2, response.data];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}); },
|
|
83
|
+
findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
88
|
+
case 1:
|
|
89
|
+
response = _a.sent();
|
|
90
|
+
return [2, response.data];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}); },
|
|
94
|
+
deleteBatch: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var response;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route, "delete_batch").concat(selector.id))];
|
|
99
|
+
case 1:
|
|
100
|
+
response = _a.sent();
|
|
101
|
+
return [2, response.data];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}); },
|
|
105
|
+
findCurrentAccountByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "current_account"), {
|
|
110
|
+
params: params,
|
|
111
|
+
})];
|
|
112
|
+
case 1:
|
|
113
|
+
response = _a.sent();
|
|
114
|
+
return [2, response.data];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}); },
|
|
118
|
+
findSettledMaterialEntrance: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
+
var response;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance"), {
|
|
123
|
+
params: params,
|
|
124
|
+
})];
|
|
125
|
+
case 1:
|
|
126
|
+
response = _a.sent();
|
|
127
|
+
return [2, response.data];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}); },
|
|
131
|
+
findSettledMaterialEntranceProviders: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
132
|
+
var response;
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
switch (_a.label) {
|
|
135
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance_providers"))];
|
|
136
|
+
case 1:
|
|
137
|
+
response = _a.sent();
|
|
138
|
+
return [2, response.data];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}); },
|
|
142
|
+
createProvidersPayments: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
switch (_a.label) {
|
|
145
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "provider"), body)];
|
|
146
|
+
case 1:
|
|
147
|
+
_a.sent();
|
|
148
|
+
return [2];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}); },
|
|
152
|
+
findPaymentsNotExported: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
+
var response;
|
|
154
|
+
return __generator(this, function (_a) {
|
|
155
|
+
switch (_a.label) {
|
|
156
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "not_exported"))];
|
|
157
|
+
case 1:
|
|
158
|
+
response = _a.sent();
|
|
159
|
+
return [2, response.data];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}); },
|
|
163
|
+
findPaymentBatches: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
+
var response;
|
|
165
|
+
return __generator(this, function (_a) {
|
|
166
|
+
switch (_a.label) {
|
|
167
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "batches"))];
|
|
168
|
+
case 1:
|
|
169
|
+
response = _a.sent();
|
|
170
|
+
return [2, response.data];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}); },
|
|
174
|
+
updateDownloadedBatchNumber: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0: return [4, client_1.default.put("".concat(exports.route, "downloaded_batch_number").concat(params))];
|
|
178
|
+
case 1:
|
|
179
|
+
_a.sent();
|
|
180
|
+
return [2];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}); },
|
|
184
|
+
exportCurrentAccount: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
+
var response;
|
|
186
|
+
return __generator(this, function (_a) {
|
|
187
|
+
switch (_a.label) {
|
|
188
|
+
case 0: return [4, client_1.default.get("".concat(exports.publicRoute, "export_current_account"), {
|
|
189
|
+
params: params,
|
|
190
|
+
})];
|
|
191
|
+
case 1:
|
|
192
|
+
response = _a.sent();
|
|
193
|
+
return [2, response.data];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}); },
|
|
197
|
+
findSettledMaterialEntranceByDate: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
+
var response;
|
|
199
|
+
return __generator(this, function (_a) {
|
|
200
|
+
switch (_a.label) {
|
|
201
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "settled_material_entrance_by_date"), {
|
|
202
|
+
params: params,
|
|
203
|
+
})];
|
|
204
|
+
case 1:
|
|
205
|
+
response = _a.sent();
|
|
206
|
+
return [2, response.data];
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}); },
|
|
210
|
+
exportPayments: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
+
return __generator(this, function (_a) {
|
|
212
|
+
switch (_a.label) {
|
|
213
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "export_payments"), body)];
|
|
214
|
+
case 1:
|
|
215
|
+
_a.sent();
|
|
216
|
+
return [2];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}); },
|
|
220
|
+
};
|
|
221
|
+
exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.deleteBatch = repository.deleteBatch, exports.findCurrentAccountByOwnerId = repository.findCurrentAccountByOwnerId, exports.findSettledMaterialEntrance = repository.findSettledMaterialEntrance, exports.findSettledMaterialEntranceProviders = repository.findSettledMaterialEntranceProviders, exports.createProvidersPayments = repository.createProvidersPayments, exports.findPaymentsNotExported = repository.findPaymentsNotExported, exports.findPaymentBatches = repository.findPaymentBatches, exports.updateDownloadedBatchNumber = repository.updateDownloadedBatchNumber, exports.exportCurrentAccount = repository.exportCurrentAccount, exports.findSettledMaterialEntranceByDate = repository.findSettledMaterialEntranceByDate, exports.exportPayments = repository.exportPayments;
|
|
222
|
+
var getExportCurrentAccountUrl = function (_a) {
|
|
223
|
+
var owner_id = _a.owner_id, start_date = _a.start_date, end_date = _a.end_date, token = _a.token;
|
|
224
|
+
var qs = new URLSearchParams();
|
|
225
|
+
qs.set('owner_id', owner_id);
|
|
226
|
+
if (start_date)
|
|
227
|
+
qs.set('start_date', start_date.toISOString());
|
|
228
|
+
if (end_date)
|
|
229
|
+
qs.set('end_date', end_date.toISOString());
|
|
230
|
+
qs.set('token', token);
|
|
231
|
+
return "".concat(exports.publicRoute, "export_current_account?").concat(qs.toString());
|
|
232
|
+
};
|
|
233
|
+
exports.getExportCurrentAccountUrl = getExportCurrentAccountUrl;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { shared, Plot as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IPlotVirtuals = Entity.IPlotVirtuals;
|
|
3
|
-
export import IPlotVirtualExtended = Entity.IPlotVirtualExtended;
|
|
4
|
-
export import IFindOptionalByOwnerIdRequest = shared.IFindOptionalByOwnerIdRequest;
|
|
5
|
-
export import IFindPlotsToReturnResponse = Entity.IFindPlotsToReturnResponse;
|
|
6
|
-
export import IDisassociatePlot = Entity.IDisassociatePlot;
|
|
7
|
-
export import IInventoryLossResponse = Entity.IInventoryLossResponse;
|
|
8
|
-
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
9
|
-
export import IFindByOwnerIdResponse = Entity.IFindByOwnerIdResponse;
|
|
10
|
-
export import IFindByIdRequest = shared.IFindByIdRequest;
|
|
11
|
-
export import IFindPlotsInPrisonResponse = Entity.IFindPlotsInPrisonResponse;
|
|
12
|
-
export import IFoldPlotRequest = Entity.IFoldPlotRequest;
|
|
13
|
-
export import IFoldPlotResponse = Entity.IFoldPlotResponse;
|
|
14
|
-
export import IUnfoldPlotRequest = Entity.IUnfoldPlotRequest;
|
|
15
|
-
export import IUnfoldPlotResponse = Entity.IUnfoldPlotResponse;
|
|
16
|
-
export import ICheckPlotInPrisonOptions = Entity.ICheckPlotInPrisonOptions;
|
|
17
|
-
export import ICheckPlotInPrisonPlotsRequest = Entity.ICheckPlotInPrisonPlotsRequest;
|
|
18
|
-
export import ICheckPlotInPrisonRequest = Entity.ICheckPlotInPrisonRequest;
|
|
19
|
-
export import ICheckPlotsToReturnOptions = Entity.ICheckPlotsToReturnOptions;
|
|
20
|
-
export import ICheckPlotsToReturnPlotsRequest = Entity.ICheckPlotsToReturnPlotsRequest;
|
|
21
|
-
export import ICheckPlotsToReturnRequest = Entity.ICheckPlotsToReturnRequest;
|
|
22
|
-
export import IEntity = Entity.Entity;
|
|
23
|
-
export import ICreateInventoryRequest = Entity.ICreateInventoryRequest;
|
|
24
|
-
export import IFindDetailedResponse = Entity.IFindDetailedResponse;
|
|
25
|
-
export import ILabelOrigin = Entity.ILabelOrigin;
|
|
26
|
-
export import IPrintLabelParamsRequest = Entity.IPrintLabelParamsRequest;
|
|
27
|
-
export import IPrintLabelQueryRequest = Entity.IPrintLabelQueryRequest;
|
|
28
|
-
export declare const route: string;
|
|
29
|
-
export declare const publicRoute: string;
|
|
30
|
-
export declare const LabelOriginEnum: {
|
|
31
|
-
'Entrada de Material': "Entrada de Material";
|
|
32
|
-
Parcela: "Parcela";
|
|
33
|
-
}, checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"], checkPlotsToReturnOptions: readonly ["Por tratar", "Levantar", "Enviar email", "Quebrar", "Devolver a stock"], labelOrigins: string[];
|
|
34
|
-
export declare const printLabelToPdfUrl: ({ product_id, plot_id, label_origin }: IPrintLabelParamsRequest, { quantity }: IPrintLabelQueryRequest, token: string) => string;
|
|
35
|
-
export declare const findPlotsToReturn: (params: shared.IFindOptionalByOwnerIdRequest) => Promise<Entity.IFindPlotsToReturnResponse[]>, findPlotsToReturnProviders: () => Promise<shared.IFindMinifiedResponse[]>, disassociatePlot: (data: Entity.IDisassociatePlot) => Promise<void>, findInventoryLosses: () => Promise<Entity.IInventoryLossResponse[]>, findInventoryLossesProviders: () => Promise<shared.IFindMinifiedResponse[]>, checkPlotsToReturn: (params: Entity.ICheckPlotsToReturnRequest, user_id: string, location_id: string) => Promise<void>, checkPlotInPrison: (params: Entity.ICheckPlotInPrisonRequest, user_id: string, location_id: string) => Promise<void>, putPlotInPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, removePlotFromPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (id: string) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findPlotsInPrison: () => Promise<Entity.IFindPlotsInPrisonResponse[]>, findPlotsInPrisonProviders: () => Promise<shared.IFindMinifiedResponse[]>, unfoldPlot: (unfoldPlot: Entity.IUnfoldPlotRequest) => Promise<Entity.IUnfoldPlotResponse>, foldPlot: (data: Entity.IFoldPlotRequest) => Promise<Entity.IFoldPlotResponse>, createInventory: (data: Entity.ICreateInventoryRequest, user_id: string, location_id: string) => Promise<void>;
|
|
1
|
+
import { shared, Plot as Entity } from '@nomalism-com/types';
|
|
2
|
+
export import IPlotVirtuals = Entity.IPlotVirtuals;
|
|
3
|
+
export import IPlotVirtualExtended = Entity.IPlotVirtualExtended;
|
|
4
|
+
export import IFindOptionalByOwnerIdRequest = shared.IFindOptionalByOwnerIdRequest;
|
|
5
|
+
export import IFindPlotsToReturnResponse = Entity.IFindPlotsToReturnResponse;
|
|
6
|
+
export import IDisassociatePlot = Entity.IDisassociatePlot;
|
|
7
|
+
export import IInventoryLossResponse = Entity.IInventoryLossResponse;
|
|
8
|
+
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
9
|
+
export import IFindByOwnerIdResponse = Entity.IFindByOwnerIdResponse;
|
|
10
|
+
export import IFindByIdRequest = shared.IFindByIdRequest;
|
|
11
|
+
export import IFindPlotsInPrisonResponse = Entity.IFindPlotsInPrisonResponse;
|
|
12
|
+
export import IFoldPlotRequest = Entity.IFoldPlotRequest;
|
|
13
|
+
export import IFoldPlotResponse = Entity.IFoldPlotResponse;
|
|
14
|
+
export import IUnfoldPlotRequest = Entity.IUnfoldPlotRequest;
|
|
15
|
+
export import IUnfoldPlotResponse = Entity.IUnfoldPlotResponse;
|
|
16
|
+
export import ICheckPlotInPrisonOptions = Entity.ICheckPlotInPrisonOptions;
|
|
17
|
+
export import ICheckPlotInPrisonPlotsRequest = Entity.ICheckPlotInPrisonPlotsRequest;
|
|
18
|
+
export import ICheckPlotInPrisonRequest = Entity.ICheckPlotInPrisonRequest;
|
|
19
|
+
export import ICheckPlotsToReturnOptions = Entity.ICheckPlotsToReturnOptions;
|
|
20
|
+
export import ICheckPlotsToReturnPlotsRequest = Entity.ICheckPlotsToReturnPlotsRequest;
|
|
21
|
+
export import ICheckPlotsToReturnRequest = Entity.ICheckPlotsToReturnRequest;
|
|
22
|
+
export import IEntity = Entity.Entity;
|
|
23
|
+
export import ICreateInventoryRequest = Entity.ICreateInventoryRequest;
|
|
24
|
+
export import IFindDetailedResponse = Entity.IFindDetailedResponse;
|
|
25
|
+
export import ILabelOrigin = Entity.ILabelOrigin;
|
|
26
|
+
export import IPrintLabelParamsRequest = Entity.IPrintLabelParamsRequest;
|
|
27
|
+
export import IPrintLabelQueryRequest = Entity.IPrintLabelQueryRequest;
|
|
28
|
+
export declare const route: string;
|
|
29
|
+
export declare const publicRoute: string;
|
|
30
|
+
export declare const LabelOriginEnum: {
|
|
31
|
+
'Entrada de Material': "Entrada de Material";
|
|
32
|
+
Parcela: "Parcela";
|
|
33
|
+
}, checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"], checkPlotsToReturnOptions: readonly ["Por tratar", "Levantar", "Enviar email", "Quebrar", "Devolver a stock"], labelOrigins: string[];
|
|
34
|
+
export declare const printLabelToPdfUrl: ({ product_id, plot_id, label_origin }: IPrintLabelParamsRequest, { quantity }: IPrintLabelQueryRequest, token: string) => string;
|
|
35
|
+
export declare const findPlotsToReturn: (params: shared.IFindOptionalByOwnerIdRequest) => Promise<Entity.IFindPlotsToReturnResponse[]>, findPlotsToReturnProviders: () => Promise<shared.IFindMinifiedResponse[]>, disassociatePlot: (data: Entity.IDisassociatePlot) => Promise<void>, findInventoryLosses: () => Promise<Entity.IInventoryLossResponse[]>, findInventoryLossesProviders: () => Promise<shared.IFindMinifiedResponse[]>, checkPlotsToReturn: (params: Entity.ICheckPlotsToReturnRequest, user_id: string, location_id: string) => Promise<void>, checkPlotInPrison: (params: Entity.ICheckPlotInPrisonRequest, user_id: string, location_id: string) => Promise<void>, putPlotInPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, removePlotFromPrison: (params: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (id: string) => Promise<import("@nomalism-com/types/dist/shared/entities").Plot | null>, findPlotsInPrison: () => Promise<Entity.IFindPlotsInPrisonResponse[]>, findPlotsInPrisonProviders: () => Promise<shared.IFindMinifiedResponse[]>, unfoldPlot: (unfoldPlot: Entity.IUnfoldPlotRequest) => Promise<Entity.IUnfoldPlotResponse>, foldPlot: (data: Entity.IFoldPlotRequest) => Promise<Entity.IFoldPlotResponse>, createInventory: (data: Entity.ICreateInventoryRequest, user_id: string, location_id: string) => Promise<void>;
|