@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 +4 -2
- package/build/es/types/index.d.ts +1 -1
- package/build/es/utils/_api.d.ts +1 -1
- package/build/es/utils/_environment.d.ts +3 -3
- package/build/es/utils/index.d.ts +3 -3
- package/build/lib/index.cjs +5 -2
- package/build/lib/types/index.d.ts +1 -1
- package/build/lib/utils/_api.d.ts +1 -1
- package/build/lib/utils/_environment.d.ts +3 -3
- package/build/lib/utils/index.d.ts +3 -3
- package/package.json +1 -1
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: {
|
package/build/es/utils/_api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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("
|
|
180
|
-
get(key: import("
|
|
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/build/lib/index.cjs
CHANGED
|
@@ -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: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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("
|
|
180
|
-
get(key: import("
|
|
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;
|