@yuno-payments/dashboard-api-mfe 0.36.5 → 0.36.6

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.
@@ -235,6 +235,7 @@ export declare class Api extends HttpClient {
235
235
  deleteScheduledReport<T>(reportCode: string): Promise<AxiosResponse<T>>;
236
236
  getProfile<T>(): Promise<AxiosResponse<T, any>>;
237
237
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
238
+ getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
238
239
  updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
239
240
  inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
240
241
  unInviteUsersV2<T>({ userCode, organizationCode, }: {
@@ -6,3 +6,4 @@ export declare function useGetPermissions(organizationCode: any, accountCode: an
6
6
  export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
7
7
  export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
8
8
  export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
9
+ export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
@@ -145,4 +145,7 @@ export declare namespace User {
145
145
  interface ImpersonationUsersResponse {
146
146
  result: ImpersonationUser[];
147
147
  }
148
+ interface ImpersonationEnabledResponse {
149
+ enabled: 'true' | 'false';
150
+ }
148
151
  }