fge-auth-component 4.0.1 → 4.0.3

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/dist/main.d.ts CHANGED
@@ -15,11 +15,13 @@ export declare type ConfigOptions = {
15
15
  rrhhUrl: string;
16
16
  telegramBot: string;
17
17
  systemVersion?: string;
18
+ TOKEN_WEBSOCKET?: string;
18
19
  API_SERVER_REDIRECT: string;
19
20
  verificarSiFuncionario?: boolean;
20
21
  TOKEN_AGETIC: string;
21
22
  ENVIRONMENT: 'PROD' | 'TEST' | 'DEV' | 'STAGE';
22
23
  MS_AGETIC_URL: string;
24
+ MS_WEBSOCKET_URL: string;
23
25
  ENABLE_CHANGE_PASSWORD?: boolean;
24
26
  ENABLE_FORCE_CHANGE_PASSWORD?: boolean;
25
27
  };
@@ -70,6 +72,9 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
70
72
  binnacleId: Ref<string | null>;
71
73
  apiBaseURL: Ref<string>;
72
74
  apiBaseURLAuthNv: Ref<string>;
75
+ apiWebSocketURL: Ref<string>;
76
+ webSocketToken: Ref<string>;
77
+ deviceId: Ref<string>;
73
78
  aplicacion: Ref<string>;
74
79
  enableChangePassword: Ref<boolean>;
75
80
  enableForceChangePwd: Ref<boolean>;
@@ -152,6 +157,9 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
152
157
  tgBot: Ref<string>;
153
158
  systemVer: Ref<string>;
154
159
  verificarFunc: Ref<boolean>;
160
+ onAutorizarQrNv: (token: string, sessionId: string, usuarioId: number) => Promise<{
161
+ [key: string]: any;
162
+ } | undefined>;
155
163
  goLoginPage: () => void;
156
164
  goRegistrarPage: () => void;
157
165
  goRecuperarCont: () => void;
@@ -160,10 +168,12 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
160
168
  } | undefined>;
161
169
  on2AuthLogin: (values: any) => Promise<void>;
162
170
  onLoginCiudadania: (values: any) => Promise<void>;
