@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,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
var _a;
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.updateBodyRequest = exports.createBodyRequest = void 0;
|
|
8
|
-
var joi_1 = __importDefault(require("joi"));
|
|
9
|
-
var messages_1 = require("../../../shared/messages");
|
|
10
|
-
var interface_1 = require("./interface");
|
|
11
|
-
var createBodyRequestKeys = {
|
|
12
|
-
name: joi_1.default.string().required(),
|
|
13
|
-
entity: (_a = joi_1.default
|
|
14
|
-
.string()
|
|
15
|
-
.required())
|
|
16
|
-
.valid.apply(_a, Object.values(interface_1.EValidEntityName)),
|
|
17
|
-
list_item: joi_1.default.array().items(joi_1.default.string().uuid()).required(),
|
|
18
|
-
};
|
|
19
|
-
exports.createBodyRequest = joi_1.default
|
|
20
|
-
.object()
|
|
21
|
-
.keys(createBodyRequestKeys)
|
|
22
|
-
.messages(messages_1.messages);
|
|
23
|
-
var updateBodyRequestKeys = {
|
|
24
|
-
name: joi_1.default.string().optional(),
|
|
25
|
-
list_item: joi_1.default.array().optional(),
|
|
26
|
-
};
|
|
27
|
-
exports.updateBodyRequest = joi_1.default
|
|
28
|
-
.object()
|
|
29
|
-
.keys(updateBodyRequestKeys)
|
|
30
|
-
.messages(messages_1.messages);
|
|
@@ -1,69 +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
|
-
var _a, _b;
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.findBodyResponse = exports.createUpdateDeleteBodyResponse = void 0;
|
|
42
|
-
var joi_1 = __importDefault(require("joi"));
|
|
43
|
-
var IShared = __importStar(require("../../../shared/interface"));
|
|
44
|
-
var interface_1 = require("./interface");
|
|
45
|
-
var createUpdateDeleteBodyResponseKeys = {
|
|
46
|
-
id: joi_1.default.string().uuid().required(),
|
|
47
|
-
user_id: joi_1.default.string().required(),
|
|
48
|
-
entity: (_a = joi_1.default
|
|
49
|
-
.string()
|
|
50
|
-
.required())
|
|
51
|
-
.valid.apply(_a, Object.values(interface_1.EValidEntityName)),
|
|
52
|
-
name: joi_1.default.string().required(),
|
|
53
|
-
list_item: joi_1.default.array().items(joi_1.default.string().uuid()).required(),
|
|
54
|
-
};
|
|
55
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
56
|
-
var findBodyResponseKeys = {
|
|
57
|
-
id: joi_1.default.string().uuid().required(),
|
|
58
|
-
user_id: joi_1.default.string().required(),
|
|
59
|
-
entity: (_b = joi_1.default
|
|
60
|
-
.string()
|
|
61
|
-
.required())
|
|
62
|
-
.valid.apply(_b, Object.values(interface_1.EValidEntityName)),
|
|
63
|
-
name: joi_1.default.string().required(),
|
|
64
|
-
list_item: joi_1.default.array().items(joi_1.default.string().uuid()).required(),
|
|
65
|
-
};
|
|
66
|
-
exports.findBodyResponse = joi_1.default
|
|
67
|
-
.array()
|
|
68
|
-
.items(__assign(__assign({}, findBodyResponseKeys), IShared.joiValidateStamps))
|
|
69
|
-
.required();
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export declare const createPost: {
|
|
2
|
-
tags: string[];
|
|
3
|
-
summary: string;
|
|
4
|
-
description: string;
|
|
5
|
-
requestBody: {
|
|
6
|
-
content: {
|
|
7
|
-
'application/json': {
|
|
8
|
-
schema: {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
responses: {
|
|
15
|
-
'200': {
|
|
16
|
-
description: string;
|
|
17
|
-
content: {
|
|
18
|
-
'application/json': {
|
|
19
|
-
schema: {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const deletePost: {
|
|
28
|
-
tags: string[];
|
|
29
|
-
summary: string;
|
|
30
|
-
description: string;
|
|
31
|
-
parameters: {
|
|
32
|
-
name: string;
|
|
33
|
-
in: string;
|
|
34
|
-
description: string;
|
|
35
|
-
required: boolean;
|
|
36
|
-
schema: {
|
|
37
|
-
type: string;
|
|
38
|
-
format: string;
|
|
39
|
-
};
|
|
40
|
-
}[];
|
|
41
|
-
responses: {
|
|
42
|
-
'200': {
|
|
43
|
-
description: string;
|
|
44
|
-
content: {
|
|
45
|
-
'application/json': {
|
|
46
|
-
schema: {
|
|
47
|
-
[x: string]: any;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export declare const sw: {
|
|
55
|
-
'/contacts': {
|
|
56
|
-
post: {
|
|
57
|
-
tags: string[];
|
|
58
|
-
summary: string;
|
|
59
|
-
description: string;
|
|
60
|
-
requestBody: {
|
|
61
|
-
content: {
|
|
62
|
-
'application/json': {
|
|
63
|
-
schema: {
|
|
64
|
-
[x: string]: any;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
responses: {
|
|
70
|
-
'200': {
|
|
71
|
-
description: string;
|
|
72
|
-
content: {
|
|
73
|
-
'application/json': {
|
|
74
|
-
schema: {
|
|
75
|
-
[x: string]: any;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
'/contacts/{id}': {
|
|
84
|
-
delete: {
|
|
85
|
-
tags: string[];
|
|
86
|
-
summary: string;
|
|
87
|
-
description: string;
|
|
88
|
-
parameters: {
|
|
89
|
-
name: string;
|
|
90
|
-
in: string;
|
|
91
|
-
description: string;
|
|
92
|
-
required: boolean;
|
|
93
|
-
schema: {
|
|
94
|
-
type: string;
|
|
95
|
-
format: string;
|
|
96
|
-
};
|
|
97
|
-
}[];
|
|
98
|
-
responses: {
|
|
99
|
-
'200': {
|
|
100
|
-
description: string;
|
|
101
|
-
content: {
|
|
102
|
-
'application/json': {
|
|
103
|
-
schema: {
|
|
104
|
-
[x: string]: any;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
@@ -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.sw = exports.deletePost = exports.createPost = void 0;
|
|
41
|
-
var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
|
|
42
|
-
var route_schema_1 = require("./route.schema");
|
|
43
|
-
var tests_1 = require("./tests");
|
|
44
|
-
var interfaces = __importStar(require("./interfaces"));
|
|
45
|
-
var createSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
|
|
46
|
-
var createSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.createUpdateDeleteBodyResponse).swagger;
|
|
47
|
-
exports.createPost = {
|
|
48
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
49
|
-
summary: "Create ".concat(interfaces.Route),
|
|
50
|
-
description: "Create a new ".concat(interfaces.Route),
|
|
51
|
-
requestBody: {
|
|
52
|
-
content: {
|
|
53
|
-
'application/json': {
|
|
54
|
-
schema: __assign({}, createSchema),
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
responses: {
|
|
59
|
-
'200': {
|
|
60
|
-
description: 'Create with success',
|
|
61
|
-
content: {
|
|
62
|
-
'application/json': {
|
|
63
|
-
schema: __assign({}, createSchemaResponse),
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
exports.deletePost = {
|
|
70
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
71
|
-
summary: "Delete ".concat(interfaces.Route),
|
|
72
|
-
description: "Delete an existing ".concat(interfaces.Route),
|
|
73
|
-
parameters: [
|
|
74
|
-
{
|
|
75
|
-
name: 'id',
|
|
76
|
-
in: 'path',
|
|
77
|
-
description: "ID of ".concat(interfaces.Route, " to return"),
|
|
78
|
-
required: true,
|
|
79
|
-
schema: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
format: 'uuid',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
responses: {
|
|
86
|
-
'200': {
|
|
87
|
-
description: 'Delete with success',
|
|
88
|
-
content: {
|
|
89
|
-
'application/json': {
|
|
90
|
-
schema: __assign({}, createSchemaResponse),
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
exports.sw = {
|
|
97
|
-
'/contacts': {
|
|
98
|
-
post: __assign({}, exports.createPost),
|
|
99
|
-
},
|
|
100
|
-
'/contacts/{id}': {
|
|
101
|
-
delete: __assign({}, exports.deletePost),
|
|
102
|
-
},
|
|
103
|
-
};
|
|
@@ -1,48 +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.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
|
-
user_id: joi_1.default.string().uuid().required(),
|
|
46
|
-
url: joi_1.default.string().required(),
|
|
47
|
-
};
|
|
48
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare const createPost: {
|
|
2
|
-
tags: string[];
|
|
3
|
-
summary: string;
|
|
4
|
-
description: string;
|
|
5
|
-
requestBody: {
|
|
6
|
-
content: {
|
|
7
|
-
'application/json': {
|
|
8
|
-
schema: {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
responses: {
|
|
15
|
-
'200': {
|
|
16
|
-
description: string;
|
|
17
|
-
content: {
|
|
18
|
-
'application/json': {
|
|
19
|
-
schema: {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const sw: {
|
|
28
|
-
'/group_permissions': {
|
|
29
|
-
post: {
|
|
30
|
-
tags: string[];
|
|
31
|
-
summary: string;
|
|
32
|
-
description: string;
|
|
33
|
-
requestBody: {
|
|
34
|
-
content: {
|
|
35
|
-
'application/json': {
|
|
36
|
-
schema: {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
responses: {
|
|
43
|
-
'200': {
|
|
44
|
-
description: string;
|
|
45
|
-
content: {
|
|
46
|
-
'application/json': {
|
|
47
|
-
schema: {
|
|
48
|
-
[x: string]: any;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
@@ -1,73 +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.createPost = void 0;
|
|
41
|
-
var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
|
|
42
|
-
var route_schema_1 = require("./route.schema");
|
|
43
|
-
var tests_1 = require("./tests");
|
|
44
|
-
var interfaces = __importStar(require("./interface"));
|
|
45
|
-
var createSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
|
|
46
|
-
var createSchemaResponse = (0, joi_to_swagger_1.default)(tests_1.createUpdateDeleteBodyResponse).swagger;
|
|
47
|
-
exports.createPost = {
|
|
48
|
-
tags: ["".concat(interfaces.UpperName)],
|
|
49
|
-
summary: "Create ".concat(interfaces.Route),
|
|
50
|
-
description: "Create a new ".concat(interfaces.Route),
|
|
51
|
-
requestBody: {
|
|
52
|
-
content: {
|
|
53
|
-
'application/json': {
|
|
54
|
-
schema: __assign({}, createSchema),
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
responses: {
|
|
59
|
-
'200': {
|
|
60
|
-
description: 'Create with success',
|
|
61
|
-
content: {
|
|
62
|
-
'application/json': {
|
|
63
|
-
schema: __assign({}, createSchemaResponse),
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
exports.sw = {
|
|
70
|
-
'/group_permissions': {
|
|
71
|
-
post: __assign({}, exports.createPost),
|
|
72
|
-
},
|
|
73
|
-
};
|
|
@@ -1,49 +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.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.number().required(),
|
|
45
|
-
code: joi_1.default.string().required(),
|
|
46
|
-
description: joi_1.default.string().required(),
|
|
47
|
-
enable: joi_1.default.boolean().required(),
|
|
48
|
-
};
|
|
49
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|