@orbe-agro/client-core 5.6.37 → 5.6.39

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 (81) hide show
  1. package/dist/@types/base/@types/models/insumos/faturamentoVsDespesa.d.ts +2 -0
  2. package/dist/@types/base/@types/models/insumos/faturamentoVsDespesa.d.ts.map +1 -1
  3. package/dist/@types/base/@types/models/insumos/limiteAdiantamentoCliente.d.ts +20 -0
  4. package/dist/@types/base/@types/models/insumos/limiteAdiantamentoCliente.d.ts.map +1 -0
  5. package/dist/@types/base/@types/models/insumos/limiteAdiantamentoGeral.d.ts +17 -0
  6. package/dist/@types/base/@types/models/insumos/limiteAdiantamentoGeral.d.ts.map +1 -0
  7. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +44 -0
  8. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/insumos/config/faturamentoVsDespesa.d.ts.map +1 -1
  10. package/dist/@types/base/configs/endpoints.config/insumos/config/limiteAdiantamentoCliente.d.ts +24 -0
  11. package/dist/@types/base/configs/endpoints.config/insumos/config/limiteAdiantamentoCliente.d.ts.map +1 -0
  12. package/dist/@types/base/configs/endpoints.config/insumos/config/limiteAdiantamentoGeral.d.ts +24 -0
  13. package/dist/@types/base/configs/endpoints.config/insumos/config/limiteAdiantamentoGeral.d.ts.map +1 -0
  14. package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts +44 -0
  15. package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts.map +1 -1
  16. package/dist/@types/base/configs/navigation.config/submenu/insumos/cadastros.submenu.d.ts.map +1 -1
  17. package/dist/@types/base/configs/navigation.config/submenu/insumos/config/limiteAdiantamento.submenu.d.ts +4 -0
  18. package/dist/@types/base/configs/navigation.config/submenu/insumos/config/limiteAdiantamento.submenu.d.ts.map +1 -0
  19. package/dist/@types/base/services/index.d.ts +1 -0
  20. package/dist/@types/base/services/index.d.ts.map +1 -1
  21. package/dist/@types/base/services/modules/index.d.ts +1 -0
  22. package/dist/@types/base/services/modules/index.d.ts.map +1 -1
  23. package/dist/@types/base/services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.d.ts +3 -3
  24. package/dist/@types/base/services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.d.ts.map +1 -1
  25. package/dist/@types/base/services/modules/insumos/index.d.ts +2 -0
  26. package/dist/@types/base/services/modules/insumos/index.d.ts.map +1 -1
  27. package/dist/@types/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.d.ts +8 -0
  28. package/dist/@types/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.d.ts.map +1 -0
  29. package/dist/@types/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.d.ts +8 -0
  30. package/dist/@types/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.d.ts.map +1 -0
  31. package/dist/@types/base/services/modules/performance/index.d.ts +2 -0
  32. package/dist/@types/base/services/modules/performance/index.d.ts.map +1 -0
  33. package/dist/base/@types/models/insumos/limiteAdiantamentoCliente.js +2 -0
  34. package/dist/base/@types/models/insumos/limiteAdiantamentoCliente.js.map +1 -0
  35. package/dist/base/@types/models/insumos/limiteAdiantamentoGeral.js +2 -0
  36. package/dist/base/@types/models/insumos/limiteAdiantamentoGeral.js.map +1 -0
  37. package/dist/base/configs/endpoints.config/insumos/config/faturamentoVsDespesa.js +13 -4
  38. package/dist/base/configs/endpoints.config/insumos/config/faturamentoVsDespesa.js.map +1 -1
  39. package/dist/base/configs/endpoints.config/insumos/config/limiteAdiantamentoCliente.js +27 -0
  40. package/dist/base/configs/endpoints.config/insumos/config/limiteAdiantamentoCliente.js.map +1 -0
  41. package/dist/base/configs/endpoints.config/insumos/config/limiteAdiantamentoGeral.js +24 -0
  42. package/dist/base/configs/endpoints.config/insumos/config/limiteAdiantamentoGeral.js.map +1 -0
  43. package/dist/base/configs/endpoints.config/insumos/insumos.js +4 -0
  44. package/dist/base/configs/endpoints.config/insumos/insumos.js.map +1 -1
  45. package/dist/base/configs/navigation.config/submenu/insumos/cadastros.submenu.js +2 -0
  46. package/dist/base/configs/navigation.config/submenu/insumos/cadastros.submenu.js.map +1 -1
  47. package/dist/base/configs/navigation.config/submenu/insumos/config/limiteAdiantamento.submenu.js +17 -0
  48. package/dist/base/configs/navigation.config/submenu/insumos/config/limiteAdiantamento.submenu.js.map +1 -0
  49. package/dist/base/index.js +24 -0
  50. package/dist/base/index.js.map +1 -1
  51. package/dist/base/services/index.js +25 -0
  52. package/dist/base/services/index.js.map +1 -1
  53. package/dist/base/services/modules/index.js +25 -0
  54. package/dist/base/services/modules/index.js.map +1 -1
  55. package/dist/base/services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js +28 -20
  56. package/dist/base/services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js.map +1 -1
  57. package/dist/base/services/modules/insumos/index.js +12 -0
  58. package/dist/base/services/modules/insumos/index.js.map +1 -1
  59. package/dist/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js +44 -0
  60. package/dist/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js.map +1 -0
  61. package/dist/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js +44 -0
  62. package/dist/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js.map +1 -0
  63. package/dist/base/services/modules/performance/index.js +15 -0
  64. package/dist/base/services/modules/performance/index.js.map +1 -0
  65. package/lib/base/@types/models/insumos/faturamentoVsDespesa.ts +3 -1
  66. package/lib/base/@types/models/insumos/limiteAdiantamentoCliente.ts +20 -0
  67. package/lib/base/@types/models/insumos/limiteAdiantamentoGeral.ts +17 -0
  68. package/lib/base/configs/endpoints.config/insumos/config/faturamentoVsDespesa.ts +14 -5
  69. package/lib/base/configs/endpoints.config/insumos/config/limiteAdiantamentoCliente.ts +27 -0
  70. package/lib/base/configs/endpoints.config/insumos/config/limiteAdiantamentoGeral.ts +24 -0
  71. package/lib/base/configs/endpoints.config/insumos/insumos.ts +4 -0
  72. package/lib/base/configs/navigation.config/submenu/insumos/cadastros.submenu.ts +2 -0
  73. package/lib/base/configs/navigation.config/submenu/insumos/config/limiteAdiantamento.submenu.ts +17 -0
  74. package/lib/base/services/index.ts +1 -0
  75. package/lib/base/services/modules/index.ts +1 -0
  76. package/lib/base/services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.ts +44 -28
  77. package/lib/base/services/modules/insumos/index.ts +2 -0
  78. package/lib/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.ts +60 -0
  79. package/lib/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.ts +60 -0
  80. package/lib/base/services/modules/performance/index.ts +1 -0
  81. package/package.json +1 -1
