Skip to content

Commit 02b71a0

Browse files
fix: replace schemas with inline types and fix lint issues
1 parent e708897 commit 02b71a0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

apps/meteor/app/livechat/imports/server/rest/integrations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3737
declare 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
}

apps/meteor/app/livechat/server/api/v1/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
},

apps/meteor/app/livechat/server/api/v1/webhooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)