Skip to content

Commit ebcf95c

Browse files
Add build files
1 parent 0548bb3 commit ebcf95c

84 files changed

Lines changed: 508 additions & 164 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/definition/IExternalComponentRoomInfo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { IRoom } from '../../definition/rooms';
22
import { IExternalComponentUserInfo } from './IExternalComponentUserInfo';
3-
declare type ClientRoomInfo = Pick<IRoom, 'id' | 'slugifiedName'>;
3+
type ClientRoomInfo = Pick<IRoom, 'id' | 'slugifiedName'>;
44
/**
55
* Represents the room's information returned to the
66
* external component.

client/definition/IExternalComponentUserInfo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IUser } from '../../definition/users';
2-
declare type ClientUserInfo = Pick<IUser, 'id' | 'username'>;
2+
type ClientUserInfo = Pick<IUser, 'id' | 'username'>;
33
/**
44
* Represents the user's information returned to
55
* the external component.

client/definition/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/definition/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/IModify.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { IModifyDeleter } from './IModifyDeleter';
44
import { IModifyExtender } from './IModifyExtender';
55
import { IModifyUpdater } from './IModifyUpdater';
66
import { INotifier } from './INotifier';
7+
import { IOAuthAppsModify } from './IOAuthAppsModify';
78
import { ISchedulerModify } from './ISchedulerModify';
89
import { IUIController } from './IUIController';
910
export interface IModify {
@@ -26,4 +27,8 @@ export interface IModify {
2627
*/
2728
getScheduler(): ISchedulerModify;
2829
getAnalytics(): IAnalytics;
30+
/**
31+
* Gets the accessor for creating OAuth apps
32+
*/
33+
getOAuthAppsModifier(): IOAuthAppsModify;
2934
}

definition/accessors/IModify.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export interface IOAuthApp {
2+
id: string;
3+
name: string;
4+
active: boolean;
5+
clientId?: string;
6+
clientSecret?: string;
7+
redirectUri: string;
8+
createdAt?: string;
9+
updatedAt?: string;
10+
createdBy: {
11+
username: string;
12+
id: string;
13+
};
14+
}
15+
export type IOAuthAppParams = Omit<IOAuthApp, 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'appId'>;

definition/accessors/IOAuthApp.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/IOAuthApp.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { IOAuthAppParams } from './IOAuthApp';
2+
export interface IOAuthAppsModify {
3+
/**
4+
* Create an OAuthApp
5+
* @param OAuthApp - the OAuth app to create, in case the clientId and the clientSecret is not sent it will generate automatically
6+
* @param appId - the app id
7+
*/
8+
createOAuthApp(OAuthApp: IOAuthAppParams, appId: string): Promise<string>;
9+
/**
10+
* Update the OAuth app info
11+
* @param OAuthApp - OAuth data that will be updated
12+
* @param id - OAuth app id
13+
* @param appId - the app id
14+
*/
15+
updateOAuthApp(OAuthApp: IOAuthAppParams, id: string, appId: string): Promise<void>;
16+
/**
17+
* Deletes the OAuth app
18+
* @param id - OAuth app id
19+
* @param appId - the app id
20+
*/
21+
deleteOAuthApp(id: string, appId: string): Promise<void>;
22+
}

0 commit comments

Comments
 (0)