@@ -0,0 +1,44 @@
1
+ import ApiService from "../../../../../@ecme/services/ApiService.js";
2
+ import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const LIMITE_ADIANTAMENTO_GERAL_ENDPOINT = endpointNavigationConfig.insumos.limiteAdiantamentoGeral;
4
+ async function apiGetInsumosLimiteAdiantamentoGeral(id) {
5
+ return ApiService.fetchDataWithAxios({
6
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.endpoint + `${id}`,
7
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.method
8
+ });
9
+ }
10
+ async function apiAddInsumosLimiteAdiantamentoGeral(body) {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.endpoint,
13
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.method,
14
+ data: body
15
+ });
16
+ }
17
+ async function apiUpdateInsumosLimiteAdiantamentoGeral(id, body) {
18
+ return ApiService.fetchDataWithAxios({
19
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.endpoint + `${id}`,
20
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.method,
21
+ data: body
22
+ });
23
+ }
24
+ async function apiDeleteInsumosLimiteAdiantamentoGeral(id) {
25
+ return ApiService.fetchDataWithAxios({
26
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.endpoint + `${id}`,
27
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.method
28
+ });
29
+ }
30
+ async function apiFindMonitorInsumosLimiteAdiantamentoGeral(body) {
31
+ return ApiService.fetchDataWithAxios({
32
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.endpoint,
33
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.method,
34
+ data: body
35
+ });
36
+ }
37
+ export {
38
+ apiAddInsumosLimiteAdiantamentoGeral,
39
+ apiDeleteInsumosLimiteAdiantamentoGeral,
40
+ apiFindMonitorInsumosLimiteAdiantamentoGeral,
41
+ apiGetInsumosLimiteAdiantamentoGeral,
42
+ apiUpdateInsumosLimiteAdiantamentoGeral
43
+ };
44
+ //# sourceMappingURL=LimiteAdiantamentoGeralService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimiteAdiantamentoGeralService.js","sources":["../../../../../../lib/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { TLimiteAdiantamentoGeral } from '@base/@types/models/insumos/limiteAdiantamentoGeral'\nimport endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'\n\nconst LIMITE_ADIANTAMENTO_GERAL_ENDPOINT =\n endpointConfig.insumos.limiteAdiantamentoGeral\n\nexport async function apiGetInsumosLimiteAdiantamentoGeral(id: number) {\n return ApiService.fetchDataWithAxios<TLimiteAdiantamentoGeral>({\n url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.endpoint + `${id}`,\n method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddInsumosLimiteAdiantamentoGeral(\n body: TLimiteAdiantamentoGeral,\n) {\n return ApiService.fetchDataWithAxios<\n TQueryResponse<TLimiteAdiantamentoGeral>\n >({\n url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.endpoint,\n method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateInsumosLimiteAdiantamentoGeral(\n id: number,\n body: Partial<TLimiteAdiantamentoGeral>,\n) {\n return ApiService.fetchDataWithAxios<\n TQueryResponse<TLimiteAdiantamentoGeral>\n >({\n url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.endpoint + `${id}`,\n method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteInsumosLimiteAdiantamentoGeral(id: number) {\n return ApiService.fetchDataWithAxios<\n TQueryResponse<TLimiteAdiantamentoGeral>\n >({\n url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.endpoint + `${id}`,\n method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorInsumosLimiteAdiantamentoGeral(\n body?: IFilterParams,\n) {\n return ApiService.fetchDataWithAxios<\n TQueryResponse<TLimiteAdiantamentoGeral>\n >({\n url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.endpoint,\n method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,qCACFA,yBAAe,QAAQ;AAE3B,eAAsB,qCAAqC,IAAY;AACnE,SAAO,WAAW,mBAA6C;AAAA,IAC3D,KAAK,mCAAmC,QAAQ,WAAW,GAAG,EAAE;AAAA,IAChE,QAAQ,mCAAmC,QAAQ;AAAA,EAAA,CACtD;AACL;AAEA,eAAsB,qCAClB,MACF;AACE,SAAO,WAAW,mBAEhB;AAAA,IACE,KAAK,mCAAmC,IAAI;AAAA,IAC5C,QAAQ,mCAAmC,IAAI;AAAA,IAC/C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,wCAClB,IACA,MACF;AACE,SAAO,WAAW,mBAEhB;AAAA,IACE,KAAK,mCAAmC,OAAO,WAAW,GAAG,EAAE;AAAA,IAC/D,QAAQ,mCAAmC,OAAO;AAAA,IAClD,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,wCAAwC,IAAY;AACtE,SAAO,WAAW,mBAEhB;AAAA,IACE,KAAK,mCAAmC,OAAO,WAAW,GAAG,EAAE;AAAA,IAC/D,QAAQ,mCAAmC,OAAO;AAAA,EAAA,CACrD;AACL;AAEA,eAAsB,6CAClB,MACF;AACE,SAAO,WAAW,mBAEhB;AAAA,IACE,KAAK,mCAAmC,YAAY;AAAA,IACpD,QAAQ,mCAAmC,YAAY;AAAA,IACvD,MAAM;AAAA,EAAA,CACT;AACL;"}
@@ -0,0 +1,15 @@
1
+ import { apiCreateCategoria, apiCreateModeloNota, apiDeleteCategoria, apiDeleteModeloNota, apiFindOneCategoria, apiFindOneModeloNota, apiGetAreaAtuacao, apiGetCategoria, apiGetModeloNota, apiUpdateCategoria, apiUpdateModeloNota } from "./PerformanceService.js";
2
+ export {
3
+ apiCreateCategoria,
4
+ apiCreateModeloNota,
5
+ apiDeleteCategoria,
6
+ apiDeleteModeloNota,
7
+ apiFindOneCategoria,
8
+ apiFindOneModeloNota,
9
+ apiGetAreaAtuacao,
10
+ apiGetCategoria,
11
+ apiGetModeloNota,
12
+ apiUpdateCategoria,
13
+ apiUpdateModeloNota
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -11,6 +11,7 @@ export type TFaturamentoVsDespesaColumnDef = {
11
11
  isento: boolean
12
12
  safraId: number
13
13
  safra?: string
14
+ blAtivo: boolean
14
15
  }
15
16
 
16
17
  export type TFaturamentoVsDespesa = {
@@ -22,4 +23,5 @@ export type TFaturamentoVsDespesa = {
22
23
  percentualCustoAjustado: number
23
24
  isento: boolean
24
25
  safraId: number
25
- }
26
+ blAtivo?: boolean
27
+ }
@@ -0,0 +1,20 @@
1
+ export type TLimiteAdiantamentoClienteColumnDef = {
2
+ id: number
3
+ dataCriacao: string | Date
4
+ usuarioCriacaoId: number
5
+ usuarioCriacaoNome: string
6
+ safraId: number
7
+ safraDescricao?: string
8
+ clienteId: number
9
+ clienteNome?: string
10
+ percentual: number
11
+ blAtivo: boolean
12
+ }
13
+
14
+ export type TLimiteAdiantamentoCliente = {
15
+ id?: number
16
+ safraId?: number
17
+ clienteId?: number
18
+ percentual: number
19
+ blAtivo?: boolean
20
+ }
@@ -0,0 +1,17 @@
1
+ export type TLimiteAdiantamentoGeralColumnDef = {
2
+ id: number
3
+ dataCriacao: string | Date
4
+ usuarioCriacaoId: number
5
+ usuarioCriacaoNome: string
6
+ safraId: number
7
+ safraDescricao?: string
8
+ percentual: number
9
+ blAtivo: boolean
10
+ }
11
+
12
+ export type TLimiteAdiantamentoGeral = {
13
+ id?: number
14
+ safraId?: number
15
+ percentual: number
16
+ blAtivo?: boolean
17
+ }
@@ -1,12 +1,21 @@
1
- const FATURAMENTO_VS_DESPESA_BASE_URL = '/insumos/api/insumos/faturamento-vs-despesa'
1
+ const FATURAMENTO_VS_DESPESA_BASE_URL = '/insumos/api/faturamento-vs-despesa'
2
2
 
3
3
  const faturamentoVsDespesa = {
4
4
  findOne: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/`, method: 'get' },
5
5
  add: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}`, method: 'post' },
6
- update: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/`, method: 'put' },
7
- delete: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/`, method: 'delete' },
6
+ update: {
7
+ endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/`,
8
+ method: 'patch',
9
+ },
10
+ delete: {
11
+ endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/`,
12
+ method: 'delete',
13
+ },
8
14
  findAll: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}`, method: 'get' },
9
- findMonitor: { endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/find-monitor`, method: 'post' },
15
+ findMonitor: {
16
+ endpoint: `${FATURAMENTO_VS_DESPESA_BASE_URL}/find-monitor`,
17
+ method: 'post',
18
+ },
10
19
  }
