@navservice/core 1.89.0 → 1.91.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.
package/build/es/index.js CHANGED
@@ -180,8 +180,10 @@ const _api_api = class _api {
180
180
  setToken: setToken
181
181
  }));
182
182
  }
183
- static async delete({ baseURLKey, url }) {
184
- return await this.axios(baseURLKey).delete(url);
183
+ static async delete({ baseURLKey, url, setToken }) {
184
+ return await this.axios(baseURLKey).delete(url, _api.headers({
185
+ setToken: setToken
186
+ }));
185
187
  }
186
188
  static async post_form_data({ baseURLKey, url, data, setToken = true }) {
187
189
  const formData = new FormData();
@@ -7,7 +7,7 @@ declare namespace t {
7
7
  }
8
8
  namespace Geral {
9
9
  export import Response = TypeControllerResponse;
10
- type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET";
10
+ type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET" | "PUBLIC_BASE_URL_CLOUDFLARE_BUCKET_PUBLIC";
11
11
  }
12
12
  interface Context extends HonoContext {
13
13
  env: {
@@ -24,7 +24,7 @@ declare const _api: {
24
24
  data: any;
25
25
  setToken?: boolean;
26
26
  }): Promise<AxiosResponse<any, any, {}>>;
27
- delete({ baseURLKey, url }: {
27
+ delete({ baseURLKey, url, setToken }: {
28
28
  baseURLKey: BaseUrl;
29
29
  url: string;
30
30
  setToken?: boolean;
@@ -1,7 +1,7 @@
1
- import { BaseUrl } from "./_api";
1
+ import t from "../types";
2
2
  declare const _environment: {
3
3
  new (): {};
4
- set(key: BaseUrl, props: string): void;
5
- get(key: BaseUrl): BaseUrl;
4
+ set(key: t.Geral.BaseUrl, props: string): void;
5
+ get(key: t.Geral.BaseUrl): t.Geral.BaseUrl;
6
6
  };
7
7
  export default _environment;
@@ -23,7 +23,7 @@ declare const utils: {
23
23
  data: any;
24
24
  setToken?: boolean;
25
25
  }): Promise<import("axios").AxiosResponse<any, any, {}>>;
26
- delete({ baseURLKey, url }: {
26
+ delete({ baseURLKey, url, setToken }: {
27
27
  baseURLKey: import("./_api").BaseUrl;
28
28
  url: string;
29
29
  setToken?: boolean;
@@ -176,8 +176,8 @@ declare const utils: {
176
176
  };
177
177
  environment: {
178
178
  new (): {};
179
- set(key: import("./_api").BaseUrl, props: string): void;
180
- get(key: import("./_api").BaseUrl): import("./_api").BaseUrl;
179
+ set(key: import("..").TypesCore.Geral.BaseUrl, props: string): void;
180
+ get(key: import("..").TypesCore.Geral.BaseUrl): import("..").TypesCore.Geral.BaseUrl;
181
181
  };
182
182
  };
183
183
  export default utils;
@@ -165,6 +165,7 @@ var _type_response_TypeControllerResponse;
165
165
  ;// CONCATENATED MODULE: ./src/types/index.ts
166
166
  // ENTIDADES TIPADAS
167
167
 
168
+ //GERAL
168
169
 
169
170
  (function(t) {
170
171
  (function(Controller) {
@@ -260,8 +261,10 @@ const _api_api = class _api {
260
261
  setToken: setToken
261
262
  }));
262
263
  }
263
- static async delete({ baseURLKey, url }) {
264
- return await this.axios(baseURLKey).delete(url);
264
+ static async delete({ baseURLKey, url, setToken }) {
265
+ return await this.axios(baseURLKey).delete(url, _api.headers({
266
+ setToken: setToken
267
+ }));
265
268
  }
266
269
  static async post_form_data({ baseURLKey, url, data, setToken = true }) {
267
270
  const formData = new FormData();
@@ -7,7 +7,7 @@ declare namespace t {
7
7
  }
8
8
  namespace Geral {
9
9
  export import Response = TypeControllerResponse;
10
- type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET";
10
+ type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET" | "PUBLIC_BASE_URL_CLOUDFLARE_BUCKET_PUBLIC";
11
11
  }
12
12
  interface Context extends HonoContext {
13
13
  env: {
@@ -24,7 +24,7 @@ declare const _api: {
24
24
  data: any;
25
25
  setToken?: boolean;
26
26
  }): Promise<AxiosResponse<any, any, {}>>;
27
- delete({ baseURLKey, url }: {
27
+ delete({ baseURLKey, url, setToken }: {
28
28
  baseURLKey: BaseUrl;
29
29
  url: string;
30
30
  setToken?: boolean;
@@ -1,7 +1,7 @@
1
- import { BaseUrl } from "./_api";
1
+ import t from "../types";
2
2
  declare const _environment: {
3
3
  new (): {};
4
- set(key: BaseUrl, props: string): void;
5
- get(key: BaseUrl): BaseUrl;
4
+ set(key: t.Geral.BaseUrl, props: string): void;
5
+ get(key: t.Geral.BaseUrl): t.Geral.BaseUrl;
6
6
  };
7
7
  export default _environment;
@@ -23,7 +23,7 @@ declare const utils: {
23
23
  data: any;
24
24
  setToken?: boolean;
25
25
  }): Promise<import("axios").AxiosResponse<any, any, {}>>;
26
- delete({ baseURLKey, url }: {
26
+ delete({ baseURLKey, url, setToken }: {
27
27
  baseURLKey: import("./_api").BaseUrl;
28
28
  url: string;
29
29
  setToken?: boolean;
@@ -176,8 +176,8 @@ declare const utils: {
176
176
  };
177
177
  environment: {
178
178
  new (): {};
179
- set(key: import("./_api").BaseUrl, props: string): void;
180
- get(key: import("./_api").BaseUrl): import("./_api").BaseUrl;
179
+ set(key: import("..").TypesCore.Geral.BaseUrl, props: string): void;
180
+ get(key: import("..").TypesCore.Geral.BaseUrl): import("..").TypesCore.Geral.BaseUrl;
181
181
  };
182
182
  };
183
183
  export default utils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.89.0",
3
+ "version": "1.91.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {