@livetiles/reach-plugin-types 0.5.0-preview.1184 → 0.5.0-preview.1185

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +25 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3837,6 +3837,7 @@ declare module "libs/reach/util/common/src/user/index" {
3837
3837
  }
3838
3838
  declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3839
3839
  import { GroupRoles } from "libs/reach/util/common/src/user/index";
3840
+ import { SortOrder } from "libs/reach/util/common/src/reach-2/members/IMember";
3840
3841
  export interface INestedGroupUser {
3841
3842
  displayName?: string;
3842
3843
  hasPendingInvitation?: boolean;
@@ -3854,6 +3855,19 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3854
3855
  parentId: string;
3855
3856
  users: INestedGroupUser[];
3856
3857
  }
3858
+ export interface INestedGroupPage {
3859
+ items: INestedGroup[];
3860
+ pageInfo: {
3861
+ hasNextPage: boolean;
3862
+ hasPreviousPage: boolean;
3863
+ };
3864
+ totalCount: number;
3865
+ }
3866
+ export interface ILinkGroup {
3867
+ id: string;
3868
+ name: string;
3869
+ parentId: string;
3870
+ }
3857
3871
  export interface INestedGroupInput {
3858
3872
  description: string;
3859
3873
  id?: string;
@@ -3863,13 +3877,22 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3863
3877
  userId: string;
3864
3878
  }[];
3865
3879
  }
3880
+ export interface INestedGroupsQueryParams {
3881
+ order?: [{
3882
+ [key: string]: SortOrder;
3883
+ }] | null;
3884
+ parentId?: string | null;
3885
+ search?: string | null;
3886
+ skip?: number | null;
3887
+ take?: number | null;
3888
+ }
3866
3889
  }
3867
3890
  declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
3868
- import { INestedGroup, INestedGroupInput } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3891
+ import { INestedGroup, INestedGroupInput, INestedGroupPage, INestedGroupsQueryParams } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3869
3892
  export const useNestedGroupsQuery: () => {
3870
3893
  createNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
3871
3894
  deleteNestedGroup: (groupId: string) => Promise<string>;
3872
- getSubscriptionGroups: (search?: string, parentId?: string) => Promise<INestedGroup[]>;
3895
+ getSubscriptionGroups: (params: INestedGroupsQueryParams) => Promise<INestedGroupPage>;
3873
3896
  linkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
3874
3897
  loadAvailableChildGroups: (groupId: string) => Promise<INestedGroup[]>;
3875
3898
  unlinkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1184",
7
+ "version": "0.5.0-preview.1185",
8
8
  "dependencies": {}
9
9
  }