@livetiles/reach-plugin-types 0.5.0-preview.1183 → 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.
- package/lib/index.d.ts +32 -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: (
|
|
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>;
|
|
@@ -3956,6 +3979,12 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
|
|
|
3956
3979
|
export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
|
|
3957
3980
|
export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
|
|
3958
3981
|
}
|
|
3982
|
+
declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
|
|
3983
|
+
import { Channel } from "libs/reach/util/common/src/channels/index";
|
|
3984
|
+
export const useChannelsQuery: () => {
|
|
3985
|
+
renameChannel: (id: string, name: string) => Promise<Channel>;
|
|
3986
|
+
};
|
|
3987
|
+
}
|
|
3959
3988
|
declare module "libs/reach/util/common/src/reach-2/index" {
|
|
3960
3989
|
export * from "libs/reach/util/common/src/reach-2/FocusStyles";
|
|
3961
3990
|
export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
|
|
@@ -3965,6 +3994,7 @@ declare module "libs/reach/util/common/src/reach-2/index" {
|
|
|
3965
3994
|
export * from "libs/reach/util/common/src/reach-2/nested-groups/index";
|
|
3966
3995
|
export * from "libs/reach/util/common/src/reach-2/resources/index";
|
|
3967
3996
|
export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
|
|
3997
|
+
export * from "libs/reach/util/common/src/reach-2/channels/useChannelsQuery";
|
|
3968
3998
|
}
|
|
3969
3999
|
declare module "libs/reach/util/common/src/reachClassNames" {
|
|
3970
4000
|
export const reachClassNames: string;
|