11
20
 
12
- export default faturamentoVsDespesa
21
+ export default faturamentoVsDespesa
@@ -0,0 +1,27 @@
1
+ const LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL =
2
+ '/insumos/api/limite-adiantamento-cliente'
3
+
4
+ const limiteAdiantamentoCliente = {
5
+ findOne: {
6
+ endpoint: `${LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL}/`,
7
+ method: 'get',
8
+ },
9
+ add: {
10
+ endpoint: `${LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL}`,
11
+ method: 'post',
12
+ },
13
+ update: {
14
+ endpoint: `${LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL}/`,
15
+ method: 'patch',
16
+ },
17
+ delete: {
18
+ endpoint: `${LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL}/`,
19
+ method: 'delete',
20
+ },
21
+ findMonitor: {
22
+ endpoint: `${LIMITE_ADIANTAMENTO_CLIENTE_BASE_URL}/find-monitor`,
23
+ method: 'post',
24
+ },
25
+ }
26
+
27
+ export default limiteAdiantamentoCliente
@@ -0,0 +1,24 @@
1
+ const LIMITE_ADIANTAMENTO_GERAL_BASE_URL =
2
+ '/insumos/api/limite-adiantamento-geral'
3
+
4
+ const limiteAdiantamentoGeral = {
5
+ findOne: {
6
+ endpoint: `${LIMITE_ADIANTAMENTO_GERAL_BASE_URL}/`,
7
+ method: 'get',
8
+ },
9
+ add: { endpoint: `${LIMITE_ADIANTAMENTO_GERAL_BASE_URL}`, method: 'post' },
10
+ update: {
11
+ endpoint: `${LIMITE_ADIANTAMENTO_GERAL_BASE_URL}/`,
12
+ method: 'patch',
13
+ },
14
+ delete: {
15
+ endpoint: `${LIMITE_ADIANTAMENTO_GERAL_BASE_URL}/`,
16
+ method: 'delete',
17
+ },
18
+ findMonitor: {
19
+ endpoint: `${LIMITE_ADIANTAMENTO_GERAL_BASE_URL}/find-monitor`,
20
+ method: 'post',
21
+ },
22
+ }
23
+
24
+ export default limiteAdiantamentoGeral
@@ -6,6 +6,8 @@ import faturamentoVsDespesa from './config/faturamentoVsDespesa'
6
6
  import freteMaterial from './config/freteMaterial'
