@orbe-agro/client-core 5.6.333 → 5.6.334
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/centralNfe/centralNfe.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/cfop.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/cfop.d.ts.map +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/services/modules/centralNfe/cfop/CfopService.d.ts +4 -0
- package/dist/@types/base/services/modules/centralNfe/cfop/CfopService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/cfop.js +2 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/cfop.js.map +1 -1
- package/dist/base/services/modules/centralNfe/cfop/CfopService.js +9 -1
- package/dist/base/services/modules/centralNfe/cfop/CfopService.js.map +1 -1
- package/lib/base/configs/endpoints.config/centralNfe/config/cfop.ts +2 -1
- package/lib/base/services/modules/centralNfe/cfop/CfopService.ts +8 -0
- 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.334" : "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":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcf,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cfop.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/cfop.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"cfop.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/cfop.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAIT,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -2276,6 +2276,10 @@ declare const endpointNavigationConfig: {
|
|
|
2276
2276
|
endpoint: string;
|
|
2277
2277
|
httpMethod: string;
|
|
2278
2278
|
};
|
|
2279
|
+
updateSelecao: {
|
|
2280
|
+
endpoint: string;
|
|
2281
|
+
httpMethod: string;
|
|
2282
|
+
};
|
|
2279
2283
|
};
|
|
2280
2284
|
historicoCfop: {
|
|
2281
2285
|
findIdCfopByIdProdutoAndIdFornecedor: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AA2DA,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":"AA2DA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare function apiFindMonitorCfop(body: any): Promise<any>;
|
|
2
2
|
export declare function apiCreateCfop(values: any): Promise<any>;
|
|
3
|
+
export declare function apiUpdateSelecaoCfop(values: {
|
|
4
|
+
id: number;
|
|
5
|
+
selecao: boolean;
|
|
6
|
+
}): Promise<void>;
|
|
3
7
|
//# sourceMappingURL=CfopService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CfopService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/cfop/CfopService.ts"],"names":[],"mappings":"AAKA,wBAAsB,kBAAkB,CAAC,IAAI,KAAA,gBAM5C;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,GAAG,gBAM9C"}
|
|
1
|
+
{"version":3,"file":"CfopService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/cfop/CfopService.ts"],"names":[],"mappings":"AAKA,wBAAsB,kBAAkB,CAAC,IAAI,KAAA,gBAM5C;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,GAAG,gBAM9C;AAED,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,iBAMlF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const CFOP_BASE_URL = "/central-nfe/api/cfop";
|
|
2
2
|
const cfop = {
|
|
3
3
|
findMonitor: { endpoint: `${CFOP_BASE_URL}/find-monitor`, httpMethod: "post" },
|
|
4
|
-
create: { endpoint: CFOP_BASE_URL, httpMethod: "post" }
|
|
4
|
+
create: { endpoint: CFOP_BASE_URL, httpMethod: "post" },
|
|
5
|
+
updateSelecao: { endpoint: `${CFOP_BASE_URL}/selecao`, httpMethod: "patch" }
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
8
|
cfop as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cfop.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/cfop.ts"],"sourcesContent":["const CFOP_BASE_URL = '/central-nfe/api/cfop'\n\nconst cfop = {\n findMonitor: { endpoint: `${CFOP_BASE_URL}/find-monitor`, httpMethod: 'post' },\n create: { endpoint: CFOP_BASE_URL, httpMethod: 'post' }
|
|
1
|
+
{"version":3,"file":"cfop.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/cfop.ts"],"sourcesContent":["const CFOP_BASE_URL = '/central-nfe/api/cfop'\n\nconst cfop = {\n findMonitor: { endpoint: `${CFOP_BASE_URL}/find-monitor`, httpMethod: 'post' },\n create: { endpoint: CFOP_BASE_URL, httpMethod: 'post' },\n updateSelecao: { endpoint: `${CFOP_BASE_URL}/selecao`, httpMethod: 'patch' },\n}\n\nexport default cfop\n"],"names":[],"mappings":"AAAA,MAAM,gBAAgB;AAEtB,MAAM,OAAO;AAAA,EACT,aAAa,EAAE,UAAU,GAAG,aAAa,iBAAiB,YAAY,OAAA;AAAA,EACtE,QAAQ,EAAE,UAAU,eAAe,YAAY,OAAA;AAAA,EAC/C,eAAe,EAAE,UAAU,GAAG,aAAa,YAAY,YAAY,QAAA;AACvE;"}
|
|
@@ -15,8 +15,16 @@ async function apiCreateCfop(values) {
|
|
|
15
15
|
data: values
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
async function apiUpdateSelecaoCfop(values) {
|
|
19
|
+
return ApiService.fetchDataWithAxios({
|
|
20
|
+
url: CFOP_ENDPOINT.updateSelecao.endpoint,
|
|
21
|
+
method: CFOP_ENDPOINT.updateSelecao.httpMethod,
|
|
22
|
+
data: values
|
|
23
|
+
});
|
|
24
|
+
}
|
|
18
25
|
export {
|
|
19
26
|
apiCreateCfop,
|
|
20
|
-
apiFindMonitorCfop
|
|
27
|
+
apiFindMonitorCfop,
|
|
28
|
+
apiUpdateSelecaoCfop
|
|
21
29
|
};
|
|
22
30
|
//# sourceMappingURL=CfopService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CfopService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/cfop/CfopService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CFOP_ENDPOINT = endpointConfig.centralNfe.cfop;\n\nexport async function apiFindMonitorCfop(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: CFOP_ENDPOINT.findMonitor.endpoint,\n method: CFOP_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiCreateCfop(values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: CFOP_ENDPOINT.create.endpoint,\n method: CFOP_ENDPOINT.create.httpMethod,\n data: values\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,gBAAgBA,yBAAe,WAAW;AAEhD,eAAsB,mBAAmB,MAAM;AAC3C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,cAAc,YAAY;AAAA,IAC/B,QAAQ,cAAc,YAAY;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,QAAa;AAC7C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,cAAc,OAAO;AAAA,IAC1B,QAAQ,cAAc,OAAO;AAAA,IAC7B,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
1
|
+
{"version":3,"file":"CfopService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/cfop/CfopService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst CFOP_ENDPOINT = endpointConfig.centralNfe.cfop;\n\nexport async function apiFindMonitorCfop(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: CFOP_ENDPOINT.findMonitor.endpoint,\n method: CFOP_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiCreateCfop(values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: CFOP_ENDPOINT.create.endpoint,\n method: CFOP_ENDPOINT.create.httpMethod,\n data: values\n })\n}\n\nexport async function apiUpdateSelecaoCfop(values: { id: number; selecao: boolean }) {\n return ApiService.fetchDataWithAxios<void>({\n url: CFOP_ENDPOINT.updateSelecao.endpoint,\n method: CFOP_ENDPOINT.updateSelecao.httpMethod,\n data: values,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,gBAAgBA,yBAAe,WAAW;AAEhD,eAAsB,mBAAmB,MAAM;AAC3C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,cAAc,YAAY;AAAA,IAC/B,QAAQ,cAAc,YAAY;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,QAAa;AAC7C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,cAAc,OAAO;AAAA,IAC1B,QAAQ,cAAc,OAAO;AAAA,IAC7B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,qBAAqB,QAA0C;AACjF,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,cAAc,cAAc;AAAA,IACjC,QAAQ,cAAc,cAAc;AAAA,IACpC,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -2,7 +2,8 @@ const CFOP_BASE_URL = '/central-nfe/api/cfop'
|
|
|
2
2
|
|
|
3
3
|
const cfop = {
|
|
4
4
|
findMonitor: { endpoint: `${CFOP_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
-
create: { endpoint: CFOP_BASE_URL, httpMethod: 'post' }
|
|
5
|
+
create: { endpoint: CFOP_BASE_URL, httpMethod: 'post' },
|
|
6
|
+
updateSelecao: { endpoint: `${CFOP_BASE_URL}/selecao`, httpMethod: 'patch' },
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export default cfop
|
|
@@ -18,3 +18,11 @@ export async function apiCreateCfop(values: any) {
|
|
|
18
18
|
data: values
|
|
19
19
|
})
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
export async function apiUpdateSelecaoCfop(values: { id: number; selecao: boolean }) {
|
|
23
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
24
|
+
url: CFOP_ENDPOINT.updateSelecao.endpoint,
|
|
25
|
+
method: CFOP_ENDPOINT.updateSelecao.httpMethod,
|
|
26
|
+
data: values,
|
|
27
|
+
})
|
|
28
|
+
}
|
package/package.json
CHANGED