fcr-core 3.10.2 → 3.10.5

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.
Files changed (127) hide show
  1. package/lib/engine/index.js +102 -108
  2. package/lib/imports.js +1 -0
  3. package/lib/media-control/desktop.js +22 -13
  4. package/lib/media-control/mobile.js +27 -19
  5. package/lib/media-control/type.d.ts +3 -3
  6. package/lib/monitor-control/index.js +17 -7
  7. package/lib/peer-session/index.js +120 -121
  8. package/lib/plugins/chat/chatroom.js +119 -96
  9. package/lib/plugins/chat/connector.js +69 -48
  10. package/lib/remote-control/index.js +194 -216
  11. package/lib/room-control/ability-control/index.js +20 -10
  12. package/lib/room-control/application-control/index.js +82 -75
  13. package/lib/room-control/group-control/index.js +31 -30
  14. package/lib/room-control/helpers/board-init-info-helper.js +16 -10
  15. package/lib/room-control/helpers/validation-helper.js +1 -1
  16. package/lib/room-control/index.js +70 -51
  17. package/lib/room-control/infinity-room-control/index.js +27 -19
  18. package/lib/room-control/interpreter-control/index.js +77 -65
  19. package/lib/room-control/interpreter-control/room.js +6 -4
  20. package/lib/room-control/join-before-host-waitingroom-control/index.js +6 -4
  21. package/lib/room-control/mainroom-control/index.js +37 -25
  22. package/lib/room-control/privilege-control/helper.js +28 -13
  23. package/lib/room-control/privilege-control/index.js +36 -28
  24. package/lib/room-control/room-connector-control/index.js +52 -49
  25. package/lib/room-control/room-connector-control/type.d.ts +1 -1
  26. package/lib/room-control/room-control-factory.js +10 -12
  27. package/lib/room-control/room-session/index.js +77 -74
  28. package/lib/room-control/shared-cache.js +63 -56
  29. package/lib/room-control/sharing-control/index.js +65 -57
  30. package/lib/room-control/stream-control/index.js +197 -193
  31. package/lib/room-control/stt-control/de-compress-gzip.js +10 -0
  32. package/lib/room-control/stt-control/index.js +93 -86
  33. package/lib/room-control/user-control/index.js +162 -155
  34. package/lib/room-control/waitingroom-control/index.js +18 -9
  35. package/lib/room-control/whiteboard-control/utils.js +4 -2
  36. package/lib/room-control/whiteboard-control-v1/board-subwindow.js +2 -1
  37. package/lib/room-control/whiteboard-control-v1/board-window.js +120 -103
  38. package/lib/room-control/whiteboard-control-v1/factory.js +7 -4
  39. package/lib/room-control/whiteboard-control-v1/index.js +80 -67
  40. package/lib/room-control/whiteboard-control-v1/mount-manager.js +4 -2
  41. package/lib/room-control/whiteboard-control-v1/utils.js +17 -14
  42. package/lib/room-control/whiteboard-control-v2/annotation-control/control.js +14 -10
  43. package/lib/room-control/whiteboard-control-v2/annotation-control/factory.js +17 -8
  44. package/lib/room-control/whiteboard-control-v2/base/index.js +61 -53
  45. package/lib/room-control/whiteboard-control-v2/base/main-window.js +39 -30
  46. package/lib/room-control/whiteboard-control-v2/utils.js +10 -10
  47. package/lib/room-control/whiteboard-control-v2/whiteboard-control/control.js +45 -33
  48. package/lib/room-control/whiteboard-control-v2/whiteboard-control/factory.js +27 -11
  49. package/lib/room-control/widget-control/index.js +43 -33
  50. package/lib/room-router/index.js +66 -58
  51. package/lib/schema.d.ts +15 -15
  52. package/lib/service/api.js +446 -548
  53. package/lib/struct.js +5 -2
  54. package/lib/utilities/abortable-retry.js +3 -0
  55. package/lib/utilities/collection.js +15 -11
  56. package/lib/utilities/error-helpers.js +34 -27
  57. package/lib/utilities/error.js +4 -3
  58. package/lib/utilities/join-helper.js +37 -31
  59. package/lib/utilities/logger.js +8 -5
  60. package/lib/utilities/parameters.js +21 -10
  61. package/lib/utilities/retry-helpers.js +1 -0
  62. package/lib/utilities/stream.js +16 -11
  63. package/lib/utilities/user.js +4 -3
  64. package/lib/utilities/validate-params.js +1 -1
  65. package/lib/utilities/video-encoder-config.js +10 -5
  66. package/lib-es/engine/index.js +102 -108
  67. package/lib-es/media-control/desktop.js +22 -13
  68. package/lib-es/media-control/mobile.js +27 -19
  69. package/lib-es/monitor-control/index.js +16 -7
  70. package/lib-es/peer-session/index.js +120 -121
  71. package/lib-es/plugins/chat/chatroom.js +118 -95
  72. package/lib-es/plugins/chat/connector.js +67 -47
  73. package/lib-es/remote-control/index.js +194 -216
  74. package/lib-es/room-control/ability-control/index.js +19 -10
  75. package/lib-es/room-control/application-control/index.js +81 -75
  76. package/lib-es/room-control/group-control/index.js +31 -30
  77. package/lib-es/room-control/helpers/board-init-info-helper.js +15 -10
  78. package/lib-es/room-control/helpers/validation-helper.js +1 -1
  79. package/lib-es/room-control/index.js +69 -51
  80. package/lib-es/room-control/infinity-room-control/index.js +26 -19
  81. package/lib-es/room-control/interpreter-control/index.js +77 -65
  82. package/lib-es/room-control/interpreter-control/room.js +5 -4
  83. package/lib-es/room-control/join-before-host-waitingroom-control/index.js +5 -4
  84. package/lib-es/room-control/mainroom-control/index.js +37 -25
  85. package/lib-es/room-control/privilege-control/helper.js +27 -13
  86. package/lib-es/room-control/privilege-control/index.js +36 -28
  87. package/lib-es/room-control/room-connector-control/index.js +52 -49
  88. package/lib-es/room-control/room-control-factory.js +10 -12
  89. package/lib-es/room-control/room-session/index.js +77 -74
  90. package/lib-es/room-control/shared-cache.js +62 -56
  91. package/lib-es/room-control/sharing-control/index.js +64 -57
  92. package/lib-es/room-control/stream-control/index.js +197 -193
  93. package/lib-es/room-control/stt-control/de-compress-gzip.js +10 -0
  94. package/lib-es/room-control/stt-control/index.js +93 -86
  95. package/lib-es/room-control/user-control/index.js +162 -155
  96. package/lib-es/room-control/waitingroom-control/index.js +18 -9
  97. package/lib-es/room-control/whiteboard-control/utils.js +4 -2
  98. package/lib-es/room-control/whiteboard-control-v1/board-subwindow.js +2 -1
  99. package/lib-es/room-control/whiteboard-control-v1/board-window.js +120 -103
  100. package/lib-es/room-control/whiteboard-control-v1/factory.js +6 -4
  101. package/lib-es/room-control/whiteboard-control-v1/index.js +80 -67
  102. package/lib-es/room-control/whiteboard-control-v1/mount-manager.js +3 -2
  103. package/lib-es/room-control/whiteboard-control-v1/utils.js +17 -14
  104. package/lib-es/room-control/whiteboard-control-v2/annotation-control/control.js +13 -10
  105. package/lib-es/room-control/whiteboard-control-v2/annotation-control/factory.js +16 -8
  106. package/lib-es/room-control/whiteboard-control-v2/base/index.js +60 -53
  107. package/lib-es/room-control/whiteboard-control-v2/base/main-window.js +39 -30
  108. package/lib-es/room-control/whiteboard-control-v2/utils.js +10 -10
  109. package/lib-es/room-control/whiteboard-control-v2/whiteboard-control/control.js +45 -33
  110. package/lib-es/room-control/whiteboard-control-v2/whiteboard-control/factory.js +26 -11
  111. package/lib-es/room-control/widget-control/index.js +42 -33
  112. package/lib-es/room-router/index.js +66 -58
  113. package/lib-es/service/api.js +445 -548
  114. package/lib-es/struct.js +4 -2
  115. package/lib-es/utilities/abortable-retry.js +3 -0
  116. package/lib-es/utilities/collection.js +14 -11
  117. package/lib-es/utilities/error-helpers.js +33 -26
  118. package/lib-es/utilities/error.js +4 -3
  119. package/lib-es/utilities/join-helper.js +36 -29
  120. package/lib-es/utilities/logger.js +7 -5
  121. package/lib-es/utilities/parameters.js +21 -10
  122. package/lib-es/utilities/retry-helpers.js +1 -0
  123. package/lib-es/utilities/stream.js +15 -11
  124. package/lib-es/utilities/user.js +4 -3
  125. package/lib-es/utilities/validate-params.js +1 -1
  126. package/lib-es/utilities/video-encoder-config.js +10 -5
  127. package/package.json +4 -4
@@ -1,23 +1,31 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.array.push.js");
4
+ require("core-js/modules/esnext.iterator.filter.js");
5
+ require("core-js/modules/esnext.iterator.for-each.js");
6
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
7
  Object.defineProperty(exports, "__esModule", {
4
8
  value: true
5
9
  });
6
10
  exports.FcrCoreServiceApi = void 0;