7
7
  import itemCompra from './config/itemCompra'
8
8
  import liberacaoCompra from './config/liberacaoCompra'
9
+ import limiteAdiantamentoCliente from './config/limiteAdiantamentoCliente'
10
+ import limiteAdiantamentoGeral from './config/limiteAdiantamentoGeral'
9
11
  import margemVenda from './config/margemVenda'
10
12
  import parametrosJuros from './config/parametrosJuros'
11
13
  import percentualPagamento from './config/percentualPagamento'
@@ -22,6 +24,8 @@ const insumos = {
22
24
  freteMaterial: freteMaterial,
23
25
  itemCompra: itemCompra,
24
26
  liberacaoCompra: liberacaoCompra,
27
+ limiteAdiantamentoCliente: limiteAdiantamentoCliente,
28
+ limiteAdiantamentoGeral: limiteAdiantamentoGeral,
25
29
  margemVenda: margemVenda,
26
30
  parametrosJuros: parametrosJuros,
27
31
  percentualPagamento: percentualPagamento,
@@ -1,5 +1,6 @@
1
1
  import { NavigationTree } from '@/@types/navigation'
2
2
  import freteMaterialSubmenu from './config/freteMaterial.submenu'
3
+ import limiteAdiantamentoSubmenu from './config/limiteAdiantamento.submenu'
3
4
  import margemVendaSubmenu from './config/margemVenda.submenu'
4
5
  import parametrosJurosSubmenu from './config/parametrosJuros.submenu'
5
6
  import percentualPagamentoSubmenu from './config/percentualPagamento.submenu'
@@ -11,6 +12,7 @@ import principiosAtivoSubmenu from './config/principioAtivo.submenu'
11
12
 
12
13
  const cadastrosSubmenu: NavigationTree[] = [
13
14
  freteMaterialSubmenu,
15
+ limiteAdiantamentoSubmenu,
14
16
  margemVendaSubmenu,
15
17
  parametrosJurosSubmenu,
16
18
  percentualPagamentoSubmenu,
@@ -0,0 +1,17 @@
1
+ import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'
2
+ import { ADMIN } from '@/constants/roles.constant'
3
+ import { NavigationTree } from '@/@types/navigation'
4
+
5
+ const limiteAdiantamentoSubmenu: NavigationTree = {
6
+ key: 'modules.insumos.limiteAdiantamento',
7
+ path: '/insumos/limite-adiantamento',
8
+ title: 'Limite de Adiantamento',
9
+ translateKey: 'nav.modules.insumos.limiteAdiantamento.title',
10
+ icon: 'dollar-sign',
11
+ type: NAV_ITEM_TYPE_ITEM,
12
+ forceShowTitle: true,
13
+ authority: [ADMIN],
14
+ subMenu: [],
15
+ }
16
+
17
+ export default limiteAdiantamentoSubmenu
@@ -27,4 +27,5 @@ export * from './modules/originacao';
27
27
  export * from './modules/transportadora';
28
28
  export * from './modules/insumos';
29
29
  export * from './modules/bayer';
30
+ export * from './modules/performance';
30
31
 
@@ -11,3 +11,4 @@ export * from './originacao';
11
11
  export * from './transportadora';
12
12
  export * from './insumos';
13
13
  export * from './modules.query';
14
+ export * from './performance';
@@ -1,9 +1,10 @@
1
- import ApiService from "@/services/ApiService";
2
- import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
- import { TFaturamentoVsDespesa } from "@base/@types/models/insumos/faturamentoVsDespesa";
4
- import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
1
+ import ApiService from '@/services/ApiService'
2
+ import { IFilterParams, TQueryResponse } from '@base/@types/api'
3
+ import { TFaturamentoVsDespesa } from '@base/@types/models/insumos/faturamentoVsDespesa'
4
+ import endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'
5
5
 
6
- const FATURAMENTO_VS_DESPESA_ENDPOINT = endpointConfig.insumos.faturamentoVsDespesa;
6
+ const FATURAMENTO_VS_DESPESA_ENDPOINT =
7
+ endpointConfig.insumos.faturamentoVsDespesa
7
8
 
8
9
  export async function apiGetInsumosFaturamentoVsDespesa(id: number) {
9
10
  return ApiService.fetchDataWithAxios<TFaturamentoVsDespesa>({
@@ -12,27 +13,38 @@ export async function apiGetInsumosFaturamentoVsDespesa(id: number) {
12
13
  })
13
14
  }
14
15
 
15
- export async function apiAddInsumosFaturamentoVsDespesa(body: TFaturamentoVsDespesa) {
16
- return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>({
17
- url: FATURAMENTO_VS_DESPESA_ENDPOINT.add.endpoint,
18
- method: FATURAMENTO_VS_DESPESA_ENDPOINT.add.method,
19
- data: body,
20
- })
16
+ export async function apiAddInsumosFaturamentoVsDespesa(
17
+ body: TFaturamentoVsDespesa,
18
+ ) {
19
+ return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>(
20
+ {
21
+ url: FATURAMENTO_VS_DESPESA_ENDPOINT.add.endpoint,
22
+ method: FATURAMENTO_VS_DESPESA_ENDPOINT.add.method,
23
+ data: body,
24
+ },
25
+ )
21
26
  }
22
27
 
23
- export async function apiUpdateInsumosFaturamentoVsDespesa(body: TFaturamentoVsDespesa) {
24
- return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>({
25
- url: FATURAMENTO_VS_DESPESA_ENDPOINT.update.endpoint,
26
- method: FATURAMENTO_VS_DESPESA_ENDPOINT.update.method,
27
- data: body,
28
- })
28
+ export async function apiUpdateInsumosFaturamentoVsDespesa(
29
+ id: number,
30
+ body: Partial<TFaturamentoVsDespesa>,
31
+ ) {
32
+ return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>(
33
+ {
34
+ url: FATURAMENTO_VS_DESPESA_ENDPOINT.update.endpoint + `${id}`,
35
+ method: FATURAMENTO_VS_DESPESA_ENDPOINT.update.method,
36
+ data: body,
37
+ },
38
+ )
29
39
  }
30
40
 
31
41
  export async function apiDeleteInsumosFaturamentoVsDespesa(id: number) {
32
- return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>({
33
- url: FATURAMENTO_VS_DESPESA_ENDPOINT.delete.endpoint + `${id}`,
34
- method: FATURAMENTO_VS_DESPESA_ENDPOINT.delete.method,
35
- })
42
+ return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>(
43
+ {
44
+ url: FATURAMENTO_VS_DESPESA_ENDPOINT.delete.endpoint + `${id}`,
45
+ method: FATURAMENTO_VS_DESPESA_ENDPOINT.delete.method,
46
+ },
47
+ )
36
48
  }
37
49
 
38
50
  export async function apiGetAllInsumosFaturamentoVsDespesa() {
@@ -42,10 +54,14 @@ export async function apiGetAllInsumosFaturamentoVsDespesa() {
42
54
  })
43
55
  }
44
56
 
45
- export async function apiFindMonitorInsumosFaturamentoVsDespesa(body?: IFilterParams) {
46
- return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>({
47
- url: FATURAMENTO_VS_DESPESA_ENDPOINT.findMonitor.endpoint,
48
- method: FATURAMENTO_VS_DESPESA_ENDPOINT.findMonitor.method,
49
- data: body,
50
- })
51
- }
57
+ export async function apiFindMonitorInsumosFaturamentoVsDespesa(
58
+ body?: IFilterParams,
59
+ ) {
60
+ return ApiService.fetchDataWithAxios<TQueryResponse<TFaturamentoVsDespesa>>(
61
+ {
62
+ url: FATURAMENTO_VS_DESPESA_ENDPOINT.findMonitor.endpoint,
63
+ method: FATURAMENTO_VS_DESPESA_ENDPOINT.findMonitor.method,
64
+ data: body,
65
+ },
66
+ )
67
+ }
@@ -7,6 +7,8 @@ export * from './coberturaSeguroAgricola/CoberturaSeguroAgricolaService'
7
7
  export * from './comissaoVenda/ComissaoVendaService'
8
8
  export * from './faturamentoVsDespesa/FaturamentoVsDespesaService'
9
9
  export * from './freteMaterial/FreteMaterialService'
10
+ export * from './limiteAdiantamentoCliente/LimiteAdiantamentoClienteService'
11
+ export * from './limiteAdiantamentoGeral/LimiteAdiantamentoGeralService'
10
12
  export * from './margemVenda/MargemVendaService'
11
13
  export * from './parametrosJuros/ParametrosJurosService'
12
14
  export * from './percentualPagamento/PercentualPagamentoService'
@@ -0,0 +1,60 @@
1
+ import ApiService from '@/services/ApiService'
2
+ import { IFilterParams, TQueryResponse } from '@base/@types/api'
3
+ import { TLimiteAdiantamentoCliente } from '@base/@types/models/insumos/limiteAdiantamentoCliente'
4
+ import endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'
5
+
6
+ const LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT =
7
+ endpointConfig.insumos.limiteAdiantamentoCliente
8
+
9
+ export async function apiGetInsumosLimiteAdiantamentoCliente(id: number) {
10
+ return ApiService.fetchDataWithAxios<TLimiteAdiantamentoCliente>({
11
+ url: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.findOne.endpoint + `${id}`,
12
+ method: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.findOne.method,
13
+ })
14
+ }
15
+
16
+ export async function apiAddInsumosLimiteAdiantamentoCliente(
17
+ body: TLimiteAdiantamentoCliente,
18
+ ) {
19
+ return ApiService.fetchDataWithAxios<
20
+ TQueryResponse<TLimiteAdiantamentoCliente>
21
+ >({
22
+ url: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.add.endpoint,
23
+ method: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.add.method,
24
+ data: body,
25
+ })
26
+ }
27
+
28
+ export async function apiUpdateInsumosLimiteAdiantamentoCliente(
29
+ id: number,
30
+ body: Partial<TLimiteAdiantamentoCliente>,
31
+ ) {
32
+ return ApiService.fetchDataWithAxios<
33
+ TQueryResponse<TLimiteAdiantamentoCliente>
34
+ >({
35
+ url: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.update.endpoint + `${id}`,
36
+ method: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.update.method,
37
+ data: body,
38
+ })
39
+ }
40
+
41
+ export async function apiDeleteInsumosLimiteAdiantamentoCliente(id: number) {
42
+ return ApiService.fetchDataWithAxios<
43
+ TQueryResponse<TLimiteAdiantamentoCliente>
44
+ >({
45
+ url: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.delete.endpoint + `${id}`,
46
+ method: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.delete.method,
47
+ })
48
+ }
49
+
50
+ export async function apiFindMonitorInsumosLimiteAdiantamentoCliente(
51
+ body?: IFilterParams,
52
+ ) {
53
+ return ApiService.fetchDataWithAxios<
54
+ TQueryResponse<TLimiteAdiantamentoCliente>
55
+ >({
56
+ url: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.findMonitor.endpoint,
57
+ method: LIMITE_ADIANTAMENTO_CLIENTE_ENDPOINT.findMonitor.method,
58
+ data: body,
59
+ })
60
+ }
@@ -0,0 +1,60 @@
1
+ import ApiService from '@/services/ApiService'
2
+ import { IFilterParams, TQueryResponse } from '@base/@types/api'
3
+ import { TLimiteAdiantamentoGeral } from '@base/@types/models/insumos/limiteAdiantamentoGeral'
4
+ import endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'
5
+
6
+ const LIMITE_ADIANTAMENTO_GERAL_ENDPOINT =
7
+ endpointConfig.insumos.limiteAdiantamentoGeral
8
+
9
+ export async function apiGetInsumosLimiteAdiantamentoGeral(id: number) {
10
+ return ApiService.fetchDataWithAxios<TLimiteAdiantamentoGeral>({
11
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.endpoint + `${id}`,
12
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findOne.method,
13
+ })
14
+ }
15
+
16
+ export async function apiAddInsumosLimiteAdiantamentoGeral(
17
+ body: TLimiteAdiantamentoGeral,
18
+ ) {
19
+ return ApiService.fetchDataWithAxios<
20
+ TQueryResponse<TLimiteAdiantamentoGeral>
21
+ >({
22
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.endpoint,
23
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.add.method,
24
+ data: body,
25
+ })
26
+ }
27
+
28
+ export async function apiUpdateInsumosLimiteAdiantamentoGeral(
29
+ id: number,
30
+ body: Partial<TLimiteAdiantamentoGeral>,
31
+ ) {
32
+ return ApiService.fetchDataWithAxios<
33
+ TQueryResponse<TLimiteAdiantamentoGeral>
34
+ >({
35
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.endpoint + `${id}`,
36
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.update.method,
37
+ data: body,
38
+ })
39
+ }
40
+
41
+ export async function apiDeleteInsumosLimiteAdiantamentoGeral(id: number) {
42
+ return ApiService.fetchDataWithAxios<
43
+ TQueryResponse<TLimiteAdiantamentoGeral>
44
+ >({
45
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.endpoint + `${id}`,
46
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.delete.method,
47
+ })
48
+ }
49
+
50
+ export async function apiFindMonitorInsumosLimiteAdiantamentoGeral(
51
+ body?: IFilterParams,
52
+ ) {
53
+ return ApiService.fetchDataWithAxios<
54
+ TQueryResponse<TLimiteAdiantamentoGeral>
55
+ >({
56
+ url: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.endpoint,
57
+ method: LIMITE_ADIANTAMENTO_GERAL_ENDPOINT.findMonitor.method,
58
+ data: body,
59
+ })
60
+ }
@@ -0,0 +1 @@
1
+ export * from './PerformanceService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.37",
3
+ "version": "5.6.39",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",