fge-auth-component 0.4.2 → 1.0.1
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/README.md +17 -7
- package/dist/api/useLoginApi.d.ts +7 -0
- package/dist/components/FgeLogin.vue.d.ts +4 -1
- package/dist/components/FgeMenuItems.vue.d.ts +3 -1
- package/dist/components/PrincipalLoginComp.vue.d.ts +4 -1
- package/dist/fge-auth-component.css +1 -1
- package/dist/fge-auth-component.es.js +2401 -2383
- package/dist/fge-auth-component.umd.js +44 -44
- package/dist/hooks/useLoginForm.d.ts +1 -1
- package/dist/outputs/main.d.ts +1 -2
- package/dist/store/useLoginStore.d.ts +13 -13
- package/package.json +2 -2
package/dist/outputs/main.d.ts
CHANGED
|
@@ -8,9 +8,8 @@ export type ConfigOptions = {
|
|
|
8
8
|
baseUrl: string;
|
|
9
9
|
aplicacion: string;
|
|
10
10
|
rrhhUrl: string;
|
|
11
|
-
redirectLoginFunction: Function;
|
|
12
|
-
redirectLogoutFunction: Function;
|
|
13
11
|
API_SERVER_REDIRECT: string;
|
|
12
|
+
verificarSiFuncionario?: boolean;
|
|
14
13
|
};
|
|
15
14
|
declare const _default: {
|
|
16
15
|
install: (app: App, options: ConfigOptions) => void;
|
|
@@ -25,12 +25,11 @@ export declare const AUTH_STORE: () => {
|
|
|
25
25
|
on2AuthLogin: (values: any) => Promise<void>;
|
|
26
26
|
onLogout: () => Promise<void>;
|
|
27
27
|
onLoginCiudadania: (values: any) => Promise<void>;
|
|
28
|
-
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl,
|
|
28
|
+
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, verificarSiFuncionario }: {
|
|
29
29
|
newBaseURL: string;
|
|
30
30
|
newAplicacion: string;
|
|
31
31
|
newRrhhUrl: string;
|
|
32
|
-
|
|
33
|
-
newRedirectLogoutFunction?: Function | undefined;
|
|
32
|
+
verificarSiFuncionario?: boolean | undefined;
|
|
34
33
|
}) => void;
|
|
35
34
|
setDispositivoConfianzaCookie: ({ usuario, value, days }: {
|
|
36
35
|
usuario: string;
|
|
@@ -41,6 +40,7 @@ export declare const AUTH_STORE: () => {
|
|
|
41
40
|
updateUserData: (values: {
|
|
42
41
|
[key: string]: any;
|
|
43
42
|
}) => void;
|
|
43
|
+
onRefreshToken: () => Promise<void>;
|
|
44
44
|
};
|
|
45
45
|
export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE", import("pinia")._UnwrapAll<Pick<{
|
|
46
46
|
id: import("vue").Ref<string>;
|
|
@@ -68,12 +68,11 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
68
68
|
on2AuthLogin: (values: any) => Promise<void>;
|
|
69
69
|
onLogout: () => Promise<void>;
|
|
70
70
|
onLoginCiudadania: (values: any) => Promise<void>;
|
|
71
|
-
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl,
|
|
71
|
+
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, verificarSiFuncionario }: {
|
|
72
72
|
newBaseURL: string;
|
|
73
73
|
newAplicacion: string;
|
|
74
74
|
newRrhhUrl: string;
|
|
75
|
-
|
|
76
|
-
newRedirectLogoutFunction?: Function | undefined;
|
|
75
|
+
verificarSiFuncionario?: boolean | undefined;
|
|
77
76
|
}) => void;
|
|
78
77
|
setDispositivoConfianzaCookie: ({ usuario, value, days }: {
|
|
79
78
|
usuario: string;
|
|
@@ -84,6 +83,7 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
84
83
|
updateUserData: (values: {
|
|
85
84
|
[key: string]: any;
|
|
86
85
|
}) => void;
|
|
86
|
+
onRefreshToken: () => Promise<void>;
|
|
87
87
|
}, "id" | "binnacleId" | "currentPage" | "apiBaseURL" | "aplicacion" | "userState">>, Pick<{
|
|
88
88
|
id: import("vue").Ref<string>;
|
|
89
89
|
currentPage: import("vue").Ref<ShowPage>;
|
|
@@ -110,12 +110,11 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
110
110
|
on2AuthLogin: (values: any) => Promise<void>;
|
|
111
111
|
onLogout: () => Promise<void>;
|
|
112
112
|
onLoginCiudadania: (values: any) => Promise<void>;
|
|
113
|
-
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl,
|
|
113
|
+
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, verificarSiFuncionario }: {
|
|
114
114
|
newBaseURL: string;
|
|
115
115
|
newAplicacion: string;
|
|
116
116
|
newRrhhUrl: string;
|
|
117
|
-
|
|
118
|
-
newRedirectLogoutFunction?: Function | undefined;
|
|
117
|
+
verificarSiFuncionario?: boolean | undefined;
|
|
119
118
|
}) => void;
|
|
120
119
|
setDispositivoConfianzaCookie: ({ usuario, value, days }: {
|
|
121
120
|
usuario: string;
|
|
@@ -126,6 +125,7 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
126
125
|
updateUserData: (values: {
|
|
127
126
|
[key: string]: any;
|
|
128
127
|
}) => void;
|
|
128
|
+
onRefreshToken: () => Promise<void>;
|
|
129
129
|
}, never>, Pick<{
|
|
130
130
|
id: import("vue").Ref<string>;
|
|
131
131
|
currentPage: import("vue").Ref<ShowPage>;
|
|
@@ -152,12 +152,11 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
152
152
|
on2AuthLogin: (values: any) => Promise<void>;
|
|
153
153
|
onLogout: () => Promise<void>;
|
|
154
154
|
onLoginCiudadania: (values: any) => Promise<void>;
|
|
155
|
-
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl,
|
|
155
|
+
setConfigs: ({ newBaseURL, newAplicacion, newRrhhUrl, verificarSiFuncionario }: {
|
|
156
156
|
newBaseURL: string;
|
|
157
157
|
newAplicacion: string;
|
|
158
158
|
newRrhhUrl: string;
|
|
159
|
-
|
|
160
|
-
newRedirectLogoutFunction?: Function | undefined;
|
|
159
|
+
verificarSiFuncionario?: boolean | undefined;
|
|
161
160
|
}) => void;
|
|
162
161
|
setDispositivoConfianzaCookie: ({ usuario, value, days }: {
|
|
163
162
|
usuario: string;
|
|
@@ -168,4 +167,5 @@ export declare const useLoginStore: import("pinia").StoreDefinition<"LOGIN_STORE
|
|
|
168
167
|
updateUserData: (values: {
|
|
169
168
|
[key: string]: any;
|
|
170
169
|
}) => void;
|
|
171
|
-
|
|
170
|
+
onRefreshToken: () => Promise<void>;
|
|
171
|
+
}, "goLoginPage" | "goRegistrarPage" | "goRecuperarCont" | "onLogin" | "on2AuthLogin" | "onLogout" | "onLoginCiudadania" | "setConfigs" | "setDispositivoConfianzaCookie" | "clearUserData" | "updateUserData" | "onRefreshToken">>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fge-auth-component",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"purgecss": "^5.0.0",
|
|
45
|
-
"vue-login-adds": "^0.0.
|
|
45
|
+
"vue-login-adds": "^0.0.10"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|