@orbe-agro/client-core 5.3.98 → 5.3.99

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.
@@ -1,10 +1,7 @@
1
- export type TDescricoes = {
2
- id?: number;
3
- nDoMaterial: string;
4
- textoMaterial: string;
5
- };
6
1
  export type TMaterial = {
7
2
  id?: number;
8
- DescricaoMaterial: TDescricoes;
3
+ codigo: string;
4
+ descricao: string;
5
+ unidadesMedida: string[];
9
6
  };
10
7
  //# sourceMappingURL=material.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/material.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CAEzB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,WAAW,CAAC;CAClC,CAAA"}
1
+ {"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/material.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,EAAE,CAAA;CAC3B,CAAA"}
@@ -2,6 +2,6 @@ export type TMunicipio = {
2
2
  id?: number;
3
3
  uf: string;
4
4
  municipio: string;
5
- codigo?: string;
5
+ codigo: string;
6
6
  };
7
7
  //# sourceMappingURL=municipio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"municipio.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/municipio.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA"}
1
+ {"version":3,"file":"municipio.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/municipio.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA"}
@@ -1,5 +1,4 @@
1
- import { TCliente } from "../dm/businessPartner";
2
- import { TCarga } from "./carga";
1
+ import { TCliente, TBusinessPartner } from "../dm/businessPartner";
3
2
  import { TMaterial } from "./material";
4
3
  import { TMotorista } from "./motorista";
5
4
  import { TMunicipio } from "./municipio";
@@ -14,41 +13,58 @@ export type TDadosComplementaresOrdemCarregamento = {
14
13
  transportouEmpresa?: "SIM" | "NAO";
15
14
  quantidadeTempoTransportouParaAEmpresa?: string;
16
15
  };
