@orbe-agro/client-core 5.3.186 → 5.3.188

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.
Files changed (50) hide show
  1. package/dist/@types/base/@types/models/commodities/pedidoVenda.d.ts +1 -0
  2. package/dist/@types/base/@types/models/commodities/pedidoVenda.d.ts.map +1 -1
  3. package/dist/@types/base/@types/models/racao/autorizacaoAtendimentoCliente.d.ts +4 -36
  4. package/dist/@types/base/@types/models/racao/autorizacaoAtendimentoCliente.d.ts.map +1 -1
  5. package/dist/@types/base/@types/models/racao/pedidoVenda.d.ts +1 -0
  6. package/dist/@types/base/@types/models/racao/pedidoVenda.d.ts.map +1 -1
  7. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +10 -2
  8. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/originacao/config/termoFunrural.d.ts +6 -2
  10. package/dist/@types/base/configs/endpoints.config/originacao/config/termoFunrural.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +6 -2
  12. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
  13. package/dist/@types/base/configs/endpoints.config/racao/config/autorizacaoAtendimentoCliente.d.ts +4 -0
  14. package/dist/@types/base/configs/endpoints.config/racao/config/autorizacaoAtendimentoCliente.d.ts.map +1 -1
  15. package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts +4 -0
  16. package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts.map +1 -1
  17. package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts +3 -4
  18. package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map +1 -1
  19. package/dist/@types/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.d.ts +1 -0
  20. package/dist/@types/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.d.ts.map +1 -1
  21. package/dist/@types/base/utils/colorClassName/badge.d.ts.map +1 -1
  22. package/dist/@types/base/utils/functions/stringUtils.d.ts.map +1 -1
  23. package/dist/base/@types/models/commodities/pedidoVenda.js.map +1 -1
  24. package/dist/base/@types/models/racao/pedidoVenda.js.map +1 -1
  25. package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js +5 -4
  26. package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js.map +1 -1
  27. package/dist/base/configs/endpoints.config/racao/config/autorizacaoAtendimentoCliente.js +4 -3
  28. package/dist/base/configs/endpoints.config/racao/config/autorizacaoAtendimentoCliente.js.map +1 -1
  29. package/dist/base/index.js +250 -249
  30. package/dist/base/services/index.js +250 -249
  31. package/dist/base/services/modules/index.js +247 -246
  32. package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js +42 -48
  33. package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js.map +1 -1
  34. package/dist/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.js +21 -10
  35. package/dist/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.js.map +1 -1
  36. package/dist/base/services/modules/racao/index.js +54 -53
  37. package/dist/base/utils/colorClassName/badge.js +1 -0
  38. package/dist/base/utils/colorClassName/badge.js.map +1 -1
  39. package/dist/base/utils/functions/stringUtils.js +1 -0
  40. package/dist/base/utils/functions/stringUtils.js.map +1 -1
  41. package/lib/base/@types/models/commodities/pedidoVenda.ts +1 -0
  42. package/lib/base/@types/models/racao/autorizacaoAtendimentoCliente.ts +4 -40
  43. package/lib/base/@types/models/racao/pedidoVenda.ts +1 -0
  44. package/lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts +2 -1
  45. package/lib/base/configs/endpoints.config/racao/config/autorizacaoAtendimentoCliente.ts +1 -0
  46. package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +16 -21
  47. package/lib/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.ts +12 -0
  48. package/lib/base/utils/colorClassName/badge.ts +1 -0
  49. package/lib/base/utils/functions/stringUtils.ts +1 -0
  50. package/package.json +1 -1
