@orbe-agro/client-core 5.6.255 → 5.6.257

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 (86) hide show
  1. package/dist/@ecme/components/template/Footer.js +1 -1
  2. package/dist/@ecme/components/template/Notification/Notification.js +1 -4
  3. package/dist/@ecme/components/template/Notification/Notification.js.map +1 -1
  4. package/dist/@types/base/@types/models/template/example.d.ts +40 -0
  5. package/dist/@types/base/@types/models/template/example.d.ts.map +1 -0
  6. package/dist/@types/base/@types/models/template/exampleObject.d.ts +14 -0
  7. package/dist/@types/base/@types/models/template/exampleObject.d.ts.map +1 -0
  8. package/dist/@types/base/configs/navigation.config/modules.submenu/template/submenu.template.d.ts.map +1 -1
  9. package/dist/@types/base/configs/navigation.config/submenu/index.d.ts +1 -2
  10. package/dist/@types/base/configs/navigation.config/submenu/index.d.ts.map +1 -1
  11. package/dist/@types/base/configs/navigation.config/submenu/template/cadastros.submenu.d.ts.map +1 -0
  12. package/dist/@types/base/configs/navigation.config/submenu/template/config/example.submenu.d.ts.map +1 -0
  13. package/dist/@types/base/configs/navigation.config/submenu/template/config/exampleObject.submenu.d.ts.map +1 -0
  14. package/dist/@types/base/configs/navigation.config/submenu/template/template.submenu.d.ts.map +1 -0
  15. package/dist/@types/base/services/modules/template/example/ExampleService.d.ts +7 -4
  16. package/dist/@types/base/services/modules/template/example/ExampleService.d.ts.map +1 -1
  17. package/dist/@types/base/services/modules/template/exampleObject/ExampleObjectService.d.ts +8 -0
  18. package/dist/@types/base/services/modules/template/exampleObject/ExampleObjectService.d.ts.map +1 -0
  19. package/dist/@types/base/services/modules/template/index.d.ts +1 -1
  20. package/dist/@types/base/services/modules/template/index.d.ts.map +1 -1
  21. package/dist/base/@types/models/template/example.js +16 -0
  22. package/dist/base/@types/models/template/example.js.map +1 -0
  23. package/dist/base/@types/models/template/exampleObject.js +2 -0
  24. package/dist/base/@types/models/template/exampleObject.js.map +1 -0
  25. package/dist/base/configs/index.js +48 -50
  26. package/dist/base/configs/index.js.map +1 -1
  27. package/dist/base/configs/navigation.config/index.js +46 -48
  28. package/dist/base/configs/navigation.config/index.js.map +1 -1
  29. package/dist/base/configs/navigation.config/modules.submenu/template/cadastros/submenu.example.js +1 -1
  30. package/dist/base/configs/navigation.config/modules.submenu/template/cadastros/submenu.example.js.map +1 -1
  31. package/dist/base/configs/navigation.config/modules.submenu/template/submenu.template.js +1 -1
  32. package/dist/base/configs/navigation.config/modules.submenu/template/submenu.template.js.map +1 -1
  33. package/dist/base/configs/navigation.config/submenu/agendamento/config/relatorio-cotas.js +1 -1
  34. package/dist/base/configs/navigation.config/submenu/agendamento/config/relatorio-cotas.js.map +1 -1
  35. package/dist/base/configs/navigation.config/submenu/index.js +20 -22
  36. package/dist/base/configs/navigation.config/submenu/index.js.map +1 -1
  37. package/dist/base/configs/navigation.config/submenu/template/cadastros.submenu.js.map +1 -0
  38. package/dist/base/configs/navigation.config/submenu/{example → template}/config/example.submenu.js +3 -3
  39. package/dist/base/configs/navigation.config/submenu/template/config/example.submenu.js.map +1 -0
  40. package/dist/base/configs/navigation.config/submenu/{example → template}/config/exampleObject.submenu.js +3 -3
  41. package/dist/base/configs/navigation.config/submenu/template/config/exampleObject.submenu.js.map +1 -0
  42. package/dist/base/configs/navigation.config/submenu/template/template.submenu.js.map +1 -0
  43. package/dist/base/index.js +215 -214
  44. package/dist/base/index.js.map +1 -1
  45. package/dist/base/services/index.js +5 -2
  46. package/dist/base/services/modules/index.js +5 -2
  47. package/dist/base/services/modules/template/example/ExampleService.js +26 -12
  48. package/dist/base/services/modules/template/example/ExampleService.js.map +1 -1
  49. package/dist/base/services/modules/template/exampleObject/ExampleObjectService.js +44 -0
  50. package/dist/base/services/modules/template/exampleObject/ExampleObjectService.js.map +1 -0
  51. package/dist/base/services/modules/template/index.js +5 -2
  52. package/lib/@ecme/components/template/Notification/Notification.tsx +2 -2
  53. package/lib/base/@types/models/template/example.ts +46 -0
  54. package/lib/base/@types/models/template/{exampleObject → exampleObject.ts} +3 -5
  55. package/lib/base/configs/navigation.config/modules.submenu/template/cadastros/submenu.example.ts +1 -1
  56. package/lib/base/configs/navigation.config/modules.submenu/template/submenu.template.ts +2 -3
  57. package/lib/base/configs/navigation.config/submenu/agendamento/config/relatorio-cotas.ts +1 -1
  58. package/lib/base/configs/navigation.config/submenu/index.ts +1 -2
  59. package/lib/base/configs/navigation.config/submenu/{example → template}/config/example.submenu.ts +3 -3
  60. package/lib/base/configs/navigation.config/submenu/{example → template}/config/exampleObject.submenu.ts +3 -3
  61. package/lib/base/services/modules/template/example/ExampleService.ts +36 -19
  62. package/lib/base/services/modules/template/exampleObject/ExampleObjectService.ts +44 -0
  63. package/lib/base/services/modules/template/index.ts +1 -1
  64. package/package.json +1 -1
  65. package/dist/@types/base/configs/navigation.config/submenu/example/cadastros.submenu.d.ts.map +0 -1
  66. package/dist/@types/base/configs/navigation.config/submenu/example/config/example.submenu.d.ts.map +0 -1
  67. package/dist/@types/base/configs/navigation.config/submenu/example/config/exampleObject.submenu.d.ts.map +0 -1
  68. package/dist/@types/base/configs/navigation.config/submenu/example/template.submenu.d.ts.map +0 -1
  69. package/dist/@types/base/services/modules/template/example/ExampleObjectService.d.ts +0 -6
  70. package/dist/@types/base/services/modules/template/example/ExampleObjectService.d.ts.map +0 -1
  71. package/dist/base/configs/navigation.config/submenu/example/cadastros.submenu.js.map +0 -1
  72. package/dist/base/configs/navigation.config/submenu/example/config/example.submenu.js.map +0 -1
  73. package/dist/base/configs/navigation.config/submenu/example/config/exampleObject.submenu.js.map +0 -1
  74. package/dist/base/configs/navigation.config/submenu/example/template.submenu.js.map +0 -1
  75. package/dist/base/services/modules/template/example/ExampleObjectService.js +0 -37
  76. package/dist/base/services/modules/template/example/ExampleObjectService.js.map +0 -1
  77. package/lib/base/@types/models/template/example +0 -37
  78. package/lib/base/services/modules/template/example/ExampleObjectService.ts +0 -34
  79. /package/dist/@types/base/configs/navigation.config/submenu/{example → template}/cadastros.submenu.d.ts +0 -0
  80. /package/dist/@types/base/configs/navigation.config/submenu/{example → template}/config/example.submenu.d.ts +0 -0
  81. /package/dist/@types/base/configs/navigation.config/submenu/{example → template}/config/exampleObject.submenu.d.ts +0 -0
  82. /package/dist/@types/base/configs/navigation.config/submenu/{example → template}/template.submenu.d.ts +0 -0
  83. /package/dist/base/configs/navigation.config/submenu/{example → template}/cadastros.submenu.js +0 -0
  84. /package/dist/base/configs/navigation.config/submenu/{example → template}/template.submenu.js +0 -0
  85. /package/lib/base/configs/navigation.config/submenu/{example → template}/cadastros.submenu.ts +0 -0
  86. /package/lib/base/configs/navigation.config/submenu/{example → template}/template.submenu.ts +0 -0
