@fluid-topics/public-api 1.0.123 → 1.0.126
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/cjs/helpers/AIChunkReader.js +3 -2
- package/dist/cjs/index.js +54 -10
- package/dist/cjs/preferences/unauthenticated-preferences.js +3 -4
- package/dist/cjs/roles/roles.js +3 -4
- package/dist/cjs/types/ft-server/public.js +97 -83
- package/dist/fluidtopics.min.js +1 -1
- package/dist/mjs/index.d.ts +30 -1
- package/dist/mjs/index.js +48 -2
- package/dist/mjs/types/ft-server/public.d.ts +83 -66
- package/dist/mjs/types/ft-server/public.js +85 -71
- package/package.json +22 -26
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { FtTocNode, FtTopicOrigin, FtWatermark, FtMetadata } from "../ft-common/public";
|
|
2
|
+
export interface FtRemotePortal {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
id: string;
|
|
5
|
+
status: FtRemotePortalStatus;
|
|
6
|
+
}
|
|
7
|
+
export declare const isFtRemotePortal: (o: any) => o is FtRemotePortal;
|
|
8
|
+
export interface FtRemotePortalStatus {
|
|
9
|
+
remoteServerVersion?: string;
|
|
10
|
+
status: FtRemotePortalStatusTypeKeys;
|
|
11
|
+
}
|
|
12
|
+
export declare const isFtRemotePortalStatus: (o: any) => o is FtRemotePortalStatus;
|
|
13
|
+
export declare enum FtRemotePortalStatusType {
|
|
14
|
+
UNREACHABLE = "UNREACHABLE",
|
|
15
|
+
UNAUTHORIZED = "UNAUTHORIZED",
|
|
16
|
+
FORBIDDEN = "FORBIDDEN",
|
|
17
|
+
INCOMPATIBLE = "INCOMPATIBLE",
|
|
18
|
+
FAILED = "FAILED",
|
|
19
|
+
OK = "OK"
|
|
20
|
+
}
|
|
21
|
+
export type FtRemotePortalStatusTypeKeys = keyof typeof FtRemotePortalStatusType;
|
|
22
|
+
export declare const isFtRemotePortalStatusType: (o: any) => o is FtRemotePortalStatusType;
|
|
2
23
|
export declare enum FtConfigurationHistoryEntryStatus {
|
|
3
24
|
VALID = "VALID",
|
|
4
25
|
INVALID = "INVALID"
|
|
@@ -158,75 +179,10 @@ export declare const isFtGenAIRagFetchTracesRequest: (o: any) => o is FtGenAIRag
|
|
|
158
179
|
export interface FtGenAIFetchRagTracesResult {
|
|
159
180
|
endDate?: string;
|
|
160
181
|
nbResults: number;
|
|
161
|
-
results: Array<
|
|
182
|
+
results: Array<unknown>;
|
|
162
183
|
startDate?: string;
|
|
163
184
|
}
|
|
164
185
|
export declare const isFtGenAIFetchRagTracesResult: (o: any) => o is FtGenAIFetchRagTracesResult;
|
|
165
|
-
export interface FtGenAIRagTrace {
|
|
166
|
-
output: FtGenAIRagTraceOutput;
|
|
167
|
-
input: FtGenAIRagTraceInput;
|
|
168
|
-
conversationId?: string;
|
|
169
|
-
profileId?: string;
|
|
170
|
-
id: string;
|
|
171
|
-
sessionId?: string;
|
|
172
|
-
userId?: string;
|
|
173
|
-
timestamp: string;
|
|
174
|
-
}
|
|
175
|
-
export declare const isFtGenAIRagTrace: (o: any) => o is FtGenAIRagTrace;
|
|
176
|
-
export interface FtGenAIRagTraceHistoryItem {
|
|
177
|
-
role: string;
|
|
178
|
-
content: string;
|
|
179
|
-
}
|
|
180
|
-
export declare const isFtGenAIRagTraceHistoryItem: (o: any) => o is FtGenAIRagTraceHistoryItem;
|
|
181
|
-
export interface FtGenAIRagTraceInput {
|
|
182
|
-
userInstructions: string;
|
|
183
|
-
query: string;
|
|
184
|
-
history: Array<FtGenAIRagTraceHistoryItem>;
|
|
185
|
-
}
|
|
186
|
-
export declare const isFtGenAIRagTraceInput: (o: any) => o is FtGenAIRagTraceInput;
|
|
187
|
-
export interface FtGenAIRagTraceOutput {
|
|
188
|
-
response: string;
|
|
189
|
-
}
|
|
190
|
-
export declare const isFtGenAIRagTraceOutput: (o: any) => o is FtGenAIRagTraceOutput;
|
|
191
|
-
export declare enum RagTraceMessageType {
|
|
192
|
-
USER = "USER",
|
|
193
|
-
ASSISTANT = "ASSISTANT"
|
|
194
|
-
}
|
|
195
|
-
export type RagTraceMessageTypeKeys = keyof typeof RagTraceMessageType;
|
|
196
|
-
export declare const isRagTraceMessageType: (o: any) => o is RagTraceMessageType;
|
|
197
|
-
export interface FtGenAIRagTraceAssistantMessage/* WsGenAIRagTraceAssistantMessage */ extends FtGenAIRagTraceDetailHistoryItem {
|
|
198
|
-
chatbotInstructions: string;
|
|
199
|
-
role: RagTraceMessageTypeKeys;
|
|
200
|
-
semsearch: FtGenAIRagTraceSemsearch;
|
|
201
|
-
content: string;
|
|
202
|
-
timestamp: string;
|
|
203
|
-
}
|
|
204
|
-
export declare const isFtGenAIRagTraceAssistantMessage: (o: any) => o is FtGenAIRagTraceAssistantMessage;
|
|
205
|
-
export interface FtGenAIRagTraceDetail {
|
|
206
|
-
profileId?: string;
|
|
207
|
-
conversationId?: string;
|
|
208
|
-
sessionId?: string;
|
|
209
|
-
history: Array<FtGenAIRagTraceDetailHistoryItem>;
|
|
210
|
-
userId?: string;
|
|
211
|
-
llmModel?: string;
|
|
212
|
-
timestamp: string;
|
|
213
|
-
}
|
|
214
|
-
export declare const isFtGenAIRagTraceDetail: (o: any) => o is FtGenAIRagTraceDetail;
|
|
215
|
-
export interface FtGenAIRagTraceDetailHistoryItem {
|
|
216
|
-
}
|
|
217
|
-
export declare const isFtGenAIRagTraceDetailHistoryItem: (o: any) => o is FtGenAIRagTraceDetailHistoryItem;
|
|
218
|
-
export interface FtGenAIRagTraceSemsearch {
|
|
219
|
-
query: string;
|
|
220
|
-
filters?: Array<FtSemanticSearchFilter>;
|
|
221
|
-
results: Array<FtSemanticSearchResponseItem>;
|
|
222
|
-
}
|
|
223
|
-
export declare const isFtGenAIRagTraceSemsearch: (o: any) => o is FtGenAIRagTraceSemsearch;
|
|
224
|
-
export interface FtGenAIRagTraceUserMessage/* WsGenAIRagTraceUserMessage */ extends FtGenAIRagTraceDetailHistoryItem {
|
|
225
|
-
role: RagTraceMessageTypeKeys;
|
|
226
|
-
content: string;
|
|
227
|
-
timestamp: string;
|
|
228
|
-
}
|
|
229
|
-
export declare const isFtGenAIRagTraceUserMessage: (o: any) => o is FtGenAIRagTraceUserMessage;
|
|
230
186
|
export declare enum TranslationFormat {
|
|
231
187
|
TEXT = "TEXT",
|
|
232
188
|
HTML = "HTML"
|
|
@@ -254,6 +210,35 @@ export interface FtTranslationLocale {
|
|
|
254
210
|
label: string;
|
|
255
211
|
}
|
|
256
212
|
export declare const isFtTranslationLocale: (o: any) => o is FtTranslationLocale;
|
|
213
|
+
export interface FtBackup {
|
|
214
|
+
name: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
id: string;
|
|
217
|
+
backupDate: Date | string;
|
|
218
|
+
autoBackup: boolean;
|
|
219
|
+
}
|
|
220
|
+
export declare const isFtBackup: (o: any) => o is FtBackup;
|
|
221
|
+
export interface FtBackupCreation {
|
|
222
|
+
name: string;
|
|
223
|
+
description?: string;
|
|
224
|
+
}
|
|
225
|
+
export declare const isFtBackupCreation: (o: any) => o is FtBackupCreation;
|
|
226
|
+
export interface FtBackupRestoreOrder {
|
|
227
|
+
id: string;
|
|
228
|
+
status: FtBackupRestoreStatusTypeKeys;
|
|
229
|
+
}
|
|
230
|
+
export declare const isFtBackupRestoreOrder: (o: any) => o is FtBackupRestoreOrder;
|
|
231
|
+
export declare enum FtBackupRestoreStatusType {
|
|
232
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
233
|
+
ERROR = "ERROR",
|
|
234
|
+
DONE = "DONE"
|
|
235
|
+
}
|
|
236
|
+
export type FtBackupRestoreStatusTypeKeys = keyof typeof FtBackupRestoreStatusType;
|
|
237
|
+
export declare const isFtBackupRestoreStatusType: (o: any) => o is FtBackupRestoreStatusType;
|
|
238
|
+
export interface FtBackups {
|
|
239
|
+
backups: Array<FtBackup>;
|
|
240
|
+
}
|
|
241
|
+
export declare const isFtBackups: (o: any) => o is FtBackups;
|
|
257
242
|
export interface FtMapAttachment {
|
|
258
243
|
file: string;
|
|
259
244
|
size?: number;
|
|
@@ -315,6 +300,38 @@ export declare enum FtTopicContentFormat {
|
|
|
315
300
|
}
|
|
316
301
|
export type FtTopicContentFormatKeys = keyof typeof FtTopicContentFormat;
|
|
317
302
|
export declare const isFtTopicContentFormat: (o: any) => o is FtTopicContentFormat;
|
|
303
|
+
export interface FtBackupRestoreRequest {
|
|
304
|
+
createAutoBackup: boolean;
|
|
305
|
+
subsets?: Array<FtSubsetTypeKeys>;
|
|
306
|
+
}
|
|
307
|
+
export declare const isFtBackupRestoreRequest: (o: any) => o is FtBackupRestoreRequest;
|
|
308
|
+
export declare enum FtSubsetType {
|
|
309
|
+
SOURCES = "SOURCES",
|
|
310
|
+
ENRICH_AND_CLEAN = "ENRICH_AND_CLEAN",
|
|
311
|
+
VOCABULARIES = "VOCABULARIES",
|
|
312
|
+
METADATA = "METADATA",
|
|
313
|
+
PRETTY_URL = "PRETTY_URL",
|
|
314
|
+
ACCESS_RULE = "ACCESS_RULE",
|
|
315
|
+
DESIGNED_PAGES = "DESIGNED_PAGES",
|
|
316
|
+
THEME_STUDIO = "THEME_STUDIO",
|
|
317
|
+
PORTAL_GENERAL = "PORTAL_GENERAL",
|
|
318
|
+
ASSETS = "ASSETS",
|
|
319
|
+
CODE_LIBRARY = "CODE_LIBRARY",
|
|
320
|
+
THEME = "THEME",
|
|
321
|
+
CONTENT_STYLES = "CONTENT_STYLES",
|
|
322
|
+
HOMEPAGE = "HOMEPAGE",
|
|
323
|
+
CLASSIC_SEARCH_PAGE = "CLASSIC_SEARCH_PAGE",
|
|
324
|
+
CLASSIC_READER_PAGE = "CLASSIC_READER_PAGE",
|
|
325
|
+
PORTAL_METADATA = "PORTAL_METADATA",
|
|
326
|
+
LANGUAGES = "LANGUAGES",
|
|
327
|
+
PRINT_TEMPLATES = "PRINT_TEMPLATES",
|
|
328
|
+
OFFLINE = "OFFLINE",
|
|
329
|
+
CUSTOM_JS = "CUSTOM_JS",
|
|
330
|
+
CONFIDENTIALITY = "CONFIDENTIALITY",
|
|
331
|
+
NOTIFICATIONS = "NOTIFICATIONS"
|
|
332
|
+
}
|
|
333
|
+
export type FtSubsetTypeKeys = keyof typeof FtSubsetType;
|
|
334
|
+
export declare const isFtSubsetType: (o: any) => o is FtSubsetType;
|
|
318
335
|
export interface FtClusteredSemanticSearchCluster {
|
|
319
336
|
maxSize?: number;
|
|
320
337
|
}
|
|
@@ -2,6 +2,27 @@ const isObject = (o) => typeof o === "object" && o != null;
|
|
|
2
2
|
const isBoolean = (o) => typeof o === "boolean";
|
|
3
3
|
const isNumber = (o) => typeof o === "number";
|
|
4
4
|
const isString = (o) => typeof o === "string";
|
|
5
|
+
export const isFtRemotePortal = (o) => {
|
|
6
|
+
return isObject(o)
|
|
7
|
+
&& (isString(o.baseUrl))
|
|
8
|
+
&& (isString(o.id))
|
|
9
|
+
&& (isFtRemotePortalStatus(o.status));
|
|
10
|
+
};
|
|
11
|
+
export const isFtRemotePortalStatus = (o) => {
|
|
12
|
+
return isObject(o)
|
|
13
|
+
&& (o.remoteServerVersion == null || isString(o.remoteServerVersion))
|
|
14
|
+
&& (isFtRemotePortalStatusType(o.status));
|
|
15
|
+
};
|
|
16
|
+
export var FtRemotePortalStatusType;
|
|
17
|
+
(function (FtRemotePortalStatusType) {
|
|
18
|
+
FtRemotePortalStatusType["UNREACHABLE"] = "UNREACHABLE";
|
|
19
|
+
FtRemotePortalStatusType["UNAUTHORIZED"] = "UNAUTHORIZED";
|
|
20
|
+
FtRemotePortalStatusType["FORBIDDEN"] = "FORBIDDEN";
|
|
21
|
+
FtRemotePortalStatusType["INCOMPATIBLE"] = "INCOMPATIBLE";
|
|
22
|
+
FtRemotePortalStatusType["FAILED"] = "FAILED";
|
|
23
|
+
FtRemotePortalStatusType["OK"] = "OK";
|
|
24
|
+
})(FtRemotePortalStatusType || (FtRemotePortalStatusType = {}));
|
|
25
|
+
export const isFtRemotePortalStatusType = (o) => Object.keys(FtRemotePortalStatusType).includes(o);
|
|
5
26
|
export var FtConfigurationHistoryEntryStatus;
|
|
6
27
|
(function (FtConfigurationHistoryEntryStatus) {
|
|
7
28
|
FtConfigurationHistoryEntryStatus["VALID"] = "VALID";
|
|
@@ -172,79 +193,9 @@ export const isFtGenAIFetchRagTracesResult = (o) => {
|
|
|
172
193
|
return isObject(o)
|
|
173
194
|
&& (o.endDate == null || isString(o.endDate))
|
|
174
195
|
&& (isNumber(o.nbResults))
|
|
175
|
-
&& ((Array.isArray(o.results)
|
|
176
|
-
&& o.results.every((v) => isFtGenAIRagTrace(v))))
|
|
196
|
+
&& ((Array.isArray(o.results)))
|
|
177
197
|
&& (o.startDate == null || isString(o.startDate));
|
|
178
198
|
};
|
|
179
|
-
export const isFtGenAIRagTrace = (o) => {
|
|
180
|
-
return isObject(o)
|
|
181
|
-
&& (isFtGenAIRagTraceOutput(o.output))
|
|
182
|
-
&& (isFtGenAIRagTraceInput(o.input))
|
|
183
|
-
&& (o.conversationId == null || isString(o.conversationId))
|
|
184
|
-
&& (o.profileId == null || isString(o.profileId))
|
|
185
|
-
&& (isString(o.id))
|
|
186
|
-
&& (o.sessionId == null || isString(o.sessionId))
|
|
187
|
-
&& (o.userId == null || isString(o.userId))
|
|
188
|
-
&& (isString(o.timestamp));
|
|
189
|
-
};
|
|
190
|
-
export const isFtGenAIRagTraceHistoryItem = (o) => {
|
|
191
|
-
return isObject(o)
|
|
192
|
-
&& (isString(o.role))
|
|
193
|
-
&& (isString(o.content));
|
|
194
|
-
};
|
|
195
|
-
export const isFtGenAIRagTraceInput = (o) => {
|
|
196
|
-
return isObject(o)
|
|
197
|
-
&& (isString(o.userInstructions))
|
|
198
|
-
&& (isString(o.query))
|
|
199
|
-
&& ((Array.isArray(o.history)
|
|
200
|
-
&& o.history.every((v) => isFtGenAIRagTraceHistoryItem(v))));
|
|
201
|
-
};
|
|
202
|
-
export const isFtGenAIRagTraceOutput = (o) => {
|
|
203
|
-
return isObject(o)
|
|
204
|
-
&& (isString(o.response));
|
|
205
|
-
};
|
|
206
|
-
export var RagTraceMessageType;
|
|
207
|
-
(function (RagTraceMessageType) {
|
|
208
|
-
RagTraceMessageType["USER"] = "USER";
|
|
209
|
-
RagTraceMessageType["ASSISTANT"] = "ASSISTANT";
|
|
210
|
-
})(RagTraceMessageType || (RagTraceMessageType = {}));
|
|
211
|
-
export const isRagTraceMessageType = (o) => Object.keys(RagTraceMessageType).includes(o);
|
|
212
|
-
export const isFtGenAIRagTraceAssistantMessage = (o) => {
|
|
213
|
-
return isObject(o)
|
|
214
|
-
&& (isString(o.chatbotInstructions))
|
|
215
|
-
&& (isRagTraceMessageType(o.role))
|
|
216
|
-
&& (isFtGenAIRagTraceSemsearch(o.semsearch))
|
|
217
|
-
&& (isString(o.content))
|
|
218
|
-
&& (isString(o.timestamp));
|
|
219
|
-
};
|
|
220
|
-
export const isFtGenAIRagTraceDetail = (o) => {
|
|
221
|
-
return isObject(o)
|
|
222
|
-
&& (o.profileId == null || isString(o.profileId))
|
|
223
|
-
&& (o.conversationId == null || isString(o.conversationId))
|
|
224
|
-
&& (o.sessionId == null || isString(o.sessionId))
|
|
225
|
-
&& ((Array.isArray(o.history)
|
|
226
|
-
&& o.history.every((v) => isFtGenAIRagTraceDetailHistoryItem(v))))
|
|
227
|
-
&& (o.userId == null || isString(o.userId))
|
|
228
|
-
&& (o.llmModel == null || isString(o.llmModel))
|
|
229
|
-
&& (isString(o.timestamp));
|
|
230
|
-
};
|
|
231
|
-
export const isFtGenAIRagTraceDetailHistoryItem = (o) => {
|
|
232
|
-
return isObject(o);
|
|
233
|
-
};
|
|
234
|
-
export const isFtGenAIRagTraceSemsearch = (o) => {
|
|
235
|
-
return isObject(o)
|
|
236
|
-
&& (isString(o.query))
|
|
237
|
-
&& (o.filters == null || (Array.isArray(o.filters)
|
|
238
|
-
&& o.filters.every((v) => isFtSemanticSearchFilter(v))))
|
|
239
|
-
&& ((Array.isArray(o.results)
|
|
240
|
-
&& o.results.every((v) => isFtSemanticSearchResponseItem(v))));
|
|
241
|
-
};
|
|
242
|
-
export const isFtGenAIRagTraceUserMessage = (o) => {
|
|
243
|
-
return isObject(o)
|
|
244
|
-
&& (isRagTraceMessageType(o.role))
|
|
245
|
-
&& (isString(o.content))
|
|
246
|
-
&& (isString(o.timestamp));
|
|
247
|
-
};
|
|
248
199
|
export var TranslationFormat;
|
|
249
200
|
(function (TranslationFormat) {
|
|
250
201
|
TranslationFormat["TEXT"] = "TEXT";
|
|
@@ -275,6 +226,36 @@ export const isFtTranslationLocale = (o) => {
|
|
|
275
226
|
&& (isString(o.code))
|
|
276
227
|
&& (isString(o.label));
|
|
277
228
|
};
|
|
229
|
+
export const isFtBackup = (o) => {
|
|
230
|
+
return isObject(o)
|
|
231
|
+
&& (isString(o.name))
|
|
232
|
+
&& (o.description == null || isString(o.description))
|
|
233
|
+
&& (isString(o.id))
|
|
234
|
+
&& (isString(o.backupDate))
|
|
235
|
+
&& (isBoolean(o.autoBackup));
|
|
236
|
+
};
|
|
237
|
+
export const isFtBackupCreation = (o) => {
|
|
238
|
+
return isObject(o)
|
|
239
|
+
&& (isString(o.name))
|
|
240
|
+
&& (o.description == null || isString(o.description));
|
|
241
|
+
};
|
|
242
|
+
export const isFtBackupRestoreOrder = (o) => {
|
|
243
|
+
return isObject(o)
|
|
244
|
+
&& (isString(o.id))
|
|
245
|
+
&& (isFtBackupRestoreStatusType(o.status));
|
|
246
|
+
};
|
|
247
|
+
export var FtBackupRestoreStatusType;
|
|
248
|
+
(function (FtBackupRestoreStatusType) {
|
|
249
|
+
FtBackupRestoreStatusType["IN_PROGRESS"] = "IN_PROGRESS";
|
|
250
|
+
FtBackupRestoreStatusType["ERROR"] = "ERROR";
|
|
251
|
+
FtBackupRestoreStatusType["DONE"] = "DONE";
|
|
252
|
+
})(FtBackupRestoreStatusType || (FtBackupRestoreStatusType = {}));
|
|
253
|
+
export const isFtBackupRestoreStatusType = (o) => Object.keys(FtBackupRestoreStatusType).includes(o);
|
|
254
|
+
export const isFtBackups = (o) => {
|
|
255
|
+
return isObject(o)
|
|
256
|
+
&& ((Array.isArray(o.backups)
|
|
257
|
+
&& o.backups.every((v) => isFtBackup(v))));
|
|
258
|
+
};
|
|
278
259
|
export const isFtMapAttachment = (o) => {
|
|
279
260
|
return isObject(o)
|
|
280
261
|
&& (isString(o.file))
|
|
@@ -336,6 +317,39 @@ export var FtTopicContentFormat;
|
|
|
336
317
|
FtTopicContentFormat["MARKDOWN"] = "MARKDOWN";
|
|
337
318
|
})(FtTopicContentFormat || (FtTopicContentFormat = {}));
|
|
338
319
|
export const isFtTopicContentFormat = (o) => Object.keys(FtTopicContentFormat).includes(o);
|
|
320
|
+
export const isFtBackupRestoreRequest = (o) => {
|
|
321
|
+
return isObject(o)
|
|
322
|
+
&& (isBoolean(o.createAutoBackup))
|
|
323
|
+
&& (o.subsets == null || (Array.isArray(o.subsets)
|
|
324
|
+
&& o.subsets.every((v) => isFtSubsetType(v))));
|
|
325
|
+
};
|
|
326
|
+
export var FtSubsetType;
|
|
327
|
+
(function (FtSubsetType) {
|
|
328
|
+
FtSubsetType["SOURCES"] = "SOURCES";
|
|
329
|
+
FtSubsetType["ENRICH_AND_CLEAN"] = "ENRICH_AND_CLEAN";
|
|
330
|
+
FtSubsetType["VOCABULARIES"] = "VOCABULARIES";
|
|
331
|
+
FtSubsetType["METADATA"] = "METADATA";
|
|
332
|
+
FtSubsetType["PRETTY_URL"] = "PRETTY_URL";
|
|
333
|
+
FtSubsetType["ACCESS_RULE"] = "ACCESS_RULE";
|
|
334
|
+
FtSubsetType["DESIGNED_PAGES"] = "DESIGNED_PAGES";
|
|
335
|
+
FtSubsetType["THEME_STUDIO"] = "THEME_STUDIO";
|
|
336
|
+
FtSubsetType["PORTAL_GENERAL"] = "PORTAL_GENERAL";
|
|
337
|
+
FtSubsetType["ASSETS"] = "ASSETS";
|
|
338
|
+
FtSubsetType["CODE_LIBRARY"] = "CODE_LIBRARY";
|
|
339
|
+
FtSubsetType["THEME"] = "THEME";
|
|
340
|
+
FtSubsetType["CONTENT_STYLES"] = "CONTENT_STYLES";
|
|
341
|
+
FtSubsetType["HOMEPAGE"] = "HOMEPAGE";
|
|
342
|
+
FtSubsetType["CLASSIC_SEARCH_PAGE"] = "CLASSIC_SEARCH_PAGE";
|
|
343
|
+
FtSubsetType["CLASSIC_READER_PAGE"] = "CLASSIC_READER_PAGE";
|
|
344
|
+
FtSubsetType["PORTAL_METADATA"] = "PORTAL_METADATA";
|
|
345
|
+
FtSubsetType["LANGUAGES"] = "LANGUAGES";
|
|
346
|
+
FtSubsetType["PRINT_TEMPLATES"] = "PRINT_TEMPLATES";
|
|
347
|
+
FtSubsetType["OFFLINE"] = "OFFLINE";
|
|
348
|
+
FtSubsetType["CUSTOM_JS"] = "CUSTOM_JS";
|
|
349
|
+
FtSubsetType["CONFIDENTIALITY"] = "CONFIDENTIALITY";
|
|
350
|
+
FtSubsetType["NOTIFICATIONS"] = "NOTIFICATIONS";
|
|
351
|
+
})(FtSubsetType || (FtSubsetType = {}));
|
|
352
|
+
export const isFtSubsetType = (o) => Object.keys(FtSubsetType).includes(o);
|
|
339
353
|
export const isFtClusteredSemanticSearchCluster = (o) => {
|
|
340
354
|
return isObject(o)
|
|
341
355
|
&& (o.maxSize == null || isNumber(o.maxSize));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/public-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.126",
|
|
4
4
|
"description": "Fluid Topics Public API",
|
|
5
5
|
"author": "Fluid Topics dev team <opensource@antidot.net>",
|
|
6
6
|
"license": "LGPL-3.0-only",
|
|
@@ -19,34 +19,30 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"cross-fetch": "4.1.0"
|
|
24
|
-
},
|
|
25
22
|
"devDependencies": {
|
|
26
|
-
"@cyclonedx/bom": "
|
|
27
|
-
"@open-wc/testing": "
|
|
28
|
-
"@rollup/plugin-commonjs": "
|
|
29
|
-
"@rollup/plugin-json": "6.
|
|
30
|
-
"@rollup/plugin-node-resolve": "
|
|
23
|
+
"@cyclonedx/bom": "4.1.5",
|
|
24
|
+
"@open-wc/testing": "4.0.0",
|
|
25
|
+
"@rollup/plugin-commonjs": "29.0.3",
|
|
26
|
+
"@rollup/plugin-json": "6.1.0",
|
|
27
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
31
28
|
"@rollup/plugin-terser": "1.0.0",
|
|
32
|
-
"@rollup/plugin-typescript": "
|
|
33
|
-
"@types/chai": "
|
|
34
|
-
"@types/mocha": "10.0.
|
|
35
|
-
"@types/node": "
|
|
36
|
-
"@web/test-runner": "0.
|
|
37
|
-
"@web/test-runner-junit-reporter": "0.
|
|
38
|
-
"@web/test-runner-playwright": "0.
|
|
39
|
-
"chai": "
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"typescript": "5.
|
|
46
|
-
"vite": "
|
|
47
|
-
"tsx": "4.19.2"
|
|
29
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
30
|
+
"@types/chai": "5.2.3",
|
|
31
|
+
"@types/mocha": "10.0.10",
|
|
32
|
+
"@types/node": "25.9.4",
|
|
33
|
+
"@web/test-runner": "0.20.2",
|
|
34
|
+
"@web/test-runner-junit-reporter": "0.8.0",
|
|
35
|
+
"@web/test-runner-playwright": "0.11.1",
|
|
36
|
+
"chai": "6.2.2",
|
|
37
|
+
"mocha": "11.7.6",
|
|
38
|
+
"rollup": "4.62.2",
|
|
39
|
+
"ts-node": "10.9.2",
|
|
40
|
+
"tslib": "2.8.1",
|
|
41
|
+
"tsx": "4.22.4",
|
|
42
|
+
"typescript": "5.9.3",
|
|
43
|
+
"vite": "8.1.0"
|
|
48
44
|
},
|
|
49
45
|
"resolutions": {
|
|
50
|
-
"playwright": "1.
|
|
46
|
+
"playwright": "1.61.1"
|
|
51
47
|
}
|
|
52
48
|
}
|