@resolveio/client-lib-core 21.2.2 → 21.2.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/package.json
CHANGED
|
@@ -416,14 +416,27 @@ declare class AccountManagerService {
|
|
|
416
416
|
user: BehaviorSubject<UserModel>;
|
|
417
417
|
initCompleted: BehaviorSubject<boolean>;
|
|
418
418
|
loginCompleted: BehaviorSubject<boolean>;
|
|
419
|
+
publicClient: BehaviorSubject<any>;
|
|
419
420
|
user$: Subscription;
|
|
420
421
|
environment: any;
|
|
422
|
+
private readonly publicTokenKey;
|
|
421
423
|
constructor(_router: Router, _socket: SocketManagerService, _token: TokenManagerService, _http: HttpClient, _alert: AlertService, _offline: OfflineManagerService);
|
|
422
424
|
private normalizeUser;
|
|
423
425
|
initLoginManager(environment: any): void;
|
|
424
426
|
private initLogin;
|
|
425
427
|
getAccessToken(refreshToken: any): void;
|
|
426
428
|
logIn(username: string, password: string): Promise<unknown>;
|
|
429
|
+
publicLogIn(email: string, password: string): Promise<unknown>;
|
|
430
|
+
publicRegister(payload: {
|
|
431
|
+
companyName: string;
|
|
432
|
+
contactName?: string;
|
|
433
|
+
email: string;
|
|
434
|
+
password: string;
|
|
435
|
+
phone?: string;
|
|
436
|
+
}): Promise<unknown>;
|
|
437
|
+
publicFetchMe(): Promise<unknown>;
|
|
438
|
+
publicFetchDashboard(): Promise<unknown>;
|
|
439
|
+
publicLogOut(): void;
|
|
427
440
|
logIn365(azure_token: string): Promise<unknown>;
|
|
428
441
|
resetUserPassword(username: string): Promise<unknown>;
|
|
429
442
|
logOut(): Promise<unknown>;
|
|
@@ -602,7 +615,7 @@ declare class DialogService {
|
|
|
602
615
|
confirm(msg: string, html?: string): Promise<any>;
|
|
603
616
|
selectDateTime(date: Date, showTime?: boolean): Promise<any>;
|
|
604
617
|
selectDataLabel(data: any, showArraySubData?: boolean): Promise<any>;
|
|
605
|
-
login(msAllowed: boolean, showLoginText?: boolean): Promise<any>;
|
|
618
|
+
login(msAllowed: boolean, showLoginText?: boolean, publicProgram?: boolean): Promise<any>;
|
|
606
619
|
register(): Promise<any>;
|
|
607
620
|
selectWithButtonsURL(url: string): Promise<any>;
|
|
608
621
|
selectWithArrayObjs(title: string, objects: DialogSelectWithButtonsOptionModel[], multiple?: boolean, allowNone?: boolean): Promise<any>;
|
|
@@ -617,11 +630,13 @@ declare class AuthService {
|
|
|
617
630
|
private _alert;
|
|
618
631
|
private _account;
|
|
619
632
|
private _socket;
|
|
633
|
+
private _core;
|
|
634
|
+
private _router;
|
|
620
635
|
environment: any;
|
|
621
636
|
userHasPhoneNumber: boolean;
|
|
622
637
|
userData: any;
|
|
623
638
|
userAgentApplication: any;
|
|
624
|
-
constructor(_ds: DialogService, _vs: ValidationService, _alert: AlertService, _account: AccountManagerService, _socket: SocketManagerService);
|
|
639
|
+
constructor(_ds: DialogService, _vs: ValidationService, _alert: AlertService, _account: AccountManagerService, _socket: SocketManagerService, _core: CoreService, _router: Router);
|
|
625
640
|
setupMSSingleSignOn(environment: any): void;
|
|
626
641
|
setEnvironment(environment: any): void;
|
|
627
642
|
setUserHasPhoneNumber(value: boolean): void;
|
|
@@ -1436,18 +1451,25 @@ declare class DialogLoginContent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1436
1451
|
private _fb;
|
|
1437
1452
|
msAllowed: boolean;
|
|
1438
1453
|
showLoginText: boolean;
|
|
1454
|
+
publicProgram: boolean;
|
|
1439
1455
|
usernameInput?: ElementRef<HTMLInputElement>;
|
|
1440
1456
|
form: FormGroup;
|
|
1457
|
+
publicForm: FormGroup;
|
|
1458
|
+
publicRegisterForm: FormGroup;
|
|
1459
|
+
publicMode: 'login' | 'register';
|
|
1441
1460
|
private focusTimeout;
|
|
1442
1461
|
constructor(_activeModal: NgbActiveModal, _fb: FormBuilder);
|
|
1443
1462
|
ngOnInit(): void;
|
|
1444
1463
|
ngAfterViewInit(): void;
|
|
1445
1464
|
ngOnDestroy(): void;
|
|
1446
1465
|
private queueUsernameFocus;
|
|
1466
|
+
setPublicMode(mode: 'login' | 'register'): void;
|
|
1467
|
+
submitPublicLogin(): void;
|
|
1468
|
+
submitPublicRegister(): void;
|
|
1447
1469
|
toggleForgotPassword(): void;
|
|
1448
1470
|
close(type: string): void;
|
|
1449
1471
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogLoginContent, never>;
|
|
1450
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogLoginContent, "resolveio-dialog.login", never, { "msAllowed": { "alias": "msAllowed"; "required": false; }; "showLoginText": { "alias": "showLoginText"; "required": false; }; }, {}, never, never, false, never>;
|
|
1472
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogLoginContent, "resolveio-dialog.login", never, { "msAllowed": { "alias": "msAllowed"; "required": false; }; "showLoginText": { "alias": "showLoginText"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; }, {}, never, never, false, never>;
|
|
1451
1473
|
}
|
|
1452
1474
|
|
|
1453
1475
|
declare class DialogRegisterContent implements OnInit {
|