@fluid-topics/public-api 1.0.78 → 1.0.80-alpha
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/.npmignore +14 -0
- package/dist/cjs/index.js +27 -8
- package/dist/cjs/types/ft-common/public.js +4 -1
- package/dist/cjs/types/ft-server/public.js +27 -1
- package/dist/fluidtopics.min.js +1 -1
- package/dist/mjs/index.d.ts +8 -4
- package/dist/mjs/index.js +27 -8
- package/dist/mjs/types/ft-common/public.d.ts +4 -1
- package/dist/mjs/types/ft-common/public.js +4 -1
- package/dist/mjs/types/ft-server/public.d.ts +21 -0
- package/dist/mjs/types/ft-server/public.js +23 -0
- package/package.json +1 -1
- package/yarn.lock +4323 -0
|
@@ -44,6 +44,26 @@ export interface FtRagInput {
|
|
|
44
44
|
filters?: Array<FtSemanticSearchFilter>;
|
|
45
45
|
}
|
|
46
46
|
export declare const isFtRagInput: (o: any) => o is FtRagInput;
|
|
47
|
+
export declare enum TranslationFormat {
|
|
48
|
+
TEXT = "TEXT",
|
|
49
|
+
HTML = "HTML"
|
|
50
|
+
}
|
|
51
|
+
export type TranslationFormatKeys = keyof typeof TranslationFormat;
|
|
52
|
+
export declare const isTranslationFormat: (o: any) => o is TranslationFormat;
|
|
53
|
+
export interface FtTranslationInput {
|
|
54
|
+
profileId: string;
|
|
55
|
+
format?: TranslationFormatKeys;
|
|
56
|
+
destinationLanguage: string;
|
|
57
|
+
content: string;
|
|
58
|
+
sourceLanguage?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const isFtTranslationInput: (o: any) => o is FtTranslationInput;
|
|
61
|
+
export interface FtTranslationSettingsInput {
|
|
62
|
+
profileId: string;
|
|
63
|
+
destinationLanguage: string;
|
|
64
|
+
sourceLanguage?: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const isFtTranslationSettingsInput: (o: any) => o is FtTranslationSettingsInput;
|
|
47
67
|
export interface FtMapAttachment {
|
|
48
68
|
file: string;
|
|
49
69
|
size?: number;
|
|
@@ -70,6 +90,7 @@ export interface FtPaginatedTocNode {
|
|
|
70
90
|
pageToc?: Array<any>;
|
|
71
91
|
tocId?: string;
|
|
72
92
|
children: Array<FtPaginatedTocNode>;
|
|
93
|
+
translatedTitle?: string;
|
|
73
94
|
pageConfiguration?: FtPageConfiguration;
|
|
74
95
|
origin?: any;
|
|
75
96
|
contentId?: string;
|
|
@@ -58,6 +58,28 @@ export const isFtRagInput = (o) => {
|
|
|
58
58
|
&& (o.filters == null || (Array.isArray(o.filters)
|
|
59
59
|
&& o.filters.every((v) => isFtSemanticSearchFilter(v))));
|
|
60
60
|
};
|
|
61
|
+
export var TranslationFormat;
|
|
62
|
+
(function (TranslationFormat) {
|
|
63
|
+
TranslationFormat["TEXT"] = "TEXT";
|
|
64
|
+
TranslationFormat["HTML"] = "HTML";
|
|
65
|
+
})(TranslationFormat || (TranslationFormat = {}));
|
|
66
|
+
export const isTranslationFormat = (o) => {
|
|
67
|
+
return ["TEXT", "HTML"].includes(o);
|
|
68
|
+
};
|
|
69
|
+
export const isFtTranslationInput = (o) => {
|
|
70
|
+
return isObject(o)
|
|
71
|
+
&& (isString(o.profileId))
|
|
72
|
+
&& (o.format == null || isTranslationFormat(o.format))
|
|
73
|
+
&& (isString(o.destinationLanguage))
|
|
74
|
+
&& (isString(o.content))
|
|
75
|
+
&& (o.sourceLanguage == null || isString(o.sourceLanguage));
|
|
76
|
+
};
|
|
77
|
+
export const isFtTranslationSettingsInput = (o) => {
|
|
78
|
+
return isObject(o)
|
|
79
|
+
&& (isString(o.profileId))
|
|
80
|
+
&& (isString(o.destinationLanguage))
|
|
81
|
+
&& (o.sourceLanguage == null || isString(o.sourceLanguage));
|
|
82
|
+
};
|
|
61
83
|
export const isFtMapAttachment = (o) => {
|
|
62
84
|
return isObject(o)
|
|
63
85
|
&& (isString(o.file))
|
|
@@ -88,6 +110,7 @@ export const isFtPaginatedTocNode = (o) => {
|
|
|
88
110
|
&& (o.tocId == null || isString(o.tocId))
|
|
89
111
|
&& ((Array.isArray(o.children)
|
|
90
112
|
&& o.children.every((v) => isFtPaginatedTocNode(v))))
|
|
113
|
+
&& (o.translatedTitle == null || isString(o.translatedTitle))
|
|
91
114
|
&& (o.pageConfiguration == null || isFtPageConfiguration(o.pageConfiguration))
|
|
92
115
|
&& (o.contentId == null || isString(o.contentId))
|
|
93
116
|
&& (o.title == null || isString(o.title));
|