@orbe-agro/client-core 5.3.201 → 5.3.202
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/crm/DadosFazenda.d.ts +37 -0
- package/dist/@types/base/@types/models/crm/DadosFazenda.d.ts.map +1 -0
- package/dist/@types/base/@types/models/crm/DadosUnificados.d.ts +51 -0
- package/dist/@types/base/@types/models/crm/DadosUnificados.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/Docusign/config/contratoDocusign.d.ts +9 -0
- package/dist/@types/base/configs/endpoints.config/Docusign/config/contratoDocusign.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/Docusign/index.d.ts +6 -0
- package/dist/@types/base/configs/endpoints.config/Docusign/index.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosFazendaCrm.d.ts +21 -0
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosFazendaCrm.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosSeloSocialCrm.d.ts +17 -0
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosSeloSocialCrm.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosUnificados.d.ts +17 -0
- package/dist/@types/base/configs/endpoints.config/crm/config/dadosUnificados.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/crm/crm.d.ts +46 -0
- package/dist/@types/base/configs/endpoints.config/crm/crm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +60 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/originacao/config/seloSocial.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/originacao/config/seloSocial.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/Docusign/ContratoService.d.ts +3 -0
- package/dist/@types/base/services/modules/Docusign/ContratoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/crm/DadosFazendaService.d.ts +14 -0
- package/dist/@types/base/services/modules/crm/DadosFazendaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/crm/DadosSeloSocialService.d.ts +10 -0
- package/dist/@types/base/services/modules/crm/DadosSeloSocialService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/crm/DadosUnificadosService.d.ts +12 -0
- package/dist/@types/base/services/modules/crm/DadosUnificadosService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/crm/PerfilUnificadoService.d.ts +1 -0
- package/dist/@types/base/services/modules/crm/PerfilUnificadoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/originacao/seloSocial/SeloSocialService.d.ts +2 -0
- package/dist/@types/base/services/modules/originacao/seloSocial/SeloSocialService.d.ts.map +1 -1
- package/dist/base/@types/models/crm/DadosFazenda.js +2 -0
- package/dist/base/@types/models/crm/DadosFazenda.js.map +1 -0
- package/dist/base/@types/models/crm/DadosUnificados.js +2 -0
- package/dist/base/@types/models/crm/DadosUnificados.js.map +1 -0
- package/dist/base/configs/endpoints.config/Docusign/config/contratoDocusign.js +11 -0
- package/dist/base/configs/endpoints.config/Docusign/config/contratoDocusign.js.map +1 -0
- package/dist/base/configs/endpoints.config/Docusign/index.js +6 -4
- package/dist/base/configs/endpoints.config/Docusign/index.js.map +1 -1
- package/dist/base/configs/endpoints.config/crm/config/dadosFazendaCrm.js +23 -0
- package/dist/base/configs/endpoints.config/crm/config/dadosFazendaCrm.js.map +1 -0
- package/dist/base/configs/endpoints.config/crm/config/dadosSeloSocialCrm.js +19 -0
- package/dist/base/configs/endpoints.config/crm/config/dadosSeloSocialCrm.js.map +1 -0
- package/dist/base/configs/endpoints.config/crm/config/dadosUnificados.js +19 -0
- package/dist/base/configs/endpoints.config/crm/config/dadosUnificados.js.map +1 -0
- package/dist/base/configs/endpoints.config/crm/crm.js +10 -4
- package/dist/base/configs/endpoints.config/crm/crm.js.map +1 -1
- package/dist/base/configs/endpoints.config/originacao/config/seloSocial.js +3 -1
- package/dist/base/configs/endpoints.config/originacao/config/seloSocial.js.map +1 -1
- package/dist/base/index.js +210 -208
- package/dist/base/services/index.js +196 -194
- package/dist/base/services/modules/Docusign/ContratoService.js +13 -0
- package/dist/base/services/modules/Docusign/ContratoService.js.map +1 -0
- package/dist/base/services/modules/crm/DadosFazendaService.js +48 -0
- package/dist/base/services/modules/crm/DadosFazendaService.js.map +1 -0
- package/dist/base/services/modules/crm/DadosSeloSocialService.js +41 -0
- package/dist/base/services/modules/crm/DadosSeloSocialService.js.map +1 -0
- package/dist/base/services/modules/crm/DadosUnificadosService.js +38 -0
- package/dist/base/services/modules/crm/DadosUnificadosService.js.map +1 -0
- package/dist/base/services/modules/crm/PerfilUnificadoService.js +25 -16
- package/dist/base/services/modules/crm/PerfilUnificadoService.js.map +1 -1
- package/dist/base/services/modules/index.js +187 -185
- package/dist/base/services/modules/originacao/index.js +94 -92
- package/dist/base/services/modules/originacao/seloSocial/SeloSocialService.js +30 -11
- package/dist/base/services/modules/originacao/seloSocial/SeloSocialService.js.map +1 -1
- package/lib/base/@types/models/crm/DadosFazenda.ts +37 -0
- package/lib/base/@types/models/crm/DadosUnificados.ts +52 -0
- package/lib/base/configs/endpoints.config/Docusign/config/contratoDocusign.ts +10 -0
- package/lib/base/configs/endpoints.config/Docusign/index.ts +4 -0
- package/lib/base/configs/endpoints.config/crm/config/dadosFazendaCrm.ts +22 -0
- package/lib/base/configs/endpoints.config/crm/config/dadosSeloSocialCrm.ts +18 -0
- package/lib/base/configs/endpoints.config/crm/config/dadosUnificados.ts +18 -0
- package/lib/base/configs/endpoints.config/crm/crm.ts +6 -0
- package/lib/base/configs/endpoints.config/originacao/config/seloSocial.ts +3 -1
- package/lib/base/services/modules/Docusign/ContratoService.ts +10 -0
- package/lib/base/services/modules/crm/DadosFazendaService.ts +46 -0
- package/lib/base/services/modules/crm/DadosSeloSocialService.ts +38 -0
- package/lib/base/services/modules/crm/DadosUnificadosService.ts +36 -0
- package/lib/base/services/modules/crm/PerfilUnificadoService.ts +10 -0
- package/lib/base/services/modules/originacao/seloSocial/SeloSocialService.ts +21 -0
- package/package.json +1 -1
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
import { apiAddSeloSocial as i,
|
|
2
|
-
import { apiAddAssistenciaTecnicaSeloSocial as
|
|
3
|
-
import { apiAddCessaoDireitoCredito as
|
|
4
|
-
import { apiAddHorarioAprovacao as
|
|
5
|
-
import { apiAddVolumeProducaoSeloSocial as
|
|
6
|
-
import { apiAddTaxaCessaoCredito as
|
|
7
|
-
import { apiCreateEmpresa as
|
|
8
|
-
import { apiCreateCorretora as
|
|
9
|
-
import { apiCreateOpcao as
|
|
10
|
-
import { apiCreateAnalisePenhorAlienacao as
|
|
11
|
-
import { apiCreateContratoCompraGraos as
|
|
12
|
-
import { apiFindAllDocketEstados as
|
|
13
|
-
import { apiFindAllCampos as
|
|
14
|
-
import { apiCancelPreContrato as
|
|
15
|
-
import { apiCreatePrecoDia as
|
|
16
|
-
import { apiCreateProdutoCommodity as
|
|
1
|
+
import { apiAddSeloSocial as i, apiChangeToAssinaturaFisica as e, apiFindAllSeloSocial as r, apiFindCounterDigitalSeloSocial as t, apiFindCounterFisicoSeloSocial as p, apiGetSeloSocial as d, apiGetSeloSocialHistoricos as l, apiUpdateSeloSocial as s, apiUploadAssinaturaFisica as n } from "./seloSocial/SeloSocialService.js";
|
|
2
|
+
import { apiAddAssistenciaTecnicaSeloSocial as C, apiFindAllAssistenciaTecnicaSeloSocial as S, apiGetAssistenciaTecnicaSeloSocial as m, apiGetAssistenciaTecnicaSeloSocialHistoricos as A, apiUpdateAssistenciaTecnicaSeloSocial as F } from "./assistenciaTecnicaSeloSocial/AssistenciaTecnicaSeloSocialService.js";
|
|
3
|
+
import { apiAddCessaoDireitoCredito as D, apiFindAllCessaoDireitoCredito as x, apiGetCessaoDireitoCredito as u, apiGetCessaoDireitoCreditoHistoricos as G, apiUpdateCessaoDireitoCredito as f } from "./cessaoDireitoCredito/CessaoDireitoCreditoService.js";
|
|
4
|
+
import { apiAddHorarioAprovacao as U, apiFindMonitorHorarioAprovacaot as T, apiGetHorarioAprovacao as B, apiUpdateHorarioAprovacao as H } from "./adm/horarioAprovacao/HorarioAprovacaoService.js";
|
|
5
|
+
import { apiAddVolumeProducaoSeloSocial as E, apiFindMonitorVolumeProducaoSeloSocial as h, apiGetVolumeProducaoSeloSocial as V, apiGetVolumeProducaoSeloSocialBySafraId as v, apiUpdateVolumeProducaoSeloSocial as O } from "./adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
6
|
+
import { apiAddTaxaCessaoCredito as g, apiDeleteTaxaCessaoCredito as k, apiFindAllTaxaCessaoCredito as L, apiGetTaxaCessaoCredito as b, apiUpdateTaxaCessaoCredito as j } from "./adm/taxaCessaoCredito/TaxaCessaoCreditoService.js";
|
|
7
|
+
import { apiCreateEmpresa as w, apiFindAllEmpresa as z, apiFindByIdEmpresa as J } from "./empresa/empresaService.js";
|
|
8
|
+
import { apiCreateCorretora as N, apiFindAllCorretora as Q } from "./corretora/corretoraService.js";
|
|
9
|
+
import { apiCreateOpcao as W, apiDeleteOpcao as X, apiFindAllOpcoes as Y, apiFindByIdCampo as Z, apiFindHistoricoById as _, apiUpdateOpcao as $ } from "./campo/campoService.js";
|
|
10
|
+
import { apiCreateAnalisePenhorAlienacao as oa, apiFindAllAnalisePenhorAlienacao as ia, apiGetFileDadosPenhores as ea, apiLancarPenhores as ra, apiSendMail as ta, apiUploadFileDadosPenhores as pa } from "./analisePenhorAlienacao/analisePenhorAlienacaoService.js";
|
|
11
|
+
import { apiCreateContratoCompraGraos as la, apiEditContratoCompraGraos as sa, apiFindAllContratoCompraGraos as na, apiFindByIdContratoCompraGraos as ca, apiFindHistoricoByIdContratoCompraGraos as Ca, apiFindSaldoByIdContratoCompraGraos as Sa, apiUpdateStatusContratoCompraGraos as ma } from "./contratoCompraGraos/contratoCompraGraosService.js";
|
|
12
|
+
import { apiFindAllDocketEstados as Fa, apiFindDocketCidadesByEstadoId as Pa } from "./docket/docketService.js";
|
|
13
|
+
import { apiFindAllCampos as xa } from "./formulario/formularioService.js";
|
|
14
|
+
import { apiCancelPreContrato as Ga, apiCreatePreContrato as fa, apiEditPreContrato as ya, apiFindAllPreContrato as Ua, apiFindByIdPreContrato as Ta, apiFindHistoricoByIdPreContrato as Ba, apiUpdateStatusPreContrato as Ha } from "./preContrato/preContratoService.js";
|
|
15
|
+
import { apiCreatePrecoDia as Ea, apiDeletePrecoDia as ha, apiFindAllPrecoDia as Va, apiFindAllPrecoDiaHistoricos as va, apiFindByIdPrecoDia as Oa, apiFindByIdPrecoDiaHistoricos as Ma, apiGenerateTemplatePrecoDia as ga, apiUpdatePrecoDia as ka, apiUpdateStatusPrecoDia as La, apiUploadTemplatePrecoDia as ba } from "./precoDia/precoDiaService.js";
|
|
16
|
+
import { apiCreateProdutoCommodity as qa, apiFindAllProdutoCommodity as wa } from "./produtoCommodity/produtoCommodityService.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
C as apiAddAssistenciaTecnicaSeloSocial,
|
|
19
|
+
D as apiAddCessaoDireitoCredito,
|
|
20
|
+
U as apiAddHorarioAprovacao,
|
|
21
21
|
i as apiAddSeloSocial,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
t as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
T as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
d as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
22
|
+
g as apiAddTaxaCessaoCredito,
|
|
23
|
+
E as apiAddVolumeProducaoSeloSocial,
|
|
24
|
+
Ga as apiCancelPreContrato,
|
|
25
|
+
e as apiChangeToAssinaturaFisica,
|
|
26
|
+
oa as apiCreateAnalisePenhorAlienacao,
|
|
27
|
+
la as apiCreateContratoCompraGraos,
|
|
28
|
+
N as apiCreateCorretora,
|
|
29
|
+
w as apiCreateEmpresa,
|
|
30
|
+
W as apiCreateOpcao,
|
|
31
|
+
fa as apiCreatePreContrato,
|
|
32
|
+
Ea as apiCreatePrecoDia,
|
|
33
|
+
qa as apiCreateProdutoCommodity,
|
|
34
|
+
X as apiDeleteOpcao,
|
|
35
|
+
ha as apiDeletePrecoDia,
|
|
36
|
+
k as apiDeleteTaxaCessaoCredito,
|
|
37
|
+
sa as apiEditContratoCompraGraos,
|
|
38
|
+
ya as apiEditPreContrato,
|
|
39
|
+
ia as apiFindAllAnalisePenhorAlienacao,
|
|
40
|
+
S as apiFindAllAssistenciaTecnicaSeloSocial,
|
|
41
|
+
xa as apiFindAllCampos,
|
|
42
|
+
x as apiFindAllCessaoDireitoCredito,
|
|
43
|
+
na as apiFindAllContratoCompraGraos,
|
|
44
|
+
Q as apiFindAllCorretora,
|
|
45
|
+
Fa as apiFindAllDocketEstados,
|
|
46
|
+
z as apiFindAllEmpresa,
|
|
47
|
+
Y as apiFindAllOpcoes,
|
|
48
|
+
Ua as apiFindAllPreContrato,
|
|
49
|
+
Va as apiFindAllPrecoDia,
|
|
50
|
+
va as apiFindAllPrecoDiaHistoricos,
|
|
51
|
+
wa as apiFindAllProdutoCommodity,
|
|
52
|
+
r as apiFindAllSeloSocial,
|
|
53
|
+
L as apiFindAllTaxaCessaoCredito,
|
|
54
|
+
Z as apiFindByIdCampo,
|
|
55
|
+
ca as apiFindByIdContratoCompraGraos,
|
|
56
|
+
J as apiFindByIdEmpresa,
|
|
57
|
+
Ta as apiFindByIdPreContrato,
|
|
58
|
+
Oa as apiFindByIdPrecoDia,
|
|
59
|
+
Ma as apiFindByIdPrecoDiaHistoricos,
|
|
60
|
+
t as apiFindCounterDigitalSeloSocial,
|
|
61
|
+
p as apiFindCounterFisicoSeloSocial,
|
|
62
|
+
Pa as apiFindDocketCidadesByEstadoId,
|
|
63
|
+
_ as apiFindHistoricoById,
|
|
64
|
+
Ca as apiFindHistoricoByIdContratoCompraGraos,
|
|
65
|
+
Ba as apiFindHistoricoByIdPreContrato,
|
|
66
|
+
T as apiFindMonitorHorarioAprovacaot,
|
|
67
|
+
h as apiFindMonitorVolumeProducaoSeloSocial,
|
|
68
|
+
Sa as apiFindSaldoByIdContratoCompraGraos,
|
|
69
|
+
ga as apiGenerateTemplatePrecoDia,
|
|
70
|
+
m as apiGetAssistenciaTecnicaSeloSocial,
|
|
71
|
+
A as apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
72
|
+
u as apiGetCessaoDireitoCredito,
|
|
73
|
+
G as apiGetCessaoDireitoCreditoHistoricos,
|
|
74
|
+
ea as apiGetFileDadosPenhores,
|
|
75
|
+
B as apiGetHorarioAprovacao,
|
|
76
|
+
d as apiGetSeloSocial,
|
|
77
|
+
l as apiGetSeloSocialHistoricos,
|
|
78
|
+
b as apiGetTaxaCessaoCredito,
|
|
79
|
+
V as apiGetVolumeProducaoSeloSocial,
|
|
80
|
+
v as apiGetVolumeProducaoSeloSocialBySafraId,
|
|
81
|
+
ra as apiLancarPenhores,
|
|
82
|
+
ta as apiSendMail,
|
|
83
|
+
F as apiUpdateAssistenciaTecnicaSeloSocial,
|
|
84
|
+
f as apiUpdateCessaoDireitoCredito,
|
|
85
|
+
H as apiUpdateHorarioAprovacao,
|
|
86
|
+
$ as apiUpdateOpcao,
|
|
87
|
+
ka as apiUpdatePrecoDia,
|
|
88
|
+
s as apiUpdateSeloSocial,
|
|
89
|
+
ma as apiUpdateStatusContratoCompraGraos,
|
|
90
|
+
Ha as apiUpdateStatusPreContrato,
|
|
91
|
+
La as apiUpdateStatusPrecoDia,
|
|
92
|
+
j as apiUpdateTaxaCessaoCredito,
|
|
93
|
+
O as apiUpdateVolumeProducaoSeloSocial,
|
|
94
|
+
n as apiUploadAssinaturaFisica,
|
|
95
|
+
pa as apiUploadFileDadosPenhores,
|
|
96
|
+
ba as apiUploadTemplatePrecoDia
|
|
95
97
|
};
|
|
96
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../@ecme/services/index.js";
|
|
2
2
|
import "../../../../configs/index.js";
|
|
3
|
-
import
|
|
3
|
+
import a from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
4
|
import o from "../../../../../@ecme/services/ApiService.js";
|
|
5
|
-
const t =
|
|
6
|
-
async function
|
|
5
|
+
const t = a.originacao.seloSocial;
|
|
6
|
+
async function s(i) {
|
|
7
7
|
return o.fetchDataWithAxios({
|
|
8
8
|
url: t.findOne.endpoint(i),
|
|
9
9
|
method: t.findOne.method
|
|
@@ -23,13 +23,13 @@ async function h(i, n) {
|
|
|
23
23
|
data: i
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function l(i) {
|
|
27
27
|
return o.fetchDataWithAxios({
|
|
28
28
|
url: t.findAll.endpoint + (i ? "?" + i : ""),
|
|
29
29
|
method: t.findAll.method
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function f(i) {
|
|
33
33
|
return o.fetchDataWithAxios({
|
|
34
34
|
url: t.findOneHistoricos.endpoint(i),
|
|
35
35
|
method: t.findOneHistoricos.method
|
|
@@ -41,19 +41,38 @@ async function p(i) {
|
|
|
41
41
|
method: t.findCountDigital.method
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
async function
|
|
44
|
+
async function m(i) {
|
|
45
45
|
return o.fetchDataWithAxios({
|
|
46
46
|
url: t.findCountFisico.endpoint + (i ? "?" + i : ""),
|
|
47
47
|
method: t.findCountFisico.method
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
+
async function A(i) {
|
|
51
|
+
return o.fetchDataWithAxios({
|
|
52
|
+
url: t.changeToAssinaturaFisica.endpoint,
|
|
53
|
+
method: t.changeToAssinaturaFisica.method,
|
|
54
|
+
data: i
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async function S(i, n) {
|
|
58
|
+
return o.fetchDataWithAxios({
|
|
59
|
+
url: t.uploadAssinaturaFisica.endpoint(n),
|
|
60
|
+
method: t.uploadAssinaturaFisica.method,
|
|
61
|
+
data: i,
|
|
62
|
+
headers: {
|
|
63
|
+
"Content-Type": "multipart/form-data"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
50
67
|
export {
|
|
51
68
|
u as apiAddSeloSocial,
|
|
52
|
-
|
|
69
|
+
A as apiChangeToAssinaturaFisica,
|
|
70
|
+
l as apiFindAllSeloSocial,
|
|
53
71
|
p as apiFindCounterDigitalSeloSocial,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
h as apiUpdateSeloSocial
|
|
72
|
+
m as apiFindCounterFisicoSeloSocial,
|
|
73
|
+
s as apiGetSeloSocial,
|
|
74
|
+
f as apiGetSeloSocialHistoricos,
|
|
75
|
+
h as apiUpdateSeloSocial,
|
|
76
|
+
S as apiUploadAssinaturaFisica
|
|
58
77
|
};
|
|
59
78
|
//# sourceMappingURL=SeloSocialService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeloSocialService.js","sources":["../../../../../../lib/base/services/modules/originacao/seloSocial/SeloSocialService.ts"],"sourcesContent":["import { ApiService } from \"@/services\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TSeloSocialRequest } from \"@base/@types/api/request/originacao/TCreateSeloSocialRequest\";\nimport { TSeloSocial } from \"@base/@types/api/response/originacao/TSeloSocial\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst SELO_SOCIAL_ENDPOINT = endpointsConfig.originacao.seloSocial;\n\nexport async function apiGetSeloSocial(id: number) {\n return ApiService.fetchDataWithAxios<TSeloSocial>({\n url: SELO_SOCIAL_ENDPOINT.findOne.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiAddSeloSocial(body: TSeloSocialRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.add.endpoint,\n method: SELO_SOCIAL_ENDPOINT.add.method,\n data: body,\n });\n}\n\nexport async function apiUpdateSeloSocial(body: TSeloSocialRequest, id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.update.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.update.method,\n data: body,\n });\n}\n\nexport async function apiFindAllSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findAll.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findAll.method,\n });\n}\n\nexport async function apiGetSeloSocialHistoricos(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: SELO_SOCIAL_ENDPOINT.findOneHistoricos.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.findOneHistoricos.method,\n });\n}\n\nexport async function apiFindCounterDigitalSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findCountDigital.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findCountDigital.method,\n });\n}\n\nexport async function apiFindCounterFisicoSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findCountFisico.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findCountFisico.method,\n });\n}\n"],"names":["SELO_SOCIAL_ENDPOINT","endpointsConfig","apiGetSeloSocial","id","ApiService","apiAddSeloSocial","body","apiUpdateSeloSocial","apiFindAllSeloSocial","params","apiGetSeloSocialHistoricos","apiFindCounterDigitalSeloSocial","apiFindCounterFisicoSeloSocial"],"mappings":";;;;AAMA,MAAMA,IAAuBC,EAAgB,WAAW;AAExD,eAAsBC,EAAiBC,GAAY;AAC/C,SAAOC,EAAW,mBAAgC;AAAA,IAC9C,KAAKJ,EAAqB,QAAQ,SAASG,CAAE;AAAA,IAC7C,QAAQH,EAAqB,QAAQ;AAAA,EAAA,CACxC;AACL;AAEA,eAAsBK,EAAiBC,GAA0B;AAC7D,SAAOF,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,IAAI;AAAA,IAC9B,QAAQA,EAAqB,IAAI;AAAA,IACjC,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAC,EAAoBD,GAA0BH,GAAY;AAC5E,SAAOC,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,OAAO,SAASG,CAAE;AAAA,IAC5C,QAAQH,EAAqB,OAAO;AAAA,IACpC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAqBC,GAAwB;AAC/D,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,QAAQ,YAAYS,IAAS,MAAMA,IAAS;AAAA,IACtE,QAAQT,EAAqB,QAAQ;AAAA,EAAA,CACxC;AACL;AAEA,eAAsBU,EAA2BP,GAAY;AACzD,SAAOC,EAAW,mBAAwC;AAAA,IACtD,KAAKJ,EAAqB,kBAAkB,SAASG,CAAE;AAAA,IACvD,QAAQH,EAAqB,kBAAkB;AAAA,EAAA,CAClD;AACL;AAEA,eAAsBW,EAAgCF,GAAwB;AAC1E,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,iBAAiB,YAAYS,IAAS,MAAMA,IAAS;AAAA,IAC/E,QAAQT,EAAqB,iBAAiB;AAAA,EAAA,CACjD;AACL;AAEA,eAAsBY,EAA+BH,GAAwB;AACzE,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,gBAAgB,YAAYS,IAAS,MAAMA,IAAS;AAAA,IAC9E,QAAQT,EAAqB,gBAAgB;AAAA,EAAA,CAChD;AACL;"}
|
|
1
|
+
{"version":3,"file":"SeloSocialService.js","sources":["../../../../../../lib/base/services/modules/originacao/seloSocial/SeloSocialService.ts"],"sourcesContent":["import { ApiService } from \"@/services\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TSeloSocialRequest } from \"@base/@types/api/request/originacao/TCreateSeloSocialRequest\";\nimport { TSeloSocial } from \"@base/@types/api/response/originacao/TSeloSocial\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst SELO_SOCIAL_ENDPOINT = endpointsConfig.originacao.seloSocial;\n\nexport async function apiGetSeloSocial(id: number) {\n return ApiService.fetchDataWithAxios<TSeloSocial>({\n url: SELO_SOCIAL_ENDPOINT.findOne.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiAddSeloSocial(body: TSeloSocialRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.add.endpoint,\n method: SELO_SOCIAL_ENDPOINT.add.method,\n data: body,\n });\n}\n\nexport async function apiUpdateSeloSocial(body: TSeloSocialRequest, id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.update.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.update.method,\n data: body,\n });\n}\n\nexport async function apiFindAllSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findAll.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findAll.method,\n });\n}\n\nexport async function apiGetSeloSocialHistoricos(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: SELO_SOCIAL_ENDPOINT.findOneHistoricos.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.findOneHistoricos.method,\n });\n}\n\nexport async function apiFindCounterDigitalSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findCountDigital.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findCountDigital.method,\n });\n}\n\nexport async function apiFindCounterFisicoSeloSocial(params?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.findCountFisico.endpoint + (params ? \"?\" + params : \"\"),\n method: SELO_SOCIAL_ENDPOINT.findCountFisico.method,\n });\n}\n\nexport async function apiChangeToAssinaturaFisica(body: TSeloSocialRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.changeToAssinaturaFisica.endpoint,\n method: SELO_SOCIAL_ENDPOINT.changeToAssinaturaFisica.method,\n data: body,\n });\n}\n\nexport async function apiUploadAssinaturaFisica(body: TSeloSocialRequest, id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSeloSocial>>({\n url: SELO_SOCIAL_ENDPOINT.uploadAssinaturaFisica.endpoint(id),\n method: SELO_SOCIAL_ENDPOINT.uploadAssinaturaFisica.method,\n data: body,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n\n\n"],"names":["SELO_SOCIAL_ENDPOINT","endpointsConfig","apiGetSeloSocial","id","ApiService","apiAddSeloSocial","body","apiUpdateSeloSocial","apiFindAllSeloSocial","params","apiGetSeloSocialHistoricos","apiFindCounterDigitalSeloSocial","apiFindCounterFisicoSeloSocial","apiChangeToAssinaturaFisica","apiUploadAssinaturaFisica"],"mappings":";;;;AAMA,MAAMA,IAAuBC,EAAgB,WAAW;AAExD,eAAsBC,EAAiBC,GAAY;AAC/C,SAAOC,EAAW,mBAAgC;AAAA,IAC9C,KAAKJ,EAAqB,QAAQ,SAASG,CAAE;AAAA,IAC7C,QAAQH,EAAqB,QAAQ;AAAA,EAAA,CACxC;AACL;AAEA,eAAsBK,EAAiBC,GAA0B;AAC7D,SAAOF,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,IAAI;AAAA,IAC9B,QAAQA,EAAqB,IAAI;AAAA,IACjC,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAC,EAAoBD,GAA0BH,GAAY;AAC5E,SAAOC,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,OAAO,SAASG,CAAE;AAAA,IAC5C,QAAQH,EAAqB,OAAO;AAAA,IACpC,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAqBC,GAAwB;AAC/D,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,QAAQ,YAAYS,IAAS,MAAMA,IAAS;AAAA,IACtE,QAAQT,EAAqB,QAAQ;AAAA,EAAA,CACxC;AACL;AAEA,eAAsBU,EAA2BP,GAAY;AACzD,SAAOC,EAAW,mBAAwC;AAAA,IACtD,KAAKJ,EAAqB,kBAAkB,SAASG,CAAE;AAAA,IACvD,QAAQH,EAAqB,kBAAkB;AAAA,EAAA,CAClD;AACL;AAEA,eAAsBW,EAAgCF,GAAwB;AAC1E,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,iBAAiB,YAAYS,IAAS,MAAMA,IAAS;AAAA,IAC/E,QAAQT,EAAqB,iBAAiB;AAAA,EAAA,CACjD;AACL;AAEA,eAAsBY,EAA+BH,GAAwB;AACzE,SAAOL,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,gBAAgB,YAAYS,IAAS,MAAMA,IAAS;AAAA,IAC9E,QAAQT,EAAqB,gBAAgB;AAAA,EAAA,CAChD;AACL;AAEA,eAAsBa,EAA4BP,GAA0B;AACxE,SAAOF,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,yBAAyB;AAAA,IACnD,QAAQA,EAAqB,yBAAyB;AAAA,IACrD,MAAMM;AAAA,EAAA,CACV;AACL;AAEsB,eAAAQ,EAA0BR,GAA0BH,GAAY;AAClF,SAAOC,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAAqB,uBAAuB,SAASG,CAAE;AAAA,IAC5D,QAAQH,EAAqB,uBAAuB;AAAA,IACpD,MAAMM;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type TDadosFazenda = {
|
|
2
|
+
id: number
|
|
3
|
+
ativo: boolean
|
|
4
|
+
ieRg: string
|
|
5
|
+
numeroCar: string
|
|
6
|
+
nomeFazenda: string
|
|
7
|
+
nomeProprietario: string
|
|
8
|
+
tipoPropriedade: string
|
|
9
|
+
areaTotalPlantio: number
|
|
10
|
+
areaTotal: number
|
|
11
|
+
municipio: string
|
|
12
|
+
estado: string
|
|
13
|
+
latitude: string
|
|
14
|
+
longitude: string
|
|
15
|
+
mediaProducao: string
|
|
16
|
+
producaoTotal: string
|
|
17
|
+
sistemaPlantio: string
|
|
18
|
+
qtdComprada: string
|
|
19
|
+
umidadeDaSoja: string
|
|
20
|
+
ramoAtividade: string
|
|
21
|
+
producaoDiaria: number
|
|
22
|
+
dataDeModificacao: string
|
|
23
|
+
roteiro: string
|
|
24
|
+
situacaoCar: string
|
|
25
|
+
dataUltimaConsultaVega: string
|
|
26
|
+
ccu: string
|
|
27
|
+
dadosAnimal: Array<TDadosFazendaAnimalResponse>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type TDadosFazendaAnimalResponse = {
|
|
31
|
+
id: number
|
|
32
|
+
ativo:boolean
|
|
33
|
+
animal: string
|
|
34
|
+
especie: string
|
|
35
|
+
raca: string
|
|
36
|
+
quantidade: number
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type TDadosUnificados = {
|
|
2
|
+
id: number
|
|
3
|
+
detalhes: TDadosUnificadosDetalhes
|
|
4
|
+
endereco: TDadosUnificadosEndereco
|
|
5
|
+
contatos: TDadosUnificadosContatoResponse
|
|
6
|
+
dadosContratuais: TDadosUnificadosContratoResponse
|
|
7
|
+
areasNegocios: TDadosUnificadosAreasNegocioResponse
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type TDadosUnificadosDetalhes = {
|
|
11
|
+
id: number
|
|
12
|
+
cpfCnpj: string
|
|
13
|
+
registroGeral: string
|
|
14
|
+
rgOrgaoExpeditor:string
|
|
15
|
+
cnpjNomeFantasia: string
|
|
16
|
+
cnpjRazaoSocial: string
|
|
17
|
+
dataNascimento: string
|
|
18
|
+
estadoCivil: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type TDadosUnificadosEndereco = {
|
|
22
|
+
id: number
|
|
23
|
+
ativo: boolean
|
|
24
|
+
pais: string
|
|
25
|
+
estado: string
|
|
26
|
+
cidade: string
|
|
27
|
+
bairro: string
|
|
28
|
+
rua: string
|
|
29
|
+
cep: string
|
|
30
|
+
}
|
|
31
|
+
export type TDadosUnificadosContatoResponse = {
|
|
32
|
+
id: number
|
|
33
|
+
ativo: boolean
|
|
34
|
+
email: string
|
|
35
|
+
emailOriginacaoGraos: string
|
|
36
|
+
celular: string
|
|
37
|
+
telefone: string
|
|
38
|
+
}
|
|
39
|
+
export type TDadosUnificadosContratoResponse = {
|
|
40
|
+
id: number
|
|
41
|
+
ativo: boolean
|
|
42
|
+
nome: string
|
|
43
|
+
}
|
|
44
|
+
export type TDadosUnificadosAreasNegocioResponse = {
|
|
45
|
+
id: number
|
|
46
|
+
areas: string
|
|
47
|
+
representanteRacao: string
|
|
48
|
+
vendedorInsumos: string
|
|
49
|
+
corretoraGraos: string
|
|
50
|
+
corretorCommodities: string
|
|
51
|
+
hasInsumosCorteva: boolean
|
|
52
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const CONTRATO_DOCUSIGN_API_PREFIX = '/docusign/api/contrato-docusign'
|
|
2
|
+
|
|
3
|
+
const contratoDocusign = {
|
|
4
|
+
apiGetContratoDocusignById: {
|
|
5
|
+
url: (id: number)=>`${CONTRATO_DOCUSIGN_API_PREFIX}/${id}`,
|
|
6
|
+
method: 'get',
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default contratoDocusign
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const DADOS_FAZENDA_URL = 'crm/api/crm/dados-fazenda'
|
|
2
|
+
|
|
3
|
+
const dadosSeloSocialCrm = {
|
|
4
|
+
getByDadosUnificadosId: {
|
|
5
|
+
url: `${DADOS_FAZENDA_URL}/`,
|
|
6
|
+
method: 'get',
|
|
7
|
+
},
|
|
8
|
+
update: {
|
|
9
|
+
url: `${DADOS_FAZENDA_URL}`,
|
|
10
|
+
method: 'patch',
|
|
11
|
+
},
|
|
12
|
+
create: {
|
|
13
|
+
url: `${DADOS_FAZENDA_URL}/add-consulta-car`,
|
|
14
|
+
method: 'post',
|
|
15
|
+
},
|
|
16
|
+
findUltimaConsultaCar: {
|
|
17
|
+
url: `${DADOS_FAZENDA_URL}/find-ultima-consulta-car`,
|
|
18
|
+
method: 'post',
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default dadosSeloSocialCrm
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const DADOS_UNIFICADOS_API_PREFIX = 'crm/api/crm/dados-selo-social'
|
|
2
|
+
|
|
3
|
+
const dadosSeloSocialCrm = {
|
|
4
|
+
create: {
|
|
5
|
+
url: DADOS_UNIFICADOS_API_PREFIX,
|
|
6
|
+
method: 'post',
|
|
7
|
+
},
|
|
8
|
+
getByDadosUnificadosId: {
|
|
9
|
+
url: `${DADOS_UNIFICADOS_API_PREFIX}/`,
|
|
10
|
+
method: 'get',
|
|
11
|
+
},
|
|
12
|
+
update: {
|
|
13
|
+
url: DADOS_UNIFICADOS_API_PREFIX,
|
|
14
|
+
method: 'patch',
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default dadosSeloSocialCrm
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const DADOS_UNIFICADOS_URL = '/crm/api/crm/dados-unificados'
|
|
2
|
+
|
|
3
|
+
const dadosUnificados = {
|
|
4
|
+
findByCpfCnpj: {
|
|
5
|
+
url: `${DADOS_UNIFICADOS_URL}/`,
|
|
6
|
+
method: 'get',
|
|
7
|
+
},
|
|
8
|
+
update: {
|
|
9
|
+
url: `${DADOS_UNIFICADOS_URL}`,
|
|
10
|
+
method: 'patch',
|
|
11
|
+
},
|
|
12
|
+
find: {
|
|
13
|
+
url: `${DADOS_UNIFICADOS_URL}/find`,
|
|
14
|
+
method: 'post',
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default dadosUnificados
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import dadosSeloSocialCrm from './config/dadosSeloSocialCrm';
|
|
1
2
|
import perfilUnificado from './config/perfilUnificado';
|
|
3
|
+
import dadosUnificados from './config/dadosUnificados';
|
|
4
|
+
import dadosFazendaCrm from './config/dadosFazendaCrm';
|
|
2
5
|
|
|
3
6
|
const crm = {
|
|
4
7
|
perfilUnificado,
|
|
8
|
+
dadosSeloSocialCrm,
|
|
9
|
+
dadosUnificados,
|
|
10
|
+
dadosFazendaCrm
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
export default crm
|
|
@@ -7,7 +7,9 @@ const seloSocial = {
|
|
|
7
7
|
update: {endpoint: (id: number) => `${SELO_SOCIAL_BASE_URL}/${id}`, method: 'put'},
|
|
8
8
|
findOneHistoricos: {endpoint: (id: number) => `${SELO_SOCIAL_BASE_URL}/${id}/historicos`, method: 'get'},
|
|
9
9
|
findCountDigital: {endpoint: `${SELO_SOCIAL_BASE_URL}/count/digital`, method: 'get'},
|
|
10
|
-
findCountFisico: {endpoint: `${SELO_SOCIAL_BASE_URL}/count/fisico`, method: 'get'}
|
|
10
|
+
findCountFisico: {endpoint: `${SELO_SOCIAL_BASE_URL}/count/fisico`, method: 'get'},
|
|
11
|
+
changeToAssinaturaFisica: {endpoint: `${SELO_SOCIAL_BASE_URL}/change-to-assinatura-fisica`, method: 'patch'},
|
|
12
|
+
uploadAssinaturaFisica: {endpoint: (id: number) => `${SELO_SOCIAL_BASE_URL}/upload-arquivo-assinado/${id}`, method: 'post'},
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export default seloSocial
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { endpointsConfig } from '@base/configs'
|
|
3
|
+
import {TQueryResponse } from '@base/@types/api'
|
|
4
|
+
|
|
5
|
+
export async function apiGetContratoDocusignById(id: number) {
|
|
6
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
7
|
+
url: endpointsConfig.docusign.contratoDocusign.apiGetContratoDocusignById.url(id),
|
|
8
|
+
method: endpointsConfig.docusign.contratoDocusign.apiGetContratoDocusignById.method
|
|
9
|
+
})
|
|
10
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { IFilterParams, TQueryResponse } from '@base/@types'
|
|
3
|
+
import { TDadosFazenda } from '@base/@types/models/crm/DadosFazenda'
|
|
4
|
+
import { endpointsConfig } from '@base/configs'
|
|
5
|
+
|
|
6
|
+
export async function findByCpfCnpj(id: number) {
|
|
7
|
+
const { url, method } = endpointsConfig.crm.dadosFazendaCrm.getByDadosUnificadosId
|
|
8
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<TDadosFazenda>>({
|
|
9
|
+
url: url + id,
|
|
10
|
+
method: method
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export async function update(body: TDadosFazenda) {
|
|
15
|
+
const { url, method } = endpointsConfig.crm.dadosFazendaCrm.update
|
|
16
|
+
return ApiService.fetchDataWithAxios({
|
|
17
|
+
url: url,
|
|
18
|
+
data: body,
|
|
19
|
+
method: method
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function create(body: TDadosFazenda) {
|
|
24
|
+
const { url, method } = endpointsConfig.crm.dadosFazendaCrm.create
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: url,
|
|
27
|
+
data: body,
|
|
28
|
+
method: method
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export async function findUltimaConsultaCar(body?: IFilterParams) {
|
|
33
|
+
const { url, method } = endpointsConfig.crm.dadosFazendaCrm.findUltimaConsultaCar
|
|
34
|
+
return ApiService.fetchDataWithAxios({
|
|
35
|
+
url: url,
|
|
36
|
+
data: body,
|
|
37
|
+
method: method
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
findUltimaConsultaCar,
|
|
43
|
+
findByCpfCnpj,
|
|
44
|
+
update,
|
|
45
|
+
create,
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { endpointsConfig } from '@base/configs'
|
|
3
|
+
|
|
4
|
+
export async function apiCreateDadosSeloSocial(body: any, options?: any) {
|
|
5
|
+
const { url, method } = endpointsConfig.crm.dadosSeloSocialCrm.create
|
|
6
|
+
return ApiService.fetchDataWithAxios({
|
|
7
|
+
url: url,
|
|
8
|
+
method: method,
|
|
9
|
+
data: body,
|
|
10
|
+
...options,
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export async function apiFindDadosSeloSocialById(id: string, options?: any) {
|
|
15
|
+
const { url, method } = endpointsConfig.crm.dadosSeloSocialCrm.getByDadosUnificadosId
|
|
16
|
+
return ApiService.fetchDataWithAxios({
|
|
17
|
+
url: url + id,
|
|
18
|
+
method: method,
|
|
19
|
+
...options,
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function apiUpdateDadosSeloSocial(body: any, options?: any) {
|
|
24
|
+
const { url, method } = endpointsConfig.crm.dadosSeloSocialCrm.update
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: url,
|
|
27
|
+
method: method,
|
|
28
|
+
data: body,
|
|
29
|
+
...options,
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
apiCreateDadosSeloSocial,
|
|
36
|
+
apiFindDadosSeloSocialById,
|
|
37
|
+
apiUpdateDadosSeloSocial
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { IFilterParams, TQueryResponse } from '@base/@types'
|
|
3
|
+
import { TDadosUnificados } from '@base/@types/models/crm/DadosUnificados'
|
|
4
|
+
import { endpointsConfig } from '@base/configs'
|
|
5
|
+
|
|
6
|
+
export async function findByCpfCnpj(cpfCnpj: number) {
|
|
7
|
+
const { url, method } = endpointsConfig.crm.dadosUnificados.findByCpfCnpj
|
|
8
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<TDadosUnificados>>({
|
|
9
|
+
url: url + cpfCnpj,
|
|
10
|
+
method: method
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export async function update(body: TDadosUnificados) {
|
|
15
|
+
const { url, method } = endpointsConfig.crm.dadosUnificados.update
|
|
16
|
+
return ApiService.fetchDataWithAxios({
|
|
17
|
+
url: url,
|
|
18
|
+
data: body,
|
|
19
|
+
method: method
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function find(body?: IFilterParams) {
|
|
24
|
+
const { url, method } = endpointsConfig.crm.dadosUnificados.find
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: url,
|
|
27
|
+
data: body,
|
|
28
|
+
method: method
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
find,
|
|
34
|
+
update,
|
|
35
|
+
findByCpfCnpj
|
|
36
|
+
}
|