@@ -1,29 +1,43 @@
1
1
  import ApiService from "../../../../../@ecme/services/ApiService.js";
2
- import "../../../../configs/index.js";
3
2
  import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
4
- async function apiGetTemplateExample(body) {
3
+ const EXAMPLE_ENDPOINT = endpointNavigationConfig.template.example;
4
+ async function apiGetTemplateExample(id) {
5
5
  return ApiService.fetchDataWithAxios({
6
- url: endpointNavigationConfig.template.example.findMonitor.endpoint,
7
- method: "post",
6
+ url: EXAMPLE_ENDPOINT.findOne.endpoint + `${id}`,
7
+ method: EXAMPLE_ENDPOINT.findOne.method
8
+ });
9
+ }
10
+ async function apiAddTemplateExample(body) {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: EXAMPLE_ENDPOINT.add.endpoint,
13
+ method: EXAMPLE_ENDPOINT.add.method,
14
+ data: body
15
+ });
16
+ }
17
+ async function apiUpdateTemplateExample(body) {
18
+ return ApiService.fetchDataWithAxios({
19
+ url: EXAMPLE_ENDPOINT.update.endpoint,
20
+ method: EXAMPLE_ENDPOINT.update.method,
8
21
  data: body
9
22
  });
10
23
  }
11
- async function apiUpdateTemplateExample(data) {
24
+ async function apiDeleteTemplateExample(id) {
12
25
  return ApiService.fetchDataWithAxios({
13
- url: endpointNavigationConfig.template.example.update.endpoint,
14
- method: "post",
15
- data
26
+ url: EXAMPLE_ENDPOINT.delete.endpoint + `${id}`,
27
+ method: EXAMPLE_ENDPOINT.delete.method
16
28
  });
17
29
  }
18
- async function apiAddTemplateExample(data) {
30
+ async function apiFindMonitorTemplateExample(body) {
19
31
  return ApiService.fetchDataWithAxios({
20
- url: endpointNavigationConfig.template.example.add.endpoint,
21
- method: "post",
22
- data
32
+ url: EXAMPLE_ENDPOINT.findMonitor.endpoint,
33
+ method: EXAMPLE_ENDPOINT.findMonitor.method,
34
+ data: body
23
35
  });
24
36
  }
25
37
  export {
26
38
  apiAddTemplateExample,
39
+ apiDeleteTemplateExample,
40
+ apiFindMonitorTemplateExample,
27
41
  apiGetTemplateExample,
28
42
  apiUpdateTemplateExample
29
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleService.js","sources":["../../../../../../lib/base/services/modules/template/example/ExampleService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types\";\nimport { endpointsConfig } from \"@base/configs\";\n\nexport async function apiGetTemplateExample(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.example.findMonitor.endpoint,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiUpdateTemplateExample(data?: any) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.example.update.endpoint,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiAddTemplateExample(data?: any) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.example.add.endpoint,\n method: \"post\",\n data,\n });\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAIA,eAAsB,sBAAsB,MAAsB;AAChE,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,QAAQ,YAAY;AAAA,IAClD,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,yBAAyB,MAAY;AACzD,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,QAAQ,OAAO;AAAA,IAC7C,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;AAEA,eAAsB,sBAAsB,MAAY;AACtD,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,QAAQ,IAAI;AAAA,IAC1C,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;"}
1
+ {"version":3,"file":"ExampleService.js","sources":["../../../../../../lib/base/services/modules/template/example/ExampleService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TExample } from \"@base/@types/models/template/example\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst EXAMPLE_ENDPOINT = endpointConfig.template.example;\n\nexport async function apiGetTemplateExample(id: number) {\n return ApiService.fetchDataWithAxios<TExample>({\n url: EXAMPLE_ENDPOINT.findOne.endpoint + `${id}`,\n method: EXAMPLE_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddTemplateExample(body: TExample) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({\n url: EXAMPLE_ENDPOINT.add.endpoint,\n method: EXAMPLE_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateTemplateExample(body: TExample) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({\n url: EXAMPLE_ENDPOINT.update.endpoint,\n method: EXAMPLE_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteTemplateExample(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({\n url: EXAMPLE_ENDPOINT.delete.endpoint + `${id}`,\n method: EXAMPLE_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorTemplateExample(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({\n url: EXAMPLE_ENDPOINT.findMonitor.endpoint,\n method: EXAMPLE_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,mBAAmBA,yBAAe,SAAS;AAEjD,eAAsB,sBAAsB,IAAY;AACtD,SAAO,WAAW,mBAA6B;AAAA,IAC7C,KAAK,iBAAiB,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC9C,QAAQ,iBAAiB,QAAQ;AAAA,EAAA,CAClC;AACH;AAEA,eAAsB,sBAAsB,MAAgB;AAC1D,SAAO,WAAW,mBAA6C;AAAA,IAC7D,KAAK,iBAAiB,IAAI;AAAA,IAC1B,QAAQ,iBAAiB,IAAI;AAAA,IAC7B,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,yBAAyB,MAAgB;AAC7D,SAAO,WAAW,mBAA6C;AAAA,IAC7D,KAAK,iBAAiB,OAAO;AAAA,IAC7B,QAAQ,iBAAiB,OAAO;AAAA,IAChC,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,yBAAyB,IAAY;AACzD,SAAO,WAAW,mBAA6C;AAAA,IAC7D,KAAK,iBAAiB,OAAO,WAAW,GAAG,EAAE;AAAA,IAC7C,QAAQ,iBAAiB,OAAO;AAAA,EAAA,CACjC;AACH;AAEA,eAAsB,8BAA8B,MAAsB;AACxE,SAAO,WAAW,mBAA6C;AAAA,IAC7D,KAAK,iBAAiB,YAAY;AAAA,IAClC,QAAQ,iBAAiB,YAAY;AAAA,IACrC,MAAM;AAAA,EAAA,CACP;AACH;"}
@@ -0,0 +1,44 @@
1
+ import ApiService from "../../../../../@ecme/services/ApiService.js";
2
+ import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const EXAMPLE_OBJECT_ENDPOINT = endpointNavigationConfig.template.exampleObject;
4
+ async function apiGetTemplateExampleObject(id) {
5
+ return ApiService.fetchDataWithAxios({
6
+ url: EXAMPLE_OBJECT_ENDPOINT.findOne.endpoint + `${id}`,
7
+ method: EXAMPLE_OBJECT_ENDPOINT.findOne.method
8
+ });
9
+ }
10
+ async function apiAddTemplateExampleObject(body) {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: EXAMPLE_OBJECT_ENDPOINT.add.endpoint,
13
+ method: EXAMPLE_OBJECT_ENDPOINT.add.method,
14
+ data: body
15
+ });
16
+ }
17
+ async function apiUpdateTemplateExampleObject(body) {
18
+ return ApiService.fetchDataWithAxios({
19
+ url: EXAMPLE_OBJECT_ENDPOINT.update.endpoint,
20
+ method: EXAMPLE_OBJECT_ENDPOINT.update.method,
21
+ data: body
22
+ });
23
+ }
24
+ async function apiDeleteTemplateExampleObject(id) {
25
+ return ApiService.fetchDataWithAxios({
26
+ url: EXAMPLE_OBJECT_ENDPOINT.delete.endpoint + `${id}`,
27
+ method: EXAMPLE_OBJECT_ENDPOINT.delete.method
28
+ });
29
+ }
30
+ async function apiFindMonitorTemplateExampleObject(body) {
31
+ return ApiService.fetchDataWithAxios({
32
+ url: EXAMPLE_OBJECT_ENDPOINT.findMonitor.endpoint,
33
+ method: EXAMPLE_OBJECT_ENDPOINT.findMonitor.method,
34
+ data: body
35
+ });
36
+ }
37
+ export {
38
+ apiAddTemplateExampleObject,
39
+ apiDeleteTemplateExampleObject,
40
+ apiFindMonitorTemplateExampleObject,
41
+ apiGetTemplateExampleObject,
42
+ apiUpdateTemplateExampleObject
43
+ };
44
+ //# sourceMappingURL=ExampleObjectService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleObjectService.js","sources":["../../../../../../lib/base/services/modules/template/exampleObject/ExampleObjectService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TExampleObject } from \"@base/@types/models/template/exampleObject\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst EXAMPLE_OBJECT_ENDPOINT = endpointConfig.template.exampleObject;\n\nexport async function apiGetTemplateExampleObject(id: number) {\n return ApiService.fetchDataWithAxios<TExampleObject>({\n url: EXAMPLE_OBJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: EXAMPLE_OBJECT_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddTemplateExampleObject(body: TExampleObject) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({\n url: EXAMPLE_OBJECT_ENDPOINT.add.endpoint,\n method: EXAMPLE_OBJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateTemplateExampleObject(body: TExampleObject) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({\n url: EXAMPLE_OBJECT_ENDPOINT.update.endpoint,\n method: EXAMPLE_OBJECT_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteTemplateExampleObject(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({\n url: EXAMPLE_OBJECT_ENDPOINT.delete.endpoint + `${id}`,\n method: EXAMPLE_OBJECT_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorTemplateExampleObject(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({\n url: EXAMPLE_OBJECT_ENDPOINT.findMonitor.endpoint,\n method: EXAMPLE_OBJECT_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,0BAA0BA,yBAAe,SAAS;AAExD,eAAsB,4BAA4B,IAAY;AAC5D,SAAO,WAAW,mBAAmC;AAAA,IACnD,KAAK,wBAAwB,QAAQ,WAAW,GAAG,EAAE;AAAA,IACrD,QAAQ,wBAAwB,QAAQ;AAAA,EAAA,CACzC;AACH;AAEA,eAAsB,4BAA4B,MAAsB;AACtE,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAK,wBAAwB,IAAI;AAAA,IACjC,QAAQ,wBAAwB,IAAI;AAAA,IACpC,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,+BAA+B,MAAsB;AACzE,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAK,wBAAwB,OAAO;AAAA,IACpC,QAAQ,wBAAwB,OAAO;AAAA,IACvC,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,+BAA+B,IAAY;AAC/D,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAK,wBAAwB,OAAO,WAAW,GAAG,EAAE;AAAA,IACpD,QAAQ,wBAAwB,OAAO;AAAA,EAAA,CACxC;AACH;AAEA,eAAsB,oCAAoC,MAAsB;AAC9E,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAK,wBAAwB,YAAY;AAAA,IACzC,QAAQ,wBAAwB,YAAY;AAAA,IAC5C,MAAM;AAAA,EAAA,CACP;AACH;"}
@@ -1,11 +1,14 @@
1
- import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExample, apiUpdateTemplateExampleObject } from "./example/ExampleObjectService.js";
2
- import { apiAddTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./example/ExampleService.js";
1
+ import { apiAddTemplateExampleObject, apiDeleteTemplateExampleObject, apiFindMonitorTemplateExampleObject, apiGetTemplateExampleObject, apiUpdateTemplateExampleObject } from "./exampleObject/ExampleObjectService.js";
2
+ import { apiAddTemplateExample, apiDeleteTemplateExample, apiFindMonitorTemplateExample, apiGetTemplateExample, apiUpdateTemplateExample } from "./example/ExampleService.js";
3
3
  export {
4
4
  apiAddTemplateExample,
5
5
  apiAddTemplateExampleObject,
6
+ apiDeleteTemplateExample,
6
7
  apiDeleteTemplateExampleObject,
7
8
  apiFindMonitorTemplateExample,
9
+ apiFindMonitorTemplateExampleObject,
8
10
  apiGetTemplateExample,
11
+ apiGetTemplateExampleObject,
9
12
  apiUpdateTemplateExample,
10
13
  apiUpdateTemplateExampleObject
11
14
  };
@@ -58,9 +58,9 @@ const _Notification = ({ className }: { className?: string }) => {
58
58
  }
59
59
  }
