@fluid-topics/public-api 1.0.110-alpha → 1.0.111
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/types/ft-common/public.js +17 -39
- package/dist/fluidtopics.min.js +1 -1
- package/dist/mjs/types/ft-common/public.d.ts +14 -36
- package/dist/mjs/types/ft-common/public.js +13 -34
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/yarn.lock +0 -4323
|
@@ -391,6 +391,19 @@ export const isFtPersonalBookNodeCreation = (o) => {
|
|
|
391
391
|
&& (isString(o.title))
|
|
392
392
|
&& (o.htmlContent == null || isString(o.htmlContent));
|
|
393
393
|
};
|
|
394
|
+
export const isFtPersonalBookPreview = (o) => {
|
|
395
|
+
return isObject(o)
|
|
396
|
+
&& (isBoolean(o.shared))
|
|
397
|
+
&& (isNumber(o.topicsCount))
|
|
398
|
+
&& (isString(o.lastUpdateDate))
|
|
399
|
+
&& (isString(o.tagline))
|
|
400
|
+
&& (isString(o.id))
|
|
401
|
+
&& (isString(o.title))
|
|
402
|
+
&& (isString(o.creationDate))
|
|
403
|
+
&& (isNumber(o.personalTopicsCount))
|
|
404
|
+
&& ((Array.isArray(o.labels)
|
|
405
|
+
&& o.labels.every((v) => isString(v))));
|
|
406
|
+
};
|
|
394
407
|
export const isFtPersonalBookTopicLinkCreation = (o) => {
|
|
395
408
|
return isObject(o)
|
|
396
409
|
&& (isString(o.tocId))
|
|
@@ -857,7 +870,6 @@ export var FtCollectionDocumentType;
|
|
|
857
870
|
FtCollectionDocumentType["TOPIC"] = "TOPIC";
|
|
858
871
|
FtCollectionDocumentType["PERSONAL_BOOK"] = "PERSONAL_BOOK";
|
|
859
872
|
FtCollectionDocumentType["SHARED_BOOK"] = "SHARED_BOOK";
|
|
860
|
-
FtCollectionDocumentType["HTML_PACKAGE"] = "HTML_PACKAGE";
|
|
861
873
|
})(FtCollectionDocumentType || (FtCollectionDocumentType = {}));
|
|
862
874
|
export const isFtCollectionDocumentType = (o) => Object.keys(FtCollectionDocumentType).includes(o);
|
|
863
875
|
export const isFtDateFilter = (o) => {
|
|
@@ -974,12 +986,10 @@ export const isFtSearchResultCluster = (o) => {
|
|
|
974
986
|
};
|
|
975
987
|
export const isFtSearchResultClusterEntry = (o) => {
|
|
976
988
|
return isObject(o)
|
|
977
|
-
&& (o.htmlPackage == null || isFtSearchResultHtmlPackage(o.htmlPackage))
|
|
978
989
|
&& ((Array.isArray(o.missingTerms)
|
|
979
990
|
&& o.missingTerms.every((v) => isString(v))))
|
|
980
991
|
&& (o.document == null || isFtSearchResultUnstructuredDocument(o.document))
|
|
981
992
|
&& (o.topic == null || isFtSearchResultTopic(o.topic))
|
|
982
|
-
&& (o.htmlPackagePage == null || isFtSearchResultHtmlPackagePage(o.htmlPackagePage))
|
|
983
993
|
&& (isFtSearchResultType(o.type))
|
|
984
994
|
&& (o.map == null || isFtSearchResultMap(o.map));
|
|
985
995
|
};
|
|
@@ -1001,35 +1011,6 @@ export const isFtSearchResultUnstructuredDocument = (o) => {
|
|
|
1001
1011
|
&& (isString(o.lastEditionDate))
|
|
1002
1012
|
&& (isString(o.htmlExcerpt));
|
|
1003
1013
|
};
|
|
1004
|
-
export const isFtSearchResultHtmlPackage = (o) => {
|
|
1005
|
-
return isObject(o)
|
|
1006
|
-
&& ((Array.isArray(o.metadata)
|
|
1007
|
-
&& o.metadata.every((v) => isFtMetadata(v))))
|
|
1008
|
-
&& (isString(o.htmlTitle))
|
|
1009
|
-
&& (isFtOpenMode(o.openMode))
|
|
1010
|
-
&& (o.originUrl == null || isString(o.originUrl))
|
|
1011
|
-
&& (isString(o.packageId))
|
|
1012
|
-
&& (isString(o.viewerUrl))
|
|
1013
|
-
&& (isString(o.title))
|
|
1014
|
-
&& (isString(o.lastEditionDate))
|
|
1015
|
-
&& (isString(o.lastPublicationDate))
|
|
1016
|
-
&& (isString(o.htmlExcerpt));
|
|
1017
|
-
};
|
|
1018
|
-
export const isFtSearchResultHtmlPackagePage = (o) => {
|
|
1019
|
-
return isObject(o)
|
|
1020
|
-
&& ((Array.isArray(o.metadata)
|
|
1021
|
-
&& o.metadata.every((v) => isFtMetadata(v))))
|
|
1022
|
-
&& (isString(o.htmlTitle))
|
|
1023
|
-
&& (isFtOpenMode(o.openMode))
|
|
1024
|
-
&& (o.originUrl == null || isString(o.originUrl))
|
|
1025
|
-
&& (isString(o.packageId))
|
|
1026
|
-
&& (isString(o.contentId))
|
|
1027
|
-
&& (isString(o.viewerUrl))
|
|
1028
|
-
&& (isString(o.title))
|
|
1029
|
-
&& (isString(o.lastEditionDate))
|
|
1030
|
-
&& (isString(o.packageTitle))
|
|
1031
|
-
&& (isString(o.htmlExcerpt));
|
|
1032
|
-
};
|
|
1033
1014
|
export const isFtSearchResultMap = (o) => {
|
|
1034
1015
|
return isObject(o)
|
|
1035
1016
|
&& ((Array.isArray(o.metadata)
|
|
@@ -1074,8 +1055,6 @@ export var FtSearchResultType;
|
|
|
1074
1055
|
FtSearchResultType["MAP"] = "MAP";
|
|
1075
1056
|
FtSearchResultType["DOCUMENT"] = "DOCUMENT";
|
|
1076
1057
|
FtSearchResultType["TOPIC"] = "TOPIC";
|
|
1077
|
-
FtSearchResultType["HTML_PACKAGE"] = "HTML_PACKAGE";
|
|
1078
|
-
FtSearchResultType["HTML_PACKAGE_PAGE"] = "HTML_PACKAGE_PAGE";
|
|
1079
1058
|
})(FtSearchResultType || (FtSearchResultType = {}));
|
|
1080
1059
|
export const isFtSearchResultType = (o) => Object.keys(FtSearchResultType).includes(o);
|
|
1081
1060
|
// From: WsPublicSearchScope
|
package/package.json
CHANGED