@unisphere/genie-types 1.38.7 → 1.39.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/index.esm.js +712 -361
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/data-models-utils.d.ts +36 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ClassGenieFlashCard, ClassGenieFlashCardElement, ClassGenieFollowupsElement, ClassGenieSourceDocumentItem, ClassGenieSourceItem, ClassGenieSourcesElement, ClassGenieSourceVideoItem, ClassGenieTextFlashcard, ClassGenieVideoGalleryFlashcard, UnisphereChatBlock } from './data-models';
|
|
2
|
+
export declare const isFlashcardElement: (element: any) => element is ClassGenieFlashCardElement;
|
|
3
|
+
export declare const isSourcesElement: (element: any) => element is ClassGenieSourcesElement;
|
|
4
|
+
export declare const isFollowupsElement: (element: any) => element is ClassGenieFollowupsElement;
|
|
5
|
+
export declare const isTextFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieTextFlashcard;
|
|
6
|
+
export declare const isVideoGalleryFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieVideoGalleryFlashcard;
|
|
7
|
+
export declare const isVideoSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceVideoItem;
|
|
8
|
+
export declare const isPDFSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceDocumentItem;
|
|
9
|
+
export declare function isFlashcardBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
10
|
+
type: 'unisphere-tool';
|
|
11
|
+
runtimeName: 'flashcards-tool';
|
|
12
|
+
status: 'loading' | 'ready';
|
|
13
|
+
settings: {
|
|
14
|
+
keypoints: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function isSourcesBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
18
|
+
type: 'unisphere-tool';
|
|
19
|
+
runtimeName: 'sources-tool';
|
|
20
|
+
status: 'loading' | 'ready';
|
|
21
|
+
settings: {
|
|
22
|
+
sources: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type FollowupsBlock = UnisphereChatBlock & {
|
|
26
|
+
type: 'unisphere-tool';
|
|
27
|
+
runtimeName: 'followups-tool';
|
|
28
|
+
status: 'loading' | 'ready';
|
|
29
|
+
};
|
|
30
|
+
export declare function isFollowupsBlock(b: UnisphereChatBlock): b is FollowupsBlock;
|
|
31
|
+
export declare function isTextBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
32
|
+
type: 'markdown';
|
|
33
|
+
status: 'ready';
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const hasSources: (blocks: UnisphereChatBlock[]) => boolean;
|