@livetiles/reach-plugin-types 0.5.0-preview.1235 → 0.5.0-preview.1237

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 +6 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3874,6 +3874,10 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3874
3874
  items: IChannelGroup[];
3875
3875
  totalCount: number;
3876
3876
  }
3877
+ export interface IChannelValidationErrorResponse {
3878
+ field: string;
3879
+ message: string;
3880
+ }
3877
3881
  }
3878
3882
  declare module "libs/reach/util/common/src/reach-2/hooks/useErrorHandler" {
3879
3883
  import { GraphQLError } from 'graphql';
@@ -3892,14 +3896,14 @@ declare module "libs/reach/util/common/src/reach-2/hooks/index" {
3892
3896
  }
3893
3897
  declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
3894
3898
  import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
3895
- import { IChannel, IChannelDetails, IChannelGroup, IChannelGroupsQueryParams, IChannelGroupsQueryResponse, IChannelQueryResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse, IUpdateChannelGroupPermissionParams, IUpdateChannelGroupsParams, IUpdateChannelGroupsResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3899
+ import { IChannel, IChannelDetails, IChannelGroup, IChannelGroupsQueryParams, IChannelGroupsQueryResponse, IChannelQueryResponse, IChannelValidationErrorResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse, IUpdateChannelGroupPermissionParams, IUpdateChannelGroupsParams, IUpdateChannelGroupsResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3896
3900
  export const useChannelsQuery: () => {
3897
3901
  createChannel: (channel: ICreateChannelParams) => Promise<IChannel>;
3898
3902
  deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IDeleteChannelResponse>;
3899
3903
  getChannels: (params: IPagedQueryParams) => Promise<IChannelQueryResponse>;
3900
3904
  getChannelDetails: (id: string) => Promise<IChannelDetails>;
3901
3905
  getChannelGroups: (params: IChannelGroupsQueryParams) => Promise<IChannelGroupsQueryResponse>;
3902
- renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse>;
3906
+ renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse | IChannelValidationErrorResponse>;
3903
3907
  updateChannelGroupPermission: (id: string, group: IUpdateChannelGroupPermissionParams) => Promise<IChannelGroup>;
3904
3908
  updateChannelGroups: (channel: IUpdateChannelGroupsParams) => Promise<IUpdateChannelGroupsResponse>;
3905
3909
  };
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.1235",
7
+ "version": "0.5.0-preview.1237",
8
8
  "dependencies": {}
9
9
  }