@reactoo/watchtogether-sdk-js 2.5.40 → 2.5.43

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