@orbe-agro/client-core 5.5.44 → 5.5.45
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/endpoints.navigation.d.ts +3 -3
- package/dist/@types/base/configs/endpoints.config/racao/config/pedidoVenda.d.ts +3 -3
- package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts +3 -3
- package/dist/@types/base/services/modules/racao/pedidoVenda/PedidoVendaService.d.ts +1 -1
- package/dist/@types/base/services/modules/racao/pedidoVenda/PedidoVendaService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/racao/config/pedidoVenda.js +2 -2
- package/dist/base/configs/endpoints.config/racao/config/pedidoVenda.js.map +1 -1
- package/dist/base/services/modules/racao/pedidoVenda/PedidoVendaService.js +3 -3
- package/dist/base/services/modules/racao/pedidoVenda/PedidoVendaService.js.map +1 -1
- package/lib/base/configs/endpoints.config/racao/config/pedidoVenda.ts +1 -1
- package/lib/base/services/modules/racao/pedidoVenda/PedidoVendaService.ts +4 -4
- package/package.json +1 -1
|
@@ -236,15 +236,15 @@ declare const endpointNavigationConfig: {
|
|
|
236
236
|
endpoint: string;
|
|
237
237
|
method: string;
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
findMonitor: {
|
|
240
240
|
endpoint: string;
|
|
241
241
|
method: string;
|
|
242
242
|
};
|
|
243
|
-
|
|
243
|
+
calculateProductPrice: {
|
|
244
244
|
endpoint: string;
|
|
245
245
|
method: string;
|
|
246
246
|
};
|
|
247
|
-
|
|
247
|
+
countByStatus: {
|
|
248
248
|
endpoint: string;
|
|
249
249
|
method: string;
|
|
250
250
|
};
|
|
@@ -27,15 +27,15 @@ declare const pedidoVenda: {
|
|
|
27
27
|
endpoint: string;
|
|
28
28
|
method: string;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
findMonitor: {
|
|
31
31
|
endpoint: string;
|
|
32
32
|
method: string;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
calculateProductPrice: {
|
|
35
35
|
endpoint: string;
|
|
36
36
|
method: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
countByStatus: {
|
|
39
39
|
endpoint: string;
|
|
40
40
|
method: string;
|
|
41
41
|
};
|
|
@@ -176,15 +176,15 @@ declare const racao: {
|
|
|
176
176
|
endpoint: string;
|
|
177
177
|
method: string;
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
findMonitor: {
|
|
180
180
|
endpoint: string;
|
|
181
181
|
method: string;
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
calculateProductPrice: {
|
|
184
184
|
endpoint: string;
|
|
185
185
|
method: string;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
countByStatus: {
|
|
188
188
|
endpoint: string;
|
|
189
189
|
method: string;
|
|
190
190
|
};
|
|
@@ -9,5 +9,5 @@ export declare function apiAprovarRacaoPedidoVenda(id: number, motivo: string):
|
|
|
9
9
|
export declare function apiReprovarRacaoPedidoVenda(id: number, motivo: string): Promise<TQueryResponse<TAcoesPedidoVenda>>;
|
|
10
10
|
export declare function apiFindMonitorRacaoPedidoVenda(body?: IFilterParams): Promise<TQueryResponse<TPedidoVenda>>;
|
|
11
11
|
export declare function apiGetCalulatePriceRacaoPedidoVenda(produtoId: number): Promise<TPedidoVendaCalculatePrice>;
|
|
12
|
-
export declare function apiCountRacaoPedidoVenda(body?: IFilterParams): Promise<
|
|
12
|
+
export declare function apiCountRacaoPedidoVenda(body?: IFilterParams): Promise<TQueryResponse<TPedidoVenda>>;
|
|
13
13
|
//# sourceMappingURL=PedidoVendaService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PedidoVendaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/pedidoVenda/PedidoVendaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAKpH,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,MAAM,yBAKtD;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,YAAY,yCAM9D;AAED,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,YAAY,yCAMjE;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,yCAKzD;AAED,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM3E;AAED,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM1E;AAED,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM3E;AAED,wBAAsB,8BAA8B,CAAC,IAAI,CAAC,EAAE,aAAa,yCAMxE;AAED,wBAAsB,mCAAmC,CAAC,SAAS,EAAE,MAAM,uCAK1E;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"PedidoVendaService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/racao/pedidoVenda/PedidoVendaService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAKpH,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,MAAM,yBAKtD;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,YAAY,yCAM9D;AAED,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,YAAY,yCAMjE;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,yCAKzD;AAED,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM3E;AAED,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM1E;AAED,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,8CAM3E;AAED,wBAAsB,8BAA8B,CAAC,IAAI,CAAC,EAAE,aAAa,yCAMxE;AAED,wBAAsB,mCAAmC,CAAC,SAAS,EAAE,MAAM,uCAK1E;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,yCAMlE"}
|
|
@@ -7,9 +7,9 @@ const pedidoVenda = {
|
|
|
7
7
|
cancelar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/cancelar/`, method: "post" },
|
|
8
8
|
aprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/aprovar/`, method: "post" },
|
|
9
9
|
reprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/reprovar/`, method: "post" },
|
|
10
|
-
findQuantityOrders: { endpoint: `${PEDIDO_VENDA_BASE_URL}/count`, method: "get" },
|
|
11
10
|
findMonitor: { endpoint: `${PEDIDO_VENDA_BASE_URL}/find-monitor`, method: "post" },
|
|
12
|
-
calculateProductPrice: { endpoint: `${PEDIDO_VENDA_BASE_URL}/calculate-price/`, method: "get" }
|
|
11
|
+
calculateProductPrice: { endpoint: `${PEDIDO_VENDA_BASE_URL}/calculate-price/`, method: "get" },
|
|
12
|
+
countByStatus: { endpoint: `${PEDIDO_VENDA_BASE_URL}/count-pedidos`, method: "post" }
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
15
|
pedidoVenda as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pedidoVenda.js","sources":["../../../../../../lib/base/configs/endpoints.config/racao/config/pedidoVenda.ts"],"sourcesContent":["const PEDIDO_VENDA_BASE_URL = '/racao/api/racao/pedido-venda'\n\nconst pedidoVenda = {\n findOne: { endpoint: `${PEDIDO_VENDA_BASE_URL}/`, method: 'get' },\n add: { endpoint: `${PEDIDO_VENDA_BASE_URL}`, method: 'post' },\n update: { endpoint: `${PEDIDO_VENDA_BASE_URL}`, method: 'put' },\n delete: { endpoint: `${PEDIDO_VENDA_BASE_URL}/`, method: 'delete' },\n cancelar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/cancelar/`, method: 'post' },\n aprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/aprovar/`, method: 'post' },\n reprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/reprovar/`, method: 'post' },\n
|
|
1
|
+
{"version":3,"file":"pedidoVenda.js","sources":["../../../../../../lib/base/configs/endpoints.config/racao/config/pedidoVenda.ts"],"sourcesContent":["const PEDIDO_VENDA_BASE_URL = '/racao/api/racao/pedido-venda'\n\nconst pedidoVenda = {\n findOne: { endpoint: `${PEDIDO_VENDA_BASE_URL}/`, method: 'get' },\n add: { endpoint: `${PEDIDO_VENDA_BASE_URL}`, method: 'post' },\n update: { endpoint: `${PEDIDO_VENDA_BASE_URL}`, method: 'put' },\n delete: { endpoint: `${PEDIDO_VENDA_BASE_URL}/`, method: 'delete' },\n cancelar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/cancelar/`, method: 'post' },\n aprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/aprovar/`, method: 'post' },\n reprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/reprovar/`, method: 'post' },\n findMonitor: { endpoint: `${PEDIDO_VENDA_BASE_URL}/find-monitor`, method: 'post' },\n calculateProductPrice: { endpoint: `${PEDIDO_VENDA_BASE_URL}/calculate-price/`, method: 'get' },\n countByStatus: { endpoint: `${PEDIDO_VENDA_BASE_URL}/count-pedidos`, method: 'post' },\n}\n\nexport default pedidoVenda"],"names":[],"mappings":"AAAA,MAAM,wBAAwB;AAE9B,MAAM,cAAc;AAAA,EAChB,SAAS,EAAE,UAAU,GAAG,qBAAqB,KAAK,QAAQ,MAAA;AAAA,EAC1D,KAAK,EAAE,UAAU,GAAG,qBAAqB,IAAI,QAAQ,OAAA;AAAA,EACrD,QAAQ,EAAE,UAAU,GAAG,qBAAqB,IAAI,QAAQ,MAAA;AAAA,EACxD,QAAQ,EAAE,UAAU,GAAG,qBAAqB,KAAK,QAAQ,SAAA;AAAA,EACzD,UAAU,EAAE,UAAU,GAAG,qBAAqB,cAAc,QAAQ,OAAA;AAAA,EACpE,SAAS,EAAE,UAAU,GAAG,qBAAqB,aAAa,QAAQ,OAAA;AAAA,EAClE,UAAU,EAAE,UAAU,GAAG,qBAAqB,cAAc,QAAQ,OAAA;AAAA,EACpE,aAAa,EAAE,UAAU,GAAG,qBAAqB,iBAAiB,QAAQ,OAAA;AAAA,EAC1E,uBAAuB,EAAE,UAAU,GAAG,qBAAqB,qBAAqB,QAAQ,MAAA;AAAA,EACxF,eAAe,EAAE,UAAU,GAAG,qBAAqB,kBAAkB,QAAQ,OAAA;AACjF;"}
|
|
@@ -63,9 +63,9 @@ async function apiGetCalulatePriceRacaoPedidoVenda(produtoId) {
|
|
|
63
63
|
}
|
|
64
64
|
async function apiCountRacaoPedidoVenda(body) {
|
|
65
65
|
return ApiService.fetchDataWithAxios({
|
|
66
|
-
url: PEDIDO_VENDA_ENDPOINT.
|
|
67
|
-
method: PEDIDO_VENDA_ENDPOINT.
|
|
68
|
-
|
|
66
|
+
url: PEDIDO_VENDA_ENDPOINT.countByStatus.endpoint,
|
|
67
|
+
method: PEDIDO_VENDA_ENDPOINT.countByStatus.method,
|
|
68
|
+
data: body
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PedidoVendaService.js","sources":["../../../../../../lib/base/services/modules/racao/pedidoVenda/PedidoVendaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAcoesPedidoVenda, TPedidoVenda, TPedidoVendaCalculatePrice } from \"@base/@types/models/racao/pedidoVenda\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst PEDIDO_VENDA_ENDPOINT = endpointConfig.racao.pedidoVenda;\n\nexport async function apiGetRacaoPedidoVenda(id: number) {\n return ApiService.fetchDataWithAxios<TPedidoVenda>({\n url: PEDIDO_VENDA_ENDPOINT.findOne.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoPedidoVenda(body: TPedidoVenda) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.add.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoPedidoVenda(body: TPedidoVenda) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.update.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoPedidoVenda(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.delete.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiCancelarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.cancelar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.cancelar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiAprovarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.aprovar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.aprovar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiReprovarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.reprovar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.reprovar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiFindMonitorRacaoPedidoVenda(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.findMonitor.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiGetCalulatePriceRacaoPedidoVenda(produtoId: number) {\n return ApiService.fetchDataWithAxios<TPedidoVendaCalculatePrice>({\n url: PEDIDO_VENDA_ENDPOINT.calculateProductPrice.endpoint + `${produtoId}`,\n method: PEDIDO_VENDA_ENDPOINT.calculateProductPrice.method,\n })\n}\n\nexport async function apiCountRacaoPedidoVenda(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios({\n url: PEDIDO_VENDA_ENDPOINT.
|
|
1
|
+
{"version":3,"file":"PedidoVendaService.js","sources":["../../../../../../lib/base/services/modules/racao/pedidoVenda/PedidoVendaService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAcoesPedidoVenda, TPedidoVenda, TPedidoVendaCalculatePrice } from \"@base/@types/models/racao/pedidoVenda\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst PEDIDO_VENDA_ENDPOINT = endpointConfig.racao.pedidoVenda;\n\nexport async function apiGetRacaoPedidoVenda(id: number) {\n return ApiService.fetchDataWithAxios<TPedidoVenda>({\n url: PEDIDO_VENDA_ENDPOINT.findOne.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddRacaoPedidoVenda(body: TPedidoVenda) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.add.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateRacaoPedidoVenda(body: TPedidoVenda) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.update.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteRacaoPedidoVenda(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.delete.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiCancelarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.cancelar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.cancelar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiAprovarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.aprovar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.aprovar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiReprovarRacaoPedidoVenda(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAcoesPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.reprovar.endpoint + `${id}`,\n method: PEDIDO_VENDA_ENDPOINT.reprovar.method,\n data: { motivo: motivo }\n })\n}\n\nexport async function apiFindMonitorRacaoPedidoVenda(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.findMonitor.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiGetCalulatePriceRacaoPedidoVenda(produtoId: number) {\n return ApiService.fetchDataWithAxios<TPedidoVendaCalculatePrice>({\n url: PEDIDO_VENDA_ENDPOINT.calculateProductPrice.endpoint + `${produtoId}`,\n method: PEDIDO_VENDA_ENDPOINT.calculateProductPrice.method,\n })\n}\n\nexport async function apiCountRacaoPedidoVenda(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({\n url: PEDIDO_VENDA_ENDPOINT.countByStatus.endpoint,\n method: PEDIDO_VENDA_ENDPOINT.countByStatus.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,wBAAwBA,yBAAe,MAAM;AAEnD,eAAsB,uBAAuB,IAAY;AACrD,SAAO,WAAW,mBAAiC;AAAA,IAC/C,KAAK,sBAAsB,QAAQ,WAAW,GAAG,EAAE;AAAA,IACnD,QAAQ,sBAAsB,QAAQ;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,uBAAuB,MAAoB;AAC7D,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAK,sBAAsB,IAAI;AAAA,IAC/B,QAAQ,sBAAsB,IAAI;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,MAAoB;AAChE,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAK,sBAAsB,OAAO;AAAA,IAClC,QAAQ,sBAAsB,OAAO;AAAA,IACrC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,IAAY;AACxD,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAK,sBAAsB,OAAO,WAAW,GAAG,EAAE;AAAA,IAClD,QAAQ,sBAAsB,OAAO;AAAA,EAAA,CACxC;AACL;AAEA,eAAsB,4BAA4B,IAAY,QAAgB;AAC1E,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,sBAAsB,SAAS,WAAW,GAAG,EAAE;AAAA,IACpD,QAAQ,sBAAsB,SAAS;AAAA,IACvC,MAAM,EAAE,OAAA;AAAA,EAAe,CAC1B;AACL;AAEA,eAAsB,2BAA2B,IAAY,QAAgB;AACzE,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,sBAAsB,QAAQ,WAAW,GAAG,EAAE;AAAA,IACnD,QAAQ,sBAAsB,QAAQ;AAAA,IACtC,MAAM,EAAE,OAAA;AAAA,EAAe,CAC1B;AACL;AAEA,eAAsB,4BAA4B,IAAY,QAAgB;AAC1E,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,sBAAsB,SAAS,WAAW,GAAG,EAAE;AAAA,IACpD,QAAQ,sBAAsB,SAAS;AAAA,IACvC,MAAM,EAAE,OAAA;AAAA,EAAe,CAC1B;AACL;AAEA,eAAsB,+BAA+B,MAAsB;AACvE,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAK,sBAAsB,YAAY;AAAA,IACvC,QAAQ,sBAAsB,YAAY;AAAA,IAC1C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oCAAoC,WAAmB;AACzE,SAAO,WAAW,mBAA+C;AAAA,IAC7D,KAAK,sBAAsB,sBAAsB,WAAW,GAAG,SAAS;AAAA,IACxE,QAAQ,sBAAsB,sBAAsB;AAAA,EAAA,CACvD;AACL;AAEA,eAAsB,yBAAyB,MAAsB;AACjE,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAK,sBAAsB,cAAc;AAAA,IACzC,QAAQ,sBAAsB,cAAc;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -8,9 +8,9 @@ const pedidoVenda = {
|
|
|
8
8
|
cancelar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/cancelar/`, method: 'post' },
|
|
9
9
|
aprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/aprovar/`, method: 'post' },
|
|
10
10
|
reprovar: { endpoint: `${PEDIDO_VENDA_BASE_URL}/reprovar/`, method: 'post' },
|
|
11
|
-
findQuantityOrders: { endpoint: `${PEDIDO_VENDA_BASE_URL}/count`, method: 'get' },
|
|
12
11
|
findMonitor: { endpoint: `${PEDIDO_VENDA_BASE_URL}/find-monitor`, method: 'post' },
|
|
13
12
|
calculateProductPrice: { endpoint: `${PEDIDO_VENDA_BASE_URL}/calculate-price/`, method: 'get' },
|
|
13
|
+
countByStatus: { endpoint: `${PEDIDO_VENDA_BASE_URL}/count-pedidos`, method: 'post' },
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default pedidoVenda
|
|
@@ -75,9 +75,9 @@ export async function apiGetCalulatePriceRacaoPedidoVenda(produtoId: number) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export async function apiCountRacaoPedidoVenda(body?: IFilterParams) {
|
|
78
|
-
return ApiService.fetchDataWithAxios({
|
|
79
|
-
url: PEDIDO_VENDA_ENDPOINT.
|
|
80
|
-
method: PEDIDO_VENDA_ENDPOINT.
|
|
81
|
-
|
|
78
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<TPedidoVenda>>({
|
|
79
|
+
url: PEDIDO_VENDA_ENDPOINT.countByStatus.endpoint,
|
|
80
|
+
method: PEDIDO_VENDA_ENDPOINT.countByStatus.method,
|
|
81
|
+
data: body,
|
|
82
82
|
})
|
|
83
83
|
}
|