File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const livechatIntegrationsEndpoints = API.v1.get(
1919 properties : {
2020 settings : {
2121 type : 'array' ,
22- items : { $ref : '#/components/schemas/ISetting ' } ,
22+ items : { type : 'object ' } ,
2323 } ,
2424 success : { type : 'boolean' , enum : [ true ] } ,
2525 } ,
@@ -36,5 +36,5 @@ type LivechatIntegrationsEndpoints = ExtractRoutesFromAPI<typeof livechatIntegra
3636
3737declare module '@rocket.chat/rest-typings' {
3838 // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-interface
39- interface Endpoints extends LivechatIntegrationsEndpoints { }
39+ interface Endpoints extends LivechatIntegrationsEndpoints { }
4040}
Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ const livechatConfigEndpoints = API.v1
5353 config : {
5454 type : 'object' ,
5555 properties : {
56- room : { $ref : '#/components/schemas/IOmnichannelRoom ' } ,
57- agent : { $ref : '#/components/schemas/ILivechatAgent ' } ,
58- guest : { $ref : '#/components/schemas/ILivechatVisitor ' } ,
56+ room : { type : 'object ' } ,
57+ agent : { type : 'object ' } ,
58+ guest : { type : 'object ' } ,
5959 } ,
60- additionalProperties : false ,
60+ additionalProperties : true ,
6161 } ,
6262 success : { type : 'boolean' , enum : [ true ] } ,
6363 } ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ const livechatWebhookEndpoints = API.v1.post(
9191 try {
9292 logger . debug ( { msg : 'Testing webhook' , host : new URL ( webhookUrl ) . host } ) ;
9393 const request = await fetch ( webhookUrl , options ) ;
94- const response = await request . text ( ) ;
94+ await request . text ( ) ;
9595
9696 logger . debug ( { msg : 'Webhook response' , status : request . status } ) ;
9797 if ( request . status === 200 ) {
You can’t perform that action at this time.
0 commit comments