@progalaxyelabs/ngx-stonescriptphp-client 1.15.0 → 1.16.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/index.d.ts
CHANGED
|
@@ -127,6 +127,14 @@ declare class MyEnvironmentModel {
|
|
|
127
127
|
filesServer?: {
|
|
128
128
|
host: string;
|
|
129
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Chat service server configuration.
|
|
132
|
+
* Used by Angular portals to establish authenticated WebSocket connections.
|
|
133
|
+
* @example { host: 'wss://chat.progalaxyelabs.com' }
|
|
134
|
+
*/
|
|
135
|
+
chatServer?: {
|
|
136
|
+
host: string;
|
|
137
|
+
};
|
|
130
138
|
/**
|
|
131
139
|
* Authentication configuration.
|
|
132
140
|
* @default { mode: 'cookie', refreshEndpoint: '/auth/refresh', useCsrf: true }
|
|
@@ -203,6 +211,20 @@ interface AuthResult {
|
|
|
203
211
|
needsVerification?: boolean;
|
|
204
212
|
/** Membership returned directly by the login response (avoids extra API call) */
|
|
205
213
|
membership?: TenantMembership;
|
|
214
|
+
/** True when the user is new (has identity but no tenant membership) */
|
|
215
|
+
isNewIdentity?: boolean;
|
|
216
|
+
/** Auth method used (e.g., 'oauth', 'emailPassword') */
|
|
217
|
+
authMethod?: string;
|
|
218
|
+
/** OAuth provider used (e.g., 'google') */
|
|
219
|
+
oauthProvider?: string;
|
|
220
|
+
/** Identity info for new users (used with isNewIdentity) */
|
|
221
|
+
identity?: {
|
|
222
|
+
email: string;
|
|
223
|
+
display_name?: string;
|
|
224
|
+
picture?: string;
|
|
225
|
+
};
|
|
226
|
+
/** Multiple tenant memberships for tenant selection flow */
|
|
227
|
+
memberships?: TenantMembership[];
|
|
206
228
|
}
|
|
207
229
|
interface TenantMembership {
|
|
208
230
|
tenant_id: string;
|
|
@@ -295,6 +317,8 @@ interface AuthPlugin {
|
|
|
295
317
|
exists: boolean;
|
|
296
318
|
user?: any;
|
|
297
319
|
}>;
|
|
320
|
+
/** Provision a new tenant for an authenticated user (post-onboarding) */
|
|
321
|
+
provisionTenant?(storeName: string, countryCode: string, accessToken: string): Promise<any>;
|
|
298
322
|
switchServer?(serverName: string): void;
|
|
299
323
|
getAvailableServers?(): string[];
|
|
300
324
|
getActiveServer?(): string | null;
|
|
@@ -418,6 +442,7 @@ declare class StoneScriptPHPAuth implements AuthPlugin {
|
|
|
418
442
|
}>;
|
|
419
443
|
checkOnboardingStatus(identityId: string, platformCode?: string): Promise<any>;
|
|
420
444
|
completeTenantOnboarding(countryCode: string, tenantName: string, accessToken: string): Promise<any>;
|
|
445
|
+
provisionTenant(storeName: string, countryCode: string, accessToken: string): Promise<any>;
|
|
421
446
|
checkEmail(email: string): Promise<{
|
|
422
447
|
exists: boolean;
|
|
423
448
|
user?: any;
|
|
@@ -554,6 +579,7 @@ declare class AuthService {
|
|
|
554
579
|
suggestion?: string;
|
|
555
580
|
}>;
|
|
556
581
|
checkOnboardingStatus(identityId: string, serverName?: string): Promise<any>;
|
|
582
|
+
provisionTenant(storeName: string, countryCode?: string): Promise<any>;
|
|
557
583
|
completeTenantOnboarding(countryCode: string, tenantName: string, serverName?: string): Promise<any>;
|
|
558
584
|
getAvailableAuthServers(): string[];
|
|
559
585
|
getActiveAuthServer(): string | null;
|
|
@@ -839,6 +865,16 @@ interface TenantSelectedEvent {
|
|
|
839
865
|
tenantSlug: string;
|
|
840
866
|
role: string;
|
|
841
867
|
}
|
|
868
|
+
interface OnboardingNeededEvent {
|
|
869
|
+
auth_method: string;
|
|
870
|
+
oauth_provider?: string;
|
|
871
|
+
is_new_identity: boolean;
|
|
872
|
+
identity: {
|
|
873
|
+
email: string;
|
|
874
|
+
display_name?: string;
|
|
875
|
+
picture?: string;
|
|
876
|
+
};
|
|
877
|
+
}
|
|
842
878
|
declare class TenantLoginComponent implements OnInit {
|
|
843
879
|
private auth;
|
|
844
880
|
private providerRegistry;
|
|
@@ -856,6 +892,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
856
892
|
createTenantLinkText: string;
|
|
857
893
|
createTenantLinkAction: string;
|
|
858
894
|
tenantSelected: EventEmitter<TenantSelectedEvent>;
|
|
895
|
+
needsOnboarding: EventEmitter<OnboardingNeededEvent>;
|
|
859
896
|
createTenant: EventEmitter<void>;
|
|
860
897
|
email: string;
|
|
861
898
|
password: string;
|
|
@@ -886,7 +923,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
886
923
|
formatLastAccessed(dateStr: string): string;
|
|
887
924
|
onCreateTenantClick(event: Event): void;
|
|
888
925
|
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>;
|
|
926
|
+
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
927
|
}
|
|
891
928
|
|
|
892
929
|
declare class AuthPageComponent implements OnInit {
|
|
@@ -1104,4 +1141,4 @@ declare class TenantRegisterDialogComponent {
|
|
|
1104
1141
|
}
|
|
1105
1142
|
|
|
1106
1143
|
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 };
|
|
1144
|
+
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, OnboardingNeededEvent, RegisterTenantData, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantSelectedEvent, User };
|