@mx-space/api-client 1.8.0-alpha.2 → 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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.global.js +4 -2
- package/dist/index.js +4 -2
- package/models/activity.ts +2 -0
- package/package.json +2 -2
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
|
@@ -123,6 +123,7 @@ interface ActivityPresence {
|
|
|
123
123
|
identity: string;
|
|
124
124
|
roomName: string;
|
|
125
125
|
position: number;
|
|
126
|
+
displayName?: string;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
declare module '../core/client' {
|
|
@@ -163,11 +164,12 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
163
164
|
*
|
|
164
165
|
* @support core >= 5.0.0
|
|
165
166
|
*/
|
|
166
|
-
updatePresence({ identity, position, roomName, sid, }: {
|
|
167
|
+
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
167
168
|
roomName: string;
|
|
168
169
|
position: number;
|
|
169
170
|
identity: string;
|
|
170
171
|
sid: string;
|
|
172
|
+
displayName?: string;
|
|
171
173
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
172
174
|
[key: string]: any;
|
|
173
175
|
data: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ interface ActivityPresence {
|
|
|
123
123
|
identity: string;
|
|
124
124
|
roomName: string;
|
|
125
125
|
position: number;
|
|
126
|
+
displayName?: string;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
declare module '@mx-space/api-client' {
|
|
@@ -163,11 +164,12 @@ declare class ActivityController<ResponseWrapper> implements IController {
|
|
|
163
164
|
*
|
|
164
165
|
* @support core >= 5.0.0
|
|
165
166
|
*/
|
|
166
|
-
updatePresence({ identity, position, roomName, sid, }: {
|
|
167
|
+
updatePresence({ identity, position, roomName, sid, displayName, }: {
|
|
167
168
|
roomName: string;
|
|
168
169
|
position: number;
|
|
169
170
|
identity: string;
|
|
170
171
|
sid: string;
|
|
172
|
+
displayName?: string;
|
|
171
173
|
}): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
172
174
|
[key: string]: any;
|
|
173
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
|
}
|
package/models/activity.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.8.0-alpha.
|
|
3
|
+
"version": "1.8.0-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"form-data": "4.0.0",
|
|
56
56
|
"ky": "1.2.0",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
|
-
"tsup": "8.0.
|
|
58
|
+
"tsup": "8.0.2",
|
|
59
59
|
"umi-request": "1.4.0",
|
|
60
60
|
"vite": "^5.0.12",
|
|
61
61
|
"vitest": "^1.0.4"
|