@livetiles/reach-plugin-types 0.5.0-preview.1205 → 0.5.0-preview.1206
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.
- package/lib/index.d.ts +8 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3940,17 +3940,15 @@ declare module "libs/reach/util/common/src/reach-2/members/useMembersQuery" {
|
|
|
3940
3940
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
3941
3941
|
import { GroupRoles } from "libs/reach/util/common/src/user/index";
|
|
3942
3942
|
import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
|
|
3943
|
-
interface IFlatGroupsItem {
|
|
3943
|
+
export interface IFlatGroupsItem {
|
|
3944
|
+
id: string;
|
|
3944
3945
|
name: string;
|
|
3945
3946
|
}
|
|
3946
|
-
export interface IFlatGroupsQueryParams {
|
|
3947
|
-
search: string;
|
|
3948
|
-
skip: number;
|
|
3949
|
-
take: number;
|
|
3950
|
-
}
|
|
3951
3947
|
export interface IFlatGroupsQueryResponse {
|
|
3952
3948
|
items: IFlatGroupsItem[];
|
|
3953
|
-
|
|
3949
|
+
pageInfo: {
|
|
3950
|
+
hasNextPage: boolean;
|
|
3951
|
+
};
|
|
3954
3952
|
}
|
|
3955
3953
|
export interface ILinkNestedGroupParams {
|
|
3956
3954
|
childrenIds: string[];
|
|
@@ -3995,12 +3993,13 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3995
3993
|
}
|
|
3996
3994
|
}
|
|
3997
3995
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
3998
|
-
import {
|
|
3996
|
+
import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
|
|
3997
|
+
import { IFlatGroupsQueryResponse, ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams, INestedGroupsQueryParams, INestedGroupsQueryResponse } from "libs/reach/util/common/src/reach-2/nested-groups/types";
|
|
3999
3998
|
export const useNestedGroupsQuery: () => {
|
|
4000
3999
|
createNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
|
|
4001
4000
|
deleteNestedGroup: (groupId: string) => Promise<string>;
|
|
4002
|
-
getFlatGroups: (params?: IFlatGroupsQueryParams) => Promise<IFlatGroupsQueryResponse[]>;
|
|
4003
4001
|
getChildGroups: (groupId: string) => Promise<INestedGroup[]>;
|
|
4002
|
+
getFlatGroups: (params?: IPagedQueryParams) => Promise<IFlatGroupsQueryResponse>;
|
|
4004
4003
|
getNestedGroups: (params: INestedGroupsQueryParams) => Promise<INestedGroupsQueryResponse>;
|
|
4005
4004
|
linkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|
|
4006
4005
|
unlinkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|