@orbe-agro/client-core 5.3.270 → 5.3.271

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.
@@ -2,4 +2,9 @@ export type TCreateAreaRequest = {
2
2
  nome: string;
3
3
  responsavelId: number;
4
4
  };
5
+ export type TUpdateAreaRequest = {
6
+ id: number;
7
+ nome: string;
8
+ responsavelId: number;
9
+ };
5
10
  //# sourceMappingURL=TCreateAreaRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TCreateAreaRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/dm/TCreateAreaRequest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACxB,CAAA"}
1
+ {"version":3,"file":"TCreateAreaRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/dm/TCreateAreaRequest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACxB,CAAA"}
@@ -3,6 +3,10 @@ declare const area: {
3
3
  endpoint: string;
4
4
  method: string;
5
5
  };
6
+ update: {
7
+ endpoint: (id: number) => string;
8
+ method: string;
9
+ };
6
10
  findOne: {
7
11
  endpoint: (id: number) => string;
8
12
  method: string;
@@ -13,7 +17,7 @@ declare const area: {
13
17
  };
14
18
  findMonitor: {
15
19
  endpoint: string;
16
- httpMethod: string;
20
+ method: string;
17
21
  };
18
22
  };
19
23
  export default area;
@@ -1 +1 @@
1
- {"version":3,"file":"area.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/area.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;uBAEkB,MAAM;;;;;;;;;;;CAGjC,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"area.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/area.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;uBAEiB,MAAM;;;;uBACL,MAAM;;;;;;;;;;;CAGjC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -382,6 +382,10 @@ declare const dm: {
382
382
  endpoint: string;
383
383
  method: string;
384
384
  };
385
+ update: {
386
+ endpoint: (id: number) => string;
387
+ method: string;
388
+ };
385
389
  findOne: {
386
390
  endpoint: (id: number) => string;
387
391
  method: string;
@@ -392,7 +396,7 @@ declare const dm: {
392
396
  };
393
397
  findMonitor: {
394
398
  endpoint: string;
395
- httpMethod: string;
399
+ method: string;
396
400
  };
397
401
  };
398
402
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BP,CAAA;AAED,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BP,CAAA;AAED,eAAe,EAAE,CAAC"}
@@ -722,6 +722,10 @@ declare const endpointNavigationConfig: {
722
722
  endpoint: string;
723
723
  method: string;
724
724
  };
725
+ update: {
726
+ endpoint: (id: number) => string;
727
+ method: string;
728
+ };
725
729
  findOne: {
726
730
  endpoint: (id: number) => string;
727
731
  method: string;
@@ -732,7 +736,7 @@ declare const endpointNavigationConfig: {
732
736
  };
733
737
  findMonitor: {
734
738
  endpoint: string;
735
- httpMethod: string;
739
+ method: string;
736
740
  };
737
741
  };
738
742
  };
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { IFilterParams, TQueryResponse } from "@base/@types/api";
2
- import { TCreateAreaRequest } from "@base/@types/api/request/dm/TCreateAreaRequest";
2
+ import { TCreateAreaRequest, TUpdateAreaRequest } from "@base/@types/api/request/dm/TCreateAreaRequest";
3
3
  import { TCreateAreaResponse } from "@base/@types/api/response/dadosMestres/TCreateAreaResponse";
4
4
  import { TBusinessPartner } from "@base/@types/models/dm/businessPartner";
5
5
  export declare function apiGetAreById(id: number): Promise<TBusinessPartner>;
6
6
  export declare function apiGetAllArea(): Promise<TBusinessPartner>;
7
7
  export declare function apiFindMonitorArea(body?: IFilterParams): Promise<TQueryResponse<any>>;
8
8
  export declare function apiCreateArea(body?: TCreateAreaRequest): Promise<TQueryResponse<TCreateAreaResponse>>;
9
+ export declare function apiUpdateArea(id: number, body?: TUpdateAreaRequest): Promise<TQueryResponse<TCreateAreaResponse>>;
9
10
  //# sourceMappingURL=AreaService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AreaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/area/AreaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAK1E,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,6BAK7C;AAED,wBAAsB,aAAa,8BAKlC;AAED,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,aAAa,gCAM5D;AAED,wBAAsB,aAAa,CAAC,IAAI,CAAC,EAAE,kBAAkB,gDAM5D"}
