@fluid-topics/public-api 1.0.102 → 1.0.103

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.
@@ -381,7 +381,9 @@ export const isFtPersonalBookCreation = (o) => {
381
381
  && ((Array.isArray(o.nodes)
382
382
  && o.nodes.every((v) => isFtPersonalBookNodeCreation(v))))
383
383
  && (isString(o.description))
384
- && (isString(o.title));
384
+ && (isString(o.title))
385
+ && ((Array.isArray(o.labels)
386
+ && o.labels.every((v) => isString(v))));
385
387
  };
386
388
  export const isFtPersonalBookMetadataUpdate = (o) => {
387
389
  return isObject(o)
@@ -408,7 +410,7 @@ export const isFtPersonalBookTopicLinkCreation = (o) => {
408
410
  export const isFtBookmark = (o) => {
409
411
  return isObject(o)
410
412
  && (isString(o.mapTitle))
411
- && (isFtMyLibraryColors(o.color))
413
+ && (o.color == null || isFtMyLibraryColors(o.color))
412
414
  && ((Array.isArray(o.breadcrumb)
413
415
  && o.breadcrumb.every((v) => isString(v))))
414
416
  && (isString(o.tocId))
@@ -417,7 +419,9 @@ export const isFtBookmark = (o) => {
417
419
  && (isString(o.mapId))
418
420
  && (isString(o.id))
419
421
  && (isString(o.title))
420
- && (isString(o.creationDate));
422
+ && (isString(o.creationDate))
423
+ && ((Array.isArray(o.labels)
424
+ && o.labels.every((v) => isString(v))));
421
425
  };
422
426
  export const isFtCollectionDocument = (o) => {
423
427
  return isObject(o)
@@ -602,6 +606,10 @@ export const isFtUiLocale = (o) => {
602
606
  && (isString(o.languageTag))
603
607
  && (isBoolean(o.translated));
604
608
  };
609
+ export const isFtUserAssetLabel = (o) => {
610
+ return isObject(o)
611
+ && (isString(o.title));
612
+ };
605
613
  // From: WsFacetType
606
614
  export var FtFacetType;
607
615
  (function (FtFacetType) {
@@ -644,21 +652,24 @@ export const isFtMetadataDescriptor = (o) => {
644
652
  export const isFtMySearch = (o) => {
645
653
  return isObject(o)
646
654
  && (isFtMySearchRequest(o.searchRequest))
647
- && (isFtMyLibraryColors(o.color))
655
+ && (o.color == null || isFtMyLibraryColors(o.color))
648
656
  && (isBoolean(o.alert))
649
657
  && (isString(o.description))
650
658
  && (isString(o.id))
651
659
  && (isString(o.ownerId))
652
660
  && (isString(o.title))
653
- && (isString(o.creationDate));
661
+ && (isString(o.creationDate))
662
+ && ((Array.isArray(o.labels)
663
+ && o.labels.every((v) => isString(v))));
654
664
  };
655
665
  export const isFtMySearchCreation = (o) => {
656
666
  return isObject(o)
657
667
  && (isFtMySearchRequest(o.searchRequest))
658
- && (isFtMyLibraryColors(o.color))
659
668
  && (isBoolean(o.alert))
660
669
  && (isString(o.description))
661
- && (isString(o.title));
670
+ && (isString(o.title))
671
+ && ((Array.isArray(o.labels)
672
+ && o.labels.every((v) => isString(v))));
662
673
  };
663
674
  export const isFtMySearchRequest = (o) => {
664
675
  return isObject(o)
@@ -678,10 +689,11 @@ export const isFtMySearchRequest = (o) => {
678
689
  export const isFtMySearchUpdate = (o) => {
679
690
  return isObject(o)
680
691
  && (o.searchRequest == null || isFtMySearchRequest(o.searchRequest))
681
- && (o.color == null || isFtMyLibraryColors(o.color))
682
692
  && (o.alert == null || isBoolean(o.alert))
683
693
  && (o.description == null || isString(o.description))
684
- && (o.title == null || isString(o.title));
694
+ && (o.title == null || isString(o.title))
695
+ && (o.labels == null || (Array.isArray(o.labels)
696
+ && o.labels.every((v) => isString(v))));
685
697
  };
686
698
  export const isFtPrivacyPolicyConfiguration = (o) => {
687
699
  return isObject(o)
@@ -805,6 +817,7 @@ export var FtEditorialType;
805
817
  FtEditorialType["ARTICLE"] = "ARTICLE";
806
818
  FtEditorialType["BOOK"] = "BOOK";
807
819
  FtEditorialType["SHARED_BOOK"] = "SHARED_BOOK";
820
+ FtEditorialType["HTMLPACKAGE"] = "HTMLPACKAGE";
808
821
  })(FtEditorialType || (FtEditorialType = {}));
809
822
  export const isFtEditorialType = (o) => Object.keys(FtEditorialType).includes(o);
810
823
  // From: WsOpenMode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/public-api",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "Fluid Topics Public API",
5
5
  "author": "Fluid Topics dev team <opensource@antidot.net>",
6
6
  "license": "LGPL-3.0-only",