plugnmeet-sdk-js 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PlugNmeet.d.ts CHANGED
@@ -7,6 +7,7 @@ import { EndRoomParams, EndRoomResponse } from './types/endRoom';
7
7
  import { FetchRecordingsParams, FetchRecordingsResponse } from './types/fetchRecordings';
8
8
  import { DeleteRecordingsParams, DeleteRecordingsResponse } from './types/deleteRecordings';
9
9
  import { RecordingDownloadTokenParams, RecordingDownloadTokenResponse } from './types/RecordingDownloadToken';
10
+ import { ClientFilesResponse } from './types/clientFiles';
10
11
  export declare class PlugNmeet {
11
12
  protected defaultPath: string;
12
13
  /**
@@ -62,6 +63,10 @@ export declare class PlugNmeet {
62
63
  * @returns Promise<DeleteRecordingsResponse>
63
64
  */
64
65
  deleteRecordings(params: DeleteRecordingsParams): Promise<DeleteRecordingsResponse>;
66
+ /**
67
+ * @returns Promise<ClientFilesResponse>
68
+ */
69
+ getClientFiles(): Promise<ClientFilesResponse>;
65
70
  /**
66
71
  * Generate token to download recording
67
72
  * @param params: RecordingDownloadTokenParams
package/PlugNmeet.js CHANGED
@@ -1,17 +1,5 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PlugNmeet = void 0;
13
- const api_1 = require("./api");
14
- class PlugNmeet {
1
+ import { prepareAPI, sendRequest } from './api';
2
+ export class PlugNmeet {
15
3
  /**
16
4
  * @param serverUrl plugNmeet server URL
17
5
  * @param apiKey plugNmeet API_Key
@@ -19,192 +7,192 @@ class PlugNmeet {
19
7
  */
20
8
  constructor(serverUrl, apiKey, apiSecret) {
21
9
  this.defaultPath = '/auth';
22
- (0, api_1.prepareAPI)(serverUrl + this.defaultPath, apiKey, apiSecret);
10
+ prepareAPI(serverUrl + this.defaultPath, apiKey, apiSecret);
23
11
  }
24
12
  /**
25
13
  * Create new room
26
14
  * @param params: CreateRoomParams
27
15
  * @returns Promise<CreateRoomResponse>
28
16
  */
29
- createRoom(params) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- const output = yield (0, api_1.sendRequest)('/room/create', params);
32
- if (!output.status) {
33
- return {
34
- status: false,
35
- msg: output.response,
36
- };
37
- }
17
+ async createRoom(params) {
18
+ const output = await sendRequest('/room/create', params);
19
+ if (!output.status) {
38
20
  return {
39
- status: output.response.status,
40
- msg: output.response.msg,
41
- roomInfo: output.response.roomInfo,
21
+ status: false,
22
+ msg: output.response,
42
23
  };
43
- });
24
+ }
25
+ return {
26
+ status: output.response.status,
27
+ msg: output.response.msg,
28
+ roomInfo: output.response.roomInfo,
29
+ };
44
30
  }
45
31
  /**
46
32
  * Generate join token
47
33
  * @param params: JoinTokenParams
48
34
  * @returns Promise<JoinTokenResponse>
49
35
  */
50
- getJoinToken(params) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- const output = yield (0, api_1.sendRequest)('/room/getJoinToken', params);
53
- if (!output.status) {
54
- return {
55
- status: false,
56
- msg: output.response,
57
- };
58
- }
36
+ async getJoinToken(params) {
37
+ const output = await sendRequest('/room/getJoinToken', params);
38
+ if (!output.status) {
59
39
  return {
60
- status: output.response.status,
61
- msg: output.response.msg,
62
- token: output.response.token,
40
+ status: false,
41
+ msg: output.response,
63
42
  };
64
- });
43
+ }
44
+ return {
45
+ status: output.response.status,
46
+ msg: output.response.msg,
47
+ token: output.response.token,
48
+ };
65
49
  }
66
50
  /**
67
51
  * If room is active or not
68
52
  * @param params: IsRoomActiveParams
69
53
  * @returns Promise<IsRoomActiveResponse>
70
54
  */