7
11
  require("core-js/modules/esnext.iterator.constructor.js");
8
12
  require("core-js/modules/esnext.iterator.map.js");
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
14
  var _imports = require("../imports");
10
15
  var _type = require("./type");
11
16
  var _type2 = require("../room-control/privilege-control/type");
12
17
  var _type3 = require("../room-control/user-control/type");
13
18
  var _logger = require("../utilities/logger");
19
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
21
  class FcrCoreServiceApi {
15
- logger = (0, _logger.getLogger)();
16
- constructor(_client, appId, region, pathIncludeRegion = true) {
22
+ constructor(_client, appId, region) {
23
+ let pathIncludeRegion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
24
+ (0, _defineProperty2.default)(this, "logger", (0, _logger.getLogger)());
17
25
  this._client = _client;
18
- let pathPrefix = `/conference/apps/${appId}`;
26
+ let pathPrefix = "/conference/apps/".concat(appId);
19
27
  if (pathIncludeRegion) {
20
- pathPrefix = `/${(0, _imports.toLower)(region)}${pathPrefix}`;
28
+ pathPrefix = "/".concat((0, _imports.toLower)(region)).concat(pathPrefix);
21
29
  }
22
30
  this.logger.info('set path prefix for Core Service API:', pathPrefix);
23
31
  this._pathPrefix = pathPrefix;
@@ -28,112 +36,105 @@ class FcrCoreServiceApi {
28
36
  this._client.setPathPrefix(this._pathPrefix);
29
37
  }
30
38
  async addGroups(params, opts) {
31
- const {
32
- data
33
- } = await this._client.fetch({
34
- path: `/v2/rooms/${opts.roomId}/groups`,
35
- method: 'PUT',
36
- data: {
37
- groups: params.map(group => {
38
- return {
39
- groupName: group.groupName,
40
- users: group.userList,
41
- createGroupRequest: opts.startTime ? {
42
- roomProperties: {
43
- schedule: {
44
- startTime: opts.startTime
39
+ const _await$this$_client$f = await this._client.fetch({
40
+ path: "/v2/rooms/".concat(opts.roomId, "/groups"),
41
+ method: 'PUT',
42
+ data: {
43
+ groups: params.map(group => {
44
+ return {
45
+ groupName: group.groupName,
46
+ users: group.userList,
47
+ createGroupRequest: opts.startTime ? {
48
+ roomProperties: {
49
+ schedule: {
50
+ startTime: opts.startTime
51
+ }
45
52
  }
46
- }
47
- } : undefined
48
- };
49
- })
50
- }
51
- });
53
+ } : undefined
54
+ };
55
+ })
56
+ }
57
+ }),
58
+ data = _await$this$_client$f.data;
52
59
  }
53
60
  async updateGroups(params, opts) {
54
- const {
55
- data
56
- } = await this._client.fetch({
57
- path: `/v2/rooms/${opts.roomId}/groups/info`,
58
- method: 'PATCH',
59
- data: {
60
- groups: params.map(group => {
61
- return {
62
- groupUuid: group.groupId,
63
- groupName: group.groupName
64
- };
65
- })
66
- }
67
- });
61
+ const _await$this$_client$f2 = await this._client.fetch({
62
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/info"),
63
+ method: 'PATCH',
64
+ data: {
65
+ groups: params.map(group => {
66
+ return {
67
+ groupUuid: group.groupId,
68
+ groupName: group.groupName
69
+ };
70
+ })
71
+ }
72
+ }),
73
+ data = _await$this$_client$f2.data;
68
74
  }
69
75
  async deleteGroups(groupIds, opts) {
70
- const {
71
- data
72
- } = await this._client.fetch({
73
- path: `/v2/rooms/${opts.roomId}/groups/states/1`,
74
- method: 'DELETE',
75
- data: {
76
- removeGroupUuids: groupIds
77
- }
78
- });
76
+ const _await$this$_client$f3 = await this._client.fetch({
77
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/states/1"),
78
+ method: 'DELETE',
79
+ data: {
80
+ removeGroupUuids: groupIds
81
+ }
82
+ }),
83
+ data = _await$this$_client$f3.data;
79
84
  }
80
85
  async deleteAllGroups(opts) {
81
- const {
82
- data
83
- } = await this._client.fetch({
84
- path: `/v2/rooms/${opts.roomId}/groups/all`,
85
- method: 'DELETE'
86
- });
86
+ const _await$this$_client$f4 = await this._client.fetch({
87
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/all"),
88
+ method: 'DELETE'
89
+ }),
90
+ data = _await$this$_client$f4.data;
87
91
  }
88
92
  async addUsers(userList, groupId, opts) {
89
- const {
90
- data
91
- } = await this._client.fetch({
92
- path: `/v2/rooms/${opts.roomId}/groups/users`,
93
- method: 'PATCH',
94
- data: {
95
- groups: [{
96
- groupUuid: groupId,
97
- addUsers: userList
98
- }],
99
- inProgress: opts.inProgress
100
- }
101
- });
93
+ const _await$this$_client$f5 = await this._client.fetch({
94
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
95
+ method: 'PATCH',
96
+ data: {
97
+ groups: [{
98
+ groupUuid: groupId,
99
+ addUsers: userList
100
+ }],
101
+ inProgress: opts.inProgress
102
+ }
103
+ }),
104
+ data = _await$this$_client$f5.data;
102
105
  }
103
106
  async removeUsers(userList, groupId, opts) {
104
- const {
105
- data
106
- } = await this._client.fetch({
107
- path: `/v2/rooms/${opts.roomId}/groups/users`,
108
- method: 'PATCH',
109
- data: {
110
- groups: [{
111
- groupUuid: groupId,
112
- removeUsers: userList
113
- }],
114
- inProgress: opts.inProgress
115
- }
116
- });
107
+ const _await$this$_client$f6 = await this._client.fetch({
108
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
109
+ method: 'PATCH',
110
+ data: {
111
+ groups: [{
112
+ groupUuid: groupId,
113
+ removeUsers: userList
114
+ }],
115
+ inProgress: opts.inProgress
116
+ }
117
+ }),
118
+ data = _await$this$_client$f6.data;
117
119
  }
118
120
  async moveUsers(userList, fromGroupId, toGroupId, opts) {
119
- const {
120
- data
121
- } = await this._client.fetch({
122
- path: `/v2/rooms/${opts.roomId}/groups/users`,
123
- method: 'PATCH',
124
- data: {
125
- groups: [{
126
- groupUuid: toGroupId,
127
- addUsers: userList
128
- }],
129
- inProgress: opts.inProgress
130
- }
131
- });
121
+ const _await$this$_client$f7 = await this._client.fetch({
122
+ path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
123
+ method: 'PATCH',
124
+ data: {
125
+ groups: [{
126
+ groupUuid: toGroupId,
127
+ addUsers: userList
128
+ }],
129
+ inProgress: opts.inProgress
130
+ }
131
+ }),
132
+ data = _await$this$_client$f7.data;
132
133
  }
133
134
  /*** merge audio ****/
134
135
  async mergeAudioStream(userId, opts) {
135
136
  const res = await this._client.fetch({
136
- path: `/v1/rooms/${opts.roomId}/users/${userId}/call/merge`,
137
+ path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/call/merge"),
137
138
  method: 'PUT',
138
139
  data: {}
139
140
  });
@@ -142,7 +143,7 @@ class FcrCoreServiceApi {
142
143
  /*** split audio ****/
143
144
  async splitAudioStream(userId, opts) {
144
145
  const res = await this._client.fetch({
145
- path: `/v1/rooms/${opts.roomId}/users/${userId}/call/split`,
146
+ path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/call/split"),
146
147
  method: 'PUT',
147
148
  data: {}
148
149
  });
@@ -155,7 +156,7 @@ class FcrCoreServiceApi {
155
156
  body.duration = -1;
156
157
  }
157
158
  return this._client.fetch({
158
- path: `/v1/rooms/${opts.roomId}/users/${userId}/ban/${type === _type3.FcrUserKickedOutType.Forever ? 1 : 0}`,
159
+ path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/ban/").concat(type === _type3.FcrUserKickedOutType.Forever ? 1 : 0),
159
160
  method: 'PUT',
160
161
  data: body
161
162
  });
@@ -167,13 +168,12 @@ class FcrCoreServiceApi {
167
168
  if (type === _type3.FcrUserKickedOutType.Forever) {
168
169
  body.duration = -1;
169
170
  }
170
- const {
171
- data
172
- } = await this._client.fetch({
173
- path: `/v1/rooms/${opts.roomId}/users/ban/${type === _type3.FcrUserKickedOutType.Forever ? 1 : 0}`,
174
- method: 'PUT',
175
- data: body
176
- });
171
+ const _await$this$_client$f8 = await this._client.fetch({
172
+ path: "/v1/rooms/".concat(opts.roomId, "/users/ban/").concat(type === _type3.FcrUserKickedOutType.Forever ? 1 : 0),
173
+ method: 'PUT',
174
+ data: body
175
+ }),
176
+ data = _await$this$_client$f8.data;
177
177
  }
178
178
  async kickOutByUserIds(userId, type, opts) {
179
179
  const body = {
@@ -182,37 +182,36 @@ class FcrCoreServiceApi {
182
182
  if (type === _type3.FcrUserKickedOutType.Forever) {
183
183
  body.duration = -1;
184
184
  }
185
- const {
186
- data
187
- } = await this._client.fetch({
188
- path: `/v1/rooms/${opts.roomId}/users/ban/${type === _type3.FcrUserKickedOutType.Forever ? 1 : 0}`,
189
- method: 'PUT',
190
- data: body
191
- });
185
+ const _await$this$_client$f9 = await this._client.fetch({
186
+ path: "/v1/rooms/".concat(opts.roomId, "/users/ban/").concat(type === _type3.FcrUserKickedOutType.Forever ? 1 : 0),
187
+ method: 'PUT',
188
+ data: body
189
+ }),
190
+ data = _await$this$_client$f9.data;
192
191
  }
193
192
 
194
193
  /** room control **/
195
194
  async startRoom(roomId) {
196
195
  return this._client.fetch({
197
- path: `/v1/rooms/${roomId}/states/1`,
196
+ path: "/v1/rooms/".concat(roomId, "/states/1"),
198
197
  method: 'PUT'
199
198
  });
200
199
  }
201
200
  async endRoom(roomId) {
202
201
  return this._client.fetch({
203
- path: `/v1/rooms/${roomId}/states/2`,
202
+ path: "/v1/rooms/".concat(roomId, "/states/2"),
204
203
  method: 'PUT'
205
204
  });
206
205
  }
207
206
  async closeRoom(roomId) {
208
207
  return this._client.fetch({
209
- path: `/v1/rooms/${roomId}/states/3`,
208
+ path: "/v1/rooms/".concat(roomId, "/states/3"),
210
209
  method: 'PUT'
211
210
  });
212
211
  }
213
212
  async startCloudRecording(config, roomId) {
214
213
  return this._client.fetch({
215
- path: `/v1/rooms/${roomId}/records/states/1`,
214
+ path: "/v1/rooms/".concat(roomId, "/records/states/1"),
216
215
  method: 'PUT',
217
216
  data: {
218
217
  mode: 'web',
@@ -229,7 +228,7 @@ class FcrCoreServiceApi {
229
228
  }
230
229
  async pauseCloudRecording(roomId) {
231
230
  return this._client.fetch({
232
- path: `/v1/rooms/${roomId}/records/states/1`,
231
+ path: "/v1/rooms/".concat(roomId, "/records/states/1"),
233
232
  method: 'PATCH',
234
233
  data: {
235
234
  mode: 'web',
@@ -241,7 +240,7 @@ class FcrCoreServiceApi {
241
240
  }
242
241
  async resumeCloudRecording(roomId) {
243
242
  return this._client.fetch({
244
- path: `/v1/rooms/${roomId}/records/states/1`,
243
+ path: "/v1/rooms/".concat(roomId, "/records/states/1"),
245
244
  method: 'PATCH',
246
245
  data: {
247
246
  webRecordConfig: {
@@ -252,13 +251,13 @@ class FcrCoreServiceApi {
252
251
  }
253
252
  async stopCloudRecording(roomId) {
254
253
  return this._client.fetch({
255
- path: `/v1/rooms/${roomId}/records/states/0`,
254
+ path: "/v1/rooms/".concat(roomId, "/records/states/0"),
256
255
  method: 'PUT'
257
256
  });
258
257
  }
259
258
  async setCloudRecordingReady(roomId) {
260
259
  return this._client.fetch({
261
- path: `/v1/rooms/${roomId}/records/ready`,
260
+ path: "/v1/rooms/".concat(roomId, "/records/ready"),
262
261
  method: 'PUT'
263
262
  });
264
263
  }
@@ -281,7 +280,7 @@ class FcrCoreServiceApi {
281
280
  /** room session */
282
281
  async updateRoomSession(params) {
283
282
  return this._client.fetch({
284
- path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
283
+ path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
285
284
  method: 'PUT',
286
285
  data: {
287
286
  target: params.target || 1,
@@ -296,7 +295,7 @@ class FcrCoreServiceApi {
296
295
  }
297
296
  async deleteRoomSession(params) {
298
297
  return this._client.fetch({
299
- path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
298
+ path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
300
299
  method: 'DELETE',
301
300
  data: {
302
301
  target: params.target,
@@ -310,7 +309,7 @@ class FcrCoreServiceApi {
310
309
  /** peer session */
311
310
  async updatePeerSession(params) {
312
311
  return this._client.fetch({
313
- path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
312
+ path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
314
313
  method: 'PUT',
315
314
  data: {
316
315
  target: 2,
@@ -324,7 +323,7 @@ class FcrCoreServiceApi {
324
323
  }
325
324
  async deletePeerSession(params) {
326
325
  return this._client.fetch({
327
- path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
326
+ path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
328
327
  method: 'DELETE',
329
328
  data: {
330
329
  target: 2,
@@ -335,67 +334,63 @@ class FcrCoreServiceApi {
335
334
  });
336
335
  }
337
336
  async checkIn(params) {
338
- const {
339
- data,
340
- ts
341
- } = await this._client.fetch({
342
- path: `/v1/rooms/${params.roomId}/users/${params.userId}/entry`,
343
- method: 'POST',
344
- data: {
345
- password: params.password,
346
- stream: params.stream,
347
- streams: params.streams,
348
- platform: params.platform,
349
- role: params.userRole,
350
- userName: params.userName,
351
- userProperties: params.userProperties,
352
- version: params.version,
353
- bypass: params.bypass,
354
- avatar: params.avatar
355
- },
356
- retryFallbackDomainsWhenFail: true,
357
- maxRetryTimes: 10
358
- });
337
+ const _await$this$_client$f0 = await this._client.fetch({
338
+ path: "/v1/rooms/".concat(params.roomId, "/users/").concat(params.userId, "/entry"),
339
+ method: 'POST',
340
+ data: {
341
+ password: params.password,
342
+ stream: params.stream,
343
+ streams: params.streams,
344
+ platform: params.platform,
345
+ role: params.userRole,
346
+ userName: params.userName,
347
+ userProperties: params.userProperties,
348
+ version: params.version,
349
+ bypass: params.bypass,
350
+ avatar: params.avatar
351
+ },
352
+ retryFallbackDomainsWhenFail: true,
353
+ maxRetryTimes: 10
354
+ }),
355
+ data = _await$this$_client$f0.data,
356
+ ts = _await$this$_client$f0.ts;
359
357
  return {
360
358
  data,
361
359
  ts
362
360
  };
363
361
  }
364
362
  async checkInInternal(params) {
365
- const {
366
- data,
367
- ts
368
- } = await this._client.fetch({
369
- path: `/v1/rooms/${params.roomId}/users/${params.userId}/internal/entry`,
370
- method: 'POST',
371
- data: {
372
- password: params.password,
373
- stream: params.stream,
374
- streams: params.streams,
375
- platform: params.platform,
376
- role: params.userRole,
377
- userName: params.userName,
378
- userProperties: params.userProperties,
379
- version: params.version,
380
- ticket: params.ticket,
381
- bypass: params.bypass
382
- },
383
- retryFallbackDomainsWhenFail: true,
384
- maxRetryTimes: 10
385
- });
363
+ const _await$this$_client$f1 = await this._client.fetch({
364
+ path: "/v1/rooms/".concat(params.roomId, "/users/").concat(params.userId, "/internal/entry"),
365
+ method: 'POST',
366
+ data: {
367
+ password: params.password,
368
+ stream: params.stream,
369
+ streams: params.streams,
370
+ platform: params.platform,
371
+ role: params.userRole,
372
+ userName: params.userName,
373
+ userProperties: params.userProperties,
374
+ version: params.version,
375
+ ticket: params.ticket,
376
+ bypass: params.bypass
377
+ },
378
+ retryFallbackDomainsWhenFail: true,
379
+ maxRetryTimes: 10
380
+ }),
381
+ data = _await$this$_client$f1.data,
382
+ ts = _await$this$_client$f1.ts;
386
383
  return {
387
384
  data,
388
385
  ts
389
386
  };
390
387
  }
391
388
  async updateUserName(params) {
392
- const {
393
- userName,
394
- roomId,
395
- userId
396
- } = params;
389
+ const userName = params.userName,
390
+ roomId = params.roomId,
391
+ userId = params.userId;
397
392
  const res = await this._client.fetch({
398
- path: `/v1/rooms/${roomId}/users/${userId}/info`,
393
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/info"),
399
394
  method: 'PATCH',
400
395
  data: {
401
396
  userName
@@ -403,71 +398,67 @@ class FcrCoreServiceApi {
403
398
  });
404
399
  return res.data;
405
400
  }
406
- async updateUserProperties({
407
- roomId,
408
- userUuid,
409
- properties,
410
- increments,
411
- cause
412
- }) {
401
+ async updateUserProperties(_ref) {
402
+ let roomId = _ref.roomId,
403
+ userUuid = _ref.userUuid,
404
+ properties = _ref.properties,
405
+ increments = _ref.increments,
406
+ cause = _ref.cause;
413
407
  const data = {
414
408
  properties,
415
409
  cause,
416
410
  increments
417
411
  };
418
412
  const res = await this._client.fetch({
419
- path: `/v1/rooms/${roomId}/users/${userUuid}/properties`,
413
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userUuid, "/properties"),
420
414
  method: 'PUT',
421
415
  data: data
422
416
  });
423
417
  return res.data;
424
418
  }
425
- async deleteUserProperties({
426
- roomId,
427
- userUuid,
428
- properties,
429
- cause
430
- }) {
419
+ async deleteUserProperties(_ref2) {
420
+ let roomId = _ref2.roomId,
421
+ userUuid = _ref2.userUuid,
422
+ properties = _ref2.properties,
423
+ cause = _ref2.cause;
431
424
  const data = {
432
425
  properties,
433
426
  cause
434
427
  };
435
428
  const res = await this._client.fetch({
436
- path: `/v1/rooms/${roomId}/users/${userUuid}/properties`,
429
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userUuid, "/properties"),
437
430
  method: 'DELETE',
438
431
  data: data
439
432
  });
440
433
  return res.data;
441
434
  }
442
- async updateRoomProperties({
443
- roomId,
444
- properties,
445
- increments,
446
- cause
447
- }) {
435
+ async updateRoomProperties(_ref3) {
436
+ let roomId = _ref3.roomId,
437
+ properties = _ref3.properties,
438
+ increments = _ref3.increments,
439
+ cause = _ref3.cause;
448
440
  const data = {
449
441
  properties,
450
442
  cause,
451
443
  increments
452
444
  };
453
445
  const res = await this._client.fetch({
454
- path: `/v1/rooms/${roomId}/properties`,
446
+ path: "/v1/rooms/".concat(roomId, "/properties"),
455
447
  method: 'PUT',
456
448
  data: data
457
449
  });
458
450
  return res.data;
459
451
  }
460
- async deleteRoomProperties({
461
- roomId,
462
- properties,
463
- cause
464
- }) {
452
+ async deleteRoomProperties(_ref4) {
453
+ let roomId = _ref4.roomId,
454
+ properties = _ref4.properties,
455
+ cause = _ref4.cause;
465
456
  const data = {
466
457
  properties,
467
458
  cause
468
459
  };
469
460
  const res = await this._client.fetch({
470
- path: `/v1/rooms/${roomId}/properties`,
461
+ path: "/v1/rooms/".concat(roomId, "/properties"),
471
462
  method: 'DELETE',
472
463
  data: data
473
464
  });
@@ -475,25 +466,24 @@ class FcrCoreServiceApi {
475
466
  }
476
467
  async getChatRoomToken(roomId, userId) {
477
468
  const res = await this._client.fetch({
478
- path: `/v1/rooms/${roomId}/users/${userId}/widgets/easemobIM/token`,
469
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/easemobIM/token"),
479
470
  method: 'GET'
480
471
  });
481
472
  return res.data;
482
473
  }
483
474
  async getUserToken(userId) {
484
475
  const res = await this._client.fetch({
485
- path: `/v1/users/${userId}/widgets/easemobIM/token`,
476
+ path: "/v1/users/".concat(userId, "/widgets/easemobIM/token"),
486
477
  method: 'GET'
487
478
  });
488
479
  return res.data;
489
480
  }
490
- async enableLockedRoom({
491
- roomId,
492
- enable,
493
- targetRoles
494
- }) {
481
+ async enableLockedRoom(_ref5) {
482
+ let roomId = _ref5.roomId,
483
+ enable = _ref5.enable,
484
+ targetRoles = _ref5.targetRoles;
495
485
  const res = await this._client.fetch({
496
- path: `/v1/rooms/${roomId}/lock/${enable ? 1 : 0}`,
486
+ path: "/v1/rooms/".concat(roomId, "/lock/").concat(enable ? 1 : 0),
497
487
  method: 'PUT',
498
488
  data: {
499
489
  targetRoles: targetRoles.map(role => _type2.FcrPrivilegeUserRoleToStringMap[role])
@@ -501,13 +491,12 @@ class FcrCoreServiceApi {
501
491
  });
502
492
  return res.data;
503
493
  }
504
- async enablePassword({
505
- roomId,
506
- enable,
507
- password
508
- }) {
494
+ async enablePassword(_ref6) {
495
+ let roomId = _ref6.roomId,
496
+ enable = _ref6.enable,
497
+ password = _ref6.password;
509
498
  const res = await this._client.fetch({
510
- path: `/v1/rooms/${roomId}/password/${enable ? 1 : 0}`,
499
+ path: "/v1/rooms/".concat(roomId, "/password/").concat(enable ? 1 : 0),
511
500
  method: 'PUT',
512
501
  data: {
513
502
  password
@@ -515,19 +504,18 @@ class FcrCoreServiceApi {
515
504
  });
516
505
  return res.data;
517
506
  }
518
- async enableWaitingRoom({
519
- roomId,
520
- enable
521
- }) {
507
+ async enableWaitingRoom(_ref7) {
508
+ let roomId = _ref7.roomId,
509
+ enable = _ref7.enable;
522
510
  const res = await this._client.fetch({
523
- path: `/v1/rooms/${roomId}/waiting/${enable ? 1 : 0}`,
511
+ path: "/v1/rooms/".concat(roomId, "/waiting/").concat(enable ? 1 : 0),
524
512
  method: 'PUT'
525
513
  });
526
514
  return res.data;
527
515
  }
528
516
  async moveToWaitingRoomByUserIds(userIds, roomId) {
529
517
  const res = await this._client.fetch({
530
- path: `/v1/rooms/${roomId}/waiting/users`,
518
+ path: "/v1/rooms/".concat(roomId, "/waiting/users"),
531
519
  method: 'PUT',
532
520
  data: {
533
521
  toUserUuids: userIds
@@ -537,7 +525,7 @@ class FcrCoreServiceApi {
537
525
  }
538
526
  async moveToWaitingRoomByUserRoles(toRoles, roomId) {
539
527
  const res = await this._client.fetch({
540
- path: `/v1/rooms/${roomId}/waiting/users`,
528
+ path: "/v1/rooms/".concat(roomId, "/waiting/users"),
541
529
  method: 'PUT',
542
530
  data: {
543
531
  toRoles
@@ -547,7 +535,7 @@ class FcrCoreServiceApi {
547
535
  }
548
536
  async moveToMainRoomByUserIds(userIds, roomId) {
549
537
  const res = await this._client.fetch({
550
- path: `/v1/rooms/${roomId}/waiting/users`,
538
+ path: "/v1/rooms/".concat(roomId, "/waiting/users"),
551
539
  method: 'DELETE',
552
540
  data: {
553
541
  toUserUuids: userIds
@@ -557,7 +545,7 @@ class FcrCoreServiceApi {
557
545
  }
558
546
  async moveToMainRoomByUserRoles(toRoles, roomId) {
559
547
  const res = await this._client.fetch({
560
- path: `/v1/rooms/${roomId}/waiting/users`,
548
+ path: "/v1/rooms/".concat(roomId, "/waiting/users"),
561
549
  method: 'DELETE',
562
550
  data: {
563
551
  toRoles
@@ -565,20 +553,19 @@ class FcrCoreServiceApi {
565
553
  });
566
554
  return res.data;
567
555
  }
568
- async allowSendChat({
569
- roomId,
570
- enable,
571
- targetRoles,
572
- payload
573
- }) {
556
+ async allowSendChat(_ref8) {
557
+ let roomId = _ref8.roomId,
558
+ enable = _ref8.enable,
559
+ targetRoles = _ref8.targetRoles,
560
+ payload = _ref8.payload;
574
561
  const res = await this._client.fetch({
575
- path: `/v1/rooms/${roomId}/security/chat/${enable ? 1 : 0}`,
562
+ path: "/v1/rooms/".concat(roomId, "/security/chat/").concat(enable ? 1 : 0),
576
563
  method: 'PUT',
577
564
  data: {
578
565
  targetRoles,
579
566
  payload: {
580
- public: payload?.public === undefined ? undefined : payload.public ? 1 : 0,
581
- private: payload?.private === undefined ? undefined : {
567
+ public: (payload === null || payload === void 0 ? void 0 : payload.public) === undefined ? undefined : payload.public ? 1 : 0,
568
+ private: (payload === null || payload === void 0 ? void 0 : payload.private) === undefined ? undefined : {
582
569
  host: payload.private.host ? 1 : 0,
583
570
  cohost: payload.private.cohost ? 1 : 0,
584
571
  participant: payload.private.participant ? 1 : 0
@@ -588,13 +575,12 @@ class FcrCoreServiceApi {
588
575
  });
589
576
  return res.data;
590
577
  }
591
- async allowChangeName({
592
- roomId,
593
- enable,
594
- targetRoles
595
- }) {
578
+ async allowChangeName(_ref9) {
579
+ let roomId = _ref9.roomId,
580
+ enable = _ref9.enable,
581
+ targetRoles = _ref9.targetRoles;
596
582
  const res = await this._client.fetch({
597
- path: `/v1/rooms/${roomId}/security/changeName/${enable ? 1 : 0}`,
583
+ path: "/v1/rooms/".concat(roomId, "/security/changeName/").concat(enable ? 1 : 0),
598
584
  method: 'PUT',
599
585
  data: {
600
586
  targetRoles
@@ -602,13 +588,12 @@ class FcrCoreServiceApi {
602
588
  });
603
589
  return res.data;
604
590
  }
605
- async allowStartAudio({
606
- roomId,
607
- enable,
608
- targetRoles
609
- }) {
591
+ async allowStartAudio(_ref0) {
592
+ let roomId = _ref0.roomId,
593
+ enable = _ref0.enable,
594
+ targetRoles = _ref0.targetRoles;
610
595
  const res = await this._client.fetch({
611
- path: `/v1/rooms/${roomId}/security/unmuteAudio/${enable ? 1 : 0}`,
596
+ path: "/v1/rooms/".concat(roomId, "/security/unmuteAudio/").concat(enable ? 1 : 0),
612
597
  method: 'PUT',
613
598
  data: {
614
599
  targetRoles
@@ -617,32 +602,26 @@ class FcrCoreServiceApi {
617
602
  return res.data;
618
603
  }
619
604
  async allowWatermark(params) {
620
- const {
621
- roomId,
622
- enable,
623
- targetRoles,
624
- payload
625
- } = params;
605
+ const roomId = params.roomId,
606
+ enable = params.enable,
607
+ targetRoles = params.targetRoles,
608
+ payload = params.payload;
626
609
  const res = await this._client.fetch({
627
- path: `/v1/rooms/${roomId}/security/watermark/${enable ? 1 : 0}`,
610
+ path: "/v1/rooms/".concat(roomId, "/security/watermark/").concat(enable ? 1 : 0),
628
611
  method: 'PUT',
629
612
  data: {
630
613
  targetRoles,
631
- payload: {
632
- ...payload
633
- }
614
+ payload: _objectSpread({}, payload)
634
615
  }
635
616
  });
636
617
  return res.data;
637
618
  }
638
619
  async allowChangeUserName(params) {
639
- const {
640
- roomId,
641
- enable,
642
- targetRoles
643
- } = params;
620
+ const roomId = params.roomId,
621
+ enable = params.enable,
622
+ targetRoles = params.targetRoles;
644
623
  const res = await this._client.fetch({
645
- path: `/v1/rooms/${roomId}/security/changeName/${enable ? 1 : 0}`,
624
+ path: "/v1/rooms/".concat(roomId, "/security/changeName/").concat(enable ? 1 : 0),
646
625
  method: 'PUT',
647
626
  data: {
648
627
  targetRoles
@@ -650,13 +629,12 @@ class FcrCoreServiceApi {
650
629
  });
651
630
  return res.data;
652
631
  }
653
- async allowJoinWithPromptSound({
654
- roomId,
655
- enable,
656
- targetRoles
657
- }) {
632
+ async allowJoinWithPromptSound(_ref1) {
633
+ let roomId = _ref1.roomId,
634
+ enable = _ref1.enable,
635
+ targetRoles = _ref1.targetRoles;
658
636
  const res = await this._client.fetch({
659
- path: `/v1/rooms/${roomId}/security/joinWithPromptSound/${enable ? 1 : 0}`,
637
+ path: "/v1/rooms/".concat(roomId, "/security/joinWithPromptSound/").concat(enable ? 1 : 0),
660
638
  method: 'PUT',
661
639
  data: {
662
640
  targetRoles
@@ -664,13 +642,12 @@ class FcrCoreServiceApi {
664
642
  });
665
643
  return res.data;
666
644
  }
667
- async allowStartVideo({
668
- roomId,
669
- enable,
670
- targetRoles
671
- }) {
645
+ async allowStartVideo(_ref10) {
646
+ let roomId = _ref10.roomId,
647
+ enable = _ref10.enable,
648
+ targetRoles = _ref10.targetRoles;
672
649
  const res = await this._client.fetch({
673
- path: `/v1/rooms/${roomId}/security/openVideo/${enable ? 1 : 0}`,
650
+ path: "/v1/rooms/".concat(roomId, "/security/openVideo/").concat(enable ? 1 : 0),
674
651
  method: 'PUT',
675
652
  data: {
676
653
  targetRoles
@@ -678,13 +655,12 @@ class FcrCoreServiceApi {
678
655
  });
679
656
  return res.data;
680
657
  }
681
- async allowJoinWithMuteAudio({
682
- roomId,
683
- enable,
684
- targetRoles
685
- }) {
658
+ async allowJoinWithMuteAudio(_ref11) {
659
+ let roomId = _ref11.roomId,
660
+ enable = _ref11.enable,
661
+ targetRoles = _ref11.targetRoles;
686
662
  const res = await this._client.fetch({
687
- path: `/v1/rooms/${roomId}/security/joinWithMuteAudio/${enable ? 1 : 0}`,
663
+ path: "/v1/rooms/".concat(roomId, "/security/joinWithMuteAudio/").concat(enable ? 1 : 0),
688
664
  method: 'PUT',
689
665
  data: {
690
666
  targetRoles
@@ -692,13 +668,12 @@ class FcrCoreServiceApi {
692
668
  });
693
669
  return res.data;
694
670
  }
695
- async allowJoinWithMutedVideo({
696
- roomId,
697
- enable,
698
- targetRoles
699
- }) {
671
+ async allowJoinWithMutedVideo(_ref12) {
672
+ let roomId = _ref12.roomId,
673
+ enable = _ref12.enable,
674
+ targetRoles = _ref12.targetRoles;
700
675
  const res = await this._client.fetch({
701
- path: `/v1/rooms/${roomId}/security/joinWithCloseVideo/${enable ? 1 : 0}`,
676
+ path: "/v1/rooms/".concat(roomId, "/security/joinWithCloseVideo/").concat(enable ? 1 : 0),
702
677
  method: 'PUT',
703
678
  data: {
704
679
  targetRoles
@@ -706,14 +681,13 @@ class FcrCoreServiceApi {
706
681
  });
707
682
  return res.data;
708
683
  }
709
- async updateUserRole({
710
- roomId,
711
- localRole,
712
- remoteRole,
713
- userId
714
- }) {
684
+ async updateUserRole(_ref13) {
685
+ let roomId = _ref13.roomId,
686
+ localRole = _ref13.localRole,
687
+ remoteRole = _ref13.remoteRole,
688
+ userId = _ref13.userId;
715
689
  const res = await this._client.fetch({
716
- path: `/v1/rooms/${roomId}/users/${userId}/role`,
690
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/role"),
717
691
  method: 'PUT',
718
692
  data: {
719
693
  remoteRole,
@@ -722,12 +696,11 @@ class FcrCoreServiceApi {
722
696
  });
723
697
  return res.data;
724
698
  }
725
- async revokeUserRole({
726
- roomId,
727
- remoteRole
728
- }) {
699
+ async revokeUserRole(_ref14) {
700
+ let roomId = _ref14.roomId,
701
+ remoteRole = _ref14.remoteRole;
729
702
  const res = await this._client.fetch({
730
- path: `/v1/rooms/${roomId}/claim/host`,
703
+ path: "/v1/rooms/".concat(roomId, "/claim/host"),
731
704
  method: 'POST',
732
705
  data: {
733
706
  remoteRole
@@ -735,13 +708,12 @@ class FcrCoreServiceApi {
735
708
  });
736
709
  return res.data;
737
710
  }
738
- async claimHost({
739
- roomId,
740
- userId,
741
- hostKey
742
- }) {
711
+ async claimHost(_ref15) {
712
+ let roomId = _ref15.roomId,
713
+ userId = _ref15.userId,
714
+ hostKey = _ref15.hostKey;
743
715
  const res = await this._client.fetch({
744
- path: `/v1/rooms/${roomId}/users/${userId}/claim/host`,
716
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/claim/host"),
745
717
  method: 'POST',
746
718
  data: {
747
719
  hostKey
@@ -751,14 +723,14 @@ class FcrCoreServiceApi {
751
723
  }
752
724
  async stopLiveStreaming(roomId) {
753
725
  const res = await this._client.fetch({
754
- path: `/v1/rooms/${roomId}/live/states/0`,
726
+ path: "/v1/rooms/".concat(roomId, "/live/states/0"),
755
727
  method: 'PUT'
756
728
  });
757
729
  return res;
758
730
  }
759
731
  async updateLiveStreamingLayout(roomId, layoutType) {
760
732
  const res = await this._client.fetch({
761
- path: `/v1/rooms/${roomId}/live/states/1`,
733
+ path: "/v1/rooms/".concat(roomId, "/live/states/1"),
762
734
  method: 'PATCH',
763
735
  data: {
764
736
  layoutType: layoutType
@@ -768,7 +740,7 @@ class FcrCoreServiceApi {
768
740
  }
769
741
  async startLiveStreaming(roomId, data) {
770
742
  const res = await this._client.fetch({
771
- path: `/v1/rooms/${roomId}/live/states/1`,
743
+ path: "/v1/rooms/".concat(roomId, "/live/states/1"),
772
744
  method: 'PUT',
773
745
  data: {
774
746
  streamUrl: data.pushStreamingUrl,
@@ -779,13 +751,12 @@ class FcrCoreServiceApi {
779
751
  });
780
752
  return res;
781
753
  }
782
- async callIp({
783
- roomId,
784
- callType,
785
- ipAddress
786
- }) {
754
+ async callIp(_ref16) {
755
+ let roomId = _ref16.roomId,
756
+ callType = _ref16.callType,
757
+ ipAddress = _ref16.ipAddress;
787
758
  const res = await this._client.fetch({
788
- path: `/v1/rooms/${roomId}/call/${callType}`,
759
+ path: "/v1/rooms/".concat(roomId, "/call/").concat(callType),
789
760
  method: 'POST',
790
761
  data: {
791
762
  ipAddress
@@ -793,15 +764,14 @@ class FcrCoreServiceApi {
793
764
  });
794
765
  return res;
795
766
  }
796
- async callPstn({
797
- roomId,
798
- userName,
799
- userId,
800
- callNumber,
801
- callType
802
- }) {
767
+ async callPstn(_ref17) {
768
+ let roomId = _ref17.roomId,
769
+ userName = _ref17.userName,
770
+ userId = _ref17.userId,
771
+ callNumber = _ref17.callNumber,
772
+ callType = _ref17.callType;
803
773
  const res = await this._client.fetch({
804
- path: `/v1/rooms/${roomId}/call/${callType}`,
774
+ path: "/v1/rooms/".concat(roomId, "/call/").concat(callType),
805
775
  method: 'POST',
806
776
  data: {
807
777
  callNumber,
@@ -811,13 +781,12 @@ class FcrCoreServiceApi {
811
781
  });
812
782
  return res;
813
783
  }
814
- async hangup({
815
- roomId,
816
- userId,
817
- callId
818
- }) {
784
+ async hangup(_ref18) {
785
+ let roomId = _ref18.roomId,
786
+ userId = _ref18.userId,
787
+ callId = _ref18.callId;
819
788
  const res = await this._client.fetch({
820
- path: `/v1/rooms/${roomId}/users/${userId}/call/${callId}`,
789
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/call/").concat(callId),
821
790
  method: 'DELETE'
822
791
  });
823
792
  return res;
@@ -826,12 +795,11 @@ class FcrCoreServiceApi {
826
795
  /**
827
796
  * @description 获取白板信息
828
797
  */
829
- async getWhiteboardToken({
830
- roomId,
831
- userId
832
- }) {
798
+ async getWhiteboardToken(_ref19) {
799
+ let roomId = _ref19.roomId,
800
+ userId = _ref19.userId;
833
801
  return this._client.fetch({
834
- path: `/v1/rooms/${roomId}/users/${userId}/widgets/netlessBoard/token`,
802
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/netlessBoard/token"),
835
803
  method: 'GET'
836
804
  });
837
805
  }
@@ -839,12 +807,11 @@ class FcrCoreServiceApi {
839
807
  /**
840
808
  * @description 获取批注token
841
809
  */
842
- async getAnnotationToken({
843
- roomId,
844
- userId
845
- }) {
810
+ async getAnnotationToken(_ref20) {
811
+ let roomId = _ref20.roomId,
812
+ userId = _ref20.userId;
846
813
  return this._client.fetch({
847
- path: `/v1/rooms/${roomId}/users/${userId}/widgets/annotation/token`,
814
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/annotation/token"),
848
815
  method: 'GET'
849
816
  });
850
817
  }
@@ -854,7 +821,7 @@ class FcrCoreServiceApi {
854
821
  */
855
822
  async toggleAnnotationActivityState(roomId, state) {
856
823
  return this._client.fetch({
857
- path: `/v1/rooms/${roomId}/widgets/annotation/states/${state}`,
824
+ path: "/v1/rooms/".concat(roomId, "/widgets/annotation/states/").concat(state),
858
825
  method: 'PUT'
859
826
  });
860
827
  }
@@ -864,7 +831,7 @@ class FcrCoreServiceApi {
864
831
  */
865
832
  async syncScreenShareOwnerAnnotationOpenDone(roomId) {
866
833
  return this._client.fetch({
867
- path: `/v1/rooms/${roomId}/widgets/annotation/states/1`,
834
+ path: "/v1/rooms/".concat(roomId, "/widgets/annotation/states/1"),
868
835
  method: 'PUT',
869
836
  retryFallbackDomainsWhenFail: true
870
837
  });
@@ -874,20 +841,16 @@ class FcrCoreServiceApi {
874
841
  * @description 启用/禁用屏幕共享&白板
875
842
  */
876
843
  async toggleShareEnable(params) {
877
- const {
878
- roomId,
879
- enable,
880
- targetRoles,
881
- payload
882
- } = params;
844
+ const roomId = params.roomId,
845
+ enable = params.enable,
846
+ targetRoles = params.targetRoles,
847
+ payload = params.payload;
883
848
  return this._client.fetch({
884
- path: `/v1/rooms/${roomId}/security/sharing/${enable ? 1 : 0}`,
849
+ path: "/v1/rooms/".concat(roomId, "/security/sharing/").concat(enable ? 1 : 0),
885
850
  method: 'PUT',
886
851
  data: {
887
852
  targetRoles,
888
- payload: {
889
- ...payload
890
- }
853
+ payload: _objectSpread({}, payload)
891
854
  }
892
855
  });
893
856
  }
@@ -896,20 +859,16 @@ class FcrCoreServiceApi {
896
859
  * @description 设置'启用/禁用屏幕共享&白板'的用户列表
897
860
  */
898
861
  async toggleShareEnableByUserIds(params) {
899
- const {
900
- roomId,
901
- enable,
902
- toUserUuids,
903
- payload
904
- } = params;
862
+ const roomId = params.roomId,
863
+ enable = params.enable,
864
+ toUserUuids = params.toUserUuids,
865
+ payload = params.payload;
905
866
  return this._client.fetch({
906
- path: `/v1/rooms/${roomId}/security/sharing/users/${enable ? 1 : 0}`,
867
+ path: "/v1/rooms/".concat(roomId, "/security/sharing/users/").concat(enable ? 1 : 0),
907
868
  method: 'PUT',
908
869
  data: {
909
870
  toUserUuids,
910
- payload: {
911
- ...payload
912
- }
871
+ payload: _objectSpread({}, payload)
913
872
  }
914
873
  });
915
874
  }
@@ -918,14 +877,12 @@ class FcrCoreServiceApi {
918
877
  * @description 开启 / 关闭屏幕共享
919
878
  */
920
879
  async toggleScreenShare(params) {
921
- const {
922
- roomId,
923
- userId,
924
- enable,
925
- data
926
- } = params;
880
+ const roomId = params.roomId,
881
+ userId = params.userId,
882
+ enable = params.enable,
883
+ data = params.data;
927
884
  return this._client.fetch({
928
- path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/${enable ? 1 : 0}`,
885
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/").concat(enable ? 1 : 0),
929
886
  method: 'PUT',
930
887
  data
931
888
  });
@@ -936,7 +893,7 @@ class FcrCoreServiceApi {
936
893
  */
937
894
  async toggleWhiteboardPreloadState(roomId, state) {
938
895
  return this._client.fetch({
939
- path: `/v1/rooms/${roomId}/widgets/netlessBoard/preload/${state}`,
896
+ path: "/v1/rooms/".concat(roomId, "/widgets/netlessBoard/preload/").concat(state),
940
897
  method: 'PUT'
941
898
  });
942
899
  }
@@ -946,7 +903,7 @@ class FcrCoreServiceApi {
946
903
  */
947
904
  async toggleWhiteboardActivityState(roomId, state) {
948
905
  return this._client.fetch({
949
- path: `/v2/rooms/${roomId}/widgets/netlessBoard/states/${state}`,
906
+ path: "/v2/rooms/".concat(roomId, "/widgets/netlessBoard/states/").concat(state),
950
907
  method: 'PUT'
951
908
  });
952
909
  }
@@ -955,20 +912,16 @@ class FcrCoreServiceApi {
955
912
  * @description 启用/禁用屏幕共享&白板
956
913
  */
957
914
  async toggleAnnotation(params) {
958
- const {
959
- roomId,
960
- enable,
961
- payload,
962
- targetRoles
963
- } = params;
915
+ const roomId = params.roomId,
916
+ enable = params.enable,
917
+ payload = params.payload,
918
+ targetRoles = params.targetRoles;
964
919
  return this._client.fetch({
965
- path: `/v1/rooms/${roomId}/security/annotation/${1}`,
920
+ path: "/v1/rooms/".concat(roomId, "/security/annotation/", 1),
966
921
  method: 'PUT',
967
922
  data: {
968
923
  targetRoles,
969
- payload: {
970
- ...payload
971
- }
924
+ payload: _objectSpread({}, payload)
972
925
  }
973
926
  });
974
927
  }
@@ -977,12 +930,10 @@ class FcrCoreServiceApi {
977
930
  * @description 修改白板背景
978
931
  */
979
932
  async setBackgroundColor(params) {
980
- const {
981
- roomId,
982
- backgroundColor
983
- } = params;
933
+ const roomId = params.roomId,
934
+ backgroundColor = params.backgroundColor;
984
935
  return this._client.fetch({
985
- path: `/v1/rooms/${roomId}/widgets/netlessBoard/info`,
936
+ path: "/v1/rooms/".concat(roomId, "/widgets/netlessBoard/info"),
986
937
  method: 'PUT',
987
938
  data: {
988
939
  backgroundColor
@@ -994,47 +945,39 @@ class FcrCoreServiceApi {
994
945
  * @description 设置白板写权限
995
946
  */
996
947
  async setWhiteboardWriteCount(params) {
997
- const {
998
- roomId,
999
- userId,
1000
- state
1001
- } = params;
948
+ const roomId = params.roomId,
949
+ userId = params.userId,
950
+ state = params.state;
1002
951
  return this._client.fetch({
1003
- path: `/v1/rooms/${roomId}/widgets/netlessBoard/write/${state}`,
952
+ path: "/v1/rooms/".concat(roomId, "/widgets/netlessBoard/write/").concat(state),
1004
953
  method: 'PUT'
1005
954
  });
1006
955
  }
1007
956
  async startShareScreen(params) {
1008
- const {
1009
- roomId,
1010
- userId,
1011
- config
1012
- } = params;
957
+ const roomId = params.roomId,
958
+ userId = params.userId,
959
+ config = params.config;
1013
960
  const res = this._client.fetch({
1014
- path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/1`,
961
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/1"),
1015
962
  method: 'PUT',
1016
963
  data: config
1017
964
  });
1018
965
  return res;
1019
966
  }
1020
967
  async stopShareScreen(params) {
1021
- const {
1022
- roomId,
1023
- userId
1024
- } = params;
968
+ const roomId = params.roomId,
969
+ userId = params.userId;
1025
970
  const res = this._client.fetch({
1026
- path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/0`,
971
+ path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/0"),
1027
972
  method: 'PUT'
1028
973
  });
1029
974
  return res;
1030
975
  }
1031
976
  async openInterpreter(params) {
1032
- const {
1033
- roomId,
1034
- data
1035
- } = params;
977
+ const roomId = params.roomId,
978
+ data = params.data;
1036
979
  const res = this._client.fetch({
1037
- path: `/v1/rooms/${roomId}/interpreter/states/1`,
980
+ path: "/v1/rooms/".concat(roomId, "/interpreter/states/1"),
1038
981
  method: 'PUT',
1039
982
  data
1040
983
  });
@@ -1044,11 +987,9 @@ class FcrCoreServiceApi {
1044
987
  return this.openInterpreter(params);
1045
988
  }
1046
989
  async closeInterpreter(params) {
1047
- const {
1048
- roomId
1049
- } = params;
990
+ const roomId = params.roomId;
1050
991
  const res = this._client.fetch({
1051
- path: `/v1/rooms/${roomId}/interpreter/states/0`,
992
+ path: "/v1/rooms/".concat(roomId, "/interpreter/states/0"),
1052
993
  method: 'PUT',
1053
994
  data: {}
1054
995
  });
@@ -1056,7 +997,7 @@ class FcrCoreServiceApi {
1056
997
  }
1057
998
  async createStreamBatch(roomUuid, streams) {
1058
999
  return await this._client.fetch({
1059
- path: `/v1/rooms/${roomUuid}/streams`,
1000
+ path: "/v1/rooms/".concat(roomUuid, "/streams"),
1060
1001
  method: 'POST',
1061
1002
  data: {
1062
1003
  streams
@@ -1065,23 +1006,22 @@ class FcrCoreServiceApi {
1065
1006
  }
1066
1007
  async updateStreamBatch(roomUuid, streams) {
1067
1008
  return await this._client.fetch({
1068
- path: `/v1/rooms/${roomUuid}/streams`,
1009
+ path: "/v1/rooms/".concat(roomUuid, "/streams"),
1069
1010
  method: 'PUT',
1070
1011
  data: {
1071
1012
  streams
1072
1013
  }
1073
1014
  });
1074
1015
  }
1075
- async updateStreamBatchByCondition({
1076
- roomUuid,
1077
- videoState,
1078
- audioState,
1079
- includeRoles,
1080
- excludeRoles,
1081
- condition
1082
- }) {
1016
+ async updateStreamBatchByCondition(_ref21) {
1017
+ let roomUuid = _ref21.roomUuid,
1018
+ videoState = _ref21.videoState,
1019
+ audioState = _ref21.audioState,
1020
+ includeRoles = _ref21.includeRoles,
1021
+ excludeRoles = _ref21.excludeRoles,
1022
+ condition = _ref21.condition;
1083
1023
  return await this._client.fetch({
1084
- path: `/v1/rooms/${roomUuid}/conditions/streams`,
1024
+ path: "/v1/rooms/".concat(roomUuid, "/conditions/streams"),
1085
1025
  method: 'PUT',
1086
1026
  data: {
1087
1027
  includeRoles,
@@ -1096,7 +1036,7 @@ class FcrCoreServiceApi {
1096
1036
  }
1097
1037
  async deleteStreamBatch(roomUuid, streams) {
1098
1038
  return await this._client.fetch({
1099
- path: `/v1/rooms/${roomUuid}/streams`,
1039
+ path: "/v1/rooms/".concat(roomUuid, "/streams"),
1100
1040
  method: 'DELETE',
1101
1041
  data: {
1102
1042
  streams
@@ -1104,13 +1044,11 @@ class FcrCoreServiceApi {
1104
1044
  });
1105
1045
  }
1106
1046
  async startCaption(params) {
1107
- const {
1108
- roomUuid,
1109
- userUuid,
1110
- config
1111
- } = params;
1047
+ const roomUuid = params.roomUuid,
1048
+ userUuid = params.userUuid,
1049
+ config = params.config;
1112
1050
  return await this._client.fetch({
1113
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/caption/states/1`,
1051
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/caption/states/1"),
1114
1052
  method: 'PUT',
1115
1053
  data: {
1116
1054
  source: config.sourceLanguage,
@@ -1119,23 +1057,19 @@ class FcrCoreServiceApi {
1119
1057
  });
1120
1058
  }
1121
1059
  async stopCaption(params) {
1122
- const {
1123
- roomUuid,
1124
- userUuid
1125
- } = params;
1060
+ const roomUuid = params.roomUuid,
1061
+ userUuid = params.userUuid;
1126
1062
  return await this._client.fetch({
1127
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/caption/states/0`,
1063
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/caption/states/0"),
1128
1064
  method: 'PUT'
1129
1065
  });
1130
1066
  }
1131
1067
  async updateWidgetState(params) {
1132
- const {
1133
- roomUuid,
1134
- widgetId,
1135
- state
1136
- } = params;
1068
+ const roomUuid = params.roomUuid,
1069
+ widgetId = params.widgetId,
1070
+ state = params.state;
1137
1071
  return await this._client.fetch({
1138
- path: `/v1/rooms/${roomUuid}/widgets/${widgetId}`,
1072
+ path: "/v1/rooms/".concat(roomUuid, "/widgets/").concat(widgetId),
1139
1073
  method: 'PUT',
1140
1074
  data: {
1141
1075
  state
@@ -1143,13 +1077,11 @@ class FcrCoreServiceApi {
1143
1077
  });
1144
1078
  }
1145
1079
  async startTranscribing(params) {
1146
- const {
1147
- roomUuid,
1148
- userUuid,
1149
- config
1150
- } = params;
1080
+ const roomUuid = params.roomUuid,
1081
+ userUuid = params.userUuid,
1082
+ config = params.config;
1151
1083
  return await this._client.fetch({
1152
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/transcribe/states/1`,
1084
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/transcribe/states/1"),
1153
1085
  method: 'PUT',
1154
1086
  data: {
1155
1087
  source: config.sourceLanguage,
@@ -1158,23 +1090,19 @@ class FcrCoreServiceApi {
1158
1090
  });
1159
1091
  }
1160
1092
  async stopTranscribing(params) {
1161
- const {
1162
- roomUuid,
1163
- userUuid
1164
- } = params;
1093
+ const roomUuid = params.roomUuid,
1094
+ userUuid = params.userUuid;
1165
1095
  return await this._client.fetch({
1166
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/transcribe/states/0`,
1096
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/transcribe/states/0"),
1167
1097
  method: 'PUT'
1168
1098
  });
1169
1099
  }
1170
1100
  async updateSourceLanguage(params) {
1171
- const {
1172
- roomUuid,
1173
- userUuid,
1174
- language
1175
- } = params;
1101
+ const roomUuid = params.roomUuid,
1102
+ userUuid = params.userUuid,
1103
+ language = params.language;
1176
1104
  return await this._client.fetch({
1177
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/speech`,
1105
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/speech"),
1178
1106
  method: 'PATCH',
1179
1107
  data: {
1180
1108
  source: language
@@ -1182,13 +1110,11 @@ class FcrCoreServiceApi {
1182
1110
  });
1183
1111
  }
1184
1112
  async subscribeTranscribingLanguage(params) {
1185
- const {
1186
- roomUuid,
1187
- userUuid,
1188
- language
1189
- } = params;
1113
+ const roomUuid = params.roomUuid,
1114
+ userUuid = params.userUuid,
1115
+ language = params.language;
1190
1116
  return await this._client.fetch({
1191
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/subscribe/1`,
1117
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/subscribe/1"),
1192
1118
  method: 'PATCH',
1193
1119
  data: {
1194
1120
  target: [language]
@@ -1196,23 +1122,19 @@ class FcrCoreServiceApi {
1196
1122
  });
1197
1123
  }
1198
1124
  async unsubscribeTranscribingLanguage(params) {
1199
- const {
1200
- roomUuid,
1201
- userUuid
1202
- } = params;
1125
+ const roomUuid = params.roomUuid,
1126
+ userUuid = params.userUuid;
1203
1127
  return await this._client.fetch({
1204
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/subscribe/0`,
1128
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/subscribe/0"),
1205
1129
  method: 'PATCH'
1206
1130
  });
1207
1131
  }
1208
1132
  async allowStartCaption(params) {
1209
- const {
1210
- roomUuid,
1211
- enable,
1212
- targetRoles
1213
- } = params;
1133
+ const roomUuid = params.roomUuid,
1134
+ enable = params.enable,
1135
+ targetRoles = params.targetRoles;
1214
1136
  return await this._client.fetch({
1215
- path: `/v1/rooms/${roomUuid}/security/caption/${enable ? 1 : 0}`,
1137
+ path: "/v1/rooms/".concat(roomUuid, "/security/caption/").concat(enable ? 1 : 0),
1216
1138
  method: 'PUT',
1217
1139
  data: {
1218
1140
  targetRoles
@@ -1220,13 +1142,11 @@ class FcrCoreServiceApi {
1220
1142
  });
1221
1143
  }
1222
1144
  async allowStartTranscribing(params) {
1223
- const {
1224
- roomUuid,
1225
- enable,
1226
- targetRoles
1227
- } = params;
1145
+ const roomUuid = params.roomUuid,
1146
+ enable = params.enable,
1147
+ targetRoles = params.targetRoles;
1228
1148
  return await this._client.fetch({
1229
- path: `/v1/rooms/${roomUuid}/security/transcribe/${enable ? 1 : 0}`,
1149
+ path: "/v1/rooms/".concat(roomUuid, "/security/transcribe/").concat(enable ? 1 : 0),
1230
1150
  method: 'PUT',
1231
1151
  data: {
1232
1152
  targetRoles
@@ -1234,13 +1154,11 @@ class FcrCoreServiceApi {
1234
1154
  });
1235
1155
  }
1236
1156
  async allowUpdateSttSourceLanguage(params) {
1237
- const {
1238
- roomUuid,
1239
- enable,
1240
- targetRoles
1241
- } = params;
1157
+ const roomUuid = params.roomUuid,
1158
+ enable = params.enable,
1159
+ targetRoles = params.targetRoles;
1242
1160
  return await this._client.fetch({
1243
- path: `/v1/rooms/${roomUuid}/security/stt/${enable ? 1 : 0}`,
1161
+ path: "/v1/rooms/".concat(roomUuid, "/security/stt/").concat(enable ? 1 : 0),
1244
1162
  method: 'PUT',
1245
1163
  data: {
1246
1164
  targetRoles,
@@ -1251,15 +1169,13 @@ class FcrCoreServiceApi {
1251
1169
  });
1252
1170
  }
1253
1171
  async startApplicatioByRole(params) {
1254
- const {
1255
- userUuid,
1256
- applicationKey,
1257
- cause,
1258
- targetRoles,
1259
- roomUuid
1260
- } = params;
1172
+ const userUuid = params.userUuid,
1173
+ applicationKey = params.applicationKey,
1174
+ cause = params.cause,
1175
+ targetRoles = params.targetRoles,
1176
+ roomUuid = params.roomUuid;
1261
1177
  return await this._client.fetch({
1262
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1178
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1263
1179
  method: 'PUT',
1264
1180
  data: {
1265
1181
  target: 3,
@@ -1269,14 +1185,12 @@ class FcrCoreServiceApi {
1269
1185
  });
1270
1186
  }
1271
1187
  async cancelApplication(params) {
1272
- const {
1273
- userUuid,
1274
- applicationKey,
1275
- cause,
1276
- roomUuid
1277
- } = params;
1188
+ const userUuid = params.userUuid,
1189
+ applicationKey = params.applicationKey,
1190
+ cause = params.cause,
1191
+ roomUuid = params.roomUuid;
1278
1192
  return await this._client.fetch({
1279
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1193
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1280
1194
  method: 'DELETE',
1281
1195
  data: {
1282
1196
  target: 2,
@@ -1287,15 +1201,13 @@ class FcrCoreServiceApi {
1287
1201
  });
1288
1202
  }
1289
1203
  async acceptApplicationByUserId(params) {
1290
- const {
1291
- userUuid,
1292
- applicationKey,
1293
- cause,
1294
- targetUserIds,
1295
- roomUuid
1296
- } = params;
1204
+ const userUuid = params.userUuid,
1205
+ applicationKey = params.applicationKey,
1206
+ cause = params.cause,
1207
+ targetUserIds = params.targetUserIds,
1208
+ roomUuid = params.roomUuid;
1297
1209
  return await this._client.fetch({
1298
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1210
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1299
1211
  method: 'PATCH',
1300
1212
  data: {
1301
1213
  target: 2,
@@ -1305,14 +1217,12 @@ class FcrCoreServiceApi {
1305
1217
  });
1306
1218
  }
1307
1219
  async acceptAllApplication(params) {
1308
- const {
1309
- userUuid,
1310
- applicationKey,
1311
- cause,
1312
- roomUuid
1313
- } = params;
1220
+ const userUuid = params.userUuid,
1221
+ applicationKey = params.applicationKey,
1222
+ cause = params.cause,
1223
+ roomUuid = params.roomUuid;
1314
1224
  return await this._client.fetch({
1315
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1225
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1316
1226
  method: 'PATCH',
1317
1227
  data: {
1318
1228
  target: 1,
@@ -1321,15 +1231,13 @@ class FcrCoreServiceApi {
1321
1231
  });
1322
1232
  }
1323
1233
  async rejectApplicationByUserId(params) {
1324
- const {
1325
- userUuid,
1326
- applicationKey,
1327
- cause,
1328
- targetUserIds,
1329
- roomUuid
1330
- } = params;
1234
+ const userUuid = params.userUuid,
1235
+ applicationKey = params.applicationKey,
1236
+ cause = params.cause,
1237
+ targetUserIds = params.targetUserIds,
1238
+ roomUuid = params.roomUuid;
1331
1239
  return await this._client.fetch({
1332
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1240
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1333
1241
  method: 'DELETE',
1334
1242
  data: {
1335
1243
  target: 2,
@@ -1340,14 +1248,12 @@ class FcrCoreServiceApi {
1340
1248
  });
1341
1249
  }
1342
1250
  async rejectAllApplication(params) {
1343
- const {
1344
- userUuid,
1345
- applicationKey,
1346
- cause,
1347
- roomUuid
1348
- } = params;
1251
+ const userUuid = params.userUuid,
1252
+ applicationKey = params.applicationKey,
1253
+ cause = params.cause,
1254
+ roomUuid = params.roomUuid;
1349
1255
  return await this._client.fetch({
1350
- path: `/v1/rooms/${roomUuid}/users/${userUuid}/applications/${applicationKey}`,
1256
+ path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/applications/").concat(applicationKey),
1351
1257
  method: 'DELETE',
1352
1258
  data: {
1353
1259
  target: 1,
@@ -1357,13 +1263,11 @@ class FcrCoreServiceApi {
1357
1263
  });
1358
1264
  }
1359
1265
  async allowSendChatByUserId(params) {
1360
- const {
1361
- roomUuid,
1362
- targetUserIds,
1363
- config
1364
- } = params;
1266
+ const roomUuid = params.roomUuid,
1267
+ targetUserIds = params.targetUserIds,
1268
+ config = params.config;
1365
1269
  return await this._client.fetch({
1366
- path: `/v1/rooms/${roomUuid}/security/chat/users/1`,
1270
+ path: "/v1/rooms/".concat(roomUuid, "/security/chat/users/1"),
1367
1271
  method: 'PUT',
1368
1272
  data: {
1369
1273
  toUserUuids: targetUserIds,
@@ -1379,13 +1283,11 @@ class FcrCoreServiceApi {
1379
1283
  });
1380
1284
  }
1381
1285
  async allowViewUserCount(params) {
1382
- const {
1383
- roomUuid,
1384
- enable,
1385
- targetRoles
1386
- } = params;
1286
+ const roomUuid = params.roomUuid,
1287
+ enable = params.enable,
1288
+ targetRoles = params.targetRoles;
1387
1289
  return await this._client.fetch({
1388
- path: `/v1/rooms/${roomUuid}/security/viewUserCount/${enable ? 1 : 0}`,
1290
+ path: "/v1/rooms/".concat(roomUuid, "/security/viewUserCount/").concat(enable ? 1 : 0),
1389
1291
  method: 'PUT',
1390
1292
  data: {
1391
1293
  targetRoles
@@ -1393,13 +1295,11 @@ class FcrCoreServiceApi {
1393
1295
  });
1394
1296
  }
1395
1297
  async allowHandsUp(params) {
1396
- const {
1397
- roomUuid,
1398
- targetRoles,
1399
- enable
1400
- } = params;
1298
+ const roomUuid = params.roomUuid,
1299
+ targetRoles = params.targetRoles,
1300
+ enable = params.enable;
1401
1301
  return await this._client.fetch({
1402
- path: `/v1/rooms/${roomUuid}/security/handsUp/${enable ? 1 : 0}`,
1302
+ path: "/v1/rooms/".concat(roomUuid, "/security/handsUp/").concat(enable ? 1 : 0),
1403
1303
  method: 'PUT',
1404
1304
  data: {
1405
1305
  targetRoles
@@ -1407,13 +1307,11 @@ class FcrCoreServiceApi {
1407
1307
  });
1408
1308
  }
1409
1309
  async allowSendChatByUserRole(params) {
1410
- const {
1411
- roomUuid,
1412
- targetRoles,
1413
- config
1414
- } = params;
1310
+ const roomUuid = params.roomUuid,
1311
+ targetRoles = params.targetRoles,
1312
+ config = params.config;
1415
1313
  return await this._client.fetch({
1416
- path: `/v1/rooms/${roomUuid}/security/chat/1`,
1314
+ path: "/v1/rooms/".concat(roomUuid, "/security/chat/1"),
1417
1315
  method: 'PUT',
1418
1316
  data: {
1419
1317
  targetRoles,