@asgardeo/react 0.5.4 → 0.5.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.
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig } from '@asgardeo/browser';
18
+ import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig, AllOrganizationsApiResponse, TokenResponse } from '@asgardeo/browser';
19
19
  import { AsgardeoReactConfig } from './models/config';
20
20
  /**
21
21
  * Client for mplementing Asgardeo in React applications.
@@ -31,9 +31,10 @@ declare class AsgardeoReactClient<T extends AsgardeoReactConfig = AsgardeoReactC
31
31
  getUser(options?: any): Promise<User>;
32
32
  getDecodedIdToken(sessionId?: string): Promise<IdToken>;
33
33
  getUserProfile(options?: any): Promise<UserProfile>;
34
- getOrganizations(options?: any): Promise<Organization[]>;
34
+ getMyOrganizations(options?: any, sessionId?: string): Promise<Organization[]>;
35
+ getAllOrganizations(options?: any, sessionId?: string): Promise<AllOrganizationsApiResponse>;
35
36
  getCurrentOrganization(): Promise<Organization | null>;
36
- switchOrganization(organization: Organization): Promise<void>;
37
+ switchOrganization(organization: Organization, sessionId?: string): Promise<TokenResponse | Response>;
37
38
  isLoading(): boolean;
38
39
  isInitialized(): Promise<boolean>;
39
40
  isSignedIn(): Promise<boolean>;
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { GetAllOrganizationsConfig as BaseGetAllOrganizationsConfig, PaginatedOrganizationsResponse } from '@asgardeo/browser';
18
+ import { GetAllOrganizationsConfig as BaseGetAllOrganizationsConfig, AllOrganizationsApiResponse } from '@asgardeo/browser';
19
19
  /**
20
20
  * Configuration for the getAllOrganizations request (React-specific)
21
21
  */
@@ -69,5 +69,5 @@ export interface GetAllOrganizationsConfig extends Omit<BaseGetAllOrganizationsC
69
69
  * }
70
70
  * ```
71
71
  */
72
- declare const getAllOrganizations: ({ fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<PaginatedOrganizationsResponse>;
72
+ declare const getAllOrganizations: ({ fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<AllOrganizationsApiResponse>;
73
73
  export default getAllOrganizations;