@nomalism-com/types 0.17.56 → 0.18.1
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 +1 -87
- package/dist/index.js +6 -179
- package/dist/index.min.js +1 -0
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +4 -5
- package/dist/modules/supply/documentHeader/interfaces.d.ts +1 -0
- package/package.json +10 -11
- package/dist/modules/document/materialEntrance/tests.d.ts +0 -0
- package/dist/modules/document/materialEntrance/tests.js +0 -1
- package/dist/modules/document/purchase/tests.d.ts +0 -0
- package/dist/modules/document/purchase/tests.js +0 -1
- package/dist/modules/documentManagement/multimedia/oas.schema.d.ts +0 -108
- package/dist/modules/documentManagement/multimedia/oas.schema.js +0 -71
- package/dist/modules/documentManagement/multimedia/tests.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/tests.js +0 -53
- package/dist/modules/integration/dynamicData/interfaces.d.ts +0 -29
- package/dist/modules/integration/dynamicData/interfaces.js +0 -6
- package/dist/modules/integration/dynamicData/route.schema.d.ts +0 -4
- package/dist/modules/integration/dynamicData/route.schema.js +0 -25
- package/dist/modules/integration/field/oas.schema.d.ts +0 -224
- package/dist/modules/integration/field/oas.schema.js +0 -135
- package/dist/modules/integration/field/tests.d.ts +0 -3
- package/dist/modules/integration/field/tests.js +0 -57
- package/dist/modules/integration/fieldGroup/oas.schema.d.ts +0 -241
- package/dist/modules/integration/fieldGroup/oas.schema.js +0 -155
- package/dist/modules/integration/fieldGroup/tests.d.ts +0 -6
- package/dist/modules/integration/fieldGroup/tests.js +0 -66
- package/dist/modules/integration/history/oas.schema.d.ts +0 -399
- package/dist/modules/integration/history/oas.schema.js +0 -141
- package/dist/modules/integration/history/tests.d.ts +0 -0
- package/dist/modules/integration/history/tests.js +0 -1
- package/dist/modules/integration/observation/tests.d.ts +0 -8
- package/dist/modules/integration/observation/tests.js +0 -71
- package/dist/modules/integration/observationType/responseCreate.schema.d.ts +0 -5
- package/dist/modules/integration/observationType/responseCreate.schema.js +0 -47
- package/dist/modules/integration/observationType/tests.d.ts +0 -5
- package/dist/modules/integration/observationType/tests.js +0 -57
- package/dist/modules/integration/taskAttachment/interfaces.d.ts +0 -27
- package/dist/modules/integration/taskAttachment/interfaces.js +0 -6
- package/dist/modules/integration/taskAttachment/oas.schema.d.ts +0 -238
- package/dist/modules/integration/taskAttachment/oas.schema.js +0 -144
- package/dist/modules/integration/taskAttachment/route.schema.d.ts +0 -7
- package/dist/modules/integration/taskAttachment/route.schema.js +0 -21
- package/dist/modules/integration/taskAttachment/tests.d.ts +0 -4
- package/dist/modules/integration/taskAttachment/tests.js +0 -61
- package/dist/modules/integration/taskNote/interface.d.ts +0 -29
- package/dist/modules/integration/taskNote/interface.js +0 -6
- package/dist/modules/integration/taskNote/oas.schema.d.ts +0 -238
- package/dist/modules/integration/taskNote/oas.schema.js +0 -144
- package/dist/modules/integration/taskNote/route.schema.d.ts +0 -9
- package/dist/modules/integration/taskNote/route.schema.js +0 -24
- package/dist/modules/integration/taskNote/tests.d.ts +0 -4
- package/dist/modules/integration/taskNote/tests.js +0 -60
- package/dist/modules/integration/tasks/interfaces.d.ts +0 -68
- package/dist/modules/integration/tasks/interfaces.js +0 -6
- package/dist/modules/integration/tasks/oas.schema.d.ts +0 -618
- package/dist/modules/integration/tasks/oas.schema.js +0 -256
- package/dist/modules/integration/tasks/route.schema.d.ts +0 -14
- package/dist/modules/integration/tasks/route.schema.js +0 -54
- package/dist/modules/integration/tasks/tests.d.ts +0 -4
- package/dist/modules/integration/tasks/tests.js +0 -94
- package/dist/modules/integration/tasksGroup/interfaces.d.ts +0 -30
- package/dist/modules/integration/tasksGroup/interfaces.js +0 -6
- package/dist/modules/integration/tasksGroup/oas.schema.d.ts +0 -270
- package/dist/modules/integration/tasksGroup/oas.schema.js +0 -146
- package/dist/modules/integration/tasksGroup/route.schema.d.ts +0 -3
- package/dist/modules/integration/tasksGroup/route.schema.js +0 -16
- package/dist/modules/integration/tasksGroup/tests.d.ts +0 -5
- package/dist/modules/integration/tasksGroup/tests.js +0 -68
- package/dist/modules/stock/attribute/tests.d.ts +0 -10
- package/dist/modules/stock/attribute/tests.js +0 -102
- package/dist/modules/stock/attributeValue/tests.d.ts +0 -9
- package/dist/modules/stock/attributeValue/tests.js +0 -90
- package/dist/modules/stock/color/tests.d.ts +0 -9
- package/dist/modules/stock/color/tests.js +0 -90
- package/dist/modules/stock/composition/tests.d.ts +0 -9
- package/dist/modules/stock/composition/tests.js +0 -94
- package/dist/modules/stock/compositionMaterial/oas.schema.d.ts +0 -406
- package/dist/modules/stock/compositionMaterial/oas.schema.js +0 -268
- package/dist/modules/stock/compositionMaterial/tests.d.ts +0 -6
- package/dist/modules/stock/compositionMaterial/tests.js +0 -87
- package/dist/modules/stock/location/oas.schema.d.ts +0 -406
- package/dist/modules/stock/location/oas.schema.js +0 -268
- package/dist/modules/stock/location/tests.d.ts +0 -6
- package/dist/modules/stock/location/tests.js +0 -149
- package/dist/modules/stock/maintenance/tests.d.ts +0 -9
- package/dist/modules/stock/maintenance/tests.js +0 -96
- package/dist/modules/stock/maintenanceAssoc/tests.d.ts +0 -9
- package/dist/modules/stock/maintenanceAssoc/tests.js +0 -90
- package/dist/modules/stock/maintenancePreset/tests.d.ts +0 -3
- package/dist/modules/stock/maintenancePreset/tests.js +0 -57
- package/dist/modules/stock/maintenanceType/oas.schema.d.ts +0 -406
- package/dist/modules/stock/maintenanceType/oas.schema.js +0 -268
- package/dist/modules/stock/maintenanceType/tests.d.ts +0 -6
- package/dist/modules/stock/maintenanceType/tests.js +0 -87
- package/dist/modules/stock/primaryColor/oas.schema.d.ts +0 -406
- package/dist/modules/stock/primaryColor/oas.schema.js +0 -268
- package/dist/modules/stock/primaryColor/tests.d.ts +0 -6
- package/dist/modules/stock/primaryColor/tests.js +0 -87
- package/dist/modules/stock/product/tests.d.ts +0 -6
- package/dist/modules/stock/product/tests.js +0 -253
- package/dist/modules/stock/productAttribute/tests.d.ts +0 -9
- package/dist/modules/stock/productAttribute/tests.js +0 -94
- package/dist/modules/stock/productCategory/tests.d.ts +0 -10
- package/dist/modules/stock/productCategory/tests.js +0 -84
- package/dist/modules/stock/productColor/tests.d.ts +0 -9
- package/dist/modules/stock/productColor/tests.js +0 -94
- package/dist/modules/stock/productImage/tests.d.ts +0 -9
- package/dist/modules/stock/productImage/tests.js +0 -92
- package/dist/modules/stock/productName/tests.d.ts +0 -9
- package/dist/modules/stock/productName/tests.js +0 -84
- package/dist/modules/stock/productNamePreset/oas.schema.d.ts +0 -406
- package/dist/modules/stock/productNamePreset/oas.schema.js +0 -268
- package/dist/modules/stock/productNamePreset/tests.d.ts +0 -6
- package/dist/modules/stock/productNamePreset/tests.js +0 -87
- package/dist/modules/stock/productPart/tests.d.ts +0 -9
- package/dist/modules/stock/productPart/tests.js +0 -92
- package/dist/modules/stock/productSubCategory/responseCreate.schema.d.ts +0 -2
- package/dist/modules/stock/productSubCategory/responseCreate.schema.js +0 -50
- package/dist/modules/stock/productSubCategory/tests.d.ts +0 -9
- package/dist/modules/stock/productSubCategory/tests.js +0 -86
- package/dist/modules/stock/productUse/oas.schema.d.ts +0 -397
- package/dist/modules/stock/productUse/oas.schema.js +0 -268
- package/dist/modules/stock/productUse/tests.d.ts +0 -6
- package/dist/modules/stock/productUse/tests.js +0 -91
- package/dist/modules/stock/productUseAssoc/tests.d.ts +0 -9
- package/dist/modules/stock/productUseAssoc/tests.js +0 -90
- package/dist/modules/stock/promotion/tests.d.ts +0 -9
- package/dist/modules/stock/promotion/tests.js +0 -144
- package/dist/modules/stock/promotionAssoc/tests.d.ts +0 -9
- package/dist/modules/stock/promotionAssoc/tests.js +0 -100
- package/dist/modules/stock/similarProduct/tests.d.ts +0 -9
- package/dist/modules/stock/similarProduct/tests.js +0 -94
- package/dist/modules/stock/typeOfInventory/oas.schema.d.ts +0 -406
- package/dist/modules/stock/typeOfInventory/oas.schema.js +0 -268
- package/dist/modules/stock/typeOfInventory/tests.d.ts +0 -9
- package/dist/modules/stock/typeOfInventory/tests.js +0 -91
- package/dist/modules/stock/typeOfLocation/oas.schema.d.ts +0 -406
- package/dist/modules/stock/typeOfLocation/oas.schema.js +0 -268
- package/dist/modules/stock/typeOfLocation/tests.d.ts +0 -6
- package/dist/modules/stock/typeOfLocation/tests.js +0 -87
- package/dist/modules/stock/unitOfMeasure/oas.schema.d.ts +0 -406
- package/dist/modules/stock/unitOfMeasure/oas.schema.js +0 -269
- package/dist/modules/stock/unitOfMeasure/responseCreate.schema.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/responseCreate.schema.js +0 -55
- package/dist/modules/stock/unitOfMeasure/tests.d.ts +0 -9
- package/dist/modules/stock/unitOfMeasure/tests.js +0 -99
- package/dist/modules/stock/vatTax/oas.schema.d.ts +0 -406
- package/dist/modules/stock/vatTax/oas.schema.js +0 -268
- package/dist/modules/stock/vatTax/tests.d.ts +0 -9
- package/dist/modules/stock/vatTax/tests.js +0 -91
- package/dist/modules/stock/vatTaxZone/tests.d.ts +0 -10
- package/dist/modules/stock/vatTaxZone/tests.js +0 -102
- package/dist/modules/supply/counter/tests.d.ts +0 -0
- package/dist/modules/supply/counter/tests.js +0 -1
- package/dist/modules/supply/documentLineAssoc/tests.d.ts +0 -5
- package/dist/modules/supply/documentLineAssoc/tests.js +0 -57
- package/dist/modules/supply/documentLineFolder/tests.d.ts +0 -0
- package/dist/modules/supply/documentLineFolder/tests.js +0 -1
- package/dist/modules/supply/documentType/tests.d.ts +0 -0
- package/dist/modules/supply/documentType/tests.js +0 -1
- package/dist/modules/supply/externalDocumentHeader/tests.d.ts +0 -5
- package/dist/modules/supply/externalDocumentHeader/tests.js +0 -103
- package/dist/modules/supply/payment/tests.d.ts +0 -8
- package/dist/modules/supply/payment/tests.js +0 -102
- package/dist/modules/user/bankData/oas.schema.d.ts +0 -406
- package/dist/modules/user/bankData/oas.schema.js +0 -268
- package/dist/modules/user/bankData/tests.d.ts +0 -6
- package/dist/modules/user/bankData/tests.js +0 -116
- package/dist/modules/user/clientType/oas.schema.d.ts +0 -350
- package/dist/modules/user/clientType/oas.schema.js +0 -237
- package/dist/modules/user/clientType/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/clientType/responseCreate.schema.js +0 -48
- package/dist/modules/user/clientType/tests.d.ts +0 -6
- package/dist/modules/user/clientType/tests.js +0 -71
- package/dist/modules/user/commissioner/oas.schema.d.ts +0 -0
- package/dist/modules/user/commissioner/oas.schema.js +0 -1
- package/dist/modules/user/country/oas.schema.d.ts +0 -350
- package/dist/modules/user/country/oas.schema.js +0 -237
- package/dist/modules/user/country/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/country/responseCreate.schema.js +0 -50
- package/dist/modules/user/country/tests.d.ts +0 -9
- package/dist/modules/user/country/tests.js +0 -75
- package/dist/modules/user/deliveryMethods/tests.d.ts +0 -2
- package/dist/modules/user/deliveryMethods/tests.js +0 -48
- package/dist/modules/user/entityList/interface.d.ts +0 -32
- package/dist/modules/user/entityList/interface.js +0 -14
- package/dist/modules/user/entityList/oas.schema.d.ts +0 -274
- package/dist/modules/user/entityList/oas.schema.js +0 -185
- package/dist/modules/user/entityList/route.schema.d.ts +0 -3
- package/dist/modules/user/entityList/route.schema.js +0 -30
- package/dist/modules/user/entityList/tests.d.ts +0 -3
- package/dist/modules/user/entityList/tests.js +0 -69
- package/dist/modules/user/favorites/oas.schema.d.ts +0 -112
- package/dist/modules/user/favorites/oas.schema.js +0 -103
- package/dist/modules/user/favorites/tests.d.ts +0 -2
- package/dist/modules/user/favorites/tests.js +0 -48
- package/dist/modules/user/groupPermissions/oas.schema.d.ts +0 -56
- package/dist/modules/user/groupPermissions/oas.schema.js +0 -73
- package/dist/modules/user/groupPermissions/tests.d.ts +0 -2
- package/dist/modules/user/groupPermissions/tests.js +0 -49
- package/dist/modules/user/language/oas.schema.d.ts +0 -350
- package/dist/modules/user/language/oas.schema.js +0 -237
- package/dist/modules/user/language/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/language/responseCreate.schema.js +0 -49
- package/dist/modules/user/language/tests.d.ts +0 -6
- package/dist/modules/user/language/tests.js +0 -73
- package/dist/modules/user/maturityDates/tests.d.ts +0 -2
- package/dist/modules/user/maturityDates/tests.js +0 -49
- package/dist/modules/user/paymentConditions/oas.schema.d.ts +0 -406
- package/dist/modules/user/paymentConditions/oas.schema.js +0 -268
- package/dist/modules/user/paymentConditions/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/paymentConditions/responseCreate.schema.js +0 -50
- package/dist/modules/user/paymentConditions/tests.d.ts +0 -7
- package/dist/modules/user/paymentConditions/tests.js +0 -86
- package/dist/modules/user/paymentMethods/tests.d.ts +0 -2
- package/dist/modules/user/paymentMethods/tests.js +0 -52
- package/dist/modules/user/permissions/oas.schema.d.ts +0 -56
- package/dist/modules/user/permissions/oas.schema.js +0 -73
- package/dist/modules/user/permissions/tests.d.ts +0 -2
- package/dist/modules/user/permissions/tests.js +0 -49
- package/dist/modules/user/providerType/oas.schema.d.ts +0 -350
- package/dist/modules/user/providerType/oas.schema.js +0 -237
- package/dist/modules/user/providerType/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/providerType/responseCreate.schema.js +0 -48
- package/dist/modules/user/providerType/tests.d.ts +0 -6
- package/dist/modules/user/providerType/tests.js +0 -71
- package/dist/modules/user/providers/oas.schema.d.ts +0 -0
- package/dist/modules/user/providers/oas.schema.js +0 -1
- package/dist/modules/user/purchaseConditions/oas.schema.d.ts +0 -406
- package/dist/modules/user/purchaseConditions/oas.schema.js +0 -268
- package/dist/modules/user/purchaseConditions/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/purchaseConditions/responseCreate.schema.js +0 -52
- package/dist/modules/user/purchaseConditions/tests.d.ts +0 -7
- package/dist/modules/user/purchaseConditions/tests.js +0 -108
- package/dist/modules/user/reasonForExemption/oas.schema.d.ts +0 -350
- package/dist/modules/user/reasonForExemption/oas.schema.js +0 -237
- package/dist/modules/user/reasonForExemption/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/reasonForExemption/responseCreate.schema.js +0 -51
- package/dist/modules/user/reasonForExemption/tests.d.ts +0 -6
- package/dist/modules/user/reasonForExemption/tests.js +0 -77
- package/dist/modules/user/refreshToken/tests.d.ts +0 -0
- package/dist/modules/user/refreshToken/tests.js +0 -1
- package/dist/modules/user/segmentsArea/oas.schema.d.ts +0 -350
- package/dist/modules/user/segmentsArea/oas.schema.js +0 -237
- package/dist/modules/user/segmentsArea/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/segmentsArea/responseCreate.schema.js +0 -49
- package/dist/modules/user/segmentsArea/tests.d.ts +0 -6
- package/dist/modules/user/segmentsArea/tests.js +0 -73
- package/dist/modules/user/sessions/tests.d.ts +0 -0
- package/dist/modules/user/sessions/tests.js +0 -1
- package/dist/modules/user/shippings/oas.schema.d.ts +0 -406
- package/dist/modules/user/shippings/oas.schema.js +0 -268
- package/dist/modules/user/shippings/responseCreate.shema.d.ts +0 -2
- package/dist/modules/user/shippings/responseCreate.shema.js +0 -52
- package/dist/modules/user/shippings/tests.d.ts +0 -7
- package/dist/modules/user/shippings/tests.js +0 -92
- package/dist/modules/user/socialMedia/oas.schema.d.ts +0 -406
- package/dist/modules/user/socialMedia/oas.schema.js +0 -268
- package/dist/modules/user/socialMedia/tests.d.ts +0 -6
- package/dist/modules/user/socialMedia/tests.js +0 -96
- package/dist/modules/user/swift/oas.schema.d.ts +0 -350
- package/dist/modules/user/swift/oas.schema.js +0 -237
- package/dist/modules/user/swift/tests.d.ts +0 -5
- package/dist/modules/user/swift/tests.js +0 -87
- package/dist/modules/user/userPermissions/oas.schema.d.ts +0 -224
- package/dist/modules/user/userPermissions/oas.schema.js +0 -166
- package/dist/modules/user/userPermissions/tests.d.ts +0 -3
- package/dist/modules/user/userPermissions/tests.js +0 -63
- package/dist/modules/user/userPositions/oas.schema.d.ts +0 -350
- package/dist/modules/user/userPositions/oas.schema.js +0 -237
- package/dist/modules/user/userPositions/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/userPositions/responseCreate.schema.js +0 -48
- package/dist/modules/user/userPositions/tests.d.ts +0 -6
- package/dist/modules/user/userPositions/tests.js +0 -71
- package/dist/modules/user/users/responseCreate.schema.d.ts +0 -2
- package/dist/modules/user/users/responseCreate.schema.js +0 -56
- package/dist/modules/user/vehicles/tests.d.ts +0 -2
- package/dist/modules/user/vehicles/tests.js +0 -49
- package/dist/modules/view/channels/oas.schema.d.ts +0 -0
- package/dist/modules/view/channels/oas.schema.js +0 -1
- package/dist/modules/view/channels/tests.d.ts +0 -0
- package/dist/modules/view/channels/tests.js +0 -1
- package/dist/modules/view/connections/oas.schema.d.ts +0 -0
- package/dist/modules/view/connections/oas.schema.js +0 -1
- package/dist/modules/view/connections/tests.d.ts +0 -0
- package/dist/modules/view/connections/tests.js +0 -1
- package/dist/modules/view/eventHistory/oas.schema.d.ts +0 -0
- package/dist/modules/view/eventHistory/oas.schema.js +0 -1
- package/dist/modules/view/eventHistory/tests.d.ts +0 -0
- package/dist/modules/view/eventHistory/tests.js +0 -1
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.sw = exports.findMinifiedGet = exports.findPaginatedGet = exports.findGet = exports.findByOwnerIdGet = exports.findByIdGet = exports.deletePost = exports.updatePost = exports.createPost = void 0;
|
|
41
|
-
var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
|
|
42
|
-
var interface_1 = require("../../../shared/interface");
|
|
43
|
-
var route_schema_1 = require("./route.schema");
|
|
44
|
-
var tests_1 = require("./tests");
|
|
45
|
-
var interfaces = __importStar(require("./interface"));
|
|
46
|
-
var createSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
|
|
47
|
-
var createSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.createUpdateDeleteBodyResponse).swagger;
|
|
48
|
-
var updateSchema = (0, joi_to_swagger_1.default)(route_schema_1.updateBody).swagger;
|
|
49
|
-
var findByIdSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.findByIdBodyResponse).swagger;
|
|
50
|
-
var findByOwnerIdSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.findOwnerIdBodyResponse).swagger;
|
|
51
|
-
var findSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.findBodyResponse).swagger;
|
|
52
|
-
var findPaginatedSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.findPaginationBodyResponse).swagger;
|
|
53
|
-
var findMinifiedSchemaResponse = (0, joi_to_swagger_1.default)(interface_1.findMinifiedReponse).swagger;
|
|
54
|
-
exports.createPost = {
|
|
55
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
56
|
-
summary: "Create ".concat(interfaces.Route),
|
|
57
|
-
description: "Create a new ".concat(interfaces.Route),
|
|
58
|
-
requestBody: {
|
|
59
|
-
content: {
|
|
60
|
-
'application/json': {
|
|
61
|
-
schema: __assign({}, createSchema),
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
responses: {
|
|
66
|
-
'200': {
|
|
67
|
-
description: 'Create with success',
|
|
68
|
-
content: {
|
|
69
|
-
'application/json': {
|
|
70
|
-
schema: __assign({}, createSchemaResponse),
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
exports.updatePost = {
|
|
77
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
78
|
-
summary: "Update ".concat(interfaces.Route),
|
|
79
|
-
description: "Update a ".concat(interfaces.Route),
|
|
80
|
-
parameters: [
|
|
81
|
-
{
|
|
82
|
-
name: 'id',
|
|
83
|
-
in: 'path',
|
|
84
|
-
description: "ID of ".concat(interfaces.Route, " to return"),
|
|
85
|
-
required: true,
|
|
86
|
-
schema: {
|
|
87
|
-
type: 'string',
|
|
88
|
-
format: 'uuid',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
requestBody: {
|
|
93
|
-
content: {
|
|
94
|
-
'application/json': {
|
|
95
|
-
schema: __assign({}, updateSchema),
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
responses: {
|
|
100
|
-
'200': {
|
|
101
|
-
description: 'Updated with success',
|
|
102
|
-
content: {
|
|
103
|
-
'application/json': {
|
|
104
|
-
schema: __assign({}, createSchemaResponse),
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
exports.deletePost = {
|
|
111
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
112
|
-
summary: "Delete ".concat(interfaces.Route),
|
|
113
|
-
description: "Delete an existing ".concat(interfaces.Route),
|
|
114
|
-
parameters: [
|
|
115
|
-
{
|
|
116
|
-
name: 'id',
|
|
117
|
-
in: 'path',
|
|
118
|
-
description: "ID of ".concat(interfaces.Route, " to return"),
|
|
119
|
-
required: true,
|
|
120
|
-
schema: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
format: 'uuid',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
responses: {
|
|
127
|
-
'200': {
|
|
128
|
-
description: 'Delete with success',
|
|
129
|
-
content: {
|
|
130
|
-
'application/json': {
|
|
131
|
-
schema: __assign({}, createSchemaResponse),
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
exports.findByIdGet = {
|
|
138
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
139
|
-
summary: "Find ".concat(interfaces.Route),
|
|
140
|
-
description: "Find ".concat(interfaces.Route),
|
|
141
|
-
parameters: [
|
|
142
|
-
{
|
|
143
|
-
name: 'id',
|
|
144
|
-
in: 'path',
|
|
145
|
-
description: "ID of ".concat(interfaces.Route, " to return"),
|
|
146
|
-
required: true,
|
|
147
|
-
schema: {
|
|
148
|
-
type: 'string',
|
|
149
|
-
format: 'uuid',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
responses: {
|
|
154
|
-
'200': {
|
|
155
|
-
description: 'Find with success',
|
|
156
|
-
content: {
|
|
157
|
-
'application/json': {
|
|
158
|
-
schema: __assign({}, findByIdSchemaResponse),
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
};
|
|
164
|
-
exports.findByOwnerIdGet = {
|
|
165
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
166
|
-
summary: "Find by Owner Id ".concat(interfaces.Route),
|
|
167
|
-
description: "Find by owner id ".concat(interfaces.Route),
|
|
168
|
-
parameters: [
|
|
169
|
-
{
|
|
170
|
-
name: 'owner_id',
|
|
171
|
-
in: 'path',
|
|
172
|
-
description: "Owner ID of ".concat(interfaces.Route, " to return"),
|
|
173
|
-
required: true,
|
|
174
|
-
schema: {
|
|
175
|
-
type: 'string',
|
|
176
|
-
format: 'uuid',
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
responses: {
|
|
181
|
-
'200': {
|
|
182
|
-
description: 'Find with success',
|
|
183
|
-
content: {
|
|
184
|
-
'application/json': {
|
|
185
|
-
schema: __assign({}, findByOwnerIdSchemaResponse),
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
};
|
|
191
|
-
exports.findGet = {
|
|
192
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
193
|
-
summary: "Find ".concat(interfaces.Route),
|
|
194
|
-
description: "Find ".concat(interfaces.Route),
|
|
195
|
-
parameters: [],
|
|
196
|
-
responses: {
|
|
197
|
-
'200': {
|
|
198
|
-
description: 'Find with success',
|
|
199
|
-
content: {
|
|
200
|
-
'application/json': {
|
|
201
|
-
schema: __assign({}, findSchemaResponse),
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
exports.findPaginatedGet = {
|
|
208
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
209
|
-
summary: "Find pagination ".concat(interfaces.Route),
|
|
210
|
-
description: "Find with pagination ".concat(interfaces.Route),
|
|
211
|
-
parameters: [],
|
|
212
|
-
responses: {
|
|
213
|
-
'200': {
|
|
214
|
-
description: 'Find with success',
|
|
215
|
-
content: {
|
|
216
|
-
'application/json': {
|
|
217
|
-
schema: __assign({}, findPaginatedSchemaResponse),
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
exports.findMinifiedGet = {
|
|
224
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
225
|
-
summary: "Find pagination ".concat(interfaces.Route),
|
|
226
|
-
description: "Find with pagination ".concat(interfaces.Route),
|
|
227
|
-
parameters: [
|
|
228
|
-
{
|
|
229
|
-
name: 'search_value',
|
|
230
|
-
in: 'path',
|
|
231
|
-
description: "Value of ".concat(interfaces.Route, " to return"),
|
|
232
|
-
required: true,
|
|
233
|
-
schema: {
|
|
234
|
-
type: 'string',
|
|
235
|
-
format: 'uuid',
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
responses: {
|
|
240
|
-
'200': {
|
|
241
|
-
description: 'Find with success',
|
|
242
|
-
content: {
|
|
243
|
-
'application/json': {
|
|
244
|
-
schema: __assign({}, findMinifiedSchemaResponse),
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
};
|
|
250
|
-
exports.sw = {
|
|
251
|
-
'/vat_tax': {
|
|
252
|
-
post: __assign({}, exports.createPost),
|
|
253
|
-
},
|
|
254
|
-
'/vat_tax/{id}': {
|
|
255
|
-
put: __assign({}, exports.updatePost),
|
|
256
|
-
get: __assign({}, exports.findByIdGet),
|
|
257
|
-
delete: __assign({}, exports.deletePost),
|
|
258
|
-
},
|
|
259
|
-
'/vat_tax/by_owner': {
|
|
260
|
-
get: __assign({}, exports.findByOwnerIdGet),
|
|
261
|
-
},
|
|
262
|
-
'/vat_tax/paginated': {
|
|
263
|
-
get: __assign({}, exports.findPaginatedGet),
|
|
264
|
-
},
|
|
265
|
-
'/vat_tax/minified': {
|
|
266
|
-
get: __assign({}, exports.findMinifiedGet),
|
|
267
|
-
},
|
|
268
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IFindResponse } from './interface';
|
|
4
|
-
export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const findBodyResponseKeys: IShared.IRouteResponseWithoutStamps<IFindResponse>;
|
|
6
|
-
export declare const findBodyResponse: joi.ArraySchema<any[]>;
|
|
7
|
-
export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
|
|
8
|
-
export declare const findOwnerIdBodyResponse: joi.ArraySchema<any[]>;
|
|
9
|
-
export declare const findPaginationBodyResponse: joi.ObjectSchema<any>;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.findPaginationBodyResponse = exports.findOwnerIdBodyResponse = exports.findByIdBodyResponse = exports.findBodyResponse = exports.findBodyResponseKeys = exports.createUpdateDeleteBodyResponse = void 0;
|
|
41
|
-
var joi_1 = __importDefault(require("joi"));
|
|
42
|
-
var IShared = __importStar(require("../../../shared/interface"));
|
|
43
|
-
var createUpdateDeleteBodyResponseKeys = {
|
|
44
|
-
id: joi_1.default.string().uuid().required(),
|
|
45
|
-
name: joi_1.default.string().required(),
|
|
46
|
-
external_id: joi_1.default.string().required(),
|
|
47
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
48
|
-
};
|
|
49
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
50
|
-
exports.findBodyResponseKeys = {
|
|
51
|
-
id: joi_1.default.string().uuid().required(),
|
|
52
|
-
name: joi_1.default.string().required(),
|
|
53
|
-
external_id: joi_1.default.string().required(),
|
|
54
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
55
|
-
};
|
|
56
|
-
exports.findBodyResponse = joi_1.default
|
|
57
|
-
.array()
|
|
58
|
-
.items(__assign(__assign({}, exports.findBodyResponseKeys), IShared.joiValidateStamps))
|
|
59
|
-
.required();
|
|
60
|
-
var findByIdBodyResponseKeys = {
|
|
61
|
-
id: joi_1.default.string().uuid().required(),
|
|
62
|
-
name: joi_1.default.string().required(),
|
|
63
|
-
external_id: joi_1.default.string().required(),
|
|
64
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
65
|
-
};
|
|
66
|
-
exports.findByIdBodyResponse = joi_1.default
|
|
67
|
-
.object()
|
|
68
|
-
.keys(__assign(__assign({}, findByIdBodyResponseKeys), IShared.joiValidateStamps))
|
|
69
|
-
.allow(null);
|
|
70
|
-
var findOwnerIdBodyResponsekeys = {
|
|
71
|
-
id: joi_1.default.string().uuid().required(),
|
|
72
|
-
name: joi_1.default.string().required(),
|
|
73
|
-
external_id: joi_1.default.string().required(),
|
|
74
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
75
|
-
};
|
|
76
|
-
exports.findOwnerIdBodyResponse = joi_1.default
|
|
77
|
-
.array()
|
|
78
|
-
.items(__assign(__assign({}, findOwnerIdBodyResponsekeys), IShared.joiValidateStamps))
|
|
79
|
-
.required();
|
|
80
|
-
var findPaginatedBodyResponseKeys = {
|
|
81
|
-
per_page: joi_1.default.number().required(),
|
|
82
|
-
current_page: joi_1.default.number().required(),
|
|
83
|
-
total: joi_1.default.number().required(),
|
|
84
|
-
data: joi_1.default
|
|
85
|
-
.array()
|
|
86
|
-
.items(__assign(__assign({}, exports.findBodyResponseKeys), IShared.joiValidateStamps))
|
|
87
|
-
.required(),
|
|
88
|
-
};
|
|
89
|
-
exports.findPaginationBodyResponse = joi_1.default
|
|
90
|
-
.object()
|
|
91
|
-
.keys(findPaginatedBodyResponseKeys);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IFindResponse, IFindByOwnerIdResponse } from './interface';
|
|
4
|
-
export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const findBodyResponseKeys: IShared.IRouteResponseWithoutStamps<IFindResponse>;
|
|
6
|
-
export declare const findBodyResponse: joi.ArraySchema<any[]>;
|
|
7
|
-
export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
|
|
8
|
-
export declare const findOwnerIdBodyResponsekeys: IShared.IRouteResponseWithoutStamps<IFindByOwnerIdResponse>;
|
|
9
|
-
export declare const findOwnerIdBodyResponse: joi.ArraySchema<any[]>;
|
|
10
|
-
export declare const findPaginationBodyResponse: joi.ObjectSchema<any>;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.findPaginationBodyResponse = exports.findOwnerIdBodyResponse = exports.findOwnerIdBodyResponsekeys = exports.findByIdBodyResponse = exports.findBodyResponse = exports.findBodyResponseKeys = exports.createUpdateDeleteBodyResponse = void 0;
|
|
41
|
-
var joi_1 = __importDefault(require("joi"));
|
|
42
|
-
var IShared = __importStar(require("../../../shared/interface"));
|
|
43
|
-
var IVatTaxFindResponse = __importStar(require("../vatTax/tests"));
|
|
44
|
-
var createUpdateDeleteBodyResponseKeys = {
|
|
45
|
-
id: joi_1.default.string().uuid().required(),
|
|
46
|
-
name: joi_1.default.string().required(),
|
|
47
|
-
value: joi_1.default.number().required(),
|
|
48
|
-
vat_tax_id: joi_1.default.string().uuid().required(),
|
|
49
|
-
country_id: joi_1.default.string().uuid().required(),
|
|
50
|
-
external_id: joi_1.default.string().required(),
|
|
51
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
52
|
-
};
|
|
53
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
54
|
-
exports.findBodyResponseKeys = {
|
|
55
|
-
id: joi_1.default.string().uuid().required(),
|
|
56
|
-
name: joi_1.default.string().required(),
|
|
57
|
-
value: joi_1.default.number().required(),
|
|
58
|
-
vat_tax_id: joi_1.default.string().uuid().required(),
|
|
59
|
-
country_id: joi_1.default.string().uuid().required(),
|
|
60
|
-
external_id: joi_1.default.string().required(),
|
|
61
|
-
vat_tax: IVatTaxFindResponse.createUpdateDeleteBodyResponse,
|
|
62
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
63
|
-
};
|
|
64
|
-
exports.findBodyResponse = joi_1.default
|
|
65
|
-
.array()
|
|
66
|
-
.items(__assign(__assign({}, exports.findBodyResponseKeys), IShared.joiValidateStamps))
|
|
67
|
-
.required();
|
|
68
|
-
var findByIdBodyResponseKeys = {
|
|
69
|
-
id: joi_1.default.string().uuid().required(),
|
|
70
|
-
name: joi_1.default.string().required(),
|
|
71
|
-
value: joi_1.default.number().required(),
|
|
72
|
-
vat_tax_id: joi_1.default.string().uuid().required(),
|
|
73
|
-
country_id: joi_1.default.string().uuid().required(),
|
|
74
|
-
external_id: joi_1.default.string().required(),
|
|
75
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
76
|
-
};
|
|
77
|
-
exports.findByIdBodyResponse = joi_1.default
|
|
78
|
-
.object()
|
|
79
|
-
.keys(__assign(__assign({}, findByIdBodyResponseKeys), IShared.joiValidateStamps))
|
|
80
|
-
.allow(null);
|
|
81
|
-
exports.findOwnerIdBodyResponsekeys = {
|
|
82
|
-
id: joi_1.default.string().uuid().required(),
|
|
83
|
-
name: joi_1.default.string().required(),
|
|
84
|
-
value: joi_1.default.number().required(),
|
|
85
|
-
vat_tax_id: joi_1.default.string().uuid().required(),
|
|
86
|
-
country_id: joi_1.default.string().uuid().required(),
|
|
87
|
-
external_id: joi_1.default.string().required(),
|
|
88
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
89
|
-
};
|
|
90
|
-
exports.findOwnerIdBodyResponse = joi_1.default
|
|
91
|
-
.array()
|
|
92
|
-
.items(__assign(__assign({}, exports.findOwnerIdBodyResponsekeys), IShared.joiValidateStamps))
|
|
93
|
-
.required();
|
|
94
|
-
var findPaginatedBodyResponseKeys = {
|
|
95
|
-
per_page: joi_1.default.number().required(),
|
|
96
|
-
current_page: joi_1.default.number().required(),
|
|
97
|
-
total: joi_1.default.number().required(),
|
|
98
|
-
data: joi_1.default.array().items(exports.findBodyResponseKeys).required(),
|
|
99
|
-
};
|
|
100
|
-
exports.findPaginationBodyResponse = joi_1.default
|
|
101
|
-
.object()
|
|
102
|
-
.keys(findPaginatedBodyResponseKeys);
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export declare const postBodyValidator: joi.ObjectSchema<any>;
|
|
3
|
-
export declare const putBodyValidator: joi.ObjectSchema<any>;
|
|
4
|
-
export declare const groupBodyValidator: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const updateManyBodyValidator: joi.ObjectSchema<any>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.updateManyBodyValidator = exports.groupBodyValidator = exports.putBodyValidator = exports.postBodyValidator = void 0;
|
|
7
|
-
var joi_1 = __importDefault(require("joi"));
|
|
8
|
-
exports.postBodyValidator = joi_1.default.object().keys({
|
|
9
|
-
document_header_id: joi_1.default.string().uuid().required(),
|
|
10
|
-
document_line_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
11
|
-
index: joi_1.default.number().integer().default(0).optional(),
|
|
12
|
-
document_line_folder_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
13
|
-
group: joi_1.default.number().allow(null).optional(),
|
|
14
|
-
quantity: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
15
|
-
debit: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
16
|
-
credit: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
17
|
-
tax: joi_1.default.number().positive().allow(0).required(),
|
|
18
|
-
discount: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
19
|
-
data: joi_1.default
|
|
20
|
-
.object()
|
|
21
|
-
.pattern(joi_1.default.string(), joi_1.default.object().keys({
|
|
22
|
-
value: joi_1.default.any().required(),
|
|
23
|
-
updated_by: joi_1.default.date().required(),
|
|
24
|
-
}))
|
|
25
|
-
.optional(),
|
|
26
|
-
});
|
|
27
|
-
exports.putBodyValidator = joi_1.default.object().keys({
|
|
28
|
-
document_line_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
29
|
-
index: joi_1.default.number().integer().optional(),
|
|
30
|
-
document_line_folder_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
31
|
-
group: joi_1.default.number().allow(null).optional(),
|
|
32
|
-
quantity: joi_1.default.number().positive().allow(0).optional(),
|
|
33
|
-
debit: joi_1.default.number().positive().allow(0).optional(),
|
|
34
|
-
credit: joi_1.default.number().positive().allow(0).optional(),
|
|
35
|
-
tax: joi_1.default.number().positive().allow(0).optional(),
|
|
36
|
-
discount: joi_1.default.number().positive().allow(0).optional(),
|
|
37
|
-
data: joi_1.default
|
|
38
|
-
.object()
|
|
39
|
-
.pattern(joi_1.default.string(), joi_1.default.object().keys({
|
|
40
|
-
value: joi_1.default.any().required(),
|
|
41
|
-
updated_at: joi_1.default.date().default(new Date()),
|
|
42
|
-
updated_by: joi_1.default.date().required(),
|
|
43
|
-
}))
|
|
44
|
-
.optional(),
|
|
45
|
-
});
|
|
46
|
-
exports.groupBodyValidator = joi_1.default.object().keys({
|
|
47
|
-
document_line_id: joi_1.default.array().required(),
|
|
48
|
-
});
|
|
49
|
-
exports.updateManyBodyValidator = joi_1.default.object().keys({
|
|
50
|
-
document_line_assoc_ids: joi_1.default.array().items(joi_1.default.string()).required(),
|
|
51
|
-
datafield: joi_1.default.string().required(),
|
|
52
|
-
payload: joi_1.default.object().keys({
|
|
53
|
-
value: joi_1.default.any().required(),
|
|
54
|
-
updated_at: joi_1.default.date().default(new Date()),
|
|
55
|
-
updated_by: joi_1.default.string().required(),
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export declare const findBodyResponse: joi.ArraySchema<any[]>;
|
|
3
|
-
export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
|
|
4
|
-
export declare const findOwnerIdBodyResponse: joi.ArraySchema<any[]>;
|
|
5
|
-
export declare const findPaginationBodyResponse: joi.ObjectSchema<any>;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.findPaginationBodyResponse = exports.findOwnerIdBodyResponse = exports.findByIdBodyResponse = exports.findBodyResponse = void 0;
|
|
41
|
-
var joi_1 = __importDefault(require("joi"));
|
|
42
|
-
var IShared = __importStar(require("../../../shared/interface"));
|
|
43
|
-
var findBodyResponseKeys = {
|
|
44
|
-
id: joi_1.default.string().uuid().required(),
|
|
45
|
-
document_header_id: joi_1.default.string().uuid().required(),
|
|
46
|
-
external_id: joi_1.default.string().required(),
|
|
47
|
-
external_pdf_link: joi_1.default.string().required(),
|
|
48
|
-
pdf_link: joi_1.default.string().required(),
|
|
49
|
-
};
|
|
50
|
-
exports.findBodyResponse = joi_1.default
|
|
51
|
-
.array()
|
|
52
|
-
.items(__assign(__assign({}, findBodyResponseKeys), IShared.joiValidateStamps))
|
|
53
|
-
.required();
|
|
54
|
-
var findByIdBodyResponseKeys = {
|
|
55
|
-
id: joi_1.default.string().uuid().required(),
|
|
56
|
-
document_header_id: joi_1.default.string().uuid().required(),
|
|
57
|
-
external_id: joi_1.default.string().required(),
|
|
58
|
-
external_pdf_link: joi_1.default.string().required(),
|
|
59
|
-
pdf_link: joi_1.default.string().required(),
|
|
60
|
-
};
|
|
61
|
-
exports.findByIdBodyResponse = joi_1.default
|
|
62
|
-
.object()
|
|
63
|
-
.keys(__assign(__assign({}, findByIdBodyResponseKeys), IShared.joiValidateStamps))
|
|
64
|
-
.allow(null);
|
|
65
|
-
var findOwnerIdItemKeys = {
|
|
66
|
-
id: joi_1.default.string().allow(null).required(),
|
|
67
|
-
document_header_id: joi_1.default.string().uuid().required(),
|
|
68
|
-
is_void: joi_1.default.boolean().required(),
|
|
69
|
-
pdf_link: joi_1.default.string().allow(null).required(),
|
|
70
|
-
external_id: joi_1.default.string().allow(null).required(),
|
|
71
|
-
label: joi_1.default.string().required(),
|
|
72
|
-
visible: joi_1.default.boolean().required(),
|
|
73
|
-
loading: joi_1.default.boolean().required(),
|
|
74
|
-
emission_date: joi_1.default.date().required(),
|
|
75
|
-
retryPayload: joi_1.default
|
|
76
|
-
.object({
|
|
77
|
-
document_line_assoc_ids: joi_1.default.array().items(joi_1.default.string()).required(),
|
|
78
|
-
datafield: joi_1.default.string().required(),
|
|
79
|
-
payload: joi_1.default.object().keys({
|
|
80
|
-
value: joi_1.default.any().required(),
|
|
81
|
-
updated_by: joi_1.default.string().uuid().allow(null).optional(),
|
|
82
|
-
}),
|
|
83
|
-
})
|
|
84
|
-
.allow(null)
|
|
85
|
-
.required(),
|
|
86
|
-
};
|
|
87
|
-
var findOwnerIdResponseKeys = __assign(__assign({}, findOwnerIdItemKeys), { older_versions: joi_1.default
|
|
88
|
-
.array()
|
|
89
|
-
.items(__assign({}, findOwnerIdItemKeys))
|
|
90
|
-
.required() });
|
|
91
|
-
exports.findOwnerIdBodyResponse = joi_1.default
|
|
92
|
-
.array()
|
|
93
|
-
.items(__assign(__assign({}, findOwnerIdResponseKeys), IShared.joiValidateStamps))
|
|
94
|
-
.required();
|
|
95
|
-
var findPaginatedBodyResponseKeys = {
|
|
96
|
-
per_page: joi_1.default.number().required(),
|
|
97
|
-
current_page: joi_1.default.number().required(),
|
|
98
|
-
total: joi_1.default.number().required(),
|
|
99
|
-
data: joi_1.default.array().items(findBodyResponseKeys).required(),
|
|
100
|
-
};
|
|
101
|
-
exports.findPaginationBodyResponse = joi_1.default
|
|
102
|
-
.object()
|
|
103
|
-
.keys(findPaginatedBodyResponseKeys);
|