@yuno-payments/dashboard-api-mfe 1.6.2 → 1.6.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.
@@ -397,6 +397,17 @@ export declare class Api extends HttpClient {
397
397
  accountCode?: string;
398
398
  }): Promise<AxiosResponse<FeatureFlagsResult, any>>;
399
399
  getPermissionsCatalog<T>(): Promise<AxiosResponse<T>>;
400
+ getOrgRolesPermissions<T>(): Promise<AxiosResponse<T>>;
401
+ getOrgPermissionsCatalog<T>(): Promise<AxiosResponse<T>>;
402
+ createOrgRole<T>(payload: any): Promise<AxiosResponse<T>>;
403
+ editOrgRole<T>({ payload, id }: {
404
+ payload: any;
405
+ id: any;
406
+ }): Promise<AxiosResponse<T>>;
407
+ deleteOrgRole<T>(id: any): Promise<AxiosResponse<T>>;
408
+ getOrgRoleAssignments<T>(): Promise<AxiosResponse<T>>;
409
+ assignOrgRole<T>(payload: any): Promise<AxiosResponse<T>>;
410
+ unassignOrgRole<T>(userCode: string): Promise<AxiosResponse<T>>;
400
411
  startUserExport<T>(params: Team.StartUserExportParams): Promise<AxiosResponse<T>>;
401
412
  getUserExportStatus<T>({ exportCode, }: {
402
413
  exportCode: string;
@@ -6,4 +6,7 @@ export declare function useSetCustodian(): UseMutationResult<Team.SetRoleRespons
6
6
  export declare function useCreateRoles(): UseMutationResult<Team.NewRoleResponse, AxiosError>;
7
7
  export declare function useEditRoles(): UseMutationResult<Team.NewRoleResponse, AxiosError>;
8
8
  export declare function useDeleteRoles(): UseMutationResult<Team.NewRoleResponse, unknown>;
9
+ export declare function useCreateOrgRole(): UseMutationResult<Team.NewRoleResponse, AxiosError>;
10
+ export declare function useEditOrgRole(): UseMutationResult<Team.NewRoleResponse, AxiosError>;
11
+ export declare function useDeleteOrgRole(): UseMutationResult<Team.NewRoleResponse, unknown>;
9
12
  export declare function useStartUserExport(): UseMutationResult<Team.StartUserExportResponse, AxiosError, Team.UserExportRequest>;
@@ -16,6 +16,8 @@ export declare function usePostMembersPaginatedV2({ organizationCode, accountCod
16
16
  export declare function useGetRoles(): UseQueryResult<Team.RolesList[], AxiosError>;
17
17
  export declare function useGetRolesPermissions(): UseQueryResult<Team.ListRolesPermissions[], unknown>;
18
18
  export declare function useGetPermissionsCatalog(): UseQueryResult<Team.CatalogPermissions[], unknown>;
19
+ export declare function useGetOrgRolesPermissions(): UseQueryResult<Team.ListRolesPermissions[], unknown>;
20
+ export declare function useGetOrgPermissionsCatalog(): UseQueryResult<Team.CatalogPermissions[], unknown>;
19
21
  export declare function useGetUserExportStatus({ exportCode, enabled, }: {
20
22
  exportCode: string;
21
23
  enabled?: boolean;
@@ -1,3 +1,4 @@
1
+ export type RoleType = 'ACCOUNT' | 'ORGANIZATION';
1
2
  export declare namespace Team {
2
3
  type TeamResponse = {
3
4
  content: {