File tree Expand file tree Collapse file tree 2 files changed +6
-29
lines changed
packages/rest-typings/src/v1 Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
326300type 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 [ ] ;
You can’t perform that action at this time.
0 commit comments