@yuno-payments/dashboard-api-mfe 0.36.30 → 0.36.31

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.
@@ -243,6 +243,7 @@ export declare class Api extends HttpClient {
243
243
  getProfile<T>(): Promise<AxiosResponse<T, any>>;
244
244
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
245
245
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
246
+ getUsersToImpersonate<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
246
247
  updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
247
248
  inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
248
249
  unInviteUsersV2<T>({ userCode, organizationCode, }: {
@@ -474,7 +475,7 @@ export declare class Api extends HttpClient {
474
475
  executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
475
476
  getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
476
477
  getLanguages<T>(): Promise<AxiosResponse<T, any>>;
477
- getTranslations<T>(): Promise<AxiosResponse<T, any>>;
478
+ getTranslations<T>(lang: string): Promise<AxiosResponse<T, any>>;
478
479
  getCommunications<T>(payload: {
479
480
  start_date: string;
480
481
  end_date: string;
@@ -9,5 +9,5 @@ export declare function useGetDownloadReport(reportId: string, enabled: boolean
9
9
  code: string;
10
10
  }, unknown>;
11
11
  export declare function useGetReportTemplates(enabled: boolean): UseQueryResult<Reports.ITemplate[], unknown>;
12
- export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<CentralizedColumn[], unknown>;
12
+ export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[] | CentralizedColumn[], unknown>;
13
13
  export declare function useGetRefundPdf(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
@@ -7,6 +7,7 @@ export declare function useEmailVerification(email: string): UseQueryResult<User
7
7
  export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
8
8
  export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
9
9
  export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
10
+ export declare function useGetUsersToImpersonate(organizationCode: string): UseQueryResult<User.UsersToImpersonateUser[], AxiosError>;
10
11
  export declare function useCommunications(payload: {
11
12
  start_date: string;
12
13
  end_date: string;
@@ -148,4 +148,14 @@ export declare namespace User {
148
148
  interface ImpersonationEnabledResponse {
149
149
  enabled: 'true' | 'false';
150
150
  }
151
+ interface UsersToImpersonateUser {
152
+ code: string;
153
+ first_name: string;
154
+ last_name: string;
155
+ email: string;
156
+ status: string;
157
+ }
158
+ interface UsersToImpersonateResponse {
159
+ users: UsersToImpersonateUser[];
160
+ }
151
161
  }