@orbe-agro/client-core 5.6.172 → 5.6.174
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/@ecme/components/template/Footer.js +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/config/vendas.d.ts +4 -0
- 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 +4 -0
- package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts +3 -2
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js +2 -1
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js.map +1 -1
- package/dist/base/index.js +2 -1
- package/dist/base/services/index.js +2 -1
- package/dist/base/services/modules/index.js +2 -1
- package/dist/base/services/modules/insumos/index.js +2 -1
- package/dist/base/services/modules/insumos/vendas/VendasService.js +15 -1
- package/dist/base/services/modules/insumos/vendas/VendasService.js.map +1 -1
- package/lib/base/configs/endpoints.config/insumos/config/vendas.ts +3 -2
- package/lib/base/services/modules/insumos/vendas/VendasService.ts +20 -6
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import Container from "../shared/Container.js";
|
|
|
3
3
|
import classNames from "../../utils/classNames.js";
|
|
4
4
|
import { APP_NAME } from "../../constants/app.constant.js";
|
|
5
5
|
import { PAGE_CONTAINER_GUTTER_X } from "../../constants/theme.constant.js";
|
|
6
|
-
const version = true ? "5.6.
|
|
6
|
+
const version = true ? "5.6.174" : "0.0.0";
|
|
7
7
|
const FooterContent = () => {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-auto items-center justify-between", children: [
|
|
9
9
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -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,9 +1,10 @@
|
|
|
1
|
-
import { IFilterParams, TQueryResponse } from
|
|
2
|
-
import { TVendas } from
|
|
1
|
+
import { IFilterParams, TQueryResponse } from '@base/@types/api';
|
|
2
|
+
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
6
|
export declare function apiFindMonitorInsumosVendas(body?: IFilterParams): Promise<TQueryResponse<TVendas>>;
|
|
7
7
|
export declare function apiExecuteAcaoVendas(id: number, body?: any): Promise<TQueryResponse<TVendas>>;
|
|
8
8
|
export declare function apiGetValorFrete(body?: any): Promise<any>;
|
|
9
|
+
export declare function apiSetVendaLock(idVenda: number, lock: boolean): Promise<any>;
|
|
9
10
|
//# 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,
|
|
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,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAK5D,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,oCAShE;AAED,wBAAsB,gBAAgB,CAAC,IAAI,CAAC,EAAE,GAAG,gBAMhD;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,gBASnE"}
|
|
@@ -5,7 +5,8 @@ const vendas = {
|
|
|
5
5
|
update: { endpoint: VENDAS_BASE_URL, method: "put" },
|
|
6
6
|
findMonitor: { endpoint: `${VENDAS_BASE_URL}/find-monitor`, method: "post" },
|
|
7
7
|
executeAcao: { endpoint: `${VENDAS_BASE_URL}/{id}/execute-acao`, method: "post" },
|
|
8
|
-
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: "post" }
|
|
8
|
+
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: "post" },
|
|
9
|
+
lock: { endpoint: `${VENDAS_BASE_URL}/lock`, httpMethod: "post" }
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
12
|
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 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;
|
|
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 lock: { endpoint: `${VENDAS_BASE_URL}/lock`, httpMethod: 'post' }\n}\n\nexport default vendas\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,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;AAAA,EACzE,MAAM,EAAE,UAAU,GAAG,eAAe,SAAS,YAAY,OAAA;AAC7D;"}
|
package/dist/base/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
62
62
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./services/modules/insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
63
63
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./services/modules/insumos/principioAtivo/PrincipioAtivoService.js";
|
|
64
64
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
65
|
-
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./services/modules/insumos/vendas/VendasService.js";
|
|
65
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiSetVendaLock, apiUpdateInsumosVendas } from "./services/modules/insumos/vendas/VendasService.js";
|
|
66
66
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./services/modules/transportadora/Irpf/IrpfService.js";
|
|
67
67
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./services/modules/transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
68
68
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./services/modules/transportadora/Iss/IssService.js";
|
|
@@ -901,6 +901,7 @@ export {
|
|
|
901
901
|
apiSearchSeguradorasAgricolas,
|
|
902
902
|
apiSendMail,
|
|
903
903
|
apiSetRequisicaoCompraLock,
|
|
904
|
+
apiSetVendaLock,
|
|
904
905
|
apiSomatorioEntrega,
|
|
905
906
|
apiTransferirAtivosAtivo,
|
|
906
907
|
apiUpdateAcessoPatio,
|
|
@@ -63,7 +63,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
63
63
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./modules/insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
64
64
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./modules/insumos/principioAtivo/PrincipioAtivoService.js";
|
|
65
65
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
66
|
-
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./modules/insumos/vendas/VendasService.js";
|
|
66
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiSetVendaLock, apiUpdateInsumosVendas } from "./modules/insumos/vendas/VendasService.js";
|
|
67
67
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./modules/transportadora/Irpf/IrpfService.js";
|
|
68
68
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./modules/transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
69
69
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./modules/transportadora/Iss/IssService.js";
|
|
@@ -769,6 +769,7 @@ export {
|
|
|
769
769
|
apiSearchSeguradorasAgricolas,
|
|
770
770
|
apiSendMail,
|
|
771
771
|
apiSetRequisicaoCompraLock,
|
|
772
|
+
apiSetVendaLock,
|
|
772
773
|
apiSomatorioEntrega,
|
|
773
774
|
apiTransferirAtivosAtivo,
|
|
774
775
|
apiUpdateAcessoPatio,
|
|
@@ -60,7 +60,7 @@ import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindM
|
|
|
60
60
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
61
61
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./insumos/principioAtivo/PrincipioAtivoService.js";
|
|
62
62
|
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
63
|
-
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./insumos/vendas/VendasService.js";
|
|
63
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiSetVendaLock, apiUpdateInsumosVendas } from "./insumos/vendas/VendasService.js";
|
|
64
64
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./transportadora/Irpf/IrpfService.js";
|
|
65
65
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
66
66
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./transportadora/Iss/IssService.js";
|
|
@@ -734,6 +734,7 @@ export {
|
|
|
734
734
|
apiSearchSeguradorasAgricolas,
|
|
735
735
|
apiSendMail,
|
|
736
736
|
apiSetRequisicaoCompraLock,
|
|
737
|
+
apiSetVendaLock,
|
|
737
738
|
apiTransferirAtivosAtivo,
|
|
738
739
|
apiUpdateAcessoPatio,
|
|
739
740
|
apiUpdateAreaAtuacao,
|
|
@@ -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, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiUpdateInsumosVendas } from "./vendas/VendasService.js";
|
|
16
|
+
import { apiAddInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetInsumosVendas, apiGetValorFrete, apiSetVendaLock, apiUpdateInsumosVendas } from "./vendas/VendasService.js";
|
|
17
17
|
export {
|
|
18
18
|
apiAddInsumosCoberturaSeguroAgricola,
|
|
19
19
|
apiAddInsumosComissaoVenda,
|
|
@@ -86,6 +86,7 @@ export {
|
|
|
86
86
|
apiSearchLimiteAdiantamentoCliente,
|
|
87
87
|
apiSearchLimiteAdiantamentoGeral,
|
|
88
88
|
apiSearchSeguradorasAgricolas,
|
|
89
|
+
apiSetVendaLock,
|
|
89
90
|
apiUpdateInsumosCoberturaSeguroAgricola,
|
|
90
91
|
apiUpdateInsumosComissaoVenda,
|
|
91
92
|
apiUpdateInsumosCompra,
|
|
@@ -30,7 +30,10 @@ async function apiFindMonitorInsumosVendas(body) {
|
|
|
30
30
|
}
|
|
31
31
|
async function apiExecuteAcaoVendas(id, body) {
|
|
32
32
|
return ApiService.fetchDataWithAxios({
|
|
33
|
-
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace(
|
|
33
|
+
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace(
|
|
34
|
+
"{id}",
|
|
35
|
+
id.toString()
|
|
36
|
+
),
|
|
34
37
|
method: VENDAS_ENDPOINT.executeAcao.method,
|
|
35
38
|
data: body
|
|
36
39
|
});
|
|
@@ -42,12 +45,23 @@ async function apiGetValorFrete(body) {
|
|
|
42
45
|
data: body
|
|
43
46
|
});
|
|
44
47
|
}
|
|
48
|
+
async function apiSetVendaLock(idVenda, lock) {
|
|
49
|
+
return ApiService.fetchDataWithAxios({
|
|
50
|
+
url: VENDAS_ENDPOINT.lock.endpoint,
|
|
51
|
+
method: VENDAS_ENDPOINT.lock.httpMethod,
|
|
52
|
+
params: {
|
|
53
|
+
idVenda,
|
|
54
|
+
lock
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
45
58
|
export {
|
|
46
59
|
apiAddInsumosVendas,
|
|
47
60
|
apiExecuteAcaoVendas,
|
|
48
61
|
apiFindMonitorInsumosVendas,
|
|
49
62
|
apiGetInsumosVendas,
|
|
50
63
|
apiGetValorFrete,
|
|
64
|
+
apiSetVendaLock,
|
|
51
65
|
apiUpdateInsumosVendas
|
|
52
66
|
};
|
|
53
67
|
//# 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
|
|
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(\n '{id}',\n id.toString(),\n ),\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}\n\nexport async function apiSetVendaLock(idVenda: number, lock: boolean) {\n return ApiService.fetchDataWithAxios<any>({\n url: VENDAS_ENDPOINT.lock.endpoint,\n method: VENDAS_ENDPOINT.lock.httpMethod,\n params: {\n idVenda,\n lock,\n },\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;AAAA,MACtC;AAAA,MACA,GAAG,SAAA;AAAA,IAAS;AAAA,IAEhB,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;AAEA,eAAsB,gBAAgB,SAAiB,MAAe;AAClE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,gBAAgB,KAAK;AAAA,IAC1B,QAAQ,gBAAgB,KAAK;AAAA,IAC7B,QAAQ;AAAA,MACJ;AAAA,MACA;AAAA,IAAA;AAAA,EACJ,CACH;AACL;"}
|
|
@@ -6,7 +6,8 @@ const vendas = {
|
|
|
6
6
|
update: { endpoint: VENDAS_BASE_URL, method: 'put' },
|
|
7
7
|
findMonitor: { endpoint: `${VENDAS_BASE_URL}/find-monitor`, method: 'post' },
|
|
8
8
|
executeAcao: { endpoint: `${VENDAS_BASE_URL}/{id}/execute-acao`, method: 'post' },
|
|
9
|
-
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: 'post' }
|
|
9
|
+
getValorFrete: { endpoint: `${VENDAS_BASE_URL}/get-valor-frete`, method: 'post' },
|
|
10
|
+
lock: { endpoint: `${VENDAS_BASE_URL}/lock`, httpMethod: 'post' }
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export default vendas
|
|
13
|
+
export default vendas
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ApiService from
|
|
2
|
-
import { IFilterParams, TQueryResponse } from
|
|
3
|
-
import { TVendas } from
|
|
4
|
-
import endpointConfig from
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { IFilterParams, TQueryResponse } from '@base/@types/api'
|
|
3
|
+
import { TVendas } from '@base/@types/models/insumos/vendas'
|
|
4
|
+
import endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'
|
|
5
5
|
|
|
6
|
-
const VENDAS_ENDPOINT = endpointConfig.insumos.vendas
|
|
6
|
+
const VENDAS_ENDPOINT = endpointConfig.insumos.vendas
|
|
7
7
|
|
|
8
8
|
export async function apiGetInsumosVendas(id: number) {
|
|
9
9
|
return ApiService.fetchDataWithAxios<TVendas>({
|
|
@@ -38,7 +38,10 @@ export async function apiFindMonitorInsumosVendas(body?: IFilterParams) {
|
|
|
38
38
|
|
|
39
39
|
export async function apiExecuteAcaoVendas(id: number, body?: any) {
|
|
40
40
|
return ApiService.fetchDataWithAxios<TQueryResponse<TVendas>>({
|
|
41
|
-
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace(
|
|
41
|
+
url: VENDAS_ENDPOINT.executeAcao.endpoint.replace(
|
|
42
|
+
'{id}',
|
|
43
|
+
id.toString(),
|
|
44
|
+
),
|
|
42
45
|
method: VENDAS_ENDPOINT.executeAcao.method,
|
|
43
46
|
data: body,
|
|
44
47
|
})
|
|
@@ -50,4 +53,15 @@ export async function apiGetValorFrete(body?: any) {
|
|
|
50
53
|
method: VENDAS_ENDPOINT.getValorFrete.method,
|
|
51
54
|
data: body,
|
|
52
55
|
})
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export async function apiSetVendaLock(idVenda: number, lock: boolean) {
|
|
59
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
60
|
+
url: VENDAS_ENDPOINT.lock.endpoint,
|
|
61
|
+
method: VENDAS_ENDPOINT.lock.httpMethod,
|
|
62
|
+
params: {
|
|
63
|
+
idVenda,
|
|
64
|
+
lock,
|
|
65
|
+
},
|
|
66
|
+
})
|
|
53
67
|
}
|
package/package.json
CHANGED