71
- isRoomActive(params) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const output = yield (0, api_1.sendRequest)('/room/isRoomActive', params);
74
- if (!output.status) {
75
- return {
76
- status: false,
77
- msg: output.response,
78
- };
79
- }
55
+ async isRoomActive(params) {
56
+ const output = await sendRequest('/room/isRoomActive', params);
57
+ if (!output.status) {
80
58
  return {
81
- status: output.response.status,
82
- msg: output.response.msg,
59
+ status: false,
60
+ msg: output.response,
83
61
  };
84
- });
62
+ }
63
+ return {
64
+ status: output.response.status,
65
+ msg: output.response.msg,
66
+ };
85
67
  }
86
68
  /**
87
69
  * Get active room information
88
70
  * @param params: ActiveRoomInfoParams
89
71
  * @returns Promise<ActiveRoomInfoResponse>
90
72
  */
91
- getActiveRoomInfo(params) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- const output = yield (0, api_1.sendRequest)('/room/getActiveRoomInfo', params);
94
- if (!output.status) {
95
- return {
96
- status: false,
97
- msg: output.response,
98
- };
99
- }
73
+ async getActiveRoomInfo(params) {
74
+ const output = await sendRequest('/room/getActiveRoomInfo', params);
75
+ if (!output.status) {
100
76
  return {
101
- status: output.response.status,
102
- msg: output.response.msg,
103
- room: output.response.room,
77
+ status: false,
78
+ msg: output.response,
104
79
  };
105
- });
80
+ }
81
+ return {
82
+ status: output.response.status,
83
+ msg: output.response.msg,
84
+ room: output.response.room,
85
+ };
106
86
  }
107
87
  /**
108
88
  * Get all active rooms
109
89
  * @returns Promise<ActiveRoomsInfoResponse>
110
90
  */
