@orbe-agro/client-core 5.6.100 → 5.6.102
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/transportadora/cargaFracionada.d.ts +6 -0
- package/dist/@types/base/@types/models/transportadora/cargaFracionada.d.ts.map +1 -0
- package/dist/@types/base/@types/models/transportadora/veiculo.d.ts +1 -0
- package/dist/@types/base/@types/models/transportadora/veiculo.d.ts.map +1 -1
- package/dist/@types/base/@types/models/transportadora/viagemColetaEntrega.d.ts +13 -0
- package/dist/@types/base/@types/models/transportadora/viagemColetaEntrega.d.ts.map +1 -0
- 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/originacao/config/termoFunrural.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/originacao/config/termoFunrural.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
- package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts +1 -0
- package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map +1 -1
- package/dist/base/@types/models/transportadora/cargaFracionada.js +2 -0
- package/dist/base/@types/models/transportadora/cargaFracionada.js.map +1 -0
- package/dist/base/@types/models/transportadora/viagemColetaEntrega.js +2 -0
- package/dist/base/@types/models/transportadora/viagemColetaEntrega.js.map +1 -0
- package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js +1 -0
- package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js.map +1 -1
- package/dist/base/index.js +2 -1
- package/dist/base/services/index.js +2 -1
- package/dist/base/services/modules/index.js +2 -1
- package/dist/base/services/modules/originacao/index.js +2 -1
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js +7 -0
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js.map +1 -1
- package/lib/base/@types/models/transportadora/cargaFracionada.ts +6 -0
- package/lib/base/@types/models/transportadora/veiculo.ts +1 -0
- package/lib/base/@types/models/transportadora/viagemColetaEntrega.ts +13 -0
- package/lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts +1 -0
- package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cargaFracionada.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/cargaFracionada.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA"}
|
|
@@ -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,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
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;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TViagemColetaEntrega = {
|
|
2
|
+
id: number;
|
|
3
|
+
origemIbge: string;
|
|
4
|
+
origemCep: string;
|
|
5
|
+
origemLatitude: number;
|
|
6
|
+
origemLongitude: number;
|
|
7
|
+
destinoIbge: string;
|
|
8
|
+
destinoCep: string;
|
|
9
|
+
destinoLatitude: number;
|
|
10
|
+
destinoLongitude: number;
|
|
11
|
+
distancia: number;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=viagemColetaEntrega.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viagemColetaEntrega.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/transportadora/viagemColetaEntrega.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAwDA,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":"AAwDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;CAwD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunrural.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"termoFunrural.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUlB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AAiCA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AAiCA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCf,CAAA;AAED,eAAe,UAAU,CAAC"}
|
package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';
|
|
|
3
3
|
export declare function apiAddTermoFunrural(body: TTermoFunrural): Promise<TQueryResponse<TTermoFunrural>>;
|
|
4
4
|
export declare function apiGetTermoFunrural(id: number): Promise<TTermoFunrural>;
|
|
5
5
|
export declare function apiFindMonitorTermoFunrural(params: string): Promise<TQueryResponse<TTermoFunrural>>;
|
|
6
|
+
export declare function apiExistePorCpfTermoFunrural(cpf: string, ano: number): Promise<boolean>;
|
|
6
7
|
export declare function apiCancelarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
7
8
|
export declare function apiReprovarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
8
9
|
export declare function apiAprovarTermoFunrural(id: number): Promise<TTermoFunrural>;
|
package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunruralService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAI9E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,2CAM7D;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,2BAKnD;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,MAAM,2CAK/D;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,iBAS5E"}
|
|
1
|
+
{"version":3,"file":"termoFunruralService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAI9E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,2CAM7D;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,2BAKnD;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,MAAM,2CAK/D;AAED,wBAAsB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAK1E;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,iBAS5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cargaFracionada.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viagemColetaEntrega.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -3,6 +3,7 @@ const termoFunrural = {
|
|
|
3
3
|
add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: "post" },
|
|
4
4
|
findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: "get" },
|
|
5
5
|
findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: "get" },
|
|
6
|
+
existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: "get" },
|
|
6
7
|
cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: "post" },
|
|
7
8
|
reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: "post" },
|
|
8
9
|
aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: "post" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunrural.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts"],"sourcesContent":["const TERMO_FUNRURAL_URL = '/originacao/api/termo-funrural'\n\nconst termoFunrural = {\n add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'post' },\n findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'get' },\n findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },\n cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },\n reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },\n aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: 'post' },\n reabrir: { endpoint: `${TERMO_FUNRURAL_URL}/reabrir`, method: 'get' },\n uploadArquivo: { endpoint: `${TERMO_FUNRURAL_URL}/upload-arquivo/{id}`, method: 'post' },\n}\n\nexport default termoFunrural"],"names":[],"mappings":"AAAA,MAAM,qBAAqB;AAE3B,MAAM,gBAAgB;AAAA,EAClB,KAAK,EAAE,UAAU,GAAG,kBAAkB,IAAI,QAAQ,OAAA;AAAA,EAClD,SAAS,EAAE,UAAU,GAAG,kBAAkB,IAAI,QAAQ,MAAA;AAAA,EACtD,aAAa,EAAE,UAAU,GAAG,kBAAkB,iBAAiB,QAAQ,MAAA;AAAA,EACvE,UAAU,EAAE,UAAU,GAAG,kBAAkB,cAAc,QAAQ,OAAA;AAAA,EACjE,UAAU,EAAE,UAAU,GAAG,kBAAkB,cAAc,QAAQ,OAAA;AAAA,EACjE,SAAS,EAAE,UAAU,GAAG,kBAAkB,YAAY,QAAQ,OAAA;AAAA,EAC9D,SAAS,EAAE,UAAU,GAAG,kBAAkB,YAAY,QAAQ,MAAA;AAAA,EAC9D,eAAe,EAAE,UAAU,GAAG,kBAAkB,wBAAwB,QAAQ,OAAA;AACpF;"}
|
|
1
|
+
{"version":3,"file":"termoFunrural.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts"],"sourcesContent":["const TERMO_FUNRURAL_URL = '/originacao/api/termo-funrural'\n\nconst termoFunrural = {\n add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'post' },\n findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'get' },\n findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },\n existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: 'get' },\n cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },\n reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },\n aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: 'post' },\n reabrir: { endpoint: `${TERMO_FUNRURAL_URL}/reabrir`, method: 'get' },\n uploadArquivo: { endpoint: `${TERMO_FUNRURAL_URL}/upload-arquivo/{id}`, method: 'post' },\n}\n\nexport default termoFunrural"],"names":[],"mappings":"AAAA,MAAM,qBAAqB;AAE3B,MAAM,gBAAgB;AAAA,EAClB,KAAK,EAAE,UAAU,GAAG,kBAAkB,IAAI,QAAQ,OAAA;AAAA,EAClD,SAAS,EAAE,UAAU,GAAG,kBAAkB,IAAI,QAAQ,MAAA;AAAA,EACtD,aAAa,EAAE,UAAU,GAAG,kBAAkB,iBAAiB,QAAQ,MAAA;AAAA,EACvE,cAAc,EAAE,UAAU,GAAG,kBAAkB,mBAAmB,QAAQ,MAAA;AAAA,EAC1E,UAAU,EAAE,UAAU,GAAG,kBAAkB,cAAc,QAAQ,OAAA;AAAA,EACjE,UAAU,EAAE,UAAU,GAAG,kBAAkB,cAAc,QAAQ,OAAA;AAAA,EACjE,SAAS,EAAE,UAAU,GAAG,kBAAkB,YAAY,QAAQ,OAAA;AAAA,EAC9D,SAAS,EAAE,UAAU,GAAG,kBAAkB,YAAY,QAAQ,MAAA;AAAA,EAC9D,eAAe,EAAE,UAAU,GAAG,kBAAkB,wBAAwB,QAAQ,OAAA;AACpF;"}
|
package/dist/base/index.js
CHANGED
|
@@ -86,7 +86,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
86
86
|
import { apiAddTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./services/modules/template/example/ExampleService.js";
|
|
87
87
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExample, apiUpdateTemplateExampleObject } from "./services/modules/template/example/ExampleObjectService.js";
|
|
88
88
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./services/modules/originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
89
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./services/modules/originacao/termoFunrural/termoFunruralService.js";
|
|
89
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./services/modules/originacao/termoFunrural/termoFunruralService.js";
|
|
90
90
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./services/modules/transportadora/TiposCarga/TipoCargaService.js";
|
|
91
91
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./services/modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
92
92
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -467,6 +467,7 @@ export {
|
|
|
467
467
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
468
468
|
apiExecuteAcaoOrdemCompra,
|
|
469
469
|
apiExecuteAcaoVendas,
|
|
470
|
+
apiExistePorCpfTermoFunrural,
|
|
470
471
|
apiFetchUserFuncionalidades,
|
|
471
472
|
apiFetchUserFuncionalidadesDetail,
|
|
472
473
|
apiFetchUserVinculosUsuario,
|
|
@@ -90,7 +90,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
90
90
|
import { apiAddTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./modules/template/example/ExampleService.js";
|
|
91
91
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExample, apiUpdateTemplateExampleObject } from "./modules/template/example/ExampleObjectService.js";
|
|
92
92
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./modules/originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
93
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./modules/originacao/termoFunrural/termoFunruralService.js";
|
|
93
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./modules/originacao/termoFunrural/termoFunruralService.js";
|
|
94
94
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./modules/transportadora/TiposCarga/TipoCargaService.js";
|
|
95
95
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
96
96
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -354,6 +354,7 @@ export {
|
|
|
354
354
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
355
355
|
apiExecuteAcaoOrdemCompra,
|
|
356
356
|
apiExecuteAcaoVendas,
|
|
357
|
+
apiExistePorCpfTermoFunrural,
|
|
357
358
|
apiFetchUserFuncionalidades,
|
|
358
359
|
apiFetchUserFuncionalidadesDetail,
|
|
359
360
|
apiFetchUserVinculosUsuario,
|
|
@@ -87,7 +87,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
87
87
|
import { apiAddTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./template/example/ExampleService.js";
|
|
88
88
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExample, apiUpdateTemplateExampleObject } from "./template/example/ExampleObjectService.js";
|
|
89
89
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
90
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./originacao/termoFunrural/termoFunruralService.js";
|
|
90
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./originacao/termoFunrural/termoFunruralService.js";
|
|
91
91
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./transportadora/TiposCarga/TipoCargaService.js";
|
|
92
92
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
93
93
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -330,6 +330,7 @@ export {
|
|
|
330
330
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
331
331
|
apiExecuteAcaoOrdemCompra,
|
|
332
332
|
apiExecuteAcaoVendas,
|
|
333
|
+
apiExistePorCpfTermoFunrural,
|
|
333
334
|
apiFetchUserFuncionalidades,
|
|
334
335
|
apiFetchUserFuncionalidadesDetail,
|
|
335
336
|
apiFetchUserVinculosUsuario,
|
|
@@ -15,7 +15,7 @@ import { apiCancelPreContrato, apiCreatePreContrato, apiEditPreContrato, apiFind
|
|
|
15
15
|
import { apiCreatePrecoDia, apiDeletePrecoDia, apiFindAllPrecoDia, apiFindAllPrecoDiaHistoricos, apiFindByIdPrecoDia, apiFindByIdPrecoDiaHistoricos, apiGenerateTemplatePrecoDia, apiUpdatePrecoDia, apiUpdateStatusPrecoDia, apiUploadTemplatePrecoDia } from "./precoDia/precoDiaService.js";
|
|
16
16
|
import { apiCreateProdutoCommodity, apiFindAllProdutoCommodity } from "./produtoCommodity/produtoCommodityService.js";
|
|
17
17
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./termoFundeinfra/termoFundeinfraService.js";
|
|
18
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./termoFunrural/termoFunruralService.js";
|
|
18
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./termoFunrural/termoFunruralService.js";
|
|
19
19
|
export {
|
|
20
20
|
apiAddAssistenciaTecnicaSeloSocial,
|
|
21
21
|
apiAddCessaoDireitoCredito,
|
|
@@ -46,6 +46,7 @@ export {
|
|
|
46
46
|
apiDeleteTaxaCessaoCredito,
|
|
47
47
|
apiEditContratoCompraGraos,
|
|
48
48
|
apiEditPreContrato,
|
|
49
|
+
apiExistePorCpfTermoFunrural,
|
|
49
50
|
apiFindAllAnalisePenhorAlienacao,
|
|
50
51
|
apiFindAllAssistenciaTecnicaSeloSocial,
|
|
51
52
|
apiFindAllCampos,
|
|
@@ -20,6 +20,12 @@ async function apiFindMonitorTermoFunrural(params) {
|
|
|
20
20
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
+
async function apiExistePorCpfTermoFunrural(cpf, ano) {
|
|
24
|
+
return ApiService.fetchDataWithAxios({
|
|
25
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
|
|
26
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method
|
|
27
|
+
});
|
|
28
|
+
}
|
|
23
29
|
async function apiCancelarTermoFunrural(id, motivo) {
|
|
24
30
|
return ApiService.fetchDataWithAxios({
|
|
25
31
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,
|
|
@@ -62,6 +68,7 @@ export {
|
|
|
62
68
|
apiAddTermoFunrural,
|
|
63
69
|
apiAprovarTermoFunrural,
|
|
64
70
|
apiCancelarTermoFunrural,
|
|
71
|
+
apiExistePorCpfTermoFunrural,
|
|
65
72
|
apiFindMonitorTermoFunrural,
|
|
66
73
|
apiGetTermoFunrural,
|
|
67
74
|
apiReabrirTermoFunrural,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,kCAAkCA,yBAAe,WAAW;AAElE,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,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,4BAA4B,QAAgB;AAC9D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,YAAY,WAAW,IAAI,MAAM;AAAA,IACtE,QAAQ,gCAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,yBAAyB,IAAY,UAAoB;AAC3E,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,cAAc,SAAS,QAAQ,QAAQ,GAAG,UAAU;AAAA,IACzF,QAAQ,gCAAgC,cAAc;AAAA,IACtD,MAAM;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
|
|
1
|
+
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,kCAAkCA,yBAAe,WAAW;AAElE,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,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,4BAA4B,QAAgB;AAC9D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,YAAY,WAAW,IAAI,MAAM;AAAA,IACtE,QAAQ,gCAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEA,eAAsB,6BAA6B,KAAa,KAAa;AACzE,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gCAAgC,aAAa,WAAW,QAAQ,GAAG,QAAQ,G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
origemLatitude: number,
|
|
6
|
+
origemLongitude: number,
|
|
7
|
+
destinoIbge: string,
|
|
8
|
+
destinoCep: string,
|
|
9
|
+
destinoLatitude: number,
|
|
10
|
+
destinoLongitude: number,
|
|
11
|
+
distancia: number
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -4,6 +4,7 @@ const termoFunrural = {
|
|
|
4
4
|
add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'post' },
|
|
5
5
|
findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'get' },
|
|
6
6
|
findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },
|
|
7
|
+
existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: 'get' },
|
|
7
8
|
cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },
|
|
8
9
|
reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },
|
|
9
10
|
aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: 'post' },
|
|
@@ -27,6 +27,13 @@ export async function apiFindMonitorTermoFunrural(params: string) {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {
|
|
31
|
+
return ApiService.fetchDataWithAxios<boolean>({
|
|
32
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
|
|
33
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export async function apiCancelarTermoFunrural(id: number, motivo: string) {
|
|
31
38
|
return ApiService.fetchDataWithAxios<void>({
|
|
32
39
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,
|
package/package.json
CHANGED