@nomalism-com/types 0.40.114 → 0.40.115
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.
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ConferirEncomenda } from '../../../shared/entities/stock';
|
|
2
|
+
import * as IShared from '../../../shared/interface';
|
|
3
|
+
export declare const Route = "conferir_encomenda";
|
|
4
|
+
export declare const UpperName = "ConferirEncomenda";
|
|
5
|
+
export declare const LowerName: string;
|
|
6
|
+
export type Entity = ConferirEncomenda;
|
|
7
|
+
export declare const EstadoEncomendaEnum: {
|
|
8
|
+
readonly PorConfirmar: "PorConfirmar";
|
|
9
|
+
readonly EsperaDefDetVendedor: "EsperaDefDetVendedor";
|
|
10
|
+
readonly EsperaInfoCliente: "EsperaInfoCliente";
|
|
11
|
+
readonly EsperaDevCatalogo: "EsperaDevCatalogo";
|
|
12
|
+
readonly EsperaEnvioRMCA: "EsperaEnvioRMCA";
|
|
13
|
+
readonly EsperaEnvioRM: "EsperaEnvioRM";
|
|
14
|
+
readonly EsperaMarcacaoRM: "EsperaMarcacaoRM";
|
|
15
|
+
readonly EsperaFolhaRM: "EsperaFolhaRM";
|
|
16
|
+
readonly EsperaVendedorRetificarRM: "EsperaVendedorRetificarRM";
|
|
17
|
+
readonly EsperaConferenciaRM: "EsperaConferenciaRM";
|
|
18
|
+
readonly EsperaOkClienteRM: "EsperaOkClienteRM";
|
|
19
|
+
readonly EsperaConsultaStockCotacao: "EsperaConsultaStockCotacao";
|
|
20
|
+
readonly EsperaRececaoConsulta: "EsperaRececaoConsulta";
|
|
21
|
+
readonly EsperaVendedorRetificarConsulta: "EsperaVendedorRetificarConsulta";
|
|
22
|
+
readonly ClienteFoiPensar: "ClienteFoiPensar";
|
|
23
|
+
readonly EsperaAtelier: "EsperaAtelier";
|
|
24
|
+
readonly EsperaProducaoInterna: "EsperaProducaoInterna";
|
|
25
|
+
readonly EsperaEstofador: "EsperaEstofador";
|
|
26
|
+
readonly EsperaProdMont: "EsperaProdMont";
|
|
27
|
+
readonly EsperaMontagem: "EsperaMontagem";
|
|
28
|
+
readonly EsperaCorteTecidos: "EsperaCorteTecidos";
|
|
29
|
+
readonly EsperaConfeccaoTecidosCortados: "EsperaConfeccaoTecidosCortados";
|
|
30
|
+
readonly EncomendarServico: "EncomendarServico";
|
|
31
|
+
readonly EncomendarServicoCAnexos: "EncomendarServicoCAnexos";
|
|
32
|
+
readonly EncomendarServicoSemNotificacao: "EncomendarServicoSemNotificacao";
|
|
33
|
+
readonly EncomendarVA: "EncomendarVA";
|
|
34
|
+
readonly EncomendarVACAnexos: "EncomendarVACAnexos";
|
|
35
|
+
readonly EncomendarVASemNotificacao: "EncomendarVASemNotificacao";
|
|
36
|
+
readonly EncomendarStock: "EncomendarStock";
|
|
37
|
+
readonly CancelarEncomendar: "CancelarEncomendar";
|
|
38
|
+
readonly StockEmLoja: "StockEmLoja";
|
|
39
|
+
readonly Refaturar: "Refaturar";
|
|
40
|
+
readonly DesligarDoSheets: "DesligarDoSheets";
|
|
41
|
+
readonly FecharLinha: "FecharLinha";
|
|
42
|
+
};
|
|
43
|
+
export type IEstadoEncomenda = (typeof EstadoEncomendaEnum)[keyof typeof EstadoEncomendaEnum];
|
|
44
|
+
export declare const estadoEncomendaKeys: string[];
|
|
45
|
+
export declare const estadoEncomendaValues: ("PorConfirmar" | "EsperaDefDetVendedor" | "EsperaInfoCliente" | "EsperaDevCatalogo" | "EsperaEnvioRMCA" | "EsperaEnvioRM" | "EsperaMarcacaoRM" | "EsperaFolhaRM" | "EsperaVendedorRetificarRM" | "EsperaConferenciaRM" | "EsperaOkClienteRM" | "EsperaConsultaStockCotacao" | "EsperaRececaoConsulta" | "EsperaVendedorRetificarConsulta" | "ClienteFoiPensar" | "EsperaAtelier" | "EsperaProducaoInterna" | "EsperaEstofador" | "EsperaProdMont" | "EsperaMontagem" | "EsperaCorteTecidos" | "EsperaConfeccaoTecidosCortados" | "EncomendarServico" | "EncomendarServicoCAnexos" | "EncomendarServicoSemNotificacao" | "EncomendarVA" | "EncomendarVACAnexos" | "EncomendarVASemNotificacao" | "EncomendarStock" | "CancelarEncomendar" | "StockEmLoja" | "Refaturar" | "DesligarDoSheets" | "FecharLinha")[];
|
|
46
|
+
export type ICreateRequest = Omit<Entity, 'id' | 'created_at' | 'updated_at'>;
|
|
47
|
+
export type IUpdateRequest = Partial<Entity | 'created_at' | 'updated_at'>;
|
|
48
|
+
export interface IRepository {
|
|
49
|
+
create(data: ICreateRequest): Promise<string>;
|
|
50
|
+
update(params: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
51
|
+
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
52
|
+
findAllByDocumentLineId(selector: IShared.IFindByIdRequest): Promise<Entity[]>;
|
|
53
|
+
}
|
|
54
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -12,6 +12,7 @@ import { IProductSheetState } from '../../modules/stock/productGoogleSheets/inte
|
|
|
12
12
|
import { ITaskStatusDataType } from '../../modules/stock/task/interface';
|
|
13
13
|
import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
|
|
14
14
|
import type { ProjectInfo } from './integration';
|
|
15
|
+
import { IEstadoEncomenda } from '../../modules/stock/conferirEncomenda/interface';
|
|
15
16
|
/**
|
|
16
17
|
* Model AccountCode
|
|
17
18
|
*
|
|
@@ -1051,3 +1052,17 @@ export type GoogleSheetPool = {
|
|
|
1051
1052
|
id: string;
|
|
1052
1053
|
sheet_id: string;
|
|
1053
1054
|
};
|
|
1055
|
+
/**
|
|
1056
|
+
* Model ConferirEncomenda
|
|
1057
|
+
*
|
|
1058
|
+
*/
|
|
1059
|
+
export type ConferirEncomenda = {
|
|
1060
|
+
id: string | null;
|
|
1061
|
+
document_line_id: string | null;
|
|
1062
|
+
data: unknown | null;
|
|
1063
|
+
estado: IEstadoEncomenda | null;
|
|
1064
|
+
created_at: Date | null;
|
|
1065
|
+
updated_at: Date | null;
|
|
1066
|
+
created_by: string | null;
|
|
1067
|
+
updated_by: string | null;
|
|
1068
|
+
};
|
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.40.
|
|
4
|
+
"version": "0.40.115",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|