@livetiles/reach-plugin-types 0.5.0-preview.1209 → 0.5.0-preview.1210

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 +5 -12
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3789,6 +3789,7 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3789
3789
  }[];
3790
3790
  id: string;
3791
3791
  name: string;
3792
+ totalGroups: number;
3792
3793
  }
3793
3794
  export interface IChannelQueryResponse {
3794
3795
  items: IChannel[];
@@ -3798,26 +3799,19 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3798
3799
  groupIds: string[];
3799
3800
  name: string;
3800
3801
  }
3801
- export interface ICreateChannelResponse {
3802
- groups: {
3803
- id: string;
3804
- permission: number;
3805
- }[];
3806
- name: string;
3807
- }
3808
3802
  export interface IDeleteChannelParams {
3809
3803
  id: string;
3810
3804
  moveContentToChannelId?: string;
3811
3805
  }
3812
3806
  export interface IDeleteChannelResponse {
3813
- name: string;
3807
+ id: string;
3814
3808
  }
3815
3809
  export interface IRenameChannelParams {
3816
3810
  id: string;
3817
3811
  name: string;
3818
3812
  }
3819
3813
  export interface IRenameChannelResponse {
3820
- name: string;
3814
+ id: string;
3821
3815
  }
3822
3816
  export interface IChannelGroupUser {
3823
3817
  displayName: string;
@@ -3831,7 +3825,6 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3831
3825
  users: IChannelGroupUser[];
3832
3826
  }
3833
3827
  export interface IChannelDetails {
3834
- groups: IChannelGroup[];
3835
3828
  id: string;
3836
3829
  name: string;
3837
3830
  }
@@ -3876,9 +3869,9 @@ declare module "libs/reach/util/common/src/reach-2/types" {
3876
3869
  }
3877
3870
  declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
3878
3871
  import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
3879
- import { IChannelDetails, IChannelQueryResponse, ICreateChannelParams, ICreateChannelResponse, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3872
+ import { IChannel, IChannelDetails, IChannelQueryResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3880
3873
  export const useChannelsQuery: () => {
3881
- createChannel: (channel: ICreateChannelParams) => Promise<ICreateChannelResponse>;
3874
+ createChannel: (channel: ICreateChannelParams) => Promise<IChannel>;
3882
3875
  deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IDeleteChannelResponse>;
3883
3876
  getChannels: (params: IPagedQueryParams) => Promise<IChannelQueryResponse>;
3884
3877
  getChannelDetails: (id: string) => Promise<IChannelDetails>;
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.1209",
7
+ "version": "0.5.0-preview.1210",
8
8
  "dependencies": {}
9
9
  }