@progalaxyelabs/ngx-stonescriptphp-client 1.15.0 → 1.16.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/index.d.ts
CHANGED
|
@@ -203,6 +203,20 @@ interface AuthResult {
|
|
|
203
203
|
needsVerification?: boolean;
|
|
204
204
|
/** Membership returned directly by the login response (avoids extra API call) */
|
|
205
205
|
membership?: TenantMembership;
|
|
206
|
+
/** True when the user is new (has identity but no tenant membership) */
|
|
207
|
+
isNewIdentity?: boolean;
|
|
208
|
+
/** Auth method used (e.g., 'oauth', 'emailPassword') */
|
|
209
|
+
authMethod?: string;
|
|
210
|
+
/** OAuth provider used (e.g., 'google') */
|
|
211
|
+
oauthProvider?: string;
|
|
212
|
+
/** Identity info for new users (used with isNewIdentity) */
|
|
213
|
+
identity?: {
|
|
214
|
+
email: string;
|
|
215
|
+
display_name?: string;
|
|
216
|
+
picture?: string;
|
|
217
|
+
};
|
|
218
|
+
/** Multiple tenant memberships for tenant selection flow */
|
|
219
|
+
memberships?: TenantMembership[];
|
|
206
220
|
}
|
|
207
221
|
interface TenantMembership {
|
|
208
222
|
tenant_id: string;
|
|
@@ -295,6 +309,8 @@ interface AuthPlugin {
|
|
|
295
309
|
exists: boolean;
|
|
296
310
|
user?: any;
|
|
297
311
|
}>;
|
|
312
|
+
/** Provision a new tenant for an authenticated user (post-onboarding) */
|
|
313
|
+
provisionTenant?(storeName: string, countryCode: string, accessToken: string): Promise<any>;
|
|
298
314
|
switchServer?(serverName: string): void;
|
|
299
315
|
getAvailableServers?(): string[];
|
|
300
316
|
getActiveServer?(): string | null;
|
|
@@ -418,6 +434,7 @@ declare class StoneScriptPHPAuth implements AuthPlugin {
|
|
|
418
434
|
}>;
|
|
419
435
|
checkOnboardingStatus(identityId: string, platformCode?: string): Promise<any>;
|
|
420
436
|
completeTenantOnboarding(countryCode: string, tenantName: string, accessToken: string): Promise<any>;
|
|
437
|
+
provisionTenant(storeName: string, countryCode: string, accessToken: string): Promise<any>;
|
|
421
438
|
checkEmail(email: string): Promise<{
|
|
422
439
|
exists: boolean;
|
|
423
440
|
user?: any;
|
|
@@ -554,6 +571,7 @@ declare class AuthService {
|
|
|
554
571
|
suggestion?: string;
|
|
555
572
|
}>;
|
|
556
573
|
checkOnboardingStatus(identityId: string, serverName?: string): Promise<any>;
|
|
574
|
+
provisionTenant(storeName: string, countryCode?: string): Promise<any>;
|
|
557
575
|
completeTenantOnboarding(countryCode: string, tenantName: string, serverName?: string): Promise<any>;
|
|
558
576
|
getAvailableAuthServers(): string[];
|
|
559
577
|
getActiveAuthServer(): string | null;
|
|
@@ -839,6 +857,16 @@ interface TenantSelectedEvent {
|
|
|
839
857
|
tenantSlug: string;
|
|
840
858
|
role: string;
|
|
841
859
|
}
|
|
860
|
+
interface OnboardingNeededEvent {
|
|
861
|
+
auth_method: string;
|
|
862
|
+
oauth_provider?: string;
|
|
863
|
+
is_new_identity: boolean;
|
|
864
|
+
identity: {
|
|
865
|
+
email: string;
|
|
866
|
+
display_name?: string;
|
|
867
|
+
picture?: string;
|
|
868
|
+
};
|
|
869
|
+
}
|
|
842
870
|
declare class TenantLoginComponent implements OnInit {
|
|
843
871
|
private auth;
|
|
844
872
|
private providerRegistry;
|
|
@@ -856,6 +884,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
856
884
|
createTenantLinkText: string;
|
|
857
885
|
createTenantLinkAction: string;
|
|
858
886
|
tenantSelected: EventEmitter<TenantSelectedEvent>;
|
|
887
|
+
needsOnboarding: EventEmitter<OnboardingNeededEvent>;
|
|
859
888
|
createTenant: EventEmitter<void>;
|
|
860
889
|
email: string;
|
|
861
890
|
password: string;
|
|
@@ -886,7 +915,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
886
915
|
formatLastAccessed(dateStr: string): string;
|
|
887
916
|
onCreateTenantClick(event: Event): void;
|
|
888
917
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantLoginComponent, never>;
|
|
889
|
-
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"; "createTenant": "createTenant"; }, never, never, true, never>;
|
|
918
|
+
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>;
|
|
890
919
|
}
|
|
891
920
|
|
|
892
921
|
declare class AuthPageComponent implements OnInit {
|
|
@@ -1104,4 +1133,4 @@ declare class TenantRegisterDialogComponent {
|
|
|
1104
1133
|
}
|
|
1105
1134
|
|
|
1106
1135
|
export { AUTH_PLUGIN, ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, FilesService, LoginDialogComponent, MyEnvironmentModel, ProviderRegistryService, RegisterComponent, SigninStatusService, StoneScriptPHPAuth, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus, provideNgxStoneScriptPhpClient };
|
|
1107
|
-
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, RegisterTenantData, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantSelectedEvent, User };
|
|
1136
|
+
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, OnboardingNeededEvent, RegisterTenantData, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantSelectedEvent, User };
|