@navservice/core 1.64.0 → 1.65.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.
@@ -7,7 +7,7 @@ declare const helpers: {
7
7
  SUCCESS<T>({ message, results, c }: {
8
8
  message?: string | undefined;
9
9
  results: any;
10
- c: import("../types").default.Context;
10
+ c: import("..").TypesCore.Context;
11
11
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
12
12
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
13
13
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -18,7 +18,7 @@ declare const helpers: {
18
18
  ACTION_REQUIRED<T>({ message, results, c }: {
19
19
  message?: string | undefined;
20
20
  results: any;
21
- c: import("../types").default.Context;
21
+ c: import("..").TypesCore.Context;
22
22
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
23
23
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
24
24
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -29,7 +29,7 @@ declare const helpers: {
29
29
  CREATED<T>({ message, results, c }: {
30
30
  message?: string | undefined;
31
31
  results: any;
32
- c: import("../types").default.Context;
32
+ c: import("..").TypesCore.Context;
33
33
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
34
34
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
35
35
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -40,16 +40,16 @@ declare const helpers: {
40
40
  WARNING<T>({ message, results, c }: {
41
41
  message?: string | undefined;
42
42
  results: any;
43
- c: import("../types").default.Context;
43
+ c: import("..").TypesCore.Context;
44
44
  }): void;
45
45
  AUTHORIZATION_ERROR<T>({ message, results, c }: {
46
46
  message?: string | undefined;
47
47
  results: any;
48
- c: import("../types").default.Context;
48
+ c: import("..").TypesCore.Context;
49
49
  }): void;
50
50
  SERVER_ERROR<T>({ error, c }: {
51
51
  error: any;
52
- c: import("../types").default.Context;
52
+ c: import("..").TypesCore.Context;
53
53
  }): Response & import("hono").TypedResponse<{
54
54
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
55
55
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -60,7 +60,7 @@ declare const helpers: {
60
60
  UNAUTHORIZED<T>({ message, c }: {
61
61
  message?: string | undefined;
62
62
  results: any;
63
- c: import("../types").default.Context;
63
+ c: import("..").TypesCore.Context;
64
64
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
65
65
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
66
66
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -71,7 +71,7 @@ declare const helpers: {
71
71
  INVALID_TOKEN<T>({ message, c }: {
72
72
  message?: string | undefined;
73
73
  results: any;
74
- c: import("../types").default.Context;
74
+ c: import("..").TypesCore.Context;
75
75
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
76
76
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
77
77
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -82,7 +82,7 @@ declare const helpers: {
82
82
  NOT_FOUND<T>({ message, c }: {
83
83
  message?: string | undefined;
84
84
  results: any;
85
- c: import("../types").default.Context;
85
+ c: import("..").TypesCore.Context;
86
86
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
87
87
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
88
88
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -132,7 +132,7 @@ declare const helpers: {
132
132
  };
133
133
  token: {
134
134
  new (): {};
135
- verificar_token(c: import("../types").default.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
135
+ verificar_token(c: import("..").TypesCore.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
136
136
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
137
137
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
138
138
  type: "success" | "warning" | "error";
@@ -140,7 +140,7 @@ declare const helpers: {
140
140
  results: any;
141
141
  }, 401, "json">)>;
142
142
  criar_token_login_usuario({ _id, email, app, usuario_tipo, ativo, data_criacao, nome, c }: import("../types/_usuario").default.TokenPayload & {
143
- c: import("../types").default.Context;
143
+ c: import("..").TypesCore.Context;
144
144
  }): Promise<string>;
145
145
  };
146
146
  secret: typeof _secret;
@@ -7,7 +7,7 @@ declare const helpers: {
7
7
  SUCCESS<T>({ message, results, c }: {
8
8
  message?: string | undefined;
9
9
  results: any;
10
- c: import("../types").default.Context;
10
+ c: import("..").TypesCore.Context;
11
11
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
12
12
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
13
13
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -18,7 +18,7 @@ declare const helpers: {
18
18
  ACTION_REQUIRED<T>({ message, results, c }: {
19
19
  message?: string | undefined;
20
20
  results: any;
21
- c: import("../types").default.Context;
21
+ c: import("..").TypesCore.Context;
22
22
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
23
23
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
24
24
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -29,7 +29,7 @@ declare const helpers: {
29
29
  CREATED<T>({ message, results, c }: {
30
30
  message?: string | undefined;
31
31
  results: any;
32
- c: import("../types").default.Context;
32
+ c: import("..").TypesCore.Context;
33
33
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
34
34
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
35
35
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -40,16 +40,16 @@ declare const helpers: {
40
40
  WARNING<T>({ message, results, c }: {
41
41
  message?: string | undefined;
42
42
  results: any;
43
- c: import("../types").default.Context;
43
+ c: import("..").TypesCore.Context;
44
44
  }): void;
45
45
  AUTHORIZATION_ERROR<T>({ message, results, c }: {
46
46
  message?: string | undefined;
47
47
  results: any;
48
- c: import("../types").default.Context;
48
+ c: import("..").TypesCore.Context;
49
49
  }): void;
50
50
  SERVER_ERROR<T>({ error, c }: {
51
51
  error: any;
52
- c: import("../types").default.Context;
52
+ c: import("..").TypesCore.Context;
53
53
  }): Response & import("hono").TypedResponse<{
54
54
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
55
55
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -60,7 +60,7 @@ declare const helpers: {
60
60
  UNAUTHORIZED<T>({ message, c }: {
61
61
  message?: string | undefined;
62
62
  results: any;
63
- c: import("../types").default.Context;
63
+ c: import("..").TypesCore.Context;
64
64
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
65
65
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
66
66
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -71,7 +71,7 @@ declare const helpers: {
71
71
  INVALID_TOKEN<T>({ message, c }: {
72
72
  message?: string | undefined;
73
73
  results: any;
74
- c: import("../types").default.Context;
74
+ c: import("..").TypesCore.Context;
75
75
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
76
76
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
77
77
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -82,7 +82,7 @@ declare const helpers: {
82
82
  NOT_FOUND<T>({ message, c }: {
83
83
  message?: string | undefined;
84
84
  results: any;
85
- c: import("../types").default.Context;
85
+ c: import("..").TypesCore.Context;
86
86
  }): import("./_set_response").ResponseCPayload<T> | (Response & import("hono").TypedResponse<{
87
87
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
88
88
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
@@ -132,7 +132,7 @@ declare const helpers: {
132
132
  };
133
133
  token: {
134
134
  new (): {};
135
- verificar_token(c: import("../types").default.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
135
+ verificar_token(c: import("..").TypesCore.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
136
136
  status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
137
137
  code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR";
138
138
  type: "success" | "warning" | "error";
@@ -140,7 +140,7 @@ declare const helpers: {
140
140
  results: any;
141
141
  }, 401, "json">)>;
142
142
  criar_token_login_usuario({ _id, email, app, usuario_tipo, ativo, data_criacao, nome, c }: import("../types/_usuario").default.TokenPayload & {
143
- c: import("../types").default.Context;
143
+ c: import("..").TypesCore.Context;
144
144
  }): Promise<string>;
145
145
  };
146
146
  secret: typeof _secret;
@@ -6,8 +6,46 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
6
6
  new URL('main.js', document.baseURI).href;
7
7
  })();
8
8
  ;
9
- var __webpack_modules__ = ({
10
- "./src/index.browser.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
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__ = {};
11
49
  // ESM COMPAT FLAG
12
50
  __webpack_require__.r(__webpack_exports__);
13
51
 
@@ -15,7 +53,7 @@ __webpack_require__.r(__webpack_exports__);
15
53
  __webpack_require__.d(__webpack_exports__, {
16
54
  config_env_core: () => (/* reexport */ src_config_env),
17
55
  TypesCore: () => (/* reexport */ types),
18
- utils: () => (/* reexport */ utils["default"])
56
+ utils: () => (/* reexport */ src_utils)
19
57
  });
20
58
 
21
59
  ;// CONCATENATED MODULE: ./src/config_env/index.ts
@@ -153,27 +191,9 @@ var _type_response_TypeControllerResponse;
153
191
  /* export default */ const types = (types_t);
154
192
  var types_t;
155
193
 
156
- // EXTERNAL MODULE: ./src/utils/index.ts + 11 modules
157
- var utils = __webpack_require__("./src/utils/index.ts");
158
- ;// CONCATENATED MODULE: ./src/index.browser.ts
159
-
160
-
161
-
162
-
163
-
164
- },
165
- "./src/utils/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
166
-
167
- // EXPORTS
168
- __webpack_require__.d(__webpack_exports__, {
169
- "default": () => (/* binding */ src_utils)
170
- });
171
-
172
194
  ;// CONCATENATED MODULE: external "axios"
173
195
  const external_axios_namespaceObject = require("axios");
174
196
  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");
177
197
  ;// CONCATENATED MODULE: ./src/utils/_session_storage.ts
178
198
  const _session_storage = class _session_storage {
179
199
  static adicionar_item_session_storage({ chave, novoItem }) {
@@ -225,7 +245,7 @@ const _api_api = class _api {
225
245
  static servidor_pricipal = class servidor_pricipal {
226
246
  static get #axios() {
227
247
  return external_axios_default().create({
228
- baseURL: index_browser.config_env_core.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
248
+ baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
229
249
  });
230
250
  }
231
251
  static async post({ url, data, setToken = true }) {
@@ -801,73 +821,11 @@ const utils = {
801
821
  };
802
822
  /* export default */ const src_utils = (utils);
803
823
 
824
+ ;// CONCATENATED MODULE: ./src/index.ts
804
825
 
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
 
826
- // Return the exports of the module
827
- return module.exports;
828
827
 
829
- }
830
828
 
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/index.browser.ts");
871
829
  exports.TypesCore = __webpack_exports__.TypesCore;
872
830
  exports.config_env_core = __webpack_exports__.config_env_core;
873
831
  exports.utils = __webpack_exports__.utils;
package/package.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.64.0",
3
+ "version": "1.65.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "import": "./build/es/index.browser.js",
9
- "default": "./build/es/index.browser.js",
10
- "types": "./build/es/index.browser.d.ts"
11
- },
12
- "./utils": {
13
- "import": "./build/es/utils.js",
14
- "default": "./build/es/utils.js",
15
- "types": "./build/es/utils/index.d.ts"
8
+ "import": "./build/es/index.js",
9
+ "default": "./build/es/index.js",
10
+ "types": "./build/es/index.d.ts"
16
11
  },
17
12
  "./helpers": {
18
13
  "import": "./build/es/helpers.js",