@@ -1,69 +1,63 @@
1
- import e from "../../../../configs/endpoints.config/endpoints.navigation.js";
2
- import t from "../../../../../@ecme/services/ApiService.js";
3
- const r = e.originacao.termoFunrural;
4
- async function u(a) {
5
- return t.fetchDataWithAxios({
1
+ import n from "../../../../configs/endpoints.config/endpoints.navigation.js";
2
+ import o from "../../../../../@ecme/services/ApiService.js";
3
+ const r = n.originacao.termoFunrural;
4
+ async function d(t) {
5
+ return o.fetchDataWithAxios({
6
6
  url: r.add.endpoint,
7
7
  method: r.add.method,
8
- data: a
8
+ data: t
9
9
  });
10
10
  }
11
- async function d(a) {
12
- return t.fetchDataWithAxios({
13
- url: r.findOne.endpoint + `${a}`,
11
+ async function u(t) {
12
+ return o.fetchDataWithAxios({
13
+ url: r.findOne.endpoint + `${t}`,
14
14
  method: r.findOne.method
15
15
  });
16
16
  }
17
- async function p(a, o) {
18
- return t.fetchDataWithAxios({
19
- url: r.cancelar.endpoint + `${a}`,
20
- method: r.cancelar.method,
21
- data: { motivo: o }
22
- });
23
- }
24
- async function c(a, o) {
25
- return t.fetchDataWithAxios({
26
- url: r.reprovar.endpoint + `${a}`,
27
- method: r.reprovar.method,
28
- data: { motivo: o }
17
+ async function p(t) {
18
+ return o.fetchDataWithAxios({
19
+ url: r.findMonitor.endpoint + `?${t}`,
20
+ method: r.findMonitor.method
29
21
  });
30
22
  }
31
- async function h(a) {
32
- return t.fetchDataWithAxios({
33
- url: r.aprovar.endpoint,
34
- method: r.aprovar.method,
35
- data: { id: a }
23
+ async function c(t, a) {
24
+ return o.fetchDataWithAxios({
25
+ url: r.cancelar.endpoint + `${t}`,
26
+ method: r.cancelar.method,
27
+ data: { motivo: a }
36
28
  });
37
29
  }
38
- async function m(a, o) {
39
- return t.fetchDataWithAxios({
40
- url: r.reprovar.endpoint,
30
+ async function h(t, a) {
31
+ return o.fetchDataWithAxios({
32
+ url: r.reprovar.endpoint + `${t}`,
41
33
  method: r.reprovar.method,
42
- data: { id: a, motivoReprovacao: o }
34
+ data: { motivo: a }
43
35
  });
44
36
  }
45
- async function f(a) {
46
- return t.fetchDataWithAxios({
47
- url: r.reabrir.endpoint,
48
- method: r.reabrir.method,
49
- data: { id: a }
37
+ async function m(t) {
38
+ return o.fetchDataWithAxios({
39
+ url: r.aprovar.endpoint + `${t}`,
40
+ method: r.aprovar.method,
41
+ data: { id: t }
50
42
  });
51
43
  }
52
- async function l(a, o) {
53
- return t.fetchDataWithAxios({
54
- url: r.reprovarTermo.endpoint + `/${a}`,
55
- method: r.reprovarTermo.method,
56
- data: { motivo: o }
44
+ async function f(t, a) {
45
+ return o.fetchDataWithAxios({
46
+ url: r.uploadArquivo.endpoint.replace("{id}", t.toString()),
47
+ method: r.uploadArquivo.method,
48
+ data: a,
49
+ headers: {
50
+ "Content-Type": "multipart/form-data"
51
+ }
57
52
  });
58
53
  }
59
54
  export {
60
- u as apiAddTermoFunrural,
61
- h as apiAprovarGuiaTermoFunrural,
62
- p as apiCancelarTermoFunrural,
63
- d as apiGetTermoFunrural,
64
- f as apiReabrirGuiaTermoFunrural,
65
- m as apiReprovarGuiaTermoFunrural,
66
- l as apiReprovarTermoCompleto,
67
- c as apiReprovarTermoFunrural
55
+ d as apiAddTermoFunrural,
56
+ m as apiAprovarTermoFunrural,
57
+ c as apiCancelarTermoFunrural,
58
+ p as apiFindMonitorTermoFunrural,
59
+ u as apiGetTermoFunrural,
60
+ h as apiReprovarTermoFunrural,
61
+ f as apiUploadArquivoAssinado
68
62
  };
69
63
  //# sourceMappingURL=termoFunruralService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarGuiaTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReprovarGuiaTermoFunrural(id: number, motivoReprovacao: string) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { id, motivoReprovacao },\n });\n}\n\nexport async function apiReabrirGuiaTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiReprovarTermoCompleto(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovarTermo.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovarTermo.method,\n data: { motivo },\n });\n}\n"],"names":["TERMO_FUNRURAL_PROJECT_ENDPOINT","endpointConfig","apiAddTermoFunrural","body","ApiService","apiGetTermoFunrural","id","apiCancelarTermoFunrural","motivo","apiReprovarTermoFunrural","apiAprovarGuiaTermoFunrural","apiReprovarGuiaTermoFunrural","motivoReprovacao","apiReabrirGuiaTermoFunrural","apiReprovarTermoCompleto"],"mappings":";;AAKA,MAAMA,IAAkCC,EAAe,WAAW;AAElE,eAAsBC,EAAoBC,GAAsB;AAC5D,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAoBC,GAAY;AAClD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEsB,eAAAO,EAAyBD,GAAYE,GAAgB;AACvE,SAAOJ,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAQ,EAAO;AAAA,EAAA,CAClB;AACL;AAEsB,eAAAC,EAAyBH,GAAYE,GAAgB;AACvE,SAAOJ,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAQ,EAAO;AAAA,EAAA,CAClB;AACL;AAEA,eAAsBE,EAA4BJ,GAAY;AAC1D,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ;AAAA,IAC7C,QAAQA,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;AAEsB,eAAAK,EAA6BL,GAAYM,GAA0B;AACrF,SAAOR,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,SAAS;AAAA,IAC9C,QAAQA,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,IAAAM,GAAI,kBAAAM,EAAiB;AAAA,EAAA,CAChC;AACL;AAEA,eAAsBC,EAA4BP,GAAY;AAC1D,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ;AAAA,IAC7C,QAAQA,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;AAEsB,eAAAQ,EAAyBR,GAAYE,GAAgB;AACvE,SAAOJ,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,cAAc,WAAW,IAAIM,CAAE;AAAA,IACpE,QAAQN,EAAgC,cAAc;AAAA,IACtD,MAAM,EAAE,QAAAQ,EAAO;AAAA,EAAA,CAClB;AACL;"}
1
+ {"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["TERMO_FUNRURAL_PROJECT_ENDPOINT","endpointConfig","apiAddTermoFunrural","body","ApiService","apiGetTermoFunrural","id","apiFindMonitorTermoFunrural","params","apiCancelarTermoFunrural","motivo","apiReprovarTermoFunrural","apiAprovarTermoFunrural","apiUploadArquivoAssinado","formData"],"mappings":";;AAKA,MAAMA,IAAkCC,EAAe,WAAW;AAElE,eAAsBC,EAAoBC,GAAsB;AAC5D,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAoBC,GAAY;AAClD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsBO,EAA4BC,GAAgB;AAC9D,SAAOJ,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,YAAY,WAAW,IAAIQ,CAAM;AAAA,IACtE,QAAQR,EAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEsB,eAAAS,EAAyBH,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEsB,eAAAC,EAAyBL,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEA,eAAsBE,EAAwBN,GAAY;AACtD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;AAGsB,eAAAO,EAAyBP,GAAYQ,GAAoB;AAC3E,SAAOV,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,cAAc,SAAS,QAAQ,QAAQM,EAAG,UAAU;AAAA,IACzF,QAAQN,EAAgC,cAAc;AAAA,IACtD,MAAMc;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
@@ -1,44 +1,55 @@
1
1
  import o from "../../../../../@ecme/services/ApiService.js";
2
2
  import n from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
3
  const t = n.racao.autorizacaoAtendimentoCliente;
4
- async function d(e) {
4
+ async function r(e) {
5
5
  return o.fetchDataWithAxios({
6
6
  url: t.findOne.endpoint + `${e}`,
7
7
  method: t.findOne.method
8
8
  });
9
9
  }
10
- async function r(e) {
10
+ async function c(e) {
11
11
  return o.fetchDataWithAxios({
12
12
  url: t.add.endpoint,
13
13
  method: t.add.method,
14
14
  data: e
15
15
  });
16
16
  }
17
- async function c(e) {
17
+ async function u(e) {
18
18
  return o.fetchDataWithAxios({
19
19
  url: t.update.endpoint,
20
20
  method: t.update.method,
21
21
  data: e
22
22
  });
23
23
  }
24
- async function u(e) {
24
+ async function h(e) {
25
25
  return o.fetchDataWithAxios({
26
26
  url: t.delete.endpoint + `${e}`,
27
27
  method: t.delete.method
28
28
  });
29
29
  }
30
- async function A(e) {
30
+ async function m(e) {
31
31
  return o.fetchDataWithAxios({
32
32
  url: t.findMonitor.endpoint,
33
33
  method: t.findMonitor.method,
34
34
  data: e
35
35
  });
36
36
  }
37
+ async function p(e, a) {
38
+ return o.fetchDataWithAxios({
39
+ url: t.upload.endpoint + `${a}`,
40
+ method: t.upload.method,
41
+ data: e,
42
+ headers: {
43
+ "Content-Type": "multipart/form-data"
44
+ }
45
+ });
46
+ }
37
47
  export {
38
- r as apiAddRacaoAutorizacaoAtendimentoCliente,
39
- u as apiDeleteRacaoAutorizacaoAtendimentoCliente,
40
- A as apiFindMonitorRacaoAutorizacaoAtendimentoCliente,
41
- d as apiGetRacaoAutorizacaoAtendimentoCliente,
42
- c as apiUpdateRacaoAutorizacaoAtendimentoCliente
48
+ c as apiAddRacaoAutorizacaoAtendimentoCliente,
49
+ h as apiDeleteRacaoAutorizacaoAtendimentoCliente,
50
+ m as apiFindMonitorRacaoAutorizacaoAtendimentoCliente,
51
+ r as apiGetRacaoAutorizacaoAtendimentoCliente,
52
+ u as apiUpdateRacaoAutorizacaoAtendimentoCliente,
53
+ p as apiUploadRacaoAutorizacaoAtendimentoCliente
43
54
  };
44
55
  //# sourceMappingURL=AutorizacaoAtendimentoClienteService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutorizacaoAtendimentoClienteService.js","sources":["../../../../../../lib/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAutorizacaoAtendimentoCliente } from \"@base/@types/models/racao/autorizacaoAtendimentoCliente\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT = endpointConfig.racao.autorizacaoAtendimentoCliente;\n\nexport async function apiGetRacaoAutorizacaoAtendimentoCliente(id: number) {\n return ApiService.fetchDataWithAxios<TAutorizacaoAtendimentoCliente>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findOne.endpoint + `${id}`,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoAutorizacaoAtendimentoCliente(body: TAutorizacaoAtendimentoCliente) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.add.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoAutorizacaoAtendimentoCliente(body: TAutorizacaoAtendimentoCliente) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.update.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoAutorizacaoAtendimentoCliente(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.delete.endpoint + `${id}`,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorRacaoAutorizacaoAtendimentoCliente(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findMonitor.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findMonitor.method,\n data: body,\n })\n}"],"names":["AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT","endpointConfig","apiGetRacaoAutorizacaoAtendimentoCliente","id","ApiService","apiAddRacaoAutorizacaoAtendimentoCliente","body","apiUpdateRacaoAutorizacaoAtendimentoCliente","apiDeleteRacaoAutorizacaoAtendimentoCliente","apiFindMonitorRacaoAutorizacaoAtendimentoCliente"],"mappings":";;AAKA,MAAMA,IAA2CC,EAAe,MAAM;AAEtE,eAAsBC,EAAyCC,GAAY;AACvE,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAyC,QAAQ,WAAW,GAAGG,CAAE;AAAA,IACtE,QAAQH,EAAyC,QAAQ;AAAA,EAAA,CAC5D;AACL;AAEA,eAAsBK,EAAyCC,GAAsC;AACjG,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,IAAI;AAAA,IAClD,QAAQA,EAAyC,IAAI;AAAA,IACrD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA4CD,GAAsC;AACpG,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,OAAO;AAAA,IACrD,QAAQA,EAAyC,OAAO;AAAA,IACxD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAA4CL,GAAY;AAC1E,SAAOC,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,OAAO,WAAW,GAAGG,CAAE;AAAA,IACrE,QAAQH,EAAyC,OAAO;AAAA,EAAA,CAC3D;AACL;AAEA,eAAsBS,EAAiDH,GAAsB;AACzF,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,YAAY;AAAA,IAC1D,QAAQA,EAAyC,YAAY;AAAA,IAC7D,MAAMM;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"AutorizacaoAtendimentoClienteService.js","sources":["../../../../../../lib/base/services/modules/racao/autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAutorizacaoAtendimentoCliente } from \"@base/@types/models/racao/autorizacaoAtendimentoCliente\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT = endpointConfig.racao.autorizacaoAtendimentoCliente;\n\nexport async function apiGetRacaoAutorizacaoAtendimentoCliente(id: number) {\n return ApiService.fetchDataWithAxios<TAutorizacaoAtendimentoCliente>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findOne.endpoint + `${id}`,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoAutorizacaoAtendimentoCliente(body: TAutorizacaoAtendimentoCliente) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.add.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoAutorizacaoAtendimentoCliente(body: TAutorizacaoAtendimentoCliente) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.update.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoAutorizacaoAtendimentoCliente(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.delete.endpoint + `${id}`,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorRacaoAutorizacaoAtendimentoCliente(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAutorizacaoAtendimentoCliente>>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findMonitor.endpoint,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiUploadRacaoAutorizacaoAtendimentoCliente(formData: FormData, id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.upload.endpoint + `${id}`,\n method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.upload.method,\n data: formData as any,\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n}"],"names":["AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT","endpointConfig","apiGetRacaoAutorizacaoAtendimentoCliente","id","ApiService","apiAddRacaoAutorizacaoAtendimentoCliente","body","apiUpdateRacaoAutorizacaoAtendimentoCliente","apiDeleteRacaoAutorizacaoAtendimentoCliente","apiFindMonitorRacaoAutorizacaoAtendimentoCliente","apiUploadRacaoAutorizacaoAtendimentoCliente","formData"],"mappings":";;AAMA,MAAMA,IAA2CC,EAAe,MAAM;AAEtE,eAAsBC,EAAyCC,GAAY;AACvE,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAyC,QAAQ,WAAW,GAAGG,CAAE;AAAA,IACtE,QAAQH,EAAyC,QAAQ;AAAA,EAAA,CAC5D;AACL;AAEA,eAAsBK,EAAyCC,GAAsC;AACjG,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,IAAI;AAAA,IAClD,QAAQA,EAAyC,IAAI;AAAA,IACrD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA4CD,GAAsC;AACpG,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,OAAO;AAAA,IACrD,QAAQA,EAAyC,OAAO;AAAA,IACxD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAA4CL,GAAY;AAC1E,SAAOC,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,OAAO,WAAW,GAAGG,CAAE;AAAA,IACrE,QAAQH,EAAyC,OAAO;AAAA,EAAA,CAC3D;AACL;AAEA,eAAsBS,EAAiDH,GAAsB;AACzF,SAAOF,EAAW,mBAAmE;AAAA,IACjF,KAAKJ,EAAyC,YAAY;AAAA,IAC1D,QAAQA,EAAyC,YAAY;AAAA,IAC7D,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAI,EAA4CC,GAAoBR,GAAY;AAC9F,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAyC,OAAO,WAAW,GAAGG,CAAE;AAAA,IACrE,QAAQH,EAAyC,OAAO;AAAA,IACxD,MAAMW;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
@@ -1,64 +1,65 @@
1
- import { apiAddRacaoAutorizacaoAtendimentoCliente as o, apiDeleteRacaoAutorizacaoAtendimentoCliente as i, apiFindMonitorRacaoAutorizacaoAtendimentoCliente as t, apiGetRacaoAutorizacaoAtendimentoCliente as n, apiUpdateRacaoAutorizacaoAtendimentoCliente as c } from "./autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.js";
2
- import { apiAddRacaoGestaoComissaoRepresentante as d, apiDeleteRacaoGestaoComissaoRepresentante as r, apiFindMonitorRacaoGestaoComissaoRepresentante as R, apiGetRacaoGestaoComissaoRepresentante as l, apiUpdateRacaoGestaoComissaoRepresentante as s } from "./gestaoComissaoRepresentante/GestaoComissaoRepresentanteService.js";
3
- import { apiAddRacaoMetaMensal as M, apiDeleteRacaoMetaMensal as C, apiFindMonitorRacaoMetaMensal as A, apiGetRacaoMetaMensal as P, apiUpdateRacaoMetaMensal as u } from "./metaMensal/MetaMensalService.js";
4
- import { apiAddRacaoSegmentoProduto as V, apiDeleteRacaoSegmentoProduto as T, apiFindMonitorRacaoSegmentoProduto as g, apiGetRacaoSegmentoProduto as F, apiUpdateRacaoSegmentoProduto as D } from "./segmentoProduto/SegmentoProdutoService.js";
5
- import { apiAddRacaoTabelaPreco as x, apiDeleteRacaoTabelaPreco as U, apiFindMonitorRacaoTabelaPreco as L, apiGetRacaoTabelaPreco as b, apiUpdateRacaoTabelaPreco as z } from "./tabelaPreco/TabelaPrecoService.js";
6
- import { apiAddRacaoListaTecnica as v, apiDeleteRacaoListaTecnica as O, apiFindMonitorRacaoListaTecnica as h, apiFindRacaoListaTecnica as j, apiGetRacaoListaTecnica as k, apiLatestRacaoListaTecnica as q, apiUpdateRacaoListaTecnica as w } from "./listaTecnica/ListaTecnicaService.js";
7
- import { apiAddRacaoVinculoMaterialCentro as B, apiDeleteRacaoVinculoMaterialCentro as E, apiFindMonitorRacaoVinculoMaterialCentro as H, apiGetRacaoVinculoMaterialCentro as I, apiUpdateRacaoVinculoMaterialCentro as J } from "./vinculoMaterialCentro/VinculoMaterialCentroService.js";
8
- import { apiAddRacaoPedidoVenda as N, apiAprovarRacaoPedidoVenda as Q, apiCancelarRacaoPedidoVenda as W, apiDeleteRacaoPedidoVenda as X, apiFindMonitorRacaoPedidoVenda as Y, apiGetCalulatePriceRacaoPedidoVenda as Z, apiGetRacaoPedidoVenda as _, apiReprovarRacaoPedidoVenda as $, apiUpdateRacaoPedidoVenda as aa } from "./pedidoVenda/PedidoVendaService.js";
9
- import { apiAddRacaoCarga as oa, apiDeleteRacaoCarga as ia, apiFindMonitorRacaoCarga as ta, apiFindOrdensDisponiveisRacaoCarga as na, apiGetRacaoCarga as ca, apiUpdateRacaoCarga as pa } from "./carga/CargaService.js";
1
+ import { apiAddRacaoAutorizacaoAtendimentoCliente as o, apiDeleteRacaoAutorizacaoAtendimentoCliente as i, apiFindMonitorRacaoAutorizacaoAtendimentoCliente as t, apiGetRacaoAutorizacaoAtendimentoCliente as n, apiUpdateRacaoAutorizacaoAtendimentoCliente as c, apiUploadRacaoAutorizacaoAtendimentoCliente as p } from "./autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.js";
2
+ import { apiAddRacaoGestaoComissaoRepresentante as r, apiDeleteRacaoGestaoComissaoRepresentante as R, apiFindMonitorRacaoGestaoComissaoRepresentante as l, apiGetRacaoGestaoComissaoRepresentante as s, apiUpdateRacaoGestaoComissaoRepresentante as m } from "./gestaoComissaoRepresentante/GestaoComissaoRepresentanteService.js";
3
+ import { apiAddRacaoMetaMensal as M, apiDeleteRacaoMetaMensal as A, apiFindMonitorRacaoMetaMensal as P, apiGetRacaoMetaMensal as u, apiUpdateRacaoMetaMensal as G } from "./metaMensal/MetaMensalService.js";
4
+ import { apiAddRacaoSegmentoProduto as T, apiDeleteRacaoSegmentoProduto as g, apiFindMonitorRacaoSegmentoProduto as F, apiGetRacaoSegmentoProduto as D, apiUpdateRacaoSegmentoProduto as U } from "./segmentoProduto/SegmentoProdutoService.js";
5
+ import { apiAddRacaoTabelaPreco as x, apiDeleteRacaoTabelaPreco as L, apiFindMonitorRacaoTabelaPreco as z, apiGetRacaoTabelaPreco as b, apiUpdateRacaoTabelaPreco as S } from "./tabelaPreco/TabelaPrecoService.js";
6
+ import { apiAddRacaoListaTecnica as O, apiDeleteRacaoListaTecnica as h, apiFindMonitorRacaoListaTecnica as j, apiFindRacaoListaTecnica as k, apiGetRacaoListaTecnica as q, apiLatestRacaoListaTecnica as w, apiUpdateRacaoListaTecnica as y } from "./listaTecnica/ListaTecnicaService.js";
7
+ import { apiAddRacaoVinculoMaterialCentro as E, apiDeleteRacaoVinculoMaterialCentro as H, apiFindMonitorRacaoVinculoMaterialCentro as I, apiGetRacaoVinculoMaterialCentro as J, apiUpdateRacaoVinculoMaterialCentro as K } from "./vinculoMaterialCentro/VinculoMaterialCentroService.js";
8
+ import { apiAddRacaoPedidoVenda as Q, apiAprovarRacaoPedidoVenda as W, apiCancelarRacaoPedidoVenda as X, apiDeleteRacaoPedidoVenda as Y, apiFindMonitorRacaoPedidoVenda as Z, apiGetCalulatePriceRacaoPedidoVenda as _, apiGetRacaoPedidoVenda as $, apiReprovarRacaoPedidoVenda as aa, apiUpdateRacaoPedidoVenda as ea } from "./pedidoVenda/PedidoVendaService.js";
9
+ import { apiAddRacaoCarga as ia, apiDeleteRacaoCarga as ta, apiFindMonitorRacaoCarga as na, apiFindOrdensDisponiveisRacaoCarga as ca, apiGetRacaoCarga as pa, apiUpdateRacaoCarga as da } from "./carga/CargaService.js";
10
10
  export {
11
11
  o as apiAddRacaoAutorizacaoAtendimentoCliente,
12
- oa as apiAddRacaoCarga,
13
- d as apiAddRacaoGestaoComissaoRepresentante,
14
- v as apiAddRacaoListaTecnica,
12
+ ia as apiAddRacaoCarga,
13
+ r as apiAddRacaoGestaoComissaoRepresentante,
14
+ O as apiAddRacaoListaTecnica,
15
15
  M as apiAddRacaoMetaMensal,
16
- N as apiAddRacaoPedidoVenda,
17
- V as apiAddRacaoSegmentoProduto,
16
+ Q as apiAddRacaoPedidoVenda,
17
+ T as apiAddRacaoSegmentoProduto,
18
18
  x as apiAddRacaoTabelaPreco,
19
- B as apiAddRacaoVinculoMaterialCentro,
20
- Q as apiAprovarRacaoPedidoVenda,
21
- W as apiCancelarRacaoPedidoVenda,
19
+ E as apiAddRacaoVinculoMaterialCentro,
20
+ W as apiAprovarRacaoPedidoVenda,
21
+ X as apiCancelarRacaoPedidoVenda,
22
22
  i as apiDeleteRacaoAutorizacaoAtendimentoCliente,
23
- ia as apiDeleteRacaoCarga,
24
- r as apiDeleteRacaoGestaoComissaoRepresentante,
25
- O as apiDeleteRacaoListaTecnica,
26
- C as apiDeleteRacaoMetaMensal,
27
- X as apiDeleteRacaoPedidoVenda,
28
- T as apiDeleteRacaoSegmentoProduto,
29
- U as apiDeleteRacaoTabelaPreco,
30
- E as apiDeleteRacaoVinculoMaterialCentro,
23
+ ta as apiDeleteRacaoCarga,
24
+ R as apiDeleteRacaoGestaoComissaoRepresentante,
25
+ h as apiDeleteRacaoListaTecnica,
26
+ A as apiDeleteRacaoMetaMensal,
27
+ Y as apiDeleteRacaoPedidoVenda,
28
+ g as apiDeleteRacaoSegmentoProduto,
29
+ L as apiDeleteRacaoTabelaPreco,
30
+ H as apiDeleteRacaoVinculoMaterialCentro,
31
31
  t as apiFindMonitorRacaoAutorizacaoAtendimentoCliente,
32
- ta as apiFindMonitorRacaoCarga,
33
- R as apiFindMonitorRacaoGestaoComissaoRepresentante,
34
- h as apiFindMonitorRacaoListaTecnica,
35
- A as apiFindMonitorRacaoMetaMensal,
36
- Y as apiFindMonitorRacaoPedidoVenda,
37
- g as apiFindMonitorRacaoSegmentoProduto,
38
- L as apiFindMonitorRacaoTabelaPreco,
39
- H as apiFindMonitorRacaoVinculoMaterialCentro,
40
- na as apiFindOrdensDisponiveisRacaoCarga,
41
- j as apiFindRacaoListaTecnica,
42
- Z as apiGetCalulatePriceRacaoPedidoVenda,
32
+ na as apiFindMonitorRacaoCarga,
33
+ l as apiFindMonitorRacaoGestaoComissaoRepresentante,
34
+ j as apiFindMonitorRacaoListaTecnica,
35
+ P as apiFindMonitorRacaoMetaMensal,
36
+ Z as apiFindMonitorRacaoPedidoVenda,
37
+ F as apiFindMonitorRacaoSegmentoProduto,
38
+ z as apiFindMonitorRacaoTabelaPreco,
39
+ I as apiFindMonitorRacaoVinculoMaterialCentro,
40
+ ca as apiFindOrdensDisponiveisRacaoCarga,
41
+ k as apiFindRacaoListaTecnica,
42
+ _ as apiGetCalulatePriceRacaoPedidoVenda,
43
43
  n as apiGetRacaoAutorizacaoAtendimentoCliente,
44
- ca as apiGetRacaoCarga,
45
- l as apiGetRacaoGestaoComissaoRepresentante,
46
- k as apiGetRacaoListaTecnica,
47
- P as apiGetRacaoMetaMensal,
48
- _ as apiGetRacaoPedidoVenda,
49
- F as apiGetRacaoSegmentoProduto,
44
+ pa as apiGetRacaoCarga,
45
+ s as apiGetRacaoGestaoComissaoRepresentante,
46
+ q as apiGetRacaoListaTecnica,
47
+ u as apiGetRacaoMetaMensal,
48
+ $ as apiGetRacaoPedidoVenda,
49
+ D as apiGetRacaoSegmentoProduto,
50
50
  b as apiGetRacaoTabelaPreco,
51
- I as apiGetRacaoVinculoMaterialCentro,
52
- q as apiLatestRacaoListaTecnica,
53
- $ as apiReprovarRacaoPedidoVenda,
51
+ J as apiGetRacaoVinculoMaterialCentro,
52
+ w as apiLatestRacaoListaTecnica,
53
+ aa as apiReprovarRacaoPedidoVenda,
54
54
  c as apiUpdateRacaoAutorizacaoAtendimentoCliente,
55
- pa as apiUpdateRacaoCarga,
56
- s as apiUpdateRacaoGestaoComissaoRepresentante,
57
- w as apiUpdateRacaoListaTecnica,
58
- u as apiUpdateRacaoMetaMensal,
59
- aa as apiUpdateRacaoPedidoVenda,
60
- D as apiUpdateRacaoSegmentoProduto,
61
- z as apiUpdateRacaoTabelaPreco,
62
- J as apiUpdateRacaoVinculoMaterialCentro
55
+ da as apiUpdateRacaoCarga,
56
+ m as apiUpdateRacaoGestaoComissaoRepresentante,
57
+ y as apiUpdateRacaoListaTecnica,
58
+ G as apiUpdateRacaoMetaMensal,
59
+ ea as apiUpdateRacaoPedidoVenda,
60
+ U as apiUpdateRacaoSegmentoProduto,
61
+ S as apiUpdateRacaoTabelaPreco,
62
+ K as apiUpdateRacaoVinculoMaterialCentro,
63
+ p as apiUploadRacaoAutorizacaoAtendimentoCliente
63
64
  };
64
65
  //# sourceMappingURL=index.js.map
@@ -36,6 +36,7 @@ const e = {
36
36
  EM_ANDAMENTO: "bg-indigo-50 text-indigo-600 whitespace-nowrap",
37
37
  // Tipo de Envio
38
38
  FISICO: "bg-gray-50 text-gray-600 whitespace-nowrap",
39
+ FISICA: "bg-gray-50 text-gray-600 whitespace-nowrap",
39
40
  DIGITAL: "bg-blue-50 text-blue-600 whitespace-nowrap",
40
41
  // Status do SAP
41
42
  A: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n};\n"],"names":["statusBadgeClasses"],"mappings":"AAcO,MAAMA,IAA6C;AAAA,EACxD,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,wBAAwB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA,EACR,SAAS;AAAA;AAAA,EAET,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;"}
1
+ {"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n FISICA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n};\n"],"names":["statusBadgeClasses"],"mappings":"AAcO,MAAMA,IAA6C;AAAA,EACxD,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,wBAAwB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA;AAAA,EAET,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;"}
@@ -53,6 +53,7 @@ const d = [
53
53
  { status: "EM_ANDAMENTO", statusFormatado: "Em Andamento" },
54
54
  // Tipo de Envio
55
55
  { status: "FISICO", statusFormatado: "Físico" },
56
+ { status: "FISICA", statusFormatado: "Física" },
56
57
  { status: "DIGITAL", statusFormatado: "Digital" },
57
58
  // Status do SAP
58
59
  { status: "A", statusFormatado: "Não Processado" },
@@ -1 +1 @@
1
- {"version":3,"file":"stringUtils.js","sources":["../../../../lib/base/utils/functions/stringUtils.ts"],"sourcesContent":["/**\n * Representa uma estrutura genérica de erro que pode ser retornada por APIs ou capturada em blocos try/catch.\n */\ntype ErroGenerico = {\n response?: {\n data?: {\n detail?: string;\n message?: string;\n };\n };\n mensagem?: string | { detail?: string };\n message?: string;\n error?: string;\n data?: {\n message?: string;\n } | string;\n};\n\n/**\n * Extrai uma mensagem de erro legível a partir de um objeto de erro genérico.\n * \n * A função tenta encontrar uma mensagem de erro válida a partir de múltiplas\n * estruturas comuns, como:\n * - `response.data.detail`\n * - `mensagem` (string ou objeto com `detail`)\n * - `message`\n * - `error`\n * - `data` (string ou objeto com `message`)\n * \n * Se nenhuma mensagem válida for encontrada, retorna \"Erro Inesperado\".\n *\n * @param {ErroGenerico | string} error - Objeto de erro genérico ou uma string diretamente.\n * @returns {string} Uma mensagem de erro sanitizada e legível.\n *\n * @example\n * extrairMensagemErro(\"Erro direto\"); // \"Erro direto\"\n * @example\n * extrairMensagemErro({ message: \"Falha na operação\" }); // \"Falha na operação\"\n * @example\n * extrairMensagemErro({ response: { data: { detail: \"Recurso não encontrado\" } } }); // \"Recurso não encontrado\"\n * @example\n * extrairMensagemErro({ data: \"Erro simples\" }); // \"Erro simples\"\n * @example\n * extrairMensagemErro({}); // \"Erro Inesperado\"\n */\nexport function extrairMensagemErro(error: ErroGenerico | string): string {\n const textoValido = (texto?: unknown): string =>\n typeof texto === \"string\" && texto.trim() ? texto.trim() : \"\";\n\n if (typeof error === \"string\") return textoValido(error) || \"Erro Inesperado\";\n\n const fontesDeMensagem = [\n error?.response?.data?.detail,\n error?.response?.data?.message,\n typeof error?.mensagem === \"object\" ? error.mensagem?.detail : error?.mensagem,\n error?.message,\n error?.error,\n typeof error?.data === \"string\" ? error.data : error?.data?.message,\n ];\n\n for (const fonte of fontesDeMensagem) {\n const msg = textoValido(fonte);\n if (msg) return msg;\n }\n\n return \"Erro Inesperado\";\n}\n\n/**\n * Dicionário com status e suas respectivas versões formatadas.\n */\ntype DicionarioStatus = {\n /** Status original em formato técnico (ex: 'AGUARDANDO_APROVACAO') */\n status: string\n /** Status formatado para exibição (ex: 'Aguardando aprovação') */\n statusFormatado: string\n};\n\nconst statusList: DicionarioStatus[] = [\n { status: 'AGUARDANDO', statusFormatado: 'Aguardando' },\n { status: 'AGUARDANDO_APROVACAO', statusFormatado: 'Aguardando aprovação' },\n { status: 'AGUARDANDO_BOLETO', statusFormatado: 'Aguardando boleto' },\n { status: 'AGUARDANDO_RECEPCAO', statusFormatado: 'Aguardando recepção' },\n { status: 'AGUARDANDO_VINCULO', statusFormatado: 'Aguardando vínculo' },\n { status: 'APROVADA', statusFormatado: 'Aprovada' },\n { status: 'APROVADO', statusFormatado: 'Aprovado' },\n { status: 'ATENCAO', statusFormatado: 'Atenção' },\n { status: 'CANCELADA', statusFormatado: 'Cancelada' },\n { status: 'CANCELADO', statusFormatado: 'Cancelado' },\n { status: 'COMPLETO', statusFormatado: 'Completo' },\n { status: 'CONCLUIDA', statusFormatado: 'Concluída' },\n { status: 'CONCLUIDO', statusFormatado: 'Concluído' },\n { status: 'EM_PROCESSAMENTO', statusFormatado: 'Em processamento' },\n { status: 'ENTREGUE', statusFormatado: 'Entregue' },\n { status: 'ERRO', statusFormatado: 'Erro' },\n { status: 'ERRO_INTEGRACAO', statusFormatado: 'Erro de integração' },\n { status: 'ESTORNADO', statusFormatado: 'Estornado' },\n { status: 'NOVA', statusFormatado: 'Nova' },\n { status: 'NOVO', statusFormatado: 'Novo' },\n { status: 'PARCIALMENTE_UTILIZADO', statusFormatado: 'Parcialmente utilizado' },\n { status: 'PAUSADO', statusFormatado: 'Pausado' },\n { status: 'RECEBIDO', statusFormatado: 'Recebido' },\n { status: 'REPROVADA', statusFormatado: 'Reprovada' },\n { status: 'REPROVADO', statusFormatado: 'Reprovado' },\n { status: 'VINCULADO', statusFormatado: 'Vinculado' },\n { status: 'FINALIZADO', statusFormatado: 'Finalizado' },\n // Status de Integração\n { status: 'PENDENTE', statusFormatado: 'Pendente' },\n { status: 'PROCESSANDO', statusFormatado: 'Processando' },\n { status: 'ENVIADO_SAP', statusFormatado: 'Enviado SAP' },\n { status: 'ENVIADO', statusFormatado: 'Enviado' },\n { status: 'PROCESSANDO_SAP', statusFormatado: 'Processando SAP' },\n { status: 'NAO_PROCESSADO', statusFormatado: 'Não Processado' },\n { status: 'EM_ANDAMENTO', statusFormatado: 'Em Andamento' },\n // Tipo de Envio\n { status: 'FISICO', statusFormatado: 'Físico' },\n { status: 'DIGITAL', statusFormatado: 'Digital' },\n // Status do SAP\n { status: 'A', statusFormatado: 'Não Processado' },\n { status: 'B', statusFormatado: 'Em Andamento' },\n { status: 'C', statusFormatado: 'Concluído' },\n { status: 'D', statusFormatado: 'Cancelado' },\n];\n\n/**\n * Retorna o status formatado com base em um valor técnico.\n *\n * @param {string} status - O status técnico (ex: 'AGUARDANDO_APROVACAO').\n * @returns {string} O status formatado para exibição (ex: 'Aguardando aprovação').\n * Se não encontrado, retorna o status original.\n */\nexport function formataStatus(status: string): string {\n const item = statusList.find(s => s.status === status)\n return item ? item.statusFormatado : status\n}"],"names":["extrairMensagemErro","error","textoValido","texto","fontesDeMensagem","fonte","msg","statusList","formataStatus","status","item","s"],"mappings":"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"}
1
+ {"version":3,"file":"stringUtils.js","sources":["../../../../lib/base/utils/functions/stringUtils.ts"],"sourcesContent":["/**\n * Representa uma estrutura genérica de erro que pode ser retornada por APIs ou capturada em blocos try/catch.\n */\ntype ErroGenerico = {\n response?: {\n data?: {\n detail?: string;\n message?: string;\n };\n };\n mensagem?: string | { detail?: string };\n message?: string;\n error?: string;\n data?: {\n message?: string;\n } | string;\n};\n\n/**\n * Extrai uma mensagem de erro legível a partir de um objeto de erro genérico.\n * \n * A função tenta encontrar uma mensagem de erro válida a partir de múltiplas\n * estruturas comuns, como:\n * - `response.data.detail`\n * - `mensagem` (string ou objeto com `detail`)\n * - `message`\n * - `error`\n * - `data` (string ou objeto com `message`)\n * \n * Se nenhuma mensagem válida for encontrada, retorna \"Erro Inesperado\".\n *\n * @param {ErroGenerico | string} error - Objeto de erro genérico ou uma string diretamente.\n * @returns {string} Uma mensagem de erro sanitizada e legível.\n *\n * @example\n * extrairMensagemErro(\"Erro direto\"); // \"Erro direto\"\n * @example\n * extrairMensagemErro({ message: \"Falha na operação\" }); // \"Falha na operação\"\n * @example\n * extrairMensagemErro({ response: { data: { detail: \"Recurso não encontrado\" } } }); // \"Recurso não encontrado\"\n * @example\n * extrairMensagemErro({ data: \"Erro simples\" }); // \"Erro simples\"\n * @example\n * extrairMensagemErro({}); // \"Erro Inesperado\"\n */\nexport function extrairMensagemErro(error: ErroGenerico | string): string {\n const textoValido = (texto?: unknown): string =>\n typeof texto === \"string\" && texto.trim() ? texto.trim() : \"\";\n\n if (typeof error === \"string\") return textoValido(error) || \"Erro Inesperado\";\n\n const fontesDeMensagem = [\n error?.response?.data?.detail,\n error?.response?.data?.message,\n typeof error?.mensagem === \"object\" ? error.mensagem?.detail : error?.mensagem,\n error?.message,\n error?.error,\n typeof error?.data === \"string\" ? error.data : error?.data?.message,\n ];\n\n for (const fonte of fontesDeMensagem) {\n const msg = textoValido(fonte);\n if (msg) return msg;\n }\n\n return \"Erro Inesperado\";\n}\n\n/**\n * Dicionário com status e suas respectivas versões formatadas.\n */\ntype DicionarioStatus = {\n /** Status original em formato técnico (ex: 'AGUARDANDO_APROVACAO') */\n status: string\n /** Status formatado para exibição (ex: 'Aguardando aprovação') */\n statusFormatado: string\n};\n\nconst statusList: DicionarioStatus[] = [\n { status: 'AGUARDANDO', statusFormatado: 'Aguardando' },\n { status: 'AGUARDANDO_APROVACAO', statusFormatado: 'Aguardando aprovação' },\n { status: 'AGUARDANDO_BOLETO', statusFormatado: 'Aguardando boleto' },\n { status: 'AGUARDANDO_RECEPCAO', statusFormatado: 'Aguardando recepção' },\n { status: 'AGUARDANDO_VINCULO', statusFormatado: 'Aguardando vínculo' },\n { status: 'APROVADA', statusFormatado: 'Aprovada' },\n { status: 'APROVADO', statusFormatado: 'Aprovado' },\n { status: 'ATENCAO', statusFormatado: 'Atenção' },\n { status: 'CANCELADA', statusFormatado: 'Cancelada' },\n { status: 'CANCELADO', statusFormatado: 'Cancelado' },\n { status: 'COMPLETO', statusFormatado: 'Completo' },\n { status: 'CONCLUIDA', statusFormatado: 'Concluída' },\n { status: 'CONCLUIDO', statusFormatado: 'Concluído' },\n { status: 'EM_PROCESSAMENTO', statusFormatado: 'Em processamento' },\n { status: 'ENTREGUE', statusFormatado: 'Entregue' },\n { status: 'ERRO', statusFormatado: 'Erro' },\n { status: 'ERRO_INTEGRACAO', statusFormatado: 'Erro de integração' },\n { status: 'ESTORNADO', statusFormatado: 'Estornado' },\n { status: 'NOVA', statusFormatado: 'Nova' },\n { status: 'NOVO', statusFormatado: 'Novo' },\n { status: 'PARCIALMENTE_UTILIZADO', statusFormatado: 'Parcialmente utilizado' },\n { status: 'PAUSADO', statusFormatado: 'Pausado' },\n { status: 'RECEBIDO', statusFormatado: 'Recebido' },\n { status: 'REPROVADA', statusFormatado: 'Reprovada' },\n { status: 'REPROVADO', statusFormatado: 'Reprovado' },\n { status: 'VINCULADO', statusFormatado: 'Vinculado' },\n { status: 'FINALIZADO', statusFormatado: 'Finalizado' },\n // Status de Integração\n { status: 'PENDENTE', statusFormatado: 'Pendente' },\n { status: 'PROCESSANDO', statusFormatado: 'Processando' },\n { status: 'ENVIADO_SAP', statusFormatado: 'Enviado SAP' },\n { status: 'ENVIADO', statusFormatado: 'Enviado' },\n { status: 'PROCESSANDO_SAP', statusFormatado: 'Processando SAP' },\n { status: 'NAO_PROCESSADO', statusFormatado: 'Não Processado' },\n { status: 'EM_ANDAMENTO', statusFormatado: 'Em Andamento' },\n // Tipo de Envio\n { status: 'FISICO', statusFormatado: 'Físico' },\n { status: 'FISICA', statusFormatado: 'Física' },\n { status: 'DIGITAL', statusFormatado: 'Digital' },\n // Status do SAP\n { status: 'A', statusFormatado: 'Não Processado' },\n { status: 'B', statusFormatado: 'Em Andamento' },\n { status: 'C', statusFormatado: 'Concluído' },\n { status: 'D', statusFormatado: 'Cancelado' },\n];\n\n/**\n * Retorna o status formatado com base em um valor técnico.\n *\n * @param {string} status - O status técnico (ex: 'AGUARDANDO_APROVACAO').\n * @returns {string} O status formatado para exibição (ex: 'Aguardando aprovação').\n * Se não encontrado, retorna o status original.\n */\nexport function formataStatus(status: string): string {\n const item = statusList.find(s => s.status === status)\n return item ? item.statusFormatado : status\n}"],"names":["extrairMensagemErro","error","textoValido","texto","fontesDeMensagem","fonte","msg","statusList","formataStatus","status","item","s"],"mappings":"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"}
@@ -53,6 +53,7 @@ export type TClientePedidoVenda = {
53
53
  escritorioVendaCodigo?: string
54
54
  equipeVendaCodigo?: string
55
55
  vendedorId?: number
56
+ vendedorCodigo?: string
56
57
  recebedorId?: number
57
58
  emissorId?: number
58
59
  emissorCodigo?: string
@@ -3,50 +3,14 @@ export type TAutorizacaoAtendimentoClienteColumnDef = {
3
3
  dataCriacao: string
4
4
  usuarioCriacaoId: number
5
5
  usuarioCriacaoNome: string
6
- dataEmissao: string
7
- empresaCedente: TBusinessPartner
8
- empresaCessionaria: TBusinessPartner
9
- arquivoContrato?: Blob | ArrayBuffer | string
10
- arquivoContratoAssinado?: Blob | ArrayBuffer | string
11
6
  }
12
7
 
13
8
  export type TAutorizacaoAtendimentoCliente = {
14
9
  id?: number
15
- dataEmissao?: string
10
+ dataCriacao?: string
16
11
  empresaCedenteId: number
12
+ representanteCedente: string
17
13
  empresaCessionariaId: number
18
- clienteId: number
19
- arquivoContrato?: Blob | ArrayBuffer | string
20
- arquivoContratoAssinado?: Blob | ArrayBuffer | string
21
- }
22
-
23
- export type TBusinessPartner = {
24
- id?: number
25
- ativo?: boolean
26
- isFornecedor?: boolean
27
- isCliente?: boolean
28
- businessPartner: string
29
- nomeCompletoBusinessPartner: string
30
- cnpj?: string
31
- cpf?: string
32
- cliente?: TCliente
33
- fornecedor?: TFornecedor
34
- }
35
-
36
- export type TFornecedor = {
37
- id?: number
38
- ativo?: boolean
39
- empresasFornecedor?: TEmpresa[]
40
- }
41
-
42
- export type TCliente = {
43
- id: number
44
- ativo: boolean
45
- empresasCliente: TEmpresa[]
46
- }
47
-
48
- export type TEmpresa = {
49
- id: number
50
- ativo: boolean
51
- codigoEmpresa: string
14
+ clienteNome: string
15
+ clienteCpfCnpj: string
52
16
  }
@@ -74,6 +74,7 @@ export type TClientePedidoVenda = {
74
74
  escritorioVendaCodigo?: string
75
75
  equipeVendaCodigo?: string
76
76
  vendedorId?: number
77
+ vendedorCodigo?: string
77
78
  recebedorId?: number
78
79
  emissorId?: number
79
80
  emissorCodigo?: string
@@ -3,11 +3,12 @@ const TERMO_FUNRURAL_URL = '/originacao/api/termo-funrural'
3
3
  const termoFunrural = {
4
4
  add: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'post' },
5
5
  findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'get' },
6
+ findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },
6
7
  cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },
7
8
  reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },
8
9
  aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: 'post' },
9
- reprovarTermo: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar-termo`, method: 'post' },
10
10
  reabrir: { endpoint: `${TERMO_FUNRURAL_URL}/reabrir`, method: 'post' },
11
+ uploadArquivo: { endpoint: `${TERMO_FUNRURAL_URL}/upload-arquivo/{id}`, method: 'post' },
11
12
  }
12
13
 
13
14
  export default termoFunrural
@@ -6,6 +6,7 @@ const autorizacaoAtendimentoCliente = {
6
6
  update: { endpoint: `${AUTORIZACAO_ATENDIMENTO_CLIENTE_BASE_URL}`, method: 'put' },
7
7
  delete: { endpoint: `${AUTORIZACAO_ATENDIMENTO_CLIENTE_BASE_URL}/`, method: 'delete' },
8
8
  findMonitor: { endpoint: `${AUTORIZACAO_ATENDIMENTO_CLIENTE_BASE_URL}/find-monitor`, method: 'post' },
9
+ upload: { endpoint: `${AUTORIZACAO_ATENDIMENTO_CLIENTE_BASE_URL}/upload-arquivo/`, method: 'post' },
9
10
  }
10
11
 
11
12
  export default autorizacaoAtendimentoCliente
@@ -20,6 +20,13 @@ export async function apiGetTermoFunrural(id: number) {
20
20
  });
21
21
  }
22
22
 
23
+ export async function apiFindMonitorTermoFunrural(params: string) {
24
+ return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({
25
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,
26
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,
27
+ });
28
+ }
29
+
23
30
  export async function apiCancelarTermoFunrural(id: number, motivo: string) {
24
31
  return ApiService.fetchDataWithAxios<void>({
25
32
  url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,
@@ -36,34 +43,22 @@ export async function apiReprovarTermoFunrural(id: number, motivo: string) {
36
43
  });
37
44
  }
38
45
 
39
- export async function apiAprovarGuiaTermoFunrural(id: number) {
46
+ export async function apiAprovarTermoFunrural(id: number) {
40
47
  return ApiService.fetchDataWithAxios<TTermoFunrural>({
41
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint,
48
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `${id}`,
42
49
  method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,
43
50
  data: { id },
44
51
  });
45
52
  }
46
53
 
47
- export async function apiReprovarGuiaTermoFunrural(id: number, motivoReprovacao: string) {
48
- return ApiService.fetchDataWithAxios<TTermoFunrural>({
49
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint,
50
- method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,
51
- data: { id, motivoReprovacao },
52
- });
53
- }
54
-
55
- export async function apiReabrirGuiaTermoFunrural(id: number) {
56
- return ApiService.fetchDataWithAxios<TTermoFunrural>({
57
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint,
58
- method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,
59
- data: { id },
60
- });
61
- }
62
54
 
63
- export async function apiReprovarTermoCompleto(id: number, motivo: string) {
55
+ export async function apiUploadArquivoAssinado(id: number, formData: FormData) {
64
56
  return ApiService.fetchDataWithAxios<void>({
65
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovarTermo.endpoint + `/${id}`,
66
- method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovarTermo.method,
67
- data: { motivo },
57
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),
58
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,
59
+ data: formData as any,
60
+ headers: {
61
+ 'Content-Type': 'multipart/form-data',
62
+ },
68
63
  });
69
64
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import ApiService from "@/services/ApiService";
2
3
  import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
4
  import { TAutorizacaoAtendimentoCliente } from "@base/@types/models/racao/autorizacaoAtendimentoCliente";
@@ -41,4 +42,15 @@ export async function apiFindMonitorRacaoAutorizacaoAtendimentoCliente(body?: IF
41
42
  method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.findMonitor.method,
42
43
  data: body,
43
44
  })
45
+ }
46
+
47
+ export async function apiUploadRacaoAutorizacaoAtendimentoCliente(formData: FormData, id: number) {
48
+ return ApiService.fetchDataWithAxios<any>({
49
+ url: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.upload.endpoint + `${id}`,
50
+ method: AUTORIZACAO_ATENDIMENTO_CLIENTE_ENDPOINT.upload.method,
51
+ data: formData as any,
52
+ headers: {
53
+ "Content-Type": "multipart/form-data",
54
+ },
55
+ });
44
56
  }
@@ -50,6 +50,7 @@ export const statusBadgeClasses: Record<string, string> = {
50
50
  EM_ANDAMENTO: "bg-indigo-50 text-indigo-600 whitespace-nowrap",
51
51
  // Tipo de Envio
52
52
  FISICO: "bg-gray-50 text-gray-600 whitespace-nowrap",
53
+ FISICA: "bg-gray-50 text-gray-600 whitespace-nowrap",
53
54
  DIGITAL: "bg-blue-50 text-blue-600 whitespace-nowrap",
54
55
  // Status do SAP
55
56
  A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',