@orbe-agro/client-core 5.3.42 → 5.3.44
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/route/AuthorityGuard.js +6 -6
- package/dist/@ecme/components/route/AuthorityGuard.js.map +1 -1
- package/dist/@ecme/locales/lang/en/pages.js +6 -0
- package/dist/@ecme/locales/lang/en/pages.js.map +1 -1
- package/dist/@ecme/locales/lang/ptBR/pages.js +6 -0
- package/dist/@ecme/locales/lang/ptBR/pages.js.map +1 -1
- package/dist/@ecme/views/others/AccessDenied/AccessDenied.js +10 -10
- package/dist/@ecme/views/others/AccessDenied/AccessDenied.js.map +1 -1
- package/dist/@types/@ecme/components/route/AuthorityGuard.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/en/index.d.ts +6 -0
- package/dist/@types/@ecme/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/en/pages.d.ts +6 -0
- package/dist/@types/@ecme/locales/lang/en/pages.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts +6 -0
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/pages.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts +26 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +26 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/index.d.ts +1 -0
- package/dist/@types/base/services/modules/centralNfe/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts +7 -0
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts.map +1 -0
- package/dist/@types/base/utils/colorClassName/badge.d.ts.map +1 -1
- package/dist/@types/base/utils/constOptions/defaultOption.d.ts +5 -0
- package/dist/@types/base/utils/constOptions/defaultOption.d.ts.map +1 -0
- package/dist/@types/base/utils/functions/stringUtils.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js +6 -4
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js +12 -0
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js +16 -6
- package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js.map +1 -1
- package/dist/base/services/modules/centralNfe/index.js +21 -14
- package/dist/base/services/modules/centralNfe/index.js.map +1 -1
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js +51 -0
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js.map +1 -0
- package/dist/base/utils/colorClassName/badge.js +9 -0
- package/dist/base/utils/colorClassName/badge.js.map +1 -1
- package/dist/base/utils/constOptions/defaultOption.js +5 -0
- package/dist/base/utils/constOptions/defaultOption.js.map +1 -0
- package/dist/base/utils/functions/stringUtils.js +22 -13
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/package.json +1 -1
- package/dist/@ecme/views/others/AccessDenied/lang/en/index.js +0 -9
- package/dist/@ecme/views/others/AccessDenied/lang/en/index.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/en/layout.js +0 -10
- package/dist/@ecme/views/others/AccessDenied/lang/en/layout.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/en/params.js +0 -5
- package/dist/@ecme/views/others/AccessDenied/lang/en/params.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/index.js +0 -12
- package/dist/@ecme/views/others/AccessDenied/lang/index.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/index.js +0 -9
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/index.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/layout.js +0 -10
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/layout.js.map +0 -1
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/params.js +0 -5
- package/dist/@ecme/views/others/AccessDenied/lang/ptBR/params.js.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/index.d.ts +0 -10
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/index.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/layout.d.ts +0 -8
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/layout.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/params.d.ts +0 -3
- package/dist/@types/@ecme/views/others/AccessDenied/lang/en/params.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/index.d.ts +0 -2
- package/dist/@types/@ecme/views/others/AccessDenied/lang/index.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/index.d.ts +0 -4
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/index.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/layout.d.ts +0 -4
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/layout.d.ts.map +0 -1
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/params.d.ts +0 -4
- package/dist/@types/@ecme/views/others/AccessDenied/lang/ptBR/params.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { Navigate as
|
|
3
|
-
import
|
|
4
|
-
const m = (
|
|
5
|
-
const { userAuthority:
|
|
6
|
-
return /* @__PURE__ */ t(
|
|
1
|
+
import { jsx as t, Fragment as e } from "react/jsx-runtime";
|
|
2
|
+
import { Navigate as c } from "react-router-dom";
|
|
3
|
+
import s from "../../utils/hooks/useAuthority.js";
|
|
4
|
+
const m = (o) => {
|
|
5
|
+
const { userAuthority: i = [], authority: a = [], children: r } = o, n = s(i, a);
|
|
6
|
+
return window.location.pathname === "/access-denied" ? /* @__PURE__ */ t(e, { children: r }) : /* @__PURE__ */ t(e, { children: n ? r : /* @__PURE__ */ t(c, { to: "/access-denied" }) });
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
m as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityGuard.js","sources":["../../../../lib/@ecme/components/route/AuthorityGuard.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react'\nimport { Navigate } from 'react-router-dom'\nimport useAuthority from '@/utils/hooks/useAuthority'\n\ntype AuthorityGuardProps = PropsWithChildren<{\n userAuthority?: string[]\n authority?: string[]\n}>\n\nconst AuthorityGuard = (props: AuthorityGuardProps) => {\n const { userAuthority = [], authority = [], children } = props\n\n const roleMatched = useAuthority(userAuthority, authority)\n\n return <>{roleMatched ? children : <Navigate to=\"/access-denied\" />}</>\n}\n\nexport default AuthorityGuard\n"],"names":["AuthorityGuard","props","userAuthority","authority","children","roleMatched","useAuthority","Navigate"],"mappings":";;;AASA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM,EAAE,eAAAC,IAAgB,CAAA,GAAI,WAAAC,IAAY,CAAA,GAAI,UAAAC,MAAaH,GAEnDI,IAAcC,EAAaJ,GAAeC,CAAS;AAEzD,
|
|
1
|
+
{"version":3,"file":"AuthorityGuard.js","sources":["../../../../lib/@ecme/components/route/AuthorityGuard.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react'\nimport { Navigate } from 'react-router-dom'\nimport useAuthority from '@/utils/hooks/useAuthority'\n\ntype AuthorityGuardProps = PropsWithChildren<{\n userAuthority?: string[]\n authority?: string[]\n}>\n\nconst AuthorityGuard = (props: AuthorityGuardProps) => {\n const { userAuthority = [], authority = [], children } = props\n\n const roleMatched = useAuthority(userAuthority, authority)\n\n if (window.location.pathname === '/access-denied') {\n return <>{children}</>\n }\n\n return <>{roleMatched ? children : <Navigate to=\"/access-denied\" />}</>\n}\n\nexport default AuthorityGuard\n"],"names":["AuthorityGuard","props","userAuthority","authority","children","roleMatched","useAuthority","Navigate"],"mappings":";;;AASA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM,EAAE,eAAAC,IAAgB,CAAA,GAAI,WAAAC,IAAY,CAAA,GAAI,UAAAC,MAAaH,GAEnDI,IAAcC,EAAaJ,GAAeC,CAAS;AAEzD,SAAI,OAAO,SAAS,aAAa,0CACnB,UAAAC,GAAS,2BAGb,UAAAC,IAAcD,sBAAYG,GAAA,EAAS,IAAG,kBAAiB,EAAA,CAAG;AACxE;"}
|
|
@@ -7,6 +7,12 @@ const e = {
|
|
|
7
7
|
mailSent: "Check your email",
|
|
8
8
|
mailSentDesc: "We have sent a password recovery to your email"
|
|
9
9
|
}
|
|
10
|
+
},
|
|
11
|
+
accessDenied: {
|
|
12
|
+
layout: {
|
|
13
|
+
title: "Access Denied",
|
|
14
|
+
subtitle: "You don't have permission to access this page."
|
|
15
|
+
}
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.js","sources":["../../../../../lib/@ecme/locales/lang/en/pages.ts"],"sourcesContent":["export default {\n
|
|
1
|
+
{"version":3,"file":"pages.js","sources":["../../../../../lib/@ecme/locales/lang/en/pages.ts"],"sourcesContent":["export default {\n pages: {\n auth: {\n forgotPassword: {\n title: \"Password Recovery\",\n desc: \"Please enter your email to receive a verification code.\",\n mailSent: \"Check your email\",\n mailSentDesc: \"We have sent a password recovery to your email\",\n },\n },\n accessDenied: {\n layout: {\n title: \"Access Denied\",\n subtitle: \"You don't have permission to access this page.\",\n },\n },\n },\n};\n"],"names":["pages"],"mappings":"AAAA,MAAAA,IAAe;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,gBAAgB;AAAA,QACd,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,cAAc;AAAA,MAAA;AAAA,IAChB;AAAA,IAEF,cAAc;AAAA,MACZ,QAAQ;AAAA,QACN,OAAO;AAAA,QACP,UAAU;AAAA,MAAA;AAAA,IACZ;AAAA,EACF;AAEJ;"}
|
|
@@ -7,6 +7,12 @@ const e = {
|
|
|
7
7
|
mailSent: "Verifique seu email",
|
|
8
8
|
mailSentDesc: "Enviamos uma recuperação de senha para seu email"
|
|
9
9
|
}
|
|
10
|
+
},
|
|
11
|
+
accessDenied: {
|
|
12
|
+
layout: {
|
|
13
|
+
title: "Acesso Negado",
|
|
14
|
+
subtitle: "Você não tem permissão para acessar esta página."
|
|
15
|
+
}
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.js","sources":["../../../../../lib/@ecme/locales/lang/ptBR/pages.ts"],"sourcesContent":["import EnPages from '../en/pages'\n\nexport default {\n pages: {\n auth: {\n forgotPassword: {\n title: 'Recuperar Senha',\n desc: 'Por favor, insira seu email para receber um link de recuperação.',\n mailSent: 'Verifique seu email',\n mailSentDesc:\n 'Enviamos uma recuperação de senha para seu email',\n },\n },\n },\n} as typeof EnPages\n"],"names":["pages"],"mappings":"AAEA,MAAAA,IAAe;AAAA,EACX,OAAO;AAAA,IACH,MAAM;AAAA,MACF,gBAAgB;AAAA,QACZ,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,cACI;AAAA,MAAA;AAAA,IACR;AAAA,
|
|
1
|
+
{"version":3,"file":"pages.js","sources":["../../../../../lib/@ecme/locales/lang/ptBR/pages.ts"],"sourcesContent":["import EnPages from '../en/pages'\n\nexport default {\n pages: {\n auth: {\n forgotPassword: {\n title: 'Recuperar Senha',\n desc: 'Por favor, insira seu email para receber um link de recuperação.',\n mailSent: 'Verifique seu email',\n mailSentDesc:\n 'Enviamos uma recuperação de senha para seu email',\n },\n },\n accessDenied: {\n layout: {\n title: 'Acesso Negado',\n subtitle:\n 'Você não tem permissão para acessar esta página.',\n },\n }\n \n },\n} as typeof EnPages\n"],"names":["pages"],"mappings":"AAEA,MAAAA,IAAe;AAAA,EACX,OAAO;AAAA,IACH,MAAM;AAAA,MACF,gBAAgB;AAAA,QACZ,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,cACI;AAAA,MAAA;AAAA,IACR;AAAA,IAEJ,cAAc;AAAA,MACT,QAAQ;AAAA,QACT,OAAO;AAAA,QACP,UACI;AAAA,MAAA;AAAA,IACR;AAAA,EACA;AAGR;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../../components/shared/Container.js";
|
|
3
|
+
import c from "../../../assets/svg/SpaceSignBoard.js";
|
|
4
|
+
import { useTranslation as i } from "react-i18next";
|
|
5
5
|
const m = () => {
|
|
6
|
-
const { t } =
|
|
7
|
-
return /* @__PURE__ */ e(
|
|
8
|
-
/* @__PURE__ */ e(
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ e("h3", { className: "mb-2", children:
|
|
11
|
-
/* @__PURE__ */ e("p", { className: "text-base", children:
|
|
6
|
+
const { t: s } = i();
|
|
7
|
+
return /* @__PURE__ */ e(a, { className: "h-full", children: /* @__PURE__ */ t("div", { className: "h-full flex flex-col items-center justify-center", children: [
|
|
8
|
+
/* @__PURE__ */ e(c, { height: 280, width: 280 }),
|
|
9
|
+
/* @__PURE__ */ t("div", { className: "mt-10 text-center", children: [
|
|
10
|
+
/* @__PURE__ */ e("h3", { className: "mb-2", children: s("pages.accessDenied.layout.title") }),
|
|
11
|
+
/* @__PURE__ */ e("p", { className: "text-base", children: s("pages.accessDenied.layout.subtitle") })
|
|
12
12
|
] })
|
|
13
13
|
] }) });
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","sources":["../../../../../lib/@ecme/views/others/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Container from \"@/components/shared/Container\";\nimport SpaceSignBoard from \"@/assets/svg/SpaceSignBoard\";\nimport { useTranslation } from \"react-i18next\";\n\nconst AccessDenied = () => {\n const { t } = useTranslation();\n return (\n <Container className=\"h-full\">\n <div className=\"h-full flex flex-col items-center justify-center\">\n <SpaceSignBoard height={280} width={280} />\n <div className=\"mt-10 text-center\">\n <h3 className=\"mb-2\">{t(\"
|
|
1
|
+
{"version":3,"file":"AccessDenied.js","sources":["../../../../../lib/@ecme/views/others/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Container from \"@/components/shared/Container\";\nimport SpaceSignBoard from \"@/assets/svg/SpaceSignBoard\";\nimport { useTranslation } from \"react-i18next\";\n\nconst AccessDenied = () => {\n const { t } = useTranslation();\n return (\n <Container className=\"h-full\">\n <div className=\"h-full flex flex-col items-center justify-center\">\n <SpaceSignBoard height={280} width={280} />\n <div className=\"mt-10 text-center\">\n <h3 className=\"mb-2\">{t(\"pages.accessDenied.layout.title\")}</h3>\n <p className=\"text-base\">{t(\"pages.accessDenied.layout.subtitle\")}</p>\n </div>\n </div>\n </Container>\n );\n};\n\nexport default AccessDenied;\n"],"names":["AccessDenied","t","useTranslation","Container","jsxs","jsx","SpaceSignBoard"],"mappings":";;;;AAIA,MAAMA,IAAe,MAAM;AACzB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AACd,2BACGC,GAAA,EAAU,WAAU,UACnB,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,oDACb,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAe,QAAQ,KAAK,OAAO,KAAK;AAAA,IACzC,gBAAAF,EAAC,OAAA,EAAI,WAAU,qBACb,UAAA;AAAA,MAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,QAAQ,UAAAJ,EAAE,iCAAiC,GAAE;AAAA,wBAC1D,KAAA,EAAE,WAAU,aAAa,UAAAA,EAAE,oCAAoC,EAAA,CAAE;AAAA,IAAA,EAAA,CACpE;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityGuard.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/AuthorityGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIzC,KAAK,mBAAmB,GAAG,iBAAiB,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,QAAA,MAAM,cAAc,GAAI,OAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"AuthorityGuard.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/route/AuthorityGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIzC,KAAK,mBAAmB,GAAG,iBAAiB,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,QAAA,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAUjD,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/en/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/en/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/en/pages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/en/pages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wBAiBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/ptBR/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/ptBR/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/ptBR/pages.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/locales/lang/ptBR/pages.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAA;wBAsB5B,OAAO,OAAO;AApBnB,wBAoBmB"}
|
|
@@ -71,6 +71,32 @@ declare const centralNfe: {
|
|
|
71
71
|
httpMethod: string;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
+
nfe: {
|
|
75
|
+
findMonitor: {
|
|
76
|
+
endpoint: string;
|
|
77
|
+
httpMethod: string;
|
|
78
|
+
};
|
|
79
|
+
findOne: {
|
|
80
|
+
endpoint: string;
|
|
81
|
+
httpMethod: string;
|
|
82
|
+
};
|
|
83
|
+
update: {
|
|
84
|
+
endpoint: string;
|
|
85
|
+
httpMethod: string;
|
|
86
|
+
};
|
|
87
|
+
downloadPdfByChaveAcesso: {
|
|
88
|
+
endpoint: string;
|
|
89
|
+
httpMethod: string;
|
|
90
|
+
};
|
|
91
|
+
downloadBoletoById: {
|
|
92
|
+
endpoint: string;
|
|
93
|
+
httpMethod: string;
|
|
94
|
+
};
|
|
95
|
+
addLancamentoManual: {
|
|
96
|
+
endpoint: string;
|
|
97
|
+
httpMethod: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
74
100
|
};
|
|
75
101
|
export default centralNfe;
|
|
76
102
|
//# sourceMappingURL=centralNfe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMf,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const nfe: {
|
|
2
|
+
findMonitor: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
httpMethod: string;
|
|
5
|
+
};
|
|
6
|
+
findOne: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
httpMethod: string;
|
|
9
|
+
};
|
|
10
|
+
update: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
httpMethod: string;
|
|
13
|
+
};
|
|
14
|
+
downloadPdfByChaveAcesso: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
httpMethod: string;
|
|
17
|
+
};
|
|
18
|
+
downloadBoletoById: {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
httpMethod: string;
|
|
21
|
+
};
|
|
22
|
+
addLancamentoManual: {
|
|
23
|
+
endpoint: string;
|
|
24
|
+
httpMethod: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default nfe;
|
|
28
|
+
//# sourceMappingURL=nfe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAOR,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1041,6 +1041,32 @@ declare const endpointNavigationConfig: {
|
|
|
1041
1041
|
httpMethod: string;
|
|
1042
1042
|
};
|
|
1043
1043
|
};
|
|
1044
|
+
nfe: {
|
|
1045
|
+
findMonitor: {
|
|
1046
|
+
endpoint: string;
|
|
1047
|
+
httpMethod: string;
|
|
1048
|
+
};
|
|
1049
|
+
findOne: {
|
|
1050
|
+
endpoint: string;
|
|
1051
|
+
httpMethod: string;
|
|
1052
|
+
};
|
|
1053
|
+
update: {
|
|
1054
|
+
endpoint: string;
|
|
1055
|
+
httpMethod: string;
|
|
1056
|
+
};
|
|
1057
|
+
downloadPdfByChaveAcesso: {
|
|
1058
|
+
endpoint: string;
|
|
1059
|
+
httpMethod: string;
|
|
1060
|
+
};
|
|
1061
|
+
downloadBoletoById: {
|
|
1062
|
+
endpoint: string;
|
|
1063
|
+
httpMethod: string;
|
|
1064
|
+
};
|
|
1065
|
+
addLancamentoManual: {
|
|
1066
|
+
endpoint: string;
|
|
1067
|
+
httpMethod: string;
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1044
1070
|
};
|
|
1045
1071
|
qualidade: {
|
|
1046
1072
|
inspecaoVeiculo: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submenu.centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,QAAA,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"submenu.centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,QAAA,MAAM,iBAAiB,EAAE,cA6DxB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -2,4 +2,5 @@ export * from './notificacaoCentralNfe/NotificacaoCentralNfeService';
|
|
|
2
2
|
export * from './intervaloPrecoXml/IntervaloPrecoXmlService';
|
|
3
3
|
export * from './vinculoUnidadeMedida/VinculoUnidadeMedidaService';
|
|
4
4
|
export * from './cnpjLiberadoNota/CnpjLiberadoNotaService';
|
|
5
|
+
export * from './nfe/NfeService';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/centralNfe/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAA;AACpE,cAAc,8CAA8C,CAAA;AAC5D,cAAc,oDAAoD,CAAA;AAClE,cAAc,4CAA4C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/centralNfe/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAA;AACpE,cAAc,8CAA8C,CAAA;AAC5D,cAAc,oDAAoD,CAAA;AAClE,cAAc,4CAA4C,CAAA;AAC1D,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function apiFindMonitorNfe(body: any): Promise<any>;
|
|
2
|
+
export declare function apiFindOneNfe(id: number): Promise<any>;
|
|
3
|
+
export declare function apiUpdateNfe(body: any): Promise<any>;
|
|
4
|
+
export declare function downloadPdfByChaveAcesso(chaveAcesso: string): Promise<any>;
|
|
5
|
+
export declare function downloadBoletoById(id: number): Promise<any>;
|
|
6
|
+
export declare function addLancamentoManual(body: any): Promise<any>;
|
|
7
|
+
//# sourceMappingURL=NfeService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,CAAC,IAAI,KAAA,gBAM3C;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAK7C;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,gBAMtC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,gBAKjE;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,gBAKlD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,KAAA,gBAM7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwBrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultOption.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/constOptions/defaultOption.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;CAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/functions/stringUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE;QACP,IAAI,CAAC,EAAE;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,OAAO,CAAC,EAAE,MAAM,CAAC;SACpB,CAAC;KACL,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAqBxE;
|
|
1
|
+
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/functions/stringUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE;QACP,IAAI,CAAC,EAAE;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,OAAO,CAAC,EAAE,MAAM,CAAC;SACpB,CAAC;KACL,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAqBxE;AAsCD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGpD"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import o from "./config/intervaloPrecoXml.js";
|
|
2
2
|
import r from "./config/notificacaoCentralNfe.js";
|
|
3
3
|
import t from "./config/vinculoUnidadeMedida.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import e from "./config/cnpjLiberadoNota.js";
|
|
5
|
+
import i from "./config/nfe.js";
|
|
6
|
+
const p = {
|
|
6
7
|
notificacaoCentralNfe: r,
|
|
7
8
|
intervaloPrecoXml: o,
|
|
8
9
|
vinculoUnidadeMedida: t,
|
|
9
|
-
cnpjLiberadoNota:
|
|
10
|
+
cnpjLiberadoNota: e,
|
|
11
|
+
nfe: i
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
p as default
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=centralNfe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centralNfe.js","sources":["../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"sourcesContent":["import intervaloPrecoXml from \"./config/intervaloPrecoXml\"\nimport notificacaoCentralNfe from \"./config/notificacaoCentralNfe\"\nimport vinculoUnidadeMedida from \"./config/vinculoUnidadeMedida\"\nimport cnpjLiberadoNota from \"./config/cnpjLiberadoNota\"\n\nconst centralNfe = {\n notificacaoCentralNfe,\n intervaloPrecoXml,\n vinculoUnidadeMedida,\n cnpjLiberadoNota\n}\n\nexport default centralNfe"],"names":["centralNfe","notificacaoCentralNfe","intervaloPrecoXml","vinculoUnidadeMedida","cnpjLiberadoNota"],"mappings":"
|
|
1
|
+
{"version":3,"file":"centralNfe.js","sources":["../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"sourcesContent":["import intervaloPrecoXml from \"./config/intervaloPrecoXml\"\nimport notificacaoCentralNfe from \"./config/notificacaoCentralNfe\"\nimport vinculoUnidadeMedida from \"./config/vinculoUnidadeMedida\"\nimport cnpjLiberadoNota from \"./config/cnpjLiberadoNota\"\nimport nfe from \"./config/nfe\"\n\nconst centralNfe = {\n notificacaoCentralNfe,\n intervaloPrecoXml,\n vinculoUnidadeMedida,\n cnpjLiberadoNota,\n nfe\n}\n\nexport default centralNfe"],"names":["centralNfe","notificacaoCentralNfe","intervaloPrecoXml","vinculoUnidadeMedida","cnpjLiberadoNota","nfe"],"mappings":";;;;;AAMA,MAAMA,IAAa;AAAA,EACf,uBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,KAAAC;AACJ;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const t = "/central-nfe/api/nfe", n = {
|
|
2
|
+
findMonitor: { endpoint: `${t}/find-monitor`, httpMethod: "post" },
|
|
3
|
+
findOne: { endpoint: t, httpMethod: "get" },
|
|
4
|
+
update: { endpoint: t, httpMethod: "patch" },
|
|
5
|
+
downloadPdfByChaveAcesso: { endpoint: `${t}/download-pdf`, httpMethod: "get" },
|
|
6
|
+
downloadBoletoById: { endpoint: `${t}/download`, httpMethod: "get" },
|
|
7
|
+
addLancamentoManual: { endpoint: `${t}/add/lancamento-manual`, httpMethod: "patch" }
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nfe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nfe.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"sourcesContent":["const NFE_BASE_URL = '/central-nfe/api/nfe'\n\nconst nfe = {\n findMonitor: { endpoint: `${NFE_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },\n update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },\n downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },\n downloadBoletoById: { endpoint: `${NFE_BASE_URL}/download`, httpMethod: 'get' },\n addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },\n}\n\nexport default nfe"],"names":["NFE_BASE_URL","nfe"],"mappings":"AAAA,MAAMA,IAAe,wBAEfC,IAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAGD,CAAY,iBAAiB,YAAY,OAAA;AAAA,EACrE,SAAS,EAAE,UAAUA,GAAc,YAAY,MAAA;AAAA,EAC/C,QAAQ,EAAE,UAAUA,GAAc,YAAY,QAAA;AAAA,EAC9C,0BAA0B,EAAE,UAAU,GAAGA,CAAY,iBAAiB,YAAY,MAAA;AAAA,EAClF,oBAAoB,EAAE,UAAU,GAAGA,CAAY,aAAa,YAAY,MAAA;AAAA,EACxE,qBAAqB,EAAE,UAAU,GAAGA,CAAY,0BAA0B,YAAY,QAAA;AAC1F;"}
|
package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NAV_ITEM_TYPE_ITEM as
|
|
1
|
+
import { NAV_ITEM_TYPE_ITEM as t, NAV_ITEM_TYPE_COLLAPSE as a } from "../../../../../@ecme/constants/navigation.constant.js";
|
|
2
2
|
import { ADMIN as e } from "../../../../../@ecme/constants/roles.constant.js";
|
|
3
3
|
const o = {
|
|
4
4
|
key: "modules.centralNfe",
|
|
@@ -6,7 +6,7 @@ const o = {
|
|
|
6
6
|
title: "Central NFe",
|
|
7
7
|
translateKey: "nav.modules.centralNfe.title",
|
|
8
8
|
icon: "centralNfe",
|
|
9
|
-
type:
|
|
9
|
+
type: a,
|
|
10
10
|
authority: [e],
|
|
11
11
|
subMenu: [
|
|
12
12
|
{
|
|
@@ -15,7 +15,7 @@ const o = {
|
|
|
15
15
|
title: "CNPJ liberado nota",
|
|
16
16
|
translateKey: "nav.modules.centralNfe.cnpjLiberadoNota",
|
|
17
17
|
icon: "cnpjLiberadoNota",
|
|
18
|
-
type:
|
|
18
|
+
type: t,
|
|
19
19
|
authority: [e],
|
|
20
20
|
subMenu: []
|
|
21
21
|
},
|
|
@@ -25,7 +25,17 @@ const o = {
|
|
|
25
25
|
title: "Intervalo de preço do xml",
|
|
26
26
|
translateKey: "nav.modules.centralNfe.intervaloPrecoXml",
|
|
27
27
|
icon: "intervaloPrecoXml",
|
|
28
|
-
type:
|
|
28
|
+
type: t,
|
|
29
|
+
authority: [e],
|
|
30
|
+
subMenu: []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "modules.centralNfe.nfe",
|
|
34
|
+
path: "/central-nfe/nfe",
|
|
35
|
+
title: "Monitor - Central NFe",
|
|
36
|
+
translateKey: "nav.modules.centralNfe.nfe",
|
|
37
|
+
icon: "nfe",
|
|
38
|
+
type: t,
|
|
29
39
|
authority: [e],
|
|
30
40
|
subMenu: []
|
|
31
41
|
},
|
|
@@ -35,7 +45,7 @@ const o = {
|
|
|
35
45
|
title: "Notificação da central NFe",
|
|
36
46
|
translateKey: "nav.modules.centralNfe.notificacaoCentralNfe",
|
|
37
47
|
icon: "notificacalCentralNfe",
|
|
38
|
-
type:
|
|
48
|
+
type: t,
|
|
39
49
|
authority: [e],
|
|
40
50
|
subMenu: []
|
|
41
51
|
},
|
|
@@ -45,7 +55,7 @@ const o = {
|
|
|
45
55
|
title: "Vínculo de unidade de medida",
|
|
46
56
|
translateKey: "nav.modules.centralNfe.vinculoUnidadeMedida",
|
|
47
57
|
icon: "vinculoUnidadeMedida",
|
|
48
|
-
type:
|
|
58
|
+
type: t,
|
|
49
59
|
authority: [e],
|
|
50
60
|
subMenu: []
|
|
51
61
|
}
|
package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submenu.centralNfe.js","sources":["../../../../../../lib/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.ts"],"sourcesContent":["import { NAV_ITEM_TYPE_COLLAPSE, NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'\nimport { ADMIN } from '@/constants/roles.constant'\nimport { NavigationTree } from '@/@types/navigation'\n\nconst subMenuCentralNfe: NavigationTree =\n{\n key: 'modules.centralNfe',\n path: '',\n title: 'Central NFe',\n translateKey: 'nav.modules.centralNfe.title',\n icon: 'centralNfe',\n type: NAV_ITEM_TYPE_COLLAPSE,\n authority: [ADMIN],\n subMenu: [\n {\n key: 'modules.centralNfe.cnpjLiberadoNota',\n path: '/central-nfe/cnpj-liberado-nota',\n title: 'CNPJ liberado nota',\n translateKey: 'nav.modules.centralNfe.cnpjLiberadoNota',\n icon: 'cnpjLiberadoNota',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.intervaloPrecoXml',\n path: '/central-nfe/intervalo-preco-xml',\n title: 'Intervalo de preço do xml',\n translateKey: 'nav.modules.centralNfe.intervaloPrecoXml',\n icon: 'intervaloPrecoXml',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.notificacaoCentralNfe',\n path: '/central-nfe/notificacao-central-nfe',\n title: 'Notificação da central NFe',\n translateKey: 'nav.modules.centralNfe.notificacaoCentralNfe',\n icon: 'notificacalCentralNfe',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.vinculoUnidadeMedida',\n path: '/central-nfe/vinculo-unidade-medida',\n title: 'Vínculo de unidade de medida',\n translateKey: 'nav.modules.centralNfe.vinculoUnidadeMedida',\n icon: 'vinculoUnidadeMedida',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n ],\n}\n\nexport default subMenuCentralNfe"],"names":["subMenuCentralNfe","NAV_ITEM_TYPE_COLLAPSE","ADMIN","NAV_ITEM_TYPE_ITEM"],"mappings":";;AAIA,MAAMA,IACN;AAAA,EACI,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,MAAM;AAAA,EACN,MAAMC;AAAA,EACN,WAAW,CAACC,CAAK;AAAA,EACjB,SAAS;AAAA,IACL;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,EACd;AAER;"}
|
|
1
|
+
{"version":3,"file":"submenu.centralNfe.js","sources":["../../../../../../lib/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.ts"],"sourcesContent":["import { NAV_ITEM_TYPE_COLLAPSE, NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'\nimport { ADMIN } from '@/constants/roles.constant'\nimport { NavigationTree } from '@/@types/navigation'\n\nconst subMenuCentralNfe: NavigationTree =\n{\n key: 'modules.centralNfe',\n path: '',\n title: 'Central NFe',\n translateKey: 'nav.modules.centralNfe.title',\n icon: 'centralNfe',\n type: NAV_ITEM_TYPE_COLLAPSE,\n authority: [ADMIN],\n subMenu: [\n {\n key: 'modules.centralNfe.cnpjLiberadoNota',\n path: '/central-nfe/cnpj-liberado-nota',\n title: 'CNPJ liberado nota',\n translateKey: 'nav.modules.centralNfe.cnpjLiberadoNota',\n icon: 'cnpjLiberadoNota',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.intervaloPrecoXml',\n path: '/central-nfe/intervalo-preco-xml',\n title: 'Intervalo de preço do xml',\n translateKey: 'nav.modules.centralNfe.intervaloPrecoXml',\n icon: 'intervaloPrecoXml',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.nfe',\n path: '/central-nfe/nfe',\n title: 'Monitor - Central NFe',\n translateKey: 'nav.modules.centralNfe.nfe',\n icon: 'nfe',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.notificacaoCentralNfe',\n path: '/central-nfe/notificacao-central-nfe',\n title: 'Notificação da central NFe',\n translateKey: 'nav.modules.centralNfe.notificacaoCentralNfe',\n icon: 'notificacalCentralNfe',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'modules.centralNfe.vinculoUnidadeMedida',\n path: '/central-nfe/vinculo-unidade-medida',\n title: 'Vínculo de unidade de medida',\n translateKey: 'nav.modules.centralNfe.vinculoUnidadeMedida',\n icon: 'vinculoUnidadeMedida',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n ],\n}\n\nexport default subMenuCentralNfe"],"names":["subMenuCentralNfe","NAV_ITEM_TYPE_COLLAPSE","ADMIN","NAV_ITEM_TYPE_ITEM"],"mappings":";;AAIA,MAAMA,IACN;AAAA,EACI,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,MAAM;AAAA,EACN,MAAMC;AAAA,EACN,WAAW,CAACC,CAAK;AAAA,EACjB,SAAS;AAAA,IACL;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,IAEd;AAAA,MACI,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,MACd,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,WAAW,CAACD,CAAK;AAAA,MACjB,SAAS,CAAA;AAAA,IAAC;AAAA,EACd;AAER;"}
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import { apiCreateNotificacaoCentralNfe as
|
|
2
|
-
import { apiCreateIntervaloPrecoXml as
|
|
3
|
-
import { apiCreateVinculoUnidadeMedida as
|
|
4
|
-
import { apiCreateCnpjLiberadoNota as U, apiFindMonitorCnpjLiberadoNota as
|
|
1
|
+
import { apiCreateNotificacaoCentralNfe as i, apiFindMonitorNotificacaoCentralNfe as o, apiFindOneNotificacaoCentralNfe as n, apiUpdateNotificacaoCentralNfe as d } from "./notificacaoCentralNfe/NotificacaoCentralNfeService.js";
|
|
2
|
+
import { apiCreateIntervaloPrecoXml as r, apiFindMonitorIntervaloPrecoXml as p, apiFindOneIntervaloPrecoXml as l, apiUpdateIntervaloPrecoXml as c } from "./intervaloPrecoXml/IntervaloPrecoXmlService.js";
|
|
3
|
+
import { apiCreateVinculoUnidadeMedida as N, apiFindMonitorVinculoUnidadeMedida as C, apiFindOneVinculoUnidadeMedida as m, apiUpdateVinculoUnidadeMedida as F } from "./vinculoUnidadeMedida/VinculoUnidadeMedidaService.js";
|
|
4
|
+
import { apiCreateCnpjLiberadoNota as U, apiFindMonitorCnpjLiberadoNota as u, apiFindOneCnpjLiberadoNota as v, apiUpdateCnpjLiberadoNota as x } from "./cnpjLiberadoNota/CnpjLiberadoNotaService.js";
|
|
5
|
+
import { addLancamentoManual as L, apiFindMonitorNfe as O, apiFindOneNfe as P, apiUpdateNfe as b, downloadBoletoById as j, downloadPdfByChaveAcesso as V } from "./nfe/NfeService.js";
|
|
5
6
|
export {
|
|
7
|
+
L as addLancamentoManual,
|
|
6
8
|
U as apiCreateCnpjLiberadoNota,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
r as apiCreateIntervaloPrecoXml,
|
|
10
|
+
i as apiCreateNotificacaoCentralNfe,
|
|
11
|
+
N as apiCreateVinculoUnidadeMedida,
|
|
12
|
+
u as apiFindMonitorCnpjLiberadoNota,
|
|
11
13
|
p as apiFindMonitorIntervaloPrecoXml,
|
|
14
|
+
O as apiFindMonitorNfe,
|
|
12
15
|
o as apiFindMonitorNotificacaoCentralNfe,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
C as apiFindMonitorVinculoUnidadeMedida,
|
|
17
|
+
v as apiFindOneCnpjLiberadoNota,
|
|
18
|
+
l as apiFindOneIntervaloPrecoXml,
|
|
19
|
+
P as apiFindOneNfe,
|
|
16
20
|
n as apiFindOneNotificacaoCentralNfe,
|
|
17
21
|
m as apiFindOneVinculoUnidadeMedida,
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
x as apiUpdateCnpjLiberadoNota,
|
|
23
|
+
c as apiUpdateIntervaloPrecoXml,
|
|
24
|
+
b as apiUpdateNfe,
|
|
20
25
|
d as apiUpdateNotificacaoCentralNfe,
|
|
21
|
-
F as apiUpdateVinculoUnidadeMedida
|
|
26
|
+
F as apiUpdateVinculoUnidadeMedida,
|
|
27
|
+
j as downloadBoletoById,
|
|
28
|
+
V as downloadPdfByChaveAcesso
|
|
22
29
|
};
|
|
23
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import o from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import e from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const t = e.centralNfe.nfe;
|
|
4
|
+
async function i(n) {
|
|
5
|
+
return o.fetchDataWithAxios({
|
|
6
|
+
url: t.findMonitor.endpoint,
|
|
7
|
+
method: t.findMonitor.httpMethod,
|
|
8
|
+
data: n
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async function h(n) {
|
|
12
|
+
return o.fetchDataWithAxios({
|
|
13
|
+
url: `${t.findOne.endpoint}/${n}`,
|
|
14
|
+
method: t.findOne.httpMethod
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function r(n) {
|
|
18
|
+
return o.fetchDataWithAxios({
|
|
19
|
+
url: t.update.endpoint,
|
|
20
|
+
method: t.update.httpMethod,
|
|
21
|
+
data: n
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function c(n) {
|
|
25
|
+
return o.fetchDataWithAxios({
|
|
26
|
+
url: `${t.downloadPdfByChaveAcesso.endpoint}/${n}`,
|
|
27
|
+
method: t.downloadPdfByChaveAcesso.httpMethod
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function f(n) {
|
|
31
|
+
return o.fetchDataWithAxios({
|
|
32
|
+
url: `${t.downloadBoletoById.endpoint}/${n}`,
|
|
33
|
+
method: t.downloadBoletoById.httpMethod
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async function p(n) {
|
|
37
|
+
return o.fetchDataWithAxios({
|
|
38
|
+
url: t.addLancamentoManual.endpoint,
|
|
39
|
+
method: t.addLancamentoManual.httpMethod,
|
|
40
|
+
data: n
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
p as addLancamentoManual,
|
|
45
|
+
i as apiFindMonitorNfe,
|
|
46
|
+
h as apiFindOneNfe,
|
|
47
|
+
r as apiUpdateNfe,
|
|
48
|
+
f as downloadBoletoById,
|
|
49
|
+
c as downloadPdfByChaveAcesso
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=NfeService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NfeService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst NFE_ENDPOINT = endpointConfig.centralNfe.nfe;\n\nexport async function apiFindMonitorNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.findMonitor.endpoint,\n method: NFE_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneNfe(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.findOne.endpoint}/${id}`,\n method: NFE_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.update.endpoint,\n method: NFE_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function downloadPdfByChaveAcesso(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadPdfByChaveAcesso.endpoint}/${chaveAcesso}`,\n method: NFE_ENDPOINT.downloadPdfByChaveAcesso.httpMethod\n })\n}\n\nexport async function downloadBoletoById(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadBoletoById.endpoint}/${id}`,\n method: NFE_ENDPOINT.downloadBoletoById.httpMethod\n })\n}\n\nexport async function addLancamentoManual(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.addLancamentoManual.endpoint,\n method: NFE_ENDPOINT.addLancamentoManual.httpMethod,\n data: body\n })\n}"],"names":["NFE_ENDPOINT","endpointConfig","apiFindMonitorNfe","body","ApiService","apiFindOneNfe","id","apiUpdateNfe","downloadPdfByChaveAcesso","chaveAcesso","downloadBoletoById","addLancamentoManual"],"mappings":";;AAGA,MAAMA,IAAeC,EAAe,WAAW;AAE/C,eAAsBC,EAAkBC,GAAM;AAC1C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,YAAY;AAAA,IAC9B,QAAQA,EAAa,YAAY;AAAA,IACjC,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAcC,GAAY;AAC5C,SAAOF,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,QAAQ,QAAQ,IAAIM,CAAE;AAAA,IAC3C,QAAQN,EAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsBO,EAAaJ,GAAM;AACrC,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,OAAO;AAAA,IACzB,QAAQA,EAAa,OAAO;AAAA,IAC5B,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBK,EAAyBC,GAAqB;AAChE,SAAOL,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,yBAAyB,QAAQ,IAAIS,CAAW;AAAA,IACrE,QAAQT,EAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEA,eAAsBU,EAAmBJ,GAAY;AACjD,SAAOF,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,mBAAmB,QAAQ,IAAIM,CAAE;AAAA,IACtD,QAAQN,EAAa,mBAAmB;AAAA,EAAA,CAC3C;AACL;AAEA,eAAsBW,EAAoBR,GAAM;AAC5C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,oBAAoB;AAAA,IACtC,QAAQA,EAAa,oBAAoB;AAAA,IACzC,MAAMG;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
const e = {
|
|
2
|
+
AGUARDANDO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
2
3
|
AGUARDANDO_APROVACAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
4
|
+
AGUARDANDO_BOLETO: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
3
5
|
AGUARDANDO_RECEPCAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
4
6
|
AGUARDANDO_VINCULO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
5
7
|
APROVADA: "bg-green-50 text-green-600 whitespace-nowrap",
|
|
8
|
+
ATENCAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
6
9
|
CANCELADA: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
10
|
+
COMPLETO: "bg-green-50 text-green-600 whitespace-nowrap",
|
|
7
11
|
CONCLUIDA: "bg-green-50 text-green-600 whitespace-nowrap",
|
|
8
12
|
CONCLUIDO: "bg-blue-50 text-blue-600 whitespace-nowrap",
|
|
9
13
|
EM_PROCESSAMENTO: "bg-indigo-50 text-indigo-600 whitespace-nowrap",
|
|
14
|
+
ENTREGUE: "bg-green-50 text-green-600 whitespace-nowrap",
|
|
15
|
+
ERRO: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
16
|
+
ERRO_INTEGRACAO: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
17
|
+
ESTORNADO: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
10
18
|
NOVA: "bg-gray-50 text-gray-600 whitespace-nowrap",
|
|
11
19
|
NOVO: "bg-gray-50 text-gray-600 whitespace-nowrap",
|
|
12
20
|
PARCIALMENTE_UTILIZADO: "bg-orange-50 text-orange-600 whitespace-nowrap",
|
|
21
|
+
PAUSADO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
13
22
|
RECEBIDO: "bg-green-50 text-green-500 whitespace-nowrap",
|
|
14
23
|
REPROVADA: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
15
24
|
VINCULADO: "bg-green-50 text-green-500 whitespace-nowrap"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\"\n};\n"],"names":["statusBadgeClasses"],"mappings":"AAcO,MAAMA,IAA6C;AAAA,EACxD,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,wBAAwB;AAAA,EACxB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AACb;"}
|
|
1
|
+
{"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\"\n};\n"],"names":["statusBadgeClasses"],"mappings":"AAcO,MAAMA,IAA6C;AAAA,EACxD,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,wBAAwB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AACb;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultOption.js","sources":["../../../../lib/base/utils/constOptions/defaultOption.ts"],"sourcesContent":["export const defaultOption = { label: \"\", value: null };"],"names":["defaultOption"],"mappings":"AAAO,MAAMA,IAAgB,EAAE,OAAO,IAAI,OAAO,KAAA;"}
|
|
@@ -1,43 +1,52 @@
|
|
|
1
|
-
function
|
|
2
|
-
var
|
|
1
|
+
function i(t) {
|
|
2
|
+
var o, d, A, n, m, O;
|
|
3
3
|
const a = (s) => typeof s == "string" && s.trim() ? s.trim() : "";
|
|
4
4
|
if (typeof t == "string") return a(t) || "Erro Inesperado";
|
|
5
5
|
const u = [
|
|
6
|
-
(
|
|
7
|
-
(
|
|
8
|
-
typeof (t == null ? void 0 : t.mensagem) == "object" ? (
|
|
6
|
+
(d = (o = t == null ? void 0 : t.response) == null ? void 0 : o.data) == null ? void 0 : d.detail,
|
|
7
|
+
(n = (A = t == null ? void 0 : t.response) == null ? void 0 : A.data) == null ? void 0 : n.message,
|
|
8
|
+
typeof (t == null ? void 0 : t.mensagem) == "object" ? (m = t.mensagem) == null ? void 0 : m.detail : t == null ? void 0 : t.mensagem,
|
|
9
9
|
t == null ? void 0 : t.message,
|
|
10
10
|
t == null ? void 0 : t.error,
|
|
11
|
-
typeof (t == null ? void 0 : t.data) == "string" ? t.data : (
|
|
11
|
+
typeof (t == null ? void 0 : t.data) == "string" ? t.data : (O = t == null ? void 0 : t.data) == null ? void 0 : O.message
|
|
12
12
|
];
|
|
13
13
|
for (const s of u) {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
14
|
+
const E = a(s);
|
|
15
|
+
if (E) return E;
|
|
16
16
|
}
|
|
17
17
|
return "Erro Inesperado";
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const F = [
|
|
20
|
+
{ status: "AGUARDANDO", statusFormatado: "Aguardando" },
|
|
20
21
|
{ status: "AGUARDANDO_APROVACAO", statusFormatado: "Aguardando aprovação" },
|
|
22
|
+
{ status: "AGUARDANDO_BOLETO", statusFormatado: "Aguardando boleto" },
|
|
21
23
|
{ status: "AGUARDANDO_RECEPCAO", statusFormatado: "Aguardando recepção" },
|
|
22
24
|
{ status: "AGUARDANDO_VINCULO", statusFormatado: "Aguardando vínculo" },
|
|
23
25
|
{ status: "APROVADA", statusFormatado: "Aprovada" },
|
|
26
|
+
{ status: "ATENCAO", statusFormatado: "Atenção" },
|
|
24
27
|
{ status: "CANCELADA", statusFormatado: "Cancelada" },
|
|
28
|
+
{ status: "COMPLETO", statusFormatado: "Completo" },
|
|
25
29
|
{ status: "CONCLUIDA", statusFormatado: "Concluída" },
|
|
26
30
|
{ status: "CONCLUIDO", statusFormatado: "Concluído" },
|
|
27
31
|
{ status: "EM_PROCESSAMENTO", statusFormatado: "Em processamento" },
|
|
32
|
+
{ status: "ENTREGUE", statusFormatado: "Entregue" },
|
|
33
|
+
{ status: "ERRO", statusFormatado: "Erro" },
|
|
34
|
+
{ status: "ERRO_INTEGRACAO", statusFormatado: "Erro de integração" },
|
|
35
|
+
{ status: "ESTORNADO", statusFormatado: "Estornado" },
|
|
28
36
|
{ status: "NOVA", statusFormatado: "Nova" },
|
|
29
37
|
{ status: "NOVO", statusFormatado: "Novo" },
|
|
30
38
|
{ status: "PARCIALMENTE_UTILIZADO", statusFormatado: "Parcialmente utilizado" },
|
|
39
|
+
{ status: "PAUSADO", statusFormatado: "Pausado" },
|
|
31
40
|
{ status: "RECEBIDO", statusFormatado: "Recebido" },
|
|
32
41
|
{ status: "REPROVADA", statusFormatado: "Reprovada" },
|
|
33
42
|
{ status: "VINCULADO", statusFormatado: "Vinculado" }
|
|
34
43
|
];
|
|
35
|
-
function
|
|
36
|
-
const a =
|
|
44
|
+
function R(t) {
|
|
45
|
+
const a = F.find((u) => u.status === t);
|
|
37
46
|
return a ? a.statusFormatado : t;
|
|
38
47
|
}
|
|
39
48
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
i as extrairMensagemErro,
|
|
50
|
+
R as formataStatus
|
|
42
51
|
};
|
|
43
52
|
//# sourceMappingURL=stringUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.js","sources":["../../../../lib/base/utils/functions/stringUtils.ts"],"sourcesContent":["/**\n * Representa uma estrutura genérica de erro que pode ser retornada por APIs ou capturada em blocos try/catch.\n */\ntype ErroGenerico = {\n response?: {\n data?: {\n detail?: string;\n message?: string;\n };\n };\n mensagem?: string | { detail?: string };\n message?: string;\n error?: string;\n data?: {\n message?: string;\n } | string;\n};\n\n/**\n * Extrai uma mensagem de erro legível a partir de um objeto de erro genérico.\n * \n * A função tenta encontrar uma mensagem de erro válida a partir de múltiplas\n * estruturas comuns, como:\n * - `response.data.detail`\n * - `mensagem` (string ou objeto com `detail`)\n * - `message`\n * - `error`\n * - `data` (string ou objeto com `message`)\n * \n * Se nenhuma mensagem válida for encontrada, retorna \"Erro Inesperado\".\n *\n * @param {ErroGenerico | string} error - Objeto de erro genérico ou uma string diretamente.\n * @returns {string} Uma mensagem de erro sanitizada e legível.\n *\n * @example\n * extrairMensagemErro(\"Erro direto\"); // \"Erro direto\"\n * @example\n * extrairMensagemErro({ message: \"Falha na operação\" }); // \"Falha na operação\"\n * @example\n * extrairMensagemErro({ response: { data: { detail: \"Recurso não encontrado\" } } }); // \"Recurso não encontrado\"\n * @example\n * extrairMensagemErro({ data: \"Erro simples\" }); // \"Erro simples\"\n * @example\n * extrairMensagemErro({}); // \"Erro Inesperado\"\n */\nexport function extrairMensagemErro(error: ErroGenerico | string): string {\n const textoValido = (texto?: unknown): string =>\n typeof texto === \"string\" && texto.trim() ? texto.trim() : \"\";\n\n if (typeof error === \"string\") return textoValido(error) || \"Erro Inesperado\";\n\n const fontesDeMensagem = [\n error?.response?.data?.detail,\n error?.response?.data?.message,\n typeof error?.mensagem === \"object\" ? error.mensagem?.detail : error?.mensagem,\n error?.message,\n error?.error,\n typeof error?.data === \"string\" ? error.data : error?.data?.message,\n ];\n\n for (const fonte of fontesDeMensagem) {\n const msg = textoValido(fonte);\n if (msg) return msg;\n }\n\n return \"Erro Inesperado\";\n}\n\n/**\n * Dicionário com status e suas respectivas versões formatadas.\n */\ntype DicionarioStatus = {\n /** Status original em formato técnico (ex: 'AGUARDANDO_APROVACAO') */\n status: string\n /** Status formatado para exibição (ex: 'Aguardando aprovação') */\n statusFormatado: string\n};\n\nconst statusList: DicionarioStatus[] = [\n { status: 'AGUARDANDO_APROVACAO', statusFormatado: 'Aguardando aprovação' },\n { status: 'AGUARDANDO_RECEPCAO', statusFormatado: 'Aguardando recepção' },\n { status: 'AGUARDANDO_VINCULO', statusFormatado: 'Aguardando vínculo' },\n { status: 'APROVADA', statusFormatado: 'Aprovada' },\n { status: 'CANCELADA', statusFormatado: 'Cancelada' },\n { status: 'CONCLUIDA', statusFormatado: 'Concluída' },\n { status: 'CONCLUIDO', statusFormatado: 'Concluído' },\n { status: 'EM_PROCESSAMENTO', statusFormatado: 'Em processamento' },\n { status: 'NOVA', statusFormatado: 'Nova' },\n { status: 'NOVO', statusFormatado: 'Novo' },\n { status: 'PARCIALMENTE_UTILIZADO', statusFormatado: 'Parcialmente utilizado' },\n { status: 'RECEBIDO', statusFormatado: 'Recebido' },\n { status: 'REPROVADA', statusFormatado: 'Reprovada' },\n { status: 'VINCULADO', statusFormatado: 'Vinculado' }\n];\n\n/**\n * Retorna o status formatado com base em um valor técnico.\n *\n * @param {string} status - O status técnico (ex: 'AGUARDANDO_APROVACAO').\n * @returns {string} O status formatado para exibição (ex: 'Aguardando aprovação').\n * Se não encontrado, retorna o status original.\n */\nexport function formataStatus(status: string): string {\n const item = statusList.find(s => s.status === status)\n return item ? item.statusFormatado : status\n}"],"names":["extrairMensagemErro","error","_a","_b","_c","_d","_e","_f","textoValido","texto","fontesDeMensagem","fonte","msg","statusList","formataStatus","status","item","s"],"mappings":"AA6CO,SAASA,EAAoBC,GAAsC;AAAnE,MAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;AACH,QAAMC,IAAc,CAACC,MACjB,OAAOA,KAAU,YAAYA,EAAM,KAAA,IAASA,EAAM,KAAA,IAAS;AAE/D,MAAI,OAAOR,KAAU,SAAU,QAAOO,EAAYP,CAAK,KAAK;AAE5D,QAAMS,IAAmB;AAAA,KACrBP,KAAAD,IAAAD,KAAA,gBAAAA,EAAO,aAAP,gBAAAC,EAAiB,SAAjB,gBAAAC,EAAuB;AAAA,KACvBE,KAAAD,IAAAH,KAAA,gBAAAA,EAAO,aAAP,gBAAAG,EAAiB,SAAjB,gBAAAC,EAAuB;AAAA,IACvB,QAAOJ,KAAA,gBAAAA,EAAO,aAAa,YAAWK,IAAAL,EAAM,aAAN,gBAAAK,EAAgB,SAASL,KAAA,gBAAAA,EAAO;AAAA,IACtEA,KAAA,gBAAAA,EAAO;AAAA,IACPA,KAAA,gBAAAA,EAAO;AAAA,IACP,QAAOA,KAAA,gBAAAA,EAAO,SAAS,WAAWA,EAAM,QAAOM,IAAAN,KAAA,gBAAAA,EAAO,SAAP,gBAAAM,EAAa;AAAA,EAAA;AAGhE,aAAWI,KAASD,GAAkB;AAClC,UAAME,IAAMJ,EAAYG,CAAK;AAC7B,QAAIC,EAAK,QAAOA;AAAA,EACpB;AAEA,SAAO;AACX;AAYA,MAAMC,IAAiC;AAAA,EACnC,EAAE,QAAQ,wBAAwB,iBAAiB,uBAAA;AAAA,EACnD,EAAE,QAAQ,uBAAuB,iBAAiB,sBAAA;AAAA,EAClD,EAAE,QAAQ,sBAAsB,iBAAiB,qBAAA;AAAA,EACjD,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,oBAAoB,iBAAiB,mBAAA;AAAA,EAC/C,EAAE,QAAQ,QAAQ,iBAAiB,OAAA;AAAA,EACnC,EAAE,QAAQ,QAAQ,iBAAiB,OAAA;AAAA,EACnC,EAAE,QAAQ,0BAA0B,iBAAiB,yBAAA;AAAA,EACrD,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAC5C;AASO,SAASC,EAAcC,GAAwB;AAClD,QAAMC,IAAOH,EAAW,KAAK,CAAAI,MAAKA,EAAE,WAAWF,CAAM;AACrD,SAAOC,IAAOA,EAAK,kBAAkBD;AACzC;"}
|
|
1
|
+
{"version":3,"file":"stringUtils.js","sources":["../../../../lib/base/utils/functions/stringUtils.ts"],"sourcesContent":["/**\n * Representa uma estrutura genérica de erro que pode ser retornada por APIs ou capturada em blocos try/catch.\n */\ntype ErroGenerico = {\n response?: {\n data?: {\n detail?: string;\n message?: string;\n };\n };\n mensagem?: string | { detail?: string };\n message?: string;\n error?: string;\n data?: {\n message?: string;\n } | string;\n};\n\n/**\n * Extrai uma mensagem de erro legível a partir de um objeto de erro genérico.\n * \n * A função tenta encontrar uma mensagem de erro válida a partir de múltiplas\n * estruturas comuns, como:\n * - `response.data.detail`\n * - `mensagem` (string ou objeto com `detail`)\n * - `message`\n * - `error`\n * - `data` (string ou objeto com `message`)\n * \n * Se nenhuma mensagem válida for encontrada, retorna \"Erro Inesperado\".\n *\n * @param {ErroGenerico | string} error - Objeto de erro genérico ou uma string diretamente.\n * @returns {string} Uma mensagem de erro sanitizada e legível.\n *\n * @example\n * extrairMensagemErro(\"Erro direto\"); // \"Erro direto\"\n * @example\n * extrairMensagemErro({ message: \"Falha na operação\" }); // \"Falha na operação\"\n * @example\n * extrairMensagemErro({ response: { data: { detail: \"Recurso não encontrado\" } } }); // \"Recurso não encontrado\"\n * @example\n * extrairMensagemErro({ data: \"Erro simples\" }); // \"Erro simples\"\n * @example\n * extrairMensagemErro({}); // \"Erro Inesperado\"\n */\nexport function extrairMensagemErro(error: ErroGenerico | string): string {\n const textoValido = (texto?: unknown): string =>\n typeof texto === \"string\" && texto.trim() ? texto.trim() : \"\";\n\n if (typeof error === \"string\") return textoValido(error) || \"Erro Inesperado\";\n\n const fontesDeMensagem = [\n error?.response?.data?.detail,\n error?.response?.data?.message,\n typeof error?.mensagem === \"object\" ? error.mensagem?.detail : error?.mensagem,\n error?.message,\n error?.error,\n typeof error?.data === \"string\" ? error.data : error?.data?.message,\n ];\n\n for (const fonte of fontesDeMensagem) {\n const msg = textoValido(fonte);\n if (msg) return msg;\n }\n\n return \"Erro Inesperado\";\n}\n\n/**\n * Dicionário com status e suas respectivas versões formatadas.\n */\ntype DicionarioStatus = {\n /** Status original em formato técnico (ex: 'AGUARDANDO_APROVACAO') */\n status: string\n /** Status formatado para exibição (ex: 'Aguardando aprovação') */\n statusFormatado: string\n};\n\nconst statusList: DicionarioStatus[] = [\n { status: 'AGUARDANDO', statusFormatado: 'Aguardando' },\n { status: 'AGUARDANDO_APROVACAO', statusFormatado: 'Aguardando aprovação' },\n { status: 'AGUARDANDO_BOLETO', statusFormatado: 'Aguardando boleto' },\n { status: 'AGUARDANDO_RECEPCAO', statusFormatado: 'Aguardando recepção' },\n { status: 'AGUARDANDO_VINCULO', statusFormatado: 'Aguardando vínculo' },\n { status: 'APROVADA', statusFormatado: 'Aprovada' },\n { status: 'ATENCAO', statusFormatado: 'Atenção' },\n { status: 'CANCELADA', statusFormatado: 'Cancelada' },\n { status: 'COMPLETO', statusFormatado: 'Completo' },\n { status: 'CONCLUIDA', statusFormatado: 'Concluída' },\n { status: 'CONCLUIDO', statusFormatado: 'Concluído' },\n { status: 'EM_PROCESSAMENTO', statusFormatado: 'Em processamento' },\n { status: 'ENTREGUE', statusFormatado: 'Entregue' },\n { status: 'ERRO', statusFormatado: 'Erro' },\n { status: 'ERRO_INTEGRACAO', statusFormatado: 'Erro de integração' },\n { status: 'ESTORNADO', statusFormatado: 'Estornado' },\n { status: 'NOVA', statusFormatado: 'Nova' },\n { status: 'NOVO', statusFormatado: 'Novo' },\n { status: 'PARCIALMENTE_UTILIZADO', statusFormatado: 'Parcialmente utilizado' },\n { status: 'PAUSADO', statusFormatado: 'Pausado' },\n { status: 'RECEBIDO', statusFormatado: 'Recebido' },\n { status: 'REPROVADA', statusFormatado: 'Reprovada' },\n { status: 'VINCULADO', statusFormatado: 'Vinculado' }\n];\n\n/**\n * Retorna o status formatado com base em um valor técnico.\n *\n * @param {string} status - O status técnico (ex: 'AGUARDANDO_APROVACAO').\n * @returns {string} O status formatado para exibição (ex: 'Aguardando aprovação').\n * Se não encontrado, retorna o status original.\n */\nexport function formataStatus(status: string): string {\n const item = statusList.find(s => s.status === status)\n return item ? item.statusFormatado : status\n}"],"names":["extrairMensagemErro","error","_a","_b","_c","_d","_e","_f","textoValido","texto","fontesDeMensagem","fonte","msg","statusList","formataStatus","status","item","s"],"mappings":"AA6CO,SAASA,EAAoBC,GAAsC;AAAnE,MAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;AACH,QAAMC,IAAc,CAACC,MACjB,OAAOA,KAAU,YAAYA,EAAM,KAAA,IAASA,EAAM,KAAA,IAAS;AAE/D,MAAI,OAAOR,KAAU,SAAU,QAAOO,EAAYP,CAAK,KAAK;AAE5D,QAAMS,IAAmB;AAAA,KACrBP,KAAAD,IAAAD,KAAA,gBAAAA,EAAO,aAAP,gBAAAC,EAAiB,SAAjB,gBAAAC,EAAuB;AAAA,KACvBE,KAAAD,IAAAH,KAAA,gBAAAA,EAAO,aAAP,gBAAAG,EAAiB,SAAjB,gBAAAC,EAAuB;AAAA,IACvB,QAAOJ,KAAA,gBAAAA,EAAO,aAAa,YAAWK,IAAAL,EAAM,aAAN,gBAAAK,EAAgB,SAASL,KAAA,gBAAAA,EAAO;AAAA,IACtEA,KAAA,gBAAAA,EAAO;AAAA,IACPA,KAAA,gBAAAA,EAAO;AAAA,IACP,QAAOA,KAAA,gBAAAA,EAAO,SAAS,WAAWA,EAAM,QAAOM,IAAAN,KAAA,gBAAAA,EAAO,SAAP,gBAAAM,EAAa;AAAA,EAAA;AAGhE,aAAWI,KAASD,GAAkB;AAClC,UAAME,IAAMJ,EAAYG,CAAK;AAC7B,QAAIC,EAAK,QAAOA;AAAA,EACpB;AAEA,SAAO;AACX;AAYA,MAAMC,IAAiC;AAAA,EACnC,EAAE,QAAQ,cAAc,iBAAiB,aAAA;AAAA,EACzC,EAAE,QAAQ,wBAAwB,iBAAiB,uBAAA;AAAA,EACnD,EAAE,QAAQ,qBAAqB,iBAAiB,oBAAA;AAAA,EAChD,EAAE,QAAQ,uBAAuB,iBAAiB,sBAAA;AAAA,EAClD,EAAE,QAAQ,sBAAsB,iBAAiB,qBAAA;AAAA,EACjD,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,WAAW,iBAAiB,UAAA;AAAA,EACtC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,oBAAoB,iBAAiB,mBAAA;AAAA,EAC/C,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,QAAQ,iBAAiB,OAAA;AAAA,EACnC,EAAE,QAAQ,mBAAmB,iBAAiB,qBAAA;AAAA,EAC9C,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,QAAQ,iBAAiB,OAAA;AAAA,EACnC,EAAE,QAAQ,QAAQ,iBAAiB,OAAA;AAAA,EACnC,EAAE,QAAQ,0BAA0B,iBAAiB,yBAAA;AAAA,EACrD,EAAE,QAAQ,WAAW,iBAAiB,UAAA;AAAA,EACtC,EAAE,QAAQ,YAAY,iBAAiB,WAAA;AAAA,EACvC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAAA,EACxC,EAAE,QAAQ,aAAa,iBAAiB,YAAA;AAC5C;AASO,SAASC,EAAcC,GAAwB;AAClD,QAAMC,IAAOH,EAAW,KAAK,CAAAI,MAAKA,EAAE,WAAWF,CAAM;AACrD,SAAOC,IAAOA,EAAK,kBAAkBD;AACzC;"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/index.ts"],"sourcesContent":["import layout from \"./layout\";\nimport params from \"./params\";\n\nexport default {\n page: { ...params, ...layout },\n};\n"],"names":["en","params","layout"],"mappings":";;AAGA,MAAAA,IAAe;AAAA,EACb,MAAM,EAAE,GAAGC,GAAQ,GAAGC,EAAA;AACxB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/layout.ts"],"sourcesContent":["export default {\n layout: {\n title: \"Access Denied\",\n subtitle: \"You have no permission to visit this page\",\n },\n};\n"],"names":["layout"],"mappings":"AAAA,MAAAA,IAAe;AAAA,EACb,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,EAAA;AAEd;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/params.ts"],"sourcesContent":["export default {};\n"],"names":["params"],"mappings":"AAAA,MAAAA,IAAe,CAAA;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../../../locales/index.js";
|
|
2
|
-
import e from "./en/index.js";
|
|
3
|
-
import r from "./ptBR/index.js";
|
|
4
|
-
import o from "i18next";
|
|
5
|
-
function t() {
|
|
6
|
-
o.addResourceBundle("en", "translation", e), o.addResourceBundle("ptBR", "translation", r);
|
|
7
|
-
}
|
|
8
|
-
t();
|
|
9
|
-
export {
|
|
10
|
-
t as addPageLocaleResources
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../lib/@ecme/views/others/AccessDenied/lang/index.ts"],"sourcesContent":["import i18n from '@/locales'\nimport en from './en'\nimport ptBR from './ptBR'\n\nexport function addPageLocaleResources() {\n i18n.addResourceBundle('en', 'translation', en)\n i18n.addResourceBundle('ptBR', 'translation', ptBR)\n}\n\naddPageLocaleResources()\n"],"names":["addPageLocaleResources","i18n","en","ptBR"],"mappings":";;;;AAIO,SAASA,IAAyB;AACrC,EAAAC,EAAK,kBAAkB,MAAM,eAAeC,CAAE,GAC9CD,EAAK,kBAAkB,QAAQ,eAAeE,CAAI;AACtD;AAEAH,EAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/index.ts"],"sourcesContent":["import EnBase from \"../en\";\nimport layout from \"./layout\";\nimport params from \"./params\";\n\nexport default {\n page: { ...params, ...layout },\n} as typeof EnBase;\n"],"names":["ptBR","params","layout"],"mappings":";;AAIA,MAAAA,IAAe;AAAA,EACb,MAAM,EAAE,GAAGC,GAAQ,GAAGC,EAAA;AACxB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/layout.ts"],"sourcesContent":["import EnLayout from \"../en/layout\";\n\nexport default {\n layout: {\n title: \"Acesso Negado\",\n subtitle: \"Você não tem permissão para acessar essa página.\",\n },\n} as typeof EnLayout;\n"],"names":["layout"],"mappings":"AAEA,MAAAA,IAAe;AAAA,EACb,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,EAAA;AAEd;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.js","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/params.ts"],"sourcesContent":["import EnParams from '../en/params'\n\nexport default {} as typeof EnParams\n"],"names":["params"],"mappings":"AAEA,MAAAA,IAAe,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/index.ts"],"names":[],"mappings":";;;;;;;;AAGA,wBAEE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/layout.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/en/params.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../lib/@ecme/views/others/AccessDenied/lang/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,SAGrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,OAAO,CAAC;wBAMtB,OAAO,MAAM;AAFlB,wBAEmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/layout.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,cAAc,CAAC;wBAO/B,OAAO,QAAQ;AALpB,wBAKqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/@ecme/views/others/AccessDenied/lang/ptBR/params.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,cAAc,CAAA;wBAEd,OAAO,QAAQ;AAApC,wBAAoC"}
|