@progalaxyelabs/ngx-stonescriptphp-client 1.14.0 → 1.15.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
|
@@ -185,8 +185,8 @@ declare class MyEnvironmentModel {
|
|
|
185
185
|
|
|
186
186
|
declare const AUTH_PLUGIN: InjectionToken<AuthPlugin>;
|
|
187
187
|
interface User {
|
|
188
|
-
user_id
|
|
189
|
-
id
|
|
188
|
+
user_id?: number;
|
|
189
|
+
id?: string;
|
|
190
190
|
email: string;
|
|
191
191
|
display_name: string;
|
|
192
192
|
photo_url?: string;
|
|
@@ -201,6 +201,8 @@ interface AuthResult {
|
|
|
201
201
|
/** Set by the plugin for body mode — AuthService stores it in TokenService */
|
|
202
202
|
refreshToken?: string;
|
|
203
203
|
needsVerification?: boolean;
|
|
204
|
+
/** Membership returned directly by the login response (avoids extra API call) */
|
|
205
|
+
membership?: TenantMembership;
|
|
204
206
|
}
|
|
205
207
|
interface TenantMembership {
|
|
206
208
|
tenant_id: string;
|
|
@@ -385,6 +387,7 @@ declare class StoneScriptPHPAuth implements AuthPlugin {
|
|
|
385
387
|
private resolveAccessToken;
|
|
386
388
|
private resolveRefreshToken;
|
|
387
389
|
private resolveUser;
|
|
390
|
+
private resolveMembership;
|
|
388
391
|
private resolveErrorMessage;
|
|
389
392
|
private normalizeUser;
|
|
390
393
|
private hashUUID;
|
|
@@ -875,7 +878,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
875
878
|
toggleAuthMethod(event: Event): void;
|
|
876
879
|
onEmailLogin(): Promise<void>;
|
|
877
880
|
onOAuthLogin(provider: AuthProvider): Promise<void>;
|
|
878
|
-
handlePostAuthFlow(): Promise<void>;
|
|
881
|
+
handlePostAuthFlow(loginResult?: AuthResult): Promise<void>;
|
|
879
882
|
selectTenantItem(tenantId: string): void;
|
|
880
883
|
onContinueWithTenant(): Promise<void>;
|
|
881
884
|
selectAndContinue(membership: TenantMembership): Promise<void>;
|
|
@@ -962,7 +965,7 @@ declare class RegisterComponent {
|
|
|
962
965
|
|
|
963
966
|
interface TenantCreatedEvent {
|
|
964
967
|
user: {
|
|
965
|
-
id
|
|
968
|
+
id?: string;
|
|
966
969
|
email: string;
|
|
967
970
|
display_name: string;
|
|
968
971
|
};
|