@orbe-agro/client-core 5.3.269 → 5.3.270
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/bayer/TFindAllEntregaBayerResponse.d.ts +2 -0
- package/dist/@types/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts +1 -0
- package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js +2 -1
- package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js.map +1 -1
- package/dist/base/index.js +2 -1
- package/dist/base/services/index.js +2 -1
- package/dist/base/services/modules/bayer/entregaBayerService.js +7 -0
- package/dist/base/services/modules/bayer/entregaBayerService.js.map +1 -1
- package/dist/base/services/modules/bayer/index.js +2 -1
- package/lib/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.ts +2 -0
- package/lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts +1 -0
- package/lib/base/services/modules/bayer/entregaBayerService.ts +7 -0
- package/package.json +1 -1
|
@@ -15,8 +15,10 @@ export type TFindAllEntregaBayerResponse = {
|
|
|
15
15
|
quantidadeBaixada?: number | null;
|
|
16
16
|
quantidadePendente?: number | null;
|
|
17
17
|
quantidadeRetida?: number | null;
|
|
18
|
+
quantidadeBaixadaConsumida?: number | null;
|
|
18
19
|
dataEntrega?: string | null;
|
|
19
20
|
status?: StatusTesteCarga | null;
|
|
20
21
|
retornoEntrega?: TRetornoEntregaResponse | null;
|
|
22
|
+
canCancelar: boolean;
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=TFindAllEntregaBayerResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TFindAllEntregaBayerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,MAAM,4BAA4B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,+BAA+B,GAAG,IAAI,CAAC;IAClD,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"TFindAllEntregaBayerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,MAAM,4BAA4B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,+BAA+B,GAAG,IAAI,CAAC;IAClD,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAChD,WAAW,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bayer.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/bayer.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"bayer.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/bayer.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOV,CAAA;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entregaBayer.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;uBACK,MAAM;6BACA,MAAM;sBACb,MAAM;;;;;;;
|
|
1
|
+
{"version":3,"file":"entregaBayer.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;uBACK,MAAM;6BACA,MAAM;sBACb,MAAM;;;;;;;0BAOF,MAAM;CAC/B,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -2359,6 +2359,7 @@ declare const endpointNavigationConfig: {
|
|
|
2359
2359
|
calcularRetencao: () => string;
|
|
2360
2360
|
buscarRetorno: () => string;
|
|
2361
2361
|
aplicarRetencao: () => string;
|
|
2362
|
+
cancelarEntrega: (id: number) => string;
|
|
2362
2363
|
};
|
|
2363
2364
|
registroEntradaBayer: {
|
|
2364
2365
|
buscar: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -10,4 +10,5 @@ export declare function apiEnviarEntregaBayerLote(): Promise<void>;
|
|
|
10
10
|
export declare function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest): Promise<QuantidadeASerRetidaPorSaldoResponse>;
|
|
11
11
|
export declare function apiBuscarRetornoEntregas(): Promise<void>;
|
|
12
12
|
export declare function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest): Promise<AplicarRetencaoResponse>;
|
|
13
|
+
export declare function apiCancelarEntregaBayer(id: number): Promise<void>;
|
|
13
14
|
//# sourceMappingURL=entregaBayerService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EAC1B,MAAM,uCAAuC,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F"}
|
|
1
|
+
{"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EAC1B,MAAM,uCAAuC,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD"}
|
|
@@ -7,7 +7,8 @@ const entregaBayer = {
|
|
|
7
7
|
enviarBayerLote: () => "/bayer/api/entregas/enviar-bayer-lote",
|
|
8
8
|
calcularRetencao: () => "/bayer/api/entregas/calcular-retencao",
|
|
9
9
|
buscarRetorno: () => "/bayer/api/entregas/buscar-retorno",
|
|
10
|
-
aplicarRetencao: () => "/bayer/api/entregas/aplicar-retencao"
|
|
10
|
+
aplicarRetencao: () => "/bayer/api/entregas/aplicar-retencao",
|
|
11
|
+
cancelarEntrega: (id) => `/bayer/api/entregas/${id}/cancelar`
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
entregaBayer as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;
|
|
1
|
+
{"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;AAAA,EACvB,iBAAiB,CAAC,OAAe,uBAAuB,EAAE;AAC9D;"}
|
package/dist/base/index.js
CHANGED
|
@@ -189,7 +189,7 @@ import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipo
|
|
|
189
189
|
import { apiFindAllveiculo } from "./services/modules/transportadora/Veiculo/VeiculoService.js";
|
|
190
190
|
import { apiAddInsumosEstoque, apiDeleteInsumosEstoque, apiFindMonitorInsumosEstoque, apiGetInsumosEstoque, apiUpdateInsumosEstoque } from "./services/modules/insumos/estoque/EstoqueService.js";
|
|
191
191
|
import { apiBuscarEntradaGraos } from "./services/modules/bayer/registroEntradaBayerService.js";
|
|
192
|
-
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
|
|
192
|
+
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
|
|
193
193
|
import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./services/modules/bayer/royaltiesBayerService.js";
|
|
194
194
|
import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./services/modules/bayer/pendenciaBayerService.js";
|
|
195
195
|
import { apiFindAllRetencao } from "./services/modules/bayer/retencaoBayerService.js";
|
|
@@ -255,6 +255,7 @@ export {
|
|
|
255
255
|
apiBuscarStatusFixacao,
|
|
256
256
|
apiCalcularRetencao,
|
|
257
257
|
apiCancelPreContrato,
|
|
258
|
+
apiCancelarEntregaBayer,
|
|
258
259
|
apiCancelarRacaoPedidoVenda,
|
|
259
260
|
apiCancelarTermoFundeinfra,
|
|
260
261
|
apiCancelarTermoFunrural,
|
|
@@ -99,7 +99,7 @@ import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipo
|
|
|
99
99
|
import { apiFindAllveiculo } from "./modules/transportadora/Veiculo/VeiculoService.js";
|
|
100
100
|
import { apiAddInsumosEstoque, apiDeleteInsumosEstoque, apiFindMonitorInsumosEstoque, apiGetInsumosEstoque, apiUpdateInsumosEstoque } from "./modules/insumos/estoque/EstoqueService.js";
|
|
101
101
|
import { apiBuscarEntradaGraos } from "./modules/bayer/registroEntradaBayerService.js";
|
|
102
|
-
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
|
|
102
|
+
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
|
|
103
103
|
import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./modules/bayer/royaltiesBayerService.js";
|
|
104
104
|
import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./modules/bayer/pendenciaBayerService.js";
|
|
105
105
|
import { apiFindAllRetencao } from "./modules/bayer/retencaoBayerService.js";
|
|
@@ -157,6 +157,7 @@ export {
|
|
|
157
157
|
apiBuscarStatusFixacao,
|
|
158
158
|
apiCalcularRetencao,
|
|
159
159
|
apiCancelPreContrato,
|
|
160
|
+
apiCancelarEntregaBayer,
|
|
160
161
|
apiCancelarRacaoPedidoVenda,
|
|
161
162
|
apiCancelarTermoFundeinfra,
|
|
162
163
|
apiCancelarTermoFunrural,
|
|
@@ -59,10 +59,17 @@ async function apiAplicarRetencao(data) {
|
|
|
59
59
|
data
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
async function apiCancelarEntregaBayer(id) {
|
|
63
|
+
return ApiService.fetchDataWithAxios({
|
|
64
|
+
url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),
|
|
65
|
+
method: "post"
|
|
66
|
+
});
|
|
67
|
+
}
|
|
62
68
|
export {
|
|
63
69
|
apiAplicarRetencao,
|
|
64
70
|
apiBuscarRetornoEntregas,
|
|
65
71
|
apiCalcularRetencao,
|
|
72
|
+
apiCancelarEntregaBayer,
|
|
66
73
|
apiCreateEntrega,
|
|
67
74
|
apiEnviarEntregaBayer,
|
|
68
75
|
apiEnviarEntregaBayerLote,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse\n} from \"@base/@types/api/response/bayer/types\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n"],"names":[],"mappings":";;AAcA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAuB,QAAiB;AAC5D,SAAO,WAAW,mBAAiE;AAAA,IACjF,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,SAAiB;AACpD,SAAO,WAAW,mBAAoC;AAAA,IAClD,KAAK,uBAAuB,cAAc,OAAO;AAAA,IACjD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,sBAAsB,IAAY;AACpD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,YAAY,EAAE;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAgC;AACtE,SAAO,WAAW,mBAAuE;AAAA,IACrF,KAAK,uBAAuB,UAAU;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,eAAe,MAAgC;AACjE,SAAO,WAAW,mBAAoE;AAAA,IAClF,KAAK,uBAAuB,KAAK;AAAA,IACjC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,4BAA4B;AAC9C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAsD;AAC5F,SAAO,WAAW,mBAAyG;AAAA,IACvH,KAAK,uBAAuB,iBAAiB;AAAA,IAC7C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,cAAc;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,mBAAmB,MAAsD;AAC3F,SAAO,WAAW,mBAA4F;AAAA,IAC1G,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
|
|
1
|
+
{"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse\n} from \"@base/@types/api/response/bayer/types\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiCancelarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),\n method: 'post',\n });\n}\n"],"names":[],"mappings":";;AAcA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAuB,QAAiB;AAC5D,SAAO,WAAW,mBAAiE;AAAA,IACjF,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,SAAiB;AACpD,SAAO,WAAW,mBAAoC;AAAA,IAClD,KAAK,uBAAuB,cAAc,OAAO;AAAA,IACjD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,sBAAsB,IAAY;AACpD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,YAAY,EAAE;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAgC;AACtE,SAAO,WAAW,mBAAuE;AAAA,IACrF,KAAK,uBAAuB,UAAU;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,eAAe,MAAgC;AACjE,SAAO,WAAW,mBAAoE;AAAA,IAClF,KAAK,uBAAuB,KAAK;AAAA,IACjC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,4BAA4B;AAC9C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAsD;AAC5F,SAAO,WAAW,mBAAyG;AAAA,IACvH,KAAK,uBAAuB,iBAAiB;AAAA,IAC7C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,cAAc;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,mBAAmB,MAAsD;AAC3F,SAAO,WAAW,mBAA4F;AAAA,IAC1G,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB,EAAE;AAAA,IAC9C,QAAQ;AAAA,EAAA,CACX;AACL;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { apiBuscarEntradaGraos } from "./registroEntradaBayerService.js";
|
|
2
|
-
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
|
|
2
|
+
import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
|
|
3
3
|
import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./royaltiesBayerService.js";
|
|
4
4
|
import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./pendenciaBayerService.js";
|
|
5
5
|
import { apiFindAllRetencao } from "./retencaoBayerService.js";
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
apiBuscarStatusConsumo,
|
|
14
14
|
apiBuscarStatusFixacao,
|
|
15
15
|
apiCalcularRetencao,
|
|
16
|
+
apiCancelarEntregaBayer,
|
|
16
17
|
apiCreateEntrega,
|
|
17
18
|
apiCreateRoyaltiesBusinessPartner,
|
|
18
19
|
apiEnviarEntregaBayer,
|
|
@@ -16,7 +16,9 @@ export type TFindAllEntregaBayerResponse = {
|
|
|
16
16
|
quantidadeBaixada?: number | null;
|
|
17
17
|
quantidadePendente?: number | null;
|
|
18
18
|
quantidadeRetida?: number | null;
|
|
19
|
+
quantidadeBaixadaConsumida?: number | null;
|
|
19
20
|
dataEntrega?: string | null;
|
|
20
21
|
status?: StatusTesteCarga | null;
|
|
21
22
|
retornoEntrega?: TRetornoEntregaResponse | null;
|
|
23
|
+
canCancelar: boolean;
|
|
22
24
|
};
|
|
@@ -8,6 +8,7 @@ const entregaBayer = {
|
|
|
8
8
|
calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',
|
|
9
9
|
buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',
|
|
10
10
|
aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',
|
|
11
|
+
cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export default entregaBayer
|
|
@@ -80,3 +80,10 @@ export async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntrad
|
|
|
80
80
|
data,
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
export async function apiCancelarEntregaBayer(id: number) {
|
|
85
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
86
|
+
url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),
|
|
87
|
+
method: 'post',
|
|
88
|
+
});
|
|
89
|
+
}
|
package/package.json
CHANGED