@navservice/core 1.80.0 → 1.82.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 -4
- 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 +7 -7
- package/build/lib/index.cjs +4 -4
- 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 +7 -7
- package/package.json +1 -1
package/build/es/index.js
CHANGED
|
@@ -617,11 +617,11 @@ class _hooks {
|
|
|
617
617
|
}
|
|
618
618
|
const utils_hooks = new _hooks;
|
|
619
619
|
const _environment = class {
|
|
620
|
-
static set(props) {
|
|
621
|
-
window.sessionStorage.setItem(
|
|
620
|
+
static set(key, props) {
|
|
621
|
+
window.sessionStorage.setItem(key, props);
|
|
622
622
|
}
|
|
623
|
-
static get
|
|
624
|
-
return window.sessionStorage.getItem(
|
|
623
|
+
static get(key) {
|
|
624
|
+
return window.sessionStorage.getItem(key);
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
627
|
const utils_environment = _environment;
|
package/build/es/utils/_api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from "axios";
|
|
2
|
-
type BaseUrl = "
|
|
2
|
+
export type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET";
|
|
3
3
|
declare const _api: {
|
|
4
4
|
new (): {};
|
|
5
5
|
servidor_pricipal: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseUrl } from "./_api";
|
|
2
2
|
declare const _environment: {
|
|
3
3
|
new (): {};
|
|
4
|
-
set(props:
|
|
5
|
-
get
|
|
4
|
+
set(key: BaseUrl, props: string): void;
|
|
5
|
+
get(key: BaseUrl): BaseUrl;
|
|
6
6
|
};
|
|
7
7
|
export default _environment;
|
|
@@ -4,27 +4,27 @@ declare const utils: {
|
|
|
4
4
|
new (): {};
|
|
5
5
|
servidor_pricipal: {
|
|
6
6
|
new (): {};
|
|
7
|
-
axios(key: "
|
|
7
|
+
axios(key: import("./_api").BaseUrl): import("axios").AxiosInstance;
|
|
8
8
|
post({ baseURLKey, url, data, setToken }: {
|
|
9
|
-
baseURLKey: "
|
|
9
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
10
10
|
url: string;
|
|
11
11
|
data: any;
|
|
12
12
|
setToken?: boolean;
|
|
13
13
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
14
|
get({ baseURLKey, url, params, setToken }: {
|
|
15
|
-
baseURLKey: "
|
|
15
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
16
16
|
url: string;
|
|
17
17
|
params?: any;
|
|
18
18
|
setToken?: boolean;
|
|
19
19
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
20
20
|
patch({ baseURLKey, url, data, setToken }: {
|
|
21
|
-
baseURLKey: "
|
|
21
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
22
22
|
url: string;
|
|
23
23
|
data: any;
|
|
24
24
|
setToken?: boolean;
|
|
25
25
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
26
|
delete({ baseURLKey, url }: {
|
|
27
|
-
baseURLKey: "
|
|
27
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
28
28
|
url: string;
|
|
29
29
|
setToken?: boolean;
|
|
30
30
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -158,8 +158,8 @@ declare const utils: {
|
|
|
158
158
|
};
|
|
159
159
|
environment: {
|
|
160
160
|
new (): {};
|
|
161
|
-
set(
|
|
162
|
-
get
|
|
161
|
+
set(key: import("./_api").BaseUrl, props: string): void;
|
|
162
|
+
get(key: import("./_api").BaseUrl): import("./_api").BaseUrl;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
export default utils;
|
package/build/lib/index.cjs
CHANGED
|
@@ -792,12 +792,12 @@ class _hooks {
|
|
|
792
792
|
//BANCO DE DADOS
|
|
793
793
|
//SERVICES
|
|
794
794
|
const _environment = class _environment {
|
|
795
|
-
static set(props) {
|
|
796
|
-
window.sessionStorage.setItem(
|
|
795
|
+
static set(key, props) {
|
|
796
|
+
window.sessionStorage.setItem(key, props);
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
|
-
static get
|
|
800
|
-
return window.sessionStorage.getItem(
|
|
799
|
+
static get(key) {
|
|
800
|
+
return window.sessionStorage.getItem(key);
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
/* export default */ const utils_environment = (_environment);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from "axios";
|
|
2
|
-
type BaseUrl = "
|
|
2
|
+
export type BaseUrl = "PUBLIC_BASE_URL_BACKEND_FINANCEIRO" | "PUBLIC_BASE_URL_BACKEND_USUARIO" | "PUBLIC_BASE_URL_BACKEND_BUCKET";
|
|
3
3
|
declare const _api: {
|
|
4
4
|
new (): {};
|
|
5
5
|
servidor_pricipal: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseUrl } from "./_api";
|
|
2
2
|
declare const _environment: {
|
|
3
3
|
new (): {};
|
|
4
|
-
set(props:
|
|
5
|
-
get
|
|
4
|
+
set(key: BaseUrl, props: string): void;
|
|
5
|
+
get(key: BaseUrl): BaseUrl;
|
|
6
6
|
};
|
|
7
7
|
export default _environment;
|
|
@@ -4,27 +4,27 @@ declare const utils: {
|
|
|
4
4
|
new (): {};
|
|
5
5
|
servidor_pricipal: {
|
|
6
6
|
new (): {};
|
|
7
|
-
axios(key: "
|
|
7
|
+
axios(key: import("./_api").BaseUrl): import("axios").AxiosInstance;
|
|
8
8
|
post({ baseURLKey, url, data, setToken }: {
|
|
9
|
-
baseURLKey: "
|
|
9
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
10
10
|
url: string;
|
|
11
11
|
data: any;
|
|
12
12
|
setToken?: boolean;
|
|
13
13
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
14
|
get({ baseURLKey, url, params, setToken }: {
|
|
15
|
-
baseURLKey: "
|
|
15
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
16
16
|
url: string;
|
|
17
17
|
params?: any;
|
|
18
18
|
setToken?: boolean;
|
|
19
19
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
20
20
|
patch({ baseURLKey, url, data, setToken }: {
|
|
21
|
-
baseURLKey: "
|
|
21
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
22
22
|
url: string;
|
|
23
23
|
data: any;
|
|
24
24
|
setToken?: boolean;
|
|
25
25
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
26
|
delete({ baseURLKey, url }: {
|
|
27
|
-
baseURLKey: "
|
|
27
|
+
baseURLKey: import("./_api").BaseUrl;
|
|
28
28
|
url: string;
|
|
29
29
|
setToken?: boolean;
|
|
30
30
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -158,8 +158,8 @@ declare const utils: {
|
|
|
158
158
|
};
|
|
159
159
|
environment: {
|
|
160
160
|
new (): {};
|
|
161
|
-
set(
|
|
162
|
-
get
|
|
161
|
+
set(key: import("./_api").BaseUrl, props: string): void;
|
|
162
|
+
get(key: import("./_api").BaseUrl): import("./_api").BaseUrl;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
export default utils;
|