@navservice/core 1.61.0 → 1.63.0

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.
@@ -1,2 +1,3 @@
1
1
  export { default as config_env_core } from "./config_env";
2
2
  export { default as TypesCore } from "./types";
3
+ export { default as utils } from "./utils";
@@ -6,57 +6,16 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
6
6
  new URL('main.js', document.baseURI).href;
7
7
  })();
8
8
  ;
9
- // The require scope
10
- var __webpack_require__ = {};
11
-
12
- // webpack/runtime/compat_get_default_export
13
- (() => {
14
- // getDefaultExport function for compatibility with non-ESM modules
15
- __webpack_require__.n = (module) => {
16
- var getter = module && module.__esModule ?
17
- () => (module['default']) :
18
- () => (module);
19
- __webpack_require__.d(getter, { a: getter });
20
- return getter;
21
- };
22
-
23
- })();
24
- // webpack/runtime/define_property_getters
25
- (() => {
26
- __webpack_require__.d = (exports, definition) => {
27
- for(var key in definition) {
28
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
29
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
30
- }
31
- }
32
- };
33
- })();
34
- // webpack/runtime/has_own_property
35
- (() => {
36
- __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
37
- })();
38
- // webpack/runtime/make_namespace_object
39
- (() => {
40
- // define __esModule on exports
41
- __webpack_require__.r = (exports) => {
42
- if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
43
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
44
- }
45
- Object.defineProperty(exports, '__esModule', { value: true });
46
- };
47
- })();
48
- var __webpack_exports__ = {};
49
- // ESM COMPAT FLAG
50
- __webpack_require__.r(__webpack_exports__);
9
+ var __webpack_modules__ = ({
10
+ "./src/index.browser.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
51
11
 
52
12
  // EXPORTS
53
13
  __webpack_require__.d(__webpack_exports__, {
54
- "default": () => (/* binding */ src_utils)
14
+ config_env_core: () => (/* reexport */ src_config_env)
55
15
  });
56
16
 
57
- ;// CONCATENATED MODULE: external "axios"
58
- const external_axios_namespaceObject = require("axios");
59
- var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_namespaceObject);
17
+ // UNUSED EXPORTS: TypesCore, utils
18
+
60
19
  ;// CONCATENATED MODULE: ./src/config_env/index.ts
61
20
  class config_env {
62
21
  static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
@@ -69,6 +28,152 @@ class config_env {
69
28
  }
70
29
  /* export default */ const src_config_env = (config_env);
71
30
 
31
+ ;// CONCATENATED MODULE: external "zod/v4"
32
+ const v4_namespaceObject = require("zod/v4");
33
+ var v4_default = /*#__PURE__*/__webpack_require__.n(v4_namespaceObject);
34
+ ;// CONCATENATED MODULE: ./src/types/_usuario.ts
35
+
36
+ (function(TypeControllerUsuario) {
37
+ TypeControllerUsuario.AppEnum = [
38
+ "service-usuario",
39
+ "service-financeiro",
40
+ "service-pages-ai"
41
+ ];
42
+ TypeControllerUsuario.UsuarioTipoEnum = [
43
+ "padrao"
44
+ ];
45
+ const AppEnumZod = v4_default()["enum"]([
46
+ "service-usuario",
47
+ "service-financeiro",
48
+ "service-pages-ai"
49
+ ]);
50
+ const UsuarioTipoEnumZod = v4_default()["enum"](TypeControllerUsuario.UsuarioTipoEnum);
51
+ })(_usuario_TypeControllerUsuario || (_usuario_TypeControllerUsuario = {}));
52
+ /* export default */ const _usuario = (_usuario_TypeControllerUsuario);
53
+ var _usuario_TypeControllerUsuario;
54
+
55
+ ;// CONCATENATED MODULE: ./src/types/_type_response.ts
56
+
57
+ (function(TypeControllerResponse) {
58
+ const StatusSchema = v4_default().union([
59
+ v4_default().literal(200),
60
+ v4_default().literal(201),
61
+ v4_default().literal(202),
62
+ v4_default().literal(204),
63
+ v4_default().literal(400),
64
+ v4_default().literal(401),
65
+ v4_default().literal(403),
66
+ v4_default().literal(404),
67
+ v4_default().literal(409),
68
+ v4_default().literal(422),
69
+ v4_default().literal(500),
70
+ v4_default().literal(428),
71
+ v4_default().literal(405)
72
+ ]);
73
+ const TypeSchema = v4_default().union([
74
+ v4_default().literal("success"),
75
+ v4_default().literal("warning"),
76
+ v4_default().literal("error")
77
+ ]).default("success");
78
+ const CodeSchema = v4_default().union([
79
+ v4_default().literal("SUCCESS"),
80
+ v4_default().literal("ACTION_REQUIRED"),
81
+ v4_default().literal("CREATED"),
82
+ v4_default().literal("WARNING"),
83
+ v4_default().literal("AUTHORIZATION_ERROR"),
84
+ v4_default().literal("SCHEMA_VALIDATION"),
85
+ v4_default().literal("SERVER_ERROR"),
86
+ v4_default().literal("UNAUTHORIZED"),
87
+ v4_default().literal("INVALID_TOKEN"),
88
+ v4_default().literal("NOT_FOUND"),
89
+ v4_default().literal("SUCCESS_FILE"),
90
+ v4_default().literal("DATABASE_ERROR")
91
+ ]);
92
+ const BaseResponseSchema = v4_default().object({
93
+ status: StatusSchema,
94
+ code: CodeSchema,
95
+ type: TypeSchema,
96
+ message: v4_default().string(),
97
+ results: v4_default().unknown().optional(),
98
+ error: v4_default().unknown().optional()
99
+ });
100
+ (function(C) {
101
+ C.InputSchema = v4_default().object({
102
+ status: StatusSchema,
103
+ code: CodeSchema,
104
+ type: TypeSchema.optional().default("success"),
105
+ message: v4_default().string().optional(),
106
+ results: v4_default().any(),
107
+ c: v4_default().custom()
108
+ });
109
+ const FileResponseParamsSchema = v4_default().object({
110
+ status: StatusSchema,
111
+ message: v4_default().string().optional(),
112
+ file_buffer: v4_default().union([
113
+ v4_default()["instanceof"](Blob),
114
+ v4_default()["instanceof"](ArrayBuffer),
115
+ v4_default()["instanceof"](Uint8Array)
116
+ ]),
117
+ content_type: v4_default().string(),
118
+ filename: v4_default().string().optional(),
119
+ c: v4_default().custom().optional()
120
+ });
121
+ })(TypeControllerResponse.C || (TypeControllerResponse.C = {}));
122
+ (function(Error) {
123
+ Error.InputSchema = v4_default().object({
124
+ message: v4_default().string().optional(),
125
+ results: v4_default().union([
126
+ v4_default().array(v4_default().unknown()),
127
+ v4_default().unknown()
128
+ ]).optional(),
129
+ type: TypeSchema.optional().default("success"),
130
+ code: CodeSchema,
131
+ status: v4_default().number().optional().default(200)
132
+ });
133
+ })(TypeControllerResponse.Error || (TypeControllerResponse.Error = {}));
134
+ })(_type_response_TypeControllerResponse || (_type_response_TypeControllerResponse = {}));
135
+ /* export default */ const _type_response = (_type_response_TypeControllerResponse);
136
+ var _type_response_TypeControllerResponse;
137
+
138
+ ;// CONCATENATED MODULE: ./src/types/index.ts
139
+ // ENTIDADES TIPADAS
140
+
141
+ //GERAL
142
+
143
+ (function(t) {
144
+ (function(Controller) {
145
+ Controller.Usuario = _usuario;
146
+ })(t.Controller || (t.Controller = {}));
147
+ (function(Geral) {
148
+ Geral.Response = _type_response;
149
+ })(t.Geral || (t.Geral = {}));
150
+ })(types_t || (types_t = {}));
151
+ /* export default */ const types = ((/* unused pure expression or super */ null && (types_t)));
152
+ var types_t;
153
+
154
+ // EXTERNAL MODULE: ./src/utils/index.ts + 11 modules
155
+ var utils = __webpack_require__("./src/utils/index.ts");
156
+ ;// CONCATENATED MODULE: ./src/index.browser.ts
157
+
158
+
159
+
160
+
161
+
162
+ },
163
+ "./src/utils/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
164
+ // ESM COMPAT FLAG
165
+ __webpack_require__.r(__webpack_exports__);
166
+
167
+ // EXPORTS
168
+ __webpack_require__.d(__webpack_exports__, {
169
+ "default": () => (/* binding */ src_utils)
170
+ });
171
+
172
+ ;// CONCATENATED MODULE: external "axios"
173
+ const external_axios_namespaceObject = require("axios");
174
+ var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_namespaceObject);
175
+ // EXTERNAL MODULE: ./src/index.browser.ts + 5 modules
176
+ var index_browser = __webpack_require__("./src/index.browser.ts");
72
177
  ;// CONCATENATED MODULE: ./src/utils/_session_storage.ts
