@orbe-agro/client-core 5.6.52 → 5.6.53
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/@types/base/@types/models/racao/carga.d.ts +7 -5
- package/dist/@types/base/@types/models/racao/carga.d.ts.map +1 -1
- package/dist/@types/base/services/modules/racao/carga/CargaService.d.ts +1 -1
- package/dist/@types/base/services/modules/racao/carga/CargaService.d.ts.map +1 -1
- package/dist/base/@types/models/racao/carga.js.map +1 -1
- package/dist/base/services/modules/racao/carga/CargaService.js +2 -2
- package/dist/base/services/modules/racao/carga/CargaService.js.map +1 -1
- package/lib/base/@types/models/racao/carga.ts +7 -5
- package/lib/base/services/modules/racao/carga/CargaService.ts +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,8 @@ export type TCargaColumnDef = {
|
|
|
8
8
|
usuarioCriacaoId: number;
|
|
9
9
|
usuarioCriacaoNome: string;
|
|
10
10
|
vendedorId: number;
|
|
11
|
-
|
|
11
|
+
vendedorBusinessPartner: string;
|
|
12
|
+
vendedorNomeCompleto: string;
|
|
12
13
|
centroId: number;
|
|
13
14
|
centroCodigo: string;
|
|
14
15
|
centroNome: string;
|
|
@@ -38,11 +39,12 @@ export type TOrdensCarga = {
|
|
|
38
39
|
id?: number;
|
|
39
40
|
pedidoVendaId: number;
|
|
40
41
|
documentoVenda: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
emissorId: number;
|
|
43
|
+
emissorBusinessPartner: string;
|
|
44
|
+
emissorNomeCompleto: string;
|
|
44
45
|
vendedorId: number;
|
|
45
|
-
|
|
46
|
+
vendedorBusinessPartner: string;
|
|
47
|
+
vendedorNomeCompleto: string;
|
|
46
48
|
pesoTotal: number;
|
|
47
49
|
valorFrete: number;
|
|
48
50
|
roteiro: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carga.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/racao/carga.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;CACxC;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,
|
|
1
|
+
{"version":3,"file":"carga.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/racao/carga.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;CACxC;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,iBAAiB,EAAE,MAAM,CAAA;CAC5B,CAAA"}
|
|
@@ -5,5 +5,5 @@ export declare function apiAddRacaoCarga(body: TCarga): Promise<TQueryResponse<T
|
|
|
5
5
|
export declare function apiUpdateRacaoCarga(body: TCarga): Promise<TQueryResponse<TCarga>>;
|
|
6
6
|
export declare function apiDeleteRacaoCarga(id: number): Promise<TQueryResponse<TCarga>>;
|
|
7
7
|
export declare function apiFindMonitorRacaoCarga(body?: IFilterParams): Promise<TQueryResponse<TCarga>>;
|
|
8
|
-
export declare function apiFindOrdensDisponiveisRacaoCarga(
|
|
8
|
+
export declare function apiFindOrdensDisponiveisRacaoCarga(vendedorId: number, centroId: number, incotermsId: number): Promise<TQueryResponse<TCarga>>;
|
|
9
9
|
//# sourceMappingURL=CargaService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CargaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/carga/CargaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAKzD,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,mBAKhD;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,mCAMlD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,mCAMrD;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,mCAKnD;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,mCAMlE;AAED,wBAAsB,kCAAkC,CAAC,
|
|
1
|
+
{"version":3,"file":"CargaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/carga/CargaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAKzD,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,mBAKhD;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,mCAMlD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,mCAMrD;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,mCAKnD;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,mCAMlE;AAED,wBAAsB,kCAAkC,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,mCAKjH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carga.js","sources":["../../../../../lib/base/@types/models/racao/carga.ts"],"sourcesContent":["export enum TipoCarga {\n ORDEM_VENDA = 'ORDEM_VENDA',\n TRANSFERENCIA_CD = 'TRANSFERENCIA_CD',\n}\n\nexport type TCargaColumnDef = {\n id: number\n dataCriacao: string\n usuarioCriacaoId: number\n usuarioCriacaoNome: string\n vendedorId: number\n
|
|
1
|
+
{"version":3,"file":"carga.js","sources":["../../../../../lib/base/@types/models/racao/carga.ts"],"sourcesContent":["export enum TipoCarga {\n ORDEM_VENDA = 'ORDEM_VENDA',\n TRANSFERENCIA_CD = 'TRANSFERENCIA_CD',\n}\n\nexport type TCargaColumnDef = {\n id: number\n dataCriacao: string\n usuarioCriacaoId: number\n usuarioCriacaoNome: string\n vendedorId: number\n vendedorBusinessPartner: string\n vendedorNomeCompleto: string\n centroId: number\n centroCodigo: string\n centroNome: string\n municipioId: number\n municipio: string\n municipioUf: string\n pesoTotal: number\n valorFreteTotal: number\n tipoCarga: string\n}\n\nexport type TCarga = {\n id?: number\n tipoVeiculoId: number\n vendedorId: number\n centroId: number\n tipoCarga: string\n incotermsId?: number\n chapa?: boolean\n municipioId: number\n capacidadeVeiculo: number\n pesoTotal: number\n valorFreteTotal?: number\n ordens?: TOrdensCarga[]\n produtos?: TProdutosCarga[]\n}\n\nexport type TOrdensCarga = {\n id?: number\n pedidoVendaId: number\n documentoVenda: string\n emissorId: number\n emissorBusinessPartner: string\n emissorNomeCompleto: string\n vendedorId: number\n vendedorBusinessPartner: string\n vendedorNomeCompleto: string\n pesoTotal: number\n valorFrete: number\n roteiro: string\n}\n\nexport type TProdutosCarga = {\n id?: number\n produtoId: number\n codigo: string\n descricao: string\n quantidade: number\n pesoTotal: number\n peso: number\n unidadeMedidaBase: string\n}"],"names":["TipoCarga"],"mappings":"AAAO,IAAK,8BAAAA,eAAL;AACHA,aAAA,aAAA,IAAc;AACdA,aAAA,kBAAA,IAAmB;AAFX,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;"}
|
|
@@ -34,9 +34,9 @@ async function apiFindMonitorRacaoCarga(body) {
|
|
|
34
34
|
data: body
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
async function apiFindOrdensDisponiveisRacaoCarga(
|
|
37
|
+
async function apiFindOrdensDisponiveisRacaoCarga(vendedorId, centroId, incotermsId) {
|
|
38
38
|
return ApiService.fetchDataWithAxios({
|
|
39
|
-
url: CARGA_ENDPOINT.findOrdensDisponiveis.endpoint + `${
|
|
39
|
+
url: CARGA_ENDPOINT.findOrdensDisponiveis.endpoint + `${vendedorId}/${centroId}/${incotermsId}`,
|
|
40
40
|
method: CARGA_ENDPOINT.findOrdensDisponiveis.method
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CargaService.js","sources":["../../../../../../lib/base/services/modules/racao/carga/CargaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TCarga } from \"@base/@types/models/racao/carga\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CARGA_ENDPOINT = endpointConfig.racao.carga;\n\nexport async function apiGetRacaoCarga(id: number) {\n return ApiService.fetchDataWithAxios<TCarga>({\n url: CARGA_ENDPOINT.findOne.endpoint + `${id}`,\n method: CARGA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoCarga(body: TCarga) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.add.endpoint,\n method: CARGA_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoCarga(body: TCarga) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.update.endpoint,\n method: CARGA_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoCarga(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.delete.endpoint + `${id}`,\n method: CARGA_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorRacaoCarga(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.findMonitor.endpoint,\n method: CARGA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiFindOrdensDisponiveisRacaoCarga(
|
|
1
|
+
{"version":3,"file":"CargaService.js","sources":["../../../../../../lib/base/services/modules/racao/carga/CargaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TCarga } from \"@base/@types/models/racao/carga\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CARGA_ENDPOINT = endpointConfig.racao.carga;\n\nexport async function apiGetRacaoCarga(id: number) {\n return ApiService.fetchDataWithAxios<TCarga>({\n url: CARGA_ENDPOINT.findOne.endpoint + `${id}`,\n method: CARGA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoCarga(body: TCarga) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.add.endpoint,\n method: CARGA_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoCarga(body: TCarga) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.update.endpoint,\n method: CARGA_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoCarga(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.delete.endpoint + `${id}`,\n method: CARGA_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorRacaoCarga(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.findMonitor.endpoint,\n method: CARGA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiFindOrdensDisponiveisRacaoCarga(vendedorId: number, centroId: number, incotermsId: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({\n url: CARGA_ENDPOINT.findOrdensDisponiveis.endpoint + `${vendedorId}/` + `${centroId}/` + `${incotermsId}`,\n method: CARGA_ENDPOINT.findOrdensDisponiveis.method,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,iBAAiBA,yBAAe,MAAM;AAE5C,eAAsB,iBAAiB,IAAY;AAC/C,SAAO,WAAW,mBAA2B;AAAA,IACzC,KAAK,eAAe,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC5C,QAAQ,eAAe,QAAQ;AAAA,EAAA,CAClC;AACL;AAEA,eAAsB,iBAAiB,MAAc;AACjD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,IAAI;AAAA,IACxB,QAAQ,eAAe,IAAI;AAAA,IAC3B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oBAAoB,MAAc;AACpD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,OAAO;AAAA,IAC3B,QAAQ,eAAe,OAAO;AAAA,IAC9B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,OAAO,WAAW,GAAG,EAAE;AAAA,IAC3C,QAAQ,eAAe,OAAO;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,yBAAyB,MAAsB;AACjE,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,YAAY;AAAA,IAChC,QAAQ,eAAe,YAAY;AAAA,IACnC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,mCAAmC,YAAoB,UAAkB,aAAqB;AAChH,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,sBAAsB,WAAW,GAAG,UAAU,IAAS,QAAQ,IAAS,WAAW;AAAA,IACvG,QAAQ,eAAe,sBAAsB;AAAA,EAAA,CAChD;AACL;"}
|
|
@@ -9,7 +9,8 @@ export type TCargaColumnDef = {
|
|
|
9
9
|
usuarioCriacaoId: number
|
|
10
10
|
usuarioCriacaoNome: string
|
|
11
11
|
vendedorId: number
|
|
12
|
-
|
|
12
|
+
vendedorBusinessPartner: string
|
|
13
|
+
vendedorNomeCompleto: string
|
|
13
14
|
centroId: number
|
|
14
15
|
centroCodigo: string
|
|
15
16
|
centroNome: string
|
|
@@ -41,11 +42,12 @@ export type TOrdensCarga = {
|
|
|
41
42
|
id?: number
|
|
42
43
|
pedidoVendaId: number
|
|
43
44
|
documentoVenda: string
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
emissorId: number
|
|
46
|
+
emissorBusinessPartner: string
|
|
47
|
+
emissorNomeCompleto: string
|
|
47
48
|
vendedorId: number
|
|
48
|
-
|
|
49
|
+
vendedorBusinessPartner: string
|
|
50
|
+
vendedorNomeCompleto: string
|
|
49
51
|
pesoTotal: number
|
|
50
52
|
valorFrete: number
|
|
51
53
|
roteiro: string
|
|
@@ -43,9 +43,9 @@ export async function apiFindMonitorRacaoCarga(body?: IFilterParams) {
|
|
|
43
43
|
})
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export async function apiFindOrdensDisponiveisRacaoCarga(
|
|
46
|
+
export async function apiFindOrdensDisponiveisRacaoCarga(vendedorId: number, centroId: number, incotermsId: number) {
|
|
47
47
|
return ApiService.fetchDataWithAxios<TQueryResponse<TCarga>>({
|
|
48
|
-
url: CARGA_ENDPOINT.findOrdensDisponiveis.endpoint + `${
|
|
48
|
+
url: CARGA_ENDPOINT.findOrdensDisponiveis.endpoint + `${vendedorId}/` + `${centroId}/` + `${incotermsId}`,
|
|
49
49
|
method: CARGA_ENDPOINT.findOrdensDisponiveis.method,
|
|
50
50
|
})
|
|
51
51
|
}
|