111
- getActiveRoomsInfo() {
112
- return __awaiter(this, void 0, void 0, function* () {
113
- const output = yield (0, api_1.sendRequest)('/room/getActiveRoomsInfo', {});
114
- if (!output.status) {
115
- return {
116
- status: false,
117
- msg: output.response,
118
- };
119
- }
91
+ async getActiveRoomsInfo() {
92
+ const output = await sendRequest('/room/getActiveRoomsInfo', {});
93
+ if (!output.status) {
120
94
  return {
121
- status: output.response.status,
122
- msg: output.response.msg,
123
- rooms: output.response.rooms,
95
+ status: false,
96
+ msg: output.response,
124
97
  };
125
- });
98
+ }
99
+ return {
100
+ status: output.response.status,
101
+ msg: output.response.msg,
102
+ rooms: output.response.rooms,
103
+ };
126
104
  }
127
105
  /**
128
106
  * End active room
129
107
  * @param params: EndRoomParams
130
108
  * @returns Promise<EndRoomResponse>
131
109
  */
132
- endRoom(params) {
133
- return __awaiter(this, void 0, void 0, function* () {
134
- const output = yield (0, api_1.sendRequest)('/room/endRoom', params);
135
- if (!output.status) {
136
- return {
137
- status: false,
138
- msg: output.response,
139
- };
140
- }
110
+ async endRoom(params) {
111
+ const output = await sendRequest('/room/endRoom', params);
112
+ if (!output.status) {
141
113
  return {
142
- status: output.response.status,
143
- msg: output.response.msg,
114
+ status: false,
115
+ msg: output.response,
144
116
  };
145
- });
117
+ }
118
+ return {
119
+ status: output.response.status,
120
+ msg: output.response.msg,
121
+ };
146
122
  }
147
123
  /**
148
124
  * Fetch recordings
149
125
  * @param params: FetchRecordingsParams
150
126
  * @returns Promise<FetchRecordingsResponse>
151
127
  */
152
- fetchRecordings(params) {
153
- return __awaiter(this, void 0, void 0, function* () {
154
- const output = yield (0, api_1.sendRequest)('/recording/fetch', params);
155
- if (!output.status) {
156
- return {
157
- status: false,
158
- msg: output.response,
159
- };
160
- }
128
+ async fetchRecordings(params) {
129
+ const output = await sendRequest('/recording/fetch', params);
130
+ if (!output.status) {
161
131
  return {
162
- status: output.response.status,
163
- msg: output.response.msg,
164
- result: output.response.result,
132
+ status: false,
133
+ msg: output.response,
165
134
  };
166
- });
135
+ }
136
+ return {
137
+ status: output.response.status,
138
+ msg: output.response.msg,
139
+ result: output.response.result,
140
+ };
167
141
  }
168
142
  /**
169
143
  * Delete recording
170
144
  * @param params: DeleteRecordingsParams
171
145
  * @returns Promise<DeleteRecordingsResponse>
172
146
  */
173
- deleteRecordings(params) {
174
- return __awaiter(this, void 0, void 0, function* () {
175
- const output = yield (0, api_1.sendRequest)('/recording/delete', params);
176
- if (!output.status) {
177
- return {
178
- status: false,
179
- msg: output.response,
180
- };
181
- }
147
+ async deleteRecordings(params) {
148
+ const output = await sendRequest('/recording/delete', params);
149
+ if (!output.status) {
182
150
  return {
183
- status: output.response.status,
184
- msg: output.response.msg,
151
+ status: false,
152
+ msg: output.response,
185
153
  };
186
- });
154
+ }
155
+ return {
156
+ status: output.response.status,
157
+ msg: output.response.msg,
158
+ };
159
+ }
160
+ /**
161
+ * @returns Promise<ClientFilesResponse>
162
+ */
163
+ async getClientFiles() {
164
+ const output = await sendRequest('/getClientFiles', {});
165
+ if (!output.status) {
166
+ return {
167
+ status: false,
168
+ msg: output.response,
169
+ };
170
+ }
171
+ return {
172
+ status: output.response.status,
173
+ msg: output.response.msg,
174
+ css: output.response.css,
175
+ js: output.response.js,
176
+ };
187
177
  }
188
178
  /**
189
179
  * Generate token to download recording
190
180
  * @param params: RecordingDownloadTokenParams
191
181
  * @returns Promise<RecordingDownloadTokenResponse>
192
182
  */
193
- getRecordingDownloadToken(params) {
194
- return __awaiter(this, void 0, void 0, function* () {
195
- const output = yield (0, api_1.sendRequest)('/recording/getDownloadToken', params);
196
- if (!output.status) {
197
- return {
198
- status: false,
199
- msg: output.response,
200
- };
201
- }
183
+ async getRecordingDownloadToken(params) {
184
+ const output = await sendRequest('/recording/getDownloadToken', params);
185
+ if (!output.status) {
202
186
  return {
203
- status: output.response.status,
204
- msg: output.response.msg,
205
- token: output.response.token,
187
+ status: false,
188
+ msg: output.response,
206
189
  };
207
- });
190
+ }
191
+ return {
192
+ status: output.response.status,
193
+ msg: output.response.msg,
194
+ token: output.response.token,
195
+ };
208
196
  }
209
197
  }
210
- exports.PlugNmeet = PlugNmeet;
198
+ //# sourceMappingURL=PlugNmeet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlugNmeet.js","sourceRoot":"","sources":["../src/PlugNmeet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAA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,GAAG,MAAM,WAAW,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAClB,OAAO;gBACL,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,MAAM,CAAC,QAAQ;aACrB,CAAC;SACH;QAED,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM;YAC9B,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG;YACxB,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG;YACxB,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE;SACvB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,yBAAyB,CACpC,MAAoC;QAEpC,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAClB,OAAO;gBACL,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,MAAM,CAAC,QAAQ;aACrB,CAAC;SACH;QAED,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM;YAC9B,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG;YACxB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK;SAC7B,CAAC;IACJ,CAAC;CACF"}
package/README.md CHANGED
@@ -52,3 +52,4 @@ Please check `examples` directory to see some examples.
52
52
  | [fetchRecordings](https://mynaparrot.github.io/plugNmeet-sdk-js/classes/PlugNmeet.html#fetchRecordings) | Fetch recordings |
53
53
  | [deleteRecordings](https://mynaparrot.github.io/plugNmeet-sdk-js/classes/PlugNmeet.html#deleteRecordings) | Delete recording |
54
54
  | [getRecordingDownloadToken](https://mynaparrot.github.io/plugNmeet-sdk-js/classes/PlugNmeet.html#getRecordingDownloadToken) | Generate token to download recording |
55
+ | [getClientFiles](https://mynaparrot.github.io/plugNmeet-sdk-js/classes/PlugNmeet.html#getClientFiles) | Get client's files |
package/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type APIResponse = {
1
+ export type APIResponse = {
2
2
  status: boolean;
3
3
  response: any;
4
4
  };
package/api.js CHANGED
@@ -1,31 +1,13 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.sendRequest = exports.prepareAPI = void 0;
16
- const http_1 = __importDefault(require("http"));
17
- const https_1 = __importDefault(require("https"));
18
- let mainOptions, isSecure = true;
19
- const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
20
- var _a;
21
- const headers = {
22
- 'Content-Type': 'application/json',
23
- 'API-KEY': apiKey,
24
- 'API-SECRET': apiSecret,
25
- };
1
+ import http from 'http';
2
+ import https from 'https';
3
+ import { createHmac } from 'crypto';
4
+ let mainOptions, isSecure = true, _apiKey = "", _apiSecret = "";
5
+ export const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
6
+ _apiKey = apiKey;
7
+ _apiSecret = apiSecret;
26
8
  const url = new URL(apiEndPointURL);
27
9
  let port = url.protocol === 'https:' ? 443 : 80;
28
- isSecure = (_a = url.protocol === 'https:') !== null && _a !== void 0 ? _a : false;
10
+ isSecure = url.protocol === 'https:' ?? false;
29
11
  // use port if supplied with url
30
12
  if (url.port) {
31
13
  port = Number(url.port);
@@ -35,19 +17,30 @@ const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
35
17
  path: url.pathname,
36
18
  method: 'POST',
37
19
  port,
38
- headers,
39
20
  };
40
21
  };
41
- exports.prepareAPI = prepareAPI;
42
- const sendRequest = (path, body) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const prepareHeader = (body) => {
23
+ const signature = createHmac('sha256', _apiSecret)
24
+ .update(body)
25
+ .digest('hex');
26
+ const headers = {
27
+ 'Content-Type': 'application/json',
28
+ 'API-KEY': _apiKey,
29
+ 'HASH-SIGNATURE': signature,
30
+ };
31
+ return headers;
32
+ };
33
+ export const sendRequest = async (path, body) => {
43
34
  return new Promise((resolve) => {
44
35
  const output = {
45
36
  status: false,
46
37
  response: undefined,
47
38
  };
48
- const options = Object.assign({}, mainOptions);
39
+ const chunk = JSON.stringify(body);
40
+ const options = { ...mainOptions };
49
41
  options.path += path;
50
- const req = (isSecure ? https_1.default : http_1.default).request(options, (res) => {
42
+ options.headers = prepareHeader(chunk);
43
+ const req = (isSecure ? https : http).request(options, (res) => {
51
44
  const body = [];
52
45
  res.on('data', (chunk) => body.push(chunk));
53
46
  res.on('end', () => {
@@ -67,8 +60,8 @@ const sendRequest = (path, body) => __awaiter(void 0, void 0, void 0, function*
67
60
  output.response = error.message;
68
61
  resolve(output);
69
62
  });
70
- req.write(JSON.stringify(body));
63
+ req.write(chunk);
71
64
  req.end();
72
65
  });
73
- });
74
- exports.sendRequest = sendRequest;
66
+ };
67
+ //# sourceMappingURL=api.js.map
package/api.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,IAAI,WAA2B,EAC7B,QAAQ,GAAG,IAAI,EAAE,OA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AG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { RooMetadata, CreateRoomParams, CreateRoomResponse, CreateRoomResponseRoomInfo, LockSettingsParams, RoomFeaturesParams, ChatFeaturesParams, SharedNotePadFeaturesParams, WhiteboardFeaturesParams, } from './types/createRoom';
1
+ export { RooMetadata, CreateRoomParams, CreateRoomResponse, CreateRoomResponseRoomInfo, LockSettingsParams, RoomFeaturesParams, RecordingFeaturesParams, ChatFeaturesParams, SharedNotePadFeaturesParams, WhiteboardFeaturesParams, ExternalMediaPlayerFeatures, WaitingRoomFeatures, BreakoutRoomFeatures, } from './types/createRoom';
2
2
  export { JoinTokenParams, JoinTokenResponse, JoinTokenUserMetadata, JoinTokenUserInfo, } from './types/joinToken';
3
3
  export { IsRoomActiveParams, IsRoomActiveResponse } from './types/isRoomActive';
4
4
  export { Room, ActiveRoomInfoParams, ActiveRoomInfoResponse, ParticipantInfo, ActiveRoomInfo, } from './types/activeRoomInfo';
@@ -7,4 +7,5 @@ export { EndRoomParams, EndRoomResponse } from './types/endRoom';
7
7
  export { FetchRecordingsParams, FetchRecordingsResponse, FetchRecordingsResult, RecordingInfo, } from './types/fetchRecordings';
8
8
  export { DeleteRecordingsParams, DeleteRecordingsResponse, } from './types/deleteRecordings';
9
9
  export { RecordingDownloadTokenParams, RecordingDownloadTokenResponse, } from './types/RecordingDownloadToken';
10
+ export { ClientFilesResponse } from './types/clientFiles';
10
11
  export { PlugNmeet } from './PlugNmeet';
package/index.js CHANGED
@@ -1,5 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlugNmeet = void 0;
4
- var PlugNmeet_1 = require("./PlugNmeet");
5
- Object.defineProperty(exports, "PlugNmeet", { enumerable: true, get: function () { return PlugNmeet_1.PlugNmeet; } });
1
+ export { PlugNmeet } from './PlugNmeet';
2
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+CA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,26 +1,34 @@
1
1
  {
2
2
  "name": "plugnmeet-sdk-js",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
+ "type": "module",
4
5
  "description": "plugNmeet JS SDK",
5
- "main": "src/index.ts",
6
+ "author": "Jibon L. Costa",
7
+ "license": "MIT",
8
+ "exports": {
9
+ ".": "./index.js"
10
+ },
11
+ "typesVersions": {
12
+ "*": {
13
+ "index.d.ts": ["index.d.ts"]
14
+ }
15
+ },
6
16
  "scripts": {
7
17
  "start": "rm -rf ./dist && concurrently -c \"red,green\" --kill-others \"tsc --watch -p . --outDir ./dist && esw -w --ext '.ts','.js' --fix\"",
8
18
  "build": "rm -rf ./dist && tsc -p . --outDir ./dist",
9
19
  "build-docs": "typedoc --sort source-order"
10
20
  },
11
- "author": "Jibon L. Costa",
12
- "license": "MIT",
13
21
  "devDependencies": {
14
- "@types/node": "^17.0.23",
15
- "@typescript-eslint/eslint-plugin": "^5.17.0",
16
- "@typescript-eslint/parser": "^5.17.0",
17
- "concurrently": "^7.1.0",
18
- "eslint": "^8.12.0",
19
- "eslint-config-prettier": "^8.5.0",
20
- "eslint-plugin-prettier": "^4.0.0",
21
- "eslint-watch": "^8.0.0",
22
- "prettier": "^2.6.2",
23
- "typedoc": "^0.22.14",
24
- "typescript": "^4.6.3"
22
+ "@types/node": "18.11.9",
23
+ "@typescript-eslint/eslint-plugin": "5.43.0",
24
+ "@typescript-eslint/parser": "5.43.0",
25
+ "concurrently": "7.5.0",
26
+ "eslint": "8.28.0",
27
+ "eslint-config-prettier": "8.5.0",
28
+ "eslint-plugin-prettier": "4.2.1",
29
+ "eslint-watch": "8.0.0",
30
+ "prettier": "2.7.1",
31
+ "typedoc": "0.23.21",
32
+ "typescript": "4.9.3"
25
33
  }
26
34
  }
@@ -1,7 +1,7 @@
1
- export declare type RecordingDownloadTokenParams = {
1
+ export type RecordingDownloadTokenParams = {
2
2
  record_id: string;
3
3
  };
4
- export declare type RecordingDownloadTokenResponse = {
4
+ export type RecordingDownloadTokenResponse = {
5
5
  status: boolean;
6
6
  msg: string;
7
7
  token?: string;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=RecordingDownloadToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordingDownloadToken.js","sourceRoot":"","sources":["../../src/types/RecordingDownloadToken.ts"],"names":[],"mappings":""}
@@ -1,16 +1,16 @@
1
- export declare type ActiveRoomInfoParams = {
1
+ export type ActiveRoomInfoParams = {
2
2
  room_id: string;
3
3
  };
4
- export declare type ActiveRoomInfoResponse = {
4
+ export type ActiveRoomInfoResponse = {
5
5
  status: boolean;
6
6
  msg: string;
7
7
  room?: Room;
8
8
  };
9
- export declare type Room = {
9
+ export type Room = {
10
10
  room_info: ActiveRoomInfo;
11
11
  participants_info: Array<ParticipantInfo>;
12
12
  };
13
- export declare type ActiveRoomInfo = {
13
+ export type ActiveRoomInfo = {
14
14
  room_title: string;
15
15
  room_id: string;
16
16
  sid: string;
@@ -22,7 +22,7 @@ export declare type ActiveRoomInfo = {
22
22
  creation_time: number;
23
23
  metadata: string;
24
24
  };
25
- export declare type ParticipantInfo = {
25
+ export type ParticipantInfo = {
26
26
  sid: string;
27
27
  identity: string;
28
28
  state: string;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=activeRoomInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activeRoomInfo.js","sourceRoot":"","sources":["../../src/types/activeRoomInfo.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { Room } from './activeRoomInfo';
2
- export declare type ActiveRoomsInfoResponse = {
2
+ export type ActiveRoomsInfoResponse = {
3
3
  status: boolean;
4
4
  msg: string;
5
5
  rooms?: Array<Room>;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=activeRoomsInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activeRoomsInfo.js","sourceRoot":"","sources":["../../src/types/activeRoomsInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type ClientFilesResponse = {
2
+ status: boolean;
3
+ msg: string;
4
+ css?: Array<string>;
5
+ js?: Array<string>;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clientFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientFiles.js","sourceRoot":"","sources":["../../src/types/clientFiles.ts"],"names":[],"mappings":""}
@@ -1,25 +1,25 @@
1
- export declare type CreateRoomParams = {
1
+ export type CreateRoomParams = {
2
2
  room_id: string;
3
3
  max_participants?: number;
4
4
  empty_timeout?: number;
5
5
  metadata: RooMetadata;
6
6
  };
7
- export declare type RooMetadata = {
7
+ export type RooMetadata = {
8
8
  room_title: string;
9
9
  welcome_message?: string;
10
10
  webhook_url?: string;
11
11
  room_features: RoomFeaturesParams;
12
12
  default_lock_settings?: LockSettingsParams;
13
13
  };
14
- export declare type RoomFeaturesParams = {
14
+ export type RoomFeaturesParams = {
15
15
  allow_webcams: boolean;
16
16
  mute_on_start: boolean;
17
17
  allow_screen_share: boolean;
18
- allow_recording: boolean;
19
18
  allow_rtmp: boolean;
20
19
  admin_only_webcams: boolean;
21
20
  allow_view_other_webcams: boolean;
22
21
  allow_view_other_users_list: boolean;
22
+ recording_features: RecordingFeaturesParams;
23
23
  chat_features: ChatFeaturesParams;
24
24
  shared_note_pad_features?: SharedNotePadFeaturesParams;
25
25
  whiteboard_features?: WhiteboardFeaturesParams;
@@ -27,29 +27,35 @@ export declare type RoomFeaturesParams = {
27
27
  waiting_room_features?: WaitingRoomFeatures;
28
28
  breakout_room_features?: BreakoutRoomFeatures;
29
29
  };
30
- export declare type ChatFeaturesParams = {
30
+ export type RecordingFeaturesParams = {
31
+ is_allow: boolean;
32
+ is_allow_cloud: boolean;
33
+ is_allow_local: boolean;
34
+ enable_auto_cloud_recording: boolean;
35
+ };
36
+ export type ChatFeaturesParams = {
31
37
  allow_chat: boolean;
32
38
  allow_file_upload: boolean;
33
39
  allowed_file_types: Array<string>;
34
40
  max_file_size: number;
35
41
  };
36
- export declare type SharedNotePadFeaturesParams = {
42
+ export type SharedNotePadFeaturesParams = {
37
43
  allowed_shared_note_pad: boolean;
38
44
  };
39
- export declare type WhiteboardFeaturesParams = {
45
+ export type WhiteboardFeaturesParams = {
40
46
  allowed_whiteboard: boolean;
41
47
  };
42
- export declare type ExternalMediaPlayerFeatures = {
48
+ export type ExternalMediaPlayerFeatures = {
43
49
  allowed_external_media_player: boolean;
44
50
  };
45
- export declare type WaitingRoomFeatures = {
51
+ export type WaitingRoomFeatures = {
46
52
  is_active: boolean;
47
53
  waiting_room_msg?: string;
48
54
  };
49
- export declare type BreakoutRoomFeatures = {
55
+ export type BreakoutRoomFeatures = {
50
56
  is_allow: boolean;
51
57
  };
52
- export declare type LockSettingsParams = {
58
+ export type LockSettingsParams = {
53
59
  lock_microphone?: boolean;
54
60
  lock_webcam?: boolean;
55
61
  lock_screen_sharing?: boolean;
@@ -59,12 +65,12 @@ export declare type LockSettingsParams = {
59
65
  lock_chat_send_message?: boolean;
60
66
  lock_chat_file_share?: boolean;
61
67
  };
62
- export declare type CreateRoomResponse = {
68
+ export type CreateRoomResponse = {
63
69
  status: boolean;
64
70
  msg: string;
65
71
  roomInfo?: CreateRoomResponseRoomInfo;
66
72
  };
67
- export declare type CreateRoomResponseRoomInfo = {
73
+ export type CreateRoomResponseRoomInfo = {
68
74
  sid: string;
69
75
  name: string;
70
76
  max_participants: number;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=createRoom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRoom.js","sourceRoot":"","sources":["../../src/types/createRoom.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- export declare type DeleteRecordingsParams = {
1
+ export type DeleteRecordingsParams = {
2
2
  record_id: string;
3
3
  };
4
- export declare type DeleteRecordingsResponse = {
4
+ export type DeleteRecordingsResponse = {
5
5
  status: boolean;
6
6
  msg: string;
7
7
  };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=deleteRecordings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteRecordings.js","sourceRoot":"","sources":["../../src/types/deleteRecordings.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- export declare type EndRoomParams = {
1
+ export type EndRoomParams = {
2
2
  room_id: string;
3
3
  };
4
- export declare type EndRoomResponse = {
4
+ export type EndRoomResponse = {
5
5
  status: boolean;
6
6
  msg: string;
7
7
  };
package/types/endRoom.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=endRoom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endRoom.js","sourceRoot":"","sources":["../../src/types/endRoom.ts"],"names":[],"mappings":""}
@@ -1,22 +1,22 @@
1
- export declare type FetchRecordingsParams = {
1
+ export type FetchRecordingsParams = {
2
2
  room_ids: Array<string>;
3
3
  from?: number;
4
4
  limit?: number;
5
5
  order_by?: 'ASC' | 'DESC';
6
6
  };
7
- export declare type FetchRecordingsResponse = {
7
+ export type FetchRecordingsResponse = {
8
8
  status: boolean;
9
9
  msg: string;
10
10
  result?: FetchRecordingsResult;
11
11
  };
12
- export declare type FetchRecordingsResult = {
12
+ export type FetchRecordingsResult = {
13
13
  total_recordings: number;
14
14
  from: number;
15
15
  limit: number;
16
16
  order_by: string;
17
17
  recordings_list: Array<RecordingInfo>;
18
18
  };
19
- export declare type RecordingInfo = {
19
+ export type RecordingInfo = {
20
20
  record_id: string;
21
21
  room_id: string;
22
22
  room_sid: string;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=fetchRecordings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchRecordings.js","sourceRoot":"","sources":["../../src/types/fetchRecordings.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- export declare type IsRoomActiveParams = {
1
+ export type IsRoomActiveParams = {
2
2
  room_id: string;
3
3
  };
4
- export declare type IsRoomActiveResponse = {
4
+ export type IsRoomActiveResponse = {
5
5
  status: boolean;
6
6
  msg: string;
7
7
  };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=isRoomActive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRoomActive.js","sourceRoot":"","sources":["../../src/types/isRoomActive.ts"],"names":[],"mappings":""}
@@ -1,20 +1,20 @@
1
1
  import { LockSettingsParams } from './createRoom';
2
- export declare type JoinTokenParams = {
2
+ export type JoinTokenParams = {
3
3
  room_id: string;
4
4
  user_info: JoinTokenUserInfo;
5
5
  };
6
- export declare type JoinTokenUserInfo = {
6
+ export type JoinTokenUserInfo = {
7
7
  name: string;
8
8
  user_id: string;
9
9
  is_admin: boolean;
10
10
  is_hidden: boolean;
11
11
  user_metadata?: JoinTokenUserMetadata;
12
12
  };
13
- export declare type JoinTokenUserMetadata = {
13
+ export type JoinTokenUserMetadata = {
14
14
  profile_pic?: string;
15
15
  lock_settings?: LockSettingsParams;
16
16
  };
17
- export declare type JoinTokenResponse = {
17
+ export type JoinTokenResponse = {
18
18
  status: boolean;
19
19
  msg: string;
20
20
  token?: string;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
2
+ //# sourceMappingURL=joinToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joinToken.js","sourceRoot":"","sources":["../../src/types/joinToken.ts"],"names":[],"mappings":""}