@livetiles/reach-plugin-types 0.5.0-preview.1192 → 0.5.0-preview.1193

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 +50 -22
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3395,6 +3395,33 @@ declare module "libs/reach/util/common/src/plugins/index" {
3395
3395
  export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
3396
3396
  export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
3397
3397
  }
3398
+ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3399
+ export interface ICreateChannelParams {
3400
+ groupIds: string[];
3401
+ name: string;
3402
+ }
3403
+ export interface ICreateChannelResponse {
3404
+ groups: {
3405
+ groupId: string;
3406
+ permission: number;
3407
+ }[];
3408
+ name: string;
3409
+ }
3410
+ export interface IDeleteChannelParams {
3411
+ channelId: string;
3412
+ moveContentToChannelId?: string;
3413
+ }
3414
+ export interface IDeleteChannelResponse {
3415
+ name: string;
3416
+ }
3417
+ export interface IRenameChannelParams {
3418
+ channelId: string;
3419
+ name: string;
3420
+ }
3421
+ export interface IRenameChannelResponse {
3422
+ name: string;
3423
+ }
3424
+ }
3398
3425
  declare module "libs/reach/util/common/src/reach-2/hooks/useErrorHandler" {
3399
3426
  import { GraphQLError } from 'graphql';
3400
3427
  const useErrorHandler: () => {
@@ -3410,25 +3437,12 @@ declare module "libs/reach/util/common/src/reach-2/hooks/index" {
3410
3437
  export { default as useErrorHandler } from "libs/reach/util/common/src/reach-2/hooks/useErrorHandler";
3411
3438
  export * from "libs/reach/util/common/src/reach-2/hooks/usePageScrollDirectionForTogglingControls";
3412
3439
  }
3413
- declare module "libs/reach/util/common/src/reach-2/channels/types" {
3414
- export interface IChannelResponse {
3415
- id: string;
3416
- name: string;
3417
- }
3418
- export interface IDeleteChannelParams {
3419
- channelId: string;
3420
- moveContentToChannelId?: string;
3421
- }
3422
- export interface IRenameChannelParams {
3423
- channelId: string;
3424
- name: string;
3425
- }
3426
- }
3427
3440
  declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
3428
- import { IChannelResponse, IDeleteChannelParams, IRenameChannelParams } from "libs/reach/util/common/src/reach-2/channels/types";
3441
+ import { ICreateChannelParams, ICreateChannelResponse, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3429
3442
  export const useChannelsQuery: () => {
3430
- deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IChannelResponse>;
3431
- renameChannel: (channel: IRenameChannelParams) => Promise<IChannelResponse>;
3443
+ createChannel: (channel: ICreateChannelParams) => Promise<ICreateChannelResponse>;
3444
+ deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IDeleteChannelResponse>;
3445
+ renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse>;
3432
3446
  };
3433
3447
  }
3434
3448
  declare module "libs/reach/util/common/src/reach-2/FocusStyles" {
@@ -3861,6 +3875,22 @@ declare module "libs/reach/util/common/src/user/index" {
3861
3875
  declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3862
3876
  import { GroupRoles } from "libs/reach/util/common/src/user/index";
3863
3877
  import { SortOrder } from "libs/reach/util/common/src/reach-2/members/IMember";
3878
+ interface IFlatGroupsItem {
3879
+ name: string;
3880
+ }
3881
+ export interface IFlatGroupsQueryParams {
3882
+ search: string;
3883
+ skip: number;
3884
+ take: number;
3885
+ }
3886
+ export interface IFlatGroupsQueryResponse {
3887
+ items: IFlatGroupsItem[];
3888
+ totalCount: number;
3889
+ }
3890
+ export interface ILinkNestedGroupParams {
3891
+ childrenIds: string[];
3892
+ parentId: string;
3893
+ }
3864
3894
  export interface INestedGroup {
3865
3895
  description: string;
3866
3896
  groupPath?: string;
@@ -3870,10 +3900,6 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3870
3900
  parentId: string;
3871
3901
  users: INestedGroupUser[];
3872
3902
  }
3873
- export interface ILinkNestedGroupParams {
3874
- childrenIds: string[];
3875
- parentId: string;
3876
- }
3877
3903
  export interface INestedGroupUser {
3878
3904
  displayName?: string;
3879
3905
  hasPendingInvitation?: boolean;
@@ -3910,10 +3936,11 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3910
3936
  }
3911
3937
  }
3912
3938
  declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
3913
- import { ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams, INestedGroupsQueryParams, INestedGroupsQueryResponse } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3939
+ import { IFlatGroupsQueryParams, IFlatGroupsQueryResponse, ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams, INestedGroupsQueryParams, INestedGroupsQueryResponse } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3914
3940
  export const useNestedGroupsQuery: () => {
3915
3941
  createNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
3916
3942
  deleteNestedGroup: (groupId: string) => Promise<string>;
3943
+ getFlatGroups: (params?: IFlatGroupsQueryParams) => Promise<IFlatGroupsQueryResponse[]>;
3917
3944
  getChildGroups: (groupId: string) => Promise<INestedGroup[]>;
3918
3945
  getNestedGroups: (params: INestedGroupsQueryParams) => Promise<INestedGroupsQueryResponse>;
3919
3946
  linkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
@@ -4011,6 +4038,7 @@ declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
4011
4038
  export function useReach2Theme(): any;
4012
4039
  }
4013
4040
  declare module "libs/reach/util/common/src/reach-2/index" {
4041
+ export * from "libs/reach/util/common/src/reach-2/channels/types";
4014
4042
  export * from "libs/reach/util/common/src/reach-2/channels/useChannelsQuery";
4015
4043
  export * from "libs/reach/util/common/src/reach-2/FocusStyles";
4016
4044
  export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
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.1192",
7
+ "version": "0.5.0-preview.1193",
8
8
  "dependencies": {}
9
9
  }