163
- setConfigs: ({ newBaseURL, newBaseURLAuthNv, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
171
+ setConfigs: ({ newBaseURL, newBaseURLAuthNv, newWebSocketUrl, newWebSocketToken, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
164
172
  newBaseURL: string;
165
173
  newAplicacion: string;
166
174
  newBaseURLAuthNv?: string | undefined;
175
+ newWebSocketUrl?: string | undefined;
176
+ newWebSocketToken?: string | undefined;
167
177
  newRrhhUrl: string;
168
178
  verificarSiFuncionario?: boolean | undefined;
169
179
  telegramBot: string;
@@ -182,12 +192,15 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
182
192
  }) => void;
183
193
  disable2FAStore: () => void;
184
194
  onRefreshToken: () => Promise<void>;
185
- }, "id" | "binnacleId" | "currentPage" | "apiBaseURL" | "apiBaseURLAuthNv" | "aplicacion" | "enableChangePassword" | "enableForceChangePwd" | "userState" | "tgBot" | "systemVer" | "verificarFunc">>, Pick<{
195
+ }, "id" | "binnacleId" | "currentPage" | "apiBaseURL" | "apiBaseURLAuthNv" | "apiWebSocketURL" | "webSocketToken" | "deviceId" | "aplicacion" | "enableChangePassword" | "enableForceChangePwd" | "userState" | "tgBot" | "systemVer" | "verificarFunc">>, Pick<{
186
196
  id: Ref<string>;
187
197
  currentPage: Ref<ShowPage>;
188
198
  binnacleId: Ref<string | null>;
189
199
  apiBaseURL: Ref<string>;
190
200
  apiBaseURLAuthNv: Ref<string>;
201
+ apiWebSocketURL: Ref<string>;
202
+ webSocketToken: Ref<string>;
203
+ deviceId: Ref<string>;
191
204
  aplicacion: Ref<string>;
192
205
  enableChangePassword: Ref<boolean>;
193
206
  enableForceChangePwd: Ref<boolean>;
@@ -270,6 +283,9 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
270
283
  tgBot: Ref<string>;
271
284
  systemVer: Ref<string>;
272
285
  verificarFunc: Ref<boolean>;
286
+ onAutorizarQrNv: (token: string, sessionId: string, usuarioId: number) => Promise<{
287
+ [key: string]: any;
288
+ } | undefined>;
273
289
  goLoginPage: () => void;
274
290
  goRegistrarPage: () => void;
275
291
  goRecuperarCont: () => void;
@@ -278,10 +294,12 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
278
294
  } | undefined>;
279
295
  on2AuthLogin: (values: any) => Promise<void>;
280
296
  onLoginCiudadania: (values: any) => Promise<void>;
281
- setConfigs: ({ newBaseURL, newBaseURLAuthNv, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
297
+ setConfigs: ({ newBaseURL, newBaseURLAuthNv, newWebSocketUrl, newWebSocketToken, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
282
298
  newBaseURL: string;
283
299
  newAplicacion: string;
284
300
  newBaseURLAuthNv?: string | undefined;
301
+ newWebSocketUrl?: string | undefined;
302
+ newWebSocketToken?: string | undefined;
285
303
  newRrhhUrl: string;
286
304
  verificarSiFuncionario?: boolean | undefined;
287
305
  telegramBot: string;
@@ -306,6 +324,9 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
306
324
  binnacleId: Ref<string | null>;
307
325
  apiBaseURL: Ref<string>;
308
326
  apiBaseURLAuthNv: Ref<string>;
327
+ apiWebSocketURL: Ref<string>;
328
+ webSocketToken: Ref<string>;
329
+ deviceId: Ref<string>;
309
330
  aplicacion: Ref<string>;
310
331
  enableChangePassword: Ref<boolean>;
311
332
  enableForceChangePwd: Ref<boolean>;
@@ -388,6 +409,9 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
388
409
  tgBot: Ref<string>;
389
410
  systemVer: Ref<string>;
390
411
  verificarFunc: Ref<boolean>;
412
+ onAutorizarQrNv: (token: string, sessionId: string, usuarioId: number) => Promise<{
413
+ [key: string]: any;
414
+ } | undefined>;
391
415
  goLoginPage: () => void;
392
416
  goRegistrarPage: () => void;
393
417
  goRecuperarCont: () => void;
@@ -396,10 +420,12 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
396
420
  } | undefined>;
397
421
  on2AuthLogin: (values: any) => Promise<void>;
398
422
  onLoginCiudadania: (values: any) => Promise<void>;
399
- setConfigs: ({ newBaseURL, newBaseURLAuthNv, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
423
+ setConfigs: ({ newBaseURL, newBaseURLAuthNv, newWebSocketUrl, newWebSocketToken, newAplicacion, newRrhhUrl, verificarSiFuncionario, telegramBot, systemVersion, enableChangePasswordMsg, enableForceChangePassword, }: {
400
424
  newBaseURL: string;
401
425
  newAplicacion: string;
402
426
  newBaseURLAuthNv?: string | undefined;
427
+ newWebSocketUrl?: string | undefined;
428
+ newWebSocketToken?: string | undefined;
403
429
  newRrhhUrl: string;
404
430
  verificarSiFuncionario?: boolean | undefined;
405
431
  telegramBot: string;
@@ -418,7 +444,7 @@ export declare const useFgeAuthLoginStore: StoreDefinition<"LOGIN_STORE", _Unwra
418
444
  }) => void;
419
445
  disable2FAStore: () => void;
420
446
  onRefreshToken: () => Promise<void>;
421
- }, "goLoginPage" | "goRegistrarPage" | "goRecuperarCont" | "onLogin" | "on2AuthLogin" | "onLoginCiudadania" | "setConfigs" | "setDispositivoConfianzaCookie" | "clearUserData" | "updateUserData" | "disable2FAStore" | "onRefreshToken">>;
447
+ }, "onAutorizarQrNv" | "goLoginPage" | "goRegistrarPage" | "goRecuperarCont" | "onLogin" | "on2AuthLogin" | "onLoginCiudadania" | "setConfigs" | "setDispositivoConfianzaCookie" | "clearUserData" | "updateUserData" | "disable2FAStore" | "onRefreshToken">>;
422
448
 
423
449
  export declare const useFgeAuthStateStore: StoreDefinition<"STATE_STORE", _UnwrapAll<Pick<{
424
450
  id: Ref<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fge-auth-component",
3
3
  "private": false,
4
- "version": "4.0.1",
4
+ "version": "4.0.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -41,6 +41,7 @@
41
41
  "dependencies": {
42
42
  "radix-vue": "^1.9.4",
43
43
  "serve": "^14.2.4",
44
+ "socket.io-client": "^4.8.1",
44
45
  "vue-login-adds": "^3.0.4",
45
46
  "vue3-toastify": "^0.2.2"
46
47
  },