@orbe-agro/client-core-prod 5.5.59 → 5.5.62
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/api/response/originacao/TSaldoContratoResponse.d.ts +2 -0
- package/dist/@types/base/@types/api/response/originacao/TSaldoContratoResponse.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/transportadora/contratoFrete.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/transportadora/contratoFrete.d.ts.map +1 -1
- package/dist/@types/base/services/modules/Ticket/Automacao/BalancaService.d.ts +1 -1
- package/dist/@types/base/services/modules/Ticket/Automacao/BalancaService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts +1 -0
- package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/transportadora/contratoFrete.js +2 -1
- package/dist/base/configs/endpoints.config/transportadora/contratoFrete.js.map +1 -1
- package/dist/base/index.js +2 -1
- package/dist/base/services/index.js +2 -1
- package/dist/base/services/modules/Ticket/Automacao/BalancaService.js +2 -2
- package/dist/base/services/modules/Ticket/Automacao/BalancaService.js.map +1 -1
- package/dist/base/services/modules/index.js +2 -1
- package/dist/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.js +7 -0
- package/dist/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.js.map +1 -1
- package/dist/base/services/modules/transportadora/index.js +2 -1
- package/lib/base/@types/api/response/originacao/TSaldoContratoResponse.ts +3 -1
- package/lib/base/configs/endpoints.config/transportadora/contratoFrete.ts +1 -0
- package/lib/base/services/modules/Ticket/Automacao/BalancaService.ts +2 -2
- package/lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts +7 -0
- package/package.json +1 -1
|
@@ -9,5 +9,7 @@ export type TSaldoContratoResponse = {
|
|
|
9
9
|
saldoFaturado: TSaldoFaturadoResponse;
|
|
10
10
|
saldoFob: TSaldoFobResponse;
|
|
11
11
|
saldosPorTransgenia: TSaldoPorTransgeniaResponse[];
|
|
12
|
+
saldoFaturadoComFundeinfra: TSaldoFaturadoResponse;
|
|
13
|
+
saldoFobComFundeinfra: TSaldoFobResponse;
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=TSaldoContratoResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSaldoContratoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSaldoContratoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"TSaldoContratoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSaldoContratoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;IACnD,0BAA0B,EAAE,sBAAsB,CAAC;IACnD,qBAAqB,EAAE,iBAAiB,CAAA;CACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAoDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAoDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoFrete.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/transportadora/contratoFrete.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"contratoFrete.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/transportadora/contratoFrete.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAelB,CAAA;AACD,eAAe,aAAa,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function apiGetByCentro(centro: any): Promise<unknown>;
|
|
1
|
+
export declare function apiGetByCentro(centro: any, deposito: any): Promise<unknown>;
|
|
2
2
|
//# sourceMappingURL=BalancaService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalancaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/Ticket/Automacao/BalancaService.ts"],"names":[],"mappings":"AAGA,wBAAsB,cAAc,CAAC,MAAM,KAAA,
|
|
1
|
+
{"version":3,"file":"BalancaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/Ticket/Automacao/BalancaService.ts"],"names":[],"mappings":"AAGA,wBAAsB,cAAc,CAAC,MAAM,KAAA,EAAE,QAAQ,KAAA,oBAKpD"}
|
package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export declare function apiRoteirizar(body: any): Promise<unknown>;
|
|
|
18
18
|
export declare function apiFindControleEmbarque(payload: Record<string, unknown>): Promise<TQueryResponse<TControleEmbarque>>;
|
|
19
19
|
export declare function apiVerificaContratoFreteByOrdemCarregamentoId(ordemCarregamentoId: string): Promise<boolean>;
|
|
20
20
|
export declare function apiGerarArquivoContratoFrete(id: string | number): Promise<TContratoFrete>;
|
|
21
|
+
export declare function apiEnviarSapContratoFrete(viagemId: string | number): Promise<any>;
|
|
21
22
|
//# sourceMappingURL=ContratoFreteService.d.ts.map
|
package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContratoFreteService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,+DAA+D,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,wEAAwE,CAAC;AACvH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAIxF,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,2BAKnD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,2CAM7D;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,cAAc,2CAMhE;AAED,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,aAAa,2CAMjE;AAED,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,2BAA2B,EAAE,2BAMtH;AAED,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,gDAK1D;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,wBAAwB,kDAM1E;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,2BAA2B,0CAMlF;AAED,wBAAsB,aAAa,CAAC,IAAI,KAAA,oBAMvC;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,8CAM7E;AAED,wBAAsB,6CAA6C,CAAC,mBAAmB,EAAE,MAAM,oBAK9F;AAED,wBAAsB,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,2BAKrE"}
|
|
1
|
+
{"version":3,"file":"ContratoFreteService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,+DAA+D,CAAC;AAC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point: `${CONTRATO_FRETE_URL}/controle-embarque`, method: "post" },
|
|
14
14
|
findByOrdemCarregamentoId: { endpoint: `${CONTRATO_FRETE_URL}/find-ordem-carregamento/`, method: "get" },
|
|
15
|
-
gerarArquivo: { endpoint: `${CONTRATO_FRETE_URL}/gerar-arquivo/`, method: "get" }
|
|
15
|
+
gerarArquivo: { endpoint: `${CONTRATO_FRETE_URL}/gerar-arquivo/`, method: "get" },
|
|
16
|
+
enviarSap: { endpoint: `${CONTRATO_FRETE_URL}/enviar-sap/`, method: "get" }
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
19
|
contratoFrete as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoFrete.js","sources":["../../../../../lib/base/configs/endpoints.config/transportadora/contratoFrete.ts"],"sourcesContent":["const CONTRATO_FRETE_URL = '/transportadora/api/contrato-frete-pamcard'\n\nconst contratoFrete = {\n findOne: {endpoint: `${CONTRATO_FRETE_URL}/`, method: 'get'},\n add: {endpoint: `${CONTRATO_FRETE_URL}`, method: 'post'},\n update: {endpoint: `${CONTRATO_FRETE_URL}`, method: 'put'},\n delete: {endpoint: `${CONTRATO_FRETE_URL}/`, method: 'delete'},\n findAll: {endpoint: `${CONTRATO_FRETE_URL}/find-monitor`, method: 'post'},\n updateStatusParcela: {endpoint: `${CONTRATO_FRETE_URL}/update/status-parcela/`, method: 'put'},\n findValorBrutoContrato: {endpoint: `${CONTRATO_FRETE_URL}/find/valor-bruto/`, method: 'get'},\n findCalculoFrete: {endpoint: `${CONTRATO_FRETE_URL}/find-calculo-frete`, method: 'post'},\n findContratoPorDocumento: {endpoint: `${CONTRATO_FRETE_URL}/contrato-por-documento`, method: 'post'},\n roteirizar: {endpoint: `${CONTRATO_FRETE_URL}/roteirizar`, method: 'post'},\n controleEmbarque: {endpoint: `${CONTRATO_FRETE_URL}/controle-embarque`, method: 'post'},\n findByOrdemCarregamentoId: {endpoint: `${CONTRATO_FRETE_URL}/find-ordem-carregamento/`, method: 'get'},\n gerarArquivo: {endpoint: `${CONTRATO_FRETE_URL}/gerar-arquivo/`, method: 'get'},\n}\nexport default contratoFrete\n\n"],"names":[],"mappings":"AAAA,MAAM,qBAAqB;AAE3B,MAAM,gBAAgB;AAAA,EAClB,SAAS,EAAC,UAAU,GAAG,kBAAkB,KAAK,QAAQ,MAAA;AAAA,EACtD,KAAK,EAAC,UAAU,GAAG,kBAAkB,IAAI,QAAQ,OAAA;AAAA,EACjD,QAAQ,EAAC,UAAU,GAAG,kBAAkB,IAAI,QAAQ,MAAA;AAAA,EACpD,QAAQ,EAAC,UAAU,GAAG,kBAAkB,KAAK,QAAQ,SAAA;AAAA,EACrD,SAAS,EAAC,UAAU,GAAG,kBAAkB,iBAAiB,QAAQ,OAAA;AAAA,EAClE,qBAAqB,EAAC,UAAU,GAAG,kBAAkB,2BAA2B,QAAQ,MAAA;AAAA,EACxF,wBAAwB,EAAC,UAAU,GAAG,kBAAkB,sBAAsB,QAAQ,MAAA;AAAA,EACtF,kBAAkB,EAAC,UAAU,GAAG,kBAAkB,uBAAuB,QAAQ,OAAA;AAAA,EACjF,0BAA0B,EAAC,UAAU,GAAG,kBAAkB,2BAA2B,QAAQ,OAAA;AAAA,EAC7F,YAAY,EAAC,UAAU,GAAG,kBAAkB,eAAe,QAAQ,OAAA;AAAA,EACnE,kBAAkB,EAAC,UAAU,GAAG,kBAAkB,sBAAsB,QAAQ,OAAA;AAAA,EAChF,2BAA2B,EAAC,UAAU,GAAG,kBAAkB,6BAA6B,QAAQ,MAAA;AAAA,EAChG,cAAc,EAAC,UAAU,GAAG,kBAAkB,mBAAmB,QAAQ,MAAA;
|
|
1
|
+
{"version":3,"file":"contratoFrete.js","sources":["../../../../../lib/base/configs/endpoints.config/transportadora/contratoFrete.ts"],"sourcesContent":["const CONTRATO_FRETE_URL = '/transportadora/api/contrato-frete-pamcard'\n\nconst contratoFrete = {\n findOne: {endpoint: `${CONTRATO_FRETE_URL}/`, method: 'get'},\n add: {endpoint: `${CONTRATO_FRETE_URL}`, method: 'post'},\n update: {endpoint: `${CONTRATO_FRETE_URL}`, method: 'put'},\n delete: {endpoint: `${CONTRATO_FRETE_URL}/`, method: 'delete'},\n findAll: {endpoint: `${CONTRATO_FRETE_URL}/find-monitor`, method: 'post'},\n updateStatusParcela: {endpoint: `${CONTRATO_FRETE_URL}/update/status-parcela/`, method: 'put'},\n findValorBrutoContrato: {endpoint: `${CONTRATO_FRETE_URL}/find/valor-bruto/`, method: 'get'},\n findCalculoFrete: {endpoint: `${CONTRATO_FRETE_URL}/find-calculo-frete`, method: 'post'},\n findContratoPorDocumento: {endpoint: `${CONTRATO_FRETE_URL}/contrato-por-documento`, method: 'post'},\n roteirizar: {endpoint: `${CONTRATO_FRETE_URL}/roteirizar`, method: 'post'},\n controleEmbarque: {endpoint: `${CONTRATO_FRETE_URL}/controle-embarque`, method: 'post'},\n findByOrdemCarregamentoId: {endpoint: `${CONTRATO_FRETE_URL}/find-ordem-carregamento/`, method: 'get'},\n gerarArquivo: {endpoint: `${CONTRATO_FRETE_URL}/gerar-arquivo/`, method: 'get'},\n enviarSap: {endpoint: `${CONTRATO_FRETE_URL}/enviar-sap/`, method: 'get'},\n}\nexport default contratoFrete\n\n"],"names":[],"mappings":"AAAA,MAAM,qBAAqB;AAE3B,MAAM,gBAAgB;AAAA,EAClB,SAAS,EAAC,UAAU,GAAG,kBAAkB,KAAK,QAAQ,MAAA;AAAA,EACtD,KAAK,EAAC,UAAU,GAAG,kBAAkB,IAAI,QAAQ,OAAA;AAAA,EACjD,QAAQ,EAAC,UAAU,GAAG,kBAAkB,IAAI,QAAQ,MAAA;AAAA,EACpD,QAAQ,EAAC,UAAU,GAAG,kBAAkB,KAAK,QAAQ,SAAA;AAAA,EACrD,SAAS,EAAC,UAAU,GAAG,kBAAkB,iBAAiB,QAAQ,OAAA;AAAA,EAClE,qBAAqB,EAAC,UAAU,GAAG,kBAAkB,2BAA2B,QAAQ,MAAA;AAAA,EACxF,wBAAwB,EAAC,UAAU,GAAG,kBAAkB,sBAAsB,QAAQ,MAAA;AAAA,EACtF,kBAAkB,EAAC,UAAU,GAAG,kBAAkB,uBAAuB,QAAQ,OAAA;AAAA,EACjF,0BAA0B,EAAC,UAAU,GAAG,kBAAkB,2BAA2B,QAAQ,OAAA;AAAA,EAC7F,YAAY,EAAC,UAAU,GAAG,kBAAkB,eAAe,QAAQ,OAAA;AAAA,EACnE,kBAAkB,EAAC,UAAU,GAAG,kBAAkB,sBAAsB,QAAQ,OAAA;AAAA,EAChF,2BAA2B,EAAC,UAAU,GAAG,kBAAkB,6BAA6B,QAAQ,MAAA;AAAA,EAChG,cAAc,EAAC,UAAU,GAAG,kBAAkB,mBAAmB,QAAQ,MAAA;AAAA,EACzE,WAAW,EAAC,UAAU,GAAG,kBAAkB,gBAAgB,QAAQ,MAAA;AACvE;"}
|
package/dist/base/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { apiAddCest, apiFindAllCest, apiGetCest, apiUpdateCest } from "./service
|
|
|
19
19
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
20
20
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./services/modules/commodities/pedidoVenda/PedidoVendaService.js";
|
|
21
21
|
import { apiAddConta, apiFindConta } from "./services/modules/transportadora/Conta/ContaService.js";
|
|
22
|
-
import { apiAddContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./services/modules/transportadora/ContratoFrete/ContratoFreteService.js";
|
|
22
|
+
import { apiAddContratoFrete, apiEnviarSapContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./services/modules/transportadora/ContratoFrete/ContratoFreteService.js";
|
|
23
23
|
import { apiAddControleDescarga, apiFindAllControleDescarga, apiGetCodigoControleDescarga, apiGetControleDescarga, apiUpdateControleDescarga } from "./services/modules/transportadora/ControleDescarga/ControleDescargaService.js";
|
|
24
24
|
import { apiAddFavorecido, apiFindAllFavorecido, apiFindFavorecidoByTipoBusca } from "./services/modules/transportadora/Favorecido/FavorecidoService.js";
|
|
25
25
|
import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioAprovacao, apiUpdateHorarioAprovacao } from "./services/modules/originacao/adm/horarioAprovacao/HorarioAprovacaoService.js";
|
|
@@ -356,6 +356,7 @@ export {
|
|
|
356
356
|
apiEditPreContrato,
|
|
357
357
|
apiEnviarEntregaBayer,
|
|
358
358
|
apiEnviarEntregaBayerLote,
|
|
359
|
+
apiEnviarSapContratoFrete,
|
|
359
360
|
apiExecuteAcao,
|
|
360
361
|
apiExecuteAcaoCotacao,
|
|
361
362
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
@@ -19,7 +19,7 @@ import { apiAddCest, apiFindAllCest, apiGetCest, apiUpdateCest } from "./modules
|
|
|
19
19
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
20
20
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./modules/commodities/pedidoVenda/PedidoVendaService.js";
|
|
21
21
|
import { apiAddConta, apiFindConta } from "./modules/transportadora/Conta/ContaService.js";
|
|
22
|
-
import { apiAddContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./modules/transportadora/ContratoFrete/ContratoFreteService.js";
|
|
22
|
+
import { apiAddContratoFrete, apiEnviarSapContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./modules/transportadora/ContratoFrete/ContratoFreteService.js";
|
|
23
23
|
import { apiAddControleDescarga, apiFindAllControleDescarga, apiGetCodigoControleDescarga, apiGetControleDescarga, apiUpdateControleDescarga } from "./modules/transportadora/ControleDescarga/ControleDescargaService.js";
|
|
24
24
|
import { apiAddFavorecido, apiFindAllFavorecido, apiFindFavorecidoByTipoBusca } from "./modules/transportadora/Favorecido/FavorecidoService.js";
|
|
25
25
|
import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioAprovacao, apiUpdateHorarioAprovacao } from "./modules/originacao/adm/horarioAprovacao/HorarioAprovacaoService.js";
|
|
@@ -248,6 +248,7 @@ export {
|
|
|
248
248
|
apiEditPreContrato,
|
|
249
249
|
apiEnviarEntregaBayer,
|
|
250
250
|
apiEnviarEntregaBayerLote,
|
|
251
|
+
apiEnviarSapContratoFrete,
|
|
251
252
|
apiExecuteAcao,
|
|
252
253
|
apiExecuteAcaoCotacao,
|
|
253
254
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import balancaEndpointConfig from "../../../../configs/endpoints.config/Ticket/Automacao/balanca.endpoint.config.js";
|
|
2
2
|
import ApiService from "../../../../../@ecme/services/ApiService.js";
|
|
3
|
-
async function apiGetByCentro(centro) {
|
|
3
|
+
async function apiGetByCentro(centro, deposito) {
|
|
4
4
|
return ApiService.fetchDataWithAxios({
|
|
5
|
-
url: balancaEndpointConfig.getByCentro + centro
|
|
5
|
+
url: balancaEndpointConfig.getByCentro + `${centro}/${deposito}`,
|
|
6
6
|
method: "get"
|
|
7
7
|
});
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalancaService.js","sources":["../../../../../../lib/base/services/modules/Ticket/Automacao/BalancaService.ts"],"sourcesContent":["import balancaEndpointConfig from '@base/configs/endpoints.config/Ticket/Automacao/balanca.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetByCentro(centro) {\n return ApiService.fetchDataWithAxios({\n url: balancaEndpointConfig.getByCentro + centro
|
|
1
|
+
{"version":3,"file":"BalancaService.js","sources":["../../../../../../lib/base/services/modules/Ticket/Automacao/BalancaService.ts"],"sourcesContent":["import balancaEndpointConfig from '@base/configs/endpoints.config/Ticket/Automacao/balanca.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetByCentro(centro, deposito) {\n return ApiService.fetchDataWithAxios({\n url: balancaEndpointConfig.getByCentro + `${centro}/${deposito}`,\n method: 'get',\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,eAAe,QAAQ,UAAU;AACnD,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,sBAAsB,cAAc,GAAG,MAAM,IAAI,QAAQ;AAAA,IAC9D,QAAQ;AAAA,EAAA,CACX;AACL;"}
|
|
@@ -17,7 +17,7 @@ import { apiAddCest, apiFindAllCest, apiGetCest, apiUpdateCest } from "./transpo
|
|
|
17
17
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
18
18
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./commodities/pedidoVenda/PedidoVendaService.js";
|
|
19
19
|
import { apiAddConta, apiFindConta } from "./transportadora/Conta/ContaService.js";
|
|
20
|
-
import { apiAddContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./transportadora/ContratoFrete/ContratoFreteService.js";
|
|
20
|
+
import { apiAddContratoFrete, apiEnviarSapContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./transportadora/ContratoFrete/ContratoFreteService.js";
|
|
21
21
|
import { apiAddControleDescarga, apiFindAllControleDescarga, apiGetCodigoControleDescarga, apiGetControleDescarga, apiUpdateControleDescarga } from "./transportadora/ControleDescarga/ControleDescargaService.js";
|
|
22
22
|
import { apiAddFavorecido, apiFindAllFavorecido, apiFindFavorecidoByTipoBusca } from "./transportadora/Favorecido/FavorecidoService.js";
|
|
23
23
|
import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioAprovacao, apiUpdateHorarioAprovacao } from "./originacao/adm/horarioAprovacao/HorarioAprovacaoService.js";
|
|
@@ -227,6 +227,7 @@ export {
|
|
|
227
227
|
apiDownloadCertificadoTransportadora,
|
|
228
228
|
apiEditContratoCompraGraos,
|
|
229
229
|
apiEditPreContrato,
|
|
230
|
+
apiEnviarSapContratoFrete,
|
|
230
231
|
apiExecuteAcao,
|
|
231
232
|
apiExecuteAcaoCotacao,
|
|
232
233
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
@@ -81,8 +81,15 @@ async function apiGerarArquivoContratoFrete(id) {
|
|
|
81
81
|
method: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.method
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
+
async function apiEnviarSapContratoFrete(viagemId) {
|
|
85
|
+
return ApiService.fetchDataWithAxios({
|
|
86
|
+
url: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.endpoint + viagemId,
|
|
87
|
+
method: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.method
|
|
88
|
+
});
|
|
89
|
+
}
|
|
84
90
|
export {
|
|
85
91
|
apiAddContratoFrete,
|
|
92
|
+
apiEnviarSapContratoFrete,
|
|
86
93
|
apiFindAllContratoFrete,
|
|
87
94
|
apiFindCalculoFrete,
|
|
88
95
|
apiFindContratoPorDocumento,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContratoFreteService.js","sources":["../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TContratoFrete } from '@base/@types/models/transportadora/contratoFrete';\nimport { TContratoFreteViagemParcela } from '@base/@types/models/transportadora/contratoFreteViagemParcela';\nimport { TValorBrutoContrato } from '@base/@types/models/transportadora/valorBrutoContrato';\nimport { TPageCalculoFreteRequest, TCalculoFreteResponse } from '@base/@types/api';\nimport { TContratoPorDocumentoFilter } from '@base/@types/models/transportadora/contratoPorDocumento';\nimport { TContratoPorDocumentoResponse } from '@base/@types/api/response/transportadora/TContratoPorDocumentoResponse';\nimport { TControleEmbarque } from '@base/@types/models/transportadora/controleEmbarque';\n\nconst CONTRATO_FRETE_PROJECT_ENDPOINT = endpointConfig.contratoFrete;\n\nexport async function apiGetContratoFrete(id: string) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.add.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.update.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindAllContratoFrete(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiUpdateStatusParcela(id: number, statusParcela: string, parcelas: TContratoFreteViagemParcela[]) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.endpoint}/${id}/${statusParcela}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.method,\n data: parcelas as any,\n })\n}\n\nexport async function apiFindvalorBrutoContrato(cpf: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TValorBrutoContrato>>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.endpoint}/${cpf}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.method,\n });\n}\n\nexport async function apiFindCalculoFrete(request: TPageCalculoFreteRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCalculoFreteResponse>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.method,\n data: request,\n })\n}\n\nexport async function apiFindContratoPorDocumento(body: TContratoPorDocumentoFilter) {\n return ApiService.fetchDataWithAxios<TContratoPorDocumentoResponse>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.method,\n data: body,\n })\n}\n\nexport async function apiRoteirizar(body) {\n return ApiService.fetchDataWithAxios({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.method,\n data: body,\n })\n}\n\nexport async function apiFindControleEmbarque(payload: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TControleEmbarque>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.method,\n data: payload,\n })\n}\n\nexport async function apiVerificaContratoFreteByOrdemCarregamentoId(ordemCarregamentoId: string) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.endpoint + ordemCarregamentoId,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.method,\n })\n}\n\nexport async function apiGerarArquivoContratoFrete(id: string | number) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.endpoint + id,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.method,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAWA,MAAM,kCAAkCA,yBAAe;AAEvD,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7D,QAAQ,gCAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,IAAI;AAAA,IACzC,QAAQ,gCAAgC,IAAI;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,MAAsB;AAC/D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,OAAO;AAAA,IAC5C,QAAQ,gCAAgC,OAAO;AAAA,IAC/C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,wBAAwB,MAAsB;AAChE,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,QAAQ;AAAA,IAC7C,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,IAAY,eAAuB,UAAyC;AACrH,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,GAAG,gCAAgC,oBAAoB,QAAQ,IAAI,EAAE,IAAI,aAAa;AAAA,IAC3F,QAAQ,gCAAgC,oBAAoB;AAAA,IAC5D,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,KAAa;AACzD,SAAO,WAAW,mBAAwD;AAAA,IACtE,KAAK,GAAG,gCAAgC,uBAAuB,QAAQ,IAAI,GAAG;AAAA,IAC9E,QAAQ,gCAAgC,uBAAuB;AAAA,EAAA,CAClE;AACL;AAEA,eAAsB,oBAAoB,SAAmC;AACzE,SAAO,WAAW,mBAA0D;AAAA,IACxE,KAAK,gCAAgC,iBAAiB;AAAA,IACtD,QAAQ,gCAAgC,iBAAiB;AAAA,IACzD,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAA4B,MAAmC;AACjF,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAK,gCAAgC,yBAAyB;AAAA,IAC9D,QAAQ,gCAAgC,yBAAyB;AAAA,IACjE,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,MAAM;AACtC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,gCAAgC,WAAW;AAAA,IAChD,QAAQ,gCAAgC,WAAW;AAAA,IACnD,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,wBAAwB,SAAkC;AAC5E,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,gCAAgC,iBAAiB;AAAA,IACtD,QAAQ,gCAAgC,iBAAiB;AAAA,IACzD,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,8CAA8C,qBAA6B;AAC7F,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gCAAgC,0BAA0B,WAAW;AAAA,IAC1E,QAAQ,gCAAgC,0BAA0B;AAAA,EAAA,CACrE;AACL;AAEA,eAAsB,6BAA6B,IAAqB;AACpE,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,aAAa,WAAW;AAAA,IAC7D,QAAQ,gCAAgC,aAAa;AAAA,EAAA,CACxD;AACL;"}
|
|
1
|
+
{"version":3,"file":"ContratoFreteService.js","sources":["../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TContratoFrete } from '@base/@types/models/transportadora/contratoFrete';\nimport { TContratoFreteViagemParcela } from '@base/@types/models/transportadora/contratoFreteViagemParcela';\nimport { TValorBrutoContrato } from '@base/@types/models/transportadora/valorBrutoContrato';\nimport { TPageCalculoFreteRequest, TCalculoFreteResponse } from '@base/@types/api';\nimport { TContratoPorDocumentoFilter } from '@base/@types/models/transportadora/contratoPorDocumento';\nimport { TContratoPorDocumentoResponse } from '@base/@types/api/response/transportadora/TContratoPorDocumentoResponse';\nimport { TControleEmbarque } from '@base/@types/models/transportadora/controleEmbarque';\n\nconst CONTRATO_FRETE_PROJECT_ENDPOINT = endpointConfig.contratoFrete;\n\nexport async function apiGetContratoFrete(id: string) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.add.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.update.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindAllContratoFrete(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiUpdateStatusParcela(id: number, statusParcela: string, parcelas: TContratoFreteViagemParcela[]) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.endpoint}/${id}/${statusParcela}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.method,\n data: parcelas as any,\n })\n}\n\nexport async function apiFindvalorBrutoContrato(cpf: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TValorBrutoContrato>>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.endpoint}/${cpf}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.method,\n });\n}\n\nexport async function apiFindCalculoFrete(request: TPageCalculoFreteRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCalculoFreteResponse>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.method,\n data: request,\n })\n}\n\nexport async function apiFindContratoPorDocumento(body: TContratoPorDocumentoFilter) {\n return ApiService.fetchDataWithAxios<TContratoPorDocumentoResponse>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.method,\n data: body,\n })\n}\n\nexport async function apiRoteirizar(body) {\n return ApiService.fetchDataWithAxios({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.method,\n data: body,\n })\n}\n\nexport async function apiFindControleEmbarque(payload: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TControleEmbarque>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.method,\n data: payload,\n })\n}\n\nexport async function apiVerificaContratoFreteByOrdemCarregamentoId(ordemCarregamentoId: string) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.endpoint + ordemCarregamentoId,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.method,\n })\n}\n\nexport async function apiGerarArquivoContratoFrete(id: string | number) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.endpoint + id,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.method,\n })\n}\n\nexport async function apiEnviarSapContratoFrete(viagemId: string | number) {\n return ApiService.fetchDataWithAxios<any>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.endpoint + viagemId,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.method,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAWA,MAAM,kCAAkCA,yBAAe;AAEvD,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7D,QAAQ,gCAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,IAAI;AAAA,IACzC,QAAQ,gCAAgC,IAAI;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,MAAsB;AAC/D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,OAAO;AAAA,IAC5C,QAAQ,gCAAgC,OAAO;AAAA,IAC/C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,wBAAwB,MAAsB;AAChE,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,QAAQ;AAAA,IAC7C,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM;AAAA,EAAA,CAC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6BAA6B,IAAqB;AACpE,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,aAAa,WAAW;AAAA,IAC7D,QAAQ,gCAAgC,aAAa;AAAA,EAAA,CACxD;AACL;AAEA,eAAsB,0BAA0B,UAA2B;AACvE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,gCAAgC,UAAU,WAAW;AAAA,IAC1D,QAAQ,gCAAgC,UAAU;AAAA,EAAA,CACrD;AACL;"}
|
|
@@ -2,7 +2,7 @@ import { apiAddCartaoPortadorFrete, apiFindAllCartaoPortadorFrete, apiFindCartao
|
|
|
2
2
|
import { apiAddCertificadoTransportadora, apiDownloadCertificadoTransportadora, apiFindAllMonitorCertificadoTransportadora, apiGetCertificadoTransportadora, apiUpdateCertificadoTransportadora } from "./CertificadoTransportadora/CertificadoTransportadoraService.js";
|
|
3
3
|
import { apiAddCest, apiFindAllCest, apiGetCest, apiUpdateCest } from "./Cest/CestService.js";
|
|
4
4
|
import { apiAddConta, apiFindConta } from "./Conta/ContaService.js";
|
|
5
|
-
import { apiAddContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./ContratoFrete/ContratoFreteService.js";
|
|
5
|
+
import { apiAddContratoFrete, apiEnviarSapContratoFrete, apiFindAllContratoFrete, apiFindCalculoFrete, apiFindContratoPorDocumento, apiFindControleEmbarque, apiFindvalorBrutoContrato, apiGerarArquivoContratoFrete, apiGetContratoFrete, apiRoteirizar, apiUpdateContratoFrete, apiUpdateStatusParcela, apiVerificaContratoFreteByOrdemCarregamentoId } from "./ContratoFrete/ContratoFreteService.js";
|
|
6
6
|
import { apiAddControleDescarga, apiFindAllControleDescarga, apiGetCodigoControleDescarga, apiGetControleDescarga, apiUpdateControleDescarga } from "./ControleDescarga/ControleDescargaService.js";
|
|
7
7
|
import { apiAddFavorecido, apiFindAllFavorecido, apiFindFavorecidoByTipoBusca } from "./Favorecido/FavorecidoService.js";
|
|
8
8
|
import { apiAddInss, apiFindAllInss, apiGetInss, apiUpdateInss } from "./Inss/InssService.js";
|
|
@@ -34,6 +34,7 @@ export {
|
|
|
34
34
|
apiAddRota,
|
|
35
35
|
apiAddTipoCarga,
|
|
36
36
|
apiDownloadCertificadoTransportadora,
|
|
37
|
+
apiEnviarSapContratoFrete,
|
|
37
38
|
apiFindAllCartaoPortadorFrete,
|
|
38
39
|
apiFindAllCest,
|
|
39
40
|
apiFindAllContratoFrete,
|
|
@@ -9,5 +9,7 @@ export type TSaldoContratoResponse = {
|
|
|
9
9
|
saldoArmazenado: TSaldoArmazenadoResponse,
|
|
10
10
|
saldoFaturado: TSaldoFaturadoResponse,
|
|
11
11
|
saldoFob: TSaldoFobResponse,
|
|
12
|
-
saldosPorTransgenia: TSaldoPorTransgeniaResponse[]
|
|
12
|
+
saldosPorTransgenia: TSaldoPorTransgeniaResponse[],
|
|
13
|
+
saldoFaturadoComFundeinfra: TSaldoFaturadoResponse,
|
|
14
|
+
saldoFobComFundeinfra: TSaldoFobResponse
|
|
13
15
|
};
|
|
@@ -14,6 +14,7 @@ const contratoFrete = {
|
|
|
14
14
|
controleEmbarque: {endpoint: `${CONTRATO_FRETE_URL}/controle-embarque`, method: 'post'},
|
|
15
15
|
findByOrdemCarregamentoId: {endpoint: `${CONTRATO_FRETE_URL}/find-ordem-carregamento/`, method: 'get'},
|
|
16
16
|
gerarArquivo: {endpoint: `${CONTRATO_FRETE_URL}/gerar-arquivo/`, method: 'get'},
|
|
17
|
+
enviarSap: {endpoint: `${CONTRATO_FRETE_URL}/enviar-sap/`, method: 'get'},
|
|
17
18
|
}
|
|
18
19
|
export default contratoFrete
|
|
19
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import balancaEndpointConfig from '@base/configs/endpoints.config/Ticket/Automacao/balanca.endpoint.config'
|
|
2
2
|
import ApiService from '@/services/ApiService'
|
|
3
3
|
|
|
4
|
-
export async function apiGetByCentro(centro) {
|
|
4
|
+
export async function apiGetByCentro(centro, deposito) {
|
|
5
5
|
return ApiService.fetchDataWithAxios({
|
|
6
|
-
url: balancaEndpointConfig.getByCentro + centro
|
|
6
|
+
url: balancaEndpointConfig.getByCentro + `${centro}/${deposito}`,
|
|
7
7
|
method: 'get',
|
|
8
8
|
})
|
|
9
9
|
}
|
|
@@ -102,3 +102,10 @@ export async function apiGerarArquivoContratoFrete(id: string | number) {
|
|
|
102
102
|
method: CONTRATO_FRETE_PROJECT_ENDPOINT.gerarArquivo.method,
|
|
103
103
|
})
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
export async function apiEnviarSapContratoFrete(viagemId: string | number) {
|
|
107
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
108
|
+
url: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.endpoint + viagemId,
|
|
109
|
+
method: CONTRATO_FRETE_PROJECT_ENDPOINT.enviarSap.method,
|
|
110
|
+
})
|
|
111
|
+
}
|
package/package.json
CHANGED