17
- export type TFormCargaOrdemCarregamento = {
16
+ export type TCargaOrdemCarregamento = {
18
17
  peso: number;
19
18
  preco: number;
19
+ produtoId: number;
20
+ };
21
+ export type TContatoOrdemCarregamento = {
22
+ id?: number;
23
+ nome: string;
24
+ tipoContato: number;
25
+ tipoRetorno: number;
26
+ descricao: string;
20
27
  };
21
28
  export type TOrdemCarregamento = {
22
29
  id?: number | undefined;
23
- produto: TMaterial;
24
- empresa: TCliente;
25
- fornecedor: string;
26
- motorista: TMotorista;
27
- localCarregamento: Date;
28
- veiculos: TVeiculo[];
29
- formCidadeOrigem: TMunicipio;
30
+ status?: string;
31
+ dtCadastro?: Date;
32
+ veiculoIds: number[];
33
+ motoristaId: number;
34
+ proprietarioId: number;
30
35
  cidadeOrigem: string;
31
36
  ufOrigem: string;
32
- formCidadeDestino: TMunicipio;
33
37
  cidadeDestino: string;
34
38
  ufDestino: string;
35
- dtCarregamento: Date;
36
- observacao: string;
37
- moduloTransporte: string;
38
- consultaBuonny: string;
39
- consultaVerttice: string;
40
- viagemPedagioSolucaoId: string;
41
- viagemPedagioTagEmissorId: string;
42
- tipoCarga: string;
43
- formTipo: string;
39
+ consultaBuonny?: string;
40
+ consultaVerttice?: string;
41
+ laudoGuep?: string;
42
+ referenciaGuep?: string;
44
43
  tipoCargaBuonny: string;
45
- consultaBuonnyTipo: string;
46
- material: TMaterial;
47
- formCarga: TFormCargaOrdemCarregamento;
44
+ observacao?: string;
45
+ cargas: TCargaOrdemCarregamento[];
46
+ contatos?: TContatoOrdemCarregamento[];
48
47
  dadosComplementares?: TDadosComplementaresOrdemCarregamento;
49
- formNome: string;
50
- formDescricao: string;
51
- formTipoRetorno: string;
52
- cargas: TCarga[];
48
+ ticketId?: number;
49
+ ativo?: boolean;
50
+ produto?: TMaterial;
51
+ empresa?: TCliente;
52
+ proprietario?: TBusinessPartner;
53
+ motorista?: TMotorista;
54
+ localCarregamento?: string;
55
+ veiculos?: TVeiculo[] | undefined;
56
+ formCidadeOrigem?: TMunicipio;
57
+ formCidadeDestino?: TMunicipio;
58
+ dtCarregamento?: string;
59
+ moduloTransporte?: string;
60
+ viagemPedagioSolucaoId?: string;
61
+ viagemPedagioTagEmissorId?: string;
62
+ tipoCarga?: string;
63
+ formTipo?: number;
64
+ consultaBuonnyTipo?: string;
65
+ material?: string;
66
+ formNome?: string;
67
+ formDescricao?: string;
68
+ formTipoRetorno?: string;
53
69
  };
54
70
  //# sourceMappingURL=ordemCarregamento.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ordemCarregamento.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/ordemCarregamento.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,O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E,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yBAAyB,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,2BAA2B,CAAA;IACtC,mBAAmB,CAAC,EAAE,qCAAqC,CAAC;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAA"}
1
+ {"version":3,"file":"ordemCarregamento.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/ordemCarregamento.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,MAAM,qCAAqC,GAAG;IAChD,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC1C,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC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Q,CAAC;IACnB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAClC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAA"}
@@ -10,7 +10,7 @@ export type TVeiculo = {
10
10
  rntrc: string;
11
11
  situacao: string;
12
12
  proprietario?: TVeiculoProprietario;
13
- placa1?: string;
14
- placa2?: string;
13
+ placa1?: string | undefined;
14
+ placa2?: string | undefined;
15
15
  };
16
16
  //# sourceMappingURL=veiculo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"veiculo.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/veiculo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAA"}
1
+ {"version":3,"file":"veiculo.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/veiculo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAA"}
@@ -1,11 +1,6 @@
1
- export type TDescricoes = {
2
- id?: number,
3
- nDoMaterial: string,
4
- textoMaterial: string,
5
-
6
- }
7
-
8
1
  export type TMaterial = {
9
2
  id?: number,
10
- DescricaoMaterial: TDescricoes,
3
+ codigo: string,
4
+ descricao: string,
5
+ unidadesMedida: string[]
11
6
  }
@@ -2,5 +2,5 @@ export type TMunicipio = {
2
2
  id?: number,
3
3
  uf: string,
4
4
  municipio: string,
5
- codigo?: string,
5
+ codigo: string,
6
6
  }
@@ -1,4 +1,4 @@
1
- import { TCliente } from "../dm/businessPartner";
1
+ import { TCliente, TBusinessPartner } from "../dm/businessPartner";
2
2
  import { TCarga } from "./carga";
3
3
  import { TMaterial } from "./material";
4
4
  import { TMotorista } from "./motorista";
@@ -16,42 +16,64 @@ export type TDadosComplementaresOrdemCarregamento = {
16
16
  quantidadeTempoTransportouParaAEmpresa?: string,
17
17
  }
18
18
 
19
- export type TFormCargaOrdemCarregamento = {
19
+ export type TCargaOrdemCarregamento = {
20
20
  peso: number,
21
21
  preco: number,
22
+ produtoId: number,
23
+ }
24
+
25
+ export type TContatoOrdemCarregamento = {
26
+ id?: number,
27
+ nome: string,
28
+ tipoContato: number,
29
+ tipoRetorno: number,
30
+ descricao: string
22
31
  }
23
32
 
24
33
  export type TOrdemCarregamento = {
25
34
  id?: number | undefined,
26
- produto: TMaterial,
27
- empresa: TCliente,
28
- fornecedor: string,
29
- motorista: TMotorista,
30
- localCarregamento: Date,
31
- veiculos: TVeiculo[],
32
- formCidadeOrigem: TMunicipio,
35
+ status?: string,
36
+ dtCadastro?: Date,
37
+ veiculoIds: number[],
38
+ motoristaId: number,
39
+ proprietarioId: number,
40
+ // Campos de localização
33
41
  cidadeOrigem: string,
34
42
  ufOrigem: string,
35
- formCidadeDestino: TMunicipio,
36
43
  cidadeDestino: string,
37
44
  ufDestino: string,
38
- dtCarregamento: Date,
39
- observacao: string,
40
- moduloTransporte: string,
41
- consultaBuonny: string,
42
- consultaVerttice: string,
43
- viagemPedagioSolucaoId: string,
44
- viagemPedagioTagEmissorId: string,
45
- tipoCarga: string,
46
- formTipo: string,
45
+ // Campos de consulta
46
+ consultaBuonny?: string,
47
+ consultaVerttice?: string,
48
+ laudoGuep?: string,
49
+ referenciaGuep?: string,
50
+ // Dados complementares
47
51
  tipoCargaBuonny: string,
48
- consultaBuonnyTipo: string,
49
- material: TMaterial,
50
- formCarga: TFormCargaOrdemCarregamento
52
+ observacao?: string,
53
+ cargas: TCargaOrdemCarregamento[],
54
+ contatos?: TContatoOrdemCarregamento[],
51
55
  dadosComplementares?: TDadosComplementaresOrdemCarregamento,
52
- formNome: string,
53
- formDescricao: string,
54
- formTipoRetorno: string,
55
- cargas: TCarga[],
56
+ ticketId?: number,
57
+ ativo?: boolean,
58
+ // Campos do formulário (mantidos para compatibilidade com o form)
59
+ produto?: TMaterial,
60
+ empresa?: TCliente,
61
+ proprietario?: TBusinessPartner,
62
+ motorista?: TMotorista,
63
+ localCarregamento?: string,
64
+ veiculos?: TVeiculo[] | undefined,
65
+ formCidadeOrigem?: TMunicipio,
66
+ formCidadeDestino?: TMunicipio,
67
+ dtCarregamento?: string,
68
+ moduloTransporte?: string,
69
+ viagemPedagioSolucaoId?: string,
70
+ viagemPedagioTagEmissorId?: string,
71
+ tipoCarga?: string,
72
+ formTipo?: number,
73
+ consultaBuonnyTipo?: string,
74
+ material?: string,
75
+ formNome?: string,
76
+ formDescricao?: string,
77
+ formTipoRetorno?: string,
56
78
  }
57
79
 
@@ -11,7 +11,7 @@ export type TVeiculo = {
11
11
  rntrc: string,
12
12
  situacao: string,
13
13
  proprietario?: TVeiculoProprietario,
14
- placa1?: string,
15
- placa2?: string,
14
+ placa1?: string | undefined,
15
+ placa2?: string | undefined,
16
16
  }
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.98",
3
+ "version": "5.3.99",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",