60
60
 
61
- useEffect(() => {
61
+ /* useEffect(() => {
62
62
  getNotificationCount()
63
- }, [])
63
+ }, []) */
64
64
 
65
65
  const onNotificationOpen = async () => {
66
66
  if (notificationList.length === 0) {
@@ -0,0 +1,46 @@
1
+ import { TExampleObject } from "./exampleObject";
2
+
3
+ export enum StatusAssinatura {
4
+ ENVIADO = 'ENVIADO',
5
+ PENDENTE = 'PENDENTE',
6
+ }
7
+
8
+ export enum SimpleSelectOptions {
9
+ EXAMPLE_SIMPLE_SELECT = 'EXAMPLE_SIMPLE_SELECT_1',
10
+ EXAMPLE_SIMPLE_SELECT_2 = 'EXAMPLE_SIMPLE_SELECT_2',
11
+ EXAMPLE_SIMPLE_SELECT_3 = 'EXAMPLE_SIMPLE_SELECT_3'
12
+ }
13
+
14
+ export type TExampleColumnDef = {
15
+ id: number
16
+ dataCriacao: string
17
+ usuarioCriacaoId: number
18
+ usuarioCriacaoNome: string
19
+ exampleString: string;
20
+ exampleNumber: number;
21
+ statusAssinatura: StatusAssinatura | string
22
+ envelopeDocusignId: string
23
+ };
24
+
25
+ export type TExample = {
26
+ id?: number;
27
+ exampleString: string;
28
+ exampleNumber: number;
29
+ exampleCheckBox: boolean
30
+ exampleRadio: string
31
+ exampleSimpleSelect: SimpleSelectOptions | string;
32
+ exampleSelectId: number;
33
+ /* exampleObject: TExampleObject; */
34
+ exampleArray: TExampleArray[];
35
+ arquivoContratoId?: number | null
36
+ arquivoContratoAssinadoId?: number | null
37
+ envelopeDocusignId?: string | null
38
+ statusAssinatura?: string | null
39
+ };
40
+
41
+ export type TExampleArray = {
42
+ id?: number | null;
43
+ exampleSelectId: number;
44
+ exampleString: string;
45
+ exampleNumber: number;
46
+ };
@@ -1,16 +1,14 @@
1
- import { TUser } from "../user"
2
-
3
1
  export type TExampleObjectColumnDef = {
4
- id: string
2
+ id: number
5
3
  dataCriacao: string
6
- usuarioCriacao: TUser
4
+ usuarioCriacaoId: number
5
+ usuarioCriacaoNome: string
7
6
  exampleString: string
8
7
  exampleNumber: number
9
8
  }
10
9
 
11
10
  export type TExampleObject = {
12
11
  id?: number
13
- usuarioCriacao?: string
14
12
  exampleString: string
15
13
  exampleNumber: number
16
14
  }
@@ -1,7 +1,7 @@
1
1
  import { NavigationTree } from '@/@types/navigation'
2
2
  import { NAV_ITEM_TYPE_COLLAPSE } from '@/constants/navigation.constant'
3
3
  import { ADMIN } from '@/constants/roles.constant'
4
- import cadastrosSubmenu from '@base/configs/navigation.config/submenu/example/cadastros.submenu'
4
+ import cadastrosSubmenu from '@base/configs/navigation.config/submenu/template/cadastros.submenu'
5
5
 
6
6
  const subMenuCadastros: NavigationTree = {
7
7
  key: 'modules.template.cadastros',
@@ -1,10 +1,9 @@
1
1
  import { NavigationTree } from '@/@types/navigation'
2
2
  import { NAV_ITEM_TYPE_COLLAPSE } from '@/constants/navigation.constant'
3
3
  import { ADMIN } from '@/constants/roles.constant'
4
- import templateSubmenu from '../../submenu/example/template.submenu'
4
+ import templateSubmenu from '../../submenu/template/template.submenu'
5
5
 
6
- const subMenuTemplate: NavigationTree =
7
- {
6
+ const subMenuTemplate: NavigationTree = {
8
7
  key: 'modules.template',
9
8
  path: '',
10
9
  title: 'Template',
@@ -6,7 +6,7 @@ import { ADMIN, USER } from '@/constants/roles.constant'
6
6
 
7
7
  const relatorioCotasSubmenu: NavigationTree = {
8
8
 
9
- key: 'agendamento.vendas.contrato',
9
+ key: 'agendamento.vendas.contrato.relatorio-cotas',
10
10
  path: '/agendamento/vendas/contrato/relatorio-cotas',
11
11
  title: 'Relatório de Cotas Liberadas',
12
12
  translateKey: 'nav.agendamento.vendas.contrato.relatorio-cotas',
@@ -2,8 +2,6 @@
2
2
  export { default as admSubmenu } from './adm/adm.submenu';
3
3
  export { default as commoditiesSubmenu } from './commodities/commodities.submenu';
4
4
  export { default as controleAcessoSubmenu } from './controle-acesso/controle-acesso.submenu';
5
- export { default as cadastrosSubmenu } from './example/cadastros.submenu';
6
- export { default as templateSubmenu } from './example/template.submenu';
7
5
  export { default as fluxSubmenu } from './flux/flux.submenu';
8
6
  export { default as orcamentoSubmenu } from './orcamento/orcamento.submenu';
9
7
  export { default as insumosSubmenu } from './insumos/insumos.submenu';
@@ -13,3 +11,4 @@ export { default as racaoSubmenu } from './racao/racao.submenu';
13
11
  export { default as bayerSubmenu } from './bayer/bayer.submenu';
14
12
  export { default as performanceSubmenu } from './performance/performance.submenu';
15
13
  export { default as ativosSubmenu } from './ativos/ativos.submenu';
14
+ export { default as templateSubmenu } from './template/template.submenu';
@@ -3,11 +3,11 @@ import { ADMIN } from '@/constants/roles.constant'
3
3
  import { NavigationTree } from '@/@types/navigation'
4
4
 
5
5
  const exampleSubmenu: NavigationTree = {
6
- key: 'modules.template.cadastros.example',
6
+ key: 'modules.template.example',
7
7
  path: '/template/example',
8
8
  title: 'Example',
9
- translateKey: 'nav.modules.template.cadastros.example.title',
10
- icon: 'customers',
9
+ translateKey: 'nav.modules.template.example.title',
10
+ icon: 'example-icon',
11
11
  type: NAV_ITEM_TYPE_ITEM,
12
12
  forceShowTitle: true,
13
13
  authority: [ADMIN],
@@ -3,11 +3,11 @@ import { ADMIN } from '@/constants/roles.constant'
3
3
  import { NavigationTree } from '@/@types/navigation'
4
4
 
5
5
  const exampleObjectSubmenu: NavigationTree = {
6
- key: 'modules.template.cadastros.exampleObject',
6
+ key: 'modules.template.exampleObject',
7
7
  path: '/template/example-object',
8
8
  title: 'Example Object',
9
- translateKey: 'nav.modules.template.cadastros.exampleObject.title',
10
- icon: 'customers',
9
+ translateKey: 'nav.modules.template.exampleObject.title',
10
+ icon: 'example-object-icon',
11
11
  type: NAV_ITEM_TYPE_ITEM,
12
12
  forceShowTitle: true,
13
13
  authority: [ADMIN],
@@ -1,27 +1,44 @@
1
1
  import ApiService from "@/services/ApiService";
2
- import { IFilterParams, TQueryResponse } from "@base/@types";
3
- import { endpointsConfig } from "@base/configs";
2
+ import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
+ import { TExample } from "@base/@types/models/template/example";
4
+ import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
4
5
 
5
- export async function apiGetTemplateExample(body?: IFilterParams) {
6
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
7
- url: endpointsConfig.template.example.findMonitor.endpoint,
8
- method: "post",
6
+ const EXAMPLE_ENDPOINT = endpointConfig.template.example;
7
+
8
+ export async function apiGetTemplateExample(id: number) {
9
+ return ApiService.fetchDataWithAxios<TExample>({
10
+ url: EXAMPLE_ENDPOINT.findOne.endpoint + `${id}`,
11
+ method: EXAMPLE_ENDPOINT.findOne.method,
12
+ })
13
+ }
14
+
15
+ export async function apiAddTemplateExample(body: TExample) {
16
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({
17
+ url: EXAMPLE_ENDPOINT.add.endpoint,
18
+ method: EXAMPLE_ENDPOINT.add.method,
9
19
  data: body,
10
- });
20
+ })
11
21
  }
12
22
 
13
- export async function apiUpdateTemplateExample(data?: any) {
14
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
15
- url: endpointsConfig.template.example.update.endpoint,
16
- method: "post",
17
- data,
18
- });
23
+ export async function apiUpdateTemplateExample(body: TExample) {
24
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({
25
+ url: EXAMPLE_ENDPOINT.update.endpoint,
26
+ method: EXAMPLE_ENDPOINT.update.method,
27
+ data: body,
28
+ })
19
29
  }
20
30
 
21
- export async function apiAddTemplateExample(data?: any) {
22
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
23
- url: endpointsConfig.template.example.add.endpoint,
24
- method: "post",
25
- data,
26
- });
31
+ export async function apiDeleteTemplateExample(id: number) {
32
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({
33
+ url: EXAMPLE_ENDPOINT.delete.endpoint + `${id}`,
34
+ method: EXAMPLE_ENDPOINT.delete.method,
35
+ })
36
+ }
37
+
38
+ export async function apiFindMonitorTemplateExample(body?: IFilterParams) {
39
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExample>>({
40
+ url: EXAMPLE_ENDPOINT.findMonitor.endpoint,
41
+ method: EXAMPLE_ENDPOINT.findMonitor.method,
42
+ data: body,
43
+ })
27
44
  }
@@ -0,0 +1,44 @@
1
+ import ApiService from "@/services/ApiService";
2
+ import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
+ import { TExampleObject } from "@base/@types/models/template/exampleObject";
4
+ import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
5
+
6
+ const EXAMPLE_OBJECT_ENDPOINT = endpointConfig.template.exampleObject;
7
+
8
+ export async function apiGetTemplateExampleObject(id: number) {
9
+ return ApiService.fetchDataWithAxios<TExampleObject>({
10
+ url: EXAMPLE_OBJECT_ENDPOINT.findOne.endpoint + `${id}`,
11
+ method: EXAMPLE_OBJECT_ENDPOINT.findOne.method,
12
+ })
13
+ }
14
+
15
+ export async function apiAddTemplateExampleObject(body: TExampleObject) {
16
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({
17
+ url: EXAMPLE_OBJECT_ENDPOINT.add.endpoint,
18
+ method: EXAMPLE_OBJECT_ENDPOINT.add.method,
19
+ data: body,
20
+ })
21
+ }
22
+
23
+ export async function apiUpdateTemplateExampleObject(body: TExampleObject) {
24
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({
25
+ url: EXAMPLE_OBJECT_ENDPOINT.update.endpoint,
26
+ method: EXAMPLE_OBJECT_ENDPOINT.update.method,
27
+ data: body,
28
+ })
29
+ }
30
+
31
+ export async function apiDeleteTemplateExampleObject(id: number) {
32
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({
33
+ url: EXAMPLE_OBJECT_ENDPOINT.delete.endpoint + `${id}`,
34
+ method: EXAMPLE_OBJECT_ENDPOINT.delete.method,
35
+ })
36
+ }
37
+
38
+ export async function apiFindMonitorTemplateExampleObject(body?: IFilterParams) {
39
+ return ApiService.fetchDataWithAxios<TQueryResponse<TExampleObject>>({
40
+ url: EXAMPLE_OBJECT_ENDPOINT.findMonitor.endpoint,
41
+ method: EXAMPLE_OBJECT_ENDPOINT.findMonitor.method,
42
+ data: body,
43
+ })
44
+ }
@@ -1,2 +1,2 @@
1
- export * from './example/ExampleObjectService';
1
+ export * from './exampleObject/ExampleObjectService';
2
2
  export * from './example/ExampleService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.255",
3
+ "version": "5.6.257",
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",
@@ -1 +0,0 @@
1
- {"version":3,"file":"cadastros.submenu.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/navigation.config/submenu/example/cadastros.submenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAIpD,QAAA,MAAM,gBAAgB,EAAE,cAAc,EAGrC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"example.submenu.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/base/configs/navigation.config/submenu/example/config/example.submenu.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,QAAA,MAAM,cAAc,EAAE,cAUrB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exampleObject.submenu.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/base/configs/navigation.config/submenu/example/config/exampleObject.submenu.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,QAAA,MAAM,oBAAoB,EAAE,cAU3B,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.submenu.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/navigation.config/submenu/example/template.submenu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAGzD,QAAA,MAAM,eAAe,EAAE,cAAc,EAEpC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,6 +0,0 @@
1
- import { IFilterParams, TQueryResponse } from "@base/@types";
2
- export declare function apiDeleteTemplateExampleObject(id: string): Promise<any>;
3
- export declare function apiFindMonitorTemplateExample(body?: IFilterParams): Promise<TQueryResponse<any>>;
4
- export declare function apiUpdateTemplateExampleObject(data?: any): Promise<TQueryResponse<any>>;
5
- export declare function apiAddTemplateExampleObject(data?: any): Promise<TQueryResponse<any>>;
6
- //# sourceMappingURL=ExampleObjectService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExampleObjectService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/template/example/ExampleObjectService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG7D,wBAAsB,8BAA8B,CAAC,EAAE,EAAE,MAAM,gBAK9D;AAED,wBAAsB,6BAA6B,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMvE;AAED,wBAAsB,8BAA8B,CAAC,IAAI,CAAC,EAAE,GAAG,gCAM9D;AAED,wBAAsB,2BAA2B,CAAC,IAAI,CAAC,EAAE,GAAG,gCAM3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cadastros.submenu.js","sources":["../../../../../../lib/base/configs/navigation.config/submenu/example/cadastros.submenu.ts"],"sourcesContent":["import { NavigationTree } from \"@/@types/navigation\"\nimport exampleSubmenu from \"./config/example.submenu\"\nimport exampleObjectSubmenu from \"./config/exampleObject.submenu\"\n\nconst cadastrosSubmenu: NavigationTree[] = [\n exampleSubmenu,\n exampleObjectSubmenu\n]\n\nexport default cadastrosSubmenu"],"names":[],"mappings":";;AAIA,MAAM,mBAAqC;AAAA,EACvC;AAAA,EACA;AACJ;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"example.submenu.js","sources":["../../../../../../../lib/base/configs/navigation.config/submenu/example/config/example.submenu.ts"],"sourcesContent":["import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'\nimport { ADMIN } from '@/constants/roles.constant'\nimport { NavigationTree } from '@/@types/navigation'\n\nconst exampleSubmenu: NavigationTree = {\n key: 'modules.template.cadastros.example',\n path: '/template/example',\n title: 'Example',\n translateKey: 'nav.modules.template.cadastros.example.title',\n icon: 'customers',\n type: NAV_ITEM_TYPE_ITEM,\n forceShowTitle: true,\n authority: [ADMIN],\n subMenu: [],\n}\n\nexport default exampleSubmenu"],"names":[],"mappings":";;AAIA,MAAM,iBAAiC;AAAA,EACnC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,MAAM;AAAA,EACN,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,WAAW,CAAC,KAAK;AAAA,EACjB,SAAS,CAAA;AACb;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exampleObject.submenu.js","sources":["../../../../../../../lib/base/configs/navigation.config/submenu/example/config/exampleObject.submenu.ts"],"sourcesContent":["import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'\nimport { ADMIN } from '@/constants/roles.constant'\nimport { NavigationTree } from '@/@types/navigation'\n\nconst exampleObjectSubmenu: NavigationTree = {\n key: 'modules.template.cadastros.exampleObject',\n path: '/template/example-object',\n title: 'Example Object',\n translateKey: 'nav.modules.template.cadastros.exampleObject.title',\n icon: 'customers',\n type: NAV_ITEM_TYPE_ITEM,\n forceShowTitle: true,\n authority: [ADMIN],\n subMenu: [],\n}\n\nexport default exampleObjectSubmenu"],"names":[],"mappings":";;AAIA,MAAM,uBAAuC;AAAA,EACzC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,MAAM;AAAA,EACN,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,WAAW,CAAC,KAAK;AAAA,EACjB,SAAS,CAAA;AACb;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.submenu.js","sources":["../../../../../../lib/base/configs/navigation.config/submenu/example/template.submenu.ts"],"sourcesContent":["import type { NavigationTree } from '@/@types/navigation'\nimport subMenuCadastros from '../../modules.submenu/template/cadastros/submenu.example'\n\nconst templateSubmenu: NavigationTree[] = [\n subMenuCadastros,\n]\n\nexport default templateSubmenu"],"names":[],"mappings":";AAGA,MAAM,kBAAoC;AAAA,EACtC;AACJ;"}
@@ -1,37 +0,0 @@
1
- import ApiService from "../../../../../@ecme/services/ApiService.js";
2
- import "../../../../configs/index.js";
3
- import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
4
- async function apiDeleteTemplateExampleObject(id) {
5
- return ApiService.fetchDataWithAxios({
6
- url: `${endpointNavigationConfig.template.exampleObject.delete}/${id}`,
7
- method: "delete"
8
- });
9
- }
10
- async function apiFindMonitorTemplateExample(body) {
11
- return ApiService.fetchDataWithAxios({
12
- url: endpointNavigationConfig.template.exampleObject.findMonitor.endpoint,
13
- method: "post",
14
- data: body
15
- });
16
- }
17
- async function apiUpdateTemplateExampleObject(data) {
18
- return ApiService.fetchDataWithAxios({
19
- url: endpointNavigationConfig.template.example.update.endpoint,
20
- method: "post",
21
- data
22
- });
23
- }
24
- async function apiAddTemplateExampleObject(data) {
25
- return ApiService.fetchDataWithAxios({
26
- url: endpointNavigationConfig.template.example.add.endpoint,
27
- method: "post",
28
- data
29
- });
30
- }
31
- export {
32
- apiAddTemplateExampleObject,
33
- apiDeleteTemplateExampleObject,
34
- apiFindMonitorTemplateExample,
35
- apiUpdateTemplateExampleObject
36
- };
37
- //# sourceMappingURL=ExampleObjectService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExampleObjectService.js","sources":["../../../../../../lib/base/services/modules/template/example/ExampleObjectService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types\";\nimport { endpointsConfig } from \"@base/configs\";\n\nexport async function apiDeleteTemplateExampleObject(id: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${endpointsConfig.template.exampleObject.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiFindMonitorTemplateExample(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.exampleObject.findMonitor.endpoint,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiUpdateTemplateExampleObject(data?: any) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.example.update.endpoint,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiAddTemplateExampleObject(data?: any) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.template.example.add.endpoint,\n method: \"post\",\n data,\n });\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAIA,eAAsB,+BAA+B,IAAY;AAC/D,SAAO,WAAW,mBAAwB;AAAA,IACxC,KAAK,GAAGA,yBAAgB,SAAS,cAAc,MAAM,IAAI,EAAE;AAAA,IAC3D,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,8BAA8B,MAAsB;AACxE,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,cAAc,YAAY;AAAA,IACxD,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,+BAA+B,MAAY;AAC/D,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,QAAQ,OAAO;AAAA,IAC7C,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;AAEA,eAAsB,4BAA4B,MAAY;AAC5D,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,SAAS,QAAQ,IAAI;AAAA,IAC1C,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;"}
@@ -1,37 +0,0 @@
1
- import { TUser } from "../user";
2
- import { TExampleObject } from "./exampleObject";
3
-
4
- export type TExampleColumnDef = {
5
- id: string;
6
- dataCriacao: string;
7
- usuarioCriacao: TUser;
8
- exampleString: string;
9
- exampleNumber: number;
10
- exampleObject: TExampleObject;
11
- exampleArray: TExampleArray[];
12
- };
13
-
14
- export type TExample = {
15
- id?: number;
16
- usuarioCriacao?: string;
17
- exampleString: string;
18
- exampleNumber: number;
19
- exampleObject: TExampleObject;
20
- exampleArray: TExampleArray[];
21
- exampleUpload: TExampleUpload[];
22
- };
23
-
24
- export type TExampleArray = {
25
- id?: number | null;
26
- exampleObject: TExampleObject;
27
- exampleString: string;
28
- exampleNumber: number;
29
- };
30
-
31
- export type TExampleUpload = {
32
- id?: number;
33
- name: string;
34
- size: number;
35
- type: string;
36
- fileBase64: string;
37
- };
@@ -1,34 +0,0 @@
1
- import ApiService from "@/services/ApiService";
2
- import { IFilterParams, TQueryResponse } from "@base/@types";
3
- import { endpointsConfig } from "@base/configs";
4
-
5
- export async function apiDeleteTemplateExampleObject(id: string) {
6
- return ApiService.fetchDataWithAxios<any>({
7
- url: `${endpointsConfig.template.exampleObject.delete}/${id}`,
8
- method: "delete",
9
- });
10
- }
11
-
12
- export async function apiFindMonitorTemplateExample(body?: IFilterParams) {
13
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
14
- url: endpointsConfig.template.exampleObject.findMonitor.endpoint,
15
- method: "post",
16
- data: body,
17
- });
18
- }
19
-
20
- export async function apiUpdateTemplateExampleObject(data?: any) {
21
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
22
- url: endpointsConfig.template.example.update.endpoint,
23
- method: "post",
24
- data,
25
- });
26
- }
27
-
28
- export async function apiAddTemplateExampleObject(data?: any) {
29
- return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
30
- url: endpointsConfig.template.example.add.endpoint,
31
- method: "post",
32
- data,
33
- });
34
- }