@smartspace/api-client 0.1.0-pr.1366.d52afe6 → 0.1.0-pr.1369.cdbc31d
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/chat/models/changeTagsTopic.d.ts +11 -0
- package/dist/generated/chat/models/changeTagsTopic.js +8 -0
- package/dist/generated/chat/models/index.d.ts +1 -0
- package/dist/generated/chat/models/index.js +1 -0
- package/dist/generated/signalr/TypedSignalR.Client/SmartSpace.App.Business.Hubs.Contracts.d.ts +20 -0
- package/dist/generated/signalr/TypedSignalR.Client/index.js +10 -1
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.13.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* SmartSpace Chat API
|
|
5
|
+
* OpenAPI spec version: v1
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* A change topic: a resource (models), a row (models:<id>), a view of a row (models:<id>:deployment) or a resource under a parent row (workspaces:<id>/messageThreads).
|
|
9
|
+
* @pattern ^(?<resource>[a-z][A-Za-z]*)(?::(?<id>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?::(?<view>[a-z]+(?:-[a-z]+)*)|/(?<child>[a-z][A-Za-z]*))?)?$
|
|
10
|
+
*/
|
|
11
|
+
export type ChangeTagsTopic = string;
|
|
@@ -21,6 +21,7 @@ export * from './aiModelPropertyStringType';
|
|
|
21
21
|
export * from './aiModelSummary';
|
|
22
22
|
export * from './aiModelSummaryDeploymentStatus';
|
|
23
23
|
export * from './aiModelSummaryModelDeploymentProviderType';
|
|
24
|
+
export * from './changeTagsTopic';
|
|
24
25
|
export * from './commentComment';
|
|
25
26
|
export * from './commentCommentSummary';
|
|
26
27
|
export * from './commentCreateComment';
|
|
@@ -37,6 +37,7 @@ __exportStar(require("./aiModelPropertyStringType"), exports);
|
|
|
37
37
|
__exportStar(require("./aiModelSummary"), exports);
|
|
38
38
|
__exportStar(require("./aiModelSummaryDeploymentStatus"), exports);
|
|
39
39
|
__exportStar(require("./aiModelSummaryModelDeploymentProviderType"), exports);
|
|
40
|
+
__exportStar(require("./changeTagsTopic"), exports);
|
|
40
41
|
__exportStar(require("./commentComment"), exports);
|
|
41
42
|
__exportStar(require("./commentCommentSummary"), exports);
|
|
42
43
|
__exportStar(require("./commentCreateComment"), exports);
|
package/dist/generated/signalr/TypedSignalR.Client/SmartSpace.App.Business.Hubs.Contracts.d.ts
CHANGED
|
@@ -12,6 +12,18 @@ export type IChatHubInvoker = {
|
|
|
12
12
|
* @returns Transpiled from System.Threading.Tasks.Task
|
|
13
13
|
*/
|
|
14
14
|
leaveGroup(groupName: string): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Joins a change topic, as on the config hub (): true once
|
|
17
|
+
* joined, false when the topic is malformed or the caller may not read what it names.
|
|
18
|
+
* @param topic Transpiled from string
|
|
19
|
+
* @returns Transpiled from System.Threading.Tasks.Task<bool>
|
|
20
|
+
*/
|
|
21
|
+
joinTopic(topic: string): Promise<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* @param topic Transpiled from string
|
|
24
|
+
* @returns Transpiled from System.Threading.Tasks.Task
|
|
25
|
+
*/
|
|
26
|
+
leaveTopic(topic: string): Promise<void>;
|
|
15
27
|
};
|
|
16
28
|
export type IConfigHubInvoker = {
|
|
17
29
|
/**
|
|
@@ -66,6 +78,14 @@ export type IChatReceiver = {
|
|
|
66
78
|
* @returns Transpiled from System.Threading.Tasks.Task
|
|
67
79
|
*/
|
|
68
80
|
receiveCommentsUpdate(comment: CommentSummary): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Something the caller subscribed to changed, as on the config hub
|
|
83
|
+
* (): one change tag per call, sent after the change committed.
|
|
84
|
+
* @param tags Transpiled from string[]
|
|
85
|
+
* @param actorUserId Transpiled from string
|
|
86
|
+
* @returns Transpiled from System.Threading.Tasks.Task
|
|
87
|
+
*/
|
|
88
|
+
receiveChanges(tags: string[], actorUserId: string): Promise<void>;
|
|
69
89
|
};
|
|
70
90
|
export type IConfigReceiver = {
|
|
71
91
|
/**
|
|
@@ -46,6 +46,12 @@ class IChatHubInvoker_HubProxy {
|
|
|
46
46
|
this.leaveGroup = async (groupName) => {
|
|
47
47
|
return await this.connection.invoke("LeaveGroup", groupName);
|
|
48
48
|
};
|
|
49
|
+
this.joinTopic = async (topic) => {
|
|
50
|
+
return await this.connection.invoke("JoinTopic", topic);
|
|
51
|
+
};
|
|
52
|
+
this.leaveTopic = async (topic) => {
|
|
53
|
+
return await this.connection.invoke("LeaveTopic", topic);
|
|
54
|
+
};
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
class IConfigHubInvoker_HubProxyFactory {
|
|
@@ -82,17 +88,20 @@ class IChatReceiver_Binder {
|
|
|
82
88
|
const __receiveThreadUpdate = (...args) => receiver.receiveThreadUpdate(...args);
|
|
83
89
|
const __receiveThreadDeleted = (...args) => receiver.receiveThreadDeleted(...args);
|
|
84
90
|
const __receiveCommentsUpdate = (...args) => receiver.receiveCommentsUpdate(...args);
|
|
91
|
+
const __receiveChanges = (...args) => receiver.receiveChanges(...args);
|
|
85
92
|
connection.on("ReceiveMessage", __receiveMessage);
|
|
86
93
|
connection.on("ReceiveNotification", __receiveNotification);
|
|
87
94
|
connection.on("ReceiveThreadUpdate", __receiveThreadUpdate);
|
|
88
95
|
connection.on("ReceiveThreadDeleted", __receiveThreadDeleted);
|
|
89
96
|
connection.on("ReceiveCommentsUpdate", __receiveCommentsUpdate);
|
|
97
|
+
connection.on("ReceiveChanges", __receiveChanges);
|
|
90
98
|
const methodList = [
|
|
91
99
|
{ methodName: "ReceiveMessage", method: __receiveMessage },
|
|
92
100
|
{ methodName: "ReceiveNotification", method: __receiveNotification },
|
|
93
101
|
{ methodName: "ReceiveThreadUpdate", method: __receiveThreadUpdate },
|
|
94
102
|
{ methodName: "ReceiveThreadDeleted", method: __receiveThreadDeleted },
|
|
95
|
-
{ methodName: "ReceiveCommentsUpdate", method: __receiveCommentsUpdate }
|
|
103
|
+
{ methodName: "ReceiveCommentsUpdate", method: __receiveCommentsUpdate },
|
|
104
|
+
{ methodName: "ReceiveChanges", method: __receiveChanges }
|
|
96
105
|
];
|
|
97
106
|
return new ReceiverMethodSubscription(connection, methodList);
|
|
98
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartspace/api-client",
|
|
3
|
-
"version": "0.1.0-pr.
|
|
3
|
+
"version": "0.1.0-pr.1369.cdbc31d",
|
|
4
4
|
"description": "Generated TypeScript client for SmartSpace APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"url": "https://github.com/Smartspace-ai/Smartspace-app-api.git",
|
|
54
54
|
"directory": "tools/sdk-package"
|
|
55
55
|
},
|
|
56
|
-
"smartspaceContentHash": "
|
|
56
|
+
"smartspaceContentHash": "5ce8be30897d68e4f78c61cb62a13eabaae388a4a816f5d0fe2a354d7f22ea39"
|
|
57
57
|
}
|