@orbe-agro/client-core 5.6.102 → 5.6.103
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 +6 -10
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/config/compra.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/insumos/config/compra.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/config/vendas.d.ts +2 -10
- package/dist/@types/base/configs/endpoints.config/insumos/config/vendas.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts +6 -10
- package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/compra/CompraService.d.ts +7 -2
- package/dist/@types/base/services/modules/insumos/compra/CompraService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts +1 -3
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/insumos/config/compra.js +12 -2
- package/dist/base/configs/endpoints.config/insumos/config/compra.js.map +1 -1
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js +2 -4
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js.map +1 -1
- package/dist/base/index.js +4 -5
- package/dist/base/services/index.js +4 -5
- package/dist/base/services/modules/index.js +4 -5
- package/dist/base/services/modules/insumos/compra/CompraService.js +8 -0
- package/dist/base/services/modules/insumos/compra/CompraService.js.map +1 -1
- package/dist/base/services/modules/insumos/index.js +4 -5
- package/dist/base/services/modules/insumos/vendas/VendasService.js +7 -21
- package/dist/base/services/modules/insumos/vendas/VendasService.js.map +1 -1
- package/lib/base/configs/endpoints.config/insumos/config/compra.ts +13 -3
- package/lib/base/configs/endpoints.config/insumos/config/vendas.ts +2 -4
- package/lib/base/services/modules/insumos/compra/CompraService.ts +25 -6
- package/lib/base/services/modules/insumos/vendas/VendasService.ts +8 -22
- package/package.json +1 -1
|
@@ -2761,6 +2761,10 @@ declare const endpointNavigationConfig: {
|
|
|
2761
2761
|
endpoint: string;
|
|
2762
2762
|
method: string;
|
|
2763
2763
|
};
|
|
2764
|
+
getMediaPreco: {
|
|
2765
|
+
endpoint: string;
|
|
2766
|
+
method: string;
|
|
2767
|
+
};
|
|
2764
2768
|
};
|
|
2765
2769
|
estoque: {
|
|
2766
2770
|
findOne: {
|
|
@@ -3051,23 +3055,15 @@ declare const endpointNavigationConfig: {
|
|
|
3051
3055
|
endpoint: string;
|
|
3052
3056
|
method: string;
|
|
3053
3057
|
};
|
|
3054
|
-
delete: {
|
|
3055
|
-
endpoint: string;
|
|
3056
|
-
method: string;
|
|
3057
|
-
};
|
|
3058
|
-
findAll: {
|
|
3059
|
-
endpoint: string;
|
|
3060
|
-
method: string;
|
|
3061
|
-
};
|
|
3062
3058
|
findMonitor: {
|
|
3063
3059
|
endpoint: string;
|
|
3064
3060
|
method: string;
|
|
3065
3061
|
};
|
|
3066
|
-
|
|
3062
|
+
executeAcao: {
|
|
3067
3063
|
endpoint: string;
|
|
3068
3064
|
method: string;
|
|
3069
3065
|
};
|
|
3070
|
-
|
|
3066
|
+
getValorFrete: {
|
|
3071
3067
|
endpoint: string;
|
|
3072
3068
|
method: string;
|
|
3073
3069
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/insumos/config/compra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"compra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/insumos/config/compra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAgBX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -11,23 +11,15 @@ declare const vendas: {
|
|
|
11
11
|
endpoint: string;
|
|
12
12
|
method: string;
|
|
13
13
|
};
|
|
14
|
-
delete: {
|
|
15
|
-
endpoint: string;
|
|
16
|
-
method: string;
|
|
17
|
-
};
|
|
18
|
-
findAll: {
|
|
19
|
-
endpoint: string;
|
|
20
|
-
method: string;
|
|
21
|
-
};
|
|
22
14
|
findMonitor: {
|
|
23
15
|
endpoint: string;
|
|
24
16
|
method: string;
|
|
25
17
|
};
|
|
26
|
-
|
|
18
|
+
executeAcao: {
|
|
27
19
|
endpoint: string;
|
|
28
20
|
method: string;
|
|
29
21
|
};
|
|
30
|
-
|
|
22
|
+
getValorFrete: {
|
|
31
23
|
endpoint: string;
|
|
32
24
|
method: string;
|
|
33
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendas.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/insumos/config/vendas.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"vendas.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/insumos/config/vendas.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -72,6 +72,10 @@ declare const insumos: {
|
|
|
72
72
|
endpoint: string;
|
|
73
73
|
method: string;
|
|
74
74
|
};
|
|
75
|
+
getMediaPreco: {
|
|
76
|
+
endpoint: string;
|
|
77
|
+
method: string;
|
|
78
|
+
};
|
|
75
79
|
};
|
|
76
80
|
estoque: {
|
|
77
81
|
findOne: {
|
|
@@ -362,23 +366,15 @@ declare const insumos: {
|
|
|
362
366
|
endpoint: string;
|
|
363
367
|
method: string;
|
|
364
368
|
};
|
|
365
|
-
delete: {
|
|
366
|
-
endpoint: string;
|
|
367
|
-
method: string;
|
|
368
|
-
};
|
|
369
|
-
findAll: {
|
|
370
|
-
endpoint: string;
|
|
371
|
-
method: string;
|
|
372
|
-
};
|
|
373
369
|
findMonitor: {
|
|
374
370
|
endpoint: string;
|
|
375
371
|
method: string;
|
|
376
372
|
};
|
|
377
|
-
|
|
373
|
+
executeAcao: {
|
|
378
374
|
endpoint: string;
|
|
379
375
|
method: string;
|
|
380
376
|
};
|
|
381
|
-
|
|
377
|
+
getValorFrete: {
|
|
382
378
|
endpoint: string;
|
|
383
379
|
method: string;
|
|
384
380
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insumos.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/insumos.ts"],"names":[],"mappings":"AAiBA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"insumos.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/insumos.ts"],"names":[],"mappings":"AAiBA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBZ,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { IFilterParams, TQueryResponse } from
|
|
2
|
-
import { TCompra, TCompraFormSchema, TCompraColumnDef } from
|
|
1
|
+
import { IFilterParams, TQueryResponse } from '@base/@types/api';
|
|
2
|
+
import { TCompra, TCompraFormSchema, TCompraColumnDef } from '@base/@types/models/insumos/compra';
|
|
3
3
|
export declare function apiGetInsumosCompra(id: number): Promise<TCompra>;
|
|
4
4
|
export declare function apiAddInsumosCompra(body: TCompraFormSchema): Promise<TQueryResponse<TCompra>>;
|
|
5
5
|
export declare function apiUpdateInsumosCompra(body: TCompraFormSchema): Promise<TQueryResponse<TCompra>>;
|
|
6
6
|
export declare function apiFindMonitorInsumosCompra(body?: IFilterParams): Promise<TQueryResponse<TCompraColumnDef>>;
|
|
7
7
|
export declare function apiExecuteAcaoInsumosCompra(id: string, tipoAcao: 'CANCELAR' | 'EFETIVAR'): Promise<void>;
|
|
8
|
+
export declare function apiGetMediaPreco(body: {
|
|
9
|
+
idSafra: number;
|
|
10
|
+
idProduto: number;
|
|
11
|
+
quantidade: number;
|
|
12
|
+
}): Promise<number>;
|
|
8
13
|
//# sourceMappingURL=CompraService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/insumos/compra/CompraService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"CompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/insumos/compra/CompraService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EACH,OAAO,EACP,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,oCAAoC,CAAA;AAK3C,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,oBAKnD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,oCAMhE;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,oCAMnE;AAED,wBAAsB,2BAA2B,CAAC,IAAI,CAAC,EAAE,aAAa,6CAMrE;AAED,wBAAsB,2BAA2B,CAC7C,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,UAAU,GAAG,UAAU,iBAOpC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACrB,mBAMA"}
|
|
@@ -3,9 +3,7 @@ import { TVendas } from "@base/@types/models/insumos/vendas";
|
|
|
3
3
|
export declare function apiGetInsumosVendas(id: number): Promise<TVendas>;
|
|
4
4
|
export declare function apiAddInsumosVendas(body: TVendas): Promise<TQueryResponse<TVendas>>;
|
|
5
5
|
export declare function apiUpdateInsumosVendas(body: TVendas): Promise<TQueryResponse<TVendas>>;
|
|
6
|
-
export declare function apiDeleteInsumosVendas(id: number): Promise<TQueryResponse<TVendas>>;
|
|
7
|
-
export declare function apiGetAllInsumosVendas(): Promise<TVendas[]>;
|
|
8
6
|
export declare function apiFindMonitorInsumosVendas(body?: IFilterParams): Promise<TQueryResponse<TVendas>>;
|
|
9
|
-
export declare function apiCalculoVendaInsumosVendas(body: any): Promise<any>;
|
|
10
7
|
export declare function apiExecuteAcaoVendas(id: number, body?: any): Promise<TQueryResponse<TVendas>>;
|
|
8
|
+
export declare function apiGetValorFrete(body?: any): Promise<any>;
|
|
11
9
|
//# sourceMappingURL=VendasService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VendasService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/insumos/vendas/VendasService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAK7D,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,oBAKnD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,OAAO,oCAMtD;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,OAAO,oCAMzD;AAED,wBAAsB,
|
|
1
|
+
{"version":3,"file":"VendasService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/insumos/vendas/VendasService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAK7D,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,oBAKnD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,OAAO,oCAMtD;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,OAAO,oCAMzD;AAED,wBAAsB,2BAA2B,CAAC,IAAI,CAAC,EAAE,aAAa,oCAMrE;AAED,wBAAsB,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,oCAMhE;AAED,wBAAsB,gBAAgB,CAAC,IAAI,CAAC,EAAE,GAAG,gBAMhD"}
|
|
@@ -3,8 +3,18 @@ const compra = {
|
|
|
3
3
|
findOne: { endpoint: `${COMPRA_BASE_URL}/`, method: "get" },
|
|
4
4
|
add: { endpoint: COMPRA_BASE_URL, method: "post" },
|
|
5
5
|
update: { endpoint: COMPRA_BASE_URL, method: "put" },
|
|
6
|
-
findMonitor: {
|
|
7
|
-
|
|
6
|
+
findMonitor: {
|
|
7
|
+
endpoint: `${COMPRA_BASE_URL}/find-monitor`,
|
|
8
|
+
method: "post"
|
|
9
|
+
},
|
|
10
|
+
executeAcao: {
|
|
11
|
+
endpoint: `${COMPRA_BASE_URL}/{id}/execute-acao`,
|
|
12
|
+
method: "post"
|
|
13
|
+
},
|
|
14
|
+
getMediaPreco: {
|
|
15
|
+
endpoint: `${COMPRA_BASE_URL}/get-media-preco`,
|
|
16
|
+
method: "post"
|
|
17
|
+
}
|
|
8
18
|
};
|
|
9
19
|
export {
|
|
10
20
|
compra as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compra.js","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/config/compra.ts"],"sourcesContent":["const COMPRA_BASE_URL = '/insumos/api/compra'\n\nconst compra = {\n findOne: { endpoint: `${COMPRA_BASE_URL}/`, method: 'get' },\n add: { endpoint: COMPRA_BASE_URL, method: 'post' },\n update: { endpoint: COMPRA_BASE_URL, method: 'put' },\n findMonitor: {
|
|
1
|
+
{"version":3,"file":"compra.js","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/config/compra.ts"],"sourcesContent":["const COMPRA_BASE_URL = '/insumos/api/compra'\n\nconst compra = {\n findOne: { endpoint: `${COMPRA_BASE_URL}/`, method: 'get' },\n add: { endpoint: COMPRA_BASE_URL, method: 'post' },\n update: { endpoint: COMPRA_BASE_URL, method: 'put' },\n findMonitor: {\n endpoint: `${COMPRA_BASE_URL}/find-monitor`,\n method: 'post',\n },\n executeAcao: {\n endpoint: `${COMPRA_BASE_URL}/{id}/execute-acao`,\n method: 'post',\n },\n getMediaPreco: {\n endpoint: `${COMPRA_BASE_URL}/get-media-preco`,\n method: 'post',\n },\n}\n\nexport default compra\n"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,SAAS;AAAA,EACX,SAAS,EAAE,UAAU,GAAG,eAAe,KAAK,QAAQ,MAAA;AAAA,EACpD,KAAK,EAAE,UAAU,iBAAiB,QAAQ,OAAA;AAAA,EAC1C,QAAQ,EAAE,UAAU,iBAAiB,QAAQ,MAAA;AAAA,EAC7C,aAAa;AAAA,IACT,UAAU,GAAG,eAAe;AAAA,IAC5B,QAAQ;AAAA,EAAA;AAAA,EAEZ,aAAa;AAAA,IACT,UAAU,GAAG,eAAe;AAAA,IAC5B,QAAQ;AAAA,EAAA;AAAA,EAEZ,eAAe;AAAA,IACX,UAAU,GAAG,eAAe;AAAA,IAC5B,QAAQ;AAAA,EAAA;AAEhB;"}
|
|
@@ -3,11 +3,9 @@ const vendas = {
|
|
|
3
3
|
findOne: { endpoint: `${VENDAS_BASE_URL}/`, method: "get" },
|
|
4
4
|
add: { endpoint: VENDAS_BASE_URL, method: "post" },
|
|
5
5
|
update: { endpoint: VENDAS_BASE_URL, method: "put" },
|
|
6
|
-
delete: { endpoint: `${VENDAS_BASE_URL}/`, method: "delete" },
|
|
7
|
-
findAll: { endpoint: `${VENDAS_BASE_URL}`, method: "get" },
|
|
8
6
|
findMonitor: { endpoint: `${VENDAS_BASE_URL}/find-monitor`, method: "post" },
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
executeAcao: { endpoint: `${VENDAS_BASE_URL}/{id}/execute-acao`, method: "post" },
|
|
8
|
+
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: "post" }
|
|
11
9
|
};
|
|
12
10
|
export {
|
|
13
11
|
vendas as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendas.js","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/config/vendas.ts"],"sourcesContent":["const VENDAS_BASE_URL = '/insumos/api/venda'\n\nconst vendas = {\n findOne: { endpoint: `${VENDAS_BASE_URL}/`, method: 'get' },\n add: { endpoint: VENDAS_BASE_URL, method: 'post' },\n update: { endpoint: VENDAS_BASE_URL, method: 'put' },\n
|
|
1
|
+
{"version":3,"file":"vendas.js","sources":["../../../../../../lib/base/configs/endpoints.config/insumos/config/vendas.ts"],"sourcesContent":["const VENDAS_BASE_URL = '/insumos/api/venda'\n\nconst vendas = {\n findOne: { endpoint: `${VENDAS_BASE_URL}/`, method: 'get' },\n add: { endpoint: VENDAS_BASE_URL, method: 'post' },\n update: { endpoint: VENDAS_BASE_URL, method: 'put' },\n findMonitor: { endpoint: `${VENDAS_BASE_URL}/find-monitor`, method: 'post' },\n executeAcao: { endpoint: `${VENDAS_BASE_URL}/{id}/execute-acao`, method: 'post' },\n getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: 'post' }\n}\n\nexport default vendas"],"names":[],"mappings":"AAAA,MAAM,kBAAkB;AAExB,MAAM,SAAS;AAAA,EACX,SAAS,EAAE,UAAU,GAAG,eAAe,KAAK,QAAQ,MAAA;AAAA,EACpD,KAAK,EAAE,UAAU,iBAAiB,QAAQ,OAAA;AAAA,EAC1C,QAAQ,EAAE,UAAU,iBAAiB,QAAQ,MAAA;AAAA,EAC7C,aAAa,EAAE,UAAU,GAAG,eAAe,iBAAiB,QAAQ,OAAA;AAAA,EACpE,aAAa,EAAE,UAAU,GAAG,eAAe,sBAAsB,QAAQ,OAAA;AAAA,EACzE,eAAe,EAAE,UAAU,GAAG,eAAe,oBAAoB,QAAQ,OAAA;AAC7E;"}
|
package/dist/base/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioA
|
|
|
47
47
|
import { apiAddInss, apiFindAllInss, apiGetInss, apiUpdateInss } from "./services/modules/transportadora/Inss/InssService.js";
|
|
48
48
|
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiSearchCoberturaSeguro, apiUpdateInsumosCoberturaSeguroAgricola } from "./services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
49
49
|
import { apiAddInsumosComissaoVenda, apiDeleteInsumosComissaoVenda, apiFindMonitorInsumosComissaoVenda, apiGetAllInsumosComissaoVenda, apiGetInsumosComissaoVenda, apiUpdateInsumosComissaoVenda } from "./services/modules/insumos/comissaoVenda/ComissaoVendaService.js";
|
|
50
|
-
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiUpdateInsumosCompra } from "./services/modules/insumos/compra/CompraService.js";
|
|
50
|
+
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiGetMediaPreco, apiUpdateInsumosCompra } from "./services/modules/insumos/compra/CompraService.js";
|
|
51
51
|
import { apiAddInsumosFaturamentoVsDespesa, apiDeleteInsumosFaturamentoVsDespesa, apiFindMonitorInsumosFaturamentoVsDespesa, apiGetAllInsumosFaturamentoVsDespesa, apiGetInsumosFaturamentoVsDespesa, apiUpdateInsumosFaturamentoVsDespesa } from "./services/modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js";
|
|
52
52
|
import { apiAddInsumosFreteMaterial, apiDeleteInsumosFreteMaterial, apiFindMonitorInsumosFreteMaterial, apiGetAllInsumosFreteMaterial, apiGetInsumosFreteMaterial, apiUpdateInsumosFreteMaterial } from "./services/modules/insumos/freteMaterial/FreteMaterialService.js";
|
|
53
53
|
import { apiAddInsumosLiberacaoCompra, apiDeleteInsumosLiberacaoCompra, apiFindMonitorInsumosLiberacaoCompra, apiGetInsumosLiberacaoCompra, apiUpdateInsumosLiberacaoCompra } from "./services/modules/insumos/liberacaoCompra/LiberacaoCompraService.js";
|
|
@@ -58,7 +58,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
58
58
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./services/modules/insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
59
59
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./services/modules/insumos/principioAtivo/PrincipioAtivoService.js";
|
|
60
60
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
61
|
-
import { apiAddInsumosVendas,
|
|
61
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./services/modules/insumos/vendas/VendasService.js";
|
|
62
62
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./services/modules/transportadora/Irpf/IrpfService.js";
|
|
63
63
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./services/modules/transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
64
64
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./services/modules/transportadora/Iss/IssService.js";
|
|
@@ -356,7 +356,6 @@ export {
|
|
|
356
356
|
apiBuscarStatusConsumo,
|
|
357
357
|
apiBuscarStatusFixacao,
|
|
358
358
|
apiCalcularRetencao,
|
|
359
|
-
apiCalculoVendaInsumosVendas,
|
|
360
359
|
apiCancelContratoCompraGraos,
|
|
361
360
|
apiCancelPreContrato,
|
|
362
361
|
apiCancelarEntregaBayer,
|
|
@@ -431,7 +430,6 @@ export {
|
|
|
431
430
|
apiDeleteInsumosPercentualPagamento,
|
|
432
431
|
apiDeleteInsumosPrincipioAtivo,
|
|
433
432
|
apiDeleteInsumosSeguradoraAgricola,
|
|
434
|
-
apiDeleteInsumosVendas,
|
|
435
433
|
apiDeleteModeloAvaliacao,
|
|
436
434
|
apiDeleteModeloNota,
|
|
437
435
|
apiDeleteOneCadastroEstrategiaLiberacaoValor,
|
|
@@ -721,7 +719,6 @@ export {
|
|
|
721
719
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
722
720
|
apiGetAllInsumosFreteMaterial,
|
|
723
721
|
apiGetAllInsumosPrincipioAtivo,
|
|
724
|
-
apiGetAllInsumosVendas,
|
|
725
722
|
apiGetAreaAtuacao,
|
|
726
723
|
apiGetAssistenciaTecnicaSeloSocial,
|
|
727
724
|
apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
@@ -786,6 +783,7 @@ export {
|
|
|
786
783
|
apiGetIrpf,
|
|
787
784
|
apiGetIrpfFaixaDesconto,
|
|
788
785
|
apiGetItinerario,
|
|
786
|
+
apiGetMediaPreco,
|
|
789
787
|
apiGetModeloAvaliacao,
|
|
790
788
|
apiGetModeloNota,
|
|
791
789
|
apiGetMultiplicadorUnidadeMedida,
|
|
@@ -821,6 +819,7 @@ export {
|
|
|
821
819
|
apiGetTipoCarga,
|
|
822
820
|
apiGetTransacoesEntrega,
|
|
823
821
|
apiGetUsers,
|
|
822
|
+
apiGetValorFrete,
|
|
824
823
|
apiGetVolumeProducaoSeloSocial,
|
|
825
824
|
apiGetVolumeProducaoSeloSocialBySafraId,
|
|
826
825
|
apiIndisponibilizarRacaoItemCompra,
|
|
@@ -51,7 +51,7 @@ import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioA
|
|
|
51
51
|
import { apiAddInss, apiFindAllInss, apiGetInss, apiUpdateInss } from "./modules/transportadora/Inss/InssService.js";
|
|
52
52
|
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiSearchCoberturaSeguro, apiUpdateInsumosCoberturaSeguroAgricola } from "./modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
53
53
|
import { apiAddInsumosComissaoVenda, apiDeleteInsumosComissaoVenda, apiFindMonitorInsumosComissaoVenda, apiGetAllInsumosComissaoVenda, apiGetInsumosComissaoVenda, apiUpdateInsumosComissaoVenda } from "./modules/insumos/comissaoVenda/ComissaoVendaService.js";
|
|
54
|
-
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiUpdateInsumosCompra } from "./modules/insumos/compra/CompraService.js";
|
|
54
|
+
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiGetMediaPreco, apiUpdateInsumosCompra } from "./modules/insumos/compra/CompraService.js";
|
|
55
55
|
import { apiAddInsumosFaturamentoVsDespesa, apiDeleteInsumosFaturamentoVsDespesa, apiFindMonitorInsumosFaturamentoVsDespesa, apiGetAllInsumosFaturamentoVsDespesa, apiGetInsumosFaturamentoVsDespesa, apiUpdateInsumosFaturamentoVsDespesa } from "./modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js";
|
|
56
56
|
import { apiAddInsumosFreteMaterial, apiDeleteInsumosFreteMaterial, apiFindMonitorInsumosFreteMaterial, apiGetAllInsumosFreteMaterial, apiGetInsumosFreteMaterial, apiUpdateInsumosFreteMaterial } from "./modules/insumos/freteMaterial/FreteMaterialService.js";
|
|
57
57
|
import { apiAddInsumosLiberacaoCompra, apiDeleteInsumosLiberacaoCompra, apiFindMonitorInsumosLiberacaoCompra, apiGetInsumosLiberacaoCompra, apiUpdateInsumosLiberacaoCompra } from "./modules/insumos/liberacaoCompra/LiberacaoCompraService.js";
|
|
@@ -62,7 +62,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
62
62
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./modules/insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
63
63
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./modules/insumos/principioAtivo/PrincipioAtivoService.js";
|
|
64
64
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
65
|
-
import { apiAddInsumosVendas,
|
|
65
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./modules/insumos/vendas/VendasService.js";
|
|
66
66
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./modules/transportadora/Irpf/IrpfService.js";
|
|
67
67
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./modules/transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
68
68
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./modules/transportadora/Iss/IssService.js";
|
|
@@ -244,7 +244,6 @@ export {
|
|
|
244
244
|
apiBuscarStatusConsumo,
|
|
245
245
|
apiBuscarStatusFixacao,
|
|
246
246
|
apiCalcularRetencao,
|
|
247
|
-
apiCalculoVendaInsumosVendas,
|
|
248
247
|
apiCancelContratoCompraGraos,
|
|
249
248
|
apiCancelPreContrato,
|
|
250
249
|
apiCancelarEntregaBayer,
|
|
@@ -318,7 +317,6 @@ export {
|
|
|
318
317
|
apiDeleteInsumosPercentualPagamento,
|
|
319
318
|
apiDeleteInsumosPrincipioAtivo,
|
|
320
319
|
apiDeleteInsumosSeguradoraAgricola,
|
|
321
|
-
apiDeleteInsumosVendas,
|
|
322
320
|
apiDeleteModeloAvaliacao,
|
|
323
321
|
apiDeleteModeloNota,
|
|
324
322
|
apiDeleteOneCadastroEstrategiaLiberacaoValor,
|
|
@@ -608,7 +606,6 @@ export {
|
|
|
608
606
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
609
607
|
apiGetAllInsumosFreteMaterial,
|
|
610
608
|
apiGetAllInsumosPrincipioAtivo,
|
|
611
|
-
apiGetAllInsumosVendas,
|
|
612
609
|
apiGetAreaAtuacao,
|
|
613
610
|
apiGetAssistenciaTecnicaSeloSocial,
|
|
614
611
|
apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
@@ -673,6 +670,7 @@ export {
|
|
|
673
670
|
apiGetIrpf,
|
|
674
671
|
apiGetIrpfFaixaDesconto,
|
|
675
672
|
apiGetItinerario,
|
|
673
|
+
apiGetMediaPreco,
|
|
676
674
|
apiGetModeloAvaliacao,
|
|
677
675
|
apiGetModeloNota,
|
|
678
676
|
apiGetMultiplicadorUnidadeMedida,
|
|
@@ -708,6 +706,7 @@ export {
|
|
|
708
706
|
apiGetTipoCarga,
|
|
709
707
|
apiGetTransacoesEntrega,
|
|
710
708
|
apiGetUsers,
|
|
709
|
+
apiGetValorFrete,
|
|
711
710
|
apiGetVolumeProducaoSeloSocial,
|
|
712
711
|
apiGetVolumeProducaoSeloSocialBySafraId,
|
|
713
712
|
apiIndisponibilizarRacaoItemCompra,
|
|
@@ -48,7 +48,7 @@ import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioA
|
|
|
48
48
|
import { apiAddInss, apiFindAllInss, apiGetInss, apiUpdateInss } from "./transportadora/Inss/InssService.js";
|
|
49
49
|
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiSearchCoberturaSeguro, apiUpdateInsumosCoberturaSeguroAgricola } from "./insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
50
50
|
import { apiAddInsumosComissaoVenda, apiDeleteInsumosComissaoVenda, apiFindMonitorInsumosComissaoVenda, apiGetAllInsumosComissaoVenda, apiGetInsumosComissaoVenda, apiUpdateInsumosComissaoVenda } from "./insumos/comissaoVenda/ComissaoVendaService.js";
|
|
51
|
-
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiUpdateInsumosCompra } from "./insumos/compra/CompraService.js";
|
|
51
|
+
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiGetMediaPreco, apiUpdateInsumosCompra } from "./insumos/compra/CompraService.js";
|
|
52
52
|
import { apiAddInsumosFaturamentoVsDespesa, apiDeleteInsumosFaturamentoVsDespesa, apiFindMonitorInsumosFaturamentoVsDespesa, apiGetAllInsumosFaturamentoVsDespesa, apiGetInsumosFaturamentoVsDespesa, apiUpdateInsumosFaturamentoVsDespesa } from "./insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js";
|
|
53
53
|
import { apiAddInsumosFreteMaterial, apiDeleteInsumosFreteMaterial, apiFindMonitorInsumosFreteMaterial, apiGetAllInsumosFreteMaterial, apiGetInsumosFreteMaterial, apiUpdateInsumosFreteMaterial } from "./insumos/freteMaterial/FreteMaterialService.js";
|
|
54
54
|
import { apiAddInsumosLiberacaoCompra, apiDeleteInsumosLiberacaoCompra, apiFindMonitorInsumosLiberacaoCompra, apiGetInsumosLiberacaoCompra, apiUpdateInsumosLiberacaoCompra } from "./insumos/liberacaoCompra/LiberacaoCompraService.js";
|
|
@@ -59,7 +59,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
59
59
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
60
60
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./insumos/principioAtivo/PrincipioAtivoService.js";
|
|
61
61
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
62
|
-
import { apiAddInsumosVendas,
|
|
62
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./insumos/vendas/VendasService.js";
|
|
63
63
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./transportadora/Irpf/IrpfService.js";
|
|
64
64
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
65
65
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./transportadora/Iss/IssService.js";
|
|
@@ -226,7 +226,6 @@ export {
|
|
|
226
226
|
apiAprovarRacaoPedidoVenda,
|
|
227
227
|
apiAprovarTermoFundeinfra,
|
|
228
228
|
apiAprovarTermoFunrural,
|
|
229
|
-
apiCalculoVendaInsumosVendas,
|
|
230
229
|
apiCancelContratoCompraGraos,
|
|
231
230
|
apiCancelPreContrato,
|
|
232
231
|
apiCancelarInsumosItemCompra,
|
|
@@ -296,7 +295,6 @@ export {
|
|
|
296
295
|
apiDeleteInsumosPercentualPagamento,
|
|
297
296
|
apiDeleteInsumosPrincipioAtivo,
|
|
298
297
|
apiDeleteInsumosSeguradoraAgricola,
|
|
299
|
-
apiDeleteInsumosVendas,
|
|
300
298
|
apiDeleteModeloAvaliacao,
|
|
301
299
|
apiDeleteModeloNota,
|
|
302
300
|
apiDeleteOneCadastroEstrategiaLiberacaoValor,
|
|
@@ -578,7 +576,6 @@ export {
|
|
|
578
576
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
579
577
|
apiGetAllInsumosFreteMaterial,
|
|
580
578
|
apiGetAllInsumosPrincipioAtivo,
|
|
581
|
-
apiGetAllInsumosVendas,
|
|
582
579
|
apiGetAreaAtuacao,
|
|
583
580
|
apiGetAssistenciaTecnicaSeloSocial,
|
|
584
581
|
apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
@@ -643,6 +640,7 @@ export {
|
|
|
643
640
|
apiGetIrpf,
|
|
644
641
|
apiGetIrpfFaixaDesconto,
|
|
645
642
|
apiGetItinerario,
|
|
643
|
+
apiGetMediaPreco,
|
|
646
644
|
apiGetModeloAvaliacao,
|
|
647
645
|
apiGetModeloNota,
|
|
648
646
|
apiGetMultiplicadorUnidadeMedida,
|
|
@@ -676,6 +674,7 @@ export {
|
|
|
676
674
|
apiGetTermoFunrural,
|
|
677
675
|
apiGetTipoCarga,
|
|
678
676
|
apiGetUsers,
|
|
677
|
+
apiGetValorFrete,
|
|
679
678
|
apiGetVolumeProducaoSeloSocial,
|
|
680
679
|
apiGetVolumeProducaoSeloSocialBySafraId,
|
|
681
680
|
apiIndisponibilizarRacaoItemCompra,
|
|
@@ -35,11 +35,19 @@ async function apiExecuteAcaoInsumosCompra(id, tipoAcao) {
|
|
|
35
35
|
data: { tipoAcao }
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
async function apiGetMediaPreco(body) {
|
|
39
|
+
return ApiService.fetchDataWithAxios({
|
|
40
|
+
url: COMPRA_ENDPOINT.getMediaPreco.endpoint,
|
|
41
|
+
method: COMPRA_ENDPOINT.getMediaPreco.method,
|
|
42
|
+
data: body
|
|
43
|
+
});
|
|
44
|
+
}
|
|
38
45
|
export {
|
|
39
46
|
apiAddInsumosCompra,
|
|
40
47
|
apiExecuteAcaoInsumosCompra,
|
|
41
48
|
apiFindMonitorInsumosCompra,
|
|
42
49
|
apiGetInsumosCompra,
|
|
50
|
+
apiGetMediaPreco,
|
|
43
51
|
apiUpdateInsumosCompra
|
|
44
52
|
};
|
|
45
53
|
//# sourceMappingURL=CompraService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompraService.js","sources":["../../../../../../lib/base/services/modules/insumos/compra/CompraService.ts"],"sourcesContent":["import ApiService from
|
|
1
|
+
{"version":3,"file":"CompraService.js","sources":["../../../../../../lib/base/services/modules/insumos/compra/CompraService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport {\n TCompra,\n TCompraFormSchema,\n TCompraColumnDef,\n} from '@base/@types/models/insumos/compra'\nimport endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'\n\nconst COMPRA_ENDPOINT = endpointConfig.insumos.compra\n\nexport async function apiGetInsumosCompra(id: number) {\n return ApiService.fetchDataWithAxios<TCompra>({\n url: COMPRA_ENDPOINT.findOne.endpoint + `${id}`,\n method: COMPRA_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddInsumosCompra(body: TCompraFormSchema) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCompra>>({\n url: COMPRA_ENDPOINT.add.endpoint,\n method: COMPRA_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateInsumosCompra(body: TCompraFormSchema) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCompra>>({\n url: COMPRA_ENDPOINT.update.endpoint,\n method: COMPRA_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorInsumosCompra(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCompraColumnDef>>({\n url: COMPRA_ENDPOINT.findMonitor.endpoint,\n method: COMPRA_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiExecuteAcaoInsumosCompra(\n id: string,\n tipoAcao: 'CANCELAR' | 'EFETIVAR',\n) {\n return ApiService.fetchDataWithAxios<void>({\n url: COMPRA_ENDPOINT.executeAcao.endpoint.replace('{id}', id),\n method: COMPRA_ENDPOINT.executeAcao.method,\n data: { tipoAcao },\n })\n}\n\nexport async function apiGetMediaPreco(body: {\n idSafra: number\n idProduto: number\n quantidade: number\n}) {\n return ApiService.fetchDataWithAxios<number>({\n url: COMPRA_ENDPOINT.getMediaPreco.endpoint,\n method: COMPRA_ENDPOINT.getMediaPreco.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AASA,MAAM,kBAAkBA,yBAAe,QAAQ;AAE/C,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gBAAgB,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7C,QAAQ,gBAAgB,QAAQ;AAAA,EAAA,CACnC;AACL;AAEA,eAAsB,oBAAoB,MAAyB;AAC/D,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,IAAI;AAAA,IACzB,QAAQ,gBAAgB,IAAI;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,MAAyB;AAClE,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,OAAO;AAAA,IAC5B,QAAQ,gBAAgB,OAAO;AAAA,IAC/B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAA4B,MAAsB;AACpE,SAAO,WAAW,mBAAqD;AAAA,IACnE,KAAK,gBAAgB,YAAY;AAAA,IACjC,QAAQ,gBAAgB,YAAY;AAAA,IACpC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAClB,IACA,UACF;AACE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gBAAgB,YAAY,SAAS,QAAQ,QAAQ,EAAE;AAAA,IAC5D,QAAQ,gBAAgB,YAAY;AAAA,IACpC,MAAM,EAAE,SAAA;AAAA,EAAS,CACpB;AACL;AAEA,eAAsB,iBAAiB,MAIpC;AACC,SAAO,WAAW,mBAA2B;AAAA,IACzC,KAAK,gBAAgB,cAAc;AAAA,IACnC,QAAQ,gBAAgB,cAAc;AAAA,IACtC,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { apiFindMonitorInsumosEstoque } from "./estoque/EstoqueService.js";
|
|
2
|
-
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiUpdateInsumosCompra } from "./compra/CompraService.js";
|
|
2
|
+
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiGetMediaPreco, apiUpdateInsumosCompra } from "./compra/CompraService.js";
|
|
3
3
|
import { apiCancelarInsumosItemCompra, apiFindMonitorInsumosItemCompra } from "./itemCompra/ItemCompraService.js";
|
|
4
4
|
import { apiAddInsumosLiberacaoCompra, apiDeleteInsumosLiberacaoCompra, apiFindMonitorInsumosLiberacaoCompra, apiGetInsumosLiberacaoCompra, apiUpdateInsumosLiberacaoCompra } from "./liberacaoCompra/LiberacaoCompraService.js";
|
|
5
5
|
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiSearchCoberturaSeguro, apiUpdateInsumosCoberturaSeguroAgricola } from "./coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
@@ -13,7 +13,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
13
13
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./percentualPagamento/PercentualPagamentoService.js";
|
|
14
14
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./principioAtivo/PrincipioAtivoService.js";
|
|
15
15
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
16
|
-
import { apiAddInsumosVendas,
|
|
16
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./vendas/VendasService.js";
|
|
17
17
|
export {
|
|
18
18
|
apiAddInsumosCoberturaSeguroAgricola,
|
|
19
19
|
apiAddInsumosComissaoVenda,
|
|
@@ -29,7 +29,6 @@ export {
|
|
|
29
29
|
apiAddInsumosPrincipioAtivo,
|
|
30
30
|
apiAddInsumosSeguradoraAgricola,
|
|
31
31
|
apiAddInsumosVendas,
|
|
32
|
-
apiCalculoVendaInsumosVendas,
|
|
33
32
|
apiCancelarInsumosItemCompra,
|
|
34
33
|
apiDeleteInsumosCoberturaSeguroAgricola,
|
|
35
34
|
apiDeleteInsumosComissaoVenda,
|
|
@@ -43,7 +42,6 @@ export {
|
|
|
43
42
|
apiDeleteInsumosPercentualPagamento,
|
|
44
43
|
apiDeleteInsumosPrincipioAtivo,
|
|
45
44
|
apiDeleteInsumosSeguradoraAgricola,
|
|
46
|
-
apiDeleteInsumosVendas,
|
|
47
45
|
apiExecuteAcaoInsumosCompra,
|
|
48
46
|
apiExecuteAcaoVendas,
|
|
49
47
|
apiFindMonitorInsumosCoberturaSeguroAgricola,
|
|
@@ -68,7 +66,6 @@ export {
|
|
|
68
66
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
69
67
|
apiGetAllInsumosFreteMaterial,
|
|
70
68
|
apiGetAllInsumosPrincipioAtivo,
|
|
71
|
-
apiGetAllInsumosVendas,
|
|
72
69
|
apiGetInsumosCoberturaSeguroAgricola,
|
|
73
70
|
apiGetInsumosComissaoVenda,
|
|
74
71
|
apiGetInsumosCompra,
|
|
@@ -83,6 +80,8 @@ export {
|
|
|
83
80
|
apiGetInsumosPrincipioAtivo,
|
|
84
81
|
apiGetInsumosSeguradoraAgricola,
|
|
85
82
|
apiGetInsumosVendas,
|
|
83
|
+
apiGetMediaPreco,
|
|
84
|
+
apiGetValorFrete,
|
|
86
85
|
apiSearchCoberturaSeguro,
|
|
87
86
|
apiSearchLimiteAdiantamentoCliente,
|
|
88
87
|
apiSearchLimiteAdiantamentoGeral,
|
|
@@ -21,18 +21,6 @@ async function apiUpdateInsumosVendas(body) {
|
|
|
21
21
|
data: body
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
async function apiDeleteInsumosVendas(id) {
|
|
25
|
-
return ApiService.fetchDataWithAxios({
|
|
26
|
-
url: VENDAS_ENDPOINT.delete.endpoint + `${id}`,
|
|
27
|
-
method: VENDAS_ENDPOINT.delete.method
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
async function apiGetAllInsumosVendas() {
|
|
31
|
-
return ApiService.fetchDataWithAxios({
|
|
32
|
-
url: VENDAS_ENDPOINT.findAll.endpoint,
|
|
33
|
-
method: VENDAS_ENDPOINT.findAll.method
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
24
|
async function apiFindMonitorInsumosVendas(body) {
|
|
37
25
|
return ApiService.fetchDataWithAxios({
|
|
38
26
|
url: VENDAS_ENDPOINT.findMonitor.endpoint,
|
|
@@ -40,28 +28,26 @@ async function apiFindMonitorInsumosVendas(body) {
|
|
|
40
28
|
data: body
|
|
41
29
|
});
|
|
42
30
|
}
|
|
43
|
-
async function
|
|
31
|
+
async function apiExecuteAcaoVendas(id, body) {
|
|
44
32
|
return ApiService.fetchDataWithAxios({
|
|
45
|
-
url: VENDAS_ENDPOINT.
|
|
46
|
-
method: VENDAS_ENDPOINT.
|
|
33
|
+
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace("{id}", id.toString()),
|
|
34
|
+
method: VENDAS_ENDPOINT.executeAcao.method,
|
|
47
35
|
data: body
|
|
48
36
|
});
|
|
49
37
|
}
|
|
50
|
-
async function
|
|
38
|
+
async function apiGetValorFrete(body) {
|
|
51
39
|
return ApiService.fetchDataWithAxios({
|
|
52
|
-
url: VENDAS_ENDPOINT.
|
|
53
|
-
method: VENDAS_ENDPOINT.
|
|
40
|
+
url: VENDAS_ENDPOINT.getValorFrete.endpoint,
|
|
41
|
+
method: VENDAS_ENDPOINT.getValorFrete.method,
|
|
54
42
|
data: body
|
|
55
43
|
});
|
|
56
44
|
}
|
|
57
45
|
export {
|
|
58
46
|
apiAddInsumosVendas,
|
|
59
|
-
apiCalculoVendaInsumosVendas,
|
|
60
|
-
apiDeleteInsumosVendas,
|
|
61
47
|
apiExecuteAcaoVendas,
|
|
62
48
|
apiFindMonitorInsumosVendas,
|
|
63
|
-
apiGetAllInsumosVendas,
|
|
64
49
|
apiGetInsumosVendas,
|
|
50
|
+
apiGetValorFrete,
|
|
65
51
|
apiUpdateInsumosVendas
|
|
66
52
|
};
|
|
67
53
|
//# sourceMappingURL=VendasService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VendasService.js","sources":["../../../../../../lib/base/services/modules/insumos/vendas/VendasService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TVendas } from \"@base/@types/models/insumos/vendas\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst VENDAS_ENDPOINT = endpointConfig.insumos.vendas;\n\nexport async function apiGetInsumosVendas(id: number) {\n return ApiService.fetchDataWithAxios<TVendas>({\n url: VENDAS_ENDPOINT.findOne.endpoint + `${id}`,\n method: VENDAS_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddInsumosVendas(body: TVendas) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.add.endpoint,\n method: VENDAS_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateInsumosVendas(body: TVendas) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.update.endpoint,\n method: VENDAS_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function
|
|
1
|
+
{"version":3,"file":"VendasService.js","sources":["../../../../../../lib/base/services/modules/insumos/vendas/VendasService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TVendas } from \"@base/@types/models/insumos/vendas\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst VENDAS_ENDPOINT = endpointConfig.insumos.vendas;\n\nexport async function apiGetInsumosVendas(id: number) {\n return ApiService.fetchDataWithAxios<TVendas>({\n url: VENDAS_ENDPOINT.findOne.endpoint + `${id}`,\n method: VENDAS_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddInsumosVendas(body: TVendas) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.add.endpoint,\n method: VENDAS_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateInsumosVendas(body: TVendas) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.update.endpoint,\n method: VENDAS_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorInsumosVendas(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.findMonitor.endpoint,\n method: VENDAS_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiExecuteAcaoVendas(id: number, body?: any) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({\n url: VENDAS_ENDPOINT.executeAcao.endpoint.replace(\"{id}\", id.toString()),\n method: VENDAS_ENDPOINT.executeAcao.method,\n data: body,\n })\n}\n\nexport async function apiGetValorFrete(body?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: VENDAS_ENDPOINT.getValorFrete.endpoint,\n method: VENDAS_ENDPOINT.getValorFrete.method,\n data: body,\n })\n}"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,kBAAkBA,yBAAe,QAAQ;AAE/C,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gBAAgB,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7C,QAAQ,gBAAgB,QAAQ;AAAA,EAAA,CACnC;AACL;AAEA,eAAsB,oBAAoB,MAAe;AACrD,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,IAAI;AAAA,IACzB,QAAQ,gBAAgB,IAAI;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,MAAe;AACxD,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,OAAO;AAAA,IAC5B,QAAQ,gBAAgB,OAAO;AAAA,IAC/B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAA4B,MAAsB;AACpE,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,YAAY;AAAA,IACjC,QAAQ,gBAAgB,YAAY;AAAA,IACpC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,qBAAqB,IAAY,MAAY;AAC/D,SAAO,WAAW,mBAA4C;AAAA,IAC1D,KAAK,gBAAgB,YAAY,SAAS,QAAQ,QAAQ,GAAG,UAAU;AAAA,IACvE,QAAQ,gBAAgB,YAAY;AAAA,IACpC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,iBAAiB,MAAY;AAC/C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,gBAAgB,cAAc;AAAA,IACnC,QAAQ,gBAAgB,cAAc;AAAA,IACtC,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -4,8 +4,18 @@ const compra = {
|
|
|
4
4
|
findOne: { endpoint: `${COMPRA_BASE_URL}/`, method: 'get' },
|
|
5
5
|
add: { endpoint: COMPRA_BASE_URL, method: 'post' },
|
|
6
6
|
update: { endpoint: COMPRA_BASE_URL, method: 'put' },
|
|
7
|
-
findMonitor: {
|
|
8
|
-
|
|
7
|
+
findMonitor: {
|
|
8
|
+
endpoint: `${COMPRA_BASE_URL}/find-monitor`,
|
|
9
|
+
method: 'post',
|
|
10
|
+
},
|
|
11
|
+
executeAcao: {
|
|
12
|
+
endpoint: `${COMPRA_BASE_URL}/{id}/execute-acao`,
|
|
13
|
+
method: 'post',
|
|
14
|
+
},
|
|
15
|
+
getMediaPreco: {
|
|
16
|
+
endpoint: `${COMPRA_BASE_URL}/get-media-preco`,
|
|
17
|
+
method: 'post',
|
|
18
|
+
},
|
|
9
19
|
}
|
|
10
20
|
|
|
11
|
-
export default compra
|
|
21
|
+
export default compra
|
|
@@ -4,11 +4,9 @@ const vendas = {
|
|
|
4
4
|
findOne: { endpoint: `${VENDAS_BASE_URL}/`, method: 'get' },
|
|
5
5
|
add: { endpoint: VENDAS_BASE_URL, method: 'post' },
|
|
6
6
|
update: { endpoint: VENDAS_BASE_URL, method: 'put' },
|
|
7
|
-
delete: { endpoint: `${VENDAS_BASE_URL}/`, method: 'delete' },
|
|
8
|
-
findAll: { endpoint: `${VENDAS_BASE_URL}`, method: 'get' },
|
|
9
7
|
findMonitor: { endpoint: `${VENDAS_BASE_URL}/find-monitor`, method: 'post' },
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
executeAcao: { endpoint: `${VENDAS_BASE_URL}/{id}/execute-acao`, method: 'post' },
|
|
9
|
+
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: 'post' }
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
export default vendas
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import ApiService from
|
|
2
|
-
import { IFilterParams, TQueryResponse } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { IFilterParams, TQueryResponse } from '@base/@types/api'
|
|
3
|
+
import {
|
|
4
|
+
TCompra,
|
|
5
|
+
TCompraFormSchema,
|
|
6
|
+
TCompraColumnDef,
|
|
7
|
+
} from '@base/@types/models/insumos/compra'
|
|
8
|
+
import endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'
|
|
5
9
|
|
|
6
|
-
const COMPRA_ENDPOINT = endpointConfig.insumos.compra
|
|
10
|
+
const COMPRA_ENDPOINT = endpointConfig.insumos.compra
|
|
7
11
|
|
|
8
12
|
export async function apiGetInsumosCompra(id: number) {
|
|
9
13
|
return ApiService.fetchDataWithAxios<TCompra>({
|
|
@@ -36,10 +40,25 @@ export async function apiFindMonitorInsumosCompra(body?: IFilterParams) {
|
|
|
36
40
|
})
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
export async function apiExecuteAcaoInsumosCompra(
|
|
43
|
+
export async function apiExecuteAcaoInsumosCompra(
|
|
44
|
+
id: string,
|
|
45
|
+
tipoAcao: 'CANCELAR' | 'EFETIVAR',
|
|
46
|
+
) {
|
|
40
47
|
return ApiService.fetchDataWithAxios<void>({
|
|
41
48
|
url: COMPRA_ENDPOINT.executeAcao.endpoint.replace('{id}', id),
|
|
42
49
|
method: COMPRA_ENDPOINT.executeAcao.method,
|
|
43
50
|
data: { tipoAcao },
|
|
44
51
|
})
|
|
45
52
|
}
|
|
53
|
+
|
|
54
|
+
export async function apiGetMediaPreco(body: {
|
|
55
|
+
idSafra: number
|
|
56
|
+
idProduto: number
|
|
57
|
+
quantidade: number
|
|
58
|
+
}) {
|
|
59
|
+
return ApiService.fetchDataWithAxios<number>({
|
|
60
|
+
url: COMPRA_ENDPOINT.getMediaPreco.endpoint,
|
|
61
|
+
method: COMPRA_ENDPOINT.getMediaPreco.method,
|
|
62
|
+
data: body,
|
|
63
|
+
})
|
|
64
|
+
}
|
|
@@ -28,20 +28,6 @@ export async function apiUpdateInsumosVendas(body: TVendas) {
|
|
|
28
28
|
})
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export async function apiDeleteInsumosVendas(id: number) {
|
|
32
|
-
return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({
|
|
33
|
-
url: VENDAS_ENDPOINT.delete.endpoint + `${id}`,
|
|
34
|
-
method: VENDAS_ENDPOINT.delete.method,
|
|
35
|
-
})
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export async function apiGetAllInsumosVendas() {
|
|
39
|
-
return ApiService.fetchDataWithAxios<TVendas[]>({
|
|
40
|
-
url: VENDAS_ENDPOINT.findAll.endpoint,
|
|
41
|
-
method: VENDAS_ENDPOINT.findAll.method,
|
|
42
|
-
})
|
|
43
|
-
}
|
|
44
|
-
|
|
45
31
|
export async function apiFindMonitorInsumosVendas(body?: IFilterParams) {
|
|
46
32
|
return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({
|
|
47
33
|
url: VENDAS_ENDPOINT.findMonitor.endpoint,
|
|
@@ -50,18 +36,18 @@ export async function apiFindMonitorInsumosVendas(body?: IFilterParams) {
|
|
|
50
36
|
})
|
|
51
37
|
}
|
|
52
38
|
|
|
53
|
-
export async function apiCalculoVendaInsumosVendas(body: any) {
|
|
54
|
-
return ApiService.fetchDataWithAxios<any>({
|
|
55
|
-
url: VENDAS_ENDPOINT.calculoVenda.endpoint,
|
|
56
|
-
method: VENDAS_ENDPOINT.calculoVenda.method,
|
|
57
|
-
data: body,
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
39
|
export async function apiExecuteAcaoVendas(id: number, body?: any) {
|
|
62
40
|
return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({
|
|
63
41
|
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace("{id}", id.toString()),
|
|
64
42
|
method: VENDAS_ENDPOINT.executeAcao.method,
|
|
65
43
|
data: body,
|
|
66
44
|
})
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export async function apiGetValorFrete(body?: any) {
|
|
48
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
49
|
+
url: VENDAS_ENDPOINT.getValorFrete.endpoint,
|
|
50
|
+
method: VENDAS_ENDPOINT.getValorFrete.method,
|
|
51
|
+
data: body,
|
|
52
|
+
})
|
|
67
53
|
}
|
package/package.json
CHANGED