@orbe-agro/client-core 5.3.168 → 5.3.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/base/@types/models/racao/contratoCredito.d.ts +3 -0
- package/dist/@types/base/@types/models/racao/contratoCredito.d.ts.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +0 -3
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/racao/config/contratoCredito.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/racao/config/contratoCredito.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts.map +1 -1
- package/dist/@types/base/services/modules/racao/contratoCredito/ContratoCreditoService.d.ts +2 -1
- package/dist/@types/base/services/modules/racao/contratoCredito/ContratoCreditoService.d.ts.map +1 -1
- package/dist/base/@types/models/racao/contratoCredito.js.map +1 -1
- package/dist/base/configs/api.config.js +13 -8
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/configs/endpoints.config/racao/config/contratoCredito.js +1 -0
- package/dist/base/configs/endpoints.config/racao/config/contratoCredito.js.map +1 -1
- package/dist/base/services/modules/racao/contratoCredito/ContratoCreditoService.js +17 -9
- package/dist/base/services/modules/racao/contratoCredito/ContratoCreditoService.js.map +1 -1
- package/lib/base/@types/models/racao/contratoCredito.ts +4 -0
- package/lib/base/configs/api.config.ts +15 -1
- package/lib/base/configs/endpoints.config/racao/config/contratoCredito.ts +1 -0
- package/lib/base/services/modules/racao/contratoCredito/ContratoCreditoService.ts +9 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoCredito.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/racao/contratoCredito.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,gBAAgB,GAAG,MAAM,CAAA;IAC3C,cAAc,EAAE,cAAc,GAAG,MAAM,CAAA;IACvC,kBAAkB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACnC,CAAA"}
|
|
1
|
+
{"version":3,"file":"contratoCredito.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/racao/contratoCredito.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,gBAAgB,GAAG,MAAM,CAAA;IAC3C,cAAc,EAAE,cAAc,GAAG,MAAM,CAAA;IACvC,kBAAkB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../../../lib/base/configs/api.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../../../lib/base/configs/api.config.ts"],"names":[],"mappings":"AAmDA,eAAO,MAAM,OAAO,QAAc,CAAA;AAElC,eAAO,MAAM,kBAAkB,KAA8C,CAAA;AAC7E,eAAO,MAAM,iBAAiB,KAA6C,CAAA;AAE3E,QAAA,MAAM,SAAS;;;;;;;CAOd,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -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,CAAC;AAEhC,QAAA,MAAM,wBAAwB
|
|
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,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoCredito.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/racao/config/contratoCredito.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"contratoCredito.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/racao/config/contratoCredito.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"racao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/racao/racao.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"racao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/racao/racao.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaV,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
-
import { TContratoCredito } from "@base/@types/models/racao/contratoCredito";
|
|
2
|
+
import { TAcoesContratoCredito, TContratoCredito } from "@base/@types/models/racao/contratoCredito";
|
|
3
3
|
export declare function apiGetRacaoContratoCredito(id: number): Promise<TContratoCredito>;
|
|
4
4
|
export declare function apiAddRacaoContratoCredito(body: TContratoCredito): Promise<TQueryResponse<TContratoCredito>>;
|
|
5
5
|
export declare function apiUpdateRacaoContratoCredito(body: TContratoCredito): Promise<TQueryResponse<TContratoCredito>>;
|
|
6
6
|
export declare function apiDeleteRacaoContratoCredito(id: number): Promise<TQueryResponse<TContratoCredito>>;
|
|
7
|
+
export declare function apiConvertAssinaturaRacaoContratoCredito(id: number, motivo: string): Promise<TQueryResponse<TAcoesContratoCredito>>;
|
|
7
8
|
export declare function apiFindMonitorRacaoContratoCredito(body?: IFilterParams): Promise<TQueryResponse<TContratoCredito>>;
|
|
8
9
|
export declare function apiUploadRacaoContratoCredito(formData: FormData, id: number): Promise<any>;
|
|
9
10
|
//# sourceMappingURL=ContratoCreditoService.d.ts.map
|
package/dist/@types/base/services/modules/racao/contratoCredito/ContratoCreditoService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContratoCreditoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/contratoCredito/ContratoCreditoService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"ContratoCreditoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/contratoCredito/ContratoCreditoService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAKpG,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,MAAM,6BAK1D;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,gBAAgB,6CAMtE;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,6CAMzE;AAED,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,MAAM,6CAK7D;AAED,wBAAsB,wCAAwC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kDAMxF;AAED,wBAAsB,kCAAkC,CAAC,IAAI,CAAC,EAAE,aAAa,6CAM5E;AAED,wBAAsB,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,gBASjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoCredito.js","sources":["../../../../../lib/base/@types/models/racao/contratoCredito.ts"],"sourcesContent":["export enum StatusAssinatura {\n ENVIADO = 'ENVIADO',\n PENDENTE = 'PENDENTE',\n}\n\nexport enum TipoAssinatura {\n FISICO = 'FISICO',\n DIGITAL = 'DIGITAL',\n}\n\nexport type TContratoCreditoColumnDef = {\n id: number\n dataCriacao: string\n usuarioCriacaoId: number\n usuarioCriacaoNome: string\n statusAssinatura: StatusAssinatura | string\n tipoAssinatura: TipoAssinatura | string\n envelopeDocusignId: string\n}\n\nexport type TContratoCredito = {\n id?: number\n clienteId: number\n limiteCredito: number\n arquivoContratoId?: number | null\n arquivoContratoAssinadoId?: number | null\n tipoAssinatura?: string | null\n nomeTestemunha?: string\n emailTestemunha?: string\n cpfTestemunha?: string\n motivoTransferenciaAssinatura?: string | null\n mudouTipoAssinatura?: boolean\n envelopeDocusignId?: string | null\n statusAssinatura?: string | null\n}"],"names":["StatusAssinatura","TipoAssinatura"],"mappings":"AAAY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,WAAW,YAFHA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,SAAS,UACTA,EAAA,UAAU,WAFFA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"contratoCredito.js","sources":["../../../../../lib/base/@types/models/racao/contratoCredito.ts"],"sourcesContent":["export enum StatusAssinatura {\n ENVIADO = 'ENVIADO',\n PENDENTE = 'PENDENTE',\n}\n\nexport enum TipoAssinatura {\n FISICO = 'FISICO',\n DIGITAL = 'DIGITAL',\n}\n\nexport type TContratoCreditoColumnDef = {\n id: number\n dataCriacao: string\n usuarioCriacaoId: number\n usuarioCriacaoNome: string\n statusAssinatura: StatusAssinatura | string\n tipoAssinatura: TipoAssinatura | string\n envelopeDocusignId: string\n}\n\nexport type TContratoCredito = {\n id?: number\n clienteId: number\n limiteCredito: number\n arquivoContratoId?: number | null\n arquivoContratoAssinadoId?: number | null\n tipoAssinatura?: string | null\n nomeTestemunha?: string\n emailTestemunha?: string\n cpfTestemunha?: string\n motivoTransferenciaAssinatura?: string | null\n mudouTipoAssinatura?: boolean\n envelopeDocusignId?: string | null\n statusAssinatura?: string | null\n}\n\nexport type TAcoesContratoCredito = {\n motivo: string\n}"],"names":["StatusAssinatura","TipoAssinatura"],"mappings":"AAAY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,WAAW,YAFHA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,SAAS,UACTA,EAAA,UAAU,WAFFA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const t = "production", i = "http://localhost:8081", o = "http://172.16.14.27:30001", e = () => {
|
|
2
|
+
if (t === "development" || !o)
|
|
3
|
+
return i;
|
|
4
|
+
const n = globalThis?.location?.origin;
|
|
5
|
+
return n && (n.includes(":5173") || n.includes(":31000")) ? n.replace(":5173", ":8081").replace(":31000", ":30001") ?? o : "https://gateway.apps.prd.orbeagro.com.br";
|
|
6
|
+
}, r = e(), c = void 0, s = void 0, p = {
|
|
7
|
+
API_URL: r,
|
|
3
8
|
GOOGLE_MAP_API_KEY: c,
|
|
4
|
-
GOOGLE_MAP_MAP_ID:
|
|
5
|
-
NODE_ENV:
|
|
6
|
-
DEV_API_URL:
|
|
9
|
+
GOOGLE_MAP_MAP_ID: s,
|
|
10
|
+
NODE_ENV: t,
|
|
11
|
+
DEV_API_URL: i,
|
|
7
12
|
BUILD_API_URL: o
|
|
8
13
|
};
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
r as API_URL,
|
|
11
16
|
c as GOOGLE_MAP_API_KEY,
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
s as GOOGLE_MAP_MAP_ID,
|
|
18
|
+
p as default
|
|
14
19
|
};
|
|
15
20
|
//# sourceMappingURL=api.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\nconst BUILD_API_URL = import.meta.env.VITE_APP_API_URL\n\n/**\n * @desc Endereço atual da API.\n **/\n\
|
|
1
|
+
{"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\nconst BUILD_API_URL = import.meta.env.VITE_APP_API_URL\n\n/**\n * @desc Endereço atual da API.\n **/\n\nconst getApiUrl = (): string => {\n if (NODE_ENV === 'development' || !BUILD_API_URL) {\n return DEV_API_URL\n }\n \n const origin = globalThis?.location?.origin\n if (origin && (origin.includes(':5173') || origin.includes(':31000'))) {\n const modifiedOrigin = origin.replace(':5173', ':8081').replace(':31000', ':30001')\n return modifiedOrigin ?? BUILD_API_URL\n }\n \n return 'https://gateway.apps.prd.orbeagro.com.br'\n}\n\nexport const API_URL = getApiUrl()\n\nexport const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY\nexport const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID\n\nconst apiConfig = {\n API_URL,\n GOOGLE_MAP_API_KEY,\n GOOGLE_MAP_MAP_ID,\n NODE_ENV,\n DEV_API_URL,\n BUILD_API_URL,\n}\n\nexport default apiConfig\n"],"names":["NODE_ENV","DEV_API_URL","BUILD_API_URL","getApiUrl","origin","API_URL","GOOGLE_MAP_API_KEY","GOOGLE_MAP_MAP_ID","apiConfig"],"mappings":"AAOA,MAAMA,IAAW,cAWXC,IAAc,yBAadC,IAAgB,6BAMhBC,IAAY,MAAc;AACxB,MAAAH,MAAa,iBAAiB,CAACE;AACxB,WAAAD;AAGL,QAAAG,IAAS,YAAY,UAAU;AACjC,SAAAA,MAAWA,EAAO,SAAS,OAAO,KAAKA,EAAO,SAAS,QAAQ,KACxCA,EAAO,QAAQ,SAAS,OAAO,EAAE,QAAQ,UAAU,QAAQ,KACzDF,IAGtB;AACX,GAEaG,IAAUF,EAAU,GAEpBG,IAAqB,QACrBC,IAAoB,QAE3BC,IAAY;AAAA,EACd,SAAAH;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,UAAAP;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AACJ;"}
|
|
@@ -3,6 +3,7 @@ const o = "/racao/api/racao/contrato-credito", t = {
|
|
|
3
3
|
add: { endpoint: `${o}`, method: "post" },
|
|
4
4
|
update: { endpoint: `${o}`, method: "put" },
|
|
5
5
|
delete: { endpoint: `${o}/`, method: "delete" },
|
|
6
|
+
converAssinatura: { endpoint: `${o}/convert-assinatura/`, method: "post" },
|
|
6
7
|
findMonitor: { endpoint: `${o}/find-monitor`, method: "post" },
|
|
7
8
|
upload: { endpoint: `${o}/upload-arquivo/`, method: "post" }
|
|
8
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contratoCredito.js","sources":["../../../../../../lib/base/configs/endpoints.config/racao/config/contratoCredito.ts"],"sourcesContent":["const CONTRATO_CREDITO_BASE_URL = '/racao/api/racao/contrato-credito'\n\nconst contratoCredito = {\n findOne: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/`, method: 'get' },\n add: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'post' },\n update: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'put' },\n delete: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/`, method: 'delete' },\n findMonitor: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/find-monitor`, method: 'post' },\n upload: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/upload-arquivo/`, method: 'post' },\n}\n\nexport default contratoCredito"],"names":["CONTRATO_CREDITO_BASE_URL","contratoCredito"],"mappings":"AAAA,MAAMA,IAA4B,qCAE5BC,IAAkB;AAAA,EACpB,SAAS,EAAE,UAAU,GAAGD,CAAyB,KAAK,QAAQ,MAAM;AAAA,EACpE,KAAK,EAAE,UAAU,GAAGA,CAAyB,IAAI,QAAQ,OAAO;AAAA,EAChE,QAAQ,EAAE,UAAU,GAAGA,CAAyB,IAAI,QAAQ,MAAM;AAAA,EAClE,QAAQ,EAAE,UAAU,GAAGA,CAAyB,KAAK,QAAQ,SAAS;AAAA,EACtE,aAAa,EAAE,UAAU,GAAGA,CAAyB,iBAAiB,QAAQ,OAAO;AAAA,EACrF,QAAQ,EAAE,UAAU,GAAGA,CAAyB,oBAAoB,QAAQ,OAAO;AACvF;"}
|
|
1
|
+
{"version":3,"file":"contratoCredito.js","sources":["../../../../../../lib/base/configs/endpoints.config/racao/config/contratoCredito.ts"],"sourcesContent":["const CONTRATO_CREDITO_BASE_URL = '/racao/api/racao/contrato-credito'\n\nconst contratoCredito = {\n findOne: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/`, method: 'get' },\n add: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'post' },\n update: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'put' },\n delete: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/`, method: 'delete' },\n converAssinatura: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/convert-assinatura/`, method: 'post' },\n findMonitor: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/find-monitor`, method: 'post' },\n upload: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/upload-arquivo/`, method: 'post' },\n}\n\nexport default contratoCredito"],"names":["CONTRATO_CREDITO_BASE_URL","contratoCredito"],"mappings":"AAAA,MAAMA,IAA4B,qCAE5BC,IAAkB;AAAA,EACpB,SAAS,EAAE,UAAU,GAAGD,CAAyB,KAAK,QAAQ,MAAM;AAAA,EACpE,KAAK,EAAE,UAAU,GAAGA,CAAyB,IAAI,QAAQ,OAAO;AAAA,EAChE,QAAQ,EAAE,UAAU,GAAGA,CAAyB,IAAI,QAAQ,MAAM;AAAA,EAClE,QAAQ,EAAE,UAAU,GAAGA,CAAyB,KAAK,QAAQ,SAAS;AAAA,EACtE,kBAAkB,EAAE,UAAU,GAAGA,CAAyB,wBAAwB,QAAQ,OAAO;AAAA,EACjG,aAAa,EAAE,UAAU,GAAGA,CAAyB,iBAAiB,QAAQ,OAAO;AAAA,EACrF,QAAQ,EAAE,UAAU,GAAGA,CAAyB,oBAAoB,QAAQ,OAAO;AACvF;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
-
import
|
|
3
|
-
const t =
|
|
2
|
+
import e from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const t = e.racao.contratoCredito;
|
|
4
4
|
async function r(o) {
|
|
5
5
|
return a.fetchDataWithAxios({
|
|
6
6
|
url: t.findOne.endpoint + `${o}`,
|
|
@@ -21,22 +21,29 @@ async function h(o) {
|
|
|
21
21
|
data: o
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
async function
|
|
24
|
+
async function u(o) {
|
|
25
25
|
return a.fetchDataWithAxios({
|
|
26
26
|
url: t.delete.endpoint + `${o}`,
|
|
27
27
|
method: t.delete.method
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
async function
|
|
30
|
+
async function p(o, n) {
|
|
31
|
+
return a.fetchDataWithAxios({
|
|
32
|
+
url: t.converAssinatura.endpoint + `${o}`,
|
|
33
|
+
method: t.converAssinatura.method,
|
|
34
|
+
data: { motivo: n }
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async function f(o) {
|
|
31
38
|
return a.fetchDataWithAxios({
|
|
32
39
|
url: t.findMonitor.endpoint,
|
|
33
40
|
method: t.findMonitor.method,
|
|
34
41
|
data: o
|
|
35
42
|
});
|
|
36
43
|
}
|
|
37
|
-
async function
|
|
44
|
+
async function s(o, n) {
|
|
38
45
|
return a.fetchDataWithAxios({
|
|
39
|
-
url: t.upload.endpoint + `${
|
|
46
|
+
url: t.upload.endpoint + `${n}`,
|
|
40
47
|
method: t.upload.method,
|
|
41
48
|
data: o,
|
|
42
49
|
headers: {
|
|
@@ -46,10 +53,11 @@ async function f(o, e) {
|
|
|
46
53
|
}
|
|
47
54
|
export {
|
|
48
55
|
c as apiAddRacaoContratoCredito,
|
|
49
|
-
p as
|
|
50
|
-
u as
|
|
56
|
+
p as apiConvertAssinaturaRacaoContratoCredito,
|
|
57
|
+
u as apiDeleteRacaoContratoCredito,
|
|
58
|
+
f as apiFindMonitorRacaoContratoCredito,
|
|
51
59
|
r as apiGetRacaoContratoCredito,
|
|
52
60
|
h as apiUpdateRacaoContratoCredito,
|
|
53
|
-
|
|
61
|
+
s as apiUploadRacaoContratoCredito
|
|
54
62
|
};
|
|
55
63
|
//# sourceMappingURL=ContratoCreditoService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContratoCreditoService.js","sources":["../../../../../../lib/base/services/modules/racao/contratoCredito/ContratoCreditoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TContratoCredito } from \"@base/@types/models/racao/contratoCredito\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CONTRATO_CREDITO_ENDPOINT = endpointConfig.racao.contratoCredito;\n\nexport async function apiGetRacaoContratoCredito(id: number) {\n return ApiService.fetchDataWithAxios<TContratoCredito>({\n url: CONTRATO_CREDITO_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoContratoCredito(body: TContratoCredito) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.add.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoContratoCredito(body: TContratoCredito) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.update.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoContratoCredito(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.delete.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorRacaoContratoCredito(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.findMonitor.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiUploadRacaoContratoCredito(formData: FormData, id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: CONTRATO_CREDITO_ENDPOINT.upload.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.upload.method,\n data: formData as any,\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n}\n"],"names":["CONTRATO_CREDITO_ENDPOINT","endpointConfig","apiGetRacaoContratoCredito","id","ApiService","apiAddRacaoContratoCredito","body","apiUpdateRacaoContratoCredito","apiDeleteRacaoContratoCredito","apiFindMonitorRacaoContratoCredito","apiUploadRacaoContratoCredito","formData"],"mappings":";;AAKA,MAAMA,IAA4BC,EAAe,MAAM;AAEvD,eAAsBC,EAA2BC,GAAY;AACzD,SAAOC,EAAW,mBAAqC;AAAA,IACnD,KAAKJ,EAA0B,QAAQ,WAAW,GAAGG,CAAE;AAAA,IACvD,QAAQH,EAA0B,QAAQ;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsBK,EAA2BC,GAAwB;AACrE,SAAOF,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,IAAI;AAAA,IACnC,QAAQA,EAA0B,IAAI;AAAA,IACtC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA8BD,GAAwB;AACxE,SAAOF,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,OAAO;AAAA,IACtC,QAAQA,EAA0B,OAAO;AAAA,IACzC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAA8BL,GAAY;AAC5D,SAAOC,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,OAAO,WAAW,GAAGG,CAAE;AAAA,IACtD,QAAQH,EAA0B,OAAO;AAAA,EAAA,CAC5C;AACL;AAEA,
|
|
1
|
+
{"version":3,"file":"ContratoCreditoService.js","sources":["../../../../../../lib/base/services/modules/racao/contratoCredito/ContratoCreditoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAcoesContratoCredito, TContratoCredito } from \"@base/@types/models/racao/contratoCredito\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CONTRATO_CREDITO_ENDPOINT = endpointConfig.racao.contratoCredito;\n\nexport async function apiGetRacaoContratoCredito(id: number) {\n return ApiService.fetchDataWithAxios<TContratoCredito>({\n url: CONTRATO_CREDITO_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoContratoCredito(body: TContratoCredito) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.add.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoContratoCredito(body: TContratoCredito) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.update.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoContratoCredito(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.delete.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiConvertAssinaturaRacaoContratoCredito(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.converAssinatura.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.converAssinatura.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiFindMonitorRacaoContratoCredito(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({\n url: CONTRATO_CREDITO_ENDPOINT.findMonitor.endpoint,\n method: CONTRATO_CREDITO_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiUploadRacaoContratoCredito(formData: FormData, id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: CONTRATO_CREDITO_ENDPOINT.upload.endpoint + `${id}`,\n method: CONTRATO_CREDITO_ENDPOINT.upload.method,\n data: formData as any,\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n}\n"],"names":["CONTRATO_CREDITO_ENDPOINT","endpointConfig","apiGetRacaoContratoCredito","id","ApiService","apiAddRacaoContratoCredito","body","apiUpdateRacaoContratoCredito","apiDeleteRacaoContratoCredito","apiConvertAssinaturaRacaoContratoCredito","motivo","apiFindMonitorRacaoContratoCredito","apiUploadRacaoContratoCredito","formData"],"mappings":";;AAKA,MAAMA,IAA4BC,EAAe,MAAM;AAEvD,eAAsBC,EAA2BC,GAAY;AACzD,SAAOC,EAAW,mBAAqC;AAAA,IACnD,KAAKJ,EAA0B,QAAQ,WAAW,GAAGG,CAAE;AAAA,IACvD,QAAQH,EAA0B,QAAQ;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsBK,EAA2BC,GAAwB;AACrE,SAAOF,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,IAAI;AAAA,IACnC,QAAQA,EAA0B,IAAI;AAAA,IACtC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA8BD,GAAwB;AACxE,SAAOF,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,OAAO;AAAA,IACtC,QAAQA,EAA0B,OAAO;AAAA,IACzC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAA8BL,GAAY;AAC5D,SAAOC,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,OAAO,WAAW,GAAGG,CAAE;AAAA,IACtD,QAAQH,EAA0B,OAAO;AAAA,EAAA,CAC5C;AACL;AAEsB,eAAAS,EAAyCN,GAAYO,GAAgB;AACvF,SAAON,EAAW,mBAA0D;AAAA,IACxE,KAAKJ,EAA0B,iBAAiB,WAAW,GAAGG,CAAE;AAAA,IAChE,QAAQH,EAA0B,iBAAiB;AAAA,IACnD,MAAM,EAAE,QAAAU,EAAe;AAAA,EAAA,CAC1B;AACL;AAEA,eAAsBC,EAAmCL,GAAsB;AAC3E,SAAOF,EAAW,mBAAqD;AAAA,IACnE,KAAKJ,EAA0B,YAAY;AAAA,IAC3C,QAAQA,EAA0B,YAAY;AAAA,IAC9C,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAM,EAA8BC,GAAoBV,GAAY;AAChF,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAA0B,OAAO,WAAW,GAAGG,CAAE;AAAA,IACtD,QAAQH,EAA0B,OAAO;AAAA,IACzC,MAAMa;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
|
|
@@ -35,7 +35,21 @@ const BUILD_API_URL = import.meta.env.VITE_APP_API_URL
|
|
|
35
35
|
* @desc Endereço atual da API.
|
|
36
36
|
**/
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
const getApiUrl = (): string => {
|
|
39
|
+
if (NODE_ENV === 'development' || !BUILD_API_URL) {
|
|
40
|
+
return DEV_API_URL
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const origin = globalThis?.location?.origin
|
|
44
|
+
if (origin && (origin.includes(':5173') || origin.includes(':31000'))) {
|
|
45
|
+
const modifiedOrigin = origin.replace(':5173', ':8081').replace(':31000', ':30001')
|
|
46
|
+
return modifiedOrigin ?? BUILD_API_URL
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return 'https://gateway.apps.prd.orbeagro.com.br'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const API_URL = getApiUrl()
|
|
39
53
|
|
|
40
54
|
export const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY
|
|
41
55
|
export const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID
|
|
@@ -5,6 +5,7 @@ const contratoCredito = {
|
|
|
5
5
|
add: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'post' },
|
|
6
6
|
update: { endpoint: `${CONTRATO_CREDITO_BASE_URL}`, method: 'put' },
|
|
7
7
|
delete: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/`, method: 'delete' },
|
|
8
|
+
converAssinatura: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/convert-assinatura/`, method: 'post' },
|
|
8
9
|
findMonitor: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/find-monitor`, method: 'post' },
|
|
9
10
|
upload: { endpoint: `${CONTRATO_CREDITO_BASE_URL}/upload-arquivo/`, method: 'post' },
|
|
10
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ApiService from "@/services/ApiService";
|
|
2
2
|
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
3
|
-
import { TContratoCredito } from "@base/@types/models/racao/contratoCredito";
|
|
3
|
+
import { TAcoesContratoCredito, TContratoCredito } from "@base/@types/models/racao/contratoCredito";
|
|
4
4
|
import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
|
|
5
5
|
|
|
6
6
|
const CONTRATO_CREDITO_ENDPOINT = endpointConfig.racao.contratoCredito;
|
|
@@ -35,6 +35,14 @@ export async function apiDeleteRacaoContratoCredito(id: number) {
|
|
|
35
35
|
})
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export async function apiConvertAssinaturaRacaoContratoCredito(id: number, motivo: string) {
|
|
39
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesContratoCredito>>({
|
|
40
|
+
url: CONTRATO_CREDITO_ENDPOINT.converAssinatura.endpoint + `${id}`,
|
|
41
|
+
method: CONTRATO_CREDITO_ENDPOINT.converAssinatura.method,
|
|
42
|
+
data: { motivo: motivo }
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
export async function apiFindMonitorRacaoContratoCredito(body?: IFilterParams) {
|
|
39
47
|
return ApiService.fetchDataWithAxios<TQueryResponse<TContratoCredito>>({
|
|
40
48
|
url: CONTRATO_CREDITO_ENDPOINT.findMonitor.endpoint,
|
package/package.json
CHANGED