@yuno-payments/dashboard-api-mfe 0.36.56-multiaccounts-1 → 0.36.56-multiaccounts-3

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.
@@ -261,7 +261,13 @@ export declare class Api extends HttpClient {
261
261
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
262
262
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
263
263
  getUsersToImpersonate(organizationCode: string, accountCodes?: string[]): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
264
- getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<Organization.Account[]>>;
264
+ getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
265
+ response: Array<{
266
+ name: string;
267
+ code_live: string;
268
+ code_testing: string;
269
+ }>;
270
+ }>>;
265
271
  updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
266
272
  inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
267
273
  unInviteUsersV2<T>({ userCode, organizationCode, }: {
@@ -16,8 +16,9 @@ export declare function useGetAccountsByUser(userCode: string): UseQueryResult<{
16
16
  accountsV2ByUser: Organization.Account[];
17
17
  error?: AxiosError;
18
18
  }, unknown>;
19
- export declare function useGetAccountsForImpersonation(organizationCode?: string): UseQueryResult<Array<{
19
+ export declare function useGetAccountsForImpersonation(organizationCode?: string, isTesting?: boolean): UseQueryResult<Array<{
20
20
  label: string;
21
21
  value: string;
22
- code: string;
22
+ code_live: string;
23
+ code_testing: string;
23
24
  }>, unknown>;
package/build/index.d.ts CHANGED
@@ -4571,10 +4571,11 @@ declare function useGetAccountsByUser(userCode: string): UseQueryResult<{
4571
4571
  accountsV2ByUser: Organization.Account[];
4572
4572
  error?: AxiosError;
4573
4573
  }, unknown>;
4574
- declare function useGetAccountsForImpersonation(organizationCode?: string): UseQueryResult<Array<{
4574
+ declare function useGetAccountsForImpersonation(organizationCode?: string, isTesting?: boolean): UseQueryResult<Array<{
4575
4575
  label: string;
4576
4576
  value: string;
4577
- code: string;
4577
+ code_live: string;
4578
+ code_testing: string;
4578
4579
  }>, unknown>;
4579
4580
 
4580
4581
  declare function useGetMenu(): UseQueryResult<Cms.Menu, unknown>;
@@ -5185,7 +5186,13 @@ declare class Api extends HttpClient {
5185
5186
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
5186
5187
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
5187
5188
  getUsersToImpersonate(organizationCode: string, accountCodes?: string[]): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
5188
- getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<Organization.Account[]>>;
5189
+ getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
5190
+ response: Array<{
5191
+ name: string;
5192
+ code_live: string;
5193
+ code_testing: string;
5194
+ }>;
5195
+ }>>;
5189
5196
  updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
5190
5197
  inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
5191
5198
  unInviteUsersV2<T>({ userCode, organizationCode, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-api-mfe",
3
- "version": "0.36.56-multiaccounts-1",
3
+ "version": "0.36.56-multiaccounts-3",
4
4
  "types": "build/index.d.ts",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",