Skip to content

Commit eed2fa2

Browse files
committed
Added rest-typings into changeset
1 parent 3161032 commit eed2fa2

File tree

2 files changed

+6
-29
lines changed

2 files changed

+6
-29
lines changed

.changeset/modern-bikes-sleep.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rocket.chat/rest-typings': minor
3+
'@rocket.chat/meteor': minor
4+
---
5+
6+
Migrated exisiting chat.ignore REST API to the new typed rest typed REst(openAPI) structure

packages/rest-typings/src/v1/chat.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -295,33 +295,7 @@ export const isChatReactProps = ajv.compile<ChatReact>(ChatReactSchema);
295295
* The param `ignore` cannot be boolean, since this is a GET method. Use strings 'true' or 'false' instead.
296296
* @param {string} ignore
297297
*/
298-
type ChatIgnoreUser = {
299-
rid: string;
300-
userId: string;
301-
ignore: string;
302-
};
303-
304-
const ChatIgnoreUserSchema = {
305-
type: 'object',
306-
properties: {
307-
rid: {
308-
type: 'string',
309-
minLength: 1,
310-
},
311-
userId: {
312-
type: 'string',
313-
minLength: 1,
314-
},
315-
ignore: {
316-
type: 'string',
317-
minLength: 1,
318-
},
319-
},
320-
required: ['rid', 'userId', 'ignore'],
321-
additionalProperties: false,
322-
};
323298

324-
export const isChatIgnoreUserProps = ajv.compile<ChatIgnoreUser>(ChatIgnoreUserSchema);
325299

326300
type ChatSearch = PaginatedRequest<{
327301
roomId: IRoom['_id'];
@@ -930,9 +904,6 @@ export type ChatEndpoints = {
930904
'/v1/chat.react': {
931905
POST: (params: ChatReact) => void;
932906
};
933-
'/v1/chat.ignoreUser': {
934-
GET: (params: ChatIgnoreUser) => void;
935-
};
936907
'/v1/chat.search': {
937908
GET: (params: ChatSearch) => {
938909
messages: IMessage[];

0 commit comments

Comments
 (0)