73
178
  const _session_storage = class _session_storage {
74
179
  static adicionar_item_session_storage({ chave, novoItem }) {
@@ -120,7 +225,7 @@ const _api_api = class _api {
120
225
  static servidor_pricipal = class servidor_pricipal {
121
226
  static get #axios() {
122
227
  return external_axios_default().create({
123
- baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
228
+ baseURL: index_browser.config_env_core.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
124
229
  });
125
230
  }
126
231
  static async post({ url, data, setToken = true }) {
@@ -696,6 +801,73 @@ const utils = {
696
801
  };
697
802
  /* export default */ const src_utils = (utils);
698
803
 
804
+
805
+ },
806
+
807
+ });
808
+ // The module cache
809
+ var __webpack_module_cache__ = {};
810
+
811
+ // The require function
812
+ function __webpack_require__(moduleId) {
813
+
814
+ // Check if module is in cache
815
+ var cachedModule = __webpack_module_cache__[moduleId];
816
+ if (cachedModule !== undefined) {
817
+ return cachedModule.exports;
818
+ }
819
+ // Create a new module (and put it into the cache)
820
+ var module = (__webpack_module_cache__[moduleId] = {
821
+ exports: {}
822
+ });
823
+ // Execute the module function
824
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
825
+
826
+ // Return the exports of the module
827
+ return module.exports;
828
+
829
+ }
830
+
831
+ // webpack/runtime/compat_get_default_export
832
+ (() => {
833
+ // getDefaultExport function for compatibility with non-ESM modules
834
+ __webpack_require__.n = (module) => {
835
+ var getter = module && module.__esModule ?
836
+ () => (module['default']) :
837
+ () => (module);
838
+ __webpack_require__.d(getter, { a: getter });
839
+ return getter;
840
+ };
841
+
842
+ })();
843
+ // webpack/runtime/define_property_getters
844
+ (() => {
845
+ __webpack_require__.d = (exports, definition) => {
846
+ for(var key in definition) {
847
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
848
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
849
+ }
850
+ }
851
+ };
852
+ })();
853
+ // webpack/runtime/has_own_property
854
+ (() => {
855
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
856
+ })();
857
+ // webpack/runtime/make_namespace_object
858
+ (() => {
859
+ // define __esModule on exports
860
+ __webpack_require__.r = (exports) => {
861
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
862
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
863
+ }
864
+ Object.defineProperty(exports, '__esModule', { value: true });
865
+ };
866
+ })();
867
+ // startup
868
+ // Load entry module and return exports
869
+ // This entry module is referenced by other modules so it can't be inlined
870
+ var __webpack_exports__ = __webpack_require__("./src/utils/index.ts");
699
871
  exports["default"] = __webpack_exports__["default"];
700
872
  for(var __rspack_i in __webpack_exports__) {
701
873
  if(["default"].indexOf(__rspack_i) === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.61.0",
3
+ "version": "1.63.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {