@reactoo/watchtogether-sdk-js 2.5.41 → 2.5.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.41",
3
+ "version": "2.5.44",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -54,17 +54,20 @@ let room = function () {
54
54
  }))
55
55
  },
56
56
 
57
- createRoom: ({title, description, isPublic, isListed, isStudioLayout, allowedParticipants, wtChannelId, isHd, disableSync, reduceRoomControls, hasStudioChat, maxParticipants, customAttributes, chatRoomId, linkedRoomId} = {}) => {
57
+ createRoom: ({title, description, isPublic, isRouter, isStudioLayout, wtChannelId, isHd, disableSync, reduceRoomControls, hasStudioChat, maxParticipants, customAttributes, chatRoomId, linkedRoomId, type, dotAttribute} = {}) => {
58
+ let _da = dotAttribute
59
+ ? (Array.isArray(dotAttribute)
60
+ ? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
61
+ : {[dotAttribute.name]: dotAttribute.value})
62
+ : {};
58
63
  return this.__privates.auth.__client
59
64
  .then(client => client.apis.wt.createRoom({}, {
60
65
  requestBody: {
61
66
  title,
62
67
  description,
68
+ isRouter,
63
69
  isPublic,
64
- isListed,
65
70
  isStudioLayout,
66
- instanceType: this.__instanceType,
67
- allowedParticipants,
68
71
  wtChannelId,
69
72
  isHd,
70
73
  disableSync,
@@ -73,12 +76,15 @@ let room = function () {
73
76
  linkedRoomId,
74
77
  hasStudioChat,
75
78
  maxParticipants,
76
- customAttributes
79
+ type,
80
+ customAttributes,
81
+ ..._da,
82
+ instanceType: this.__instanceType,
77
83
  }
78
84
  }))
79
85
  },
80
86
 
81
- updateRoom: ({roomId, title, description, isPublic, isListed, allowedParticipants, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, disableSync, defaultRegion, customAttributes, dotAttribute} = {}) => {
87
+ updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, customAttributes, dotAttribute} = {}) => {
82
88
  let _da = dotAttribute
83
89
  ? (Array.isArray(dotAttribute)
84
90
  ? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
@@ -87,13 +93,12 @@ let room = function () {
87
93
  return this.__privates.auth.__client
88
94
  .then(client => client.apis.wt.updateRoom({id: roomId}, {
89
95
  requestBody: {
90
- ..._da,
91
96
  title,
92
97
  description,
93
98
  slug,
94
99
  password,
95
100
  isPublic,
96
- isListed,
101
+ isRouter,
97
102
  isHd,
98
103
  isStudioLayout,
99
104
  hasStudioChat,
@@ -101,10 +106,14 @@ let room = function () {
101
106
  reduceRoomControls,
102
107
  chatRoomId,
103
108
  linkedRoomId,
109
+ type,
104
110
  disableSync,
105
111
  defaultRegion,
106
112
  customAttributes,
107
- wtChannelId, ...(setInstanceType && {instanceType: setInstanceType === true ? this.__instanceType : setInstanceType}), ...(allowedParticipants && {allowedParticipants}), ...(recordings && {recordings})
113
+ wtChannelId,
114
+ ..._da,
115
+ ...(setInstanceType && {instanceType: setInstanceType === true ? this.__instanceType : setInstanceType}),
116
+ ...(recordings && {recordings})
108
117
  }
109
118
  }))
110
119
  },