@nomalism-com/types 0.47.5 → 0.47.6
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.cjs
CHANGED
|
@@ -404,28 +404,24 @@ var messages = {
|
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
// src/modules/document/billOfLading/route.schema.ts
|
|
407
|
-
var
|
|
408
|
-
delivery_departure_street: joi.string().required(),
|
|
409
|
-
delivery_departure_locality: joi.string().required(),
|
|
410
|
-
delivery_departure_postal_code: joi.string().required(),
|
|
411
|
-
delivery_departure_country_id: joi.string().uuid().required(),
|
|
412
|
-
delivery_street: joi.string().required(),
|
|
413
|
-
delivery_locality: joi.string().required(),
|
|
414
|
-
delivery_postal_code: joi.string().required(),
|
|
415
|
-
delivery_country_id: joi.string().uuid().required()
|
|
416
|
-
};
|
|
417
|
-
var createBillOfLadingBodyKeys = {
|
|
407
|
+
var createBillOfLadingBody = joi.object().keys({
|
|
418
408
|
persona_id: joi.string().uuid().required(),
|
|
419
409
|
persona_name: joi.string().required(),
|
|
420
410
|
persona_nif: joi.string().required(),
|
|
421
411
|
document_type_id: joi.number().required(),
|
|
422
|
-
|
|
423
|
-
|
|
412
|
+
from_document_header_id: joi.string().required(),
|
|
413
|
+
delivery_addresses: joi.object().keys({
|
|
414
|
+
delivery_departure_street: joi.string().required(),
|
|
415
|
+
delivery_departure_locality: joi.string().required(),
|
|
416
|
+
delivery_departure_postal_code: joi.string().required(),
|
|
417
|
+
delivery_departure_country_id: joi.string().uuid().required(),
|
|
418
|
+
delivery_street: joi.string().required(),
|
|
419
|
+
delivery_locality: joi.string().required(),
|
|
420
|
+
delivery_postal_code: joi.string().required(),
|
|
421
|
+
delivery_country_id: joi.string().uuid().required()
|
|
424
422
|
}).required(),
|
|
425
|
-
document_line_ids: joi.array().unique().items(joi.string().uuid().required()).required()
|
|
426
|
-
|
|
427
|
-
};
|
|
428
|
-
var createBillOfLadingBody = joi.object().keys(createBillOfLadingBodyKeys).messages(messages);
|
|
423
|
+
document_line_ids: joi.array().unique().items(joi.string().uuid().required()).required()
|
|
424
|
+
}).messages(messages);
|
|
429
425
|
|
|
430
426
|
// src/modules/document/CAT/interfaces.ts
|
|
431
427
|
var interfaces_exports2 = {};
|
package/dist/index.js
CHANGED
|
@@ -404,28 +404,24 @@ var messages = {
|
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
// src/modules/document/billOfLading/route.schema.ts
|
|
407
|
-
var
|
|
408
|
-
delivery_departure_street: joi.string().required(),
|
|
409
|
-
delivery_departure_locality: joi.string().required(),
|
|
410
|
-
delivery_departure_postal_code: joi.string().required(),
|
|
411
|
-
delivery_departure_country_id: joi.string().uuid().required(),
|
|
412
|
-
delivery_street: joi.string().required(),
|
|
413
|
-
delivery_locality: joi.string().required(),
|
|
414
|
-
delivery_postal_code: joi.string().required(),
|
|
415
|
-
delivery_country_id: joi.string().uuid().required()
|
|
416
|
-
};
|
|
417
|
-
var createBillOfLadingBodyKeys = {
|
|
407
|
+
var createBillOfLadingBody = joi.object().keys({
|
|
418
408
|
persona_id: joi.string().uuid().required(),
|
|
419
409
|
persona_name: joi.string().required(),
|
|
420
410
|
persona_nif: joi.string().required(),
|
|
421
411
|
document_type_id: joi.number().required(),
|
|
422
|
-
|
|
423
|
-
|
|
412
|
+
from_document_header_id: joi.string().required(),
|
|
413
|
+
delivery_addresses: joi.object().keys({
|
|
414
|
+
delivery_departure_street: joi.string().required(),
|
|
415
|
+
delivery_departure_locality: joi.string().required(),
|
|
416
|
+
delivery_departure_postal_code: joi.string().required(),
|
|
417
|
+
delivery_departure_country_id: joi.string().uuid().required(),
|
|
418
|
+
delivery_street: joi.string().required(),
|
|
419
|
+
delivery_locality: joi.string().required(),
|
|
420
|
+
delivery_postal_code: joi.string().required(),
|
|
421
|
+
delivery_country_id: joi.string().uuid().required()
|
|
424
422
|
}).required(),
|
|
425
|
-
document_line_ids: joi.array().unique().items(joi.string().uuid().required()).required()
|
|
426
|
-
|
|
427
|
-
};
|
|
428
|
-
var createBillOfLadingBody = joi.object().keys(createBillOfLadingBodyKeys).messages(messages);
|
|
423
|
+
document_line_ids: joi.array().unique().items(joi.string().uuid().required()).required()
|
|
424
|
+
}).messages(messages);
|
|
429
425
|
|
|
430
426
|
// src/modules/document/CAT/interfaces.ts
|
|
431
427
|
var interfaces_exports2 = {};
|
|
@@ -14,9 +14,9 @@ export interface ICreateRequest {
|
|
|
14
14
|
persona_id: string;
|
|
15
15
|
persona_name: string;
|
|
16
16
|
persona_nif: string;
|
|
17
|
-
delivery_addresses: IDeliveryAddressRequest;
|
|
18
17
|
document_type_id: number;
|
|
19
18
|
from_document_header_id: string;
|
|
19
|
+
delivery_addresses: IDeliveryAddressRequest;
|
|
20
20
|
document_line_ids: string[];
|
|
21
21
|
}
|
|
22
22
|
export interface IRepository {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.47.
|
|
4
|
+
"version": "0.47.6",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"globals": "^17.7.0",
|
|
42
42
|
"husky": "^9.1.7",
|
|
43
43
|
"lint-staged": "^17.0.8",
|
|
44
|
-
"prettier": "^3.9.
|
|
44
|
+
"prettier": "^3.9.5",
|
|
45
45
|
"tsup": "^8.5.1",
|
|
46
46
|
"typescript-eslint": "^8.63.0"
|
|
47
47
|
},
|