@livetiles/reach-plugin-types 0.5.0-preview.1211 → 0.5.0-preview.1213

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 +36 -25
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3781,11 +3781,35 @@ declare module "libs/reach/util/common/src/plugins/index" {
3781
3781
  export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
3782
3782
  export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
3783
3783
  }
3784
+ declare module "libs/reach/util/common/src/reach-2/types" {
3785
+ export enum SortOrder {
3786
+ ASC = "ASC",
3787
+ DESC = "DESC"
3788
+ }
3789
+ export interface ISortInfo {
3790
+ sortField?: string;
3791
+ sortOrder?: SortOrder;
3792
+ }
3793
+ export interface IFilterOptions {
3794
+ currentPage?: number;
3795
+ search?: string;
3796
+ sortInfo?: ISortInfo;
3797
+ }
3798
+ export interface IPagedQueryParams {
3799
+ order?: [{
3800
+ [key: string]: SortOrder;
3801
+ }];
3802
+ searchText?: string;
3803
+ skip?: number;
3804
+ take?: number;
3805
+ }
3806
+ }
3784
3807
  declare module "libs/reach/util/common/src/reach-2/channels/types" {
3808
+ import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
3785
3809
  export interface IChannel {
3786
3810
  groups: {
3787
3811
  id: string;
3788
- name: number;
3812
+ name: string;
3789
3813
  }[];
3790
3814
  id: string;
3791
3815
  name: string;
@@ -3828,6 +3852,15 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3828
3852
  id: string;
3829
3853
  name: string;
3830
3854
  }
3855
+ export interface IChannelGroupsQueryParams extends IPagedQueryParams {
3856
+ id: string;
3857
+ }
3858
+ export interface IChannelGroupsQueryResponse {
3859
+ hasNextPage: boolean;
3860
+ hasPreviousPage: boolean;
3861
+ items: IChannelGroup[];
3862
+ totalCount: number;
3863
+ }
3831
3864
  }
3832
3865
  declare module "libs/reach/util/common/src/reach-2/hooks/useErrorHandler" {
3833
3866
  import { GraphQLError } from 'graphql';
@@ -3844,37 +3877,15 @@ declare module "libs/reach/util/common/src/reach-2/hooks/index" {
3844
3877
  export { default as useErrorHandler } from "libs/reach/util/common/src/reach-2/hooks/useErrorHandler";
3845
3878
  export * from "libs/reach/util/common/src/reach-2/hooks/usePageScrollDirectionForTogglingControls";
3846
3879
  }
3847
- declare module "libs/reach/util/common/src/reach-2/types" {
3848
- export enum SortOrder {
3849
- ASC = "ASC",
3850
- DESC = "DESC"
3851
- }
3852
- export interface ISortInfo {
3853
- sortField?: string;
3854
- sortOrder?: SortOrder;
3855
- }
3856
- export interface IFilterOptions {
3857
- currentPage?: number;
3858
- search?: string;
3859
- sortInfo?: ISortInfo;
3860
- }
3861
- export interface IPagedQueryParams {
3862
- order?: [{
3863
- [key: string]: SortOrder;
3864
- }];
3865
- searchText?: string;
3866
- skip?: number;
3867
- take?: number;
3868
- }
3869
- }
3870
3880
  declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
3871
3881
  import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
3872
- import { IChannel, IChannelDetails, IChannelQueryResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3882
+ import { IChannel, IChannelDetails, IChannelGroupsQueryParams, IChannelGroupsQueryResponse, IChannelQueryResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3873
3883
  export const useChannelsQuery: () => {
3874
3884
  createChannel: (channel: ICreateChannelParams) => Promise<IChannel>;
3875
3885
  deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IDeleteChannelResponse>;
3876
3886
  getChannels: (params: IPagedQueryParams) => Promise<IChannelQueryResponse>;
3877
3887
  getChannelDetails: (id: string) => Promise<IChannelDetails>;
3888
+ getChannelGroups: (params: IChannelGroupsQueryParams) => Promise<IChannelGroupsQueryResponse>;
3878
3889
  renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse>;
3879
3890
  };
3880
3891
  }
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.1211",
7
+ "version": "0.5.0-preview.1213",
8
8
  "dependencies": {}
9
9
  }