@smartspace/api-client 0.1.0-pr.1286.59ac4f9 → 0.1.0-pr.1288.1a26c27
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/dist/generated/signalr/TypedSignalR.Client/SmartSpace.App.Business.Hubs.Contracts.d.ts
CHANGED
|
@@ -24,6 +24,19 @@ export type IConfigHubInvoker = {
|
|
|
24
24
|
* @returns Transpiled from System.Threading.Tasks.Task
|
|
25
25
|
*/
|
|
26
26
|
leaveGroup(groupName: string): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Joins a change topic (models, models:<id>, models:<id>:deployment,
|
|
29
|
+
* workspaces:<id>/messageThreads). Refused with a hub error when the caller may not read
|
|
30
|
+
* what the topic names.
|
|
31
|
+
* @param topic Transpiled from string
|
|
32
|
+
* @returns Transpiled from System.Threading.Tasks.Task
|
|
33
|
+
*/
|
|
34
|
+
joinTopic(topic: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* @param topic Transpiled from string
|
|
37
|
+
* @returns Transpiled from System.Threading.Tasks.Task
|
|
38
|
+
*/
|
|
39
|
+
leaveTopic(topic: string): Promise<void>;
|
|
27
40
|
};
|
|
28
41
|
export type IChatReceiver = {
|
|
29
42
|
/**
|
|
@@ -79,4 +92,13 @@ export type IConfigReceiver = {
|
|
|
79
92
|
* @returns Transpiled from System.Threading.Tasks.Task
|
|
80
93
|
*/
|
|
81
94
|
receiveThreadDeleted(threadEvent: ThreadEvent): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Something the caller subscribed to changed: one change tag per call (models,
|
|
97
|
+
* models:<id>), sent after the change committed. is who
|
|
98
|
+
* the change was made for, so a client can tell its own changes apart.
|
|
99
|
+
* @param tags Transpiled from string[]
|
|
100
|
+
* @param actorUserId Transpiled from string
|
|
101
|
+
* @returns Transpiled from System.Threading.Tasks.Task
|
|
102
|
+
*/
|
|
103
|
+
receiveChanges(tags: string[], actorUserId: string): Promise<void>;
|
|
82
104
|
};
|
|
@@ -65,6 +65,12 @@ class IConfigHubInvoker_HubProxy {
|
|
|
65
65
|
this.leaveGroup = async (groupName) => {
|
|
66
66
|
return await this.connection.invoke("LeaveGroup", groupName);
|
|
67
67
|
};
|
|
68
|
+
this.joinTopic = async (topic) => {
|
|
69
|
+
return await this.connection.invoke("JoinTopic", topic);
|
|
70
|
+
};
|
|
71
|
+
this.leaveTopic = async (topic) => {
|
|
72
|
+
return await this.connection.invoke("LeaveTopic", topic);
|
|
73
|
+
};
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
76
|
// Receiver
|
|
@@ -101,17 +107,20 @@ class IConfigReceiver_Binder {
|
|
|
101
107
|
const __blocksUpdate = () => receiver.blocksUpdate();
|
|
102
108
|
const __receiveThreadUpdate = (...args) => receiver.receiveThreadUpdate(...args);
|
|
103
109
|
const __receiveThreadDeleted = (...args) => receiver.receiveThreadDeleted(...args);
|
|
110
|
+
const __receiveChanges = (...args) => receiver.receiveChanges(...args);
|
|
104
111
|
connection.on("ReceiveMessage", __receiveMessage);
|
|
105
112
|
connection.on("ReceiveNotification", __receiveNotification);
|
|
106
113
|
connection.on("BlocksUpdate", __blocksUpdate);
|
|
107
114
|
connection.on("ReceiveThreadUpdate", __receiveThreadUpdate);
|
|
108
115
|
connection.on("ReceiveThreadDeleted", __receiveThreadDeleted);
|
|
116
|
+
connection.on("ReceiveChanges", __receiveChanges);
|
|
109
117
|
const methodList = [
|
|
110
118
|
{ methodName: "ReceiveMessage", method: __receiveMessage },
|
|
111
119
|
{ methodName: "ReceiveNotification", method: __receiveNotification },
|
|
112
120
|
{ methodName: "BlocksUpdate", method: __blocksUpdate },
|
|
113
121
|
{ methodName: "ReceiveThreadUpdate", method: __receiveThreadUpdate },
|
|
114
|
-
{ methodName: "ReceiveThreadDeleted", method: __receiveThreadDeleted }
|
|
122
|
+
{ methodName: "ReceiveThreadDeleted", method: __receiveThreadDeleted },
|
|
123
|
+
{ methodName: "ReceiveChanges", method: __receiveChanges }
|
|
115
124
|
];
|
|
116
125
|
return new ReceiverMethodSubscription(connection, methodList);
|
|
117
126
|
};
|