@livetiles/reach-plugin-types 0.5.0-preview.1187 → 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.
Files changed (2) hide show
  1. package/lib/index.d.ts +42 -28
  2. 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 INestedGroupPage {
3859
- items: INestedGroup[];
3860
- pageInfo: {
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 ILinkGroup {
3854
+ export interface INestedGroupUser {
3855
+ displayName?: string;
3856
+ hasPendingInvitation?: boolean;
3867
3857
  id: string;
3868
- name: string;
3869
- parentId: string;
3858
+ mail?: string;
3859
+ role: GroupRoles;
3860
+ userPrincipalName: string;
3870
3861
  }
3871
- export interface INestedGroupInput {
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 INestedGroupsQueryParams {
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, INestedGroupInput, INestedGroupPage, INestedGroupsQueryParams } from "libs/reach/util/common/src/reach-2/nested-groups/types";
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: INestedGroupInput) => Promise<INestedGroup>;
3892
+ createNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
3894
3893
  deleteNestedGroup: (groupId: string) => Promise<string>;
3895
- getSubscriptionGroups: (params: INestedGroupsQueryParams) => Promise<INestedGroupPage>;
3896
- linkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
3894
+ getSubscriptionGroups: (params: ISubscriptionGroupsParams) => Promise<ISubscriptionGroupsResponse>;
3895
+ linkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
3897
3896
  loadAvailableChildGroups: (groupId: string) => Promise<INestedGroup[]>;
3898
- unlinkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
3899
- updateNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
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 { Channel } from "libs/reach/util/common/src/channels/index";
3996
+ import { IChannelResponse, IDeleteChannelParams, IRenameChannelParams } from "libs/reach/util/common/src/reach-2/channels/types";
3984
3997
  export const useChannelsQuery: () => {
3985
- renameChannel: (id: string, name: string) => Promise<Channel>;
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" {
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.1187",
7
+ "version": "0.5.0-preview.1189",
8
8
  "dependencies": {}
9
9
  }