@livetiles/reach-plugin-types 0.5.0-preview.1188 → 0.5.0-preview.1189
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 +42 -28
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3838,14 +3838,6 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
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
3840
|
import { SortOrder } from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
3841
|
-
export interface INestedGroupUser {
|
|
3842
|
-
displayName?: string;
|
|
3843
|
-
hasPendingInvitation?: boolean;
|
|
3844
|
-
id: string;
|
|
3845
|
-
mail?: string;
|
|
3846
|
-
role: GroupRoles;
|
|
3847
|
-
userPrincipalName: string;
|
|
3848
|
-
}
|
|
3849
3841
|
export interface INestedGroup {
|
|
3850
3842
|
description: string;
|
|
3851
3843
|
groupPath?: string;
|
|
@@ -3855,20 +3847,19 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3855
3847
|
parentId: string;
|
|
3856
3848
|
users: INestedGroupUser[];
|
|
3857
3849
|
}
|
|
3858
|
-
export interface
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
hasNextPage: boolean;
|
|
3862
|
-
hasPreviousPage: boolean;
|
|
3863
|
-
};
|
|
3864
|
-
totalCount: number;
|
|
3850
|
+
export interface ILinkNestedGroupParams {
|
|
3851
|
+
childrenIds: string[];
|
|
3852
|
+
parentId: string;
|
|
3865
3853
|
}
|
|
3866
|
-
export interface
|
|
3854
|
+
export interface INestedGroupUser {
|
|
3855
|
+
displayName?: string;
|
|
3856
|
+
hasPendingInvitation?: boolean;
|
|
3867
3857
|
id: string;
|
|
3868
|
-
|
|
3869
|
-
|
|
3858
|
+
mail?: string;
|
|
3859
|
+
role: GroupRoles;
|
|
3860
|
+
userPrincipalName: string;
|
|
3870
3861
|
}
|
|
3871
|
-
export interface
|
|
3862
|
+
export interface INestedGroupInputParams {
|
|
3872
3863
|
description: string;
|
|
3873
3864
|
id?: string;
|
|
3874
3865
|
name: string;
|
|
@@ -3877,7 +3868,7 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3877
3868
|
userId: string;
|
|
3878
3869
|
}[];
|
|
3879
3870
|
}
|
|
3880
|
-
export interface
|
|
3871
|
+
export interface ISubscriptionGroupsParams {
|
|
3881
3872
|
order?: [{
|
|
3882
3873
|
[key: string]: SortOrder;
|
|
3883
3874
|
}] | null;
|
|
@@ -3886,17 +3877,25 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3886
3877
|
skip?: number | null;
|
|
3887
3878
|
take?: number | null;
|
|
3888
3879
|
}
|
|
3880
|
+
export interface ISubscriptionGroupsResponse {
|
|
3881
|
+
items: INestedGroup[];
|
|
3882
|
+
pageInfo: {
|
|
3883
|
+
hasNextPage: boolean;
|
|
3884
|
+
hasPreviousPage: boolean;
|
|
3885
|
+
};
|
|
3886
|
+
totalCount: number;
|
|
3887
|
+
}
|
|
3889
3888
|
}
|
|
3890
3889
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
3891
|
-
import { INestedGroup,
|
|
3890
|
+
import { ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams, ISubscriptionGroupsParams, ISubscriptionGroupsResponse } from "libs/reach/util/common/src/reach-2/nested-groups/types";
|
|
3892
3891
|
export const useNestedGroupsQuery: () => {
|
|
3893
|
-
createNestedGroup: (inputGroup:
|
|
3892
|
+
createNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
|
|
3894
3893
|
deleteNestedGroup: (groupId: string) => Promise<string>;
|
|
3895
|
-
getSubscriptionGroups: (params:
|
|
3896
|
-
linkNestedGroup: (
|
|
3894
|
+
getSubscriptionGroups: (params: ISubscriptionGroupsParams) => Promise<ISubscriptionGroupsResponse>;
|
|
3895
|
+
linkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|
|
3897
3896
|
loadAvailableChildGroups: (groupId: string) => Promise<INestedGroup[]>;
|
|
3898
|
-
unlinkNestedGroup: (
|
|
3899
|
-
updateNestedGroup: (inputGroup:
|
|
3897
|
+
unlinkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|
|
3898
|
+
updateNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
|
|
3900
3899
|
};
|
|
3901
3900
|
}
|
|
3902
3901
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/index" {
|
|
@@ -3979,10 +3978,25 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
|
|
|
3979
3978
|
export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
|
|
3980
3979
|
export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
|
|
3981
3980
|
}
|
|
3981
|
+
declare module "libs/reach/util/common/src/reach-2/channels/types" {
|
|
3982
|
+
export interface IChannelResponse {
|
|
3983
|
+
id: string;
|
|
3984
|
+
name: string;
|
|
3985
|
+
}
|
|
3986
|
+
export interface IDeleteChannelParams {
|
|
3987
|
+
channelId: string;
|
|
3988
|
+
moveContentToChannelId?: string;
|
|
3989
|
+
}
|
|
3990
|
+
export interface IRenameChannelParams {
|
|
3991
|
+
channelId: string;
|
|
3992
|
+
name: string;
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3982
3995
|
declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
|
|
3983
|
-
import {
|
|
3996
|
+
import { IChannelResponse, IDeleteChannelParams, IRenameChannelParams } from "libs/reach/util/common/src/reach-2/channels/types";
|
|
3984
3997
|
export const useChannelsQuery: () => {
|
|
3985
|
-
|
|
3998
|
+
deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IChannelResponse>;
|
|
3999
|
+
renameChannel: (channel: IRenameChannelParams) => Promise<IChannelResponse>;
|
|
3986
4000
|
};
|
|
3987
4001
|
}
|
|
3988
4002
|
declare module "libs/reach/util/common/src/reach-2/index" {
|