@orbe-agro/client-core 5.5.20 → 5.5.21
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/agendamento/agendamento.d.ts +1 -1
- package/dist/@types/base/configs/endpoints.config/agendamento/config/ordemConsumo.d.ts +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -1
- package/dist/@types/base/services/modules/agendamento/OrdemConsumoContratoClienteService.d.ts +1 -0
- package/dist/@types/base/services/modules/agendamento/OrdemConsumoContratoClienteService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/agendamento/config/ordemConsumo.js +1 -1
- package/dist/base/configs/endpoints.config/agendamento/config/ordemConsumo.js.map +1 -1
- package/dist/base/services/modules/agendamento/OrdemConsumoContratoClienteService.js +7 -0
- package/dist/base/services/modules/agendamento/OrdemConsumoContratoClienteService.js.map +1 -1
- package/lib/base/configs/endpoints.config/agendamento/config/ordemConsumo.ts +1 -1
- package/lib/base/services/modules/agendamento/OrdemConsumoContratoClienteService.ts +7 -0
- package/package.json +1 -1
package/dist/@types/base/services/modules/agendamento/OrdemConsumoContratoClienteService.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { TOrdemConsumo } from '@base/@types/models/agendamento/ordemConsumoContr
|
|
|
3
3
|
export declare function apiGetOrdemConsumo(body?: IFilterParams): Promise<TQueryResponse<TOrdemConsumo>>;
|
|
4
4
|
export declare function apiUpdateOrdemConsumo(data?: TOrdemConsumo): Promise<TQueryResponse<TOrdemConsumo>>;
|
|
5
5
|
export declare function apiFindOneOrdemConsumo(id: string): Promise<TOrdemConsumo>;
|
|
6
|
+
export declare function apiFindOrdensConsumoByCliente(clienteId: string): Promise<TOrdemConsumo>;
|
|
6
7
|
//# sourceMappingURL=OrdemConsumoContratoClienteService.d.ts.map
|
package/dist/@types/base/services/modules/agendamento/OrdemConsumoContratoClienteService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrdemConsumoContratoClienteService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/agendamento/OrdemConsumoContratoClienteService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAA;AAE3F,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,aAAa,0CAM5D;AAED,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE,aAAa,0CAM/D;AAED,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,MAAM,0BAKtD"}
|
|
1
|
+
{"version":3,"file":"OrdemConsumoContratoClienteService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/agendamento/OrdemConsumoContratoClienteService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAA;AAE3F,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,aAAa,0CAM5D;AAED,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE,aAAa,0CAM/D;AAED,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,MAAM,0BAKtD;AAED,wBAAsB,6BAA6B,CAAC,SAAS,EAAE,MAAM,0BAKpE"}
|
|
@@ -2,7 +2,7 @@ const ordemConsumo = {
|
|
|
2
2
|
findAll: "/agendamento/api/ordem-consumo/find",
|
|
3
3
|
findOne: "/agendamento/api/ordem-consumo",
|
|
4
4
|
update: "/agendamento/api/ordem-consumo/update",
|
|
5
|
-
|
|
5
|
+
findByCliente: "/agendamento/api/ordem-consumo/find-by-cliente"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
ordemConsumo as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordemConsumo.js","sources":["../../../../../../lib/base/configs/endpoints.config/agendamento/config/ordemConsumo.ts"],"sourcesContent":["const ordemConsumo = {\n findAll: '/agendamento/api/ordem-consumo/find',\n findOne: '/agendamento/api/ordem-consumo',\n update: '/agendamento/api/ordem-consumo/update',\n
|
|
1
|
+
{"version":3,"file":"ordemConsumo.js","sources":["../../../../../../lib/base/configs/endpoints.config/agendamento/config/ordemConsumo.ts"],"sourcesContent":["const ordemConsumo = {\n findAll: '/agendamento/api/ordem-consumo/find',\n findOne: '/agendamento/api/ordem-consumo',\n update: '/agendamento/api/ordem-consumo/update',\n findByCliente: '/agendamento/api/ordem-consumo/find-by-cliente',\n}\n\nexport default ordemConsumo\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,eAAe;AACnB;"}
|
|
@@ -21,8 +21,15 @@ async function apiFindOneOrdemConsumo(id) {
|
|
|
21
21
|
method: "get"
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
async function apiFindOrdensConsumoByCliente(clienteId) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: `${endpointNavigationConfig.agendamento.ordemConsumo.findByCliente}/${clienteId}`,
|
|
27
|
+
method: "get"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
24
30
|
export {
|
|
25
31
|
apiFindOneOrdemConsumo,
|
|
32
|
+
apiFindOrdensConsumoByCliente,
|
|
26
33
|
apiGetOrdemConsumo,
|
|
27
34
|
apiUpdateOrdemConsumo
|
|
28
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrdemConsumoContratoClienteService.js","sources":["../../../../../lib/base/services/modules/agendamento/OrdemConsumoContratoClienteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\nimport { TOrdemConsumo } from '@base/@types/models/agendamento/ordemConsumoContratoCliente'\n\nexport async function apiGetOrdemConsumo(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TOrdemConsumo>>({\n url: endpointsConfig.agendamento.ordemConsumo.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiUpdateOrdemConsumo(data?: TOrdemConsumo) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TOrdemConsumo>>({\n url: endpointsConfig.agendamento.ordemConsumo.update,\n method: 'patch',\n data,\n })\n}\n\nexport async function apiFindOneOrdemConsumo(id: string) {\n return ApiService.fetchDataWithAxios<TOrdemConsumo>({\n url: `${endpointsConfig.agendamento.ordemConsumo.findOne}/${id}`,\n method: 'get',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAKA,eAAsB,mBAAmB,MAAsB;AAC3D,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAKA,yBAAgB,YAAY,aAAa;AAAA,IAC9C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,sBAAsB,MAAsB;AAC9D,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAKA,yBAAgB,YAAY,aAAa;AAAA,IAC9C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,uBAAuB,IAAY;AACrD,SAAO,WAAW,mBAAkC;AAAA,IAChD,KAAK,GAAGA,yBAAgB,YAAY,aAAa,OAAO,IAAI,EAAE;AAAA,IAC9D,QAAQ;AAAA,EAAA,CACX;AACL;"}
|
|
1
|
+
{"version":3,"file":"OrdemConsumoContratoClienteService.js","sources":["../../../../../lib/base/services/modules/agendamento/OrdemConsumoContratoClienteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\nimport { TOrdemConsumo } from '@base/@types/models/agendamento/ordemConsumoContratoCliente'\n\nexport async function apiGetOrdemConsumo(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TOrdemConsumo>>({\n url: endpointsConfig.agendamento.ordemConsumo.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiUpdateOrdemConsumo(data?: TOrdemConsumo) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TOrdemConsumo>>({\n url: endpointsConfig.agendamento.ordemConsumo.update,\n method: 'patch',\n data,\n })\n}\n\nexport async function apiFindOneOrdemConsumo(id: string) {\n return ApiService.fetchDataWithAxios<TOrdemConsumo>({\n url: `${endpointsConfig.agendamento.ordemConsumo.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiFindOrdensConsumoByCliente(clienteId: string) {\n return ApiService.fetchDataWithAxios<TOrdemConsumo>({\n url: `${endpointsConfig.agendamento.ordemConsumo.findByCliente}/${clienteId}`,\n method: 'get',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAKA,eAAsB,mBAAmB,MAAsB;AAC3D,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAKA,yBAAgB,YAAY,aAAa;AAAA,IAC9C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,sBAAsB,MAAsB;AAC9D,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAKA,yBAAgB,YAAY,aAAa;AAAA,IAC9C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,uBAAuB,IAAY;AACrD,SAAO,WAAW,mBAAkC;AAAA,IAChD,KAAK,GAAGA,yBAAgB,YAAY,aAAa,OAAO,IAAI,EAAE;AAAA,IAC9D,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,8BAA8B,WAAmB;AACnE,SAAO,WAAW,mBAAkC;AAAA,IAChD,KAAK,GAAGA,yBAAgB,YAAY,aAAa,aAAa,IAAI,SAAS;AAAA,IAC3E,QAAQ;AAAA,EAAA,CACX;AACL;"}
|
|
@@ -2,7 +2,7 @@ const ordemConsumo = {
|
|
|
2
2
|
findAll: '/agendamento/api/ordem-consumo/find',
|
|
3
3
|
findOne: '/agendamento/api/ordem-consumo',
|
|
4
4
|
update: '/agendamento/api/ordem-consumo/update',
|
|
5
|
-
|
|
5
|
+
findByCliente: '/agendamento/api/ordem-consumo/find-by-cliente',
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export default ordemConsumo
|
|
@@ -25,3 +25,10 @@ export async function apiFindOneOrdemConsumo(id: string) {
|
|
|
25
25
|
method: 'get',
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
export async function apiFindOrdensConsumoByCliente(clienteId: string) {
|
|
30
|
+
return ApiService.fetchDataWithAxios<TOrdemConsumo>({
|
|
31
|
+
url: `${endpointsConfig.agendamento.ordemConsumo.findByCliente}/${clienteId}`,
|
|
32
|
+
method: 'get',
|
|
33
|
+
})
|
|
34
|
+
}
|