@orbe-agro/client-core 5.6.296 → 5.6.297
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/@ecme/assets/styles/app.css +7 -2
- package/dist/@ecme/assets/styles/tailwind/index.css +7 -2
- package/dist/@ecme/components/template/Footer.js +1 -1
- package/dist/@types/base/@types/api/request/originacao/TCreateTermoFunruralRequest.d.ts +8 -0
- package/dist/@types/base/@types/api/request/originacao/TCreateTermoFunruralRequest.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.d.ts +10 -0
- package/dist/@types/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/originacao/TExisteTermoFunruralResponse.d.ts +4 -0
- package/dist/@types/base/@types/api/response/originacao/TExisteTermoFunruralResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/models/originacao/termoFunrural.d.ts +11 -3
- package/dist/@types/base/@types/models/originacao/termoFunrural.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +8 -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 +8 -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 +8 -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 +12 -7
- package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map +1 -1
- package/dist/base/@types/api/request/originacao/TCreateTermoFunruralRequest.js +2 -0
- package/dist/base/@types/api/request/originacao/TCreateTermoFunruralRequest.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.js.map +1 -0
- package/dist/base/@types/api/response/originacao/TExisteTermoFunruralResponse.js +2 -0
- package/dist/base/@types/api/response/originacao/TExisteTermoFunruralResponse.js.map +1 -0
- package/dist/base/assets/styles/init.css +7 -2
- package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js +3 -1
- package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js.map +1 -1
- package/dist/base/index.js +3 -1
- package/dist/base/services/index.js +3 -1
- package/dist/base/services/modules/index.js +3 -1
- package/dist/base/services/modules/originacao/index.js +4 -2
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js +18 -5
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js.map +1 -1
- package/lib/@ecme/assets/styles/tailwind/index.css +7 -0
- package/lib/base/@types/api/request/originacao/TCreateTermoFunruralRequest.ts +11 -0
- package/lib/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.ts +9 -0
- package/lib/base/@types/api/response/originacao/TExisteTermoFunruralResponse.ts +3 -0
- package/lib/base/@types/models/originacao/termoFunrural.ts +13 -3
- package/lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts +3 -1
- package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +36 -11
- package/package.json +1 -1
|
@@ -4483,6 +4483,13 @@ video {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
4485
|
|
|
4486
|
+
html {
|
|
4487
|
+
/* Reserva o espaço da scrollbar mesmo quando ausente (ex.: body com
|
|
4488
|
+
overflow:hidden ao abrir Drawer/Modal), evitando o salto de layout
|
|
4489
|
+
quando a barra desaparece/reaparece. */
|
|
4490
|
+
scrollbar-gutter: stable;
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4486
4493
|
body{
|
|
4487
4494
|
background-color: var(--gray-100);
|
|
4488
4495
|
font-size: 0.875rem;
|
|
@@ -4492,13 +4499,11 @@ video {
|
|
|
4492
4499
|
color: var(--gray-500);
|
|
4493
4500
|
}
|
|
4494
4501
|
|
|
4495
|
-
|
|
4496
4502
|
body:is(.dark *){
|
|
4497
4503
|
background-color: var(--gray-950);
|
|
4498
4504
|
color: var(--gray-400);
|
|
4499
4505
|
}
|
|
4500
4506
|
|
|
4501
|
-
|
|
4502
4507
|
body {
|
|
4503
4508
|
-webkit-font-smoothing: antialiased;
|
|
4504
4509
|
}
|
|
@@ -554,6 +554,13 @@ video {
|
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
|
|
557
|
+
html {
|
|
558
|
+
/* Reserva o espaço da scrollbar mesmo quando ausente (ex.: body com
|
|
559
|
+
overflow:hidden ao abrir Drawer/Modal), evitando o salto de layout
|
|
560
|
+
quando a barra desaparece/reaparece. */
|
|
561
|
+
scrollbar-gutter: stable;
|
|
562
|
+
}
|
|
563
|
+
|
|
557
564
|
body {
|
|
558
565
|
background-color: var(--gray-100);
|
|
559
566
|
font-size: 0.875rem;
|
|
@@ -563,13 +570,11 @@ video {
|
|
|
563
570
|
color: var(--gray-500);
|
|
564
571
|
}
|
|
565
572
|
|
|
566
|
-
|
|
567
573
|
body:is(.dark *) {
|
|
568
574
|
background-color: var(--gray-950);
|
|
569
575
|
color: var(--gray-400);
|
|
570
576
|
}
|
|
571
577
|
|
|
572
|
-
|
|
573
578
|
body {
|
|
574
579
|
-webkit-font-smoothing: antialiased;
|
|
575
580
|
}
|
|
@@ -3,7 +3,7 @@ import Container from "../shared/Container.js";
|
|
|
3
3
|
import classNames from "../../utils/classNames.js";
|
|
4
4
|
import { APP_NAME } from "../../constants/app.constant.js";
|
|
5
5
|
import { PAGE_CONTAINER_GUTTER_X } from "../../constants/theme.constant.js";
|
|
6
|
-
const version = true ? "5.6.
|
|
6
|
+
const version = true ? "5.6.297" : "0.0.0";
|
|
7
7
|
const FooterContent = () => {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-auto items-center justify-between", children: [
|
|
9
9
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TTipoAssinaturaTermoFunrural, TTipoRecolhimentoTermoFunrural } from '../../../models/originacao/termoFunrural';
|
|
2
|
+
export type TCreateTermoFunruralRequest = {
|
|
3
|
+
produtorId: number;
|
|
4
|
+
tipoAssinatura: TTipoAssinaturaTermoFunrural;
|
|
5
|
+
tipoRecolhimento: TTipoRecolhimentoTermoFunrural;
|
|
6
|
+
tipoVigencia?: 'ANUAL' | 'VITALICIO';
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=TCreateTermoFunruralRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TCreateTermoFunruralRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/originacao/TCreateTermoFunruralRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,4BAA4B,EAC5B,8BAA8B,EACjC,MAAM,0CAA0C,CAAA;AAEjD,MAAM,MAAM,2BAA2B,GAAG;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,4BAA4B,CAAA;IAC5C,gBAAgB,EAAE,8BAA8B,CAAA;IAChD,YAAY,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;CACvC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disponibilidade de uma opção do Termo de Funrural (tipo de assinatura ou de recolhimento).
|
|
3
|
+
* Quando `habilitado` é false, `motivo` explica por que a opção não pode ser escolhida.
|
|
4
|
+
*/
|
|
5
|
+
export type TDisponibilidadeOpcaoTermoFunruralResponse<TOpcao extends string = string> = {
|
|
6
|
+
opcao: TOpcao;
|
|
7
|
+
habilitado: boolean;
|
|
8
|
+
motivo: string | null;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=TDisponibilidadeOpcaoTermoFunruralResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TDisponibilidadeOpcaoTermoFunruralResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,0CAA0C,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI;IACrF,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TExisteTermoFunruralResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TExisteTermoFunruralResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
export type TTipoAssinaturaTermoFunrural = 'DIGITAL' | 'FISICA';
|
|
2
|
+
export type TTipoRecolhimentoTermoFunrural = 'PRODUCAO' | 'FOLHA_PAGAMENTO';
|
|
1
3
|
export type TTermoFunrural = {
|
|
2
4
|
id?: number;
|
|
3
|
-
cpfCnpj
|
|
5
|
+
cpfCnpj?: string;
|
|
6
|
+
cpf?: string | null;
|
|
7
|
+
cnpj?: string | null;
|
|
4
8
|
produtorId?: number;
|
|
5
|
-
tipoAssinatura?:
|
|
6
|
-
tipoRecolhimento?:
|
|
9
|
+
tipoAssinatura?: TTipoAssinaturaTermoFunrural | null;
|
|
10
|
+
tipoRecolhimento?: TTipoRecolhimentoTermoFunrural | null;
|
|
7
11
|
tipoVigencia?: 'ANUAL' | 'VITALICIO' | null;
|
|
12
|
+
statusTermoFunrural?: string | null;
|
|
8
13
|
statusCrm?: 'AGUARDANDO_ATUALIZACAO' | 'CONCLUIDO_SAP_ORBEAGRO' | null;
|
|
14
|
+
motivo?: string | null;
|
|
15
|
+
contratoId?: number | null;
|
|
16
|
+
dataCriacao?: string | null;
|
|
9
17
|
};
|
|
10
18
|
//# sourceMappingURL=termoFunrural.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunrural.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/originacao/termoFunrural.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"termoFunrural.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/originacao/termoFunrural.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE/D,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,iBAAiB,CAAA;AAE3E,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAAA;IACpD,gBAAgB,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAA;IAExD,YAAY,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CAAA;IAC3C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,wBAAwB,GAAG,wBAAwB,GAAG,IAAI,CAAA;IACtE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,CAAA"}
|
|
@@ -1925,6 +1925,14 @@ declare const endpointNavigationConfig: {
|
|
|
1925
1925
|
endpoint: string;
|
|
1926
1926
|
method: string;
|
|
1927
1927
|
};
|
|
1928
|
+
verificarTiposAssinatura: {
|
|
1929
|
+
endpoint: string;
|
|
1930
|
+
method: string;
|
|
1931
|
+
};
|
|
1932
|
+
verificarTiposRecolhimento: {
|
|
1933
|
+
endpoint: string;
|
|
1934
|
+
method: string;
|
|
1935
|
+
};
|
|
1928
1936
|
findAllMetrics: {
|
|
1929
1937
|
endpoint: string;
|
|
1930
1938
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AA0DA,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":"AA0DA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -15,6 +15,14 @@ declare const termoFunrural: {
|
|
|
15
15
|
endpoint: string;
|
|
16
16
|
method: string;
|
|
17
17
|
};
|
|
18
|
+
verificarTiposAssinatura: {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
method: string;
|
|
21
|
+
};
|
|
22
|
+
verificarTiposRecolhimento: {
|
|
23
|
+
endpoint: string;
|
|
24
|
+
method: string;
|
|
25
|
+
};
|
|
18
26
|
findAllMetrics: {
|
|
19
27
|
endpoint: string;
|
|
20
28
|
method: string;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -347,6 +347,14 @@ declare const originacao: {
|
|
|
347
347
|
endpoint: string;
|
|
348
348
|
method: string;
|
|
349
349
|
};
|
|
350
|
+
verificarTiposAssinatura: {
|
|
351
|
+
endpoint: string;
|
|
352
|
+
method: string;
|
|
353
|
+
};
|
|
354
|
+
verificarTiposRecolhimento: {
|
|
355
|
+
endpoint: string;
|
|
356
|
+
method: string;
|
|
357
|
+
};
|
|
350
358
|
findAllMetrics: {
|
|
351
359
|
endpoint: string;
|
|
352
360
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AAwCA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AAwCA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCf,CAAA;AAED,eAAe,UAAU,CAAC"}
|
package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { TQueryResponse } from '
|
|
2
|
-
import { TTermoFunrural } from '
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import type { TQueryResponse } from '../../../../@types/api';
|
|
2
|
+
import type { TTermoFunrural, TTipoAssinaturaTermoFunrural, TTipoRecolhimentoTermoFunrural } from '../../../../@types/models/originacao/termoFunrural';
|
|
3
|
+
import type { TCreateTermoFunruralRequest } from '../../../../@types/api/request/originacao/TCreateTermoFunruralRequest';
|
|
4
|
+
import type { TExisteTermoFunruralResponse } from '../../../../@types/api/response/originacao/TExisteTermoFunruralResponse';
|
|
5
|
+
import type { TDisponibilidadeOpcaoTermoFunruralResponse } from '../../../../@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse';
|
|
6
|
+
import type { TFindAllMetricsTermoFunruralResponse } from '../../../../@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse';
|
|
7
|
+
export declare function apiAddTermoFunrural(body: TCreateTermoFunruralRequest): Promise<TTermoFunrural>;
|
|
5
8
|
export declare function apiGetTermoFunrural(id: number): Promise<TTermoFunrural>;
|
|
6
9
|
export declare function apiFindMonitorTermoFunrural(params: string): Promise<TQueryResponse<TTermoFunrural>>;
|
|
7
10
|
export declare function apiCancelarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
8
11
|
export declare function apiReprovarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
9
|
-
export declare function apiAprovarTermoFunrural(id: number): Promise<
|
|
10
|
-
export declare function apiReabrirTermoFunrural(id: number): Promise<
|
|
12
|
+
export declare function apiAprovarTermoFunrural(id: number, motivo?: string): Promise<void>;
|
|
13
|
+
export declare function apiReabrirTermoFunrural(id: number): Promise<void>;
|
|
11
14
|
export declare function apiUploadArquivoAssinado(id: number, formData: FormData): Promise<void>;
|
|
12
|
-
export declare function apiExistePorCpfTermoFunrural(cpf: string): Promise<
|
|
15
|
+
export declare function apiExistePorCpfTermoFunrural(cpf: string): Promise<TExisteTermoFunruralResponse>;
|
|
16
|
+
export declare function apiVerificarTiposAssinaturaTermoFunrural(produtorId: number): Promise<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoAssinaturaTermoFunrural>[]>;
|
|
17
|
+
export declare function apiVerificarTiposRecolhimentoTermoFunrural(produtorId: number): Promise<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoRecolhimentoTermoFunrural>[]>;
|
|
13
18
|
export declare function apiFindTermoFunruralMetrics(): Promise<TFindAllMetricsTermoFunruralResponse>;
|
|
14
19
|
export declare function apiConcluirCrmTermoFunrural(id: number): Promise<void>;
|
|
15
20
|
//# sourceMappingURL=termoFunruralService.d.ts.map
|
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":"
|
|
1
|
+
{"version":3,"file":"termoFunruralService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EACR,cAAc,EACd,4BAA4B,EAC5B,8BAA8B,EACjC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uEAAuE,CAAC;AACzH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yEAAyE,CAAC;AAC5H,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uFAAuF,CAAC;AACxJ,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,iFAAiF,CAAC;AAI5I,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,2BAA2B,2BAM1E;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;AAGD,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,iBAMxE;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,iBAS5E;AAGD,wBAAsB,4BAA4B,CAAC,GAAG,EAAE,MAAM,yCAK7D;AAGD,wBAAsB,wCAAwC,CAAC,UAAU,EAAE,MAAM,uFAKhF;AAGD,wBAAsB,0CAA0C,CAAC,UAAU,EAAE,MAAM,yFAKlF;AAED,wBAAsB,2BAA2B,kDAKhD;AAID,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,MAAM,iBAK3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TCreateTermoFunruralRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/base/@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TDisponibilidadeOpcaoTermoFunruralResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TExisteTermoFunruralResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -4483,6 +4483,13 @@ video {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
4485
|
|
|
4486
|
+
html {
|
|
4487
|
+
/* Reserva o espaço da scrollbar mesmo quando ausente (ex.: body com
|
|
4488
|
+
overflow:hidden ao abrir Drawer/Modal), evitando o salto de layout
|
|
4489
|
+
quando a barra desaparece/reaparece. */
|
|
4490
|
+
scrollbar-gutter: stable;
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4486
4493
|
body{
|
|
4487
4494
|
background-color: var(--gray-100);
|
|
4488
4495
|
font-size: 0.875rem;
|
|
@@ -4492,13 +4499,11 @@ video {
|
|
|
4492
4499
|
color: var(--gray-500);
|
|
4493
4500
|
}
|
|
4494
4501
|
|
|
4495
|
-
|
|
4496
4502
|
body:is(.dark *){
|
|
4497
4503
|
background-color: var(--gray-950);
|
|
4498
4504
|
color: var(--gray-400);
|
|
4499
4505
|
}
|
|
4500
4506
|
|
|
4501
|
-
|
|
4502
4507
|
body {
|
|
4503
4508
|
-webkit-font-smoothing: antialiased;
|
|
4504
4509
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
const TERMO_FUNRURAL_URL = "/originacao/api/termo-funrural";
|
|
2
2
|
const termoFunrural = {
|
|
3
3
|
add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: "post" },
|
|
4
|
-
findOne: { endpoint: `${TERMO_FUNRURAL_URL}
|
|
4
|
+
findOne: { endpoint: `${TERMO_FUNRURAL_URL}/`, method: "get" },
|
|
5
5
|
findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: "get" },
|
|
6
6
|
existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: "get" },
|
|
7
|
+
verificarTiposAssinatura: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-assinatura`, method: "get" },
|
|
8
|
+
verificarTiposRecolhimento: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-recolhimento`, method: "get" },
|
|
7
9
|
findAllMetrics: { endpoint: `${TERMO_FUNRURAL_URL}/metrics`, method: "get" },
|
|
8
10
|
cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: "post" },
|
|
9
11
|
reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, 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}
|
|
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 verificarTiposAssinatura: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-assinatura`, method: 'get' },\n verificarTiposRecolhimento: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-recolhimento`, method: 'get' },\n findAllMetrics: { endpoint: `${TERMO_FUNRURAL_URL}/metrics`, 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 concluirCrm: { endpoint: `${TERMO_FUNRURAL_URL}/concluir-crm/`, 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,KAAK,QAAQ,MAAA;AAAA,EACvD,aAAa,EAAE,UAAU,GAAG,kBAAkB,iBAAiB,QAAQ,MAAA;AAAA,EACvE,cAAc,EAAE,UAAU,GAAG,kBAAkB,mBAAmB,QAAQ,MAAA;AAAA,EAC1E,0BAA0B,EAAE,UAAU,GAAG,kBAAkB,+BAA+B,QAAQ,MAAA;AAAA,EAClG,4BAA4B,EAAE,UAAU,GAAG,kBAAkB,iCAAiC,QAAQ,MAAA;AAAA,EACtG,gBAAgB,EAAE,UAAU,GAAG,kBAAkB,YAAY,QAAQ,MAAA;AAAA,EACrE,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;AAAA,EAChF,aAAa,EAAE,UAAU,GAAG,kBAAkB,kBAAkB,QAAQ,OAAA;AAC5E;"}
|
package/dist/base/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
100
100
|
import { apiAddTemplateExample, apiDeleteTemplateExample, apiFindMonitorTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./services/modules/template/example/ExampleService.js";
|
|
101
101
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExampleObject, apiGetTemplateExampleObject, apiUpdateTemplateExampleObject } from "./services/modules/template/exampleObject/ExampleObjectService.js";
|
|
102
102
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./services/modules/originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
103
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./services/modules/originacao/termoFunrural/termoFunruralService.js";
|
|
103
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado, apiVerificarTiposAssinaturaTermoFunrural, apiVerificarTiposRecolhimentoTermoFunrural } from "./services/modules/originacao/termoFunrural/termoFunruralService.js";
|
|
104
104
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./services/modules/transportadora/TiposCarga/TipoCargaService.js";
|
|
105
105
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./services/modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
106
106
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -1107,6 +1107,8 @@ export {
|
|
|
1107
1107
|
apiVerificaMotorista,
|
|
1108
1108
|
apiVerificaUserPossuiFuncionalidade,
|
|
1109
1109
|
apiVerificaVeiculo,
|
|
1110
|
+
apiVerificarTiposAssinaturaTermoFunrural,
|
|
1111
|
+
apiVerificarTiposRecolhimentoTermoFunrural,
|
|
1110
1112
|
default10 as ativosSubmenu,
|
|
1111
1113
|
default11 as bayerSubmenu,
|
|
1112
1114
|
buildQueryString,
|
|
@@ -93,7 +93,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
93
93
|
import { apiAddTemplateExample, apiDeleteTemplateExample, apiFindMonitorTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./modules/template/example/ExampleService.js";
|
|
94
94
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExampleObject, apiGetTemplateExampleObject, apiUpdateTemplateExampleObject } from "./modules/template/exampleObject/ExampleObjectService.js";
|
|
95
95
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./modules/originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
96
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./modules/originacao/termoFunrural/termoFunruralService.js";
|
|
96
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado, apiVerificarTiposAssinaturaTermoFunrural, apiVerificarTiposRecolhimentoTermoFunrural } from "./modules/originacao/termoFunrural/termoFunruralService.js";
|
|
97
97
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./modules/transportadora/TiposCarga/TipoCargaService.js";
|
|
98
98
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
99
99
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -955,6 +955,8 @@ export {
|
|
|
955
955
|
apiVerificaMotorista,
|
|
956
956
|
apiVerificaUserPossuiFuncionalidade,
|
|
957
957
|
apiVerificaVeiculo,
|
|
958
|
+
apiVerificarTiposAssinaturaTermoFunrural,
|
|
959
|
+
apiVerificarTiposRecolhimentoTermoFunrural,
|
|
958
960
|
buildQueryString,
|
|
959
961
|
buildQueryStringRepeated,
|
|
960
962
|
generateQueryParams2 as generateModulesQueryParams,
|
|
@@ -90,7 +90,7 @@ import { apiAddTaxaCessaoCredito, apiDeleteTaxaCessaoCredito, apiFindAllTaxaCess
|
|
|
90
90
|
import { apiAddTemplateExample, apiDeleteTemplateExample, apiFindMonitorTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./template/example/ExampleService.js";
|
|
91
91
|
import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExampleObject, apiGetTemplateExampleObject, apiUpdateTemplateExampleObject } from "./template/exampleObject/ExampleObjectService.js";
|
|
92
92
|
import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFundeinfra, apiFindMonitorTermoFundeinfra, apiGetTermoFundeinfra, apiReabrirTermoFundeinfra, apiReprovarTermoFundeinfra, apiUploadArquivoFundeinfra } from "./originacao/termoFundeinfra/termoFundeinfraService.js";
|
|
93
|
-
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./originacao/termoFunrural/termoFunruralService.js";
|
|
93
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado, apiVerificarTiposAssinaturaTermoFunrural, apiVerificarTiposRecolhimentoTermoFunrural } from "./originacao/termoFunrural/termoFunruralService.js";
|
|
94
94
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./transportadora/TiposCarga/TipoCargaService.js";
|
|
95
95
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
96
96
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
@@ -918,6 +918,8 @@ export {
|
|
|
918
918
|
apiVerificaMotorista,
|
|
919
919
|
apiVerificaUserPossuiFuncionalidade,
|
|
920
920
|
apiVerificaVeiculo,
|
|
921
|
+
apiVerificarTiposAssinaturaTermoFunrural,
|
|
922
|
+
apiVerificarTiposRecolhimentoTermoFunrural,
|
|
921
923
|
generateQueryParams,
|
|
922
924
|
getBaseTableParams
|
|
923
925
|
};
|
|
@@ -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, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./termoFunrural/termoFunruralService.js";
|
|
18
|
+
import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiConcluirCrmTermoFunrural, apiExistePorCpfTermoFunrural, apiFindMonitorTermoFunrural, apiFindTermoFunruralMetrics, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado, apiVerificarTiposAssinaturaTermoFunrural, apiVerificarTiposRecolhimentoTermoFunrural } from "./termoFunrural/termoFunruralService.js";
|
|
19
19
|
import { apiCreateVinculoOperacaoLiquidacao, apiFindAllVinculoOperacaoLiquidacao, apiFindByIdVinculoOperacaoLiquidacao, apiUpdateVinculoOperacaoLiquidacao } from "./vinculoOperacaoLiquidacao/vinculoOperacaoLiquidacaoService.js";
|
|
20
20
|
import { apiCreateAlteracaoTransgenia, apiFindAllAlteracaoTransgenia } from "./alteracaoTransgenia/alteracaoTransgeniaService.js";
|
|
21
21
|
import { apiCreateTarefaLiquidacao, apiDeleteTarefaLiquidacao, apiFindAllTarefaLiquidacao, apiFindByIdTarefaLiquidacao, apiUpdateTarefaLiquidacao } from "./tarefaLiquidacao/tarefaLiquidacaoService.js";
|
|
@@ -153,6 +153,8 @@ export {
|
|
|
153
153
|
apiUploadAssinaturaServicoAssistenciaFisica,
|
|
154
154
|
apiUploadContrato,
|
|
155
155
|
apiUploadFileDadosPenhores,
|
|
156
|
-
apiUploadTemplatePrecoDia
|
|
156
|
+
apiUploadTemplatePrecoDia,
|
|
157
|
+
apiVerificarTiposAssinaturaTermoFunrural,
|
|
158
|
+
apiVerificarTiposRecolhimentoTermoFunrural
|
|
157
159
|
};
|
|
158
160
|
//# sourceMappingURL=index.js.map
|
|
@@ -34,18 +34,17 @@ async function apiReprovarTermoFunrural(id, motivo) {
|
|
|
34
34
|
data: { motivo }
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
async function apiAprovarTermoFunrural(id) {
|
|
37
|
+
async function apiAprovarTermoFunrural(id, motivo) {
|
|
38
38
|
return ApiService.fetchDataWithAxios({
|
|
39
39
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,
|
|
40
40
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,
|
|
41
|
-
data: {
|
|
41
|
+
data: { motivo: motivo ?? null }
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
async function apiReabrirTermoFunrural(id) {
|
|
45
45
|
return ApiService.fetchDataWithAxios({
|
|
46
46
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,
|
|
47
|
-
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method
|
|
48
|
-
data: { id }
|
|
47
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
async function apiUploadArquivoAssinado(id, formData) {
|
|
@@ -64,6 +63,18 @@ async function apiExistePorCpfTermoFunrural(cpf) {
|
|
|
64
63
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method
|
|
65
64
|
});
|
|
66
65
|
}
|
|
66
|
+
async function apiVerificarTiposAssinaturaTermoFunrural(produtorId) {
|
|
67
|
+
return ApiService.fetchDataWithAxios({
|
|
68
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.endpoint + `?produtorId=${produtorId}`,
|
|
69
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.method
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async function apiVerificarTiposRecolhimentoTermoFunrural(produtorId) {
|
|
73
|
+
return ApiService.fetchDataWithAxios({
|
|
74
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.endpoint + `?produtorId=${produtorId}`,
|
|
75
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.method
|
|
76
|
+
});
|
|
77
|
+
}
|
|
67
78
|
async function apiFindTermoFunruralMetrics() {
|
|
68
79
|
return ApiService.fetchDataWithAxios({
|
|
69
80
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,
|
|
@@ -87,6 +98,8 @@ export {
|
|
|
87
98
|
apiGetTermoFunrural,
|
|
88
99
|
apiReabrirTermoFunrural,
|
|
89
100
|
apiReprovarTermoFunrural,
|
|
90
|
-
apiUploadArquivoAssinado
|
|
101
|
+
apiUploadArquivoAssinado,
|
|
102
|
+
apiVerificarTiposAssinaturaTermoFunrural,
|
|
103
|
+
apiVerificarTiposRecolhimentoTermoFunrural
|
|
91
104
|
};
|
|
92
105
|
//# sourceMappingURL=termoFunruralService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\n// Os tipos usam caminhos relativos para que o .d.ts gerado resolva nos projetos que consomem a lib\n// (o alias @base não existe fora do client-core e deixaria as assinaturas como `any`).\nimport type { TQueryResponse } from '../../../../@types/api'\nimport type {\n TTermoFunrural,\n TTipoAssinaturaTermoFunrural,\n TTipoRecolhimentoTermoFunrural,\n} from '../../../../@types/models/originacao/termoFunrural';\nimport type { TCreateTermoFunruralRequest } from '../../../../@types/api/request/originacao/TCreateTermoFunruralRequest';\nimport type { TExisteTermoFunruralResponse } from '../../../../@types/api/response/originacao/TExisteTermoFunruralResponse';\nimport type { TDisponibilidadeOpcaoTermoFunruralResponse } from '../../../../@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse';\nimport type { TFindAllMetricsTermoFunruralResponse } from '../../../../@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TCreateTermoFunruralRequest) {\n return ApiService.fetchDataWithAxios<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\n// O backend responde 204 e exige corpo (AprovarTermoFunruralRequest), mesmo com o motivo opcional.\nexport async function apiAprovarTermoFunrural(id: number, motivo?: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { motivo: motivo ?? null },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\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\n// Termo de Funrural é vitalício (OA-2000): a checagem agora considera apenas o CPF, sem recorte por ano.\nexport async function apiExistePorCpfTermoFunrural(cpf: string) {\n return ApiService.fetchDataWithAxios<TExisteTermoFunruralResponse>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,\n });\n}\n\n// Informa quais tipos de assinatura (envio) o produtor pode escolher ao emitir o termo e, para os bloqueados, o motivo.\nexport async function apiVerificarTiposAssinaturaTermoFunrural(produtorId: number) {\n return ApiService.fetchDataWithAxios<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoAssinaturaTermoFunrural>[]>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.endpoint + `?produtorId=${produtorId}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.method,\n });\n}\n\n// Informa quais tipos de recolhimento o produtor pode escolher ao emitir o termo e, para os bloqueados, o motivo.\nexport async function apiVerificarTiposRecolhimentoTermoFunrural(produtorId: number) {\n return ApiService.fetchDataWithAxios<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoRecolhimentoTermoFunrural>[]>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.endpoint + `?produtorId=${produtorId}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.method,\n });\n}\n\nexport async function apiFindTermoFunruralMetrics() {\n return ApiService.fetchDataWithAxios<TFindAllMetricsTermoFunruralResponse>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.method,\n });\n}\n\n// Conclui a análise da Área CRM do Termo Funrural (OA-2000), alterando statusCrm para CONCLUIDO_SAP_ORBEAGRO.\n// O usuário é identificado pelo header X-User-Id, injetado automaticamente pelo interceptor do Axios.\nexport async function apiConcluirCrmTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.concluirCrm.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.concluirCrm.method,\n });\n}\n"],"names":["endpointConfig"],"mappings":";;AAeA,MAAM,kCAAkCA,yBAAe,WAAW;AAElE,eAAsB,oBAAoB,MAAmC;AACzE,SAAO,WAAW,mBAAmC;AAAA,IACjD,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,IACj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G;AAAA,IACxE,QAAQ,gCAAgC,aAAa;AAAA,EAAA,CACxD;AACL;AAGA,eAAsB,yCAAyC,YAAoB;AAC/E,SAAO,WAAW,mBAA+F;AAAA,IAC7G,KAAK,gCAAgC,yBAAyB,WAAW,eAAe,UAAU;AAAA,IAClG,QAAQ,gCAAgC,yBAAyB;AAAA,EAAA,CACpE;AACL;AAGA,eAAsB,2CAA2C,YAAoB;AACjF,SAAO,WAAW,mBAAiG;AAAA,IAC/G,KAAK,gCAAgC,2BAA2B,WAAW,eAAe,UAAU;AAAA,IACpG,QAAQ,gCAAgC,2BAA2B;AAAA,EAAA,CACtE;AACL;AAEA,eAAsB,8BAA8B;AAChD,SAAO,WAAW,mBAAyD;AAAA,IACvE,KAAK,gCAAgC,eAAe;AAAA,IACpD,QAAQ,gCAAgC,eAAe;AAAA,EAAA,CAC1D;AACL;AAIA,eAAsB,4BAA4B,IAAY;AAC1D,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,YAAY,WAAW,GAAG,EAAE;AAAA,IACjE,QAAQ,gCAAgC,YAAY;AAAA,EAAA,CACvD;AACL;"}
|
|
@@ -58,6 +58,13 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
61
|
+
html {
|
|
62
|
+
/* Reserva o espaço da scrollbar mesmo quando ausente (ex.: body com
|
|
63
|
+
overflow:hidden ao abrir Drawer/Modal), evitando o salto de layout
|
|
64
|
+
quando a barra desaparece/reaparece. */
|
|
65
|
+
scrollbar-gutter: stable;
|
|
66
|
+
}
|
|
67
|
+
|
|
61
68
|
body {
|
|
62
69
|
@apply bg-gray-100 text-sm font-medium leading-normal text-gray-500 dark:bg-gray-950 dark:text-gray-400;
|
|
63
70
|
-webkit-font-smoothing: antialiased;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
TTipoAssinaturaTermoFunrural,
|
|
3
|
+
TTipoRecolhimentoTermoFunrural,
|
|
4
|
+
} from '../../../models/originacao/termoFunrural'
|
|
5
|
+
|
|
6
|
+
export type TCreateTermoFunruralRequest = {
|
|
7
|
+
produtorId: number
|
|
8
|
+
tipoAssinatura: TTipoAssinaturaTermoFunrural
|
|
9
|
+
tipoRecolhimento: TTipoRecolhimentoTermoFunrural
|
|
10
|
+
tipoVigencia?: 'ANUAL' | 'VITALICIO'
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disponibilidade de uma opção do Termo de Funrural (tipo de assinatura ou de recolhimento).
|
|
3
|
+
* Quando `habilitado` é false, `motivo` explica por que a opção não pode ser escolhida.
|
|
4
|
+
*/
|
|
5
|
+
export type TDisponibilidadeOpcaoTermoFunruralResponse<TOpcao extends string = string> = {
|
|
6
|
+
opcao: TOpcao
|
|
7
|
+
habilitado: boolean
|
|
8
|
+
motivo: string | null
|
|
9
|
+
}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
export type TTipoAssinaturaTermoFunrural = 'DIGITAL' | 'FISICA'
|
|
2
|
+
|
|
3
|
+
export type TTipoRecolhimentoTermoFunrural = 'PRODUCAO' | 'FOLHA_PAGAMENTO'
|
|
4
|
+
|
|
1
5
|
export type TTermoFunrural = {
|
|
2
6
|
id?: number,
|
|
3
|
-
cpfCnpj
|
|
7
|
+
cpfCnpj?: string
|
|
8
|
+
cpf?: string | null
|
|
9
|
+
cnpj?: string | null
|
|
4
10
|
produtorId?: number
|
|
5
|
-
tipoAssinatura?:
|
|
6
|
-
tipoRecolhimento?:
|
|
11
|
+
tipoAssinatura?: TTipoAssinaturaTermoFunrural | null
|
|
12
|
+
tipoRecolhimento?: TTipoRecolhimentoTermoFunrural | null
|
|
7
13
|
// Termo de Funrural é vitalício desde a melhoria OA-2000; ANUAL é mantido apenas para leitura de registros legados.
|
|
8
14
|
tipoVigencia?: 'ANUAL' | 'VITALICIO' | null
|
|
15
|
+
statusTermoFunrural?: string | null
|
|
9
16
|
statusCrm?: 'AGUARDANDO_ATUALIZACAO' | 'CONCLUIDO_SAP_ORBEAGRO' | null
|
|
17
|
+
motivo?: string | null
|
|
18
|
+
contratoId?: number | null
|
|
19
|
+
dataCriacao?: string | null
|
|
10
20
|
}
|
|
@@ -2,9 +2,11 @@ const TERMO_FUNRURAL_URL = '/originacao/api/termo-funrural'
|
|
|
2
2
|
|
|
3
3
|
const termoFunrural = {
|
|
4
4
|
add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'post' },
|
|
5
|
-
findOne: { endpoint: `${TERMO_FUNRURAL_URL}
|
|
5
|
+
findOne: { endpoint: `${TERMO_FUNRURAL_URL}/`, method: 'get' },
|
|
6
6
|
findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },
|
|
7
7
|
existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: 'get' },
|
|
8
|
+
verificarTiposAssinatura: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-assinatura`, method: 'get' },
|
|
9
|
+
verificarTiposRecolhimento: { endpoint: `${TERMO_FUNRURAL_URL}/verificar-tipos-recolhimento`, method: 'get' },
|
|
8
10
|
findAllMetrics: { endpoint: `${TERMO_FUNRURAL_URL}/metrics`, method: 'get' },
|
|
9
11
|
cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },
|
|
10
12
|
reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import { IFilterParams, TQueryResponse } from '@base/@types/api'
|
|
2
1
|
import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
|
|
3
2
|
import ApiService from '@/services/ApiService'
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
// Os tipos usam caminhos relativos para que o .d.ts gerado resolva nos projetos que consomem a lib
|
|
4
|
+
// (o alias @base não existe fora do client-core e deixaria as assinaturas como `any`).
|
|
5
|
+
import type { TQueryResponse } from '../../../../@types/api'
|
|
6
|
+
import type {
|
|
7
|
+
TTermoFunrural,
|
|
8
|
+
TTipoAssinaturaTermoFunrural,
|
|
9
|
+
TTipoRecolhimentoTermoFunrural,
|
|
10
|
+
} from '../../../../@types/models/originacao/termoFunrural';
|
|
11
|
+
import type { TCreateTermoFunruralRequest } from '../../../../@types/api/request/originacao/TCreateTermoFunruralRequest';
|
|
12
|
+
import type { TExisteTermoFunruralResponse } from '../../../../@types/api/response/originacao/TExisteTermoFunruralResponse';
|
|
13
|
+
import type { TDisponibilidadeOpcaoTermoFunruralResponse } from '../../../../@types/api/response/originacao/TDisponibilidadeOpcaoTermoFunruralResponse';
|
|
14
|
+
import type { TFindAllMetricsTermoFunruralResponse } from '../../../../@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse';
|
|
6
15
|
|
|
7
16
|
const TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;
|
|
8
17
|
|
|
9
|
-
export async function apiAddTermoFunrural(body:
|
|
10
|
-
return ApiService.fetchDataWithAxios<
|
|
18
|
+
export async function apiAddTermoFunrural(body: TCreateTermoFunruralRequest) {
|
|
19
|
+
return ApiService.fetchDataWithAxios<TTermoFunrural>({
|
|
11
20
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,
|
|
12
21
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,
|
|
13
22
|
data: body,
|
|
@@ -44,19 +53,19 @@ export async function apiReprovarTermoFunrural(id: number, motivo: string) {
|
|
|
44
53
|
});
|
|
45
54
|
}
|
|
46
55
|
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
// O backend responde 204 e exige corpo (AprovarTermoFunruralRequest), mesmo com o motivo opcional.
|
|
57
|
+
export async function apiAprovarTermoFunrural(id: number, motivo?: string) {
|
|
58
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
49
59
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,
|
|
50
60
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,
|
|
51
|
-
data: {
|
|
61
|
+
data: { motivo: motivo ?? null },
|
|
52
62
|
});
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
export async function apiReabrirTermoFunrural(id: number) {
|
|
56
|
-
return ApiService.fetchDataWithAxios<
|
|
66
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
57
67
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,
|
|
58
68
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,
|
|
59
|
-
data: { id },
|
|
60
69
|
});
|
|
61
70
|
}
|
|
62
71
|
|
|
@@ -73,12 +82,28 @@ export async function apiUploadArquivoAssinado(id: number, formData: FormData) {
|
|
|
73
82
|
|
|
74
83
|
// Termo de Funrural é vitalício (OA-2000): a checagem agora considera apenas o CPF, sem recorte por ano.
|
|
75
84
|
export async function apiExistePorCpfTermoFunrural(cpf: string) {
|
|
76
|
-
return ApiService.fetchDataWithAxios<
|
|
85
|
+
return ApiService.fetchDataWithAxios<TExisteTermoFunruralResponse>({
|
|
77
86
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}`,
|
|
78
87
|
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,
|
|
79
88
|
});
|
|
80
89
|
}
|
|
81
90
|
|
|
91
|
+
// Informa quais tipos de assinatura (envio) o produtor pode escolher ao emitir o termo e, para os bloqueados, o motivo.
|
|
92
|
+
export async function apiVerificarTiposAssinaturaTermoFunrural(produtorId: number) {
|
|
93
|
+
return ApiService.fetchDataWithAxios<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoAssinaturaTermoFunrural>[]>({
|
|
94
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.endpoint + `?produtorId=${produtorId}`,
|
|
95
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposAssinatura.method,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Informa quais tipos de recolhimento o produtor pode escolher ao emitir o termo e, para os bloqueados, o motivo.
|
|
100
|
+
export async function apiVerificarTiposRecolhimentoTermoFunrural(produtorId: number) {
|
|
101
|
+
return ApiService.fetchDataWithAxios<TDisponibilidadeOpcaoTermoFunruralResponse<TTipoRecolhimentoTermoFunrural>[]>({
|
|
102
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.endpoint + `?produtorId=${produtorId}`,
|
|
103
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.verificarTiposRecolhimento.method,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
82
107
|
export async function apiFindTermoFunruralMetrics() {
|
|
83
108
|
return ApiService.fetchDataWithAxios<TFindAllMetricsTermoFunruralResponse>({
|
|
84
109
|
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,
|
package/package.json
CHANGED