@fluid-topics/public-api 1.0.84-alpha → 1.0.85-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.
@@ -8,9 +8,7 @@ export var FtConfigurationHistoryEntryStatus;
8
8
  FtConfigurationHistoryEntryStatus["VALID"] = "VALID";
9
9
  FtConfigurationHistoryEntryStatus["INVALID"] = "INVALID";
10
10
  })(FtConfigurationHistoryEntryStatus || (FtConfigurationHistoryEntryStatus = {}));
11
- export const isFtConfigurationHistoryEntryStatus = (o) => {
12
- return ["VALID", "INVALID"].includes(o);
13
- };
11
+ export const isFtConfigurationHistoryEntryStatus = (o) => Object.keys(FtConfigurationHistoryEntryStatus).includes(o);
14
12
  export const isFtReaderConfiguration = (o) => {
15
13
  return isObject(o)
16
14
  && (isFtReaderFeedbackConfiguration(o.feedback))
@@ -63,9 +61,7 @@ export var TranslationFormat;
63
61
  TranslationFormat["TEXT"] = "TEXT";
64
62
  TranslationFormat["HTML"] = "HTML";
65
63
  })(TranslationFormat || (TranslationFormat = {}));
66
- export const isTranslationFormat = (o) => {
67
- return ["TEXT", "HTML"].includes(o);
68
- };
64
+ export const isTranslationFormat = (o) => Object.keys(TranslationFormat).includes(o);
69
65
  export const isFtTranslationInput = (o) => {
70
66
  return isObject(o)
71
67
  && (isString(o.profileId))
@@ -74,22 +70,6 @@ export const isFtTranslationInput = (o) => {
74
70
  && (isString(o.content))
75
71
  && (o.sourceLanguage == null || isString(o.sourceLanguage));
76
72
  };
77
- export const isFtTranslationLanguagesInput = (o) => {
78
- return isObject(o)
79
- && (isString(o.profileId))
80
- && (o.sourceLanguage == null || isString(o.sourceLanguage));
81
- };
82
- export const isFtTranslationSettingsInput = (o) => {
83
- return isObject(o)
84
- && (isString(o.profileId))
85
- && (isString(o.destinationLanguage))
86
- && (o.sourceLanguage == null || isString(o.sourceLanguage));
87
- };
88
- export const isFtTranslationLanguagesResponse = (o) => {
89
- return isObject(o)
90
- && (isString(o.code))
91
- && (isString(o.label));
92
- };
93
73
  export const isFtMapAttachment = (o) => {
94
74
  return isObject(o)
95
75
  && (isString(o.file))
@@ -120,7 +100,6 @@ export const isFtPaginatedTocNode = (o) => {
120
100
  && (o.tocId == null || isString(o.tocId))
121
101
  && ((Array.isArray(o.children)
122
102
  && o.children.every((v) => isFtPaginatedTocNode(v))))
123
- && (o.translatedTitle == null || isString(o.translatedTitle))
124
103
  && (o.pageConfiguration == null || isFtPageConfiguration(o.pageConfiguration))
125
104
  && (o.contentId == null || isString(o.contentId))
126
105
  && (o.title == null || isString(o.title));
@@ -149,6 +128,9 @@ export const isFtSemanticSearchFilter = (o) => {
149
128
  return isObject(o)
150
129
  && ((Array.isArray(o.values)
151
130
  && o.values.every((v) => isString(v))))
131
+ && (o.hierarchicalValues == null || (Array.isArray(o.hierarchicalValues)
132
+ && o.hierarchicalValues.every((v) => (Array.isArray(v)
133
+ && v.every((v) => isString(v))))))
152
134
  && (isString(o.key));
153
135
  };
154
136
  export const isFtSemanticSearchRequest = (o) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/public-api",
3
- "version": "1.0.84-alpha",
3
+ "version": "1.0.85-alpha",
4
4
  "description": "Fluid Topics Public API",
5
5
  "author": "Fluid Topics dev team <opensource@antidot.net>",
6
6
  "license": "LGPL-3.0-only",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- .gradle
2
- .editorconfig
3
- build
4
- build.gradle.kts
5
- node_modules
6
- test
7
- test-browser
8
- packages
9
- src
10
- tsconfig.*
11
- rollup.config.js
12
- INTERNAL_README.md
13
- vite-plugin.mjs
14
- web-test-runner.config.mjs