@livetiles/reach-plugin-types 0.5.0-preview.1066 → 0.5.0-preview.1067
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 +10 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3822,6 +3822,11 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3822
3822
|
name: string;
|
|
3823
3823
|
users: INestedGroupUser[];
|
|
3824
3824
|
}
|
|
3825
|
+
export interface ILinkGroup {
|
|
3826
|
+
id: string;
|
|
3827
|
+
name: string;
|
|
3828
|
+
parentId: string;
|
|
3829
|
+
}
|
|
3825
3830
|
export interface INestedGroupInput {
|
|
3826
3831
|
description: string;
|
|
3827
3832
|
id?: string;
|
|
@@ -3833,12 +3838,16 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3833
3838
|
}
|
|
3834
3839
|
}
|
|
3835
3840
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
3836
|
-
import { INestedGroup, INestedGroupInput } from "libs/reach/util/common/src/reach-2/nested-groups/types";
|
|
3841
|
+
import { ILinkGroup, INestedGroup, INestedGroupInput } from "libs/reach/util/common/src/reach-2/nested-groups/types";
|
|
3837
3842
|
export const useNestedGroupsQuery: () => {
|
|
3838
3843
|
createNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
|
|
3839
3844
|
deleteNestedGroup: (groupId: string) => Promise<string>;
|
|
3845
|
+
linkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
|
|
3846
|
+
loadAvailableChildGroups: (groupId: string) => Promise<ILinkGroup[]>;
|
|
3847
|
+
loadAvailableParentGroups: (groupId: string) => Promise<ILinkGroup[]>;
|
|
3840
3848
|
loadChildGroups: (parentId: string) => Promise<INestedGroup[]>;
|
|
3841
3849
|
loadRootGroups: () => Promise<INestedGroup[]>;
|
|
3850
|
+
unlinkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
|
|
3842
3851
|
updateNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
|
|
3843
3852
|
};
|
|
3844
3853
|
}
|