@nomalism-com/types 0.47.5 → 0.47.7
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 = {};
|
|
@@ -657,7 +653,6 @@ var EstadoEncomendaEnum = {
|
|
|
657
653
|
EsperaRececaoConsulta: "EsperaRececaoConsulta",
|
|
658
654
|
EsperaVendedorRetificarConsulta: "EsperaVendedorRetificarConsulta",
|
|
659
655
|
ClienteFoiPensar: "ClienteFoiPensar",
|
|
660
|
-
EsperaAtelier: "EsperaAtelier",
|
|
661
656
|
EsperaProducaoInterna: "EsperaProducaoInterna",
|
|
662
657
|
EsperaEstofador: "EsperaEstofador",
|
|
663
658
|
EsperaProdMont: "EsperaProdMont",
|
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 = {};
|
|
@@ -657,7 +653,6 @@ var EstadoEncomendaEnum = {
|
|
|
657
653
|
EsperaRececaoConsulta: "EsperaRececaoConsulta",
|
|
658
654
|
EsperaVendedorRetificarConsulta: "EsperaVendedorRetificarConsulta",
|
|
659
655
|
ClienteFoiPensar: "ClienteFoiPensar",
|
|
660
|
-
EsperaAtelier: "EsperaAtelier",
|
|
661
656
|
EsperaProducaoInterna: "EsperaProducaoInterna",
|
|
662
657
|
EsperaEstofador: "EsperaEstofador",
|
|
663
658
|
EsperaProdMont: "EsperaProdMont",
|
|
@@ -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 {
|
|
@@ -17,7 +17,6 @@ export declare const EstadoEncomendaEnum: {
|
|
|
17
17
|
readonly EsperaRececaoConsulta: "EsperaRececaoConsulta";
|
|
18
18
|
readonly EsperaVendedorRetificarConsulta: "EsperaVendedorRetificarConsulta";
|
|
19
19
|
readonly ClienteFoiPensar: "ClienteFoiPensar";
|
|
20
|
-
readonly EsperaAtelier: "EsperaAtelier";
|
|
21
20
|
readonly EsperaProducaoInterna: "EsperaProducaoInterna";
|
|
22
21
|
readonly EsperaEstofador: "EsperaEstofador";
|
|
23
22
|
readonly EsperaProdMont: "EsperaProdMont";
|
|
@@ -51,4 +50,4 @@ export declare const EstadoEncomendaEnum: {
|
|
|
51
50
|
readonly Adjudicado: "Adjudicado";
|
|
52
51
|
};
|
|
53
52
|
export type IEstadoEncomenda = (typeof EstadoEncomendaEnum)[keyof typeof EstadoEncomendaEnum];
|
|
54
|
-
export declare const estadoEncomendaValues: ("PorConfirmar" | "EsperaDefDetVendedor" | "EsperaInfoCliente" | "EsperaDevCatalogo" | "EsperaEnvioRMCA" | "EsperaEnvioRM" | "EsperaMarcacaoRM" | "EsperaFolhaRM" | "EsperaVendedorRetificarRM" | "EsperaConferenciaRM" | "EsperaOkClienteRM" | "EsperaConsultaStockCotacao" | "EsperaRececaoConsulta" | "EsperaVendedorRetificarConsulta" | "ClienteFoiPensar" | "
|
|
53
|
+
export declare const estadoEncomendaValues: ("PorConfirmar" | "EsperaDefDetVendedor" | "EsperaInfoCliente" | "EsperaDevCatalogo" | "EsperaEnvioRMCA" | "EsperaEnvioRM" | "EsperaMarcacaoRM" | "EsperaFolhaRM" | "EsperaVendedorRetificarRM" | "EsperaConferenciaRM" | "EsperaOkClienteRM" | "EsperaConsultaStockCotacao" | "EsperaRececaoConsulta" | "EsperaVendedorRetificarConsulta" | "ClienteFoiPensar" | "EsperaProducaoInterna" | "EsperaEstofador" | "EsperaProdMont" | "EsperaMontagem" | "EsperaCorteTecidos" | "EsperaFolhaProducao" | "EsperaConfeccaoTecidosCortados" | "EncomendarServico" | "EncomendarServicoCAnexos" | "EncomendarServicoSemNotificacao" | "EncomendarVA" | "EncomendarVACAnexos" | "EncomendarVASemNotificacao" | "EncomendarStock" | "CancelarEncomendar" | "StockEmLoja" | "Refaturar" | "DesligarDoSheets" | "FecharLinha" | "CancelarEncomenda" | "CancelarEncomendaMT" | "CancelarEncomendaRM" | "CancelarEncomendaVA" | "DesligarEncomenda" | "EncomendarMT" | "EncomendarRM" | "EsperaNomalism" | "EsperaOkClienteConsulta" | "EsperaResolucaoProblemas" | "Refaturado" | "Adjudicado")[];
|
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.7",
|
|
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
|
},
|