@orbe-agro/client-core 5.3.231 → 5.3.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/base/configs/endpoints.config/dm/config/area.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/area.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/area/AreaService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/area/AreaService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/area.js +1 -0
- package/dist/base/configs/endpoints.config/dm/config/area.js.map +1 -1
- package/dist/base/services/modules/dm/area/AreaService.js +11 -4
- package/dist/base/services/modules/dm/area/AreaService.js.map +1 -1
- package/lib/base/configs/endpoints.config/dm/config/area.ts +1 -0
- package/lib/base/services/modules/dm/area/AreaService.ts +7 -0
- package/package.json +1 -1
|
@@ -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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE
|
|
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 +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
|
|
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"}
|
|
@@ -3,6 +3,7 @@ import { TCreateAreaRequest } from "@base/@types/api/request/dm/TCreateAreaReque
|
|
|
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
|
+
export declare function apiGetAllArea(): Promise<TBusinessPartner>;
|
|
6
7
|
export declare function apiFindMonitorArea(body?: IFilterParams): Promise<TQueryResponse<any>>;
|
|
7
8
|
export declare function apiCreateArea(body?: TCreateAreaRequest): Promise<TQueryResponse<TCreateAreaResponse>>;
|
|
8
9
|
//# 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,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,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,6 +1,7 @@
|
|
|
1
1
|
const t = "/dados-mestres/api/area", o = {
|
|
2
2
|
create: { endpoint: `${t}`, method: "post" },
|
|
3
3
|
findOne: { endpoint: (e) => `${t}/${e}`, method: "get" },
|
|
4
|
+
findAll: { endpoint: `${t}`, method: "get" },
|
|
4
5
|
findMonitor: { endpoint: `${t}/find-monitor`, httpMethod: "post" }
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
@@ -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 findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: 'post'}\n}\n\nexport default area"],"names":["CENTRO_BASE_URL","area","id"],"mappings":"AAAA,MAAMA,IAAkB,2BAElBC,IAAO;AAAA,EACT,QAAQ,EAAE,UAAU,GAAGD,CAAe,IAAI,QAAQ,OAAO;AAAA,EACzD,SAAS,EAAC,UAAU,CAACE,MAAY,GAAGF,CAAe,IAAIE,CAAE,IAAG,QAAQ,MAAK;AAAA,EACzE,aAAa,EAAE,UAAU,
|
|
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":["CENTRO_BASE_URL","area","id"],"mappings":"AAAA,MAAMA,IAAkB,2BAElBC,IAAO;AAAA,EACT,QAAQ,EAAE,UAAU,GAAGD,CAAe,IAAI,QAAQ,OAAO;AAAA,EACzD,SAAS,EAAC,UAAU,CAACE,MAAY,GAAGF,CAAe,IAAIE,CAAE,IAAG,QAAQ,MAAK;AAAA,EACzE,SAAS,EAAC,UAAU,GAAGF,CAAe,IAAG,QAAQ,MAAK;AAAA,EACtD,aAAa,EAAE,UAAU,GAAGA,CAAe,iBAAiB,YAAY,OAAM;AAClF;"}
|
|
@@ -8,14 +8,20 @@ async function d(n) {
|
|
|
8
8
|
method: t.findOne.method
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
async function f(
|
|
11
|
+
async function f() {
|
|
12
|
+
return i.fetchDataWithAxios({
|
|
13
|
+
url: t.findAll.endpoint,
|
|
14
|
+
method: t.findAll.method
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function h(n) {
|
|
12
18
|
return i.fetchDataWithAxios({
|
|
13
19
|
url: t.findMonitor.endpoint,
|
|
14
20
|
method: t.findMonitor.httpMethod,
|
|
15
21
|
data: n
|
|
16
22
|
});
|
|
17
23
|
}
|
|
18
|
-
async function
|
|
24
|
+
async function p(n) {
|
|
19
25
|
return i.fetchDataWithAxios({
|
|
20
26
|
url: t.findMonitor.endpoint,
|
|
21
27
|
method: t.findMonitor.httpMethod,
|
|
@@ -23,8 +29,9 @@ async function h(n) {
|
|
|
23
29
|
});
|
|
24
30
|
}
|
|
25
31
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
p as apiCreateArea,
|
|
33
|
+
h as apiFindMonitorArea,
|
|
34
|
+
f as apiGetAllArea,
|
|
28
35
|
d as apiGetAreById
|
|
29
36
|
};
|
|
30
37
|
//# 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 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":["AREA_ENDPOINT","endpointsConfig","apiGetAreById","id","ApiService","apiFindMonitorArea","body","apiCreateArea"],"mappings":";;;AAOA,MAAMA,IAAgBC,EAAgB,GAAG;AAEzC,eAAsBC,EAAcC,GAAY;AAC5C,SAAOC,EAAW,mBAAqC;AAAA,IACnD,KAAKJ,EAAc,QAAQ,WAAW,GAAGG,CAAE;AAAA,IAC3C,QAAQH,EAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsBK,EAAmBC,GAAsB;AAC3D,
|
|
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":["AREA_ENDPOINT","endpointsConfig","apiGetAreById","id","ApiService","apiGetAllArea","apiFindMonitorArea","body","apiCreateArea"],"mappings":";;;AAOA,MAAMA,IAAgBC,EAAgB,GAAG;AAEzC,eAAsBC,EAAcC,GAAY;AAC5C,SAAOC,EAAW,mBAAqC;AAAA,IACnD,KAAKJ,EAAc,QAAQ,WAAW,GAAGG,CAAE;AAAA,IAC3C,QAAQH,EAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsBK,IAAgB;AAClC,SAAOD,EAAW,mBAAqC;AAAA,IACnD,KAAKJ,EAAc,QAAQ;AAAA,IAC3B,QAAQA,EAAc,QAAQ;AAAA,EAAA,CACjC;AACL;AAEA,eAAsBM,EAAmBC,GAAsB;AAC3D,SAAOH,EAAW,mBAAwC;AAAA,IACtD,KAAKJ,EAAc,YAAY;AAAA,IAC/B,QAAQA,EAAc,YAAY;AAAA,IAClC,MAAMO;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAAcD,GAA2B;AAC3D,SAAOH,EAAW,mBAAwD;AAAA,IACtE,KAAKJ,EAAc,YAAY;AAAA,IAC/B,QAAQA,EAAc,YAAY;AAAA,IAClC,MAAMO;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -3,6 +3,7 @@ const CENTRO_BASE_URL = '/dados-mestres/api/area'
|
|
|
3
3
|
const area = {
|
|
4
4
|
create: { endpoint: `${CENTRO_BASE_URL}`, method: 'post' },
|
|
5
5
|
findOne: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'get'},
|
|
6
|
+
findAll: {endpoint: `${CENTRO_BASE_URL}`,method: 'get'},
|
|
6
7
|
findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: 'post'}
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -14,6 +14,13 @@ export async function apiGetAreById(id: number) {
|
|
|
14
14
|
})
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export async function apiGetAllArea() {
|
|
18
|
+
return ApiService.fetchDataWithAxios<TBusinessPartner>({
|
|
19
|
+
url: AREA_ENDPOINT.findAll.endpoint,
|
|
20
|
+
method: AREA_ENDPOINT.findAll.method,
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export async function apiFindMonitorArea(body?: IFilterParams) {
|
|
18
25
|
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
19
26
|
url: AREA_ENDPOINT.findMonitor.endpoint,
|
package/package.json
CHANGED