@orbe-agro/client-core 5.5.82 → 5.5.83
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/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.d.ts +7 -0
- package/dist/@types/base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.d.ts.map +1 -1
- package/dist/@types/base/services/modules/DadosMestres/Sap/CentroService.d.ts +2 -0
- package/dist/@types/base/services/modules/DadosMestres/Sap/CentroService.d.ts.map +1 -1
- package/dist/base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.js +2 -0
- package/dist/base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.js.map +1 -0
- package/dist/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.js +2 -1
- package/dist/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.js.map +1 -1
- package/dist/base/services/modules/DadosMestres/Sap/CentroService.js +9 -1
- package/dist/base/services/modules/DadosMestres/Sap/CentroService.js.map +1 -1
- package/lib/base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.ts +6 -0
- package/lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts +1 -0
- package/lib/base/services/modules/DadosMestres/Sap/CentroService.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TPatchDadosIntegracaoCentroRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA"}
|
package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centro.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB;;uBAEH,MAAM
|
|
1
|
+
{"version":3,"file":"centro.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB;;uBAEH,MAAM;;+BAEE,MAAM;CACpC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TQueryResponse } from '@base/@types';
|
|
2
2
|
import { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse';
|
|
3
|
+
import { TPatchDadosIntegracaoCentroRequest } from '@base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest';
|
|
3
4
|
export declare function apiGetCentros(body: any): Promise<TQueryResponse<TFindByIdCentroResponse>>;
|
|
4
5
|
export declare function apiFindAllCentro(params?: string): Promise<TQueryResponse<TFindByIdCentroResponse>>;
|
|
5
6
|
export declare function apiGetCentro(id: number): Promise<TFindByIdCentroResponse>;
|
|
7
|
+
export declare function apiPatchDadosIntegracaoCentro(id: number, data: TPatchDadosIntegracaoCentroRequest): Promise<void>;
|
|
6
8
|
//# sourceMappingURL=CentroService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CentroService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAA;
|
|
1
|
+
{"version":3,"file":"CentroService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAA;AACxG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gEAAgE,CAAA;AAEnH,wBAAsB,aAAa,CAAC,IAAI,KAAA,oDAMvC;AAED,wBAAsB,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,oDAKrD;AAED,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,oCAK5C;AAED,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,iBAMvG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TPatchDadosIntegracaoCentroRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -2,7 +2,8 @@ const CENTRO_API_PATH = "/dados-mestres/api/dm/centro";
|
|
|
2
2
|
const centroEndpointConfig = {
|
|
3
3
|
findMonitor: `${CENTRO_API_PATH}/find-monitor`,
|
|
4
4
|
findAll: (params) => `${CENTRO_API_PATH}?${params ?? ""}`,
|
|
5
|
-
findOne: `${CENTRO_API_PATH}
|
|
5
|
+
findOne: `${CENTRO_API_PATH}/`,
|
|
6
|
+
patchDadosIntegracao: (id) => `${CENTRO_API_PATH}/${id}/dados-integracao`
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
9
|
centroEndpointConfig as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centro.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"sourcesContent":["const CENTRO_API_PATH = '/dados-mestres/api/dm/centro'\n\nconst centroEndpointConfig = {\n findMonitor: `${CENTRO_API_PATH}/find-monitor`,\n findAll: (params?: string) => `${CENTRO_API_PATH}?${params ?? \"\"}`,\n findOne: `${CENTRO_API_PATH}/`,\n}\n\nexport default centroEndpointConfig\n"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,uBAAuB;AAAA,EACzB,aAAa,GAAG,eAAe;AAAA,EAC/B,SAAS,CAAC,WAAoB,GAAG,eAAe,IAAI,UAAU,EAAE;AAAA,EAChE,SAAS,GAAG,eAAe;
|
|
1
|
+
{"version":3,"file":"centro.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"sourcesContent":["const CENTRO_API_PATH = '/dados-mestres/api/dm/centro'\n\nconst centroEndpointConfig = {\n findMonitor: `${CENTRO_API_PATH}/find-monitor`,\n findAll: (params?: string) => `${CENTRO_API_PATH}?${params ?? \"\"}`,\n findOne: `${CENTRO_API_PATH}/`,\n patchDadosIntegracao: (id: number) => `${CENTRO_API_PATH}/${id}/dados-integracao`,\n}\n\nexport default centroEndpointConfig\n"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,uBAAuB;AAAA,EACzB,aAAa,GAAG,eAAe;AAAA,EAC/B,SAAS,CAAC,WAAoB,GAAG,eAAe,IAAI,UAAU,EAAE;AAAA,EAChE,SAAS,GAAG,eAAe;AAAA,EAC3B,sBAAsB,CAAC,OAAe,GAAG,eAAe,IAAI,EAAE;AAClE;"}
|
|
@@ -19,9 +19,17 @@ async function apiGetCentro(id) {
|
|
|
19
19
|
method: "get"
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
+
async function apiPatchDadosIntegracaoCentro(id, data) {
|
|
23
|
+
return ApiService.fetchDataWithAxios({
|
|
24
|
+
url: centroEndpointConfig.patchDadosIntegracao(id),
|
|
25
|
+
method: "patch",
|
|
26
|
+
data
|
|
27
|
+
});
|
|
28
|
+
}
|
|
22
29
|
export {
|
|
23
30
|
apiFindAllCentro,
|
|
24
31
|
apiGetCentro,
|
|
25
|
-
apiGetCentros
|
|
32
|
+
apiGetCentros,
|
|
33
|
+
apiPatchDadosIntegracaoCentro
|
|
26
34
|
};
|
|
27
35
|
//# sourceMappingURL=CentroService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CentroService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"sourcesContent":["import centroEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types'\nimport { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse'\n\nexport async function apiGetCentros(body) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({\n url: centroEndpointConfig.findMonitor,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllCentro(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({\n url: centroEndpointConfig.findAll(params),\n method: 'get',\n })\n}\n\nexport async function apiGetCentro(id: number) {\n return ApiService.fetchDataWithAxios<TFindByIdCentroResponse>({\n url: centroEndpointConfig.findOne + id,\n method: 'get',\n })\n}"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CentroService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"sourcesContent":["import centroEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types'\nimport { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse'\nimport { TPatchDadosIntegracaoCentroRequest } from '@base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest'\n\nexport async function apiGetCentros(body) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({\n url: centroEndpointConfig.findMonitor,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllCentro(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({\n url: centroEndpointConfig.findAll(params),\n method: 'get',\n })\n}\n\nexport async function apiGetCentro(id: number) {\n return ApiService.fetchDataWithAxios<TFindByIdCentroResponse>({\n url: centroEndpointConfig.findOne + id,\n method: 'get',\n })\n}\n\nexport async function apiPatchDadosIntegracaoCentro(id: number, data: TPatchDadosIntegracaoCentroRequest) {\n return ApiService.fetchDataWithAxios<void>({\n url: centroEndpointConfig.patchDadosIntegracao(id),\n method: 'patch',\n data,\n })\n}"],"names":[],"mappings":";;AAMA,eAAsB,cAAc,MAAM;AACtC,SAAO,WAAW,mBAA4D;AAAA,IAC1E,KAAK,qBAAqB;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,iBAAiB,QAAiB;AACpD,SAAO,WAAW,mBAA4D;AAAA,IAC1E,KAAK,qBAAqB,QAAQ,MAAM;AAAA,IACxC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,aAAa,IAAY;AAC3C,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,qBAAqB,UAAU;AAAA,IACpC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,8BAA8B,IAAY,MAA0C;AACtG,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,qBAAqB,qBAAqB,EAAE;AAAA,IACjD,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
|
|
@@ -4,6 +4,7 @@ const centroEndpointConfig = {
|
|
|
4
4
|
findMonitor: `${CENTRO_API_PATH}/find-monitor`,
|
|
5
5
|
findAll: (params?: string) => `${CENTRO_API_PATH}?${params ?? ""}`,
|
|
6
6
|
findOne: `${CENTRO_API_PATH}/`,
|
|
7
|
+
patchDadosIntegracao: (id: number) => `${CENTRO_API_PATH}/${id}/dados-integracao`,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export default centroEndpointConfig
|
|
@@ -2,6 +2,7 @@ import centroEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sa
|
|
|
2
2
|
import ApiService from '@/services/ApiService'
|
|
3
3
|
import { TQueryResponse } from '@base/@types'
|
|
4
4
|
import { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse'
|
|
5
|
+
import { TPatchDadosIntegracaoCentroRequest } from '@base/@types/api/request/dm/TPatchDadosIntegracaoCentroRequest'
|
|
5
6
|
|
|
6
7
|
export async function apiGetCentros(body) {
|
|
7
8
|
return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({
|
|
@@ -23,4 +24,12 @@ export async function apiGetCentro(id: number) {
|
|
|
23
24
|
url: centroEndpointConfig.findOne + id,
|
|
24
25
|
method: 'get',
|
|
25
26
|
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export async function apiPatchDadosIntegracaoCentro(id: number, data: TPatchDadosIntegracaoCentroRequest) {
|
|
30
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
31
|
+
url: centroEndpointConfig.patchDadosIntegracao(id),
|
|
32
|
+
method: 'patch',
|
|
33
|
+
data,
|
|
34
|
+
})
|
|
26
35
|
}
|