Skip to content

Commit

Permalink
Fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Apr 28, 2022
1 parent 19013d9 commit 3a5b6df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
6 changes: 3 additions & 3 deletions packages/rest-typings/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { StatisticsEndpoints } from './v1/statistics';
import type { TeamsEndpoints } from './v1/teams';
import type { UsersEndpoints } from './v1/users';
import type { VoipEndpoints } from './v1/voip';
import type { OAuthAppsEndpoints } from './v1/oAuthApps';
import type { OAuthAppsEndpoint } from './v1/oauthapps';
// eslint-disable-next-line @typescript-eslint/no-empty-interface, @typescript-eslint/interface-name-prefix
export interface Endpoints
extends BannersEndpoints,
Expand Down Expand Up @@ -58,8 +58,8 @@ export interface Endpoints
VoipEndpoints,
InvitesEndpoints,
E2eEndpoints,
OAuthAppsEndpoints,
CustomSoundEndpoint {}
CustomSoundEndpoint,
OAuthAppsEndpoint {}

type OperationsByPathPattern<TPathPattern extends keyof Endpoints> = TPathPattern extends any
? OperationsByPathPatternAndMethod<TPathPattern>
Expand Down
14 changes: 0 additions & 14 deletions packages/rest-typings/src/v1/oAuthApps.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { IUser } from '@rocket.chat/core-typings';

export type OAuthEndpoints = {
export type OAuthAppsEndpoint = {
'oauth-apps.list': {
GET: (params: { uid: IUser['_id'] }) => {
oauthApps: unknown[];
};
};

'oauth-apps.get': {
GET: (params: { clientId: string; appId: string }) => {
GET: (params: { clientId: string } | { appId: string }) => {
oauthApp: unknown;
};
};
Expand Down

0 comments on commit 3a5b6df

Please sign in to comment.