@progalaxyelabs/ngx-stonescriptphp-client 1.24.2 → 1.24.5
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/index.d.ts
CHANGED
|
@@ -212,6 +212,11 @@ interface OtpSendResponse {
|
|
|
212
212
|
interface OtpVerifyResponse {
|
|
213
213
|
success: boolean;
|
|
214
214
|
verified_token: string;
|
|
215
|
+
error?: string;
|
|
216
|
+
message?: string;
|
|
217
|
+
remaining_attempts?: number;
|
|
218
|
+
can_resend?: boolean;
|
|
219
|
+
retry_after?: number;
|
|
215
220
|
}
|
|
216
221
|
interface AuthResult {
|
|
217
222
|
success: boolean;
|
|
@@ -979,6 +984,7 @@ declare class TenantLoginComponent implements OnInit, OnDestroy {
|
|
|
979
984
|
autoSelectSingleTenant: boolean;
|
|
980
985
|
prefillEmail?: string;
|
|
981
986
|
allowTenantCreation: boolean;
|
|
987
|
+
otpIdentifierTypes: ('email' | 'phone')[];
|
|
982
988
|
tenantSelectorTitle: string;
|
|
983
989
|
tenantSelectorDescription: string;
|
|
984
990
|
continueButtonText: string;
|
|
@@ -1001,6 +1007,8 @@ declare class TenantLoginComponent implements OnInit, OnDestroy {
|
|
|
1001
1007
|
otpStep: OtpStep;
|
|
1002
1008
|
otpIdentifier: string;
|
|
1003
1009
|
otpIdentifierHint: string;
|
|
1010
|
+
otpIdentifierError: string;
|
|
1011
|
+
otpIdentifierErrorColor: 'orange' | 'red';
|
|
1004
1012
|
otpNormalizedIdentifier: string;
|
|
1005
1013
|
otpMaskedIdentifier: string;
|
|
1006
1014
|
otpDigits: string[];
|
|
@@ -1032,6 +1040,8 @@ declare class TenantLoginComponent implements OnInit, OnDestroy {
|
|
|
1032
1040
|
onOtpIdentifierChange(): void;
|
|
1033
1041
|
/** Send OTP to the entered identifier */
|
|
1034
1042
|
onOtpSend(): Promise<void>;
|
|
1043
|
+
/** Skip to OTP code entry when user already has a code */
|
|
1044
|
+
onSkipToOtpEntry(): void;
|
|
1035
1045
|
/** Verify the entered OTP code */
|
|
1036
1046
|
onOtpVerify(): Promise<void>;
|
|
1037
1047
|
/** Register a new identity after OTP verification */
|
|
@@ -1040,10 +1050,18 @@ declare class TenantLoginComponent implements OnInit, OnDestroy {
|
|
|
1040
1050
|
onOtpResend(event: Event): void;
|
|
1041
1051
|
/** Go back to identifier entry */
|
|
1042
1052
|
onOtpBack(event: Event): void;
|
|
1053
|
+
/**
|
|
1054
|
+
* Reset to the identifier entry step (step 1) with an error message.
|
|
1055
|
+
* Used when OTP verification fails with a code that requires re-sending
|
|
1056
|
+
* (expired, rate-limited, not-found). Keeps the identifier pre-filled.
|
|
1057
|
+
*/
|
|
1058
|
+
private resetToIdentifierStep;
|
|
1043
1059
|
onOtpDigitInput(event: Event, index: number): void;
|
|
1044
1060
|
onOtpDigitKeydown(event: KeyboardEvent, index: number): void;
|
|
1045
1061
|
onOtpPaste(event: ClipboardEvent): void;
|
|
1046
1062
|
get otpCode(): string;
|
|
1063
|
+
get otpPlaceholderText(): string;
|
|
1064
|
+
get otpIdentifierName(): string;
|
|
1047
1065
|
private detectIdentifierType;
|
|
1048
1066
|
private focusOtpInput;
|
|
1049
1067
|
private startResendCountdown;
|
|
@@ -1053,7 +1071,7 @@ declare class TenantLoginComponent implements OnInit, OnDestroy {
|
|
|
1053
1071
|
formatLastAccessed(dateStr: string): string;
|
|
1054
1072
|
onCreateTenantClick(event: Event): void;
|
|
1055
1073
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantLoginComponent, never>;
|
|
1056
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TenantLoginComponent, "lib-tenant-login", never, { "title": { "alias": "title"; "required": false; }; "providers": { "alias": "providers"; "required": false; }; "showTenantSelector": { "alias": "showTenantSelector"; "required": false; }; "autoSelectSingleTenant": { "alias": "autoSelectSingleTenant"; "required": false; }; "prefillEmail": { "alias": "prefillEmail"; "required": false; }; "allowTenantCreation": { "alias": "allowTenantCreation"; "required": false; }; "tenantSelectorTitle": { "alias": "tenantSelectorTitle"; "required": false; }; "tenantSelectorDescription": { "alias": "tenantSelectorDescription"; "required": false; }; "continueButtonText": { "alias": "continueButtonText"; "required": false; }; "registerLinkText": { "alias": "registerLinkText"; "required": false; }; "registerLinkAction": { "alias": "registerLinkAction"; "required": false; }; "createTenantLinkText": { "alias": "createTenantLinkText"; "required": false; }; "createTenantLinkAction": { "alias": "createTenantLinkAction"; "required": false; }; }, { "tenantSelected": "tenantSelected"; "needsOnboarding": "needsOnboarding"; "createTenant": "createTenant"; }, never, never, true, never>;
|
|
1074
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TenantLoginComponent, "lib-tenant-login", never, { "title": { "alias": "title"; "required": false; }; "providers": { "alias": "providers"; "required": false; }; "showTenantSelector": { "alias": "showTenantSelector"; "required": false; }; "autoSelectSingleTenant": { "alias": "autoSelectSingleTenant"; "required": false; }; "prefillEmail": { "alias": "prefillEmail"; "required": false; }; "allowTenantCreation": { "alias": "allowTenantCreation"; "required": false; }; "otpIdentifierTypes": { "alias": "otpIdentifierTypes"; "required": false; }; "tenantSelectorTitle": { "alias": "tenantSelectorTitle"; "required": false; }; "tenantSelectorDescription": { "alias": "tenantSelectorDescription"; "required": false; }; "continueButtonText": { "alias": "continueButtonText"; "required": false; }; "registerLinkText": { "alias": "registerLinkText"; "required": false; }; "registerLinkAction": { "alias": "registerLinkAction"; "required": false; }; "createTenantLinkText": { "alias": "createTenantLinkText"; "required": false; }; "createTenantLinkAction": { "alias": "createTenantLinkAction"; "required": false; }; }, { "tenantSelected": "tenantSelected"; "needsOnboarding": "needsOnboarding"; "createTenant": "createTenant"; }, never, never, true, never>;
|
|
1057
1075
|
}
|
|
1058
1076
|
|
|
1059
1077
|
declare class AuthPageComponent implements OnInit {
|