@mx-space/api-client 1.8.1-alpha.0 → 1.8.1
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 +3 -2
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.global.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/controllers/activity.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class ActivityController<ResponseWrapper> implements IController {
|
|
|
60
60
|
position,
|
|
61
61
|
roomName,
|
|
62
62
|
sid,
|
|
63
|
-
|
|
63
|
+
ts,
|
|
64
64
|
displayName,
|
|
65
65
|
}: {
|
|
66
66
|
roomName: string
|
|
@@ -69,12 +69,13 @@ export class ActivityController<ResponseWrapper> implements IController {
|
|
|
69
69
|
sid: string
|
|
70
70
|
|
|
71
71
|
displayName?: string
|
|
72
|
+
ts?: number
|
|
72
73
|
}) {
|
|
73
74
|
return this.proxy.presence.update.post({
|
|
74
75
|
data: {
|
|
75
76
|
identity,
|
|
76
77
|
position,
|
|
77
|
-
ts: Date.now(),
|
|
78
|
+
ts: ts || Date.now(),
|
|
78
79
|
roomName,
|
|
79
80
|
sid,
|
|
80
81
|
|
package/dist/index.cjs
CHANGED
|
@@ -227,13 +227,14 @@ var ActivityController = class {
|
|
|
227
227
|
position,
|
|
228
228
|
roomName,
|
|
229
229
|
sid,
|
|
230
|
+
ts,
|
|
230
231
|
displayName
|
|
231
232
|
}) {
|
|
232
233
|
return this.proxy.presence.update.post({
|
|
233
234
|
data: {
|
|
234
235
|
identity,
|
|
235
236
|
position,
|
|
236
|
-
ts: Date.now(),
|
|
237
|
+
ts: ts || Date.now(),
|
|
237
238
|
roomName,
|
|
238
239
|
sid,
|
|
239
240
|
displayName
|
package/dist/index.d.cts
CHANGED
|
@@ -279,12 +279,13 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
279
279
|
*
|
|
280
280
|
* @support core >= 5.0.0
|
|
281
281
|
*/
|
|
282
|
-
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
282
|
+
updatePresence({ identity, position, roomName, sid, ts, displayName, }: {
|
|
283
283
|
roomName: string;
|
|
284
284
|
position: number;
|
|
285
285
|
identity: string;
|
|
286
286
|
sid: string;
|
|
287
287
|
displayName?: string;
|
|
288
|
+
ts?: number;
|
|
288
289
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
289
290
|
[key: string]: any;
|
|
290
291
|
data: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -279,12 +279,13 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
279
279
|
*
|
|
280
280
|
* @support core >= 5.0.0
|
|
281
281
|
*/
|
|
282
|
-
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
282
|
+
updatePresence({ identity, position, roomName, sid, ts, displayName, }: {
|
|
283
283
|
roomName: string;
|
|
284
284
|
position: number;
|
|
285
285
|
identity: string;
|
|
286
286
|
sid: string;
|
|
287
287
|
displayName?: string;
|
|
288
|
+
ts?: number;
|
|
288
289
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
289
290
|
[key: string]: any;
|
|
290
291
|
data: unknown;
|
package/dist/index.global.js
CHANGED
|
@@ -163,13 +163,14 @@
|
|
|
163
163
|
position,
|
|
164
164
|
roomName,
|
|
165
165
|
sid,
|
|
166
|
+
ts,
|
|
166
167
|
displayName
|
|
167
168
|
}) {
|
|
168
169
|
return this.proxy.presence.update.post({
|
|
169
170
|
data: {
|
|
170
171
|
identity,
|
|
171
172
|
position,
|
|
172
|
-
ts: Date.now(),
|
|
173
|
+
ts: ts || Date.now(),
|
|
173
174
|
roomName,
|
|
174
175
|
sid,
|
|
175
176
|
displayName
|
package/dist/index.js
CHANGED
|
@@ -161,13 +161,14 @@ var ActivityController = class {
|
|
|
161
161
|
position,
|
|
162
162
|
roomName,
|
|
163
163
|
sid,
|
|
164
|
+
ts,
|
|
164
165
|
displayName
|
|
165
166
|
}) {
|
|
166
167
|
return this.proxy.presence.update.post({
|
|
167
168
|
data: {
|
|
168
169
|
identity,
|
|
169
170
|
position,
|
|
170
|
-
ts: Date.now(),
|
|
171
|
+
ts: ts || Date.now(),
|
|
171
172
|
roomName,
|
|
172
173
|
sid,
|
|
173
174
|
displayName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.8.1
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"axios": "^1.6.7",
|
|
52
52
|
"camelcase-keys": "^9.1.3",
|
|
53
53
|
"cors": "2.8.5",
|
|
54
|
-
"express": "4.19.
|
|
54
|
+
"express": "4.19.2",
|
|
55
55
|
"form-data": "4.0.0",
|
|
56
56
|
"lodash": "4.17.21",
|
|
57
57
|
"tsup": "8.0.2",
|