@mx-space/api-client 1.8.0-alpha.3 → 1.8.0-alpha.4
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/controllers/activity.ts +6 -0
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.global.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/controllers/activity.ts
CHANGED
|
@@ -60,11 +60,15 @@ export class ActivityController<ResponseWrapper> implements IController {
|
|
|
60
60
|
position,
|
|
61
61
|
roomName,
|
|
62
62
|
sid,
|
|
63
|
+
|
|
64
|
+
displayName,
|
|
63
65
|
}: {
|
|
64
66
|
roomName: string
|
|
65
67
|
position: number
|
|
66
68
|
identity: string
|
|
67
69
|
sid: string
|
|
70
|
+
|
|
71
|
+
displayName?: string
|
|
68
72
|
}) {
|
|
69
73
|
return this.proxy.presence.update.post({
|
|
70
74
|
data: {
|
|
@@ -73,6 +77,8 @@ export class ActivityController<ResponseWrapper> implements IController {
|
|
|
73
77
|
ts: Date.now(),
|
|
74
78
|
roomName,
|
|
75
79
|
sid,
|
|
80
|
+
|
|
81
|
+
displayName,
|
|
76
82
|
},
|
|
77
83
|
})
|
|
78
84
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -226,7 +226,8 @@ var ActivityController = class {
|
|
|
226
226
|
identity,
|
|
227
227
|
position,
|
|
228
228
|
roomName,
|
|
229
|
-
sid
|
|
229
|
+
sid,
|
|
230
|
+
displayName
|
|
230
231
|
}) {
|
|
231
232
|
return this.proxy.presence.update.post({
|
|
232
233
|
data: {
|
|
@@ -234,7 +235,8 @@ var ActivityController = class {
|
|
|
234
235
|
position,
|
|
235
236
|
ts: Date.now(),
|
|
236
237
|
roomName,
|
|
237
|
-
sid
|
|
238
|
+
sid,
|
|
239
|
+
displayName
|
|
238
240
|
}
|
|
239
241
|
});
|
|
240
242
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -164,11 +164,12 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
164
164
|
*
|
|
165
165
|
* @support core >= 5.0.0
|
|
166
166
|
*/
|
|
167
|
-
updatePresence({ identity, position, roomName, sid, }: {
|
|
167
|
+
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
168
168
|
roomName: string;
|
|
169
169
|
position: number;
|
|
170
170
|
identity: string;
|
|
171
171
|
sid: string;
|
|
172
|
+
displayName?: string;
|
|
172
173
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
173
174
|
[key: string]: any;
|
|
174
175
|
data: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -164,11 +164,12 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
164
164
|
*
|
|
165
165
|
* @support core >= 5.0.0
|
|
166
166
|
*/
|
|
167
|
-
updatePresence({ identity, position, roomName, sid, }: {
|
|
167
|
+
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
168
168
|
roomName: string;
|
|
169
169
|
position: number;
|
|
170
170
|
identity: string;
|
|
171
171
|
sid: string;
|
|
172
|
+
displayName?: string;
|
|
172
173
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
173
174
|
[key: string]: any;
|
|
174
175
|
data: unknown;
|
package/dist/index.global.js
CHANGED
|
@@ -162,7 +162,8 @@
|
|
|
162
162
|
identity,
|
|
163
163
|
position,
|
|
164
164
|
roomName,
|
|
165
|
-
sid
|
|
165
|
+
sid,
|
|
166
|
+
displayName
|
|
166
167
|
}) {
|
|
167
168
|
return this.proxy.presence.update.post({
|
|
168
169
|
data: {
|
|
@@ -170,7 +171,8 @@
|
|
|
170
171
|
position,
|
|
171
172
|
ts: Date.now(),
|
|
172
173
|
roomName,
|
|
173
|
-
sid
|
|
174
|
+
sid,
|
|
175
|
+
displayName
|
|
174
176
|
}
|
|
175
177
|
});
|
|
176
178
|
}
|
package/dist/index.js
CHANGED
|
@@ -160,7 +160,8 @@ var ActivityController = class {
|
|
|
160
160
|
identity,
|
|
161
161
|
position,
|
|
162
162
|
roomName,
|
|
163
|
-
sid
|
|
163
|
+
sid,
|
|
164
|
+
displayName
|
|
164
165
|
}) {
|
|
165
166
|
return this.proxy.presence.update.post({
|
|
166
167
|
data: {
|
|
@@ -168,7 +169,8 @@ var ActivityController = class {
|
|
|
168
169
|
position,
|
|
169
170
|
ts: Date.now(),
|
|
170
171
|
roomName,
|
|
171
|
-
sid
|
|
172
|
+
sid,
|
|
173
|
+
displayName
|
|
172
174
|
}
|
|
173
175
|
});
|
|
174
176
|
}
|