@banta/sdk 5.0.5 → 5.1.0
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/lib/chat-backend.d.ts
CHANGED
|
@@ -26,11 +26,23 @@ export declare class ChatBackend extends ChatBackendBase {
|
|
|
26
26
|
*/
|
|
27
27
|
getSourceCountForTopic(topicId: string): Promise<number>;
|
|
28
28
|
/**
|
|
29
|
-
* Get the count of the given
|
|
30
|
-
* @param topicId
|
|
29
|
+
* Get the count of the given topics.
|
|
30
|
+
* @param topicId Topics to count messages on. Maximum of 1000.
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
getSourceCountForTopics(topicIds: string[]): Promise<Record<string, number>>;
|
|
34
|
+
/**
|
|
35
|
+
* Get information about the given topic.
|
|
36
|
+
* @param topicId
|
|
37
|
+
* @returns The topic object, or undefined if no such topic was found.
|
|
38
|
+
*/
|
|
39
|
+
getTopic(topicId: string): Promise<Topic | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Get information about the given topics
|
|
42
|
+
* @param topicIds The topic IDs to look up. Maximum of 1000.
|
|
43
|
+
* @returns An array of matching topic objects.
|
|
44
|
+
*/
|
|
45
|
+
getTopicsById(topicIds: string[]): Promise<Topic[]>;
|
|
34
46
|
/**
|
|
35
47
|
* Get a set of messages from the given topic.
|
|
36
48
|
* @param topicId
|
package/lib/chat-source.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ export declare class ChatSource extends SocketRPC implements ChatSourceBase {
|
|
|
19
19
|
private _state;
|
|
20
20
|
get sortOrder(): "newest" | "oldest" | "likes";
|
|
21
21
|
get filterMode(): string;
|
|
22
|
-
get state(): "
|
|
23
|
-
set state(value: "
|
|
22
|
+
get state(): "connected" | "connecting" | "lost" | "restored";
|
|
23
|
+
set state(value: "connected" | "connecting" | "lost" | "restored");
|
|
24
24
|
private _connectionStateChanged;
|
|
25
25
|
private _connectionStateChanged$;
|
|
26
|
-
get connectionStateChanged(): import("rxjs").Observable<"
|
|
26
|
+
get connectionStateChanged(): import("rxjs").Observable<"connected" | "connecting" | "lost" | "restored">;
|
|
27
27
|
private wasRestored;
|
|
28
28
|
bind(socket: DurableSocket): Promise<this>;
|
|
29
29
|
private mapOrUpdateMessages;
|
|
@@ -36,7 +36,7 @@ export declare class StaticChatSource implements ChatSourceBase {
|
|
|
36
36
|
unlikeMessage(messageId: string): Promise<void>;
|
|
37
37
|
editMessage(messageId: string, text: string): Promise<void>;
|
|
38
38
|
deleteMessage(messageId: string): Promise<void>;
|
|
39
|
-
connectionStateChanged: Subject<"
|
|
39
|
+
connectionStateChanged: Subject<"connected" | "connecting" | "lost" | "restored">;
|
|
40
40
|
state: 'connecting' | 'connected' | 'lost' | 'restored';
|
|
41
41
|
get errorState(): any;
|
|
42
42
|
}
|