@nomalism-com/types 1.1.0 → 1.1.2
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.js +1518 -1625
- package/package.json +3 -3
- package/dist/index.d.ts +0 -2
- package/dist/main.d.ts +0 -226
- package/dist/modules/document/billOfLading/interfaces.d.ts +0 -22
- package/dist/modules/document/billOfLading/route.schema.d.ts +0 -2
- package/dist/modules/document/inventario/interface.d.ts +0 -15
- package/dist/modules/document/inventario/route.schema.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -134
- package/dist/modules/document/materialEntrance/route.schema.d.ts +0 -7
- package/dist/modules/document/order/interfaces.d.ts +0 -113
- package/dist/modules/document/order/route.schema.d.ts +0 -9
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -9
- package/dist/modules/document/productionOrder/route.schema.d.ts +0 -2
- package/dist/modules/document/proforma/interfaces.d.ts +0 -12
- package/dist/modules/document/proforma/route.schema.d.ts +0 -3
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +0 -13
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +0 -2
- package/dist/modules/document/propostaSheets/interface.d.ts +0 -74
- package/dist/modules/document/propostaSheets/route.schema.d.ts +0 -6
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +0 -38
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +0 -3
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +0 -27
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +0 -3
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +0 -16
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +0 -2
- package/dist/modules/document/purchase/interfaces.d.ts +0 -91
- package/dist/modules/document/purchase/route.schema.d.ts +0 -4
- package/dist/modules/document/quebra/interfaces.d.ts +0 -36
- package/dist/modules/document/quebra/route.schema.d.ts +0 -3
- package/dist/modules/document/returnToProvider/interface.d.ts +0 -40
- package/dist/modules/document/returnToProvider/route.schema.d.ts +0 -2
- package/dist/modules/document/transformado/interfaces.d.ts +0 -19
- package/dist/modules/document/transformado/route.schema.d.ts +0 -2
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -12
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -16
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +0 -2
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -85
- package/dist/modules/integration/emailLog/route.schema.d.ts +0 -4
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +0 -46
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +0 -4
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -17
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +0 -2
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -23
- package/dist/modules/integration/emailVerification/route.schema.d.ts +0 -5
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -26
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +0 -5
- package/dist/modules/integration/googleSheets/interfaces.d.ts +0 -54
- package/dist/modules/integration/googleSheets/route.schema.d.ts +0 -4
- package/dist/modules/integration/observation/interfaces.d.ts +0 -45
- package/dist/modules/integration/observation/route.schema.d.ts +0 -5
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -27
- package/dist/modules/integration/observationType/route.schema.d.ts +0 -7
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -16
- package/dist/modules/integration/projectInfo/route.schema.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -25
- package/dist/modules/integration/settings/route.schema.d.ts +0 -4
- package/dist/modules/print/npc/interfaces.d.ts +0 -30
- package/dist/modules/print/npc/route.schema.d.ts +0 -3
- package/dist/modules/print/printer/interfaces.d.ts +0 -38
- package/dist/modules/print/printer/route.schema.d.ts +0 -4
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +0 -39
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +0 -5
- package/dist/modules/stock/chat/interfaces.d.ts +0 -61
- package/dist/modules/stock/chat/route.schema.d.ts +0 -3
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +0 -26
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +0 -3
- package/dist/modules/stock/dashboard/interface.d.ts +0 -22
- package/dist/modules/stock/dashboard/route.schema.d.ts +0 -2
- package/dist/modules/stock/file/interface.d.ts +0 -32
- package/dist/modules/stock/file/route.schema.d.ts +0 -5
- package/dist/modules/stock/location/interface.d.ts +0 -58
- package/dist/modules/stock/location/route.schema.d.ts +0 -5
- package/dist/modules/stock/prison/interface.d.ts +0 -49
- package/dist/modules/stock/prison/route.schema.d.ts +0 -4
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -237
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +0 -13
- package/dist/modules/stock/productImage/interface.d.ts +0 -44
- package/dist/modules/stock/productImage/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotion/interface.d.ts +0 -42
- package/dist/modules/stock/promotion/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -40
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -44
- package/dist/modules/stock/queryList/route.schema.d.ts +0 -7
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -51
- package/dist/modules/stock/queryParameter/route.schema.d.ts +0 -3
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -9
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -19
- package/dist/modules/stock/returnReason/route.schema.d.ts +0 -3
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +0 -27
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +0 -5
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +0 -23
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +0 -3
- package/dist/modules/stock/sideMenu/interface.d.ts +0 -37
- package/dist/modules/stock/sideMenu/route.schema.d.ts +0 -3
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -49
- package/dist/modules/stock/stockMovement/route.schema.d.ts +0 -3
- package/dist/modules/stock/task/interface.d.ts +0 -82
- package/dist/modules/stock/task/route.schema.d.ts +0 -4
- package/dist/modules/stock/taskMessage/interface.d.ts +0 -14
- package/dist/modules/stock/taskMessage/route.schema.d.ts +0 -3
- package/dist/modules/stock/taskRead/interface.d.ts +0 -13
- package/dist/modules/stock/taskRead/route.schema.d.ts +0 -3
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -32
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +0 -5
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -42
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTax/interface.d.ts +0 -34
- package/dist/modules/stock/vatTax/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -42
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatValidation/interfaces.d.ts +0 -8
- package/dist/modules/stock/vatValidation/route.schema.d.ts +0 -2
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -45
- package/dist/modules/stock/workflow/route.schema.d.ts +0 -4
- package/dist/modules/supply/batch/interface.d.ts +0 -0
- package/dist/modules/supply/documentHeader/interfaces.d.ts +0 -364
- package/dist/modules/supply/documentHeader/route.schema.d.ts +0 -15
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -145
- package/dist/modules/supply/documentLine/route.schema.d.ts +0 -9
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +0 -34
- package/dist/modules/supply/documentLineAssoc/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentLineMT/interface.d.ts +0 -19
- package/dist/modules/supply/documentLineMT/route.schema.d.ts +0 -2
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +0 -33
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +0 -6
- package/dist/modules/supply/documentLineRM/interface.d.ts +0 -25
- package/dist/modules/supply/documentLineRM/route.schema.d.ts +0 -2
- package/dist/modules/supply/documentSet/interface.d.ts +0 -27
- package/dist/modules/supply/documentSet/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -131
- package/dist/modules/supply/documentType/route.schema.d.ts +0 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -92
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +0 -8
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -11
- package/dist/modules/supply/orderManagement/interface.d.ts +0 -41
- package/dist/modules/supply/orderManagement/route.schema.d.ts +0 -0
- package/dist/modules/supply/payment/interface.d.ts +0 -164
- package/dist/modules/supply/payment/route.schema.d.ts +0 -11
- package/dist/modules/supply/preSale/interface.d.ts +0 -71
- package/dist/modules/supply/preSale/route.schema.d.ts +0 -8
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -12
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +0 -2
- package/dist/modules/supply/schedule/interface.d.ts +0 -23
- package/dist/modules/supply/schedule/route.schema.d.ts +0 -2
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +0 -10
- package/dist/modules/tickets/channel/interfaces.d.ts +0 -29
- package/dist/modules/tickets/channel/route.schema.d.ts +0 -3
- package/dist/modules/tickets/clt/interfaces.d.ts +0 -20
- package/dist/modules/tickets/clt/route.schema.d.ts +0 -3
- package/dist/modules/tickets/language/interfaces.d.ts +0 -20
- package/dist/modules/tickets/language/route.schema.d.ts +0 -3
- package/dist/modules/tickets/tickets/interfaces.d.ts +0 -68
- package/dist/modules/tickets/tickets/route.schema.d.ts +0 -3
- package/dist/modules/user/bankData/interface.d.ts +0 -42
- package/dist/modules/user/bankData/route.schema.d.ts +0 -5
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +0 -25
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +0 -2
- package/dist/modules/user/clientType/interface.d.ts +0 -30
- package/dist/modules/user/clientType/route.schema.d.ts +0 -6
- package/dist/modules/user/clients/interface.d.ts +0 -86
- package/dist/modules/user/clients/route.schema.d.ts +0 -5
- package/dist/modules/user/commissioner/interface.d.ts +0 -64
- package/dist/modules/user/commissioner/route.schema.d.ts +0 -5
- package/dist/modules/user/country/interface.d.ts +0 -35
- package/dist/modules/user/country/route.schema.d.ts +0 -5
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -23
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/favorites/interfaces.d.ts +0 -22
- package/dist/modules/user/favorites/route.schema.d.ts +0 -8
- package/dist/modules/user/groupPermissions/interface.d.ts +0 -25
- package/dist/modules/user/groupPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/language/interface.d.ts +0 -30
- package/dist/modules/user/language/route.schema.d.ts +0 -5
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -25
- package/dist/modules/user/maturityDates/route.schema.d.ts +0 -3
- package/dist/modules/user/password/interfaces.d.ts +0 -15
- package/dist/modules/user/password/route.schema.d.ts +0 -3
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -49
- package/dist/modules/user/paymentMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/permissions/interface.d.ts +0 -25
- package/dist/modules/user/permissions/route.schema.d.ts +0 -2
- package/dist/modules/user/persona/interface.d.ts +0 -113
- package/dist/modules/user/persona/route.schema.d.ts +0 -7
- package/dist/modules/user/providerType/interface.d.ts +0 -30
- package/dist/modules/user/providerType/route.schema.d.ts +0 -5
- package/dist/modules/user/providers/interface.d.ts +0 -82
- package/dist/modules/user/providers/route.schema.d.ts +0 -5
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -37
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +0 -5
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -34
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +0 -5
- package/dist/modules/user/refreshToken/interface.d.ts +0 -15
- package/dist/modules/user/refreshToken/route.schema.d.ts +0 -2
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -32
- package/dist/modules/user/segmentsArea/route.schema.d.ts +0 -5
- package/dist/modules/user/sessions/interface.d.ts +0 -19
- package/dist/modules/user/sessions/route.schema.d.ts +0 -2
- package/dist/modules/user/shippings/interface.d.ts +0 -38
- package/dist/modules/user/shippings/route.schema.d.ts +0 -5
- package/dist/modules/user/storeOperator/interface.d.ts +0 -74
- package/dist/modules/user/storeOperator/route.schema.d.ts +0 -7
- package/dist/modules/user/swift/interface.d.ts +0 -38
- package/dist/modules/user/swift/route.schema.d.ts +0 -5
- package/dist/modules/user/tenant/interface.d.ts +0 -49
- package/dist/modules/user/tenant/route.schema.d.ts +0 -3
- package/dist/modules/user/theme/interfaces.d.ts +0 -18
- package/dist/modules/user/theme/route.schema.d.ts +0 -2
- package/dist/modules/user/userPermissions/interface.d.ts +0 -23
- package/dist/modules/user/userPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/userPositions/interface.d.ts +0 -30
- package/dist/modules/user/userPositions/route.schema.d.ts +0 -5
- package/dist/modules/user/userTokens/interface.d.ts +0 -30
- package/dist/modules/user/userTokens/route.schema.d.ts +0 -3
- package/dist/modules/user/users/interface.d.ts +0 -114
- package/dist/modules/user/users/route.schema.d.ts +0 -7
- package/dist/modules/user/vehicles/interfaces.d.ts +0 -25
- package/dist/modules/user/vehicles/route.schema.d.ts +0 -3
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -23
- package/dist/modules/user/zipCode/route.schema.d.ts +0 -3
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -140
- package/dist/modules/view/errorLog/interfaces.d.ts +0 -30
- package/dist/modules/view/errorLog/route.schema.d.ts +0 -2
- package/dist/shared/entities/documentManagement.d.ts +0 -15
- package/dist/shared/entities/integration.d.ts +0 -127
- package/dist/shared/entities/print.d.ts +0 -46
- package/dist/shared/entities/stock.d.ts +0 -1059
- package/dist/shared/entities/tickets.d.ts +0 -78
- package/dist/shared/entities/user.d.ts +0 -507
- package/dist/shared/errors/documentManagementErrors.d.ts +0 -14
- package/dist/shared/errors/integrationErrors.d.ts +0 -45
- package/dist/shared/errors/stockErrors.d.ts +0 -267
- package/dist/shared/errors/userErrors.d.ts +0 -104
- package/dist/shared/errors/viewErrors.d.ts +0 -7
- package/dist/shared/interface.d.ts +0 -343
- package/dist/shared/messages.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import joi10 from 'joi';
|
|
2
|
+
|
|
1
3
|
var __defProp = Object.defineProperty;
|
|
2
4
|
var __export = (target, all) => {
|
|
3
5
|
for (var name in all)
|
|
@@ -252,7 +254,6 @@ __export(interface_exports, {
|
|
|
252
254
|
joiValidateStamps: () => joiValidateStamps,
|
|
253
255
|
messages: () => messages
|
|
254
256
|
});
|
|
255
|
-
import joi from "joi";
|
|
256
257
|
|
|
257
258
|
// src/shared/messages.ts
|
|
258
259
|
var messages = {
|
|
@@ -394,39 +395,39 @@ var IDataTypeEnum = {
|
|
|
394
395
|
};
|
|
395
396
|
var dataTypes = Object.keys(IDataTypeEnum);
|
|
396
397
|
var findMinifiedQueryKeys = {
|
|
397
|
-
search_value:
|
|
398
|
-
owner_id:
|
|
398
|
+
search_value: joi10.string().allow("", null).optional(),
|
|
399
|
+
owner_id: joi10.string().uuid().optional()
|
|
399
400
|
};
|
|
400
|
-
var findMinifiedQuery =
|
|
401
|
+
var findMinifiedQuery = joi10.object().keys(findMinifiedQueryKeys).messages(messages);
|
|
401
402
|
var findOptionalByOwnerIdQueryKeys = {
|
|
402
|
-
owner_id:
|
|
403
|
+
owner_id: joi10.string().uuid().optional()
|
|
403
404
|
};
|
|
404
|
-
var findByOptionalOwnerIdQuery =
|
|
405
|
+
var findByOptionalOwnerIdQuery = joi10.object().keys(findOptionalByOwnerIdQueryKeys).messages(messages);
|
|
405
406
|
var findByOwnerIdQueryKeys = {
|
|
406
|
-
owner_id:
|
|
407
|
+
owner_id: joi10.string().uuid().required()
|
|
407
408
|
};
|
|
408
|
-
var findByOwnerIdQuery =
|
|
409
|
+
var findByOwnerIdQuery = joi10.object().keys(findByOwnerIdQueryKeys).messages(messages);
|
|
409
410
|
var findByIdParamKeys = {
|
|
410
|
-
id:
|
|
411
|
+
id: joi10.string().uuid().required()
|
|
411
412
|
};
|
|
412
|
-
var idParam =
|
|
413
|
+
var idParam = joi10.object().keys(findByIdParamKeys).messages(messages);
|
|
413
414
|
var findByIdNumberParamKeys = {
|
|
414
|
-
id:
|
|
415
|
+
id: joi10.number().positive().required()
|
|
415
416
|
};
|
|
416
|
-
var idNumberParam =
|
|
417
|
+
var idNumberParam = joi10.object().keys(findByIdNumberParamKeys).messages(messages);
|
|
417
418
|
var findMinifiedReponseKeys = {
|
|
418
|
-
id:
|
|
419
|
-
name:
|
|
420
|
-
group:
|
|
421
|
-
multimedia_id:
|
|
419
|
+
id: joi10.string().uuid().required(),
|
|
420
|
+
name: joi10.string().required(),
|
|
421
|
+
group: joi10.string(),
|
|
422
|
+
multimedia_id: joi10.string()
|
|
422
423
|
};
|
|
423
|
-
var findMinifiedReponse =
|
|
424
|
+
var findMinifiedReponse = joi10.array().items(findMinifiedReponseKeys);
|
|
424
425
|
var joiValidateStamps = {
|
|
425
|
-
created_at:
|
|
426
|
-
updated_at:
|
|
427
|
-
created_by:
|
|
428
|
-
updated_by:
|
|
429
|
-
origin_id:
|
|
426
|
+
created_at: joi10.date().required(),
|
|
427
|
+
updated_at: joi10.date().required(),
|
|
428
|
+
created_by: joi10.string().allow(null),
|
|
429
|
+
updated_by: joi10.string().allow(null),
|
|
430
|
+
origin_id: joi10.string().allow(null)
|
|
430
431
|
};
|
|
431
432
|
var IUserSendEmailDocumentTemplateEnum = {
|
|
432
433
|
generic: "generic",
|
|
@@ -959,30 +960,29 @@ __export(route_schema_exports, {
|
|
|
959
960
|
findWithPaginationQuery: () => findWithPaginationQuery,
|
|
960
961
|
updateBody: () => updateBody
|
|
961
962
|
});
|
|
962
|
-
import joi2 from "joi";
|
|
963
963
|
var createBodyKeys = {
|
|
964
|
-
provider_id:
|
|
965
|
-
client_id:
|
|
966
|
-
store_operator_id:
|
|
967
|
-
commissioner_id:
|
|
968
|
-
iban:
|
|
969
|
-
swift_id:
|
|
970
|
-
country_id:
|
|
971
|
-
};
|
|
972
|
-
var createBody =
|
|
964
|
+
provider_id: joi10.string(),
|
|
965
|
+
client_id: joi10.string(),
|
|
966
|
+
store_operator_id: joi10.string(),
|
|
967
|
+
commissioner_id: joi10.string(),
|
|
968
|
+
iban: joi10.string().required(),
|
|
969
|
+
swift_id: joi10.string().allow(null).optional(),
|
|
970
|
+
country_id: joi10.string().required()
|
|
971
|
+
};
|
|
972
|
+
var createBody = joi10.object().keys(createBodyKeys).xor("provider_id", "client_id", "store_operator_id", "commissioner_id").messages(messages);
|
|
973
973
|
var updateBodyKeys = {
|
|
974
|
-
iban:
|
|
975
|
-
swift_id:
|
|
976
|
-
country_id:
|
|
974
|
+
iban: joi10.string().optional(),
|
|
975
|
+
swift_id: joi10.string().allow(null).optional(),
|
|
976
|
+
country_id: joi10.string().optional()
|
|
977
977
|
};
|
|
978
|
-
var updateBody =
|
|
978
|
+
var updateBody = joi10.object().keys(updateBodyKeys).messages(messages);
|
|
979
979
|
var findQueryKeys = {};
|
|
980
|
-
var findQuery =
|
|
980
|
+
var findQuery = joi10.object().keys(findQueryKeys).messages(messages);
|
|
981
981
|
var findWithPaginationQueryKeys = {
|
|
982
|
-
per_page:
|
|
983
|
-
current_page:
|
|
982
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
983
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
984
984
|
};
|
|
985
|
-
var findWithPaginationQuery =
|
|
985
|
+
var findWithPaginationQuery = joi10.object().keys(findWithPaginationQueryKeys).messages(messages);
|
|
986
986
|
|
|
987
987
|
// src/modules/user/clients/interface.ts
|
|
988
988
|
var interface_exports3 = {};
|
|
@@ -1003,7 +1003,6 @@ __export(route_schema_exports2, {
|
|
|
1003
1003
|
findWithPaginationQuery: () => findWithPaginationQuery2,
|
|
1004
1004
|
updateBody: () => updateBody2
|
|
1005
1005
|
});
|
|
1006
|
-
import joi3 from "joi";
|
|
1007
1006
|
|
|
1008
1007
|
// src/modules/stock/chat/interfaces.ts
|
|
1009
1008
|
var interfaces_exports = {};
|
|
@@ -1025,59 +1024,59 @@ var chatTypes = Object.keys(ChatTypeEnum);
|
|
|
1025
1024
|
|
|
1026
1025
|
// src/modules/user/clients/route.schema.ts
|
|
1027
1026
|
var createMainPersonaKeys = {
|
|
1028
|
-
name:
|
|
1029
|
-
nif:
|
|
1030
|
-
email:
|
|
1031
|
-
telephone:
|
|
1027
|
+
name: joi10.string().allow(null, "").empty("").optional(),
|
|
1028
|
+
nif: joi10.string().allow(null, "").empty("").optional(),
|
|
1029
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").empty("").optional(),
|
|
1030
|
+
telephone: joi10.string().allow(null, "").empty("").optional()
|
|
1032
1031
|
};
|
|
1033
1032
|
var createBodyKeys2 = {
|
|
1034
|
-
user_id:
|
|
1035
|
-
main_persona:
|
|
1036
|
-
deferred_payment:
|
|
1037
|
-
default_discount:
|
|
1038
|
-
exemption_reason_id:
|
|
1039
|
-
inactive:
|
|
1040
|
-
newsletter:
|
|
1041
|
-
country_id:
|
|
1042
|
-
language_id:
|
|
1043
|
-
client_type_id:
|
|
1044
|
-
segments_area_id:
|
|
1045
|
-
default_payment_method_id:
|
|
1046
|
-
default_maturity_date_id:
|
|
1047
|
-
default_delivery_method_id:
|
|
1048
|
-
default_vehicle_id:
|
|
1049
|
-
};
|
|
1050
|
-
var createBody2 =
|
|
1033
|
+
user_id: joi10.string().uuid().optional(),
|
|
1034
|
+
main_persona: joi10.object().keys(createMainPersonaKeys).optional(),
|
|
1035
|
+
deferred_payment: joi10.boolean().default(false).optional(),
|
|
1036
|
+
default_discount: joi10.number().positive().allow(0).default(0).max(100).optional(),
|
|
1037
|
+
exemption_reason_id: joi10.string().uuid().allow(null).optional(),
|
|
1038
|
+
inactive: joi10.boolean().default(false).optional(),
|
|
1039
|
+
newsletter: joi10.boolean().default(false).optional(),
|
|
1040
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
1041
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
1042
|
+
client_type_id: joi10.string().uuid().allow(null).optional(),
|
|
1043
|
+
segments_area_id: joi10.string().uuid().allow(null).optional(),
|
|
1044
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1045
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
1046
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1047
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional()
|
|
1048
|
+
};
|
|
1049
|
+
var createBody2 = joi10.object().keys(createBodyKeys2).messages(messages);
|
|
1051
1050
|
var updateBodyKeys2 = {
|
|
1052
|
-
chat_type:
|
|
1053
|
-
main_persona_id:
|
|
1054
|
-
contact_persona_id:
|
|
1055
|
-
nif:
|
|
1056
|
-
country_id:
|
|
1057
|
-
language_id:
|
|
1058
|
-
client_type_id:
|
|
1059
|
-
newsletter:
|
|
1060
|
-
inactive:
|
|
1061
|
-
segments_area_id:
|
|
1062
|
-
default_discount:
|
|
1063
|
-
default_payment_method_id:
|
|
1064
|
-
default_maturity_date_id:
|
|
1065
|
-
default_delivery_method_id:
|
|
1066
|
-
default_vehicle_id:
|
|
1067
|
-
deferred_payment:
|
|
1068
|
-
};
|
|
1069
|
-
var updateBody2 =
|
|
1051
|
+
chat_type: joi10.string().valid(...chatTypes).optional(),
|
|
1052
|
+
main_persona_id: joi10.string().uuid().optional(),
|
|
1053
|
+
contact_persona_id: joi10.string().uuid().optional(),
|
|
1054
|
+
nif: joi10.string().allow(null).optional(),
|
|
1055
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
1056
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
1057
|
+
client_type_id: joi10.string().uuid().allow(null).optional(),
|
|
1058
|
+
newsletter: joi10.boolean().optional(),
|
|
1059
|
+
inactive: joi10.boolean().optional(),
|
|
1060
|
+
segments_area_id: joi10.string().uuid().allow(null).optional(),
|
|
1061
|
+
default_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1062
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1063
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
1064
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1065
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional(),
|
|
1066
|
+
deferred_payment: joi10.boolean().optional()
|
|
1067
|
+
};
|
|
1068
|
+
var updateBody2 = joi10.object().keys(updateBodyKeys2).messages(messages);
|
|
1070
1069
|
var findQueryKeys2 = {
|
|
1071
|
-
number:
|
|
1072
|
-
id:
|
|
1073
|
-
nif:
|
|
1070
|
+
number: joi10.array().items(joi10.number().positive().required()).optional(),
|
|
1071
|
+
id: joi10.array().items(joi10.string().uuid().required()).optional(),
|
|
1072
|
+
nif: joi10.string().optional()
|
|
1074
1073
|
};
|
|
1075
|
-
var findQuery2 =
|
|
1074
|
+
var findQuery2 = joi10.object().keys(findQueryKeys2).messages(messages);
|
|
1076
1075
|
var findWithPaginationQueryKeys2 = {
|
|
1077
|
-
per_page:
|
|
1078
|
-
current_page:
|
|
1076
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
1077
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
1079
1078
|
};
|
|
1080
|
-
var findWithPaginationQuery2 =
|
|
1079
|
+
var findWithPaginationQuery2 = joi10.object().keys(findWithPaginationQueryKeys2).messages(messages);
|
|
1081
1080
|
|
|
1082
1081
|
// src/modules/user/clientType/interface.ts
|
|
1083
1082
|
var interface_exports4 = {};
|
|
@@ -1099,24 +1098,23 @@ __export(route_schema_exports3, {
|
|
|
1099
1098
|
findWithPaginationQuery: () => findWithPaginationQuery3,
|
|
1100
1099
|
updateBody: () => updateBody3
|
|
1101
1100
|
});
|
|
1102
|
-
import joi4 from "joi";
|
|
1103
1101
|
var createBodyKeys3 = {
|
|
1104
|
-
name:
|
|
1102
|
+
name: joi10.string().required()
|
|
1105
1103
|
};
|
|
1106
|
-
var createBody3 =
|
|
1104
|
+
var createBody3 = joi10.object().keys(createBodyKeys3).messages(messages);
|
|
1107
1105
|
var updateBodyKeys3 = {
|
|
1108
|
-
name:
|
|
1106
|
+
name: joi10.string().required()
|
|
1109
1107
|
};
|
|
1110
|
-
var updateBody3 =
|
|
1108
|
+
var updateBody3 = joi10.object().keys(updateBodyKeys3).messages(messages);
|
|
1111
1109
|
var findQueryKeys3 = {};
|
|
1112
|
-
var findQuery3 =
|
|
1110
|
+
var findQuery3 = joi10.object().keys(findQueryKeys3).messages(messages);
|
|
1113
1111
|
var findWithPaginationQueryKeys3 = {
|
|
1114
|
-
per_page:
|
|
1115
|
-
current_page:
|
|
1112
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
1113
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
1116
1114
|
};
|
|
1117
|
-
var findWithPaginationQuery3 =
|
|
1118
|
-
var clientTypePostSchema =
|
|
1119
|
-
name:
|
|
1115
|
+
var findWithPaginationQuery3 = joi10.object().keys(findWithPaginationQueryKeys3).messages(messages);
|
|
1116
|
+
var clientTypePostSchema = joi10.object().keys({
|
|
1117
|
+
name: joi10.string().required()
|
|
1120
1118
|
});
|
|
1121
1119
|
|
|
1122
1120
|
// src/modules/user/zipCode/interfaces.ts
|
|
@@ -1136,23 +1134,22 @@ __export(route_schema_exports4, {
|
|
|
1136
1134
|
createBody: () => createBody4,
|
|
1137
1135
|
findByPostalCodeBody: () => findByPostalCodeBody
|
|
1138
1136
|
});
|
|
1139
|
-
import joi5 from "joi";
|
|
1140
1137
|
var createBodyKeys4 = {
|
|
1141
|
-
address:
|
|
1142
|
-
county:
|
|
1143
|
-
county_code:
|
|
1144
|
-
postal_code:
|
|
1145
|
-
locality:
|
|
1146
|
-
parish:
|
|
1147
|
-
district:
|
|
1148
|
-
latitude:
|
|
1149
|
-
longitude:
|
|
1150
|
-
};
|
|
1151
|
-
var createBody4 =
|
|
1138
|
+
address: joi10.string().required(),
|
|
1139
|
+
county: joi10.string().required(),
|
|
1140
|
+
county_code: joi10.number().required(),
|
|
1141
|
+
postal_code: joi10.string().trim(true).lowercase().required(),
|
|
1142
|
+
locality: joi10.string().required(),
|
|
1143
|
+
parish: joi10.string().required(),
|
|
1144
|
+
district: joi10.string().required(),
|
|
1145
|
+
latitude: joi10.string().required(),
|
|
1146
|
+
longitude: joi10.string().required()
|
|
1147
|
+
};
|
|
1148
|
+
var createBody4 = joi10.array().items(joi10.object().keys(createBodyKeys4)).messages(messages);
|
|
1152
1149
|
var findByPostalCodeBodyKeys = {
|
|
1153
|
-
postal_code:
|
|
1150
|
+
postal_code: joi10.string().trim(true).lowercase().required()
|
|
1154
1151
|
};
|
|
1155
|
-
var findByPostalCodeBody =
|
|
1152
|
+
var findByPostalCodeBody = joi10.object().keys(findByPostalCodeBodyKeys).messages(messages);
|
|
1156
1153
|
|
|
1157
1154
|
// src/modules/stock/chat/route.schema.ts
|
|
1158
1155
|
var route_schema_exports5 = {};
|
|
@@ -1160,27 +1157,26 @@ __export(route_schema_exports5, {
|
|
|
1160
1157
|
createBody: () => createBody5,
|
|
1161
1158
|
updateBody: () => updateBody4
|
|
1162
1159
|
});
|
|
1163
|
-
import joi6 from "joi";
|
|
1164
1160
|
var createBodyKeys5 = {
|
|
1165
|
-
owner_id:
|
|
1166
|
-
document_header_id:
|
|
1167
|
-
message:
|
|
1168
|
-
username:
|
|
1169
|
-
is_customer:
|
|
1161
|
+
owner_id: joi10.string().uuid().required(),
|
|
1162
|
+
document_header_id: joi10.string().uuid().allow(null).required(),
|
|
1163
|
+
message: joi10.string().required(),
|
|
1164
|
+
username: joi10.string().required(),
|
|
1165
|
+
is_customer: joi10.boolean().default(false).optional()
|
|
1170
1166
|
};
|
|
1171
|
-
var createBody5 =
|
|
1167
|
+
var createBody5 = joi10.object().keys(createBodyKeys5).messages(messages);
|
|
1172
1168
|
var updateBodyKeys4 = {
|
|
1173
|
-
document_header_id:
|
|
1174
|
-
message:
|
|
1175
|
-
email_processed:
|
|
1176
|
-
email_delivered:
|
|
1177
|
-
email_opened:
|
|
1178
|
-
email_clicked:
|
|
1179
|
-
whatsapp_sent:
|
|
1180
|
-
read:
|
|
1181
|
-
username:
|
|
1182
|
-
};
|
|
1183
|
-
var updateBody4 =
|
|
1169
|
+
document_header_id: joi10.string().uuid().optional(),
|
|
1170
|
+
message: joi10.string().optional(),
|
|
1171
|
+
email_processed: joi10.boolean().optional(),
|
|
1172
|
+
email_delivered: joi10.boolean().optional(),
|
|
1173
|
+
email_opened: joi10.boolean().optional(),
|
|
1174
|
+
email_clicked: joi10.boolean().optional(),
|
|
1175
|
+
whatsapp_sent: joi10.boolean().optional(),
|
|
1176
|
+
read: joi10.boolean().optional(),
|
|
1177
|
+
username: joi10.string().optional()
|
|
1178
|
+
};
|
|
1179
|
+
var updateBody4 = joi10.object().keys(updateBodyKeys4).messages(messages);
|
|
1184
1180
|
|
|
1185
1181
|
// src/modules/user/commissioner/interface.ts
|
|
1186
1182
|
var interface_exports5 = {};
|
|
@@ -1201,45 +1197,44 @@ __export(route_schema_exports6, {
|
|
|
1201
1197
|
findWithPaginationQuery: () => findWithPaginationQuery4,
|
|
1202
1198
|
updateBody: () => updateBody5
|
|
1203
1199
|
});
|
|
1204
|
-
import joi7 from "joi";
|
|
1205
1200
|
var createMainPersonaKeys2 = {
|
|
1206
|
-
name:
|
|
1207
|
-
nif:
|
|
1208
|
-
email:
|
|
1209
|
-
telephone:
|
|
1201
|
+
name: joi10.string().optional(),
|
|
1202
|
+
nif: joi10.string().allow(null).optional(),
|
|
1203
|
+
email: joi10.string().email({ tlds: { allow: false } }).optional(),
|
|
1204
|
+
telephone: joi10.string().optional()
|
|
1210
1205
|
};
|
|
1211
1206
|
var createBodyKeys6 = {
|
|
1212
|
-
user_id:
|
|
1213
|
-
default_percentage:
|
|
1214
|
-
main_persona:
|
|
1215
|
-
country_id:
|
|
1216
|
-
language_id:
|
|
1217
|
-
default_payment_method_id:
|
|
1218
|
-
default_maturity_date_id:
|
|
1219
|
-
default_delivery_method_id:
|
|
1220
|
-
default_vehicle_id:
|
|
1221
|
-
};
|
|
1222
|
-
var createBody6 =
|
|
1207
|
+
user_id: joi10.string().uuid().required(),
|
|
1208
|
+
default_percentage: joi10.number().positive().allow(0).default(0).optional(),
|
|
1209
|
+
main_persona: joi10.object().keys(createMainPersonaKeys2).required(),
|
|
1210
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
1211
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
1212
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1213
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
1214
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1215
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional()
|
|
1216
|
+
};
|
|
1217
|
+
var createBody6 = joi10.object().keys(createBodyKeys6).messages(messages);
|
|
1223
1218
|
var updateBodyKeys5 = {
|
|
1224
|
-
chat_type:
|
|
1225
|
-
default_percentage:
|
|
1226
|
-
main_persona_id:
|
|
1227
|
-
contact_persona_id:
|
|
1228
|
-
country_id:
|
|
1229
|
-
language_id:
|
|
1230
|
-
default_payment_method_id:
|
|
1231
|
-
default_maturity_date_id:
|
|
1232
|
-
default_delivery_method_id:
|
|
1233
|
-
default_vehicle_id:
|
|
1234
|
-
};
|
|
1235
|
-
var updateBody5 =
|
|
1219
|
+
chat_type: joi10.string().valid(...chatTypes).optional(),
|
|
1220
|
+
default_percentage: joi10.number().positive().allow(0).optional(),
|
|
1221
|
+
main_persona_id: joi10.string().uuid().optional(),
|
|
1222
|
+
contact_persona_id: joi10.string().uuid().optional(),
|
|
1223
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
1224
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
1225
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1226
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
1227
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
1228
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional()
|
|
1229
|
+
};
|
|
1230
|
+
var updateBody5 = joi10.object().keys(updateBodyKeys5).messages(messages);
|
|
1236
1231
|
var findQueryKeys4 = {};
|
|
1237
|
-
var findQuery4 =
|
|
1232
|
+
var findQuery4 = joi10.object().keys(findQueryKeys4).messages(messages);
|
|
1238
1233
|
var findWithPaginationQueryKeys4 = {
|
|
1239
|
-
per_page:
|
|
1240
|
-
current_page:
|
|
1234
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
1235
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
1241
1236
|
};
|
|
1242
|
-
var findWithPaginationQuery4 =
|
|
1237
|
+
var findWithPaginationQuery4 = joi10.object().keys(findWithPaginationQueryKeys4).messages(messages);
|
|
1243
1238
|
|
|
1244
1239
|
// src/modules/user/country/interface.ts
|
|
1245
1240
|
var interface_exports6 = {};
|
|
@@ -1260,27 +1255,26 @@ __export(route_schema_exports7, {
|
|
|
1260
1255
|
findWithPaginationQuery: () => findWithPaginationQuery5,
|
|
1261
1256
|
updateBody: () => updateBody6
|
|
1262
1257
|
});
|
|
1263
|
-
import joi8 from "joi";
|
|
1264
1258
|
var createBodyKeys7 = {
|
|
1265
|
-
name:
|
|
1266
|
-
alpha2:
|
|
1259
|
+
name: joi10.string().required(),
|
|
1260
|
+
alpha2: joi10.string().required()
|
|
1267
1261
|
};
|
|
1268
|
-
var createBody7 =
|
|
1262
|
+
var createBody7 = joi10.object().keys(createBodyKeys7).messages(messages);
|
|
1269
1263
|
var updateBodyKeys6 = {
|
|
1270
|
-
name:
|
|
1271
|
-
alpha2:
|
|
1264
|
+
name: joi10.string().optional(),
|
|
1265
|
+
alpha2: joi10.string().optional()
|
|
1272
1266
|
};
|
|
1273
|
-
var updateBody6 =
|
|
1267
|
+
var updateBody6 = joi10.object().keys(updateBodyKeys6).messages(messages);
|
|
1274
1268
|
var findQueryKeys5 = {
|
|
1275
|
-
name:
|
|
1269
|
+
name: joi10.string().optional()
|
|
1276
1270
|
};
|
|
1277
|
-
var findQuery5 =
|
|
1271
|
+
var findQuery5 = joi10.object().keys(findQueryKeys5).messages(messages);
|
|
1278
1272
|
var findWithPaginationQueryKeys5 = {
|
|
1279
1273
|
...findQueryKeys5,
|
|
1280
|
-
per_page:
|
|
1281
|
-
current_page:
|
|
1274
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
1275
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
1282
1276
|
};
|
|
1283
|
-
var findWithPaginationQuery5 =
|
|
1277
|
+
var findWithPaginationQuery5 = joi10.object().keys(findWithPaginationQueryKeys5).messages(messages);
|
|
1284
1278
|
|
|
1285
1279
|
// src/modules/user/deliveryMethods/interfaces.ts
|
|
1286
1280
|
var interfaces_exports3 = {};
|
|
@@ -1299,17 +1293,16 @@ __export(route_schema_exports8, {
|
|
|
1299
1293
|
createBody: () => createBody8,
|
|
1300
1294
|
updateBody: () => updateBody7
|
|
1301
1295
|
});
|
|
1302
|
-
import joi9 from "joi";
|
|
1303
1296
|
var createBodyKeys8 = {
|
|
1304
|
-
name:
|
|
1305
|
-
delivery_method_id:
|
|
1297
|
+
name: joi10.string().required(),
|
|
1298
|
+
delivery_method_id: joi10.number().integer().required()
|
|
1306
1299
|
};
|
|
1307
|
-
var createBody8 =
|
|
1300
|
+
var createBody8 = joi10.object().keys(createBodyKeys8).messages(messages);
|
|
1308
1301
|
var updateBodyKeys7 = {
|
|
1309
|
-
name:
|
|
1310
|
-
delivery_method_id:
|
|
1302
|
+
name: joi10.string(),
|
|
1303
|
+
delivery_method_id: joi10.number().integer()
|
|
1311
1304
|
};
|
|
1312
|
-
var updateBody7 =
|
|
1305
|
+
var updateBody7 = joi10.object().keys(updateBodyKeys7).messages(messages);
|
|
1313
1306
|
|
|
1314
1307
|
// src/modules/supply/documentHeader/interfaces.ts
|
|
1315
1308
|
var interfaces_exports4 = {};
|
|
@@ -1346,7 +1339,6 @@ __export(route_schema_exports9, {
|
|
|
1346
1339
|
updateBody: () => updateBody8,
|
|
1347
1340
|
updateManyWithPersonaBody: () => updateManyWithPersonaBody
|
|
1348
1341
|
});
|
|
1349
|
-
import joi10 from "joi";
|
|
1350
1342
|
|
|
1351
1343
|
// src/modules/supply/documentType/interfaces.ts
|
|
1352
1344
|
var interfaces_exports5 = {};
|
|
@@ -1639,27 +1631,26 @@ var route_schema_exports10 = {};
|
|
|
1639
1631
|
__export(route_schema_exports10, {
|
|
1640
1632
|
createBillOfLadingBody: () => createBillOfLadingBody
|
|
1641
1633
|
});
|
|
1642
|
-
import joi11 from "joi";
|
|
1643
1634
|
var deliveryAddress = {
|
|
1644
|
-
delivery_departure_street:
|
|
1645
|
-
delivery_departure_locality:
|
|
1646
|
-
delivery_departure_postal_code:
|
|
1647
|
-
delivery_street:
|
|
1648
|
-
delivery_locality:
|
|
1649
|
-
delivery_postal_code:
|
|
1635
|
+
delivery_departure_street: joi10.string().required(),
|
|
1636
|
+
delivery_departure_locality: joi10.string().required(),
|
|
1637
|
+
delivery_departure_postal_code: joi10.string().required(),
|
|
1638
|
+
delivery_street: joi10.string().required(),
|
|
1639
|
+
delivery_locality: joi10.string().required(),
|
|
1640
|
+
delivery_postal_code: joi10.string().required()
|
|
1650
1641
|
};
|
|
1651
1642
|
var createBillOfLadingBodyKeys = {
|
|
1652
|
-
persona_id:
|
|
1653
|
-
persona_name:
|
|
1654
|
-
persona_nif:
|
|
1655
|
-
document_type_id:
|
|
1656
|
-
delivery_addresses:
|
|
1643
|
+
persona_id: joi10.string().uuid().required(),
|
|
1644
|
+
persona_name: joi10.string().required(),
|
|
1645
|
+
persona_nif: joi10.string().required(),
|
|
1646
|
+
document_type_id: joi10.number().required(),
|
|
1647
|
+
delivery_addresses: joi10.array().items({
|
|
1657
1648
|
...deliveryAddress
|
|
1658
1649
|
}).required(),
|
|
1659
|
-
document_line_ids:
|
|
1660
|
-
from_document_header_id:
|
|
1650
|
+
document_line_ids: joi10.array().unique().items(joi10.string().uuid().required()).required(),
|
|
1651
|
+
from_document_header_id: joi10.string().required()
|
|
1661
1652
|
};
|
|
1662
|
-
var createBillOfLadingBody =
|
|
1653
|
+
var createBillOfLadingBody = joi10.object().keys(createBillOfLadingBodyKeys).messages(messages);
|
|
1663
1654
|
|
|
1664
1655
|
// src/modules/document/productionOrder/interfaces.ts
|
|
1665
1656
|
var interfaces_exports7 = {};
|
|
@@ -1669,12 +1660,11 @@ var route_schema_exports11 = {};
|
|
|
1669
1660
|
__export(route_schema_exports11, {
|
|
1670
1661
|
createProductionOrderBody: () => createProductionOrderBody
|
|
1671
1662
|
});
|
|
1672
|
-
import joi12 from "joi";
|
|
1673
1663
|
var createProductionOrderBodyKeys = {
|
|
1674
|
-
provider_id:
|
|
1675
|
-
group_id:
|
|
1664
|
+
provider_id: joi10.string().uuid().required(),
|
|
1665
|
+
group_id: joi10.string().uuid().required()
|
|
1676
1666
|
};
|
|
1677
|
-
var createProductionOrderBody =
|
|
1667
|
+
var createProductionOrderBody = joi10.object().keys(createProductionOrderBodyKeys).messages(messages);
|
|
1678
1668
|
|
|
1679
1669
|
// src/modules/document/proforma/interfaces.ts
|
|
1680
1670
|
var interfaces_exports8 = {};
|
|
@@ -1684,13 +1674,12 @@ var route_schema_exports12 = {};
|
|
|
1684
1674
|
__export(route_schema_exports12, {
|
|
1685
1675
|
createBody: () => createBody10
|
|
1686
1676
|
});
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
product_designation: joi13.string().required()
|
|
1677
|
+
var createBody10 = joi10.object().keys({
|
|
1678
|
+
document_header_id: joi10.string().uuid().optional(),
|
|
1679
|
+
document_type_id: joi10.number().integer().positive().required(),
|
|
1680
|
+
from_document_header_id: joi10.string().uuid().required(),
|
|
1681
|
+
price_sale: joi10.number().positive().required(),
|
|
1682
|
+
product_designation: joi10.string().required()
|
|
1694
1683
|
}).messages(messages);
|
|
1695
1684
|
|
|
1696
1685
|
// src/modules/document/propostaFornecedor/interfaces.ts
|
|
@@ -1701,18 +1690,17 @@ var route_schema_exports13 = {};
|
|
|
1701
1690
|
__export(route_schema_exports13, {
|
|
1702
1691
|
providerProposalBody: () => providerProposalBody
|
|
1703
1692
|
});
|
|
1704
|
-
import joi14 from "joi";
|
|
1705
1693
|
var providerProposalData = {
|
|
1706
|
-
product_id:
|
|
1707
|
-
quantity:
|
|
1694
|
+
product_id: joi10.string().uuid().required(),
|
|
1695
|
+
quantity: joi10.number().required()
|
|
1708
1696
|
};
|
|
1709
1697
|
var providerPRoposalBodyKeys = {
|
|
1710
|
-
provider_id:
|
|
1711
|
-
data:
|
|
1698
|
+
provider_id: joi10.string().uuid().required(),
|
|
1699
|
+
data: joi10.array().items({
|
|
1712
1700
|
...providerProposalData
|
|
1713
1701
|
}).required()
|
|
1714
1702
|
};
|
|
1715
|
-
var providerProposalBody =
|
|
1703
|
+
var providerProposalBody = joi10.object().keys(providerPRoposalBodyKeys).messages(messages);
|
|
1716
1704
|
|
|
1717
1705
|
// src/modules/document/providerCreditNoteFromReturn/interfaces.ts
|
|
1718
1706
|
var interfaces_exports10 = {};
|
|
@@ -1723,27 +1711,26 @@ __export(route_schema_exports14, {
|
|
|
1723
1711
|
createProviderCreditNoteFromReturnBody: () => createProviderCreditNoteFromReturnBody,
|
|
1724
1712
|
findProviderReturnQuery: () => findProviderReturnQuery
|
|
1725
1713
|
});
|
|
1726
|
-
import joi15 from "joi";
|
|
1727
1714
|
var findProviderReturnQueryKeys = {
|
|
1728
|
-
search_value:
|
|
1729
|
-
provider_id:
|
|
1715
|
+
search_value: joi10.string().allow("", null).optional(),
|
|
1716
|
+
provider_id: joi10.string().uuid().required()
|
|
1730
1717
|
};
|
|
1731
|
-
var findProviderReturnQuery =
|
|
1718
|
+
var findProviderReturnQuery = joi10.object().keys(findProviderReturnQueryKeys).messages(messages);
|
|
1732
1719
|
var createProviderCreditNoteFromReturnDocumentHeadersBodyKeys = {
|
|
1733
|
-
id:
|
|
1734
|
-
document_line_ids:
|
|
1720
|
+
id: joi10.string().uuid().required(),
|
|
1721
|
+
document_line_ids: joi10.array().unique().items(joi10.string().uuid().required()).required()
|
|
1735
1722
|
};
|
|
1736
1723
|
var createProviderCreditNoteFromReturnBodyKeys = {
|
|
1737
|
-
emission_date:
|
|
1738
|
-
external_document_name:
|
|
1739
|
-
observations:
|
|
1740
|
-
document_headers:
|
|
1741
|
-
|
|
1724
|
+
emission_date: joi10.date().required(),
|
|
1725
|
+
external_document_name: joi10.string().required(),
|
|
1726
|
+
observations: joi10.string().allow(null, "").required(),
|
|
1727
|
+
document_headers: joi10.array().items(
|
|
1728
|
+
joi10.object().keys(createProviderCreditNoteFromReturnDocumentHeadersBodyKeys).required()
|
|
1742
1729
|
).required(),
|
|
1743
|
-
acerto:
|
|
1744
|
-
total:
|
|
1730
|
+
acerto: joi10.number().required(),
|
|
1731
|
+
total: joi10.number().positive().required()
|
|
1745
1732
|
};
|
|
1746
|
-
var createProviderCreditNoteFromReturnBody =
|
|
1733
|
+
var createProviderCreditNoteFromReturnBody = joi10.object().keys(createProviderCreditNoteFromReturnBodyKeys).messages(messages);
|
|
1747
1734
|
|
|
1748
1735
|
// src/modules/document/providerFinancialCreditNote/interfaces.ts
|
|
1749
1736
|
var interfaces_exports11 = {};
|
|
@@ -1754,25 +1741,24 @@ __export(route_schema_exports15, {
|
|
|
1754
1741
|
createProviderFinancialCreditNoteBody: () => createProviderFinancialCreditNoteBody,
|
|
1755
1742
|
findProviderInvoiceQuery: () => findProviderInvoiceQuery
|
|
1756
1743
|
});
|
|
1757
|
-
import joi16 from "joi";
|
|
1758
1744
|
var findProviderInvoiceQueryKeys = {
|
|
1759
|
-
search_value:
|
|
1760
|
-
provider_id:
|
|
1745
|
+
search_value: joi10.string().allow("", null).optional(),
|
|
1746
|
+
provider_id: joi10.string().uuid().required()
|
|
1761
1747
|
};
|
|
1762
|
-
var findProviderInvoiceQuery =
|
|
1748
|
+
var findProviderInvoiceQuery = joi10.object().keys(findProviderInvoiceQueryKeys).messages(messages);
|
|
1763
1749
|
var valueByVatTaxKeys = {
|
|
1764
|
-
taxPercentage:
|
|
1765
|
-
total:
|
|
1750
|
+
taxPercentage: joi10.number().positive().allow(0).required(),
|
|
1751
|
+
total: joi10.number().positive().required()
|
|
1766
1752
|
};
|
|
1767
1753
|
var createProviderFinancialCreditNoteBodyKeys = {
|
|
1768
|
-
emission_date:
|
|
1769
|
-
external_document_name:
|
|
1770
|
-
provider_id:
|
|
1771
|
-
parent_document_header_id:
|
|
1772
|
-
observations:
|
|
1773
|
-
values:
|
|
1754
|
+
emission_date: joi10.date().required(),
|
|
1755
|
+
external_document_name: joi10.string().required(),
|
|
1756
|
+
provider_id: joi10.string().uuid().required(),
|
|
1757
|
+
parent_document_header_id: joi10.string().uuid().optional().allow(null, ""),
|
|
1758
|
+
observations: joi10.string().allow(null, "").required(),
|
|
1759
|
+
values: joi10.array().unique("taxPercentage").items(joi10.object().keys(valueByVatTaxKeys).required()).required()
|
|
1774
1760
|
};
|
|
1775
|
-
var createProviderFinancialCreditNoteBody =
|
|
1761
|
+
var createProviderFinancialCreditNoteBody = joi10.object().keys(createProviderFinancialCreditNoteBodyKeys).messages(messages);
|
|
1776
1762
|
|
|
1777
1763
|
// src/modules/document/providerServiceInvoice/interfaces.ts
|
|
1778
1764
|
var interfaces_exports12 = {};
|
|
@@ -1782,19 +1768,18 @@ var route_schema_exports16 = {};
|
|
|
1782
1768
|
__export(route_schema_exports16, {
|
|
1783
1769
|
createProviderServiceInvoiceBody: () => createProviderServiceInvoiceBody
|
|
1784
1770
|
});
|
|
1785
|
-
import joi17 from "joi";
|
|
1786
1771
|
var valueByVatTaxKeys2 = {
|
|
1787
|
-
taxPercentage:
|
|
1788
|
-
total:
|
|
1772
|
+
taxPercentage: joi10.number().positive().allow(0).required(),
|
|
1773
|
+
total: joi10.number().positive().required()
|
|
1789
1774
|
};
|
|
1790
1775
|
var createProviderServiceInvoiceBodyKeys = {
|
|
1791
|
-
provider_id:
|
|
1792
|
-
emission_date:
|
|
1793
|
-
external_document_name:
|
|
1794
|
-
observations:
|
|
1795
|
-
values:
|
|
1776
|
+
provider_id: joi10.string().uuid().required(),
|
|
1777
|
+
emission_date: joi10.date().required(),
|
|
1778
|
+
external_document_name: joi10.string().required(),
|
|
1779
|
+
observations: joi10.string().allow(null, "").required(),
|
|
1780
|
+
values: joi10.array().unique("taxPercentage").items(joi10.object().keys(valueByVatTaxKeys2).required()).required()
|
|
1796
1781
|
};
|
|
1797
|
-
var createProviderServiceInvoiceBody =
|
|
1782
|
+
var createProviderServiceInvoiceBody = joi10.object().keys(createProviderServiceInvoiceBodyKeys).messages(messages);
|
|
1798
1783
|
|
|
1799
1784
|
// src/modules/supply/documentLine/interfaces.ts
|
|
1800
1785
|
var interfaces_exports13 = {};
|
|
@@ -1819,79 +1804,78 @@ __export(route_schema_exports17, {
|
|
|
1819
1804
|
updateIndexesBody: () => updateIndexesBody,
|
|
1820
1805
|
updateManyBody: () => updateManyBody
|
|
1821
1806
|
});
|
|
1822
|
-
import joi18 from "joi";
|
|
1823
1807
|
var createBodyKeys10 = {
|
|
1824
|
-
product_id:
|
|
1808
|
+
product_id: joi10.string().uuid().allow(null).optional(),
|
|
1825
1809
|
// user to merge lines
|
|
1826
|
-
document_line_id:
|
|
1810
|
+
document_line_id: joi10.string().uuid().optional(),
|
|
1827
1811
|
// assoc specific
|
|
1828
|
-
document_header_id:
|
|
1812
|
+
document_header_id: joi10.string().uuid().required(),
|
|
1829
1813
|
// index: joi.number().integer().default(0).optional(),
|
|
1830
|
-
quantity:
|
|
1831
|
-
preco_venda:
|
|
1832
|
-
client_tax:
|
|
1833
|
-
client_discount:
|
|
1834
|
-
preco_custo:
|
|
1835
|
-
provider_tax:
|
|
1836
|
-
provider_discount:
|
|
1837
|
-
document_line_group_id:
|
|
1838
|
-
data:
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
value:
|
|
1814
|
+
quantity: joi10.number().positive().allow(0).default(0).required(),
|
|
1815
|
+
preco_venda: joi10.number().positive().allow(0).default(0).required(),
|
|
1816
|
+
client_tax: joi10.number().positive().allow(0).required(),
|
|
1817
|
+
client_discount: joi10.number().positive().allow(0).default(0).max(100).required(),
|
|
1818
|
+
preco_custo: joi10.number().positive().allow(0).default(0).required(),
|
|
1819
|
+
provider_tax: joi10.number().positive().allow(0).required(),
|
|
1820
|
+
provider_discount: joi10.number().positive().allow(0).default(0).max(100).required(),
|
|
1821
|
+
document_line_group_id: joi10.string().optional(),
|
|
1822
|
+
data: joi10.object().pattern(
|
|
1823
|
+
joi10.string(),
|
|
1824
|
+
joi10.object().keys({
|
|
1825
|
+
value: joi10.any().required()
|
|
1842
1826
|
})
|
|
1843
1827
|
).allow({})
|
|
1844
1828
|
};
|
|
1845
|
-
var createBody11 =
|
|
1829
|
+
var createBody11 = joi10.array().items(joi10.object().keys(createBodyKeys10)).messages(messages);
|
|
1846
1830
|
var updateBodyKeys9 = {
|
|
1847
|
-
product_id:
|
|
1848
|
-
quantity:
|
|
1849
|
-
preco_venda:
|
|
1850
|
-
client_tax:
|
|
1851
|
-
client_discount:
|
|
1852
|
-
preco_custo:
|
|
1853
|
-
provider_tax:
|
|
1854
|
-
provider_discount:
|
|
1855
|
-
provider_purchase_discount:
|
|
1856
|
-
document_line_group_id:
|
|
1857
|
-
sent_to_client:
|
|
1858
|
-
sent_to_provider:
|
|
1859
|
-
};
|
|
1860
|
-
var updateBody9 =
|
|
1831
|
+
product_id: joi10.string().uuid().allow(null).optional(),
|
|
1832
|
+
quantity: joi10.number().positive().allow(0).optional(),
|
|
1833
|
+
preco_venda: joi10.number().positive().allow(0).optional(),
|
|
1834
|
+
client_tax: joi10.number().positive().allow(0).optional(),
|
|
1835
|
+
client_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1836
|
+
preco_custo: joi10.number().positive().allow(0).optional(),
|
|
1837
|
+
provider_tax: joi10.number().positive().allow(0).optional(),
|
|
1838
|
+
provider_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1839
|
+
provider_purchase_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1840
|
+
document_line_group_id: joi10.string().optional(),
|
|
1841
|
+
sent_to_client: joi10.boolean().optional(),
|
|
1842
|
+
sent_to_provider: joi10.boolean().optional()
|
|
1843
|
+
};
|
|
1844
|
+
var updateBody9 = joi10.object().keys(updateBodyKeys9).messages(messages);
|
|
1861
1845
|
var updateDataBodyKeys = {
|
|
1862
|
-
trigger_states:
|
|
1863
|
-
document_header_id:
|
|
1864
|
-
document_line_ids:
|
|
1865
|
-
datafield:
|
|
1866
|
-
payload:
|
|
1867
|
-
value:
|
|
1868
|
-
updated_by:
|
|
1869
|
-
updated_at:
|
|
1870
|
-
location_id:
|
|
1846
|
+
trigger_states: joi10.boolean().optional(),
|
|
1847
|
+
document_header_id: joi10.string().uuid().required(),
|
|
1848
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
1849
|
+
datafield: joi10.string().required(),
|
|
1850
|
+
payload: joi10.object().keys({
|
|
1851
|
+
value: joi10.any().required(),
|
|
1852
|
+
updated_by: joi10.string().uuid().optional(),
|
|
1853
|
+
updated_at: joi10.date().optional(),
|
|
1854
|
+
location_id: joi10.string().uuid().optional()
|
|
1871
1855
|
}).required()
|
|
1872
1856
|
};
|
|
1873
|
-
var updateDataBody =
|
|
1857
|
+
var updateDataBody = joi10.object().keys(updateDataBodyKeys).messages(messages);
|
|
1874
1858
|
var updateManyKeys = {
|
|
1875
|
-
ids:
|
|
1876
|
-
client_discount:
|
|
1877
|
-
price_cost:
|
|
1878
|
-
provider_discount:
|
|
1879
|
-
provider_estimated_delivery_date:
|
|
1880
|
-
provider_purchase_discount:
|
|
1881
|
-
consignacao:
|
|
1882
|
-
cancelled:
|
|
1883
|
-
};
|
|
1884
|
-
var updateManyBody =
|
|
1885
|
-
var updateIndexesBody =
|
|
1886
|
-
var deleteBody =
|
|
1859
|
+
ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
1860
|
+
client_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1861
|
+
price_cost: joi10.number().positive().allow(0).optional(),
|
|
1862
|
+
provider_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1863
|
+
provider_estimated_delivery_date: joi10.date().allow(null, "").optional(),
|
|
1864
|
+
provider_purchase_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
1865
|
+
consignacao: joi10.boolean().optional(),
|
|
1866
|
+
cancelled: joi10.boolean().optional()
|
|
1867
|
+
};
|
|
1868
|
+
var updateManyBody = joi10.object().keys(updateManyKeys).messages(messages);
|
|
1869
|
+
var updateIndexesBody = joi10.array().items(joi10.string().uuid().required()).required().messages(messages);
|
|
1870
|
+
var deleteBody = joi10.array().items(joi10.string().uuid().required()).messages(messages);
|
|
1887
1871
|
var printLabelParamsKeys = {
|
|
1888
|
-
document_line_ids:
|
|
1872
|
+
document_line_ids: joi10.string().required()
|
|
1889
1873
|
};
|
|
1890
|
-
var printLabelParams =
|
|
1874
|
+
var printLabelParams = joi10.object().keys(printLabelParamsKeys).messages(messages);
|
|
1891
1875
|
var printLabelQueryKeys = {
|
|
1892
|
-
token:
|
|
1876
|
+
token: joi10.string().required()
|
|
1893
1877
|
};
|
|
1894
|
-
var printLabelQuery =
|
|
1878
|
+
var printLabelQuery = joi10.object().keys(printLabelQueryKeys).messages(messages);
|
|
1895
1879
|
|
|
1896
1880
|
// src/modules/supply/documentLineAssoc/interfaces.ts
|
|
1897
1881
|
var interfaces_exports14 = {};
|
|
@@ -1910,16 +1894,15 @@ __export(route_schema_exports18, {
|
|
|
1910
1894
|
createBody: () => createBody12,
|
|
1911
1895
|
updateBody: () => updateBody10
|
|
1912
1896
|
});
|
|
1913
|
-
import joi19 from "joi";
|
|
1914
1897
|
var createBodyKeys11 = {
|
|
1915
|
-
document_header_id:
|
|
1916
|
-
document_line_id:
|
|
1898
|
+
document_header_id: joi10.string().uuid().required(),
|
|
1899
|
+
document_line_id: joi10.string().uuid().required()
|
|
1917
1900
|
};
|
|
1918
|
-
var createBody12 =
|
|
1901
|
+
var createBody12 = joi10.array().items(joi10.object().keys(createBodyKeys11)).messages(messages);
|
|
1919
1902
|
var updateBodyKeys10 = {
|
|
1920
|
-
origin_id:
|
|
1903
|
+
origin_id: joi10.string().allow(null).optional()
|
|
1921
1904
|
};
|
|
1922
|
-
var updateBody10 =
|
|
1905
|
+
var updateBody10 = joi10.object().keys(updateBodyKeys10).messages(messages);
|
|
1923
1906
|
|
|
1924
1907
|
// src/modules/supply/documentSet/interface.ts
|
|
1925
1908
|
var interface_exports7 = {};
|
|
@@ -1938,21 +1921,20 @@ __export(route_schema_exports19, {
|
|
|
1938
1921
|
createBody: () => createBody13,
|
|
1939
1922
|
updateBody: () => updateBody11
|
|
1940
1923
|
});
|
|
1941
|
-
import joi20 from "joi";
|
|
1942
1924
|
var createBodyKeys12 = {
|
|
1943
|
-
name:
|
|
1944
|
-
document_set_id:
|
|
1945
|
-
active_by_default:
|
|
1946
|
-
validation_code:
|
|
1925
|
+
name: joi10.string().required(),
|
|
1926
|
+
document_set_id: joi10.number().integer().allow(null).optional(),
|
|
1927
|
+
active_by_default: joi10.boolean().default(false).optional(),
|
|
1928
|
+
validation_code: joi10.string().required()
|
|
1947
1929
|
};
|
|
1948
|
-
var createBody13 =
|
|
1930
|
+
var createBody13 = joi10.object().keys(createBodyKeys12).messages(messages);
|
|
1949
1931
|
var updateBodyKeys11 = {
|
|
1950
|
-
name:
|
|
1951
|
-
document_set_id:
|
|
1952
|
-
active_by_default:
|
|
1953
|
-
validation_code:
|
|
1932
|
+
name: joi10.string(),
|
|
1933
|
+
document_set_id: joi10.number().integer().allow(null).optional(),
|
|
1934
|
+
active_by_default: joi10.boolean().optional(),
|
|
1935
|
+
validation_code: joi10.string().optional()
|
|
1954
1936
|
};
|
|
1955
|
-
var updateBody11 =
|
|
1937
|
+
var updateBody11 = joi10.object().keys(updateBodyKeys11).messages(messages);
|
|
1956
1938
|
|
|
1957
1939
|
// src/modules/supply/documentType/route.schema.ts
|
|
1958
1940
|
var route_schema_exports20 = {};
|
|
@@ -1960,57 +1942,56 @@ __export(route_schema_exports20, {
|
|
|
1960
1942
|
createBody: () => createBody14,
|
|
1961
1943
|
updateBody: () => updateBody12
|
|
1962
1944
|
});
|
|
1963
|
-
import joi21 from "joi";
|
|
1964
1945
|
var createBodyKeys13 = {
|
|
1965
|
-
description:
|
|
1966
|
-
group:
|
|
1967
|
-
quantity_in:
|
|
1968
|
-
quantity_out:
|
|
1969
|
-
credit:
|
|
1970
|
-
debit:
|
|
1971
|
-
user_type:
|
|
1972
|
-
code:
|
|
1973
|
-
external_document_type_id:
|
|
1974
|
-
document_set_id:
|
|
1975
|
-
ensure_same_provider:
|
|
1976
|
-
final_consumer:
|
|
1977
|
-
is_searchable:
|
|
1978
|
-
invoice:
|
|
1979
|
-
return:
|
|
1980
|
-
pay:
|
|
1981
|
-
allow_create_from_header_without_lines:
|
|
1982
|
-
allow_commissioner:
|
|
1983
|
-
duplicate_group:
|
|
1984
|
-
allow_duplicates:
|
|
1985
|
-
requires_picking:
|
|
1986
|
-
allow_document_line_assoc_plugins:
|
|
1987
|
-
};
|
|
1988
|
-
var createBody14 =
|
|
1946
|
+
description: joi10.string().required(),
|
|
1947
|
+
group: joi10.string().required(),
|
|
1948
|
+
quantity_in: joi10.boolean().default(false).optional(),
|
|
1949
|
+
quantity_out: joi10.boolean().default(false).optional(),
|
|
1950
|
+
credit: joi10.boolean().default(false).optional(),
|
|
1951
|
+
debit: joi10.boolean().default(false).optional(),
|
|
1952
|
+
user_type: joi10.string().valid(...documentTypeUserTypes).required(),
|
|
1953
|
+
code: joi10.string().valid(...documentTypeCodeTypes).required(),
|
|
1954
|
+
external_document_type_id: joi10.string().allow(null).optional(),
|
|
1955
|
+
document_set_id: joi10.string().allow(null).required(),
|
|
1956
|
+
ensure_same_provider: joi10.boolean().default(false).optional(),
|
|
1957
|
+
final_consumer: joi10.boolean().default(false).optional(),
|
|
1958
|
+
is_searchable: joi10.boolean().default(false).optional(),
|
|
1959
|
+
invoice: joi10.boolean().default(false).optional(),
|
|
1960
|
+
return: joi10.boolean().default(false).optional(),
|
|
1961
|
+
pay: joi10.boolean().default(false).optional(),
|
|
1962
|
+
allow_create_from_header_without_lines: joi10.boolean().default(false).optional(),
|
|
1963
|
+
allow_commissioner: joi10.boolean().default(false).optional(),
|
|
1964
|
+
duplicate_group: joi10.string().allow(null).optional(),
|
|
1965
|
+
allow_duplicates: joi10.boolean().default(false).optional(),
|
|
1966
|
+
requires_picking: joi10.boolean().default(false).optional(),
|
|
1967
|
+
allow_document_line_assoc_plugins: joi10.boolean().default(false).optional()
|
|
1968
|
+
};
|
|
1969
|
+
var createBody14 = joi10.object().keys(createBodyKeys13).messages(messages);
|
|
1989
1970
|
var updateBodyKeys12 = {
|
|
1990
|
-
description:
|
|
1991
|
-
group:
|
|
1992
|
-
quantity_in:
|
|
1993
|
-
quantity_out:
|
|
1994
|
-
credit:
|
|
1995
|
-
debit:
|
|
1996
|
-
user_type:
|
|
1997
|
-
code:
|
|
1998
|
-
external_document_type_id:
|
|
1999
|
-
document_set_id:
|
|
2000
|
-
ensure_same_provider:
|
|
2001
|
-
final_consumer:
|
|
2002
|
-
is_searchable:
|
|
2003
|
-
invoice:
|
|
2004
|
-
return:
|
|
2005
|
-
pay:
|
|
2006
|
-
allow_create_from_header_without_lines:
|
|
2007
|
-
allow_commissioner:
|
|
2008
|
-
duplicate_group:
|
|
2009
|
-
allow_duplicates:
|
|
2010
|
-
requires_picking:
|
|
2011
|
-
allow_document_line_assoc_plugins:
|
|
2012
|
-
};
|
|
2013
|
-
var updateBody12 =
|
|
1971
|
+
description: joi10.string(),
|
|
1972
|
+
group: joi10.string(),
|
|
1973
|
+
quantity_in: joi10.boolean(),
|
|
1974
|
+
quantity_out: joi10.boolean(),
|
|
1975
|
+
credit: joi10.boolean(),
|
|
1976
|
+
debit: joi10.boolean(),
|
|
1977
|
+
user_type: joi10.string().valid(...documentTypeUserTypes).optional(),
|
|
1978
|
+
code: joi10.string().valid(...documentTypeCodeTypes).optional(),
|
|
1979
|
+
external_document_type_id: joi10.string().allow(null, ""),
|
|
1980
|
+
document_set_id: joi10.string().allow(null).optional(),
|
|
1981
|
+
ensure_same_provider: joi10.boolean(),
|
|
1982
|
+
final_consumer: joi10.boolean(),
|
|
1983
|
+
is_searchable: joi10.boolean(),
|
|
1984
|
+
invoice: joi10.boolean(),
|
|
1985
|
+
return: joi10.boolean(),
|
|
1986
|
+
pay: joi10.boolean(),
|
|
1987
|
+
allow_create_from_header_without_lines: joi10.boolean(),
|
|
1988
|
+
allow_commissioner: joi10.boolean(),
|
|
1989
|
+
duplicate_group: joi10.string().allow(null).optional(),
|
|
1990
|
+
allow_duplicates: joi10.boolean(),
|
|
1991
|
+
requires_picking: joi10.boolean(),
|
|
1992
|
+
allow_document_line_assoc_plugins: joi10.boolean()
|
|
1993
|
+
};
|
|
1994
|
+
var updateBody12 = joi10.object().keys(updateBodyKeys12).messages(messages);
|
|
2014
1995
|
|
|
2015
1996
|
// src/modules/supply/externalDocumentType/interface.ts
|
|
2016
1997
|
var interface_exports8 = {};
|
|
@@ -2045,43 +2026,42 @@ __export(route_schema_exports21, {
|
|
|
2045
2026
|
updateBody: () => updateBody13,
|
|
2046
2027
|
updateNoteBody: () => updateNoteBody
|
|
2047
2028
|
});
|
|
2048
|
-
import joi22 from "joi";
|
|
2049
2029
|
var findQueryKeys7 = {};
|
|
2050
|
-
var findQuery7 =
|
|
2030
|
+
var findQuery7 = joi10.object().keys(findQueryKeys7).messages(messages);
|
|
2051
2031
|
var findWithPaginationQueryKeys6 = {
|
|
2052
|
-
per_page:
|
|
2053
|
-
current_page:
|
|
2032
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2033
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2054
2034
|
};
|
|
2055
|
-
var findWithPaginationQuery6 =
|
|
2035
|
+
var findWithPaginationQuery6 = joi10.object().keys(findWithPaginationQueryKeys6).messages(messages);
|
|
2056
2036
|
var createBodyKeys14 = {
|
|
2057
|
-
document_header_id:
|
|
2058
|
-
pdf_link:
|
|
2037
|
+
document_header_id: joi10.string().uuid().required(),
|
|
2038
|
+
pdf_link: joi10.string().required()
|
|
2059
2039
|
};
|
|
2060
|
-
var createBody15 =
|
|
2040
|
+
var createBody15 = joi10.object().keys(createBodyKeys14).messages(messages);
|
|
2061
2041
|
var updateBodyKeys13 = {
|
|
2062
|
-
pdf_link:
|
|
2042
|
+
pdf_link: joi10.string()
|
|
2063
2043
|
};
|
|
2064
|
-
var updateBody13 =
|
|
2044
|
+
var updateBody13 = joi10.object().keys(updateBodyKeys13).messages(messages);
|
|
2065
2045
|
var sendEmailDocumentBodyKeys = {
|
|
2066
|
-
template:
|
|
2067
|
-
document_line_assoc_ids:
|
|
2068
|
-
external_document_header_ids:
|
|
2069
|
-
user:
|
|
2070
|
-
name:
|
|
2071
|
-
email:
|
|
2046
|
+
template: joi10.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2047
|
+
document_line_assoc_ids: joi10.array().items(joi10.string().uuid()),
|
|
2048
|
+
external_document_header_ids: joi10.array().items(joi10.string().uuid()),
|
|
2049
|
+
user: joi10.object().keys({
|
|
2050
|
+
name: joi10.string().required(),
|
|
2051
|
+
email: joi10.string().trim(true).lowercase().required()
|
|
2072
2052
|
}).optional()
|
|
2073
2053
|
};
|
|
2074
|
-
var sendEmailDocumentBody =
|
|
2054
|
+
var sendEmailDocumentBody = joi10.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2075
2055
|
var createNoteBodyKeys = {
|
|
2076
|
-
document_header_id:
|
|
2077
|
-
note:
|
|
2078
|
-
type:
|
|
2056
|
+
document_header_id: joi10.string().uuid().required(),
|
|
2057
|
+
note: joi10.string().required(),
|
|
2058
|
+
type: joi10.string().required().valid("Client", "Provider")
|
|
2079
2059
|
};
|
|
2080
|
-
var createNoteBody =
|
|
2060
|
+
var createNoteBody = joi10.object().keys(createNoteBodyKeys).messages(messages);
|
|
2081
2061
|
var updateNoteBodyKeys = {
|
|
2082
|
-
note:
|
|
2062
|
+
note: joi10.string().required().allow("")
|
|
2083
2063
|
};
|
|
2084
|
-
var updateNoteBody =
|
|
2064
|
+
var updateNoteBody = joi10.object().keys(updateNoteBodyKeys).messages(messages);
|
|
2085
2065
|
|
|
2086
2066
|
// src/modules/user/favorites/interfaces.ts
|
|
2087
2067
|
var interfaces_exports15 = {};
|
|
@@ -2103,19 +2083,18 @@ __export(route_schema_exports22, {
|
|
|
2103
2083
|
findByUrlQuery: () => findByUrlQuery,
|
|
2104
2084
|
findByUrlQueryKeys: () => findByUrlQueryKeys
|
|
2105
2085
|
});
|
|
2106
|
-
import joi23 from "joi";
|
|
2107
2086
|
var findByUrlQueryKeys = {
|
|
2108
|
-
url:
|
|
2087
|
+
url: joi10.string().required()
|
|
2109
2088
|
};
|
|
2110
|
-
var findByUrlQuery =
|
|
2089
|
+
var findByUrlQuery = joi10.object().keys(findByUrlQueryKeys).messages(messages);
|
|
2111
2090
|
var createBodyKeys15 = {
|
|
2112
|
-
url:
|
|
2091
|
+
url: joi10.string().required()
|
|
2113
2092
|
};
|
|
2114
|
-
var createBody16 =
|
|
2093
|
+
var createBody16 = joi10.object().keys(createBodyKeys15).messages(messages);
|
|
2115
2094
|
var deleteByUrlQueryKeys = {
|
|
2116
|
-
url:
|
|
2095
|
+
url: joi10.string().required()
|
|
2117
2096
|
};
|
|
2118
|
-
var deleteByUrlQuery =
|
|
2097
|
+
var deleteByUrlQuery = joi10.object().keys(deleteByUrlQueryKeys).messages(messages);
|
|
2119
2098
|
|
|
2120
2099
|
// src/modules/stock/file/interface.ts
|
|
2121
2100
|
var interface_exports10 = {};
|
|
@@ -2135,28 +2114,27 @@ __export(route_schema_exports23, {
|
|
|
2135
2114
|
findByOwnerIdQuery: () => findByOwnerIdQuery2,
|
|
2136
2115
|
updateBody: () => updateBody14
|
|
2137
2116
|
});
|
|
2138
|
-
import joi24 from "joi";
|
|
2139
2117
|
var createBodyKeys16 = {
|
|
2140
|
-
title:
|
|
2141
|
-
owner_id:
|
|
2142
|
-
document_header_id:
|
|
2143
|
-
multimedia_id:
|
|
2144
|
-
filename:
|
|
2145
|
-
is_customer:
|
|
2146
|
-
is_private:
|
|
2147
|
-
tags:
|
|
2148
|
-
username:
|
|
2149
|
-
};
|
|
2150
|
-
var createBody17 =
|
|
2118
|
+
title: joi10.string().required(),
|
|
2119
|
+
owner_id: joi10.string().uuid().required(),
|
|
2120
|
+
document_header_id: joi10.string().uuid().allow(null).required(),
|
|
2121
|
+
multimedia_id: joi10.string().uuid().required(),
|
|
2122
|
+
filename: joi10.string().required(),
|
|
2123
|
+
is_customer: joi10.boolean().default(false).optional(),
|
|
2124
|
+
is_private: joi10.boolean().required(),
|
|
2125
|
+
tags: joi10.string().allow("").empty("").required(),
|
|
2126
|
+
username: joi10.string().required()
|
|
2127
|
+
};
|
|
2128
|
+
var createBody17 = joi10.object().keys(createBodyKeys16).messages(messages);
|
|
2151
2129
|
var updateBodyKeys14 = {
|
|
2152
|
-
document_header_id:
|
|
2153
|
-
filename:
|
|
2154
|
-
};
|
|
2155
|
-
var updateBody14 =
|
|
2156
|
-
var findByOwnerIdQuery2 =
|
|
2157
|
-
owner_id:
|
|
2158
|
-
tags:
|
|
2159
|
-
shared_only:
|
|
2130
|
+
document_header_id: joi10.string().uuid().optional(),
|
|
2131
|
+
filename: joi10.string().min(1).max(255).regex(/^[^<>:"/\\|?*\x00-\x1F]+$/).optional()
|
|
2132
|
+
};
|
|
2133
|
+
var updateBody14 = joi10.object().keys(updateBodyKeys14).messages(messages);
|
|
2134
|
+
var findByOwnerIdQuery2 = joi10.object().keys({
|
|
2135
|
+
owner_id: joi10.string().uuid().required(),
|
|
2136
|
+
tags: joi10.string().optional(),
|
|
2137
|
+
shared_only: joi10.boolean().required()
|
|
2160
2138
|
}).messages(messages);
|
|
2161
2139
|
|
|
2162
2140
|
// src/modules/user/groupPermissions/interface.ts
|
|
@@ -2175,12 +2153,11 @@ var route_schema_exports24 = {};
|
|
|
2175
2153
|
__export(route_schema_exports24, {
|
|
2176
2154
|
createBody: () => createBody18
|
|
2177
2155
|
});
|
|
2178
|
-
import joi25 from "joi";
|
|
2179
2156
|
var createBodyKeys17 = {
|
|
2180
|
-
code:
|
|
2181
|
-
description:
|
|
2157
|
+
code: joi10.string().required(),
|
|
2158
|
+
description: joi10.string().required()
|
|
2182
2159
|
};
|
|
2183
|
-
var createBody18 =
|
|
2160
|
+
var createBody18 = joi10.object().keys(createBodyKeys17).messages(messages);
|
|
2184
2161
|
|
|
2185
2162
|
// src/modules/integration/googleSheets/interfaces.ts
|
|
2186
2163
|
var interfaces_exports16 = {};
|
|
@@ -2200,48 +2177,47 @@ __export(route_schema_exports25, {
|
|
|
2200
2177
|
exportQuery: () => exportQuery,
|
|
2201
2178
|
updateQuery: () => updateQuery
|
|
2202
2179
|
});
|
|
2203
|
-
import joi26 from "joi";
|
|
2204
2180
|
var cloneQueryKeys = {
|
|
2205
|
-
document_name:
|
|
2181
|
+
document_name: joi10.string().allow(null).optional()
|
|
2206
2182
|
};
|
|
2207
|
-
var cloneQuery =
|
|
2183
|
+
var cloneQuery = joi10.object().keys(cloneQueryKeys).messages(messages);
|
|
2208
2184
|
var exportQueryKeys = {
|
|
2209
|
-
document_header_id:
|
|
2210
|
-
spreadsheetId:
|
|
2185
|
+
document_header_id: joi10.string().uuid().required(),
|
|
2186
|
+
spreadsheetId: joi10.string().required()
|
|
2211
2187
|
};
|
|
2212
|
-
var exportQuery =
|
|
2188
|
+
var exportQuery = joi10.object().keys(exportQueryKeys).messages(messages);
|
|
2213
2189
|
var userData = {
|
|
2214
|
-
document_number:
|
|
2215
|
-
emission_date:
|
|
2216
|
-
owner_number:
|
|
2217
|
-
contact_persona_name:
|
|
2218
|
-
contact_persona_email:
|
|
2219
|
-
contact_persona_telephone:
|
|
2220
|
-
billing_persona_nif:
|
|
2221
|
-
billing_persona_name:
|
|
2222
|
-
billing_persona_email:
|
|
2223
|
-
billing_persona_telephone:
|
|
2224
|
-
billing_persona_address_street:
|
|
2225
|
-
billing_persona_address_locality:
|
|
2226
|
-
billing_persona_address_postal_code:
|
|
2227
|
-
billing_persona_address_country_name:
|
|
2228
|
-
delivery_persona_name:
|
|
2229
|
-
delivery_persona_email:
|
|
2230
|
-
delivery_persona_telephone:
|
|
2231
|
-
delivery_persona_address_street:
|
|
2232
|
-
delivery_persona_address_locality:
|
|
2233
|
-
delivery_persona_address_postal_code:
|
|
2234
|
-
delivery_persona_address_country_name:
|
|
2235
|
-
reason_for_exemption_name:
|
|
2236
|
-
store_operator_id:
|
|
2237
|
-
store_operator_name:
|
|
2238
|
-
store_operator_number:
|
|
2190
|
+
document_number: joi10.number().optional(),
|
|
2191
|
+
emission_date: joi10.date().optional(),
|
|
2192
|
+
owner_number: joi10.number().optional(),
|
|
2193
|
+
contact_persona_name: joi10.string().optional(),
|
|
2194
|
+
contact_persona_email: joi10.string().trim(true).lowercase().optional(),
|
|
2195
|
+
contact_persona_telephone: joi10.string().optional(),
|
|
2196
|
+
billing_persona_nif: joi10.string().optional(),
|
|
2197
|
+
billing_persona_name: joi10.string().optional(),
|
|
2198
|
+
billing_persona_email: joi10.string().trim(true).lowercase().optional(),
|
|
2199
|
+
billing_persona_telephone: joi10.string().optional(),
|
|
2200
|
+
billing_persona_address_street: joi10.string().optional(),
|
|
2201
|
+
billing_persona_address_locality: joi10.string().optional(),
|
|
2202
|
+
billing_persona_address_postal_code: joi10.string().trim(true).lowercase().optional(),
|
|
2203
|
+
billing_persona_address_country_name: joi10.string().optional(),
|
|
2204
|
+
delivery_persona_name: joi10.string().optional(),
|
|
2205
|
+
delivery_persona_email: joi10.string().trim(true).lowercase().optional(),
|
|
2206
|
+
delivery_persona_telephone: joi10.string().optional(),
|
|
2207
|
+
delivery_persona_address_street: joi10.string().optional(),
|
|
2208
|
+
delivery_persona_address_locality: joi10.string().optional(),
|
|
2209
|
+
delivery_persona_address_postal_code: joi10.string().trim(true).lowercase().optional(),
|
|
2210
|
+
delivery_persona_address_country_name: joi10.string().optional(),
|
|
2211
|
+
reason_for_exemption_name: joi10.string().required().allow(null),
|
|
2212
|
+
store_operator_id: joi10.string().required().allow(null),
|
|
2213
|
+
store_operator_name: joi10.string().required().allow(null),
|
|
2214
|
+
store_operator_number: joi10.number().required().allow(null)
|
|
2239
2215
|
};
|
|
2240
2216
|
var updateQueryKeys = {
|
|
2241
|
-
document_name:
|
|
2242
|
-
client_data:
|
|
2217
|
+
document_name: joi10.string().required(),
|
|
2218
|
+
client_data: joi10.object().keys(userData).optional()
|
|
2243
2219
|
};
|
|
2244
|
-
var updateQuery =
|
|
2220
|
+
var updateQuery = joi10.object().keys(updateQueryKeys).messages(messages);
|
|
2245
2221
|
|
|
2246
2222
|
// src/modules/user/language/interface.ts
|
|
2247
2223
|
var interface_exports12 = {};
|
|
@@ -2262,22 +2238,21 @@ __export(route_schema_exports26, {
|
|
|
2262
2238
|
findWithPaginationQuery: () => findWithPaginationQuery7,
|
|
2263
2239
|
updateBody: () => updateBody15
|
|
2264
2240
|
});
|
|
2265
|
-
import joi27 from "joi";
|
|
2266
2241
|
var createBodyKeys18 = {
|
|
2267
|
-
name:
|
|
2242
|
+
name: joi10.string().required()
|
|
2268
2243
|
};
|
|
2269
|
-
var createBody19 =
|
|
2244
|
+
var createBody19 = joi10.object().keys(createBodyKeys18).messages(messages);
|
|
2270
2245
|
var updateBodyKeys15 = {
|
|
2271
|
-
name:
|
|
2246
|
+
name: joi10.string().required()
|
|
2272
2247
|
};
|
|
2273
|
-
var updateBody15 =
|
|
2248
|
+
var updateBody15 = joi10.object().keys(updateBodyKeys15).messages(messages);
|
|
2274
2249
|
var findQueryKeys8 = {};
|
|
2275
|
-
var findQuery8 =
|
|
2250
|
+
var findQuery8 = joi10.object().keys(findQueryKeys8).messages(messages);
|
|
2276
2251
|
var findWithPaginationQueryKeys7 = {
|
|
2277
|
-
per_page:
|
|
2278
|
-
current_page:
|
|
2252
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2253
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2279
2254
|
};
|
|
2280
|
-
var findWithPaginationQuery7 =
|
|
2255
|
+
var findWithPaginationQuery7 = joi10.object().keys(findWithPaginationQueryKeys7).messages(messages);
|
|
2281
2256
|
|
|
2282
2257
|
// src/modules/stock/location/interface.ts
|
|
2283
2258
|
var interface_exports13 = {};
|
|
@@ -2298,46 +2273,45 @@ __export(route_schema_exports27, {
|
|
|
2298
2273
|
findWithPaginationQuery: () => findWithPaginationQuery8,
|
|
2299
2274
|
updateBody: () => updateBody16
|
|
2300
2275
|
});
|
|
2301
|
-
import joi28 from "joi";
|
|
2302
2276
|
var createBodyKeys19 = {
|
|
2303
|
-
name:
|
|
2304
|
-
type_of_location_id:
|
|
2305
|
-
country_id:
|
|
2306
|
-
country_name:
|
|
2307
|
-
geolocation:
|
|
2308
|
-
lat:
|
|
2309
|
-
lon:
|
|
2277
|
+
name: joi10.string().required(),
|
|
2278
|
+
type_of_location_id: joi10.string().uuid().required(),
|
|
2279
|
+
country_id: joi10.string().uuid().required(),
|
|
2280
|
+
country_name: joi10.string().required(),
|
|
2281
|
+
geolocation: joi10.object({
|
|
2282
|
+
lat: joi10.number().required(),
|
|
2283
|
+
lon: joi10.number().required()
|
|
2310
2284
|
}).optional(),
|
|
2311
|
-
street:
|
|
2312
|
-
locality:
|
|
2313
|
-
postal_code:
|
|
2314
|
-
default_billing:
|
|
2315
|
-
default_delivery:
|
|
2285
|
+
street: joi10.string().required(),
|
|
2286
|
+
locality: joi10.string().required(),
|
|
2287
|
+
postal_code: joi10.string().trim(true).lowercase().required(),
|
|
2288
|
+
default_billing: joi10.boolean(),
|
|
2289
|
+
default_delivery: joi10.boolean()
|
|
2316
2290
|
};
|
|
2317
|
-
var createBody20 =
|
|
2291
|
+
var createBody20 = joi10.object().keys(createBodyKeys19).messages(messages);
|
|
2318
2292
|
var updateBodyKeys16 = {
|
|
2319
|
-
name:
|
|
2320
|
-
type_of_location_id:
|
|
2321
|
-
country_id:
|
|
2322
|
-
country_name:
|
|
2323
|
-
geolocation:
|
|
2324
|
-
lat:
|
|
2325
|
-
lon:
|
|
2293
|
+
name: joi10.string().optional(),
|
|
2294
|
+
type_of_location_id: joi10.string().uuid().optional(),
|
|
2295
|
+
country_id: joi10.string().uuid().optional(),
|
|
2296
|
+
country_name: joi10.string().optional(),
|
|
2297
|
+
geolocation: joi10.object({
|
|
2298
|
+
lat: joi10.number().required(),
|
|
2299
|
+
lon: joi10.number().required()
|
|
2326
2300
|
}).optional(),
|
|
2327
|
-
street:
|
|
2328
|
-
locality:
|
|
2329
|
-
postal_code:
|
|
2330
|
-
default_billing:
|
|
2331
|
-
default_delivery:
|
|
2301
|
+
street: joi10.string().optional(),
|
|
2302
|
+
locality: joi10.string().optional(),
|
|
2303
|
+
postal_code: joi10.string().trim(true).lowercase().optional(),
|
|
2304
|
+
default_billing: joi10.boolean(),
|
|
2305
|
+
default_delivery: joi10.boolean()
|
|
2332
2306
|
};
|
|
2333
|
-
var updateBody16 =
|
|
2307
|
+
var updateBody16 = joi10.object().keys(updateBodyKeys16).messages(messages);
|
|
2334
2308
|
var findQueryKeys9 = {};
|
|
2335
|
-
var findQuery9 =
|
|
2309
|
+
var findQuery9 = joi10.object().keys(findQueryKeys9).messages(messages);
|
|
2336
2310
|
var findWithPaginationQueryKeys8 = {
|
|
2337
|
-
per_page:
|
|
2338
|
-
current_page:
|
|
2311
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2312
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2339
2313
|
};
|
|
2340
|
-
var findWithPaginationQuery8 =
|
|
2314
|
+
var findWithPaginationQuery8 = joi10.object().keys(findWithPaginationQueryKeys8).messages(messages);
|
|
2341
2315
|
|
|
2342
2316
|
// src/modules/user/maturityDates/interfaces.ts
|
|
2343
2317
|
var interfaces_exports17 = {};
|
|
@@ -2356,19 +2330,18 @@ __export(route_schema_exports28, {
|
|
|
2356
2330
|
createBody: () => createBody21,
|
|
2357
2331
|
updateBody: () => updateBody17
|
|
2358
2332
|
});
|
|
2359
|
-
import joi29 from "joi";
|
|
2360
2333
|
var createBodyKeys20 = {
|
|
2361
|
-
name:
|
|
2362
|
-
maturity_date_id:
|
|
2363
|
-
days:
|
|
2334
|
+
name: joi10.string().required(),
|
|
2335
|
+
maturity_date_id: joi10.number().integer().required(),
|
|
2336
|
+
days: joi10.number().integer().required()
|
|
2364
2337
|
};
|
|
2365
|
-
var createBody21 =
|
|
2338
|
+
var createBody21 = joi10.object().keys(createBodyKeys20).messages(messages);
|
|
2366
2339
|
var updateBodyKeys17 = {
|
|
2367
|
-
name:
|
|
2368
|
-
maturity_date_id:
|
|
2369
|
-
days:
|
|
2340
|
+
name: joi10.string(),
|
|
2341
|
+
maturity_date_id: joi10.number().integer(),
|
|
2342
|
+
days: joi10.number().integer()
|
|
2370
2343
|
};
|
|
2371
|
-
var updateBody17 =
|
|
2344
|
+
var updateBody17 = joi10.object().keys(updateBodyKeys17).messages(messages);
|
|
2372
2345
|
|
|
2373
2346
|
// src/modules/documentManagement/multimedia/interfaces.ts
|
|
2374
2347
|
var interfaces_exports18 = {};
|
|
@@ -2386,11 +2359,10 @@ var route_schema_exports29 = {};
|
|
|
2386
2359
|
__export(route_schema_exports29, {
|
|
2387
2360
|
findByIdQuery: () => findByIdQuery
|
|
2388
2361
|
});
|
|
2389
|
-
import joi30 from "joi";
|
|
2390
2362
|
var findByIdQueryKeys = {
|
|
2391
|
-
download:
|
|
2363
|
+
download: joi10.boolean().optional()
|
|
2392
2364
|
};
|
|
2393
|
-
var findByIdQuery =
|
|
2365
|
+
var findByIdQuery = joi10.object().keys(findByIdQueryKeys).messages(messages);
|
|
2394
2366
|
|
|
2395
2367
|
// src/modules/supply/orderManagement/interface.ts
|
|
2396
2368
|
var interface_exports14 = {};
|
|
@@ -2422,30 +2394,29 @@ __export(route_schema_exports30, {
|
|
|
2422
2394
|
findByOwnersBody: () => findByOwnersBody,
|
|
2423
2395
|
updateBody: () => updateBody18
|
|
2424
2396
|
});
|
|
2425
|
-
import joi31 from "joi";
|
|
2426
2397
|
var createBodyKeys21 = {
|
|
2427
|
-
owner_id:
|
|
2428
|
-
observation_type_id:
|
|
2429
|
-
description:
|
|
2430
|
-
internal:
|
|
2398
|
+
owner_id: joi10.string().uuid().required(),
|
|
2399
|
+
observation_type_id: joi10.string().uuid().allow(null).optional(),
|
|
2400
|
+
description: joi10.string().required(),
|
|
2401
|
+
internal: joi10.boolean().default(false).optional()
|
|
2431
2402
|
};
|
|
2432
|
-
var createBody22 =
|
|
2403
|
+
var createBody22 = joi10.object().keys(createBodyKeys21).messages(messages);
|
|
2433
2404
|
var updateBodyKeys18 = {
|
|
2434
|
-
observation_type_id:
|
|
2435
|
-
description:
|
|
2436
|
-
internal:
|
|
2405
|
+
observation_type_id: joi10.string().uuid().allow(null).optional(),
|
|
2406
|
+
description: joi10.string().optional(),
|
|
2407
|
+
internal: joi10.boolean().optional()
|
|
2437
2408
|
};
|
|
2438
|
-
var updateBody18 =
|
|
2409
|
+
var updateBody18 = joi10.object().keys(updateBodyKeys18).messages(messages);
|
|
2439
2410
|
var findByOwnersBodyKeys = {
|
|
2440
|
-
owner_ids:
|
|
2441
|
-
includeInternal:
|
|
2411
|
+
owner_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
2412
|
+
includeInternal: joi10.boolean().optional()
|
|
2442
2413
|
};
|
|
2443
|
-
var findByOwnersBody =
|
|
2414
|
+
var findByOwnersBody = joi10.object().keys(findByOwnersBodyKeys).messages(messages);
|
|
2444
2415
|
var findByOwnerQueryKeys = {
|
|
2445
|
-
owner_id:
|
|
2446
|
-
includeInternal:
|
|
2416
|
+
owner_id: joi10.string().uuid().required(),
|
|
2417
|
+
includeInternal: joi10.boolean().optional()
|
|
2447
2418
|
};
|
|
2448
|
-
var findByOwnerQuery =
|
|
2419
|
+
var findByOwnerQuery = joi10.object().keys(findByOwnerQueryKeys).messages(messages);
|
|
2449
2420
|
|
|
2450
2421
|
// src/modules/integration/observationType/interfaces.ts
|
|
2451
2422
|
var interfaces_exports20 = {};
|
|
@@ -2466,15 +2437,14 @@ __export(route_schema_exports31, {
|
|
|
2466
2437
|
updateBody: () => updateBody19,
|
|
2467
2438
|
updateBodyKeys: () => updateBodyKeys19
|
|
2468
2439
|
});
|
|
2469
|
-
import joi32 from "joi";
|
|
2470
2440
|
var createBodyKeys22 = {
|
|
2471
|
-
name:
|
|
2441
|
+
name: joi10.string().required()
|
|
2472
2442
|
};
|
|
2473
|
-
var createBody23 =
|
|
2443
|
+
var createBody23 = joi10.object().keys(createBodyKeys22).messages(messages);
|
|
2474
2444
|
var updateBodyKeys19 = {
|
|
2475
|
-
name:
|
|
2445
|
+
name: joi10.string().required()
|
|
2476
2446
|
};
|
|
2477
|
-
var updateBody19 =
|
|
2447
|
+
var updateBody19 = joi10.object().keys(updateBodyKeys19).messages(messages);
|
|
2478
2448
|
|
|
2479
2449
|
// src/modules/user/password/interfaces.ts
|
|
2480
2450
|
var interfaces_exports21 = {};
|
|
@@ -2489,17 +2459,16 @@ __export(route_schema_exports32, {
|
|
|
2489
2459
|
forgotBody: () => forgotBody,
|
|
2490
2460
|
resetBody: () => resetBody
|
|
2491
2461
|
});
|
|
2492
|
-
import joi33 from "joi";
|
|
2493
2462
|
var forgotBodyKeys = {
|
|
2494
|
-
account:
|
|
2463
|
+
account: joi10.string().email({ tlds: { allow: false } }).required()
|
|
2495
2464
|
};
|
|
2496
|
-
var forgotBody =
|
|
2465
|
+
var forgotBody = joi10.object().keys(forgotBodyKeys).messages(messages);
|
|
2497
2466
|
var resetBodyKeys = {
|
|
2498
|
-
token:
|
|
2499
|
-
password:
|
|
2500
|
-
password_confirmation:
|
|
2467
|
+
token: joi10.string().uuid().required(),
|
|
2468
|
+
password: joi10.string().required(),
|
|
2469
|
+
password_confirmation: joi10.string().valid(joi10.ref("password"))
|
|
2501
2470
|
};
|
|
2502
|
-
var resetBody =
|
|
2471
|
+
var resetBody = joi10.object().keys(resetBodyKeys).messages(messages);
|
|
2503
2472
|
|
|
2504
2473
|
// src/modules/supply/payment/interface.ts
|
|
2505
2474
|
var interface_exports15 = {};
|
|
@@ -2532,63 +2501,62 @@ __export(route_schema_exports33, {
|
|
|
2532
2501
|
findWithPaginationQuery: () => findWithPaginationQuery9,
|
|
2533
2502
|
providerPaymentBody: () => providerPaymentBody
|
|
2534
2503
|
});
|
|
2535
|
-
import joi34 from "joi";
|
|
2536
2504
|
var findQueryKeys10 = {};
|
|
2537
|
-
var findQuery10 =
|
|
2505
|
+
var findQuery10 = joi10.object().keys(findQueryKeys10).messages(messages);
|
|
2538
2506
|
var findWithPaginationQueryKeys9 = {
|
|
2539
|
-
per_page:
|
|
2540
|
-
current_page:
|
|
2507
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2508
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2541
2509
|
};
|
|
2542
|
-
var findWithPaginationQuery9 =
|
|
2510
|
+
var findWithPaginationQuery9 = joi10.object().keys(findWithPaginationQueryKeys9).messages(messages);
|
|
2543
2511
|
var findSettledMaterialEntranceQueryKeys = {
|
|
2544
|
-
provider_id:
|
|
2545
|
-
client_id:
|
|
2512
|
+
provider_id: joi10.string().uuid().required(),
|
|
2513
|
+
client_id: joi10.string().uuid().allow(null).required()
|
|
2546
2514
|
};
|
|
2547
|
-
var findSettledMaterialEntranceQuery =
|
|
2515
|
+
var findSettledMaterialEntranceQuery = joi10.object().keys(findSettledMaterialEntranceQueryKeys).messages(messages);
|
|
2548
2516
|
var providerPaymentDocumentKeys = {
|
|
2549
|
-
document_header_id:
|
|
2550
|
-
value:
|
|
2551
|
-
discount_value:
|
|
2552
|
-
is:
|
|
2553
|
-
then:
|
|
2554
|
-
otherwise:
|
|
2517
|
+
document_header_id: joi10.string().uuid().required(),
|
|
2518
|
+
value: joi10.number().required(),
|
|
2519
|
+
discount_value: joi10.number().optional().allow(0, "", null).when("value", {
|
|
2520
|
+
is: joi10.number().positive(),
|
|
2521
|
+
then: joi10.number().max(joi10.ref("value")),
|
|
2522
|
+
otherwise: joi10.number().min(joi10.ref("value"))
|
|
2555
2523
|
})
|
|
2556
2524
|
};
|
|
2557
|
-
var providerPaymentDocument =
|
|
2525
|
+
var providerPaymentDocument = joi10.object().keys(providerPaymentDocumentKeys).required();
|
|
2558
2526
|
var providerPaymentBodyKeys = {
|
|
2559
|
-
provider_id:
|
|
2560
|
-
client_id:
|
|
2561
|
-
documents:
|
|
2562
|
-
total:
|
|
2527
|
+
provider_id: joi10.string().uuid().required(),
|
|
2528
|
+
client_id: joi10.string().uuid().allow(null).optional(),
|
|
2529
|
+
documents: joi10.array().items(providerPaymentDocument).required(),
|
|
2530
|
+
total: joi10.number().positive().allow(0).required()
|
|
2563
2531
|
};
|
|
2564
|
-
var providerPaymentBody =
|
|
2532
|
+
var providerPaymentBody = joi10.array().items(joi10.object().keys(providerPaymentBodyKeys)).messages(messages);
|
|
2565
2533
|
var exportPaymentsBodyKeys = {
|
|
2566
|
-
value:
|
|
2567
|
-
provider:
|
|
2568
|
-
npf_ids:
|
|
2534
|
+
value: joi10.number().positive().required(),
|
|
2535
|
+
provider: joi10.string().required(),
|
|
2536
|
+
npf_ids: joi10.array().items(joi10.string().uuid().required()).optional()
|
|
2569
2537
|
};
|
|
2570
|
-
var exportPaymentsBody =
|
|
2538
|
+
var exportPaymentsBody = joi10.array().items(joi10.object().keys(exportPaymentsBodyKeys)).messages(messages);
|
|
2571
2539
|
var exportCurrentAccountBetweenDatesQueryKeys = {
|
|
2572
|
-
owner_id:
|
|
2573
|
-
output:
|
|
2574
|
-
start_date:
|
|
2575
|
-
end_date:
|
|
2576
|
-
token:
|
|
2540
|
+
owner_id: joi10.string().required(),
|
|
2541
|
+
output: joi10.string().valid(...IExportCurrentAccountOutputOptions).required(),
|
|
2542
|
+
start_date: joi10.string().optional(),
|
|
2543
|
+
end_date: joi10.string().optional(),
|
|
2544
|
+
token: joi10.string().required()
|
|
2577
2545
|
};
|
|
2578
|
-
var exportCurrentAccountBetweenDatesQuery =
|
|
2546
|
+
var exportCurrentAccountBetweenDatesQuery = joi10.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
|
|
2579
2547
|
var findSettledMaterialEntranceBuDateParamsKeys = {
|
|
2580
|
-
due_date:
|
|
2548
|
+
due_date: joi10.string().optional()
|
|
2581
2549
|
};
|
|
2582
|
-
var findSettledMaterialEntranceBuDateParams =
|
|
2583
|
-
var findPaymentsNotExportedQuery =
|
|
2584
|
-
whiteList:
|
|
2550
|
+
var findSettledMaterialEntranceBuDateParams = joi10.object().keys(findSettledMaterialEntranceBuDateParamsKeys).messages(messages);
|
|
2551
|
+
var findPaymentsNotExportedQuery = joi10.object().keys({
|
|
2552
|
+
whiteList: joi10.array().items(joi10.string().uuid().required()).optional()
|
|
2585
2553
|
}).messages(messages);
|
|
2586
2554
|
var findCurrentAccountWithPaginationQueryKeys = {
|
|
2587
|
-
owner_id:
|
|
2588
|
-
per_page:
|
|
2589
|
-
current_page:
|
|
2555
|
+
owner_id: joi10.string().uuid().required(),
|
|
2556
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2557
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2590
2558
|
};
|
|
2591
|
-
var findCurrentAccountWithPaginationQuery =
|
|
2559
|
+
var findCurrentAccountWithPaginationQuery = joi10.object().keys(findCurrentAccountWithPaginationQueryKeys).messages(messages);
|
|
2592
2560
|
|
|
2593
2561
|
// src/modules/user/paymentMethods/interfaces.ts
|
|
2594
2562
|
var interfaces_exports22 = {};
|
|
@@ -2624,26 +2592,25 @@ __export(route_schema_exports34, {
|
|
|
2624
2592
|
createBody: () => createBody24,
|
|
2625
2593
|
updateBody: () => updateBody20
|
|
2626
2594
|
});
|
|
2627
|
-
import joi35 from "joi";
|
|
2628
2595
|
var createBodyKeys23 = {
|
|
2629
|
-
name:
|
|
2630
|
-
payment_method_id:
|
|
2631
|
-
is_numerary:
|
|
2632
|
-
is_mb:
|
|
2633
|
-
is_credit:
|
|
2634
|
-
hidden:
|
|
2635
|
-
saft_code:
|
|
2636
|
-
};
|
|
2637
|
-
var createBody24 =
|
|
2596
|
+
name: joi10.string().required(),
|
|
2597
|
+
payment_method_id: joi10.number().integer().allow(null).optional(),
|
|
2598
|
+
is_numerary: joi10.boolean().default(false).optional(),
|
|
2599
|
+
is_mb: joi10.boolean().default(false).optional(),
|
|
2600
|
+
is_credit: joi10.boolean().default(false).optional(),
|
|
2601
|
+
hidden: joi10.boolean().default(false).allow(null).optional(),
|
|
2602
|
+
saft_code: joi10.string().required().valid(...Object.values(PaymentMethodsSaftCodeEnum))
|
|
2603
|
+
};
|
|
2604
|
+
var createBody24 = joi10.object().keys(createBodyKeys23).messages(messages);
|
|
2638
2605
|
var updateBodyKeys20 = {
|
|
2639
|
-
name:
|
|
2640
|
-
payment_method_id:
|
|
2641
|
-
is_numerary:
|
|
2642
|
-
is_mb:
|
|
2643
|
-
is_credit:
|
|
2644
|
-
hidden:
|
|
2606
|
+
name: joi10.string().optional(),
|
|
2607
|
+
payment_method_id: joi10.number().integer().allow(null).optional(),
|
|
2608
|
+
is_numerary: joi10.boolean().optional(),
|
|
2609
|
+
is_mb: joi10.boolean().optional(),
|
|
2610
|
+
is_credit: joi10.boolean().optional(),
|
|
2611
|
+
hidden: joi10.boolean().allow(null).optional()
|
|
2645
2612
|
};
|
|
2646
|
-
var updateBody20 =
|
|
2613
|
+
var updateBody20 = joi10.object().keys(updateBodyKeys20).messages(messages);
|
|
2647
2614
|
|
|
2648
2615
|
// src/modules/user/permissions/interface.ts
|
|
2649
2616
|
var interface_exports16 = {};
|
|
@@ -2661,12 +2628,11 @@ var route_schema_exports35 = {};
|
|
|
2661
2628
|
__export(route_schema_exports35, {
|
|
2662
2629
|
createBody: () => createBody25
|
|
2663
2630
|
});
|
|
2664
|
-
import joi36 from "joi";
|
|
2665
2631
|
var createBodyKeys24 = {
|
|
2666
|
-
code:
|
|
2667
|
-
description:
|
|
2632
|
+
code: joi10.string().required(),
|
|
2633
|
+
description: joi10.string().required()
|
|
2668
2634
|
};
|
|
2669
|
-
var createBody25 =
|
|
2635
|
+
var createBody25 = joi10.object().keys(createBodyKeys24).messages(messages);
|
|
2670
2636
|
|
|
2671
2637
|
// src/modules/stock/productImage/interface.ts
|
|
2672
2638
|
var interface_exports17 = {};
|
|
@@ -2694,29 +2660,28 @@ __export(route_schema_exports36, {
|
|
|
2694
2660
|
findWithPaginationQuery: () => findWithPaginationQuery10,
|
|
2695
2661
|
updateBody: () => updateBody21
|
|
2696
2662
|
});
|
|
2697
|
-
import joi37 from "joi";
|
|
2698
2663
|
var createBodyKeys25 = {
|
|
2699
|
-
type:
|
|
2700
|
-
product_id:
|
|
2701
|
-
product_sheet_id:
|
|
2702
|
-
multimedia_id:
|
|
2703
|
-
created_by:
|
|
2704
|
-
updated_by:
|
|
2705
|
-
};
|
|
2706
|
-
var createBody26 =
|
|
2664
|
+
type: joi10.string().valid(...imageTypes).required(),
|
|
2665
|
+
product_id: joi10.string().uuid().required(),
|
|
2666
|
+
product_sheet_id: joi10.string().uuid().optional(),
|
|
2667
|
+
multimedia_id: joi10.string().uuid().required(),
|
|
2668
|
+
created_by: joi10.string().uuid().optional(),
|
|
2669
|
+
updated_by: joi10.string().uuid().optional()
|
|
2670
|
+
};
|
|
2671
|
+
var createBody26 = joi10.object().keys(createBodyKeys25).xor("product_id", "product_sheet_id").messages(messages);
|
|
2707
2672
|
var updateBodyKeys21 = {
|
|
2708
|
-
type:
|
|
2709
|
-
product_id:
|
|
2710
|
-
multimedia_id:
|
|
2673
|
+
type: joi10.string().valid(...imageTypes).optional(),
|
|
2674
|
+
product_id: joi10.string().uuid().optional(),
|
|
2675
|
+
multimedia_id: joi10.string().uuid().optional()
|
|
2711
2676
|
};
|
|
2712
|
-
var updateBody21 =
|
|
2677
|
+
var updateBody21 = joi10.object().keys(updateBodyKeys21).messages(messages);
|
|
2713
2678
|
var findQueryKeys11 = {};
|
|
2714
|
-
var findQuery11 =
|
|
2679
|
+
var findQuery11 = joi10.object().keys(findQueryKeys11).messages(messages);
|
|
2715
2680
|
var findWithPaginationQueryKeys10 = {
|
|
2716
|
-
per_page:
|
|
2717
|
-
current_page:
|
|
2681
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2682
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2718
2683
|
};
|
|
2719
|
-
var findWithPaginationQuery10 =
|
|
2684
|
+
var findWithPaginationQuery10 = joi10.object().keys(findWithPaginationQueryKeys10).messages(messages);
|
|
2720
2685
|
|
|
2721
2686
|
// src/modules/stock/promotion/interface.ts
|
|
2722
2687
|
var interface_exports18 = {};
|
|
@@ -2737,32 +2702,31 @@ __export(route_schema_exports37, {
|
|
|
2737
2702
|
findWithPaginationQuery: () => findWithPaginationQuery11,
|
|
2738
2703
|
updateBody: () => updateBody22
|
|
2739
2704
|
});
|
|
2740
|
-
import joi38 from "joi";
|
|
2741
2705
|
var createBodyKeys26 = {
|
|
2742
|
-
name:
|
|
2743
|
-
initial_date:
|
|
2744
|
-
final_date:
|
|
2745
|
-
active_for_purchases_above:
|
|
2746
|
-
free_shipping_for_purchases_above:
|
|
2747
|
-
discount:
|
|
2748
|
-
};
|
|
2749
|
-
var createBody27 =
|
|
2706
|
+
name: joi10.string().required(),
|
|
2707
|
+
initial_date: joi10.date().required(),
|
|
2708
|
+
final_date: joi10.date().required(),
|
|
2709
|
+
active_for_purchases_above: joi10.number().integer().positive().allow(0).optional(),
|
|
2710
|
+
free_shipping_for_purchases_above: joi10.number().integer().positive().allow(0, null).optional(),
|
|
2711
|
+
discount: joi10.number().positive().max(100).required()
|
|
2712
|
+
};
|
|
2713
|
+
var createBody27 = joi10.object().keys(createBodyKeys26).messages(messages);
|
|
2750
2714
|
var updateBodyKeys22 = {
|
|
2751
|
-
name:
|
|
2752
|
-
initial_date:
|
|
2753
|
-
final_date:
|
|
2754
|
-
active_for_purchases_above:
|
|
2755
|
-
free_shipping_for_purchases_above:
|
|
2756
|
-
discount:
|
|
2757
|
-
};
|
|
2758
|
-
var updateBody22 =
|
|
2715
|
+
name: joi10.string().optional(),
|
|
2716
|
+
initial_date: joi10.date().optional(),
|
|
2717
|
+
final_date: joi10.date().optional(),
|
|
2718
|
+
active_for_purchases_above: joi10.number().integer().positive().allow(0).optional(),
|
|
2719
|
+
free_shipping_for_purchases_above: joi10.number().integer().positive().allow(0, null).optional(),
|
|
2720
|
+
discount: joi10.number().positive().max(100).optional()
|
|
2721
|
+
};
|
|
2722
|
+
var updateBody22 = joi10.object().keys(updateBodyKeys22).messages(messages);
|
|
2759
2723
|
var findQueryKeys12 = {};
|
|
2760
|
-
var findQuery12 =
|
|
2724
|
+
var findQuery12 = joi10.object().keys(findQueryKeys12).messages(messages);
|
|
2761
2725
|
var findWithPaginationQueryKeys11 = {
|
|
2762
|
-
per_page:
|
|
2763
|
-
current_page:
|
|
2726
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2727
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2764
2728
|
};
|
|
2765
|
-
var findWithPaginationQuery11 =
|
|
2729
|
+
var findWithPaginationQuery11 = joi10.object().keys(findWithPaginationQueryKeys11).messages(messages);
|
|
2766
2730
|
|
|
2767
2731
|
// src/modules/stock/promotionAssoc/interface.ts
|
|
2768
2732
|
var interface_exports19 = {};
|
|
@@ -2783,28 +2747,27 @@ __export(route_schema_exports38, {
|
|
|
2783
2747
|
findWithPaginationQuery: () => findWithPaginationQuery12,
|
|
2784
2748
|
updateBody: () => updateBody23
|
|
2785
2749
|
});
|
|
2786
|
-
import joi39 from "joi";
|
|
2787
2750
|
var createBodyKeys27 = {
|
|
2788
|
-
promotion_id:
|
|
2789
|
-
product_id:
|
|
2790
|
-
client_id:
|
|
2791
|
-
location_id:
|
|
2751
|
+
promotion_id: joi10.string().uuid().required(),
|
|
2752
|
+
product_id: joi10.string().uuid().optional().allow(null),
|
|
2753
|
+
client_id: joi10.string().uuid().optional().allow(null),
|
|
2754
|
+
location_id: joi10.string().uuid().optional().allow(null)
|
|
2792
2755
|
};
|
|
2793
|
-
var createBody28 =
|
|
2756
|
+
var createBody28 = joi10.object().keys(createBodyKeys27).messages(messages);
|
|
2794
2757
|
var updateBodyKeys23 = {
|
|
2795
|
-
promotion_id:
|
|
2796
|
-
client_id:
|
|
2797
|
-
location_id:
|
|
2798
|
-
product_id:
|
|
2758
|
+
promotion_id: joi10.string().uuid().optional(),
|
|
2759
|
+
client_id: joi10.string().uuid().optional().allow(null),
|
|
2760
|
+
location_id: joi10.string().uuid().optional().allow(null),
|
|
2761
|
+
product_id: joi10.string().uuid().optional().allow(null)
|
|
2799
2762
|
};
|
|
2800
|
-
var updateBody23 =
|
|
2763
|
+
var updateBody23 = joi10.object().keys(updateBodyKeys23).messages(messages);
|
|
2801
2764
|
var findQueryKeys13 = {};
|
|
2802
|
-
var findQuery13 =
|
|
2765
|
+
var findQuery13 = joi10.object().keys(findQueryKeys13).messages(messages);
|
|
2803
2766
|
var findWithPaginationQueryKeys12 = {
|
|
2804
|
-
per_page:
|
|
2805
|
-
current_page:
|
|
2767
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2768
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2806
2769
|
};
|
|
2807
|
-
var findWithPaginationQuery12 =
|
|
2770
|
+
var findWithPaginationQuery12 = joi10.object().keys(findWithPaginationQueryKeys12).messages(messages);
|
|
2808
2771
|
|
|
2809
2772
|
// src/modules/user/providers/interface.ts
|
|
2810
2773
|
var interface_exports20 = {};
|
|
@@ -2825,58 +2788,57 @@ __export(route_schema_exports39, {
|
|
|
2825
2788
|
findWithPaginationQuery: () => findWithPaginationQuery13,
|
|
2826
2789
|
updateBody: () => updateBody24
|
|
2827
2790
|
});
|
|
2828
|
-
import joi40 from "joi";
|
|
2829
2791
|
var createMainPersonaKeys3 = {
|
|
2830
|
-
name:
|
|
2831
|
-
nif:
|
|
2832
|
-
email:
|
|
2833
|
-
telephone:
|
|
2792
|
+
name: joi10.string().optional(),
|
|
2793
|
+
nif: joi10.string().allow(null).optional(),
|
|
2794
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
|
|
2795
|
+
telephone: joi10.string().allow(null).optional()
|
|
2834
2796
|
};
|
|
2835
2797
|
var createBodyKeys28 = {
|
|
2836
|
-
user_id:
|
|
2837
|
-
manufacturer:
|
|
2838
|
-
inactive:
|
|
2839
|
-
default_discount:
|
|
2840
|
-
exemption_reason_id:
|
|
2841
|
-
main_persona:
|
|
2842
|
-
provider_type_id:
|
|
2843
|
-
country_id:
|
|
2844
|
-
language_id:
|
|
2845
|
-
support_language_id:
|
|
2846
|
-
default_payment_method_id:
|
|
2847
|
-
default_maturity_date_id:
|
|
2848
|
-
default_delivery_method_id:
|
|
2849
|
-
default_vehicle_id:
|
|
2850
|
-
personas:
|
|
2851
|
-
};
|
|
2852
|
-
var createBody29 =
|
|
2798
|
+
user_id: joi10.string().uuid().optional(),
|
|
2799
|
+
manufacturer: joi10.boolean().default(false).optional(),
|
|
2800
|
+
inactive: joi10.boolean().default(false).optional(),
|
|
2801
|
+
default_discount: joi10.number().positive().allow(0).default(0).max(100).optional(),
|
|
2802
|
+
exemption_reason_id: joi10.string().uuid().allow(null).optional(),
|
|
2803
|
+
main_persona: joi10.object().keys(createMainPersonaKeys3).required(),
|
|
2804
|
+
provider_type_id: joi10.string().uuid().allow(null).optional(),
|
|
2805
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
2806
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
2807
|
+
support_language_id: joi10.string().uuid().allow(null).optional(),
|
|
2808
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
2809
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
2810
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
2811
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional(),
|
|
2812
|
+
personas: joi10.array().items(joi10.object().keys(createMainPersonaKeys3)).optional()
|
|
2813
|
+
};
|
|
2814
|
+
var createBody29 = joi10.object().keys(createBodyKeys28).messages(messages);
|
|
2853
2815
|
var updateBodyKeys24 = {
|
|
2854
|
-
chat_type:
|
|
2855
|
-
manufacturer:
|
|
2856
|
-
inactive:
|
|
2857
|
-
default_discount:
|
|
2858
|
-
provider_type_id:
|
|
2859
|
-
country_id:
|
|
2860
|
-
language_id:
|
|
2861
|
-
support_language_id:
|
|
2862
|
-
main_persona_id:
|
|
2863
|
-
contact_persona_id:
|
|
2864
|
-
default_payment_method_id:
|
|
2865
|
-
default_maturity_date_id:
|
|
2866
|
-
default_delivery_method_id:
|
|
2867
|
-
default_vehicle_id:
|
|
2868
|
-
};
|
|
2869
|
-
var updateBody24 =
|
|
2816
|
+
chat_type: joi10.string().valid(...chatTypes).optional(),
|
|
2817
|
+
manufacturer: joi10.boolean().optional(),
|
|
2818
|
+
inactive: joi10.boolean().optional(),
|
|
2819
|
+
default_discount: joi10.number().positive().allow(0).max(100).optional(),
|
|
2820
|
+
provider_type_id: joi10.string().uuid().allow(null).optional(),
|
|
2821
|
+
country_id: joi10.string().uuid().allow(null).optional(),
|
|
2822
|
+
language_id: joi10.string().uuid().allow(null).optional(),
|
|
2823
|
+
support_language_id: joi10.string().uuid().allow(null).optional(),
|
|
2824
|
+
main_persona_id: joi10.string().uuid().optional(),
|
|
2825
|
+
contact_persona_id: joi10.string().uuid().optional(),
|
|
2826
|
+
default_payment_method_id: joi10.string().uuid().allow(null).optional(),
|
|
2827
|
+
default_maturity_date_id: joi10.string().uuid().allow(null).optional(),
|
|
2828
|
+
default_delivery_method_id: joi10.string().uuid().allow(null).optional(),
|
|
2829
|
+
default_vehicle_id: joi10.string().uuid().allow(null).optional()
|
|
2830
|
+
};
|
|
2831
|
+
var updateBody24 = joi10.object().keys(updateBodyKeys24).messages(messages);
|
|
2870
2832
|
var findQueryKeys14 = {
|
|
2871
|
-
number:
|
|
2872
|
-
id:
|
|
2833
|
+
number: joi10.array().items(joi10.number().positive().allow(0).required()).optional(),
|
|
2834
|
+
id: joi10.array().items(joi10.string().uuid().required()).optional()
|
|
2873
2835
|
};
|
|
2874
|
-
var findQuery14 =
|
|
2836
|
+
var findQuery14 = joi10.object().keys(findQueryKeys14).messages(messages);
|
|
2875
2837
|
var findWithPaginationQueryKeys13 = {
|
|
2876
|
-
per_page:
|
|
2877
|
-
current_page:
|
|
2838
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2839
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2878
2840
|
};
|
|
2879
|
-
var findWithPaginationQuery13 =
|
|
2841
|
+
var findWithPaginationQuery13 = joi10.object().keys(findWithPaginationQueryKeys13).messages(messages);
|
|
2880
2842
|
|
|
2881
2843
|
// src/modules/user/providerType/interface.ts
|
|
2882
2844
|
var interface_exports21 = {};
|
|
@@ -2897,22 +2859,21 @@ __export(route_schema_exports40, {
|
|
|
2897
2859
|
findWithPaginationQuery: () => findWithPaginationQuery14,
|
|
2898
2860
|
updateBody: () => updateBody25
|
|
2899
2861
|
});
|
|
2900
|
-
import joi41 from "joi";
|
|
2901
2862
|
var createBodyKeys29 = {
|
|
2902
|
-
name:
|
|
2863
|
+
name: joi10.string().required()
|
|
2903
2864
|
};
|
|
2904
|
-
var createBody30 =
|
|
2865
|
+
var createBody30 = joi10.object().keys(createBodyKeys29).messages(messages);
|
|
2905
2866
|
var updateBodyKeys25 = {
|
|
2906
|
-
name:
|
|
2867
|
+
name: joi10.string().required()
|
|
2907
2868
|
};
|
|
2908
|
-
var updateBody25 =
|
|
2869
|
+
var updateBody25 = joi10.object().keys(updateBodyKeys25).messages(messages);
|
|
2909
2870
|
var findQueryKeys15 = {};
|
|
2910
|
-
var findQuery15 =
|
|
2871
|
+
var findQuery15 = joi10.object().keys(findQueryKeys15).messages(messages);
|
|
2911
2872
|
var findWithPaginationQueryKeys14 = {
|
|
2912
|
-
per_page:
|
|
2913
|
-
current_page:
|
|
2873
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2874
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2914
2875
|
};
|
|
2915
|
-
var findWithPaginationQuery14 =
|
|
2876
|
+
var findWithPaginationQuery14 = joi10.object().keys(findWithPaginationQueryKeys14).messages(messages);
|
|
2916
2877
|
|
|
2917
2878
|
// src/modules/user/purchaseConditions/interface.ts
|
|
2918
2879
|
var interface_exports22 = {};
|
|
@@ -2933,27 +2894,26 @@ __export(route_schema_exports41, {
|
|
|
2933
2894
|
findWithPaginationQuery: () => findWithPaginationQuery15,
|
|
2934
2895
|
updateBody: () => updateBody26
|
|
2935
2896
|
});
|
|
2936
|
-
import joi42 from "joi";
|
|
2937
2897
|
var createBodyKeys30 = {
|
|
2938
|
-
provider_id:
|
|
2939
|
-
deadline:
|
|
2940
|
-
discount:
|
|
2941
|
-
minimum_quantity:
|
|
2898
|
+
provider_id: joi10.string().uuid().required(),
|
|
2899
|
+
deadline: joi10.string().required(),
|
|
2900
|
+
discount: joi10.string().required(),
|
|
2901
|
+
minimum_quantity: joi10.string().required()
|
|
2942
2902
|
};
|
|
2943
|
-
var createBody31 =
|
|
2903
|
+
var createBody31 = joi10.object().keys(createBodyKeys30).messages(messages);
|
|
2944
2904
|
var updateBodyKeys26 = {
|
|
2945
|
-
deadline:
|
|
2946
|
-
discount:
|
|
2947
|
-
minimum_quantity:
|
|
2905
|
+
deadline: joi10.string().optional(),
|
|
2906
|
+
discount: joi10.string().optional(),
|
|
2907
|
+
minimum_quantity: joi10.string().optional()
|
|
2948
2908
|
};
|
|
2949
|
-
var updateBody26 =
|
|
2909
|
+
var updateBody26 = joi10.object().keys(updateBodyKeys26).messages(messages);
|
|
2950
2910
|
var findQueryKeys16 = {};
|
|
2951
|
-
var findQuery16 =
|
|
2911
|
+
var findQuery16 = joi10.object().keys(findQueryKeys16).messages(messages);
|
|
2952
2912
|
var findWithPaginationQueryKeys15 = {
|
|
2953
|
-
per_page:
|
|
2954
|
-
current_page:
|
|
2913
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2914
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2955
2915
|
};
|
|
2956
|
-
var findWithPaginationQuery15 =
|
|
2916
|
+
var findWithPaginationQuery15 = joi10.object().keys(findWithPaginationQueryKeys15).messages(messages);
|
|
2957
2917
|
|
|
2958
2918
|
// src/modules/user/reasonForExemption/interface.ts
|
|
2959
2919
|
var interface_exports23 = {};
|
|
@@ -2974,26 +2934,25 @@ __export(route_schema_exports42, {
|
|
|
2974
2934
|
findWithPaginationQuery: () => findWithPaginationQuery16,
|
|
2975
2935
|
updateBody: () => updateBody27
|
|
2976
2936
|
});
|
|
2977
|
-
import joi43 from "joi";
|
|
2978
2937
|
var createBodyKeys31 = {
|
|
2979
|
-
name:
|
|
2980
|
-
description:
|
|
2981
|
-
saft_code:
|
|
2938
|
+
name: joi10.string().required(),
|
|
2939
|
+
description: joi10.string().required(),
|
|
2940
|
+
saft_code: joi10.string().required()
|
|
2982
2941
|
};
|
|
2983
|
-
var createBody32 =
|
|
2942
|
+
var createBody32 = joi10.object().keys(createBodyKeys31).messages(messages);
|
|
2984
2943
|
var updateBodyKeys27 = {
|
|
2985
|
-
name:
|
|
2986
|
-
description:
|
|
2987
|
-
saft_code:
|
|
2944
|
+
name: joi10.string().optional(),
|
|
2945
|
+
description: joi10.string().optional(),
|
|
2946
|
+
saft_code: joi10.string().optional()
|
|
2988
2947
|
};
|
|
2989
|
-
var updateBody27 =
|
|
2948
|
+
var updateBody27 = joi10.object().keys(updateBodyKeys27).messages(messages);
|
|
2990
2949
|
var findQueryKeys17 = {};
|
|
2991
|
-
var findQuery17 =
|
|
2950
|
+
var findQuery17 = joi10.object().keys(findQueryKeys17).messages(messages);
|
|
2992
2951
|
var findWithPaginationQueryKeys16 = {
|
|
2993
|
-
per_page:
|
|
2994
|
-
current_page:
|
|
2952
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
2953
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
2995
2954
|
};
|
|
2996
|
-
var findWithPaginationQuery16 =
|
|
2955
|
+
var findWithPaginationQuery16 = joi10.object().keys(findWithPaginationQueryKeys16).messages(messages);
|
|
2997
2956
|
|
|
2998
2957
|
// src/modules/user/refreshToken/interface.ts
|
|
2999
2958
|
var interface_exports24 = {};
|
|
@@ -3003,12 +2962,11 @@ var route_schema_exports43 = {};
|
|
|
3003
2962
|
__export(route_schema_exports43, {
|
|
3004
2963
|
refreshTokenBody: () => refreshTokenBody
|
|
3005
2964
|
});
|
|
3006
|
-
import joi44 from "joi";
|
|
3007
2965
|
var refreshTokenBodyKeys = {
|
|
3008
|
-
token:
|
|
3009
|
-
ip:
|
|
2966
|
+
token: joi10.string(),
|
|
2967
|
+
ip: joi10.string()
|
|
3010
2968
|
};
|
|
3011
|
-
var refreshTokenBody =
|
|
2969
|
+
var refreshTokenBody = joi10.object().keys(refreshTokenBodyKeys).messages(messages);
|
|
3012
2970
|
|
|
3013
2971
|
// src/modules/user/segmentsArea/interface.ts
|
|
3014
2972
|
var interface_exports25 = {};
|
|
@@ -3029,24 +2987,23 @@ __export(route_schema_exports44, {
|
|
|
3029
2987
|
findWithPaginationQuery: () => findWithPaginationQuery17,
|
|
3030
2988
|
updateBody: () => updateBody28
|
|
3031
2989
|
});
|
|
3032
|
-
import joi45 from "joi";
|
|
3033
2990
|
var createBodyKeys32 = {
|
|
3034
|
-
name:
|
|
3035
|
-
type:
|
|
2991
|
+
name: joi10.string().required(),
|
|
2992
|
+
type: joi10.string().required()
|
|
3036
2993
|
};
|
|
3037
|
-
var createBody33 =
|
|
2994
|
+
var createBody33 = joi10.object().keys(createBodyKeys32).messages(messages);
|
|
3038
2995
|
var updateBodyKeys28 = {
|
|
3039
|
-
name:
|
|
3040
|
-
type:
|
|
2996
|
+
name: joi10.string().required(),
|
|
2997
|
+
type: joi10.string().required()
|
|
3041
2998
|
};
|
|
3042
|
-
var updateBody28 =
|
|
2999
|
+
var updateBody28 = joi10.object().keys(updateBodyKeys28).messages(messages);
|
|
3043
3000
|
var findQueryKeys18 = {};
|
|
3044
|
-
var findQuery18 =
|
|
3001
|
+
var findQuery18 = joi10.object().keys(findQueryKeys18).messages(messages);
|
|
3045
3002
|
var findWithPaginationQueryKeys17 = {
|
|
3046
|
-
per_page:
|
|
3047
|
-
current_page:
|
|
3003
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3004
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3048
3005
|
};
|
|
3049
|
-
var findWithPaginationQuery17 =
|
|
3006
|
+
var findWithPaginationQuery17 = joi10.object().keys(findWithPaginationQueryKeys17).messages(messages);
|
|
3050
3007
|
|
|
3051
3008
|
// src/modules/user/sessions/interface.ts
|
|
3052
3009
|
var interface_exports26 = {};
|
|
@@ -3056,12 +3013,11 @@ var route_schema_exports45 = {};
|
|
|
3056
3013
|
__export(route_schema_exports45, {
|
|
3057
3014
|
sessionBody: () => sessionBody
|
|
3058
3015
|
});
|
|
3059
|
-
import joi46 from "joi";
|
|
3060
3016
|
var sessionBodyKeys = {
|
|
3061
|
-
account:
|
|
3062
|
-
password:
|
|
3017
|
+
account: joi10.string().required(),
|
|
3018
|
+
password: joi10.string().required()
|
|
3063
3019
|
};
|
|
3064
|
-
var sessionBody =
|
|
3020
|
+
var sessionBody = joi10.object().keys(sessionBodyKeys).messages(messages);
|
|
3065
3021
|
|
|
3066
3022
|
// src/modules/user/shippings/interface.ts
|
|
3067
3023
|
var interface_exports27 = {};
|
|
@@ -3082,29 +3038,28 @@ __export(route_schema_exports46, {
|
|
|
3082
3038
|
findWithPaginationQuery: () => findWithPaginationQuery18,
|
|
3083
3039
|
updateBody: () => updateBody29
|
|
3084
3040
|
});
|
|
3085
|
-
import joi47 from "joi";
|
|
3086
3041
|
var createBodyKeys33 = {
|
|
3087
|
-
provider_id:
|
|
3088
|
-
quantity:
|
|
3089
|
-
type:
|
|
3090
|
-
value:
|
|
3091
|
-
unit:
|
|
3042
|
+
provider_id: joi10.string().uuid().required(),
|
|
3043
|
+
quantity: joi10.string().required(),
|
|
3044
|
+
type: joi10.string().required().valid("At\xE9", "Entre", "A Partir de"),
|
|
3045
|
+
value: joi10.string().required(),
|
|
3046
|
+
unit: joi10.string().required()
|
|
3092
3047
|
};
|
|
3093
|
-
var createBody34 =
|
|
3048
|
+
var createBody34 = joi10.object().keys(createBodyKeys33).messages(messages);
|
|
3094
3049
|
var updateBodyKeys29 = {
|
|
3095
|
-
quantity:
|
|
3096
|
-
type:
|
|
3097
|
-
value:
|
|
3098
|
-
unit:
|
|
3050
|
+
quantity: joi10.string().optional(),
|
|
3051
|
+
type: joi10.string().valid("At\xE9", "Entre", "A Partir de").optional(),
|
|
3052
|
+
value: joi10.string().optional(),
|
|
3053
|
+
unit: joi10.string().optional()
|
|
3099
3054
|
};
|
|
3100
|
-
var updateBody29 =
|
|
3055
|
+
var updateBody29 = joi10.object().keys(updateBodyKeys29).messages(messages);
|
|
3101
3056
|
var findQueryKeys19 = {};
|
|
3102
|
-
var findQuery19 =
|
|
3057
|
+
var findQuery19 = joi10.object().keys(findQueryKeys19).messages(messages);
|
|
3103
3058
|
var findWithPaginationQueryKeys18 = {
|
|
3104
|
-
per_page:
|
|
3105
|
-
current_page:
|
|
3059
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3060
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3106
3061
|
};
|
|
3107
|
-
var findWithPaginationQuery18 =
|
|
3062
|
+
var findWithPaginationQuery18 = joi10.object().keys(findWithPaginationQueryKeys18).messages(messages);
|
|
3108
3063
|
|
|
3109
3064
|
// src/modules/user/storeOperator/interface.ts
|
|
3110
3065
|
var interface_exports28 = {};
|
|
@@ -3127,57 +3082,56 @@ __export(route_schema_exports47, {
|
|
|
3127
3082
|
updateBody: () => updateBody30,
|
|
3128
3083
|
updateStoreOperatorQuery: () => updateStoreOperatorQuery
|
|
3129
3084
|
});
|
|
3130
|
-
import joi48 from "joi";
|
|
3131
3085
|
var createMainPersonaKeys4 = {
|
|
3132
|
-
name:
|
|
3133
|
-
nif:
|
|
3134
|
-
email:
|
|
3135
|
-
telephone:
|
|
3086
|
+
name: joi10.string().optional(),
|
|
3087
|
+
nif: joi10.string().allow(null).optional(),
|
|
3088
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
|
|
3089
|
+
telephone: joi10.string().allow(null).optional()
|
|
3136
3090
|
};
|
|
3137
3091
|
var createBodyKeys34 = {
|
|
3138
|
-
user_id:
|
|
3139
|
-
user_position_id:
|
|
3140
|
-
location_id:
|
|
3141
|
-
internal_email:
|
|
3142
|
-
support_language_id:
|
|
3143
|
-
main_persona:
|
|
3144
|
-
};
|
|
3145
|
-
var createBody35 =
|
|
3092
|
+
user_id: joi10.string().uuid().required(),
|
|
3093
|
+
user_position_id: joi10.string().uuid().allow(null).optional(),
|
|
3094
|
+
location_id: joi10.string().uuid().required(),
|
|
3095
|
+
internal_email: joi10.string().email({ tlds: { allow: false } }).optional(),
|
|
3096
|
+
support_language_id: joi10.string().uuid().allow(null).optional(),
|
|
3097
|
+
main_persona: joi10.object().keys(createMainPersonaKeys4).required()
|
|
3098
|
+
};
|
|
3099
|
+
var createBody35 = joi10.object().keys(createBodyKeys34).messages(messages);
|
|
3146
3100
|
var updateBodyKeys30 = {
|
|
3147
|
-
chat_type:
|
|
3148
|
-
old_pin:
|
|
3149
|
-
pin:
|
|
3150
|
-
is:
|
|
3151
|
-
then:
|
|
3101
|
+
chat_type: joi10.string().valid(...chatTypes).optional(),
|
|
3102
|
+
old_pin: joi10.string().optional(),
|
|
3103
|
+
pin: joi10.when("old_pin", {
|
|
3104
|
+
is: joi10.exist(),
|
|
3105
|
+
then: joi10.required()
|
|
3152
3106
|
}).optional(),
|
|
3153
|
-
inactive:
|
|
3154
|
-
internal_email:
|
|
3155
|
-
location_id:
|
|
3156
|
-
user_position_id:
|
|
3157
|
-
support_language_id:
|
|
3158
|
-
main_persona_id:
|
|
3159
|
-
contact_persona_id:
|
|
3160
|
-
};
|
|
3161
|
-
var updateBody30 =
|
|
3107
|
+
inactive: joi10.boolean().optional(),
|
|
3108
|
+
internal_email: joi10.string().email({ tlds: { allow: false } }).optional(),
|
|
3109
|
+
location_id: joi10.string().uuid().optional(),
|
|
3110
|
+
user_position_id: joi10.string().uuid().allow(null).optional(),
|
|
3111
|
+
support_language_id: joi10.string().uuid().allow(null).optional(),
|
|
3112
|
+
main_persona_id: joi10.string().uuid().optional(),
|
|
3113
|
+
contact_persona_id: joi10.string().uuid().optional()
|
|
3114
|
+
};
|
|
3115
|
+
var updateBody30 = joi10.object().keys(updateBodyKeys30).messages(messages);
|
|
3162
3116
|
var checkPinBodyKeys = {
|
|
3163
|
-
conference_pin:
|
|
3117
|
+
conference_pin: joi10.string().required()
|
|
3164
3118
|
};
|
|
3165
|
-
var checkPinBody =
|
|
3119
|
+
var checkPinBody = joi10.object().keys(checkPinBodyKeys).messages(messages);
|
|
3166
3120
|
var findQueryKeys20 = {};
|
|
3167
|
-
var findQuery20 =
|
|
3121
|
+
var findQuery20 = joi10.object().keys(findQueryKeys20).messages(messages);
|
|
3168
3122
|
var findWithPaginationQueryKeys19 = {
|
|
3169
|
-
per_page:
|
|
3170
|
-
current_page:
|
|
3123
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3124
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3171
3125
|
};
|
|
3172
|
-
var findWithPaginationQuery19 =
|
|
3126
|
+
var findWithPaginationQuery19 = joi10.object().keys(findWithPaginationQueryKeys19).messages(messages);
|
|
3173
3127
|
var updateStoreOperatorQueryKeys = {
|
|
3174
|
-
name:
|
|
3175
|
-
account:
|
|
3176
|
-
email:
|
|
3177
|
-
internal_email:
|
|
3178
|
-
inactive:
|
|
3128
|
+
name: joi10.string().allow(null, "").optional(),
|
|
3129
|
+
account: joi10.string().allow(null, "").optional(),
|
|
3130
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3131
|
+
internal_email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3132
|
+
inactive: joi10.boolean().optional()
|
|
3179
3133
|
};
|
|
3180
|
-
var updateStoreOperatorQuery =
|
|
3134
|
+
var updateStoreOperatorQuery = joi10.object().keys(updateStoreOperatorQueryKeys).messages(messages);
|
|
3181
3135
|
|
|
3182
3136
|
// src/modules/user/swift/interface.ts
|
|
3183
3137
|
var interface_exports29 = {};
|
|
@@ -3198,30 +3152,29 @@ __export(route_schema_exports48, {
|
|
|
3198
3152
|
findWithPaginationQuery: () => findWithPaginationQuery20,
|
|
3199
3153
|
updateBody: () => updateBody31
|
|
3200
3154
|
});
|
|
3201
|
-
import joi49 from "joi";
|
|
3202
3155
|
var createBodyKeys35 = {
|
|
3203
|
-
bank:
|
|
3204
|
-
city:
|
|
3205
|
-
branch:
|
|
3206
|
-
code:
|
|
3207
|
-
country_id:
|
|
3156
|
+
bank: joi10.string().required(),
|
|
3157
|
+
city: joi10.string().required(),
|
|
3158
|
+
branch: joi10.string().optional().allow(null),
|
|
3159
|
+
code: joi10.string().required(),
|
|
3160
|
+
country_id: joi10.string().required()
|
|
3208
3161
|
};
|
|
3209
|
-
var createBody36 =
|
|
3162
|
+
var createBody36 = joi10.object().keys(createBodyKeys35).messages(messages);
|
|
3210
3163
|
var updateBodyKeys31 = {
|
|
3211
|
-
bank:
|
|
3212
|
-
city:
|
|
3213
|
-
branch:
|
|
3214
|
-
code:
|
|
3215
|
-
country_id:
|
|
3164
|
+
bank: joi10.string().optional(),
|
|
3165
|
+
city: joi10.string().optional(),
|
|
3166
|
+
branch: joi10.string().optional().allow(null),
|
|
3167
|
+
code: joi10.string().optional(),
|
|
3168
|
+
country_id: joi10.string().optional()
|
|
3216
3169
|
};
|
|
3217
|
-
var updateBody31 =
|
|
3170
|
+
var updateBody31 = joi10.object().keys(updateBodyKeys31).messages(messages);
|
|
3218
3171
|
var findQueryKeys21 = {};
|
|
3219
|
-
var findQuery21 =
|
|
3172
|
+
var findQuery21 = joi10.object().keys(findQueryKeys21).messages(messages);
|
|
3220
3173
|
var findWithPaginationQueryKeys20 = {
|
|
3221
|
-
per_page:
|
|
3222
|
-
current_page:
|
|
3174
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3175
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3223
3176
|
};
|
|
3224
|
-
var findWithPaginationQuery20 =
|
|
3177
|
+
var findWithPaginationQuery20 = joi10.object().keys(findWithPaginationQueryKeys20).messages(messages);
|
|
3225
3178
|
|
|
3226
3179
|
// src/modules/stock/typeOfLocation/interface.ts
|
|
3227
3180
|
var interface_exports30 = {};
|
|
@@ -3242,22 +3195,21 @@ __export(route_schema_exports49, {
|
|
|
3242
3195
|
findWithPaginationQuery: () => findWithPaginationQuery21,
|
|
3243
3196
|
updateBody: () => updateBody32
|
|
3244
3197
|
});
|
|
3245
|
-
import joi50 from "joi";
|
|
3246
3198
|
var createBodyKeys36 = {
|
|
3247
|
-
name:
|
|
3199
|
+
name: joi10.string().required()
|
|
3248
3200
|
};
|
|
3249
|
-
var createBody37 =
|
|
3201
|
+
var createBody37 = joi10.object().keys(createBodyKeys36).messages(messages);
|
|
3250
3202
|
var updateBodyKeys32 = {
|
|
3251
|
-
name:
|
|
3203
|
+
name: joi10.string().optional()
|
|
3252
3204
|
};
|
|
3253
|
-
var updateBody32 =
|
|
3205
|
+
var updateBody32 = joi10.object().keys(updateBodyKeys32).messages(messages);
|
|
3254
3206
|
var findQueryKeys22 = {};
|
|
3255
|
-
var findQuery22 =
|
|
3207
|
+
var findQuery22 = joi10.object().keys(findQueryKeys22).messages(messages);
|
|
3256
3208
|
var findWithPaginationQueryKeys21 = {
|
|
3257
|
-
per_page:
|
|
3258
|
-
current_page:
|
|
3209
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3210
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3259
3211
|
};
|
|
3260
|
-
var findWithPaginationQuery21 =
|
|
3212
|
+
var findWithPaginationQuery21 = joi10.object().keys(findWithPaginationQueryKeys21).messages(messages);
|
|
3261
3213
|
|
|
3262
3214
|
// src/modules/stock/unitOfMeasure/interface.ts
|
|
3263
3215
|
var interface_exports31 = {};
|
|
@@ -3278,32 +3230,31 @@ __export(route_schema_exports50, {
|
|
|
3278
3230
|
findWithPaginationQuery: () => findWithPaginationQuery22,
|
|
3279
3231
|
updateBody: () => updateBody33
|
|
3280
3232
|
});
|
|
3281
|
-
import joi51 from "joi";
|
|
3282
3233
|
var createBodyKeys37 = {
|
|
3283
|
-
name:
|
|
3284
|
-
notation:
|
|
3285
|
-
type:
|
|
3286
|
-
default_quantity:
|
|
3287
|
-
divisible:
|
|
3288
|
-
integer_only:
|
|
3289
|
-
};
|
|
3290
|
-
var createBody38 =
|
|
3234
|
+
name: joi10.string().required(),
|
|
3235
|
+
notation: joi10.string().required(),
|
|
3236
|
+
type: joi10.string().valid("length", "area", "mass", "volume").required(),
|
|
3237
|
+
default_quantity: joi10.boolean().optional(),
|
|
3238
|
+
divisible: joi10.boolean().optional(),
|
|
3239
|
+
integer_only: joi10.boolean().optional()
|
|
3240
|
+
};
|
|
3241
|
+
var createBody38 = joi10.object().keys(createBodyKeys37).messages(messages);
|
|
3291
3242
|
var updateBodyKeys33 = {
|
|
3292
|
-
name:
|
|
3293
|
-
notation:
|
|
3294
|
-
type:
|
|
3295
|
-
default_quantity:
|
|
3296
|
-
divisible:
|
|
3297
|
-
integer_only:
|
|
3298
|
-
};
|
|
3299
|
-
var updateBody33 =
|
|
3243
|
+
name: joi10.string().optional(),
|
|
3244
|
+
notation: joi10.string().optional(),
|
|
3245
|
+
type: joi10.string().valid("length", "area", "mass", "volume").optional(),
|
|
3246
|
+
default_quantity: joi10.boolean().optional(),
|
|
3247
|
+
divisible: joi10.boolean().optional(),
|
|
3248
|
+
integer_only: joi10.boolean().optional()
|
|
3249
|
+
};
|
|
3250
|
+
var updateBody33 = joi10.object().keys(updateBodyKeys33).messages(messages);
|
|
3300
3251
|
var findQueryKeys23 = {};
|
|
3301
|
-
var findQuery23 =
|
|
3252
|
+
var findQuery23 = joi10.object().keys(findQueryKeys23).messages(messages);
|
|
3302
3253
|
var findWithPaginationQueryKeys22 = {
|
|
3303
|
-
per_page:
|
|
3304
|
-
current_page:
|
|
3254
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3255
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3305
3256
|
};
|
|
3306
|
-
var findWithPaginationQuery22 =
|
|
3257
|
+
var findWithPaginationQuery22 = joi10.object().keys(findWithPaginationQueryKeys22).messages(messages);
|
|
3307
3258
|
|
|
3308
3259
|
// src/modules/user/userPermissions/interface.ts
|
|
3309
3260
|
var interface_exports32 = {};
|
|
@@ -3321,13 +3272,12 @@ var route_schema_exports51 = {};
|
|
|
3321
3272
|
__export(route_schema_exports51, {
|
|
3322
3273
|
createBody: () => createBody39
|
|
3323
3274
|
});
|
|
3324
|
-
import joi52 from "joi";
|
|
3325
3275
|
var createBodyKeys38 = {
|
|
3326
|
-
group_id:
|
|
3327
|
-
permission_id:
|
|
3328
|
-
user_id:
|
|
3276
|
+
group_id: joi10.number().positive().required(),
|
|
3277
|
+
permission_id: joi10.number().positive().required(),
|
|
3278
|
+
user_id: joi10.string().uuid().required()
|
|
3329
3279
|
};
|
|
3330
|
-
var createBody39 =
|
|
3280
|
+
var createBody39 = joi10.object().keys(createBodyKeys38).messages(messages);
|
|
3331
3281
|
|
|
3332
3282
|
// src/modules/user/userPositions/interface.ts
|
|
3333
3283
|
var interface_exports33 = {};
|
|
@@ -3348,22 +3298,21 @@ __export(route_schema_exports52, {
|
|
|
3348
3298
|
findWithPaginationQuery: () => findWithPaginationQuery23,
|
|
3349
3299
|
updateBody: () => updateBody34
|
|
3350
3300
|
});
|
|
3351
|
-
import joi53 from "joi";
|
|
3352
3301
|
var createBodyKeys39 = {
|
|
3353
|
-
name:
|
|
3302
|
+
name: joi10.string().required()
|
|
3354
3303
|
};
|
|
3355
|
-
var createBody40 =
|
|
3304
|
+
var createBody40 = joi10.object().keys(createBodyKeys39).messages(messages);
|
|
3356
3305
|
var updateBodyKeys34 = {
|
|
3357
|
-
name:
|
|
3306
|
+
name: joi10.string().required()
|
|
3358
3307
|
};
|
|
3359
|
-
var updateBody34 =
|
|
3308
|
+
var updateBody34 = joi10.object().keys(updateBodyKeys34).messages(messages);
|
|
3360
3309
|
var findQueryKeys24 = {};
|
|
3361
|
-
var findQuery24 =
|
|
3310
|
+
var findQuery24 = joi10.object().keys(findQueryKeys24).messages(messages);
|
|
3362
3311
|
var findWithPaginationQueryKeys23 = {
|
|
3363
|
-
per_page:
|
|
3364
|
-
current_page:
|
|
3312
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3313
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3365
3314
|
};
|
|
3366
|
-
var findWithPaginationQuery23 =
|
|
3315
|
+
var findWithPaginationQuery23 = joi10.object().keys(findWithPaginationQueryKeys23).messages(messages);
|
|
3367
3316
|
|
|
3368
3317
|
// src/modules/user/users/interface.ts
|
|
3369
3318
|
var interface_exports34 = {};
|
|
@@ -3386,33 +3335,32 @@ __export(route_schema_exports53, {
|
|
|
3386
3335
|
findWithPaginationQuery: () => findWithPaginationQuery24,
|
|
3387
3336
|
updateBody: () => updateBody35
|
|
3388
3337
|
});
|
|
3389
|
-
import joi54 from "joi";
|
|
3390
3338
|
var createBodyKeys40 = {
|
|
3391
|
-
account:
|
|
3392
|
-
password:
|
|
3339
|
+
account: joi10.string().allow(null).required(),
|
|
3340
|
+
password: joi10.string().required()
|
|
3393
3341
|
};
|
|
3394
|
-
var createBody41 =
|
|
3342
|
+
var createBody41 = joi10.object().keys(createBodyKeys40).messages(messages);
|
|
3395
3343
|
var updateBodyKeys35 = {
|
|
3396
|
-
account:
|
|
3397
|
-
old_password:
|
|
3398
|
-
password:
|
|
3344
|
+
account: joi10.string().optional(),
|
|
3345
|
+
old_password: joi10.string().optional(),
|
|
3346
|
+
password: joi10.string().optional()
|
|
3399
3347
|
};
|
|
3400
|
-
var updateBody35 =
|
|
3348
|
+
var updateBody35 = joi10.object().keys(updateBodyKeys35).messages(messages);
|
|
3401
3349
|
var findQueryKeys25 = {};
|
|
3402
|
-
var findQuery25 =
|
|
3350
|
+
var findQuery25 = joi10.object().keys(findQueryKeys25).messages(messages);
|
|
3403
3351
|
var findProvidersWithClientIdQueryKeys = {
|
|
3404
|
-
provider_ids:
|
|
3352
|
+
provider_ids: joi10.array().items(joi10.string().uuid().required()).optional()
|
|
3405
3353
|
};
|
|
3406
|
-
var findProvidersWithClientIdQuery =
|
|
3354
|
+
var findProvidersWithClientIdQuery = joi10.object().keys(findProvidersWithClientIdQueryKeys).messages(messages);
|
|
3407
3355
|
var findFromClientOrProviderIdBodyKeys = {
|
|
3408
|
-
ids:
|
|
3356
|
+
ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
3409
3357
|
};
|
|
3410
|
-
var findFromClientOrProviderIdBody =
|
|
3358
|
+
var findFromClientOrProviderIdBody = joi10.object().keys(findFromClientOrProviderIdBodyKeys).messages(messages);
|
|
3411
3359
|
var findWithPaginationQueryKeys24 = {
|
|
3412
|
-
per_page:
|
|
3413
|
-
current_page:
|
|
3360
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3361
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3414
3362
|
};
|
|
3415
|
-
var findWithPaginationQuery24 =
|
|
3363
|
+
var findWithPaginationQuery24 = joi10.object().keys(findWithPaginationQueryKeys24).messages(messages);
|
|
3416
3364
|
|
|
3417
3365
|
// src/modules/user/userTokens/interface.ts
|
|
3418
3366
|
var interface_exports35 = {};
|
|
@@ -3431,14 +3379,13 @@ __export(route_schema_exports54, {
|
|
|
3431
3379
|
findQuery: () => findQuery26,
|
|
3432
3380
|
findWithPaginationQuery: () => findWithPaginationQuery25
|
|
3433
3381
|
});
|
|
3434
|
-
import joi55 from "joi";
|
|
3435
3382
|
var findQueryKeys26 = {};
|
|
3436
|
-
var findQuery26 =
|
|
3383
|
+
var findQuery26 = joi10.object().keys(findQueryKeys26).messages(messages);
|
|
3437
3384
|
var findWithPaginationQueryKeys25 = {
|
|
3438
|
-
per_page:
|
|
3439
|
-
current_page:
|
|
3385
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3386
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3440
3387
|
};
|
|
3441
|
-
var findWithPaginationQuery25 =
|
|
3388
|
+
var findWithPaginationQuery25 = joi10.object().keys(findWithPaginationQueryKeys25).messages(messages);
|
|
3442
3389
|
|
|
3443
3390
|
// src/modules/stock/vatTax/interface.ts
|
|
3444
3391
|
var interface_exports36 = {};
|
|
@@ -3459,24 +3406,23 @@ __export(route_schema_exports55, {
|
|
|
3459
3406
|
findWithPaginationQuery: () => findWithPaginationQuery26,
|
|
3460
3407
|
updateBody: () => updateBody36
|
|
3461
3408
|
});
|
|
3462
|
-
import joi56 from "joi";
|
|
3463
3409
|
var createBodyKeys41 = {
|
|
3464
|
-
name:
|
|
3465
|
-
saft_code:
|
|
3410
|
+
name: joi10.string().required(),
|
|
3411
|
+
saft_code: joi10.string().required()
|
|
3466
3412
|
};
|
|
3467
|
-
var createBody42 =
|
|
3413
|
+
var createBody42 = joi10.object().keys(createBodyKeys41).messages(messages);
|
|
3468
3414
|
var updateBodyKeys36 = {
|
|
3469
|
-
name:
|
|
3470
|
-
saft_code:
|
|
3415
|
+
name: joi10.string().optional(),
|
|
3416
|
+
saft_code: joi10.string().optional()
|
|
3471
3417
|
};
|
|
3472
|
-
var updateBody36 =
|
|
3418
|
+
var updateBody36 = joi10.object().keys(updateBodyKeys36).messages(messages);
|
|
3473
3419
|
var findQueryKeys27 = {};
|
|
3474
|
-
var findQuery27 =
|
|
3420
|
+
var findQuery27 = joi10.object().keys(findQueryKeys27).messages(messages);
|
|
3475
3421
|
var findWithPaginationQueryKeys26 = {
|
|
3476
|
-
per_page:
|
|
3477
|
-
current_page:
|
|
3422
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3423
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3478
3424
|
};
|
|
3479
|
-
var findWithPaginationQuery26 =
|
|
3425
|
+
var findWithPaginationQuery26 = joi10.object().keys(findWithPaginationQueryKeys26).messages(messages);
|
|
3480
3426
|
|
|
3481
3427
|
// src/modules/stock/vatValidation/interfaces.ts
|
|
3482
3428
|
var interfaces_exports23 = {};
|
|
@@ -3494,11 +3440,10 @@ var route_schema_exports56 = {};
|
|
|
3494
3440
|
__export(route_schema_exports56, {
|
|
3495
3441
|
findByLatestBody: () => findByLatestBody
|
|
3496
3442
|
});
|
|
3497
|
-
import joi57 from "joi";
|
|
3498
3443
|
var findByLatestBodyKeys = {
|
|
3499
|
-
nif:
|
|
3444
|
+
nif: joi10.string().required()
|
|
3500
3445
|
};
|
|
3501
|
-
var findByLatestBody =
|
|
3446
|
+
var findByLatestBody = joi10.object().keys(findByLatestBodyKeys).messages(messages);
|
|
3502
3447
|
|
|
3503
3448
|
// src/modules/stock/vatTaxZone/interface.ts
|
|
3504
3449
|
var interface_exports37 = {};
|
|
@@ -3519,33 +3464,32 @@ __export(route_schema_exports57, {
|
|
|
3519
3464
|
findWithPaginationQuery: () => findWithPaginationQuery27,
|
|
3520
3465
|
updateBody: () => updateBody37
|
|
3521
3466
|
});
|
|
3522
|
-
import joi58 from "joi";
|
|
3523
3467
|
var createBodyKeys42 = {
|
|
3524
|
-
name:
|
|
3525
|
-
value:
|
|
3526
|
-
vat_tax_id:
|
|
3527
|
-
country_id:
|
|
3528
|
-
saft_code:
|
|
3468
|
+
name: joi10.string().required(),
|
|
3469
|
+
value: joi10.number().positive().required(),
|
|
3470
|
+
vat_tax_id: joi10.string().uuid().required(),
|
|
3471
|
+
country_id: joi10.string().uuid().required(),
|
|
3472
|
+
saft_code: joi10.string().required()
|
|
3529
3473
|
};
|
|
3530
|
-
var createBody43 =
|
|
3474
|
+
var createBody43 = joi10.object().keys(createBodyKeys42).messages(messages);
|
|
3531
3475
|
var updateBodyKeys37 = {
|
|
3532
|
-
name:
|
|
3533
|
-
value:
|
|
3534
|
-
vat_tax_id:
|
|
3535
|
-
country_id:
|
|
3536
|
-
saft_code:
|
|
3476
|
+
name: joi10.string().optional(),
|
|
3477
|
+
value: joi10.number().positive().optional(),
|
|
3478
|
+
vat_tax_id: joi10.string().uuid().optional(),
|
|
3479
|
+
country_id: joi10.string().uuid().optional(),
|
|
3480
|
+
saft_code: joi10.string().optional()
|
|
3537
3481
|
};
|
|
3538
|
-
var updateBody37 =
|
|
3482
|
+
var updateBody37 = joi10.object().keys(updateBodyKeys37).messages(messages);
|
|
3539
3483
|
var findQueryKeys28 = {
|
|
3540
|
-
country_id:
|
|
3541
|
-
vat_tax_id:
|
|
3484
|
+
country_id: joi10.string().uuid().optional(),
|
|
3485
|
+
vat_tax_id: joi10.string().uuid().optional()
|
|
3542
3486
|
};
|
|
3543
|
-
var findQuery28 =
|
|
3487
|
+
var findQuery28 = joi10.object().keys(findQueryKeys28).messages(messages);
|
|
3544
3488
|
var findWithPaginationQueryKeys27 = {
|
|
3545
|
-
per_page:
|
|
3546
|
-
current_page:
|
|
3489
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3490
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3547
3491
|
};
|
|
3548
|
-
var findWithPaginationQuery27 =
|
|
3492
|
+
var findWithPaginationQuery27 = joi10.object().keys(findWithPaginationQueryKeys27).messages(messages);
|
|
3549
3493
|
|
|
3550
3494
|
// src/modules/user/vehicles/interfaces.ts
|
|
3551
3495
|
var interfaces_exports24 = {};
|
|
@@ -3564,19 +3508,18 @@ __export(route_schema_exports58, {
|
|
|
3564
3508
|
createBody: () => createBody44,
|
|
3565
3509
|
updateBody: () => updateBody38
|
|
3566
3510
|
});
|
|
3567
|
-
import joi59 from "joi";
|
|
3568
3511
|
var createBodyKeys43 = {
|
|
3569
|
-
description:
|
|
3570
|
-
vehicle_id:
|
|
3571
|
-
number_plate:
|
|
3512
|
+
description: joi10.string().required(),
|
|
3513
|
+
vehicle_id: joi10.number().integer().required(),
|
|
3514
|
+
number_plate: joi10.string().required()
|
|
3572
3515
|
};
|
|
3573
|
-
var createBody44 =
|
|
3516
|
+
var createBody44 = joi10.object().keys(createBodyKeys43).messages(messages);
|
|
3574
3517
|
var updateBodyKeys38 = {
|
|
3575
|
-
description:
|
|
3576
|
-
vehicle_id:
|
|
3577
|
-
number_plate:
|
|
3518
|
+
description: joi10.string(),
|
|
3519
|
+
vehicle_id: joi10.number().integer(),
|
|
3520
|
+
number_plate: joi10.string()
|
|
3578
3521
|
};
|
|
3579
|
-
var updateBody38 =
|
|
3522
|
+
var updateBody38 = joi10.object().keys(updateBodyKeys38).messages(messages);
|
|
3580
3523
|
|
|
3581
3524
|
// src/modules/stock/workflow/interfaces.ts
|
|
3582
3525
|
var interfaces_exports25 = {};
|
|
@@ -3596,27 +3539,26 @@ __export(route_schema_exports59, {
|
|
|
3596
3539
|
postBodyValidator: () => postBodyValidator,
|
|
3597
3540
|
putBodyValidator: () => putBodyValidator
|
|
3598
3541
|
});
|
|
3599
|
-
import joi60 from "joi";
|
|
3600
3542
|
var postBodyValidatorKeys = {
|
|
3601
|
-
from_document_type_id:
|
|
3602
|
-
to_document_type_id:
|
|
3603
|
-
transition_name:
|
|
3604
|
-
is_active:
|
|
3543
|
+
from_document_type_id: joi10.number().integer(),
|
|
3544
|
+
to_document_type_id: joi10.number().integer(),
|
|
3545
|
+
transition_name: joi10.string().required(),
|
|
3546
|
+
is_active: joi10.boolean().default(false).optional()
|
|
3605
3547
|
};
|
|
3606
|
-
var postBodyValidator =
|
|
3548
|
+
var postBodyValidator = joi10.object().keys(postBodyValidatorKeys).messages(messages);
|
|
3607
3549
|
var putBodyValidatorKeys = {
|
|
3608
|
-
from_document_type_id:
|
|
3609
|
-
to_document_type_id:
|
|
3610
|
-
transition_name:
|
|
3611
|
-
is_active:
|
|
3550
|
+
from_document_type_id: joi10.number().integer(),
|
|
3551
|
+
to_document_type_id: joi10.number().integer(),
|
|
3552
|
+
transition_name: joi10.string(),
|
|
3553
|
+
is_active: joi10.boolean().optional()
|
|
3612
3554
|
};
|
|
3613
|
-
var putBodyValidator =
|
|
3555
|
+
var putBodyValidator = joi10.object().keys(putBodyValidatorKeys).messages(messages);
|
|
3614
3556
|
var getByOwnerQueryKeys = {
|
|
3615
|
-
from:
|
|
3616
|
-
to:
|
|
3617
|
-
user_type:
|
|
3557
|
+
from: joi10.number().integer().allow(null),
|
|
3558
|
+
to: joi10.number().integer().allow(null),
|
|
3559
|
+
user_type: joi10.string().valid(...documentTypeUserTypes)
|
|
3618
3560
|
};
|
|
3619
|
-
var getByOwnerQuery =
|
|
3561
|
+
var getByOwnerQuery = joi10.object().keys(getByOwnerQueryKeys).messages(messages);
|
|
3620
3562
|
|
|
3621
3563
|
// src/modules/stock/stockMovement/interface.ts
|
|
3622
3564
|
var interface_exports38 = {};
|
|
@@ -3649,20 +3591,19 @@ __export(route_schema_exports60, {
|
|
|
3649
3591
|
exportCsvQuery: () => exportCsvQuery,
|
|
3650
3592
|
findStockMovementWithPaginationQuery: () => findStockMovementWithPaginationQuery
|
|
3651
3593
|
});
|
|
3652
|
-
import joi61 from "joi";
|
|
3653
3594
|
var exportCsvQueryKeys = {
|
|
3654
|
-
date:
|
|
3655
|
-
format:
|
|
3656
|
-
version:
|
|
3657
|
-
token:
|
|
3595
|
+
date: joi10.date().required(),
|
|
3596
|
+
format: joi10.string().valid(...exportFormats).required(),
|
|
3597
|
+
version: joi10.string().valid(...exportVersions).required(),
|
|
3598
|
+
token: joi10.string().required()
|
|
3658
3599
|
};
|
|
3659
|
-
var exportCsvQuery =
|
|
3600
|
+
var exportCsvQuery = joi10.object().keys(exportCsvQueryKeys).messages(messages);
|
|
3660
3601
|
var findWithPaginationQueryKeys28 = {
|
|
3661
|
-
owner_id:
|
|
3662
|
-
per_page:
|
|
3663
|
-
current_page:
|
|
3602
|
+
owner_id: joi10.string().uuid().required(),
|
|
3603
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
3604
|
+
current_page: joi10.number().integer().positive().default(1).optional()
|
|
3664
3605
|
};
|
|
3665
|
-
var findStockMovementWithPaginationQuery =
|
|
3606
|
+
var findStockMovementWithPaginationQuery = joi10.object().keys(findWithPaginationQueryKeys28).messages(messages);
|
|
3666
3607
|
|
|
3667
3608
|
// src/modules/user/tenant/interface.ts
|
|
3668
3609
|
var interface_exports39 = {};
|
|
@@ -3681,45 +3622,44 @@ __export(route_schema_exports61, {
|
|
|
3681
3622
|
createBody: () => createBody45,
|
|
3682
3623
|
updateBody: () => updateBody39
|
|
3683
3624
|
});
|
|
3684
|
-
import joi62 from "joi";
|
|
3685
3625
|
var createBodyKeys44 = {
|
|
3686
|
-
customer_id:
|
|
3687
|
-
name:
|
|
3688
|
-
taxpayer_number:
|
|
3689
|
-
commercial_registration_number:
|
|
3690
|
-
share_capital:
|
|
3691
|
-
conservatory:
|
|
3692
|
-
logo:
|
|
3693
|
-
email:
|
|
3694
|
-
address:
|
|
3695
|
-
postal_code:
|
|
3696
|
-
locality:
|
|
3697
|
-
country:
|
|
3698
|
-
Timezone:
|
|
3699
|
-
telephone:
|
|
3700
|
-
fax:
|
|
3701
|
-
website:
|
|
3702
|
-
};
|
|
3703
|
-
var createBody45 =
|
|
3626
|
+
customer_id: joi10.string().required(),
|
|
3627
|
+
name: joi10.string().required(),
|
|
3628
|
+
taxpayer_number: joi10.string().required(),
|
|
3629
|
+
commercial_registration_number: joi10.number().greater(0),
|
|
3630
|
+
share_capital: joi10.number().greater(0),
|
|
3631
|
+
conservatory: joi10.string(),
|
|
3632
|
+
logo: joi10.string(),
|
|
3633
|
+
email: joi10.string().trim(true).lowercase().required(),
|
|
3634
|
+
address: joi10.string().required(),
|
|
3635
|
+
postal_code: joi10.string().trim(true).lowercase().required(),
|
|
3636
|
+
locality: joi10.string().required(),
|
|
3637
|
+
country: joi10.string().required(),
|
|
3638
|
+
Timezone: joi10.string(),
|
|
3639
|
+
telephone: joi10.string(),
|
|
3640
|
+
fax: joi10.string(),
|
|
3641
|
+
website: joi10.string()
|
|
3642
|
+
};
|
|
3643
|
+
var createBody45 = joi10.object().keys(createBodyKeys44).messages(messages);
|
|
3704
3644
|
var updateBodyKeys39 = {
|
|
3705
|
-
customer_id:
|
|
3706
|
-
name:
|
|
3707
|
-
taxpayer_number:
|
|
3708
|
-
commercial_registration_number:
|
|
3709
|
-
share_capital:
|
|
3710
|
-
conservatory:
|
|
3711
|
-
logo:
|
|
3712
|
-
email:
|
|
3713
|
-
address:
|
|
3714
|
-
postal_code:
|
|
3715
|
-
locality:
|
|
3716
|
-
country:
|
|
3717
|
-
Timezone:
|
|
3718
|
-
telephone:
|
|
3719
|
-
fax:
|
|
3720
|
-
website:
|
|
3721
|
-
};
|
|
3722
|
-
var updateBody39 =
|
|
3645
|
+
customer_id: joi10.string(),
|
|
3646
|
+
name: joi10.string(),
|
|
3647
|
+
taxpayer_number: joi10.string(),
|
|
3648
|
+
commercial_registration_number: joi10.number().greater(0),
|
|
3649
|
+
share_capital: joi10.number().greater(0),
|
|
3650
|
+
conservatory: joi10.string(),
|
|
3651
|
+
logo: joi10.string(),
|
|
3652
|
+
email: joi10.string().trim(true).lowercase(),
|
|
3653
|
+
address: joi10.string(),
|
|
3654
|
+
postal_code: joi10.string().trim(true).lowercase(),
|
|
3655
|
+
locality: joi10.string(),
|
|
3656
|
+
country: joi10.string(),
|
|
3657
|
+
Timezone: joi10.string(),
|
|
3658
|
+
telephone: joi10.string(),
|
|
3659
|
+
fax: joi10.string(),
|
|
3660
|
+
website: joi10.string()
|
|
3661
|
+
};
|
|
3662
|
+
var updateBody39 = joi10.object().keys(updateBodyKeys39).messages(messages);
|
|
3723
3663
|
|
|
3724
3664
|
// src/modules/supply/preSale/interface.ts
|
|
3725
3665
|
var interface_exports40 = {};
|
|
@@ -3743,45 +3683,44 @@ __export(route_schema_exports62, {
|
|
|
3743
3683
|
updateBody: () => updateBody40,
|
|
3744
3684
|
updatePreSaleQuantityBody: () => updatePreSaleQuantityBody
|
|
3745
3685
|
});
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
quantity: joi63.number().positive().required()
|
|
3686
|
+
var createProduct = joi10.object().keys({
|
|
3687
|
+
id: joi10.string().uuid().required(),
|
|
3688
|
+
quantity: joi10.number().positive().required()
|
|
3750
3689
|
});
|
|
3751
3690
|
var createBodyKeys45 = {
|
|
3752
3691
|
product: createProduct,
|
|
3753
|
-
created_by:
|
|
3754
|
-
updated_by:
|
|
3692
|
+
created_by: joi10.string().uuid().optional(),
|
|
3693
|
+
updated_by: joi10.string().uuid().optional()
|
|
3755
3694
|
};
|
|
3756
|
-
var createBody46 =
|
|
3695
|
+
var createBody46 = joi10.object().keys(createBodyKeys45).messages(messages);
|
|
3757
3696
|
var updateBodyKeys40 = {
|
|
3758
|
-
barcode:
|
|
3697
|
+
barcode: joi10.string().allow(null).optional(),
|
|
3759
3698
|
product: createProduct.allow(null),
|
|
3760
|
-
updated_by:
|
|
3699
|
+
updated_by: joi10.string().uuid().optional()
|
|
3761
3700
|
};
|
|
3762
|
-
var updateBody40 =
|
|
3701
|
+
var updateBody40 = joi10.object().keys(updateBodyKeys40).messages(messages);
|
|
3763
3702
|
var updatePreSaleQuantityBodyKeys = {
|
|
3764
|
-
quantity:
|
|
3765
|
-
updated_by:
|
|
3703
|
+
quantity: joi10.number().positive().required(),
|
|
3704
|
+
updated_by: joi10.string().uuid().optional()
|
|
3766
3705
|
};
|
|
3767
|
-
var updatePreSaleQuantityBody =
|
|
3706
|
+
var updatePreSaleQuantityBody = joi10.object().keys(updatePreSaleQuantityBodyKeys).messages(messages);
|
|
3768
3707
|
var removeProductBodyKeys = {
|
|
3769
|
-
pre_sale_product_id:
|
|
3770
|
-
updated_by:
|
|
3708
|
+
pre_sale_product_id: joi10.string().uuid(),
|
|
3709
|
+
updated_by: joi10.string().uuid().optional()
|
|
3771
3710
|
};
|
|
3772
|
-
var removeProductBody =
|
|
3711
|
+
var removeProductBody = joi10.object().keys(removeProductBodyKeys).messages(messages);
|
|
3773
3712
|
var importInToClientProposalBodyKeys = {
|
|
3774
|
-
pre_sale_id:
|
|
3775
|
-
document_header_id:
|
|
3776
|
-
updated_by:
|
|
3713
|
+
pre_sale_id: joi10.string().uuid().required(),
|
|
3714
|
+
document_header_id: joi10.string().uuid().required(),
|
|
3715
|
+
updated_by: joi10.string().uuid().optional()
|
|
3777
3716
|
};
|
|
3778
|
-
var importInToClientProposalBody =
|
|
3717
|
+
var importInToClientProposalBody = joi10.object().keys(importInToClientProposalBodyKeys).messages(messages);
|
|
3779
3718
|
var findQueryKeys29 = {};
|
|
3780
|
-
var findQuery29 =
|
|
3719
|
+
var findQuery29 = joi10.object().keys(findQueryKeys29).messages(messages);
|
|
3781
3720
|
var findByUserParamsKeys = {
|
|
3782
|
-
created_by:
|
|
3721
|
+
created_by: joi10.string().uuid().required()
|
|
3783
3722
|
};
|
|
3784
|
-
var findByUserParams =
|
|
3723
|
+
var findByUserParams = joi10.object().keys(findByUserParamsKeys).messages(messages);
|
|
3785
3724
|
|
|
3786
3725
|
// src/modules/supply/preSaleProduct/interface.ts
|
|
3787
3726
|
var interface_exports41 = {};
|
|
@@ -3799,9 +3738,8 @@ var route_schema_exports63 = {};
|
|
|
3799
3738
|
__export(route_schema_exports63, {
|
|
3800
3739
|
findQuery: () => findQuery30
|
|
3801
3740
|
});
|
|
3802
|
-
import joi64 from "joi";
|
|
3803
3741
|
var findQueryKeys30 = {};
|
|
3804
|
-
var findQuery30 =
|
|
3742
|
+
var findQuery30 = joi10.object().keys(findQueryKeys30).messages(messages);
|
|
3805
3743
|
|
|
3806
3744
|
// src/modules/print/npc/interfaces.ts
|
|
3807
3745
|
var interfaces_exports26 = {};
|
|
@@ -3820,16 +3758,15 @@ __export(route_schema_exports64, {
|
|
|
3820
3758
|
findPrintJobsForComputerIdRequestParams: () => findPrintJobsForComputerIdRequestParams,
|
|
3821
3759
|
updateBody: () => updateBody41
|
|
3822
3760
|
});
|
|
3823
|
-
import joi65 from "joi";
|
|
3824
3761
|
var updateBodyKeys41 = {
|
|
3825
|
-
name:
|
|
3826
|
-
secret:
|
|
3762
|
+
name: joi10.string().optional().allow(null),
|
|
3763
|
+
secret: joi10.string().optional().allow(null)
|
|
3827
3764
|
};
|
|
3828
|
-
var updateBody41 =
|
|
3765
|
+
var updateBody41 = joi10.object().keys(updateBodyKeys41).messages(messages);
|
|
3829
3766
|
var findPrintJobsForComputerIdRequestParamsKeys = {
|
|
3830
|
-
computer_id:
|
|
3767
|
+
computer_id: joi10.string().required()
|
|
3831
3768
|
};
|
|
3832
|
-
var findPrintJobsForComputerIdRequestParams =
|
|
3769
|
+
var findPrintJobsForComputerIdRequestParams = joi10.object().keys(findPrintJobsForComputerIdRequestParamsKeys).messages(messages);
|
|
3833
3770
|
|
|
3834
3771
|
// src/modules/print/printer/interfaces.ts
|
|
3835
3772
|
var interfaces_exports27 = {};
|
|
@@ -3849,46 +3786,45 @@ __export(route_schema_exports65, {
|
|
|
3849
3786
|
updateBody: () => updateBody42,
|
|
3850
3787
|
updateManyBody: () => updateManyBody2
|
|
3851
3788
|
});
|
|
3852
|
-
import joi66 from "joi";
|
|
3853
3789
|
var updateBodyKeys42 = {
|
|
3854
|
-
name:
|
|
3855
|
-
enable:
|
|
3856
|
-
paper:
|
|
3857
|
-
receipt:
|
|
3858
|
-
sticker:
|
|
3859
|
-
normalWidth:
|
|
3860
|
-
condensedWidth:
|
|
3861
|
-
dotWidth:
|
|
3862
|
-
hasDrawer:
|
|
3863
|
-
hasCutter:
|
|
3864
|
-
lowDensity:
|
|
3865
|
-
imagePrintMode:
|
|
3866
|
-
};
|
|
3867
|
-
var updateBody42 =
|
|
3790
|
+
name: joi10.string().optional(),
|
|
3791
|
+
enable: joi10.boolean().optional(),
|
|
3792
|
+
paper: joi10.boolean().optional(),
|
|
3793
|
+
receipt: joi10.boolean().optional(),
|
|
3794
|
+
sticker: joi10.boolean().optional(),
|
|
3795
|
+
normalWidth: joi10.number().integer().positive().optional(),
|
|
3796
|
+
condensedWidth: joi10.number().integer().positive().optional(),
|
|
3797
|
+
dotWidth: joi10.number().integer().positive().optional(),
|
|
3798
|
+
hasDrawer: joi10.number().integer().valid(0, 1).optional(),
|
|
3799
|
+
hasCutter: joi10.number().integer().valid(0, 1).optional(),
|
|
3800
|
+
lowDensity: joi10.number().integer().valid(0, 1).optional(),
|
|
3801
|
+
imagePrintMode: joi10.number().integer().valid(0, 1).optional()
|
|
3802
|
+
};
|
|
3803
|
+
var updateBody42 = joi10.object().keys(updateBodyKeys42).messages(messages);
|
|
3868
3804
|
var getOrSetPrintersBodyKeys = {
|
|
3869
|
-
printers_a4:
|
|
3870
|
-
|
|
3871
|
-
device_os_name:
|
|
3872
|
-
name:
|
|
3805
|
+
printers_a4: joi10.array().items(
|
|
3806
|
+
joi10.object({
|
|
3807
|
+
device_os_name: joi10.string().required(),
|
|
3808
|
+
name: joi10.string().required()
|
|
3873
3809
|
})
|
|
3874
3810
|
),
|
|
3875
|
-
printers_pos:
|
|
3876
|
-
|
|
3877
|
-
device_os_name:
|
|
3811
|
+
printers_pos: joi10.array().items(
|
|
3812
|
+
joi10.object({
|
|
3813
|
+
device_os_name: joi10.string().required()
|
|
3878
3814
|
})
|
|
3879
3815
|
),
|
|
3880
|
-
computer_id:
|
|
3816
|
+
computer_id: joi10.string().required()
|
|
3881
3817
|
};
|
|
3882
|
-
var getOrSetPrintersBody =
|
|
3818
|
+
var getOrSetPrintersBody = joi10.object().keys(getOrSetPrintersBodyKeys).messages(messages);
|
|
3883
3819
|
var updateManyBodyKeys = {
|
|
3884
|
-
id:
|
|
3885
|
-
name:
|
|
3886
|
-
enable:
|
|
3887
|
-
paper:
|
|
3888
|
-
receipt:
|
|
3889
|
-
sticker:
|
|
3820
|
+
id: joi10.string().uuid().required(),
|
|
3821
|
+
name: joi10.string().optional(),
|
|
3822
|
+
enable: joi10.boolean().optional(),
|
|
3823
|
+
paper: joi10.boolean().optional(),
|
|
3824
|
+
receipt: joi10.boolean().optional(),
|
|
3825
|
+
sticker: joi10.boolean().optional()
|
|
3890
3826
|
};
|
|
3891
|
-
var updateManyBody2 =
|
|
3827
|
+
var updateManyBody2 = joi10.array().items(joi10.object().keys(updateManyBodyKeys)).messages(messages);
|
|
3892
3828
|
|
|
3893
3829
|
// src/modules/print/schedulePrintJob/interfaces.ts
|
|
3894
3830
|
var interfaces_exports28 = {};
|
|
@@ -3908,22 +3844,21 @@ __export(route_schema_exports66, {
|
|
|
3908
3844
|
createSchedulePrintJobBody: () => createSchedulePrintJobBody,
|
|
3909
3845
|
dispatchSchedulePrintJobBody: () => dispatchSchedulePrintJobBody
|
|
3910
3846
|
});
|
|
3911
|
-
import joi67 from "joi";
|
|
3912
3847
|
var dispatchSchedulePrintJobBodyKeys = {
|
|
3913
|
-
last_print_job_ids:
|
|
3914
|
-
computer_id:
|
|
3848
|
+
last_print_job_ids: joi10.array().items(joi10.string().uuid().optional()).required(),
|
|
3849
|
+
computer_id: joi10.string().required()
|
|
3915
3850
|
};
|
|
3916
|
-
var dispatchSchedulePrintJobBody =
|
|
3851
|
+
var dispatchSchedulePrintJobBody = joi10.object().keys(dispatchSchedulePrintJobBodyKeys).messages(messages);
|
|
3917
3852
|
var createSchedulePrintJobBodyKeys = {
|
|
3918
|
-
external_document_id:
|
|
3919
|
-
printer_id:
|
|
3920
|
-
sticker:
|
|
3921
|
-
external_url:
|
|
3922
|
-
copies:
|
|
3923
|
-
};
|
|
3924
|
-
var createSchedulePrintJobBody =
|
|
3925
|
-
var createManySchedulePrintJobBody =
|
|
3926
|
-
jobs:
|
|
3853
|
+
external_document_id: joi10.string().optional(),
|
|
3854
|
+
printer_id: joi10.string().uuid().required(),
|
|
3855
|
+
sticker: joi10.boolean().optional(),
|
|
3856
|
+
external_url: joi10.string().optional(),
|
|
3857
|
+
copies: joi10.number().integer().positive().required()
|
|
3858
|
+
};
|
|
3859
|
+
var createSchedulePrintJobBody = joi10.object().keys(createSchedulePrintJobBodyKeys).xor("external_document_id", "multimedia_id", "external_url").messages(messages);
|
|
3860
|
+
var createManySchedulePrintJobBody = joi10.object().keys({
|
|
3861
|
+
jobs: joi10.array().items(createSchedulePrintJobBody).required()
|
|
3927
3862
|
}).messages(messages);
|
|
3928
3863
|
|
|
3929
3864
|
// src/modules/stock/queryList/interfaces.ts
|
|
@@ -3947,25 +3882,24 @@ __export(route_schema_exports67, {
|
|
|
3947
3882
|
executeBodyKeys: () => executeBodyKeys,
|
|
3948
3883
|
updateBody: () => updateBody43
|
|
3949
3884
|
});
|
|
3950
|
-
import joi68 from "joi";
|
|
3951
3885
|
var createBodyKeys46 = {
|
|
3952
|
-
code:
|
|
3953
|
-
label:
|
|
3954
|
-
group:
|
|
3886
|
+
code: joi10.string().required(),
|
|
3887
|
+
label: joi10.string().required(),
|
|
3888
|
+
group: joi10.string().allow(null).required()
|
|
3955
3889
|
};
|
|
3956
|
-
var createBody47 =
|
|
3890
|
+
var createBody47 = joi10.object().keys(createBodyKeys46).messages(messages);
|
|
3957
3891
|
var updateBodyKeys43 = {
|
|
3958
|
-
code:
|
|
3959
|
-
label:
|
|
3960
|
-
group:
|
|
3892
|
+
code: joi10.string().optional(),
|
|
3893
|
+
label: joi10.string().optional(),
|
|
3894
|
+
group: joi10.string().allow(null).optional()
|
|
3961
3895
|
};
|
|
3962
|
-
var updateBody43 =
|
|
3896
|
+
var updateBody43 = joi10.object().keys(updateBodyKeys43).messages(messages);
|
|
3963
3897
|
var executeBodyKeys = {
|
|
3964
|
-
output:
|
|
3965
|
-
query_id:
|
|
3966
|
-
token:
|
|
3898
|
+
output: joi10.string().valid(...executeOutput).required(),
|
|
3899
|
+
query_id: joi10.string().uuid().required(),
|
|
3900
|
+
token: joi10.string().optional()
|
|
3967
3901
|
};
|
|
3968
|
-
var executeBody =
|
|
3902
|
+
var executeBody = joi10.object().keys(executeBodyKeys).pattern(joi10.string(), joi10.any()).optional().messages(messages);
|
|
3969
3903
|
|
|
3970
3904
|
// src/modules/stock/queryParameter/interfaces.ts
|
|
3971
3905
|
var interfaces_exports30 = {};
|
|
@@ -3999,30 +3933,29 @@ __export(route_schema_exports68, {
|
|
|
3999
3933
|
createBody: () => createBody48,
|
|
4000
3934
|
updateBody: () => updateBody44
|
|
4001
3935
|
});
|
|
4002
|
-
import joi69 from "joi";
|
|
4003
3936
|
var createBodyKeys47 = {
|
|
4004
|
-
label:
|
|
4005
|
-
accessor:
|
|
4006
|
-
datatype:
|
|
4007
|
-
input:
|
|
4008
|
-
output:
|
|
4009
|
-
preffix:
|
|
4010
|
-
suffix:
|
|
4011
|
-
query_id:
|
|
4012
|
-
width:
|
|
4013
|
-
};
|
|
4014
|
-
var createBody48 =
|
|
3937
|
+
label: joi10.string().required(),
|
|
3938
|
+
accessor: joi10.string().required(),
|
|
3939
|
+
datatype: joi10.string().valid(...Object.values(IDataTypeEnum)).required(),
|
|
3940
|
+
input: joi10.boolean().default(false),
|
|
3941
|
+
output: joi10.boolean().default(false),
|
|
3942
|
+
preffix: joi10.string().allow(null).required(),
|
|
3943
|
+
suffix: joi10.string().allow(null).required(),
|
|
3944
|
+
query_id: joi10.string().uuid().required(),
|
|
3945
|
+
width: joi10.number().default(55)
|
|
3946
|
+
};
|
|
3947
|
+
var createBody48 = joi10.object().keys(createBodyKeys47).messages(messages);
|
|
4015
3948
|
var updateBodyKeys44 = {
|
|
4016
|
-
label:
|
|
4017
|
-
accessor:
|
|
4018
|
-
datatype:
|
|
4019
|
-
input:
|
|
4020
|
-
output:
|
|
4021
|
-
preffix:
|
|
4022
|
-
suffix:
|
|
4023
|
-
width:
|
|
3949
|
+
label: joi10.string().optional(),
|
|
3950
|
+
accessor: joi10.string().optional(),
|
|
3951
|
+
datatype: joi10.string().valid(...Object.values(IDataTypeEnum)),
|
|
3952
|
+
input: joi10.boolean().optional(),
|
|
3953
|
+
output: joi10.boolean().optional(),
|
|
3954
|
+
preffix: joi10.string().allow(null).optional(),
|
|
3955
|
+
suffix: joi10.string().allow(null).optional(),
|
|
3956
|
+
width: joi10.number().optional()
|
|
4024
3957
|
};
|
|
4025
|
-
var updateBody44 =
|
|
3958
|
+
var updateBody44 = joi10.object().keys(updateBodyKeys44).messages(messages);
|
|
4026
3959
|
|
|
4027
3960
|
// src/modules/stock/returnReason/interfaces.ts
|
|
4028
3961
|
var interfaces_exports31 = {};
|
|
@@ -4041,15 +3974,14 @@ __export(route_schema_exports69, {
|
|
|
4041
3974
|
createBody: () => createBody49,
|
|
4042
3975
|
updateBody: () => updateBody45
|
|
4043
3976
|
});
|
|
4044
|
-
import joi70 from "joi";
|
|
4045
3977
|
var createBodyKeys48 = {
|
|
4046
|
-
reason:
|
|
3978
|
+
reason: joi10.string().required()
|
|
4047
3979
|
};
|
|
4048
|
-
var createBody49 =
|
|
3980
|
+
var createBody49 = joi10.object().keys(createBodyKeys48).messages(messages);
|
|
4049
3981
|
var updateBodyKeys45 = {
|
|
4050
|
-
reason:
|
|
3982
|
+
reason: joi10.string()
|
|
4051
3983
|
};
|
|
4052
|
-
var updateBody45 =
|
|
3984
|
+
var updateBody45 = joi10.object().keys(updateBodyKeys45).messages(messages);
|
|
4053
3985
|
|
|
4054
3986
|
// src/modules/document/propostaSheets/interface.ts
|
|
4055
3987
|
var interface_exports42 = {};
|
|
@@ -4076,23 +4008,22 @@ __export(route_schema_exports70, {
|
|
|
4076
4008
|
importFromSheetKeys: () => importFromSheetKeys,
|
|
4077
4009
|
rmUpdateDataByDocumentLineIdValidation: () => rmUpdateDataByDocumentLineIdValidation
|
|
4078
4010
|
});
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
original_document_header_id: joi71.string().uuid().optional()
|
|
4011
|
+
var importFromSheetKeys = joi10.object().keys({
|
|
4012
|
+
id: joi10.string().required(),
|
|
4013
|
+
original_document_header_id: joi10.string().uuid().optional()
|
|
4083
4014
|
}).messages(messages);
|
|
4084
4015
|
var findByGoogleSheetIdKeys = {
|
|
4085
|
-
id:
|
|
4016
|
+
id: joi10.string().required()
|
|
4086
4017
|
};
|
|
4087
|
-
var findByGoogleSheetId =
|
|
4088
|
-
var cloneSheetToNewDocumentQuery =
|
|
4089
|
-
id:
|
|
4018
|
+
var findByGoogleSheetId = joi10.object().keys(findByGoogleSheetIdKeys).messages(messages);
|
|
4019
|
+
var cloneSheetToNewDocumentQuery = joi10.object().keys({
|
|
4020
|
+
id: joi10.string().uuid().required()
|
|
4090
4021
|
});
|
|
4091
|
-
var rmUpdateDataByDocumentLineIdValidation =
|
|
4092
|
-
data:
|
|
4093
|
-
|
|
4094
|
-
filed_name:
|
|
4095
|
-
value:
|
|
4022
|
+
var rmUpdateDataByDocumentLineIdValidation = joi10.object().keys({
|
|
4023
|
+
data: joi10.array().items(
|
|
4024
|
+
joi10.object({
|
|
4025
|
+
filed_name: joi10.string().required(),
|
|
4026
|
+
value: joi10.alternatives().try(joi10.string(), joi10.number(), joi10.boolean()).required()
|
|
4096
4027
|
}).required()
|
|
4097
4028
|
).required()
|
|
4098
4029
|
}).messages(messages);
|
|
@@ -4135,11 +4066,10 @@ var route_schema_exports71 = {};
|
|
|
4135
4066
|
__export(route_schema_exports71, {
|
|
4136
4067
|
runImmediately: () => runImmediately
|
|
4137
4068
|
});
|
|
4138
|
-
import joi72 from "joi";
|
|
4139
4069
|
var runImmediatelyKeys = {
|
|
4140
|
-
scheduleType:
|
|
4070
|
+
scheduleType: joi10.string().valid(...scheduleTypes).required()
|
|
4141
4071
|
};
|
|
4142
|
-
var runImmediately =
|
|
4072
|
+
var runImmediately = joi10.object().keys(runImmediatelyKeys).messages(messages);
|
|
4143
4073
|
|
|
4144
4074
|
// src/modules/integration/googleFilePermission/interfaces.ts
|
|
4145
4075
|
var interfaces_exports32 = {};
|
|
@@ -4158,12 +4088,11 @@ __export(route_schema_exports72, {
|
|
|
4158
4088
|
createBody: () => createBody50,
|
|
4159
4089
|
createBodyKeys: () => createBodyKeys49
|
|
4160
4090
|
});
|
|
4161
|
-
import joi73 from "joi";
|
|
4162
4091
|
var createBodyKeys49 = {
|
|
4163
|
-
email:
|
|
4164
|
-
file_id:
|
|
4092
|
+
email: joi10.string().email({ tlds: { allow: false } }).required(),
|
|
4093
|
+
file_id: joi10.string().required()
|
|
4165
4094
|
};
|
|
4166
|
-
var createBody50 =
|
|
4095
|
+
var createBody50 = joi10.object().keys(createBodyKeys49).messages(messages);
|
|
4167
4096
|
|
|
4168
4097
|
// src/modules/integration/settings/interfaces.ts
|
|
4169
4098
|
var interfaces_exports33 = {};
|
|
@@ -4183,21 +4112,20 @@ __export(route_schema_exports73, {
|
|
|
4183
4112
|
findQuery: () => findQuery31,
|
|
4184
4113
|
updateBody: () => updateBody46
|
|
4185
4114
|
});
|
|
4186
|
-
import joi74 from "joi";
|
|
4187
4115
|
var createBodyKeys50 = {
|
|
4188
|
-
key:
|
|
4189
|
-
value:
|
|
4116
|
+
key: joi10.string().required(),
|
|
4117
|
+
value: joi10.string().required()
|
|
4190
4118
|
};
|
|
4191
|
-
var createBody51 =
|
|
4119
|
+
var createBody51 = joi10.object().keys(createBodyKeys50).messages(messages);
|
|
4192
4120
|
var updateBodyKeys46 = {
|
|
4193
|
-
key:
|
|
4194
|
-
value:
|
|
4121
|
+
key: joi10.string().required(),
|
|
4122
|
+
value: joi10.string().required()
|
|
4195
4123
|
};
|
|
4196
|
-
var updateBody46 =
|
|
4124
|
+
var updateBody46 = joi10.object().keys(updateBodyKeys46).messages(messages);
|
|
4197
4125
|
var findQueryKeys31 = {
|
|
4198
|
-
key:
|
|
4126
|
+
key: joi10.string().required()
|
|
4199
4127
|
};
|
|
4200
|
-
var findQuery31 =
|
|
4128
|
+
var findQuery31 = joi10.object().keys(findQueryKeys31).messages(messages);
|
|
4201
4129
|
|
|
4202
4130
|
// src/modules/tickets/tickets/interfaces.ts
|
|
4203
4131
|
var interfaces_exports34 = {};
|
|
@@ -4216,18 +4144,17 @@ __export(route_schema_exports74, {
|
|
|
4216
4144
|
createBody: () => createBody52,
|
|
4217
4145
|
updateBody: () => updateBody47
|
|
4218
4146
|
});
|
|
4219
|
-
import joi75 from "joi";
|
|
4220
4147
|
var createBodyKeys51 = {
|
|
4221
|
-
channel_id:
|
|
4222
|
-
language_id:
|
|
4223
|
-
created_by:
|
|
4148
|
+
channel_id: joi10.number().required(),
|
|
4149
|
+
language_id: joi10.number().required(),
|
|
4150
|
+
created_by: joi10.string().uuid().required()
|
|
4224
4151
|
};
|
|
4225
|
-
var createBody52 =
|
|
4152
|
+
var createBody52 = joi10.object().keys(createBodyKeys51).messages(messages);
|
|
4226
4153
|
var updateBodyKeys47 = {
|
|
4227
|
-
id:
|
|
4228
|
-
who_attended:
|
|
4154
|
+
id: joi10.string().uuid().required(),
|
|
4155
|
+
who_attended: joi10.string().uuid().required()
|
|
4229
4156
|
};
|
|
4230
|
-
var updateBody47 =
|
|
4157
|
+
var updateBody47 = joi10.object().keys(updateBodyKeys47).messages(messages);
|
|
4231
4158
|
|
|
4232
4159
|
// src/modules/tickets/channel/interfaces.ts
|
|
4233
4160
|
var interfaces_exports35 = {};
|
|
@@ -4246,23 +4173,22 @@ __export(route_schema_exports75, {
|
|
|
4246
4173
|
createBody: () => createBody53,
|
|
4247
4174
|
updateBody: () => updateBody48
|
|
4248
4175
|
});
|
|
4249
|
-
import joi76 from "joi";
|
|
4250
4176
|
var createBodyKeys52 = {
|
|
4251
|
-
order:
|
|
4252
|
-
color:
|
|
4253
|
-
disabled_color:
|
|
4254
|
-
key:
|
|
4255
|
-
text_color:
|
|
4177
|
+
order: joi10.number().required(),
|
|
4178
|
+
color: joi10.string().required(),
|
|
4179
|
+
disabled_color: joi10.string().required(),
|
|
4180
|
+
key: joi10.string().required(),
|
|
4181
|
+
text_color: joi10.string().required()
|
|
4256
4182
|
};
|
|
4257
|
-
var createBody53 =
|
|
4183
|
+
var createBody53 = joi10.object().keys(createBodyKeys52).messages(messages);
|
|
4258
4184
|
var updateBodyKeys48 = {
|
|
4259
|
-
order:
|
|
4260
|
-
color:
|
|
4261
|
-
disabled_color:
|
|
4262
|
-
key:
|
|
4263
|
-
text_color:
|
|
4185
|
+
order: joi10.number().optional(),
|
|
4186
|
+
color: joi10.string().optional(),
|
|
4187
|
+
disabled_color: joi10.string().optional(),
|
|
4188
|
+
key: joi10.string().optional(),
|
|
4189
|
+
text_color: joi10.string().optional()
|
|
4264
4190
|
};
|
|
4265
|
-
var updateBody48 =
|
|
4191
|
+
var updateBody48 = joi10.object().keys(updateBodyKeys48).messages(messages);
|
|
4266
4192
|
|
|
4267
4193
|
// src/modules/tickets/language/interfaces.ts
|
|
4268
4194
|
var interfaces_exports36 = {};
|
|
@@ -4281,27 +4207,26 @@ __export(route_schema_exports76, {
|
|
|
4281
4207
|
createBody: () => createBody54,
|
|
4282
4208
|
updateBody: () => updateBody49
|
|
4283
4209
|
});
|
|
4284
|
-
import joi77 from "joi";
|
|
4285
4210
|
var createBodyKeys53 = {
|
|
4286
|
-
order:
|
|
4287
|
-
name:
|
|
4288
|
-
alpha2:
|
|
4289
|
-
lang:
|
|
4290
|
-
voice_name:
|
|
4291
|
-
ssml:
|
|
4292
|
-
call_text:
|
|
4293
|
-
};
|
|
4294
|
-
var createBody54 =
|
|
4211
|
+
order: joi10.number().required(),
|
|
4212
|
+
name: joi10.string().required(),
|
|
4213
|
+
alpha2: joi10.string().required(),
|
|
4214
|
+
lang: joi10.string().required(),
|
|
4215
|
+
voice_name: joi10.string().required(),
|
|
4216
|
+
ssml: joi10.string().required(),
|
|
4217
|
+
call_text: joi10.string().required()
|
|
4218
|
+
};
|
|
4219
|
+
var createBody54 = joi10.object().keys(createBodyKeys53).messages(messages);
|
|
4295
4220
|
var updateBodyKeys49 = {
|
|
4296
|
-
name:
|
|
4297
|
-
alpha2:
|
|
4298
|
-
lang:
|
|
4299
|
-
voice_name:
|
|
4300
|
-
ssml:
|
|
4301
|
-
call_text:
|
|
4302
|
-
order:
|
|
4221
|
+
name: joi10.string().optional(),
|
|
4222
|
+
alpha2: joi10.string().optional(),
|
|
4223
|
+
lang: joi10.string().optional(),
|
|
4224
|
+
voice_name: joi10.string().optional(),
|
|
4225
|
+
ssml: joi10.string().optional(),
|
|
4226
|
+
call_text: joi10.string().optional(),
|
|
4227
|
+
order: joi10.number().optional()
|
|
4303
4228
|
};
|
|
4304
|
-
var updateBody49 =
|
|
4229
|
+
var updateBody49 = joi10.object().keys(updateBodyKeys49).messages(messages);
|
|
4305
4230
|
|
|
4306
4231
|
// src/modules/tickets/clt/interfaces.ts
|
|
4307
4232
|
var interfaces_exports37 = {};
|
|
@@ -4320,23 +4245,22 @@ __export(route_schema_exports77, {
|
|
|
4320
4245
|
createBody: () => createBody55,
|
|
4321
4246
|
updateBody: () => updateBody50
|
|
4322
4247
|
});
|
|
4323
|
-
import joi78 from "joi";
|
|
4324
4248
|
var createBodyKeys54 = {
|
|
4325
|
-
name:
|
|
4326
|
-
text:
|
|
4327
|
-
channel_id:
|
|
4328
|
-
language_id:
|
|
4329
|
-
translation_id:
|
|
4249
|
+
name: joi10.string().required(),
|
|
4250
|
+
text: joi10.string().required(),
|
|
4251
|
+
channel_id: joi10.number().required(),
|
|
4252
|
+
language_id: joi10.number().required(),
|
|
4253
|
+
translation_id: joi10.string().required()
|
|
4330
4254
|
};
|
|
4331
|
-
var createBody55 =
|
|
4255
|
+
var createBody55 = joi10.object().keys(createBodyKeys54).messages(messages);
|
|
4332
4256
|
var updateBodyKeys50 = {
|
|
4333
|
-
name:
|
|
4334
|
-
text:
|
|
4335
|
-
channel_id:
|
|
4336
|
-
language_id:
|
|
4337
|
-
translation_id:
|
|
4257
|
+
name: joi10.string().optional(),
|
|
4258
|
+
text: joi10.string().optional(),
|
|
4259
|
+
channel_id: joi10.number().optional(),
|
|
4260
|
+
language_id: joi10.number().optional(),
|
|
4261
|
+
translation_id: joi10.string().optional()
|
|
4338
4262
|
};
|
|
4339
|
-
var updateBody50 =
|
|
4263
|
+
var updateBody50 = joi10.object().keys(updateBodyKeys50).messages(messages);
|
|
4340
4264
|
|
|
4341
4265
|
// src/modules/supply/startDocumentHeaderLastUpdate/interface.ts
|
|
4342
4266
|
var interface_exports44 = {};
|
|
@@ -4370,62 +4294,61 @@ __export(route_schema_exports78, {
|
|
|
4370
4294
|
getBasicSearchParamsValidate: () => getBasicSearchParamsValidate,
|
|
4371
4295
|
updateBody: () => updateBody51
|
|
4372
4296
|
});
|
|
4373
|
-
import joi79 from "joi";
|
|
4374
4297
|
var createBodyKeys55 = {
|
|
4375
|
-
name:
|
|
4376
|
-
nif:
|
|
4377
|
-
street:
|
|
4378
|
-
locality:
|
|
4379
|
-
postal_code:
|
|
4380
|
-
country_id:
|
|
4381
|
-
telephone:
|
|
4382
|
-
email:
|
|
4383
|
-
observations:
|
|
4384
|
-
provider_id:
|
|
4385
|
-
client_id:
|
|
4386
|
-
commissioner_id:
|
|
4387
|
-
store_operator_id:
|
|
4388
|
-
reason_for_exemption_id:
|
|
4389
|
-
main:
|
|
4390
|
-
contact:
|
|
4391
|
-
};
|
|
4392
|
-
var createBody56 =
|
|
4298
|
+
name: joi10.string().allow(null, "").optional(),
|
|
4299
|
+
nif: joi10.string().allow(null, "").optional(),
|
|
4300
|
+
street: joi10.string().allow(null, "").optional(),
|
|
4301
|
+
locality: joi10.string().allow(null, "").optional(),
|
|
4302
|
+
postal_code: joi10.string().trim(true).lowercase().allow(null, "").optional(),
|
|
4303
|
+
country_id: joi10.string().uuid().allow(null, "").optional(),
|
|
4304
|
+
telephone: joi10.string().allow(null, "").optional(),
|
|
4305
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
4306
|
+
observations: joi10.string().allow(null, "").optional(),
|
|
4307
|
+
provider_id: joi10.string().uuid().allow(null, ""),
|
|
4308
|
+
client_id: joi10.string().uuid().allow(null, ""),
|
|
4309
|
+
commissioner_id: joi10.string().uuid().allow(null, ""),
|
|
4310
|
+
store_operator_id: joi10.string().uuid().allow(null, ""),
|
|
4311
|
+
reason_for_exemption_id: joi10.string().uuid().allow(null, "").optional(),
|
|
4312
|
+
main: joi10.boolean().default(false).optional(),
|
|
4313
|
+
contact: joi10.boolean().default(false).optional()
|
|
4314
|
+
};
|
|
4315
|
+
var createBody56 = joi10.object().keys(createBodyKeys55).xor("provider_id", "client_id", "commissioner_id").messages(messages);
|
|
4393
4316
|
var updateBodyKeys51 = {
|
|
4394
|
-
name:
|
|
4395
|
-
nif:
|
|
4396
|
-
street:
|
|
4397
|
-
locality:
|
|
4398
|
-
postal_code:
|
|
4399
|
-
country_id:
|
|
4400
|
-
telephone:
|
|
4401
|
-
email:
|
|
4402
|
-
observations:
|
|
4403
|
-
reason_for_exemption_id:
|
|
4404
|
-
main:
|
|
4405
|
-
contact:
|
|
4406
|
-
};
|
|
4407
|
-
var updateBody51 =
|
|
4317
|
+
name: joi10.string().allow(null, "").optional(),
|
|
4318
|
+
nif: joi10.string().allow(null, "").optional(),
|
|
4319
|
+
street: joi10.string().allow(null, "").optional(),
|
|
4320
|
+
locality: joi10.string().allow(null, "").optional(),
|
|
4321
|
+
postal_code: joi10.string().trim(true).lowercase().allow(null, "").optional(),
|
|
4322
|
+
country_id: joi10.string().uuid().allow(null, "").optional(),
|
|
4323
|
+
telephone: joi10.string().allow(null, "").optional(),
|
|
4324
|
+
email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
4325
|
+
observations: joi10.string().allow(null, "").optional(),
|
|
4326
|
+
reason_for_exemption_id: joi10.string().uuid().allow(null, "").optional(),
|
|
4327
|
+
main: joi10.boolean().optional(),
|
|
4328
|
+
contact: joi10.boolean().optional()
|
|
4329
|
+
};
|
|
4330
|
+
var updateBody51 = joi10.object().keys(updateBodyKeys51).messages(messages);
|
|
4408
4331
|
var findQueryKeys32 = {
|
|
4409
|
-
search_value:
|
|
4332
|
+
search_value: joi10.string().allow("", null).optional()
|
|
4410
4333
|
};
|
|
4411
|
-
var findQuery32 =
|
|
4334
|
+
var findQuery32 = joi10.object().keys(findQueryKeys32).messages(messages);
|
|
4412
4335
|
var getBasicSearchQueryKeys = {
|
|
4413
|
-
per_page:
|
|
4414
|
-
current_page:
|
|
4415
|
-
inactive:
|
|
4416
|
-
search_value:
|
|
4417
|
-
types:
|
|
4336
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
4337
|
+
current_page: joi10.number().integer().positive().default(1).optional(),
|
|
4338
|
+
inactive: joi10.boolean().default(false).optional(),
|
|
4339
|
+
search_value: joi10.string().allow("", null).optional(),
|
|
4340
|
+
types: joi10.string().allow("", null).optional()
|
|
4418
4341
|
};
|
|
4419
|
-
var getBasicSearchParamsValidate =
|
|
4342
|
+
var getBasicSearchParamsValidate = joi10.object().keys(getBasicSearchQueryKeys).messages(messages);
|
|
4420
4343
|
var deleteQueryKeys = {
|
|
4421
|
-
id:
|
|
4422
|
-
new_main_persona_id:
|
|
4344
|
+
id: joi10.string().uuid().required(),
|
|
4345
|
+
new_main_persona_id: joi10.string().uuid().optional()
|
|
4423
4346
|
};
|
|
4424
|
-
var deleteQueryValidate =
|
|
4347
|
+
var deleteQueryValidate = joi10.object().keys(deleteQueryKeys).messages(messages);
|
|
4425
4348
|
var findByEmailQueryKeys = {
|
|
4426
|
-
email:
|
|
4349
|
+
email: joi10.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4427
4350
|
};
|
|
4428
|
-
var FindByEmailQueryValidate =
|
|
4351
|
+
var FindByEmailQueryValidate = joi10.object().keys(findByEmailQueryKeys).messages(messages);
|
|
4429
4352
|
|
|
4430
4353
|
// src/modules/integration/projectInfo/interfaces.ts
|
|
4431
4354
|
var interfaces_exports38 = {};
|
|
@@ -4451,15 +4374,14 @@ var route_schema_exports79 = {};
|
|
|
4451
4374
|
__export(route_schema_exports79, {
|
|
4452
4375
|
sendEmailBody: () => sendEmailBody
|
|
4453
4376
|
});
|
|
4454
|
-
import joi80 from "joi";
|
|
4455
4377
|
var senEmailBodyKeys = {
|
|
4456
|
-
name:
|
|
4457
|
-
description:
|
|
4458
|
-
telephone:
|
|
4459
|
-
type:
|
|
4460
|
-
email:
|
|
4378
|
+
name: joi10.string().required(),
|
|
4379
|
+
description: joi10.string().required(),
|
|
4380
|
+
telephone: joi10.string().required(),
|
|
4381
|
+
type: joi10.string().valid("particular", "professional", "company"),
|
|
4382
|
+
email: joi10.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4461
4383
|
};
|
|
4462
|
-
var sendEmailBody =
|
|
4384
|
+
var sendEmailBody = joi10.object().keys(senEmailBodyKeys).messages(messages);
|
|
4463
4385
|
|
|
4464
4386
|
// src/modules/integration/emailVerification/interfaces.ts
|
|
4465
4387
|
var interfaces_exports39 = {};
|
|
@@ -4479,16 +4401,15 @@ __export(route_schema_exports80, {
|
|
|
4479
4401
|
markAsVerifiedBody: () => markAsVerifiedBody,
|
|
4480
4402
|
sendVerificationBody: () => sendVerificationBody
|
|
4481
4403
|
});
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
email: joi81.string().email({ tlds: { allow: false } }).required()
|
|
4404
|
+
var isVerifiedQuery = joi10.object().keys({
|
|
4405
|
+
email: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4485
4406
|
}).messages(messages);
|
|
4486
|
-
var sendVerificationBody =
|
|
4487
|
-
email:
|
|
4407
|
+
var sendVerificationBody = joi10.object().keys({
|
|
4408
|
+
email: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4488
4409
|
}).messages(messages);
|
|
4489
|
-
var markAsVerifiedBody =
|
|
4490
|
-
email:
|
|
4491
|
-
token:
|
|
4410
|
+
var markAsVerifiedBody = joi10.object().keys({
|
|
4411
|
+
email: joi10.string().email({ tlds: { allow: false } }).required(),
|
|
4412
|
+
token: joi10.string().uuid().required()
|
|
4492
4413
|
}).messages(messages);
|
|
4493
4414
|
|
|
4494
4415
|
// src/modules/integration/emailLog/interfaces.ts
|
|
@@ -4520,13 +4441,12 @@ __export(route_schema_exports81, {
|
|
|
4520
4441
|
checkSentBody: () => checkSentBody,
|
|
4521
4442
|
findQuery: () => findQuery33
|
|
4522
4443
|
});
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
date_end: joi82.date().required()
|
|
4444
|
+
var findQuery33 = joi10.object().keys({
|
|
4445
|
+
date_start: joi10.date().required(),
|
|
4446
|
+
date_end: joi10.date().required()
|
|
4527
4447
|
}).messages(messages);
|
|
4528
|
-
var checkSentBody =
|
|
4529
|
-
document_header_ids:
|
|
4448
|
+
var checkSentBody = joi10.object().keys({
|
|
4449
|
+
document_header_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4530
4450
|
}).messages(messages);
|
|
4531
4451
|
|
|
4532
4452
|
// src/modules/document/purchase/interfaces.ts
|
|
@@ -4546,31 +4466,30 @@ __export(route_schema_exports82, {
|
|
|
4546
4466
|
purchaseFromProviderBody: () => purchaseFromProviderBody,
|
|
4547
4467
|
syncBody: () => syncBody
|
|
4548
4468
|
});
|
|
4549
|
-
import joi83 from "joi";
|
|
4550
4469
|
var purchaseFromProviderBodyKeys = {
|
|
4551
|
-
invoice_number:
|
|
4552
|
-
invoice_emission_date:
|
|
4553
|
-
invoice_due_date:
|
|
4554
|
-
document_line_ids:
|
|
4555
|
-
global_discount:
|
|
4556
|
-
shipping:
|
|
4557
|
-
product_id:
|
|
4558
|
-
price:
|
|
4470
|
+
invoice_number: joi10.string().required(),
|
|
4471
|
+
invoice_emission_date: joi10.date().required(),
|
|
4472
|
+
invoice_due_date: joi10.date().required(),
|
|
4473
|
+
document_line_ids: joi10.array().items(joi10.string().required()).required(),
|
|
4474
|
+
global_discount: joi10.number().min(0).max(100).allow(null).optional(),
|
|
4475
|
+
shipping: joi10.object().keys({
|
|
4476
|
+
product_id: joi10.string().required(),
|
|
4477
|
+
price: joi10.number().allow(0).positive().required()
|
|
4559
4478
|
}).optional(),
|
|
4560
|
-
adjustment:
|
|
4561
|
-
value:
|
|
4479
|
+
adjustment: joi10.object().keys({
|
|
4480
|
+
value: joi10.number().required()
|
|
4562
4481
|
}).optional(),
|
|
4563
|
-
tax_retention:
|
|
4564
|
-
value:
|
|
4482
|
+
tax_retention: joi10.object().keys({
|
|
4483
|
+
value: joi10.number().allow(0).positive().required()
|
|
4565
4484
|
}).optional(),
|
|
4566
|
-
note:
|
|
4567
|
-
vat_self_accounting:
|
|
4568
|
-
purchase_without_invoice:
|
|
4485
|
+
note: joi10.string().allow("", null).optional(),
|
|
4486
|
+
vat_self_accounting: joi10.boolean().optional(),
|
|
4487
|
+
purchase_without_invoice: joi10.boolean().required()
|
|
4569
4488
|
};
|
|
4570
|
-
var purchaseFromProviderBody =
|
|
4571
|
-
var syncBody =
|
|
4572
|
-
document_line_ids:
|
|
4573
|
-
provider_id:
|
|
4489
|
+
var purchaseFromProviderBody = joi10.object().keys(purchaseFromProviderBodyKeys).messages(messages);
|
|
4490
|
+
var syncBody = joi10.object().keys({
|
|
4491
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
4492
|
+
provider_id: joi10.string().uuid().required()
|
|
4574
4493
|
});
|
|
4575
4494
|
|
|
4576
4495
|
// src/modules/document/order/interfaces.ts
|
|
@@ -4635,34 +4554,33 @@ __export(route_schema_exports83, {
|
|
|
4635
4554
|
undoProviderOrderBody: () => undoProviderOrderBody,
|
|
4636
4555
|
unsetCativadoBody: () => unsetCativadoBody
|
|
4637
4556
|
});
|
|
4638
|
-
import joi84 from "joi";
|
|
4639
4557
|
var undoProviderOrderBodyKeys = {
|
|
4640
|
-
document_line_ids:
|
|
4558
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4641
4559
|
};
|
|
4642
|
-
var undoProviderOrderBody =
|
|
4643
|
-
var conferirEncomendaClienteBody =
|
|
4644
|
-
option:
|
|
4645
|
-
document_line_ids:
|
|
4560
|
+
var undoProviderOrderBody = joi10.object().keys(undoProviderOrderBodyKeys).messages(messages);
|
|
4561
|
+
var conferirEncomendaClienteBody = joi10.object().keys({
|
|
4562
|
+
option: joi10.string().valid(...conferirEncomendaClienteOptions).required(),
|
|
4563
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4646
4564
|
}).messages(messages);
|
|
4647
4565
|
var findStockToOrderParamsKeys = {
|
|
4648
|
-
id_provider:
|
|
4566
|
+
id_provider: joi10.number().positive().required()
|
|
4649
4567
|
};
|
|
4650
|
-
var findStockToOrderParamsBodyKeys =
|
|
4568
|
+
var findStockToOrderParamsBodyKeys = joi10.object().keys(findStockToOrderParamsKeys).messages(messages);
|
|
4651
4569
|
var setProviderBodyKeys = {
|
|
4652
|
-
document_line_assoc_ids:
|
|
4653
|
-
id_provider:
|
|
4570
|
+
document_line_assoc_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
4571
|
+
id_provider: joi10.number().positive().required()
|
|
4654
4572
|
};
|
|
4655
|
-
var setProviderBody =
|
|
4573
|
+
var setProviderBody = joi10.object().keys(setProviderBodyKeys).messages(messages);
|
|
4656
4574
|
var unsetCativadoBodyKeys = {
|
|
4657
|
-
document_line_id:
|
|
4575
|
+
document_line_id: joi10.string().uuid().required()
|
|
4658
4576
|
};
|
|
4659
|
-
var unsetCativadoBody =
|
|
4660
|
-
var findQuery34 =
|
|
4661
|
-
date_start:
|
|
4662
|
-
date_end:
|
|
4577
|
+
var unsetCativadoBody = joi10.object().keys(unsetCativadoBodyKeys).messages(messages);
|
|
4578
|
+
var findQuery34 = joi10.object().keys({
|
|
4579
|
+
date_start: joi10.date().required(),
|
|
4580
|
+
date_end: joi10.date().required()
|
|
4663
4581
|
}).messages(messages);
|
|
4664
|
-
var findByIdsQuery =
|
|
4665
|
-
ids:
|
|
4582
|
+
var findByIdsQuery = joi10.object().keys({
|
|
4583
|
+
ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4666
4584
|
}).messages(messages);
|
|
4667
4585
|
|
|
4668
4586
|
// src/modules/document/materialEntrance/interfaces.ts
|
|
@@ -4714,33 +4632,32 @@ __export(route_schema_exports84, {
|
|
|
4714
4632
|
printLabelQuery: () => printLabelQuery2,
|
|
4715
4633
|
undoEntradaDeMaterialBody: () => undoEntradaDeMaterialBody
|
|
4716
4634
|
});
|
|
4717
|
-
import joi85 from "joi";
|
|
4718
4635
|
var finalizarEntradaDeMaterialBodyKeys = {
|
|
4719
|
-
provider_id:
|
|
4720
|
-
saved_em_picking_ids:
|
|
4636
|
+
provider_id: joi10.string().uuid().required(),
|
|
4637
|
+
saved_em_picking_ids: joi10.array().items(joi10.string().uuid().required()).optional()
|
|
4721
4638
|
};
|
|
4722
|
-
var finalizarEntradaDeMaterialBody =
|
|
4639
|
+
var finalizarEntradaDeMaterialBody = joi10.object().keys(finalizarEntradaDeMaterialBodyKeys).messages(messages);
|
|
4723
4640
|
var undoEntradaDeMaterialBodyKeys = {
|
|
4724
|
-
document_line_ids:
|
|
4641
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4725
4642
|
};
|
|
4726
|
-
var undoEntradaDeMaterialBody =
|
|
4643
|
+
var undoEntradaDeMaterialBody = joi10.object().keys(undoEntradaDeMaterialBodyKeys).messages(messages);
|
|
4727
4644
|
var printLabelParamsKeys2 = {
|
|
4728
|
-
product_id:
|
|
4645
|
+
product_id: joi10.string().uuid().required()
|
|
4729
4646
|
};
|
|
4730
|
-
var printLabelParams2 =
|
|
4647
|
+
var printLabelParams2 = joi10.object().keys(printLabelParamsKeys2).messages(messages);
|
|
4731
4648
|
var printLabelQueryKeys2 = {
|
|
4732
|
-
ef_name:
|
|
4733
|
-
pc_document_number:
|
|
4734
|
-
prison:
|
|
4735
|
-
quantity:
|
|
4736
|
-
note:
|
|
4737
|
-
token:
|
|
4649
|
+
ef_name: joi10.string().required(),
|
|
4650
|
+
pc_document_number: joi10.number().integer().positive().allow(null).optional(),
|
|
4651
|
+
prison: joi10.boolean().required(),
|
|
4652
|
+
quantity: joi10.number().positive().required(),
|
|
4653
|
+
note: joi10.string().allow(null, "").optional(),
|
|
4654
|
+
token: joi10.string().required()
|
|
4738
4655
|
};
|
|
4739
|
-
var printLabelQuery2 =
|
|
4740
|
-
var printBulkLabelQuery =
|
|
4741
|
-
groupLabel:
|
|
4742
|
-
saved_em_picking_ids:
|
|
4743
|
-
token:
|
|
4656
|
+
var printLabelQuery2 = joi10.object().keys(printLabelQueryKeys2).messages(messages);
|
|
4657
|
+
var printBulkLabelQuery = joi10.object().keys({
|
|
4658
|
+
groupLabel: joi10.boolean().required(),
|
|
4659
|
+
saved_em_picking_ids: joi10.string().required(),
|
|
4660
|
+
token: joi10.string().required()
|
|
4744
4661
|
});
|
|
4745
4662
|
|
|
4746
4663
|
// src/modules/document/transformado/interfaces.ts
|
|
@@ -4759,19 +4676,18 @@ var route_schema_exports85 = {};
|
|
|
4759
4676
|
__export(route_schema_exports85, {
|
|
4760
4677
|
createTransformadosBody: () => createTransformadosBody
|
|
4761
4678
|
});
|
|
4762
|
-
import joi86 from "joi";
|
|
4763
4679
|
var productsCreateTransformadosKeys = {
|
|
4764
|
-
id:
|
|
4765
|
-
quantity:
|
|
4680
|
+
id: joi10.string().uuid().required().invalid(joi10.ref("/product_id")),
|
|
4681
|
+
quantity: joi10.number().positive().required()
|
|
4766
4682
|
};
|
|
4767
4683
|
var createTransformadosKeys = {
|
|
4768
|
-
product_id:
|
|
4769
|
-
quantity:
|
|
4770
|
-
price_cost:
|
|
4771
|
-
price_sale:
|
|
4772
|
-
products:
|
|
4684
|
+
product_id: joi10.string().uuid().required(),
|
|
4685
|
+
quantity: joi10.number().positive().required(),
|
|
4686
|
+
price_cost: joi10.number().positive().allow(0).required(),
|
|
4687
|
+
price_sale: joi10.number().positive().allow(0).required(),
|
|
4688
|
+
products: joi10.array().items(joi10.object().keys(productsCreateTransformadosKeys)).min(1)
|
|
4773
4689
|
};
|
|
4774
|
-
var createTransformadosBody =
|
|
4690
|
+
var createTransformadosBody = joi10.object().keys(createTransformadosKeys).messages(messages);
|
|
4775
4691
|
|
|
4776
4692
|
// src/modules/document/quebra/interfaces.ts
|
|
4777
4693
|
var interfaces_exports45 = {};
|
|
@@ -4790,20 +4706,19 @@ __export(route_schema_exports86, {
|
|
|
4790
4706
|
createQuebraBody: () => createQuebraBody,
|
|
4791
4707
|
deleteInventoryLossBody: () => deleteInventoryLossBody
|
|
4792
4708
|
});
|
|
4793
|
-
import joi87 from "joi";
|
|
4794
4709
|
var productsCreateQuebraKeys = {
|
|
4795
|
-
id:
|
|
4796
|
-
quantity:
|
|
4797
|
-
note:
|
|
4710
|
+
id: joi10.string().uuid().required(),
|
|
4711
|
+
quantity: joi10.number().positive().required(),
|
|
4712
|
+
note: joi10.string().optional()
|
|
4798
4713
|
};
|
|
4799
4714
|
var createQuebraKeys = {
|
|
4800
|
-
products:
|
|
4715
|
+
products: joi10.array().items(joi10.object().keys(productsCreateQuebraKeys)).min(1).required()
|
|
4801
4716
|
};
|
|
4802
|
-
var createQuebraBody =
|
|
4717
|
+
var createQuebraBody = joi10.object().keys(createQuebraKeys).messages(messages);
|
|
4803
4718
|
var deleteInventoryLossBodyKeys = {
|
|
4804
|
-
document_line_ids:
|
|
4719
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4805
4720
|
};
|
|
4806
|
-
var deleteInventoryLossBody =
|
|
4721
|
+
var deleteInventoryLossBody = joi10.object().keys(deleteInventoryLossBodyKeys).messages(messages);
|
|
4807
4722
|
|
|
4808
4723
|
// src/modules/document/upfrontReturn/interfaces.ts
|
|
4809
4724
|
var interfaces_exports46 = {};
|
|
@@ -4821,11 +4736,10 @@ var route_schema_exports87 = {};
|
|
|
4821
4736
|
__export(route_schema_exports87, {
|
|
4822
4737
|
createBody: () => createBody57
|
|
4823
4738
|
});
|
|
4824
|
-
import joi88 from "joi";
|
|
4825
4739
|
var createBodyKeys56 = {
|
|
4826
|
-
current_account:
|
|
4740
|
+
current_account: joi10.boolean().required()
|
|
4827
4741
|
};
|
|
4828
|
-
var createBody57 =
|
|
4742
|
+
var createBody57 = joi10.object().keys(createBodyKeys56).messages(messages);
|
|
4829
4743
|
|
|
4830
4744
|
// src/modules/stock/savedEmPicking/interfaces.ts
|
|
4831
4745
|
var interfaces_exports47 = {};
|
|
@@ -4845,61 +4759,60 @@ __export(route_schema_exports88, {
|
|
|
4845
4759
|
createManyBody: () => createManyBody,
|
|
4846
4760
|
deleteManyBody: () => deleteManyBody
|
|
4847
4761
|
});
|
|
4848
|
-
import joi89 from "joi";
|
|
4849
4762
|
var entradaDeMaterialClientOrderBodyKeys = {
|
|
4850
|
-
ef_dla_id:
|
|
4851
|
-
ordered_quantity:
|
|
4852
|
-
pc_virtual_name:
|
|
4853
|
-
pc_dh_id:
|
|
4854
|
-
pc_dh_number:
|
|
4855
|
-
pc_dla_id:
|
|
4856
|
-
pc_sheet:
|
|
4857
|
-
pc_created_by:
|
|
4858
|
-
document_line_id:
|
|
4859
|
-
quantity:
|
|
4860
|
-
option:
|
|
4861
|
-
note:
|
|
4862
|
-
printed:
|
|
4863
|
-
};
|
|
4864
|
-
var entradaDeMaterialClientOrderBody =
|
|
4763
|
+
ef_dla_id: joi10.string().uuid().required(),
|
|
4764
|
+
ordered_quantity: joi10.number().positive().required(),
|
|
4765
|
+
pc_virtual_name: joi10.string().required(),
|
|
4766
|
+
pc_dh_id: joi10.string().uuid().required(),
|
|
4767
|
+
pc_dh_number: joi10.number().integer().positive().required(),
|
|
4768
|
+
pc_dla_id: joi10.string().uuid().required(),
|
|
4769
|
+
pc_sheet: joi10.string().allow(null),
|
|
4770
|
+
pc_created_by: joi10.string().uuid().required(),
|
|
4771
|
+
document_line_id: joi10.string().uuid().required(),
|
|
4772
|
+
quantity: joi10.number().positive().allow(0).required(),
|
|
4773
|
+
option: joi10.string().valid(...createMaterialEntranceClientOrderOptions).allow(null).required(),
|
|
4774
|
+
note: joi10.string().allow(null),
|
|
4775
|
+
printed: joi10.string().allow(null)
|
|
4776
|
+
};
|
|
4777
|
+
var entradaDeMaterialClientOrderBody = joi10.object().keys(entradaDeMaterialClientOrderBodyKeys).messages(messages);
|
|
4865
4778
|
var entradaDeMaterialStockBodyKeys = {
|
|
4866
|
-
ef_dla_id:
|
|
4867
|
-
ordered_quantity:
|
|
4868
|
-
document_line_id:
|
|
4869
|
-
quantity:
|
|
4870
|
-
option:
|
|
4871
|
-
note:
|
|
4872
|
-
printed:
|
|
4873
|
-
};
|
|
4874
|
-
var entradaDeMaterialStockBody =
|
|
4779
|
+
ef_dla_id: joi10.string().uuid().allow(null).required(),
|
|
4780
|
+
ordered_quantity: joi10.number().positive().allow(0).required(),
|
|
4781
|
+
document_line_id: joi10.string().uuid().required(),
|
|
4782
|
+
quantity: joi10.number().positive().allow(0).required(),
|
|
4783
|
+
option: joi10.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4784
|
+
note: joi10.string().allow(null),
|
|
4785
|
+
printed: joi10.string().allow(null)
|
|
4786
|
+
};
|
|
4787
|
+
var entradaDeMaterialStockBody = joi10.object().keys(entradaDeMaterialStockBodyKeys).required().messages(messages);
|
|
4875
4788
|
var entradaDeMaterialNCBodyKeys = {
|
|
4876
|
-
ef_dla_id:
|
|
4877
|
-
ordered_quantity:
|
|
4878
|
-
document_line_id:
|
|
4879
|
-
quantity:
|
|
4880
|
-
option:
|
|
4881
|
-
note:
|
|
4882
|
-
printed:
|
|
4883
|
-
};
|
|
4884
|
-
var entradaDeMaterialNCBody =
|
|
4789
|
+
ef_dla_id: joi10.valid(null).required(),
|
|
4790
|
+
ordered_quantity: joi10.number().valid(0).required(),
|
|
4791
|
+
document_line_id: joi10.string().uuid().required(),
|
|
4792
|
+
quantity: joi10.number().positive().allow(0).required(),
|
|
4793
|
+
option: joi10.valid(null).required(),
|
|
4794
|
+
note: joi10.string().allow(null),
|
|
4795
|
+
printed: joi10.string().allow(null)
|
|
4796
|
+
};
|
|
4797
|
+
var entradaDeMaterialNCBody = joi10.object().keys(entradaDeMaterialNCBodyKeys).messages(messages);
|
|
4885
4798
|
var entradaDeMaterialDocumentHeaderBodyKeys = {
|
|
4886
|
-
clientOrders:
|
|
4799
|
+
clientOrders: joi10.array().items(entradaDeMaterialClientOrderBody),
|
|
4887
4800
|
stock: entradaDeMaterialStockBody,
|
|
4888
4801
|
not_ok: entradaDeMaterialNCBody
|
|
4889
4802
|
};
|
|
4890
|
-
var entradaDeMaterialDocumentHeaderBody =
|
|
4803
|
+
var entradaDeMaterialDocumentHeaderBody = joi10.object().keys(entradaDeMaterialDocumentHeaderBodyKeys).messages(messages);
|
|
4891
4804
|
var createBodyKeys57 = {
|
|
4892
|
-
provider_id:
|
|
4893
|
-
document_header_id:
|
|
4894
|
-
document_line_group_id:
|
|
4805
|
+
provider_id: joi10.string().uuid().required(),
|
|
4806
|
+
document_header_id: joi10.string().uuid().required(),
|
|
4807
|
+
document_line_group_id: joi10.string().uuid().required(),
|
|
4895
4808
|
data: entradaDeMaterialDocumentHeaderBody
|
|
4896
4809
|
};
|
|
4897
|
-
var createBody58 =
|
|
4898
|
-
var createManyBody =
|
|
4899
|
-
items:
|
|
4810
|
+
var createBody58 = joi10.object().keys(createBodyKeys57).messages(messages);
|
|
4811
|
+
var createManyBody = joi10.object().keys({
|
|
4812
|
+
items: joi10.array().items(createBody58).required()
|
|
4900
4813
|
}).messages(messages);
|
|
4901
|
-
var deleteManyBody =
|
|
4902
|
-
ids:
|
|
4814
|
+
var deleteManyBody = joi10.object().keys({
|
|
4815
|
+
ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
4903
4816
|
}).messages(messages);
|
|
4904
4817
|
|
|
4905
4818
|
// src/modules/integration/emailTemplate/interfaces.ts
|
|
@@ -4920,61 +4833,60 @@ __export(route_schema_exports89, {
|
|
|
4920
4833
|
sendBody: () => sendBody,
|
|
4921
4834
|
updateBody: () => updateBody52
|
|
4922
4835
|
});
|
|
4923
|
-
import joi90 from "joi";
|
|
4924
4836
|
var createBodyKeys58 = {
|
|
4925
|
-
name:
|
|
4926
|
-
to:
|
|
4927
|
-
subject:
|
|
4928
|
-
body:
|
|
4929
|
-
attachments:
|
|
4930
|
-
|
|
4931
|
-
multimedia_id:
|
|
4932
|
-
name:
|
|
4837
|
+
name: joi10.string().required(),
|
|
4838
|
+
to: joi10.string().required(),
|
|
4839
|
+
subject: joi10.string().required(),
|
|
4840
|
+
body: joi10.string().required(),
|
|
4841
|
+
attachments: joi10.array().items(
|
|
4842
|
+
joi10.object().keys({
|
|
4843
|
+
multimedia_id: joi10.string().uuid().required(),
|
|
4844
|
+
name: joi10.string().required()
|
|
4933
4845
|
})
|
|
4934
4846
|
).required()
|
|
4935
4847
|
};
|
|
4936
|
-
var createBody59 =
|
|
4848
|
+
var createBody59 = joi10.object().keys(createBodyKeys58).messages(messages);
|
|
4937
4849
|
var updateBodyKeys52 = {
|
|
4938
|
-
name:
|
|
4939
|
-
to:
|
|
4940
|
-
subject:
|
|
4941
|
-
body:
|
|
4850
|
+
name: joi10.string().optional(),
|
|
4851
|
+
to: joi10.string().optional(),
|
|
4852
|
+
subject: joi10.string().optional(),
|
|
4853
|
+
body: joi10.string().optional()
|
|
4942
4854
|
};
|
|
4943
|
-
var updateBody52 =
|
|
4855
|
+
var updateBody52 = joi10.object().keys(updateBodyKeys52).messages(messages);
|
|
4944
4856
|
var sendBodyKeys = {
|
|
4945
|
-
owner_id:
|
|
4946
|
-
from:
|
|
4947
|
-
name:
|
|
4948
|
-
address:
|
|
4857
|
+
owner_id: joi10.string().uuid().allow(null).required(),
|
|
4858
|
+
from: joi10.object().keys({
|
|
4859
|
+
name: joi10.string().allow("", null).default("").required(),
|
|
4860
|
+
address: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4949
4861
|
}).required(),
|
|
4950
|
-
to:
|
|
4951
|
-
|
|
4952
|
-
name:
|
|
4953
|
-
address:
|
|
4862
|
+
to: joi10.array().items(
|
|
4863
|
+
joi10.object().keys({
|
|
4864
|
+
name: joi10.string().allow("", null).default("").required(),
|
|
4865
|
+
address: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4954
4866
|
})
|
|
4955
4867
|
).required(),
|
|
4956
|
-
cc:
|
|
4957
|
-
|
|
4958
|
-
name:
|
|
4959
|
-
address:
|
|
4868
|
+
cc: joi10.array().items(
|
|
4869
|
+
joi10.object().keys({
|
|
4870
|
+
name: joi10.string().allow("", null).default("").required(),
|
|
4871
|
+
address: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4960
4872
|
})
|
|
4961
4873
|
).required(),
|
|
4962
|
-
bcc:
|
|
4963
|
-
|
|
4964
|
-
name:
|
|
4965
|
-
address:
|
|
4874
|
+
bcc: joi10.array().items(
|
|
4875
|
+
joi10.object().keys({
|
|
4876
|
+
name: joi10.string().allow("", null).default("").required(),
|
|
4877
|
+
address: joi10.string().email({ tlds: { allow: false } }).required()
|
|
4966
4878
|
})
|
|
4967
4879
|
).required(),
|
|
4968
|
-
subject:
|
|
4969
|
-
html:
|
|
4970
|
-
attachments:
|
|
4971
|
-
|
|
4972
|
-
filename:
|
|
4973
|
-
path:
|
|
4880
|
+
subject: joi10.string().required(),
|
|
4881
|
+
html: joi10.string().required(),
|
|
4882
|
+
attachments: joi10.array().items(
|
|
4883
|
+
joi10.object().keys({
|
|
4884
|
+
filename: joi10.string().required(),
|
|
4885
|
+
path: joi10.string().required()
|
|
4974
4886
|
})
|
|
4975
4887
|
).required()
|
|
4976
4888
|
};
|
|
4977
|
-
var sendBody =
|
|
4889
|
+
var sendBody = joi10.object().keys(sendBodyKeys).messages(messages);
|
|
4978
4890
|
|
|
4979
4891
|
// src/modules/integration/emailTemplateAttachment/interfaces.ts
|
|
4980
4892
|
var interfaces_exports49 = {};
|
|
@@ -4992,13 +4904,12 @@ var route_schema_exports90 = {};
|
|
|
4992
4904
|
__export(route_schema_exports90, {
|
|
4993
4905
|
createBody: () => createBody60
|
|
4994
4906
|
});
|
|
4995
|
-
import joi91 from "joi";
|
|
4996
4907
|
var createBodyKeys59 = {
|
|
4997
|
-
email_template_id:
|
|
4998
|
-
multimedia_id:
|
|
4999
|
-
name:
|
|
4908
|
+
email_template_id: joi10.string().uuid().required(),
|
|
4909
|
+
multimedia_id: joi10.string().uuid().required(),
|
|
4910
|
+
name: joi10.string().required()
|
|
5000
4911
|
};
|
|
5001
|
-
var createBody60 =
|
|
4912
|
+
var createBody60 = joi10.object().keys(createBodyKeys59).messages(messages);
|
|
5002
4913
|
|
|
5003
4914
|
// src/modules/document/inventario/interface.ts
|
|
5004
4915
|
var interface_exports46 = {};
|
|
@@ -5016,15 +4927,14 @@ var route_schema_exports91 = {};
|
|
|
5016
4927
|
__export(route_schema_exports91, {
|
|
5017
4928
|
createInventoryRequest: () => createInventoryRequest
|
|
5018
4929
|
});
|
|
5019
|
-
import joi92 from "joi";
|
|
5020
4930
|
var createInventoryRequestKeys = {
|
|
5021
|
-
product_id:
|
|
5022
|
-
registered_quantity:
|
|
5023
|
-
inventory_quantity:
|
|
5024
|
-
created_by:
|
|
5025
|
-
updated_by:
|
|
4931
|
+
product_id: joi10.string().uuid().required(),
|
|
4932
|
+
registered_quantity: joi10.number().allow(0).optional(),
|
|
4933
|
+
inventory_quantity: joi10.number().positive().allow(0).required(),
|
|
4934
|
+
created_by: joi10.string().uuid().optional(),
|
|
4935
|
+
updated_by: joi10.string().uuid().optional()
|
|
5026
4936
|
};
|
|
5027
|
-
var createInventoryRequest =
|
|
4937
|
+
var createInventoryRequest = joi10.object().keys(createInventoryRequestKeys).messages(messages);
|
|
5028
4938
|
|
|
5029
4939
|
// src/modules/document/returnToProvider/interface.ts
|
|
5030
4940
|
var interface_exports47 = {};
|
|
@@ -5051,16 +4961,15 @@ var route_schema_exports92 = {};
|
|
|
5051
4961
|
__export(route_schema_exports92, {
|
|
5052
4962
|
checkLinesToReturnBody: () => checkLinesToReturnBody
|
|
5053
4963
|
});
|
|
5054
|
-
import joi93 from "joi";
|
|
5055
4964
|
var checkLinesToReturnLinesKeys = {
|
|
5056
|
-
document_line_assoc_id:
|
|
5057
|
-
document_line_id:
|
|
4965
|
+
document_line_assoc_id: joi10.string().uuid().required(),
|
|
4966
|
+
document_line_id: joi10.string().uuid().required()
|
|
5058
4967
|
};
|
|
5059
4968
|
var checkLinesToReturnBodyKeys = {
|
|
5060
|
-
option:
|
|
5061
|
-
lines:
|
|
4969
|
+
option: joi10.string().valid(...checkLinesToReturnOptions).required(),
|
|
4970
|
+
lines: joi10.array().items(joi10.object().keys(checkLinesToReturnLinesKeys).required()).required()
|
|
5062
4971
|
};
|
|
5063
|
-
var checkLinesToReturnBody =
|
|
4972
|
+
var checkLinesToReturnBody = joi10.object().keys(checkLinesToReturnBodyKeys).messages(messages);
|
|
5064
4973
|
|
|
5065
4974
|
// src/modules/stock/prison/interface.ts
|
|
5066
4975
|
var interface_exports48 = {};
|
|
@@ -5081,22 +4990,21 @@ __export(route_schema_exports93, {
|
|
|
5081
4990
|
checkLinesInPrisonBody: () => checkLinesInPrisonBody,
|
|
5082
4991
|
createLinesInPrisonBody: () => createLinesInPrisonBody
|
|
5083
4992
|
});
|
|
5084
|
-
import joi94 from "joi";
|
|
5085
4993
|
var checkLinesInPrisonLinesBodyKeys = {
|
|
5086
|
-
document_line_id:
|
|
4994
|
+
document_line_id: joi10.string().uuid().required()
|
|
5087
4995
|
};
|
|
5088
4996
|
var checkLinesInPrisonBodyKeys = {
|
|
5089
|
-
option:
|
|
5090
|
-
lines:
|
|
5091
|
-
};
|
|
5092
|
-
var checkLinesInPrisonBody =
|
|
5093
|
-
var createLinesInPrisonBody =
|
|
5094
|
-
createProviderReturn:
|
|
5095
|
-
products:
|
|
5096
|
-
|
|
5097
|
-
id:
|
|
5098
|
-
quantity:
|
|
5099
|
-
note:
|
|
4997
|
+
option: joi10.string().valid(...checkLineInPrisonOptions).required(),
|
|
4998
|
+
lines: joi10.array().items(joi10.object().keys(checkLinesInPrisonLinesBodyKeys).required()).required()
|
|
4999
|
+
};
|
|
5000
|
+
var checkLinesInPrisonBody = joi10.object().keys(checkLinesInPrisonBodyKeys).messages(messages);
|
|
5001
|
+
var createLinesInPrisonBody = joi10.object().keys({
|
|
5002
|
+
createProviderReturn: joi10.boolean().required(),
|
|
5003
|
+
products: joi10.array().items(
|
|
5004
|
+
joi10.object().keys({
|
|
5005
|
+
id: joi10.string().uuid().required(),
|
|
5006
|
+
quantity: joi10.number().positive().required(),
|
|
5007
|
+
note: joi10.string().optional()
|
|
5100
5008
|
}).required()
|
|
5101
5009
|
).required()
|
|
5102
5010
|
}).required();
|
|
@@ -5133,17 +5041,16 @@ __export(route_schema_exports94, {
|
|
|
5133
5041
|
createBodyKeys: () => createBodyKeys60,
|
|
5134
5042
|
updateBody: () => updateBody53
|
|
5135
5043
|
});
|
|
5136
|
-
import joi95 from "joi";
|
|
5137
5044
|
var createBodyKeys60 = {
|
|
5138
|
-
document_line_id:
|
|
5139
|
-
note:
|
|
5140
|
-
type:
|
|
5045
|
+
document_line_id: joi10.string().uuid().required(),
|
|
5046
|
+
note: joi10.string().required(),
|
|
5047
|
+
type: joi10.string().valid(...documentLineNoteTypes).required()
|
|
5141
5048
|
};
|
|
5142
|
-
var createBody61 =
|
|
5049
|
+
var createBody61 = joi10.object().keys(createBodyKeys60).messages(messages);
|
|
5143
5050
|
var updateBodyKeys53 = {
|
|
5144
|
-
note:
|
|
5051
|
+
note: joi10.string().required()
|
|
5145
5052
|
};
|
|
5146
|
-
var updateBody53 =
|
|
5053
|
+
var updateBody53 = joi10.object().keys(updateBodyKeys53).messages(messages);
|
|
5147
5054
|
|
|
5148
5055
|
// src/modules/stock/savedProviderProposal/interfaces.ts
|
|
5149
5056
|
var interfaces_exports51 = {};
|
|
@@ -5162,17 +5069,16 @@ __export(route_schema_exports95, {
|
|
|
5162
5069
|
createBody: () => createBody62,
|
|
5163
5070
|
updateBody: () => updateBody54
|
|
5164
5071
|
});
|
|
5165
|
-
import joi96 from "joi";
|
|
5166
5072
|
var createBodyKeys61 = {
|
|
5167
|
-
provider_id:
|
|
5168
|
-
product_id:
|
|
5169
|
-
quantity:
|
|
5073
|
+
provider_id: joi10.string().uuid().required(),
|
|
5074
|
+
product_id: joi10.string().uuid().required(),
|
|
5075
|
+
quantity: joi10.number().positive().required()
|
|
5170
5076
|
};
|
|
5171
|
-
var createBody62 =
|
|
5077
|
+
var createBody62 = joi10.object().keys(createBodyKeys61).messages(messages);
|
|
5172
5078
|
var updateBodyKeys54 = {
|
|
5173
|
-
quantity:
|
|
5079
|
+
quantity: joi10.number().positive().required()
|
|
5174
5080
|
};
|
|
5175
|
-
var updateBody54 =
|
|
5081
|
+
var updateBody54 = joi10.object().keys(updateBodyKeys54).messages(messages);
|
|
5176
5082
|
|
|
5177
5083
|
// src/modules/stock/productGoogleSheets/interface.ts
|
|
5178
5084
|
var interface_exports49 = {};
|
|
@@ -5226,89 +5132,88 @@ __export(route_schema_exports96, {
|
|
|
5226
5132
|
updateBody: () => updateBody55,
|
|
5227
5133
|
validateByRef: () => validateByRef
|
|
5228
5134
|
});
|
|
5229
|
-
import joi97 from "joi";
|
|
5230
5135
|
var printLabelQueryKeys3 = {
|
|
5231
|
-
token:
|
|
5136
|
+
token: joi10.string().required()
|
|
5232
5137
|
};
|
|
5233
|
-
var printLabelQuery3 =
|
|
5234
|
-
var checkStockByIdsBody =
|
|
5138
|
+
var printLabelQuery3 = joi10.object().keys(printLabelQueryKeys3).messages(messages);
|
|
5139
|
+
var checkStockByIdsBody = joi10.object().keys({ ids: joi10.array().items(joi10.string().uuid().required()).required() }).messages(messages);
|
|
5235
5140
|
var basicSearchQueryKeys2 = {
|
|
5236
|
-
per_page:
|
|
5237
|
-
current_page:
|
|
5238
|
-
active:
|
|
5239
|
-
inactive:
|
|
5240
|
-
search_value:
|
|
5241
|
-
dnt_come_anymore:
|
|
5242
|
-
types:
|
|
5243
|
-
};
|
|
5244
|
-
var basicSearchQuery2 =
|
|
5141
|
+
per_page: joi10.number().integer().positive().default(10).optional(),
|
|
5142
|
+
current_page: joi10.number().integer().positive().default(1).optional(),
|
|
5143
|
+
active: joi10.boolean().default(false).optional(),
|
|
5144
|
+
inactive: joi10.boolean().default(false).optional(),
|
|
5145
|
+
search_value: joi10.string().allow("", null).optional(),
|
|
5146
|
+
dnt_come_anymore: joi10.boolean().default(false).optional(),
|
|
5147
|
+
types: joi10.string().optional()
|
|
5148
|
+
};
|
|
5149
|
+
var basicSearchQuery2 = joi10.object().keys(basicSearchQueryKeys2).messages(messages);
|
|
5245
5150
|
var findByRefKeys = {
|
|
5246
|
-
reference:
|
|
5247
|
-
id_provider:
|
|
5248
|
-
available:
|
|
5249
|
-
allowProviderWildcard:
|
|
5250
|
-
type:
|
|
5151
|
+
reference: joi10.string().required(),
|
|
5152
|
+
id_provider: joi10.number().integer().positive().optional(),
|
|
5153
|
+
available: joi10.boolean().optional(),
|
|
5154
|
+
allowProviderWildcard: joi10.boolean().optional(),
|
|
5155
|
+
type: joi10.string().valid(...productTypes).optional()
|
|
5251
5156
|
};
|
|
5252
|
-
var findByRef =
|
|
5157
|
+
var findByRef = joi10.object().keys(findByRefKeys).messages(messages);
|
|
5253
5158
|
var validateByRefKeys = {
|
|
5254
5159
|
...findByRefKeys,
|
|
5255
|
-
billing_country_id:
|
|
5160
|
+
billing_country_id: joi10.string().uuid().optional()
|
|
5256
5161
|
};
|
|
5257
|
-
var validateByRef =
|
|
5162
|
+
var validateByRef = joi10.object().keys(validateByRefKeys).messages(messages);
|
|
5258
5163
|
var findByProductTypeKeys = {
|
|
5259
|
-
id_provider:
|
|
5260
|
-
type:
|
|
5164
|
+
id_provider: joi10.number().positive().required(),
|
|
5165
|
+
type: joi10.string().valid(...productTypes).required()
|
|
5261
5166
|
};
|
|
5262
|
-
var findByProductTypeParams =
|
|
5167
|
+
var findByProductTypeParams = joi10.object().keys(findByProductTypeKeys).messages(messages);
|
|
5263
5168
|
var createBodyKeys62 = {
|
|
5264
|
-
id:
|
|
5265
|
-
origin_id:
|
|
5266
|
-
id_provider:
|
|
5267
|
-
provider_ref:
|
|
5268
|
-
name:
|
|
5269
|
-
designation:
|
|
5270
|
-
type:
|
|
5271
|
-
vat_tax_id:
|
|
5272
|
-
weight:
|
|
5273
|
-
width:
|
|
5274
|
-
height:
|
|
5275
|
-
length:
|
|
5276
|
-
diameter:
|
|
5277
|
-
price_cost:
|
|
5278
|
-
price_sale:
|
|
5279
|
-
unit_of_measure_quantity_id:
|
|
5280
|
-
cabide_product_color:
|
|
5281
|
-
imported_from_sheets:
|
|
5282
|
-
reference:
|
|
5283
|
-
state:
|
|
5284
|
-
type_of_inventory:
|
|
5285
|
-
max_discount:
|
|
5286
|
-
values:
|
|
5287
|
-
maintenances:
|
|
5288
|
-
compositions:
|
|
5289
|
-
attributes:
|
|
5290
|
-
};
|
|
5291
|
-
var createBody63 =
|
|
5169
|
+
id: joi10.string().uuid().optional(),
|
|
5170
|
+
origin_id: joi10.string().empty("").optional(),
|
|
5171
|
+
id_provider: joi10.number().integer().positive().allow(0).optional(),
|
|
5172
|
+
provider_ref: joi10.string().empty("").optional(),
|
|
5173
|
+
name: joi10.string().empty("").optional(),
|
|
5174
|
+
designation: joi10.string().empty("").optional(),
|
|
5175
|
+
type: joi10.string().valid(...productTypes).optional(),
|
|
5176
|
+
vat_tax_id: joi10.string().uuid().empty("").optional(),
|
|
5177
|
+
weight: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5178
|
+
width: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5179
|
+
height: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5180
|
+
length: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5181
|
+
diameter: joi10.number().positive().allow(0).allow(null, "").optional(),
|
|
5182
|
+
price_cost: joi10.number().positive().allow(0).optional(),
|
|
5183
|
+
price_sale: joi10.number().positive().allow(0).optional(),
|
|
5184
|
+
unit_of_measure_quantity_id: joi10.string().uuid().empty("").optional(),
|
|
5185
|
+
cabide_product_color: joi10.string().allow(null, "").optional(),
|
|
5186
|
+
imported_from_sheets: joi10.boolean().optional(),
|
|
5187
|
+
reference: joi10.string().optional(),
|
|
5188
|
+
state: joi10.string().valid(...productState).optional(),
|
|
5189
|
+
type_of_inventory: joi10.string().optional(),
|
|
5190
|
+
max_discount: joi10.number().positive().allow(0).min(0).max(100).optional(),
|
|
5191
|
+
values: joi10.object().optional(),
|
|
5192
|
+
maintenances: joi10.string().optional(),
|
|
5193
|
+
compositions: joi10.string().optional(),
|
|
5194
|
+
attributes: joi10.string().optional()
|
|
5195
|
+
};
|
|
5196
|
+
var createBody63 = joi10.object().keys(createBodyKeys62).messages(messages);
|
|
5292
5197
|
var updateBodyKeys55 = {
|
|
5293
|
-
designation:
|
|
5294
|
-
provider_ref:
|
|
5295
|
-
type:
|
|
5296
|
-
price_cost:
|
|
5297
|
-
price_sale:
|
|
5298
|
-
unit_of_measure_quantity_notation:
|
|
5299
|
-
state:
|
|
5300
|
-
};
|
|
5301
|
-
var updateBody55 =
|
|
5302
|
-
var findForMobileQuery =
|
|
5303
|
-
id:
|
|
5304
|
-
reference:
|
|
5198
|
+
designation: joi10.string().empty("").optional(),
|
|
5199
|
+
provider_ref: joi10.string().empty("").optional(),
|
|
5200
|
+
type: joi10.string().valid(...productTypes).optional(),
|
|
5201
|
+
price_cost: joi10.number().positive().allow(0).optional(),
|
|
5202
|
+
price_sale: joi10.number().positive().allow(0).optional(),
|
|
5203
|
+
unit_of_measure_quantity_notation: joi10.string().empty("").optional(),
|
|
5204
|
+
state: joi10.string().valid(...productState).optional()
|
|
5205
|
+
};
|
|
5206
|
+
var updateBody55 = joi10.object().keys(updateBodyKeys55).messages(messages);
|
|
5207
|
+
var findForMobileQuery = joi10.object().keys({
|
|
5208
|
+
id: joi10.string().uuid().optional(),
|
|
5209
|
+
reference: joi10.string().optional()
|
|
5305
5210
|
}).xor("id", "reference").messages(messages);
|
|
5306
|
-
var findProductSheetByReferenceQuery =
|
|
5307
|
-
selector:
|
|
5211
|
+
var findProductSheetByReferenceQuery = joi10.object().keys({
|
|
5212
|
+
selector: joi10.string().required()
|
|
5308
5213
|
}).messages(messages);
|
|
5309
|
-
var productLocationBody =
|
|
5310
|
-
location_number:
|
|
5311
|
-
product_id:
|
|
5214
|
+
var productLocationBody = joi10.object().keys({
|
|
5215
|
+
location_number: joi10.number().required(),
|
|
5216
|
+
product_id: joi10.array().items(joi10.string().uuid()).required()
|
|
5312
5217
|
}).messages(messages);
|
|
5313
5218
|
|
|
5314
5219
|
// src/modules/stock/task/interface.ts
|
|
@@ -5347,26 +5252,25 @@ __export(route_schema_exports97, {
|
|
|
5347
5252
|
findTaskParams: () => findTaskParams,
|
|
5348
5253
|
updateBody: () => updateBody56
|
|
5349
5254
|
});
|
|
5350
|
-
import joi98 from "joi";
|
|
5351
5255
|
var createBodyKeys63 = {
|
|
5352
|
-
task:
|
|
5256
|
+
task: joi10.string().required()
|
|
5353
5257
|
};
|
|
5354
|
-
var createBody64 =
|
|
5258
|
+
var createBody64 = joi10.object().keys(createBodyKeys63).messages(messages);
|
|
5355
5259
|
var updateBodyKeys56 = {
|
|
5356
|
-
from:
|
|
5357
|
-
to:
|
|
5358
|
-
task:
|
|
5359
|
-
read:
|
|
5360
|
-
finished:
|
|
5361
|
-
archived:
|
|
5362
|
-
future_date:
|
|
5363
|
-
status:
|
|
5364
|
-
};
|
|
5365
|
-
var updateBody56 =
|
|
5260
|
+
from: joi10.string().uuid().optional(),
|
|
5261
|
+
to: joi10.string().uuid().allow(null).optional(),
|
|
5262
|
+
task: joi10.string().optional(),
|
|
5263
|
+
read: joi10.boolean().optional(),
|
|
5264
|
+
finished: joi10.boolean().optional(),
|
|
5265
|
+
archived: joi10.boolean().optional(),
|
|
5266
|
+
future_date: joi10.date().allow(null, "").optional(),
|
|
5267
|
+
status: joi10.string().valid(...taskStatusDataType).optional()
|
|
5268
|
+
};
|
|
5269
|
+
var updateBody56 = joi10.object().keys(updateBodyKeys56).messages(messages);
|
|
5366
5270
|
var findTaskParamsKeys = {
|
|
5367
|
-
archived:
|
|
5271
|
+
archived: joi10.boolean().optional()
|
|
5368
5272
|
};
|
|
5369
|
-
var findTaskParams =
|
|
5273
|
+
var findTaskParams = joi10.object().keys(findTaskParamsKeys).messages(messages);
|
|
5370
5274
|
|
|
5371
5275
|
// src/modules/stock/taskMessage/interface.ts
|
|
5372
5276
|
var interface_exports51 = {};
|
|
@@ -5385,17 +5289,16 @@ __export(route_schema_exports98, {
|
|
|
5385
5289
|
createBody: () => createBody65,
|
|
5386
5290
|
updateBody: () => updateBody57
|
|
5387
5291
|
});
|
|
5388
|
-
import joi99 from "joi";
|
|
5389
5292
|
var createBodyKeys64 = {
|
|
5390
|
-
task_id:
|
|
5391
|
-
message:
|
|
5293
|
+
task_id: joi10.string().uuid().required(),
|
|
5294
|
+
message: joi10.string().required()
|
|
5392
5295
|
};
|
|
5393
|
-
var createBody65 =
|
|
5296
|
+
var createBody65 = joi10.object().keys(createBodyKeys64).messages(messages);
|
|
5394
5297
|
var updateBodyKeys57 = {
|
|
5395
|
-
task_id:
|
|
5396
|
-
message:
|
|
5298
|
+
task_id: joi10.string().uuid().required(),
|
|
5299
|
+
message: joi10.string().required()
|
|
5397
5300
|
};
|
|
5398
|
-
var updateBody57 =
|
|
5301
|
+
var updateBody57 = joi10.object().keys(updateBodyKeys57).messages(messages);
|
|
5399
5302
|
|
|
5400
5303
|
// src/modules/stock/recurrentTasks/interface.ts
|
|
5401
5304
|
var interface_exports52 = {};
|
|
@@ -5425,17 +5328,16 @@ __export(route_schema_exports99, {
|
|
|
5425
5328
|
createBody: () => createBody66,
|
|
5426
5329
|
deleteBody: () => deleteBody2
|
|
5427
5330
|
});
|
|
5428
|
-
import joi100 from "joi";
|
|
5429
5331
|
var createBodyKeys65 = {
|
|
5430
|
-
task_id:
|
|
5431
|
-
user_id:
|
|
5332
|
+
task_id: joi10.string().uuid().required(),
|
|
5333
|
+
user_id: joi10.string().uuid().required()
|
|
5432
5334
|
};
|
|
5433
|
-
var createBody66 =
|
|
5335
|
+
var createBody66 = joi10.object().keys(createBodyKeys65).messages(messages);
|
|
5434
5336
|
var deleteParamsKeys = {
|
|
5435
|
-
task_id:
|
|
5436
|
-
user_id:
|
|
5337
|
+
task_id: joi10.string().uuid().required(),
|
|
5338
|
+
user_id: joi10.string().uuid().required()
|
|
5437
5339
|
};
|
|
5438
|
-
var deleteBody2 =
|
|
5340
|
+
var deleteBody2 = joi10.object().keys(deleteParamsKeys).messages(messages);
|
|
5439
5341
|
|
|
5440
5342
|
// src/modules/user/theme/interfaces.ts
|
|
5441
5343
|
var interfaces_exports52 = {};
|
|
@@ -5453,17 +5355,16 @@ var route_schema_exports100 = {};
|
|
|
5453
5355
|
__export(route_schema_exports100, {
|
|
5454
5356
|
createOrUpdateBody: () => createOrUpdateBody
|
|
5455
5357
|
});
|
|
5456
|
-
import joi101 from "joi";
|
|
5457
5358
|
var createOrUpdateBodyKeys = {
|
|
5458
|
-
colors:
|
|
5459
|
-
|
|
5460
|
-
name:
|
|
5461
|
-
hex:
|
|
5359
|
+
colors: joi10.array().items(
|
|
5360
|
+
joi10.object({
|
|
5361
|
+
name: joi10.string().required(),
|
|
5362
|
+
hex: joi10.string().required()
|
|
5462
5363
|
})
|
|
5463
5364
|
).required(),
|
|
5464
|
-
store_operator_id:
|
|
5365
|
+
store_operator_id: joi10.string().uuid().required()
|
|
5465
5366
|
};
|
|
5466
|
-
var createOrUpdateBody =
|
|
5367
|
+
var createOrUpdateBody = joi10.object().keys(createOrUpdateBodyKeys).messages(messages);
|
|
5467
5368
|
|
|
5468
5369
|
// src/modules/stock/dashboard/interface.ts
|
|
5469
5370
|
var interface_exports54 = {};
|
|
@@ -5481,12 +5382,11 @@ var route_schema_exports101 = {};
|
|
|
5481
5382
|
__export(route_schema_exports101, {
|
|
5482
5383
|
findByDateParams: () => findByDateParams
|
|
5483
5384
|
});
|
|
5484
|
-
import joi102 from "joi";
|
|
5485
5385
|
var findByDateKeys = {
|
|
5486
|
-
date:
|
|
5487
|
-
name:
|
|
5386
|
+
date: joi10.date().required(),
|
|
5387
|
+
name: joi10.string().valid("dia", "mes", "ano").required()
|
|
5488
5388
|
};
|
|
5489
|
-
var findByDateParams =
|
|
5389
|
+
var findByDateParams = joi10.object().keys(findByDateKeys).messages(messages);
|
|
5490
5390
|
|
|
5491
5391
|
// src/modules/stock/chatRapidMessage/interface.ts
|
|
5492
5392
|
var interface_exports55 = {};
|
|
@@ -5505,17 +5405,16 @@ __export(route_schema_exports102, {
|
|
|
5505
5405
|
createBody: () => createBody67,
|
|
5506
5406
|
updateBody: () => updateBody58
|
|
5507
5407
|
});
|
|
5508
|
-
import joi103 from "joi";
|
|
5509
5408
|
var createBodyKeys66 = {
|
|
5510
|
-
title:
|
|
5511
|
-
message:
|
|
5409
|
+
title: joi10.string().required(),
|
|
5410
|
+
message: joi10.string().required()
|
|
5512
5411
|
};
|
|
5513
|
-
var createBody67 =
|
|
5412
|
+
var createBody67 = joi10.object().keys(createBodyKeys66).messages(messages);
|
|
5514
5413
|
var updateBodyKeys58 = {
|
|
5515
|
-
title:
|
|
5516
|
-
message:
|
|
5414
|
+
title: joi10.string().optional(),
|
|
5415
|
+
message: joi10.string().optional()
|
|
5517
5416
|
};
|
|
5518
|
-
var updateBody58 =
|
|
5417
|
+
var updateBody58 = joi10.object().keys(updateBodyKeys58).messages(messages);
|
|
5519
5418
|
|
|
5520
5419
|
// src/modules/stock/sideMenu/interface.ts
|
|
5521
5420
|
var interface_exports56 = {};
|
|
@@ -5526,17 +5425,16 @@ __export(route_schema_exports103, {
|
|
|
5526
5425
|
findByDocumentLineStateQuery: () => findByDocumentLineStateQuery,
|
|
5527
5426
|
findByStateQuery: () => findByStateQuery
|
|
5528
5427
|
});
|
|
5529
|
-
import joi104 from "joi";
|
|
5530
5428
|
var findByDocumentLineStateQueryKeys = {
|
|
5531
|
-
document_type_id:
|
|
5532
|
-
document_line_state:
|
|
5429
|
+
document_type_id: joi10.number().valid(100, 116).required(),
|
|
5430
|
+
document_line_state: joi10.string().required()
|
|
5533
5431
|
};
|
|
5534
5432
|
var findByStateQueryKeys = {
|
|
5535
|
-
document_type_id:
|
|
5536
|
-
search_value:
|
|
5433
|
+
document_type_id: joi10.number().integer().positive().required(),
|
|
5434
|
+
search_value: joi10.string().allow(null).empty("").optional()
|
|
5537
5435
|
};
|
|
5538
|
-
var findByStateQuery =
|
|
5539
|
-
var findByDocumentLineStateQuery =
|
|
5436
|
+
var findByStateQuery = joi10.object().keys(findByStateQueryKeys).messages(messages);
|
|
5437
|
+
var findByDocumentLineStateQuery = joi10.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5540
5438
|
|
|
5541
5439
|
// src/modules/view/adminPanel/interfaces.ts
|
|
5542
5440
|
var interfaces_exports53 = {};
|
|
@@ -5576,22 +5474,21 @@ var route_schema_exports104 = {};
|
|
|
5576
5474
|
__export(route_schema_exports104, {
|
|
5577
5475
|
createBody: () => createBody68
|
|
5578
5476
|
});
|
|
5579
|
-
import joi105 from "joi";
|
|
5580
5477
|
var createBodyKeys67 = {
|
|
5581
|
-
error:
|
|
5582
|
-
name:
|
|
5583
|
-
message:
|
|
5584
|
-
stack:
|
|
5478
|
+
error: joi10.object({
|
|
5479
|
+
name: joi10.string().required(),
|
|
5480
|
+
message: joi10.string().required(),
|
|
5481
|
+
stack: joi10.string().optional()
|
|
5585
5482
|
}),
|
|
5586
|
-
request:
|
|
5587
|
-
body:
|
|
5588
|
-
query:
|
|
5589
|
-
params:
|
|
5483
|
+
request: joi10.object({
|
|
5484
|
+
body: joi10.any().optional(),
|
|
5485
|
+
query: joi10.any().optional(),
|
|
5486
|
+
params: joi10.any().optional()
|
|
5590
5487
|
}),
|
|
5591
|
-
service:
|
|
5592
|
-
type:
|
|
5488
|
+
service: joi10.string().required(),
|
|
5489
|
+
type: joi10.string().valid(...errorTypes)
|
|
5593
5490
|
};
|
|
5594
|
-
var createBody68 =
|
|
5491
|
+
var createBody68 = joi10.object().keys(createBodyKeys67).messages(messages);
|
|
5595
5492
|
|
|
5596
5493
|
// src/modules/supply/documentLineRM/interface.ts
|
|
5597
5494
|
var interface_exports57 = {};
|
|
@@ -5609,22 +5506,21 @@ var route_schema_exports105 = {};
|
|
|
5609
5506
|
__export(route_schema_exports105, {
|
|
5610
5507
|
updateBody: () => updateBody59
|
|
5611
5508
|
});
|
|
5612
|
-
import joi106 from "joi";
|
|
5613
5509
|
var updateKeys = {
|
|
5614
|
-
document_line_ids:
|
|
5615
|
-
rm_order_by:
|
|
5616
|
-
rm_order_date:
|
|
5617
|
-
rm_execution_by:
|
|
5618
|
-
rm_execution_date:
|
|
5619
|
-
rm_execution_when:
|
|
5620
|
-
rm_sent_by:
|
|
5621
|
-
rm_sent_date:
|
|
5622
|
-
rm_done_by:
|
|
5623
|
-
rm_done_date:
|
|
5624
|
-
rm_checked_by:
|
|
5625
|
-
rm_checked_date:
|
|
5626
|
-
};
|
|
5627
|
-
var updateBody59 =
|
|
5510
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
5511
|
+
rm_order_by: joi10.string().uuid().optional().allow(null),
|
|
5512
|
+
rm_order_date: joi10.date().optional().allow(null),
|
|
5513
|
+
rm_execution_by: joi10.string().uuid().optional().allow(null),
|
|
5514
|
+
rm_execution_date: joi10.date().optional().allow(null),
|
|
5515
|
+
rm_execution_when: joi10.date().optional().allow(null),
|
|
5516
|
+
rm_sent_by: joi10.string().uuid().optional().allow(null),
|
|
5517
|
+
rm_sent_date: joi10.date().optional().allow(null),
|
|
5518
|
+
rm_done_by: joi10.string().uuid().optional().allow(null),
|
|
5519
|
+
rm_done_date: joi10.date().optional().allow(null),
|
|
5520
|
+
rm_checked_by: joi10.string().uuid().optional().allow(null),
|
|
5521
|
+
rm_checked_date: joi10.date().optional().allow(null)
|
|
5522
|
+
};
|
|
5523
|
+
var updateBody59 = joi10.object().keys(updateKeys).messages(messages);
|
|
5628
5524
|
|
|
5629
5525
|
// src/modules/supply/documentLineMT/interface.ts
|
|
5630
5526
|
var interface_exports58 = {};
|
|
@@ -5642,16 +5538,15 @@ var route_schema_exports106 = {};
|
|
|
5642
5538
|
__export(route_schema_exports106, {
|
|
5643
5539
|
updateBody: () => updateBody60
|
|
5644
5540
|
});
|
|
5645
|
-
import joi107 from "joi";
|
|
5646
5541
|
var updateKeys2 = {
|
|
5647
|
-
document_line_ids:
|
|
5648
|
-
mt_order_by:
|
|
5649
|
-
mt_order_date:
|
|
5650
|
-
mt_execution_by:
|
|
5651
|
-
mt_execution_date:
|
|
5652
|
-
mt_execution_when:
|
|
5542
|
+
document_line_ids: joi10.array().items(joi10.string().uuid().required()).required(),
|
|
5543
|
+
mt_order_by: joi10.string().uuid().optional().allow(null),
|
|
5544
|
+
mt_order_date: joi10.date().optional().allow(null),
|
|
5545
|
+
mt_execution_by: joi10.string().uuid().optional().allow(null),
|
|
5546
|
+
mt_execution_date: joi10.date().optional().allow(null),
|
|
5547
|
+
mt_execution_when: joi10.date().optional().allow(null)
|
|
5653
5548
|
};
|
|
5654
|
-
var updateBody60 =
|
|
5549
|
+
var updateBody60 = joi10.object().keys(updateKeys2).messages(messages);
|
|
5655
5550
|
|
|
5656
5551
|
// src/modules/user/chatSubscribers/interfaces.ts
|
|
5657
5552
|
var interfaces_exports55 = {};
|
|
@@ -5669,16 +5564,14 @@ var route_schema_exports107 = {};
|
|
|
5669
5564
|
__export(route_schema_exports107, {
|
|
5670
5565
|
createOrUpdateBody: () => createOrUpdateBody2
|
|
5671
5566
|
});
|
|
5672
|
-
import joi108 from "joi";
|
|
5673
5567
|
var createOrUpdateBodyKeys2 = {
|
|
5674
|
-
owner_id:
|
|
5675
|
-
document_header_id:
|
|
5676
|
-
personas_ids:
|
|
5568
|
+
owner_id: joi10.string().uuid().required(),
|
|
5569
|
+
document_header_id: joi10.string().uuid().required(),
|
|
5570
|
+
personas_ids: joi10.array().items(joi10.string().optional()).required()
|
|
5677
5571
|
};
|
|
5678
|
-
var createOrUpdateBody2 =
|
|
5572
|
+
var createOrUpdateBody2 = joi10.object().keys(createOrUpdateBodyKeys2).messages(messages);
|
|
5679
5573
|
|
|
5680
5574
|
// src/index.ts
|
|
5681
5575
|
var index_default = main_exports;
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
};
|
|
5576
|
+
|
|
5577
|
+
export { index_default as default };
|