plugnmeet-sdk-js 1.0.2 → 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.js +112 -144
- package/PlugNmeet.js.map +1 -0
- package/api.d.ts +1 -1
- package/api.js +11 -28
- package/api.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +2 -5
- package/index.js.map +1 -0
- package/package.json +19 -11
- package/types/RecordingDownloadToken.d.ts +2 -2
- package/types/RecordingDownloadToken.js +2 -2
- package/types/RecordingDownloadToken.js.map +1 -0
- package/types/activeRoomInfo.d.ts +5 -5
- package/types/activeRoomInfo.js +2 -2
- package/types/activeRoomInfo.js.map +1 -0
- package/types/activeRoomsInfo.d.ts +1 -1
- package/types/activeRoomsInfo.js +2 -2
- package/types/activeRoomsInfo.js.map +1 -0
- package/types/clientFiles.d.ts +1 -1
- package/types/clientFiles.js +2 -2
- package/types/clientFiles.js.map +1 -0
- package/types/createRoom.d.ts +19 -13
- package/types/createRoom.js +2 -2
- package/types/createRoom.js.map +1 -0
- package/types/deleteRecordings.d.ts +2 -2
- package/types/deleteRecordings.js +2 -2
- package/types/deleteRecordings.js.map +1 -0
- package/types/endRoom.d.ts +2 -2
- package/types/endRoom.js +2 -2
- package/types/endRoom.js.map +1 -0
- package/types/fetchRecordings.d.ts +4 -4
- package/types/fetchRecordings.js +2 -2
- package/types/fetchRecordings.js.map +1 -0
- package/types/isRoomActive.d.ts +2 -2
- package/types/isRoomActive.js +2 -2
- package/types/isRoomActive.js.map +1 -0
- package/types/joinToken.d.ts +4 -4
- package/types/joinToken.js +2 -2
- package/types/joinToken.js.map +1 -0
package/PlugNmeet.js
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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,212 +7,192 @@ class PlugNmeet {
|
|
|
19
7
|
*/
|
|
20
8
|
constructor(serverUrl, apiKey, apiSecret) {
|
|
21
9
|
this.defaultPath = '/auth';
|
|
22
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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:
|
|
40
|
-
msg: output.response
|
|
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
|
-
|
|
52
|
-
|
|
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:
|
|
61
|
-
msg: output.response
|
|
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
|
-
|
|
73
|
-
|
|
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:
|
|
82
|
-
msg: output.response
|
|
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
|
-
|
|
93
|
-
|
|
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:
|
|
102
|
-
msg: output.response
|
|
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
|
-
|
|
113
|
-
|
|
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:
|
|
122
|
-
msg: output.response
|
|
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
|
-
|
|
134
|
-
|
|
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:
|
|
143
|
-
msg: output.response
|
|
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
|
-
|
|
154
|
-
|
|
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:
|
|
163
|
-
msg: output.response
|
|
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
|
-
|
|
175
|
-
|
|
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:
|
|
184
|
-
msg: output.response
|
|
151
|
+
status: false,
|
|
152
|
+
msg: output.response,
|
|
185
153
|
};
|
|
186
|
-
}
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
status: output.response.status,
|
|
157
|
+
msg: output.response.msg,
|
|
158
|
+
};
|
|
187
159
|
}
|
|
188
160
|
/**
|
|
189
161
|
* @returns Promise<ClientFilesResponse>
|
|
190
162
|
*/
|
|
191
|
-
getClientFiles() {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
if (!output.status) {
|
|
195
|
-
return {
|
|
196
|
-
status: false,
|
|
197
|
-
msg: output.response,
|
|
198
|
-
};
|
|
199
|
-
}
|
|
163
|
+
async getClientFiles() {
|
|
164
|
+
const output = await sendRequest('/getClientFiles', {});
|
|
165
|
+
if (!output.status) {
|
|
200
166
|
return {
|
|
201
|
-
status:
|
|
202
|
-
msg: output.response
|
|
203
|
-
css: output.response.css,
|
|
204
|
-
js: output.response.js,
|
|
167
|
+
status: false,
|
|
168
|
+
msg: output.response,
|
|
205
169
|
};
|
|
206
|
-
}
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
status: output.response.status,
|
|
173
|
+
msg: output.response.msg,
|
|
174
|
+
css: output.response.css,
|
|
175
|
+
js: output.response.js,
|
|
176
|
+
};
|
|
207
177
|
}
|
|
208
178
|
/**
|
|
209
179
|
* Generate token to download recording
|
|
210
180
|
* @param params: RecordingDownloadTokenParams
|
|
211
181
|
* @returns Promise<RecordingDownloadTokenResponse>
|
|
212
182
|
*/
|
|
213
|
-
getRecordingDownloadToken(params) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
if (!output.status) {
|
|
217
|
-
return {
|
|
218
|
-
status: false,
|
|
219
|
-
msg: output.response,
|
|
220
|
-
};
|
|
221
|
-
}
|
|
183
|
+
async getRecordingDownloadToken(params) {
|
|
184
|
+
const output = await sendRequest('/recording/getDownloadToken', params);
|
|
185
|
+
if (!output.status) {
|
|
222
186
|
return {
|
|
223
|
-
status:
|
|
224
|
-
msg: output.response
|
|
225
|
-
token: output.response.token,
|
|
187
|
+
status: false,
|
|
188
|
+
msg: output.response,
|
|
226
189
|
};
|
|
227
|
-
}
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
status: output.response.status,
|
|
193
|
+
msg: output.response.msg,
|
|
194
|
+
token: output.response.token,
|
|
195
|
+
};
|
|
228
196
|
}
|
|
229
197
|
}
|
|
230
|
-
|
|
198
|
+
//# sourceMappingURL=PlugNmeet.js.map
|
package/PlugNmeet.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlugNmeet.js","sourceRoot":"","sources":["../src/PlugNmeet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAwBhD,MAAM,OAAO,SAAS;IAGpB;;;;OAIG;IACH,YAAY,SAAiB,EAAE,MAAc,EAAE,SAAiB;QAPtD,gBAAW,GAAG,OAAO,CAAC;QAQ9B,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,E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M,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/api.d.ts
CHANGED
package/api.js
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
const crypto_1 = require("crypto");
|
|
1
|
+
import http from 'http';
|
|
2
|
+
import https from 'https';
|
|
3
|
+
import { createHmac } from 'crypto';
|
|
19
4
|
let mainOptions, isSecure = true, _apiKey = "", _apiSecret = "";
|
|
20
|
-
const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
|
|
21
|
-
var _a;
|
|
5
|
+
export const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
|
|
22
6
|
_apiKey = apiKey;
|
|
23
7
|
_apiSecret = apiSecret;
|
|
24
8
|
const url = new URL(apiEndPointURL);
|
|
25
9
|
let port = url.protocol === 'https:' ? 443 : 80;
|
|
26
|
-
isSecure =
|
|
10
|
+
isSecure = url.protocol === 'https:' ?? false;
|
|
27
11
|
// use port if supplied with url
|
|
28
12
|
if (url.port) {
|
|
29
13
|
port = Number(url.port);
|
|
@@ -35,9 +19,8 @@ const prepareAPI = (apiEndPointURL, apiKey, apiSecret) => {
|
|
|
35
19
|
port,
|
|
36
20
|
};
|
|
37
21
|
};
|
|
38
|
-
exports.prepareAPI = prepareAPI;
|
|
39
22
|
const prepareHeader = (body) => {
|
|
40
|
-
const signature =
|
|
23
|
+
const signature = createHmac('sha256', _apiSecret)
|
|
41
24
|
.update(body)
|
|
42
25
|
.digest('hex');
|
|
43
26
|
const headers = {
|
|
@@ -47,17 +30,17 @@ const prepareHeader = (body) => {
|
|
|
47
30
|
};
|
|
48
31
|
return headers;
|
|
49
32
|
};
|
|
50
|
-
const sendRequest = (path, body) =>
|
|
33
|
+
export const sendRequest = async (path, body) => {
|
|
51
34
|
return new Promise((resolve) => {
|
|
52
35
|
const output = {
|
|
53
36
|
status: false,
|
|
54
37
|
response: undefined,
|
|
55
38
|
};
|
|
56
39
|
const chunk = JSON.stringify(body);
|
|
57
|
-
const options =
|
|
40
|
+
const options = { ...mainOptions };
|
|
58
41
|
options.path += path;
|
|
59
42
|
options.headers = prepareHeader(chunk);
|
|
60
|
-
const req = (isSecure ?
|
|
43
|
+
const req = (isSecure ? https : http).request(options, (res) => {
|
|
61
44
|
const body = [];
|
|
62
45
|
res.on('data', (chunk) => body.push(chunk));
|
|
63
46
|
res.on('end', () => {
|
|
@@ -80,5 +63,5 @@ const sendRequest = (path, body) => __awaiter(void 0, void 0, void 0, function*
|
|
|
80
63
|
req.write(chunk);
|
|
81
64
|
req.end();
|
|
82
65
|
});
|
|
83
|
-
}
|
|
84
|
-
|
|
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,OAAO,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,CAAC;AAOjD,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,cAAsB,EACtB,MAAc,EACd,SAAiB,EACjB,EAAE;IACF,OAAO,GAAG,MAAM,CAAC;IACjB,UAAU,GAAG,SAAS,CAAC;IAEvB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,IAAI,IAAI,GAAG,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,QAAQ,GAAG,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC;IAE9C,gCAAgC;IAChC,IAAI,GAAG,CAAC,IAAI,EAAE;QACZ,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACzB;IAED,WAAW,GAAG;QACZ,QAAQ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EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACjB,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAEjD,IAAI;oBACF,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC;oBACrB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;iBACzC;gBAAC,OAAO,KAAK,EAAE;oBACd,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC;oBACtB,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC;iBACzB;gBAED,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACxB,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;YAChC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,GAAG,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, ExternalMediaPlayerFeatures, WaitingRoomFeatures, BreakoutRoomFeatures, } 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';
|
package/index.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "plugNmeet JS SDK",
|
|
5
|
-
"
|
|
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": "18.
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
16
|
-
"@typescript-eslint/parser": "5.
|
|
17
|
-
"concurrently": "7.
|
|
18
|
-
"eslint": "8.
|
|
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",
|
|
19
27
|
"eslint-config-prettier": "8.5.0",
|
|
20
28
|
"eslint-plugin-prettier": "4.2.1",
|
|
21
29
|
"eslint-watch": "8.0.0",
|
|
22
30
|
"prettier": "2.7.1",
|
|
23
|
-
"typedoc": "0.23.
|
|
24
|
-
"typescript": "4.
|
|
31
|
+
"typedoc": "0.23.21",
|
|
32
|
+
"typescript": "4.9.3"
|
|
25
33
|
}
|
|
26
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RecordingDownloadTokenParams = {
|
|
2
2
|
record_id: string;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type RecordingDownloadTokenResponse = {
|
|
5
5
|
status: boolean;
|
|
6
6
|
msg: string;
|
|
7
7
|
token?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
1
|
+
export type ActiveRoomInfoParams = {
|
|
2
2
|
room_id: string;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type ActiveRoomInfoResponse = {
|
|
5
5
|
status: boolean;
|
|
6
6
|
msg: string;
|
|
7
7
|
room?: Room;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type Room = {
|
|
10
10
|
room_info: ActiveRoomInfo;
|
|
11
11
|
participants_info: Array<ParticipantInfo>;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
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
|
|
25
|
+
export type ParticipantInfo = {
|
|
26
26
|
sid: string;
|
|
27
27
|
identity: string;
|
|
28
28
|
state: string;
|
package/types/activeRoomInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=activeRoomInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeRoomInfo.js","sourceRoot":"","sources":["../../src/types/activeRoomInfo.ts"],"names":[],"mappings":""}
|
package/types/activeRoomsInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=activeRoomsInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeRoomsInfo.js","sourceRoot":"","sources":["../../src/types/activeRoomsInfo.ts"],"names":[],"mappings":""}
|
package/types/clientFiles.d.ts
CHANGED
package/types/clientFiles.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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":""}
|
package/types/createRoom.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
42
|
+
export type SharedNotePadFeaturesParams = {
|
|
37
43
|
allowed_shared_note_pad: boolean;
|
|
38
44
|
};
|
|
39
|
-
export
|
|
45
|
+
export type WhiteboardFeaturesParams = {
|
|
40
46
|
allowed_whiteboard: boolean;
|
|
41
47
|
};
|
|
42
|
-
export
|
|
48
|
+
export type ExternalMediaPlayerFeatures = {
|
|
43
49
|
allowed_external_media_player: boolean;
|
|
44
50
|
};
|
|
45
|
-
export
|
|
51
|
+
export type WaitingRoomFeatures = {
|
|
46
52
|
is_active: boolean;
|
|
47
53
|
waiting_room_msg?: string;
|
|
48
54
|
};
|
|
49
|
-
export
|
|
55
|
+
export type BreakoutRoomFeatures = {
|
|
50
56
|
is_allow: boolean;
|
|
51
57
|
};
|
|
52
|
-
export
|
|
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
|
|
68
|
+
export type CreateRoomResponse = {
|
|
63
69
|
status: boolean;
|
|
64
70
|
msg: string;
|
|
65
71
|
roomInfo?: CreateRoomResponseRoomInfo;
|
|
66
72
|
};
|
|
67
|
-
export
|
|
73
|
+
export type CreateRoomResponseRoomInfo = {
|
|
68
74
|
sid: string;
|
|
69
75
|
name: string;
|
|
70
76
|
max_participants: number;
|
package/types/createRoom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=deleteRecordings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecordings.js","sourceRoot":"","sources":["../../src/types/deleteRecordings.ts"],"names":[],"mappings":""}
|
package/types/endRoom.d.ts
CHANGED
package/types/endRoom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
7
|
+
export type FetchRecordingsResponse = {
|
|
8
8
|
status: boolean;
|
|
9
9
|
msg: string;
|
|
10
10
|
result?: FetchRecordingsResult;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
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
|
|
19
|
+
export type RecordingInfo = {
|
|
20
20
|
record_id: string;
|
|
21
21
|
room_id: string;
|
|
22
22
|
room_sid: string;
|
package/types/fetchRecordings.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=fetchRecordings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchRecordings.js","sourceRoot":"","sources":["../../src/types/fetchRecordings.ts"],"names":[],"mappings":""}
|
package/types/isRoomActive.d.ts
CHANGED
package/types/isRoomActive.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=isRoomActive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isRoomActive.js","sourceRoot":"","sources":["../../src/types/isRoomActive.ts"],"names":[],"mappings":""}
|
package/types/joinToken.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { LockSettingsParams } from './createRoom';
|
|
2
|
-
export
|
|
2
|
+
export type JoinTokenParams = {
|
|
3
3
|
room_id: string;
|
|
4
4
|
user_info: JoinTokenUserInfo;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
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
|
|
13
|
+
export type JoinTokenUserMetadata = {
|
|
14
14
|
profile_pic?: string;
|
|
15
15
|
lock_settings?: LockSettingsParams;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type JoinTokenResponse = {
|
|
18
18
|
status: boolean;
|
|
19
19
|
msg: string;
|
|
20
20
|
token?: string;
|
package/types/joinToken.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=joinToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinToken.js","sourceRoot":"","sources":["../../src/types/joinToken.ts"],"names":[],"mappings":""}
|