1
+ {"version":3,"file":"AreaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/area/AreaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAK1E,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,6BAK7C;AAED,wBAAsB,aAAa,8BAKlC;AAED,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,aAAa,gCAM5D;AAED,wBAAsB,aAAa,CAAC,IAAI,CAAC,EAAE,kBAAkB,gDAM5D;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAC,MAAM,EAAC,IAAI,CAAC,EAAE,kBAAkB,gDAMtE"}
@@ -1,9 +1,10 @@
1
1
  const CENTRO_BASE_URL = "/dados-mestres/api/area";
2
2
  const area = {
3
3
  create: { endpoint: `${CENTRO_BASE_URL}`, method: "post" },
4
+ update: { endpoint: (id) => `${CENTRO_BASE_URL}/${id}`, method: "put" },
4
5
  findOne: { endpoint: (id) => `${CENTRO_BASE_URL}/${id}`, method: "get" },
5
6
  findAll: { endpoint: `${CENTRO_BASE_URL}`, method: "get" },
6
- findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: "post" }
7
+ findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, method: "post" }
7
8
  };
8
9
  export {
9
10
  area as default
@@ -1 +1 @@
1
- {"version":3,"file":"area.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/area.ts"],"sourcesContent":["const CENTRO_BASE_URL = '/dados-mestres/api/area'\n\nconst area = {\n create: { endpoint: `${CENTRO_BASE_URL}`, method: 'post' },\n findOne: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'get'},\n findAll: {endpoint: `${CENTRO_BASE_URL}`,method: 'get'},\n findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: 'post'}\n}\n\nexport default area"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,OAAO;AAAA,EACT,QAAQ,EAAE,UAAU,GAAG,eAAe,IAAI,QAAQ,OAAO;AAAA,EACzD,SAAS,EAAC,UAAU,CAAC,OAAY,GAAG,eAAe,IAAI,EAAE,IAAG,QAAQ,MAAK;AAAA,EACzE,SAAS,EAAC,UAAU,GAAG,eAAe,IAAG,QAAQ,MAAK;AAAA,EACtD,aAAa,EAAE,UAAU,GAAG,eAAe,iBAAiB,YAAY,OAAM;AAClF;"}
1
+ {"version":3,"file":"area.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/area.ts"],"sourcesContent":["const CENTRO_BASE_URL = '/dados-mestres/api/area'\n\nconst area = {\n create: { endpoint: `${CENTRO_BASE_URL}`, method: 'post' },\n update: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'put'},\n findOne: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'get'},\n findAll: {endpoint: `${CENTRO_BASE_URL}`,method: 'get'},\n findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, method: 'post'}\n}\n\nexport default area"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,OAAO;AAAA,EACT,QAAQ,EAAE,UAAU,GAAG,eAAe,IAAI,QAAQ,OAAO;AAAA,EACzD,QAAQ,EAAC,UAAU,CAAC,OAAY,GAAG,eAAe,IAAI,EAAE,IAAG,QAAQ,MAAK;AAAA,EACxE,SAAS,EAAC,UAAU,CAAC,OAAY,GAAG,eAAe,IAAI,EAAE,IAAG,QAAQ,MAAK;AAAA,EACzE,SAAS,EAAC,UAAU,GAAG,eAAe,IAAG,QAAQ,MAAK;AAAA,EACtD,aAAa,EAAE,UAAU,GAAG,eAAe,iBAAiB,QAAQ,OAAM;AAC9E;"}
@@ -4,7 +4,7 @@ import endpointNavigationConfig from "../../../../configs/endpoints.config/endpo
4
4
  const AREA_ENDPOINT = endpointNavigationConfig.dm.area;
5
5
  async function apiGetAreById(id) {
6
6
  return ApiService.fetchDataWithAxios({
7
- url: AREA_ENDPOINT.findOne.endpoint + `${id}`,
7
+ url: AREA_ENDPOINT.findOne.endpoint(id),
8
8
  method: AREA_ENDPOINT.findOne.method
9
9
  });
10
10
  }
@@ -17,14 +17,21 @@ async function apiGetAllArea() {
17
17
  async function apiFindMonitorArea(body) {
18
18
  return ApiService.fetchDataWithAxios({
19
19
  url: AREA_ENDPOINT.findMonitor.endpoint,
20
- method: AREA_ENDPOINT.findMonitor.httpMethod,
20
+ method: AREA_ENDPOINT.findMonitor.method,
21
21
  data: body
22
22
  });
23
23
  }
24
24
  async function apiCreateArea(body) {
25
25
  return ApiService.fetchDataWithAxios({
26
- url: AREA_ENDPOINT.findMonitor.endpoint,
27
- method: AREA_ENDPOINT.findMonitor.httpMethod,
26
+ url: AREA_ENDPOINT.create.endpoint,
27
+ method: AREA_ENDPOINT.create.method,
28
+ data: body
29
+ });
30
+ }
31
+ async function apiUpdateArea(id, body) {
32
+ return ApiService.fetchDataWithAxios({
33
+ url: AREA_ENDPOINT.update.endpoint(id),
34
+ method: AREA_ENDPOINT.update.method,
28
35
  data: body
29
36
  });
30
37
  }
@@ -32,6 +39,7 @@ export {
32
39
  apiCreateArea,
33
40
  apiFindMonitorArea,
34
41
  apiGetAllArea,
35
- apiGetAreById
42
+ apiGetAreById,
43
+ apiUpdateArea
36
44
  };
37
45
  //# sourceMappingURL=AreaService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AreaService.js","sources":["../../../../../../lib/base/services/modules/dm/area/AreaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TCreateAreaRequest } from \"@base/@types/api/request/dm/TCreateAreaRequest\";\nimport { TCreateAreaResponse } from \"@base/@types/api/response/dadosMestres/TCreateAreaResponse\";\nimport { TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst AREA_ENDPOINT = endpointsConfig.dm.area;\n\nexport async function apiGetAreById(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: AREA_ENDPOINT.findOne.endpoint + `${id}`,\n method: AREA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiGetAllArea() {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: AREA_ENDPOINT.findAll.endpoint,\n method: AREA_ENDPOINT.findAll.method,\n })\n}\n\nexport async function apiFindMonitorArea(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: AREA_ENDPOINT.findMonitor.endpoint,\n method: AREA_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiCreateArea(body?: TCreateAreaRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCreateAreaResponse>>({\n url: AREA_ENDPOINT.findMonitor.endpoint,\n method: AREA_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}"],"names":["endpointsConfig"],"mappings":";;;AAOA,MAAM,gBAAgBA,yBAAgB,GAAG;AAEzC,eAAsB,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC3C,QAAQ,cAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,gBAAgB;AAClC,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,QAAQ;AAAA,IAC3B,QAAQ,cAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,mBAAmB,MAAsB;AAC3D,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,YAAY;AAAA,IAC/B,QAAQ,cAAc,YAAY;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,MAA2B;AAC3D,SAAO,WAAW,mBAAwD;AAAA,IACtE,KAAK,cAAc,YAAY;AAAA,IAC/B,QAAQ,cAAc,YAAY;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"AreaService.js","sources":["../../../../../../lib/base/services/modules/dm/area/AreaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TCreateAreaRequest, TUpdateAreaRequest } from \"@base/@types/api/request/dm/TCreateAreaRequest\";\nimport { TCreateAreaResponse } from \"@base/@types/api/response/dadosMestres/TCreateAreaResponse\";\nimport { TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst AREA_ENDPOINT = endpointsConfig.dm.area;\n\nexport async function apiGetAreById(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: AREA_ENDPOINT.findOne.endpoint(id),\n method: AREA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiGetAllArea() {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: AREA_ENDPOINT.findAll.endpoint,\n method: AREA_ENDPOINT.findAll.method,\n })\n}\n\nexport async function apiFindMonitorArea(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: AREA_ENDPOINT.findMonitor.endpoint,\n method: AREA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiCreateArea(body?: TCreateAreaRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCreateAreaResponse>>({\n url: AREA_ENDPOINT.create.endpoint,\n method: AREA_ENDPOINT.create.method,\n data: body,\n })\n}\n\nexport async function apiUpdateArea(id:number,body?: TUpdateAreaRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCreateAreaResponse>>({\n url: AREA_ENDPOINT.update.endpoint(id),\n method: AREA_ENDPOINT.update.method,\n data: body,\n })\n}"],"names":["endpointsConfig"],"mappings":";;;AAOA,MAAM,gBAAgBA,yBAAgB,GAAG;AAEzC,eAAsB,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,QAAQ,SAAS,EAAE;AAAA,IACtC,QAAQ,cAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,gBAAgB;AAClC,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,QAAQ;AAAA,IAC3B,QAAQ,cAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,mBAAmB,MAAsB;AAC3D,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,YAAY;AAAA,IAC/B,QAAQ,cAAc,YAAY;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,MAA2B;AAC3D,SAAO,WAAW,mBAAwD;AAAA,IACtE,KAAK,cAAc,OAAO;AAAA,IAC1B,QAAQ,cAAc,OAAO;AAAA,IAC7B,MAAM;AAAA,EAAA,CACT;AACL;AAEsB,eAAA,cAAc,IAAU,MAA2B;AACrE,SAAO,WAAW,mBAAwD;AAAA,IACtE,KAAK,cAAc,OAAO,SAAS,EAAE;AAAA,IACrC,QAAQ,cAAc,OAAO;AAAA,IAC7B,MAAM;AAAA,EAAA,CACT;AACL;"}
@@ -1,4 +1,10 @@
1
1
  export type TCreateAreaRequest = {
2
2
  nome: string;
3
3
  responsavelId: number;
4
+ }
5
+
6
+ export type TUpdateAreaRequest = {
7
+ id: number;
8
+ nome: string;
9
+ responsavelId: number;
4
10
  }
@@ -2,9 +2,10 @@ const CENTRO_BASE_URL = '/dados-mestres/api/area'
2
2
 
3
3
  const area = {
4
4
  create: { endpoint: `${CENTRO_BASE_URL}`, method: 'post' },
5
+ update: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'put'},
5
6
  findOne: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'get'},
6
7
  findAll: {endpoint: `${CENTRO_BASE_URL}`,method: 'get'},
7
- findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: 'post'}
8
+ findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, method: 'post'}
8
9
  }
9
10
 
10
11
  export default area
@@ -1,6 +1,6 @@
1
1
  import ApiService from "@/services/ApiService";
2
2
  import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
- import { TCreateAreaRequest } from "@base/@types/api/request/dm/TCreateAreaRequest";
3
+ import { TCreateAreaRequest, TUpdateAreaRequest } from "@base/@types/api/request/dm/TCreateAreaRequest";
4
4
  import { TCreateAreaResponse } from "@base/@types/api/response/dadosMestres/TCreateAreaResponse";
5
5
  import { TBusinessPartner } from "@base/@types/models/dm/businessPartner";
6
6
  import { endpointsConfig } from "@base/configs";
@@ -9,7 +9,7 @@ const AREA_ENDPOINT = endpointsConfig.dm.area;
9
9
 
10
10
  export async function apiGetAreById(id: number) {
11
11
  return ApiService.fetchDataWithAxios<TBusinessPartner>({
12
- url: AREA_ENDPOINT.findOne.endpoint + `${id}`,
12
+ url: AREA_ENDPOINT.findOne.endpoint(id),
13
13
  method: AREA_ENDPOINT.findOne.method,
14
14
  })
15
15
  }
@@ -24,15 +24,23 @@ export async function apiGetAllArea() {
24
24
  export async function apiFindMonitorArea(body?: IFilterParams) {
25
25
  return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
26
26
  url: AREA_ENDPOINT.findMonitor.endpoint,
27
- method: AREA_ENDPOINT.findMonitor.httpMethod,
27
+ method: AREA_ENDPOINT.findMonitor.method,
28
28
  data: body,
29
29
  })
30
30
  }
31
31
 
32
32
  export async function apiCreateArea(body?: TCreateAreaRequest) {
33
33
  return ApiService.fetchDataWithAxios<TQueryResponse<TCreateAreaResponse>>({
34
- url: AREA_ENDPOINT.findMonitor.endpoint,
35
- method: AREA_ENDPOINT.findMonitor.httpMethod,
34
+ url: AREA_ENDPOINT.create.endpoint,
35
+ method: AREA_ENDPOINT.create.method,
36
+ data: body,
37
+ })
38
+ }
39
+
40
+ export async function apiUpdateArea(id:number,body?: TUpdateAreaRequest) {
41
+ return ApiService.fetchDataWithAxios<TQueryResponse<TCreateAreaResponse>>({
42
+ url: AREA_ENDPOINT.update.endpoint(id),
43
+ method: AREA_ENDPOINT.update.method,
36
44
  data: body,
37
45
  })
38
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.270",
3
+ "version": "5.3.271",
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",