@sjcrh/proteinpaint-types 2.169.0 → 2.170.1
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/brainImaging.js +1 -1
- package/dist/{chunk-EBPGV76U.js → chunk-33FYSH3O.js} +130 -2
- package/dist/{chunk-GIPUG4HD.js → chunk-447IAMTQ.js} +130 -2
- package/dist/{chunk-ZXPLL3NT.js → chunk-53QZTLJK.js} +417 -185
- package/dist/{chunk-PZHVYGSD.js → chunk-A5Z4YYMF.js} +492 -236
- package/dist/{chunk-5F24QFE7.js → chunk-BPDR66LV.js} +385 -151
- package/dist/{chunk-C27KCAQH.js → chunk-CUU7POGC.js} +417 -185
- package/dist/{chunk-FTPYJPUB.js → chunk-FK7OCBPT.js} +5 -1
- package/dist/{chunk-OLXOQLZH.js → chunk-GNLX5NQ5.js} +243 -49
- package/dist/{chunk-GZKTMVAU.js → chunk-HDED6K55.js} +515 -153
- package/dist/{chunk-LXW2FSLR.js → chunk-MH3TDIL4.js} +439 -207
- package/dist/{chunk-OLWNM7QP.js → chunk-MJEQEGN4.js} +130 -2
- package/dist/{chunk-5OMJAZK4.js → chunk-QL6YSLN6.js} +171 -43
- package/dist/{chunk-CC32XCET.js → chunk-UQNHLAZN.js} +660 -298
- package/dist/{chunk-VQOCGHP2.js → chunk-YCURJJSC.js} +5 -1
- package/dist/{chunk-MCL6EDOS.js → chunk-ZAMM6EMS.js} +421 -189
- package/dist/correlationVolcano.js +1 -1
- package/dist/grin2.js +1 -1
- package/dist/healthcheck.js +1 -1
- package/dist/index.js +15 -15
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.chat.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +8 -2
- package/src/filter.ts +7 -1
- package/src/index.ts +1 -0
- package/src/routes/grin2.ts +5 -0
- package/src/routes/healthcheck.ts +1 -0
- package/src/routes/termdb.boxplot.ts +6 -2
- package/src/routes/termdb.violin.ts +12 -4
- package/src/terms/term.ts +3 -1
- package/src/terms/termCollection.ts +52 -0
- package/src/terms/tw.ts +3 -2
package/dist/brainImaging.js
CHANGED
|
@@ -79,6 +79,8 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
|
|
|
79
79
|
const $io38 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "string" === typeof input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io7(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io9(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
|
|
80
80
|
const $io39 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io7(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io9(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop && (Array.isArray(input3.genes) && input3.genes.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem))) && (void 0 === input3.groupsetting || "object" === typeof input3.groupsetting && null !== input3.groupsetting && $io10(input3.groupsetting)) && (void 0 === input3.childTerms || Array.isArray(input3.childTerms) && input3.childTerms.every((elem) => "object" === typeof elem && null !== elem && $io35(elem)));
|
|
81
81
|
const $io40 = (input3) => "string" === typeof input3.key && "string" === typeof input3.label && "string" === typeof input3.value;
|
|
82
|
+
const $io41 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io42(input3.term)) && "number" === typeof input3.ratio;
|
|
83
|
+
const $io42 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "termCollection" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io7(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io9(input3.valueConversion)) && (void 0 === input3.collectionId || "string" === typeof input3.collectionId) && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.every((elem) => "string" === typeof elem)) && (void 0 === input3.termlst || Array.isArray(input3.termlst)) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem)) && (void 0 === input3.newTvs || "boolean" === typeof input3.newTvs);
|
|
82
84
|
const $iu0 = (input3) => (() => {
|
|
83
85
|
if ("tvslst" === input3.type)
|
|
84
86
|
return $io3(input3);
|
|
@@ -110,6 +112,8 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
|
|
|
110
112
|
const $iu4 = (input3) => (() => {
|
|
111
113
|
if (void 0 !== input3.ranges)
|
|
112
114
|
return $io15(input3);
|
|
115
|
+
if (void 0 !== input3.ratio)
|
|
116
|
+
return $io41(input3);
|
|
113
117
|
return (() => {
|
|
114
118
|
if ($io5(input3))
|
|
115
119
|
return $io5(input3);
|
|
@@ -285,11 +289,11 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
|
|
|
285
289
|
value: input3.type
|
|
286
290
|
}), ("object" === typeof input3.tvs && null !== input3.tvs || $report(_exceptionable2, {
|
|
287
291
|
path: _path2 + ".tvs",
|
|
288
|
-
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
|
|
292
|
+
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
|
|
289
293
|
value: input3.tvs
|
|
290
294
|
})) && $vu4(input3.tvs, _path2 + ".tvs", _exceptionable2) || $report(_exceptionable2, {
|
|
291
295
|
path: _path2 + ".tvs",
|
|
292
|
-
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
|
|
296
|
+
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
|
|
293
297
|
value: input3.tvs
|
|
294
298
|
})].every((flag) => flag);
|
|
295
299
|
const $vo5 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
@@ -2142,6 +2146,128 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
|
|
|
2142
2146
|
expected: "string",
|
|
2143
2147
|
value: input3.value
|
|
2144
2148
|
})].every((flag) => flag);
|
|
2149
|
+
const $vo41 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
2150
|
+
path: _path2 + ".join",
|
|
2151
|
+
expected: "(string | undefined)",
|
|
2152
|
+
value: input3.join
|
|
2153
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
2154
|
+
path: _path2 + ".isnot",
|
|
2155
|
+
expected: "(boolean | undefined)",
|
|
2156
|
+
value: input3.isnot
|
|
2157
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
2158
|
+
path: _path2 + ".term",
|
|
2159
|
+
expected: "TermCollection",
|
|
2160
|
+
value: input3.term
|
|
2161
|
+
})) && $vo42(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
2162
|
+
path: _path2 + ".term",
|
|
2163
|
+
expected: "TermCollection",
|
|
2164
|
+
value: input3.term
|
|
2165
|
+
}), "number" === typeof input3.ratio || $report(_exceptionable2, {
|
|
2166
|
+
path: _path2 + ".ratio",
|
|
2167
|
+
expected: "number",
|
|
2168
|
+
value: input3.ratio
|
|
2169
|
+
})].every((flag) => flag);
|
|
2170
|
+
const $vo42 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
2171
|
+
path: _path2 + ".id",
|
|
2172
|
+
expected: "string",
|
|
2173
|
+
value: input3.id
|
|
2174
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
2175
|
+
path: _path2 + ".name",
|
|
2176
|
+
expected: "string",
|
|
2177
|
+
value: input3.name
|
|
2178
|
+
}), "termCollection" === input3.type || $report(_exceptionable2, {
|
|
2179
|
+
path: _path2 + ".type",
|
|
2180
|
+
expected: '"termCollection"',
|
|
2181
|
+
value: input3.type
|
|
2182
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
2183
|
+
path: _path2 + ".child_types",
|
|
2184
|
+
expected: "(Array<string> | undefined)",
|
|
2185
|
+
value: input3.child_types
|
|
2186
|
+
})) && input3.child_types.map((elem, _index41) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2187
|
+
path: _path2 + ".child_types[" + _index41 + "]",
|
|
2188
|
+
expected: "string",
|
|
2189
|
+
value: elem
|
|
2190
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2191
|
+
path: _path2 + ".child_types",
|
|
2192
|
+
expected: "(Array<string> | undefined)",
|
|
2193
|
+
value: input3.child_types
|
|
2194
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
2195
|
+
path: _path2 + ".hashtmldetail",
|
|
2196
|
+
expected: "(boolean | undefined)",
|
|
2197
|
+
value: input3.hashtmldetail
|
|
2198
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
2199
|
+
path: _path2 + ".included_types",
|
|
2200
|
+
expected: "(Array<string> | undefined)",
|
|
2201
|
+
value: input3.included_types
|
|
2202
|
+
})) && input3.included_types.map((elem, _index42) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2203
|
+
path: _path2 + ".included_types[" + _index42 + "]",
|
|
2204
|
+
expected: "string",
|
|
2205
|
+
value: elem
|
|
2206
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2207
|
+
path: _path2 + ".included_types",
|
|
2208
|
+
expected: "(Array<string> | undefined)",
|
|
2209
|
+
value: input3.included_types
|
|
2210
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
2211
|
+
path: _path2 + ".isleaf",
|
|
2212
|
+
expected: "(boolean | undefined)",
|
|
2213
|
+
value: input3.isleaf
|
|
2214
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
2215
|
+
path: _path2 + ".values",
|
|
2216
|
+
expected: "(TermValues | undefined)",
|
|
2217
|
+
value: input3.values
|
|
2218
|
+
})) && $vo7(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
2219
|
+
path: _path2 + ".values",
|
|
2220
|
+
expected: "(TermValues | undefined)",
|
|
2221
|
+
value: input3.values
|
|
2222
|
+
}), void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild || $report(_exceptionable2, {
|
|
2223
|
+
path: _path2 + ".skipValuesBuild",
|
|
2224
|
+
expected: "(boolean | undefined)",
|
|
2225
|
+
value: input3.skipValuesBuild
|
|
2226
|
+
}), void 0 === input3.valueConversion || ("object" === typeof input3.valueConversion && null !== input3.valueConversion || $report(_exceptionable2, {
|
|
2227
|
+
path: _path2 + ".valueConversion",
|
|
2228
|
+
expected: "(__type.o3 | undefined)",
|
|
2229
|
+
value: input3.valueConversion
|
|
2230
|
+
})) && $vo9(input3.valueConversion, _path2 + ".valueConversion", _exceptionable2) || $report(_exceptionable2, {
|
|
2231
|
+
path: _path2 + ".valueConversion",
|
|
2232
|
+
expected: "(__type.o3 | undefined)",
|
|
2233
|
+
value: input3.valueConversion
|
|
2234
|
+
}), void 0 === input3.collectionId || "string" === typeof input3.collectionId || $report(_exceptionable2, {
|
|
2235
|
+
path: _path2 + ".collectionId",
|
|
2236
|
+
expected: "(string | undefined)",
|
|
2237
|
+
value: input3.collectionId
|
|
2238
|
+
}), void 0 === input3.lst || (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
2239
|
+
path: _path2 + ".lst",
|
|
2240
|
+
expected: "(Array<string> | undefined)",
|
|
2241
|
+
value: input3.lst
|
|
2242
|
+
})) && input3.lst.map((elem, _index43) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2243
|
+
path: _path2 + ".lst[" + _index43 + "]",
|
|
2244
|
+
expected: "string",
|
|
2245
|
+
value: elem
|
|
2246
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2247
|
+
path: _path2 + ".lst",
|
|
2248
|
+
expected: "(Array<string> | undefined)",
|
|
2249
|
+
value: input3.lst
|
|
2250
|
+
}), void 0 === input3.termlst || Array.isArray(input3.termlst) || $report(_exceptionable2, {
|
|
2251
|
+
path: _path2 + ".termlst",
|
|
2252
|
+
expected: "(Array<any> | undefined)",
|
|
2253
|
+
value: input3.termlst
|
|
2254
|
+
}), void 0 === input3.numerators || (Array.isArray(input3.numerators) || $report(_exceptionable2, {
|
|
2255
|
+
path: _path2 + ".numerators",
|
|
2256
|
+
expected: "(Array<string> | undefined)",
|
|
2257
|
+
value: input3.numerators
|
|
2258
|
+
})) && input3.numerators.map((elem, _index44) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2259
|
+
path: _path2 + ".numerators[" + _index44 + "]",
|
|
2260
|
+
expected: "string",
|
|
2261
|
+
value: elem
|
|
2262
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2263
|
+
path: _path2 + ".numerators",
|
|
2264
|
+
expected: "(Array<string> | undefined)",
|
|
2265
|
+
value: input3.numerators
|
|
2266
|
+
}), void 0 === input3.newTvs || "boolean" === typeof input3.newTvs || $report(_exceptionable2, {
|
|
2267
|
+
path: _path2 + ".newTvs",
|
|
2268
|
+
expected: "(boolean | undefined)",
|
|
2269
|
+
value: input3.newTvs
|
|
2270
|
+
})].every((flag) => flag);
|
|
2145
2271
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
2146
2272
|
if ("tvslst" === input3.type)
|
|
2147
2273
|
return $vo3(input3, _path2, _exceptionable2);
|
|
@@ -2185,6 +2311,8 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
|
|
|
2185
2311
|
const $vu4 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
2186
2312
|
if (void 0 !== input3.ranges)
|
|
2187
2313
|
return $vo15(input3, _path2, _exceptionable2);
|
|
2314
|
+
if (void 0 !== input3.ratio)
|
|
2315
|
+
return $vo41(input3, _path2, _exceptionable2);
|
|
2188
2316
|
return $vo5(input3, _path2, false) || $vo31(input3, _path2, false) || $vo34(input3, _path2, false);
|
|
2189
2317
|
})();
|
|
2190
2318
|
const $vu5 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
@@ -77,6 +77,8 @@ var validChatRequest = (input) => {
|
|
|
77
77
|
const $io36 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "string" === typeof input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
|
|
78
78
|
const $io37 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop && (Array.isArray(input3.genes) && input3.genes.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem))) && (void 0 === input3.groupsetting || "object" === typeof input3.groupsetting && null !== input3.groupsetting && $io8(input3.groupsetting)) && (void 0 === input3.childTerms || Array.isArray(input3.childTerms) && input3.childTerms.every((elem) => "object" === typeof elem && null !== elem && $io33(elem)));
|
|
79
79
|
const $io38 = (input3) => "string" === typeof input3.key && "string" === typeof input3.label && "string" === typeof input3.value;
|
|
80
|
+
const $io39 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io40(input3.term)) && "number" === typeof input3.ratio;
|
|
81
|
+
const $io40 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "termCollection" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.valueConversion || "object" === typeof input3.valueConversion && null !== input3.valueConversion && $io7(input3.valueConversion)) && (void 0 === input3.collectionId || "string" === typeof input3.collectionId) && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.every((elem) => "string" === typeof elem)) && (void 0 === input3.termlst || Array.isArray(input3.termlst)) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem)) && (void 0 === input3.newTvs || "boolean" === typeof input3.newTvs);
|
|
80
82
|
const $iu0 = (input3) => (() => {
|
|
81
83
|
if ("tvslst" === input3.type)
|
|
82
84
|
return $io1(input3);
|
|
@@ -108,6 +110,8 @@ var validChatRequest = (input) => {
|
|
|
108
110
|
const $iu4 = (input3) => (() => {
|
|
109
111
|
if (void 0 !== input3.ranges)
|
|
110
112
|
return $io13(input3);
|
|
113
|
+
if (void 0 !== input3.ratio)
|
|
114
|
+
return $io39(input3);
|
|
111
115
|
return (() => {
|
|
112
116
|
if ($io3(input3))
|
|
113
117
|
return $io3(input3);
|
|
@@ -229,11 +233,11 @@ var validChatRequest = (input) => {
|
|
|
229
233
|
value: input3.type
|
|
230
234
|
}), ("object" === typeof input3.tvs && null !== input3.tvs || $report(_exceptionable2, {
|
|
231
235
|
path: _path2 + ".tvs",
|
|
232
|
-
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
|
|
236
|
+
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
|
|
233
237
|
value: input3.tvs
|
|
234
238
|
})) && $vu4(input3.tvs, _path2 + ".tvs", _exceptionable2) || $report(_exceptionable2, {
|
|
235
239
|
path: _path2 + ".tvs",
|
|
236
|
-
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs)",
|
|
240
|
+
expected: "(CategoricalTvs | ConditionTvs | GeneVariantTvs | NumericTvs | TermCollectionTvs)",
|
|
237
241
|
value: input3.tvs
|
|
238
242
|
})].every((flag) => flag);
|
|
239
243
|
const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
@@ -2086,6 +2090,128 @@ var validChatRequest = (input) => {
|
|
|
2086
2090
|
expected: "string",
|
|
2087
2091
|
value: input3.value
|
|
2088
2092
|
})].every((flag) => flag);
|
|
2093
|
+
const $vo39 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
2094
|
+
path: _path2 + ".join",
|
|
2095
|
+
expected: "(string | undefined)",
|
|
2096
|
+
value: input3.join
|
|
2097
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
2098
|
+
path: _path2 + ".isnot",
|
|
2099
|
+
expected: "(boolean | undefined)",
|
|
2100
|
+
value: input3.isnot
|
|
2101
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
2102
|
+
path: _path2 + ".term",
|
|
2103
|
+
expected: "TermCollection",
|
|
2104
|
+
value: input3.term
|
|
2105
|
+
})) && $vo40(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
2106
|
+
path: _path2 + ".term",
|
|
2107
|
+
expected: "TermCollection",
|
|
2108
|
+
value: input3.term
|
|
2109
|
+
}), "number" === typeof input3.ratio || $report(_exceptionable2, {
|
|
2110
|
+
path: _path2 + ".ratio",
|
|
2111
|
+
expected: "number",
|
|
2112
|
+
value: input3.ratio
|
|
2113
|
+
})].every((flag) => flag);
|
|
2114
|
+
const $vo40 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
2115
|
+
path: _path2 + ".id",
|
|
2116
|
+
expected: "string",
|
|
2117
|
+
value: input3.id
|
|
2118
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
2119
|
+
path: _path2 + ".name",
|
|
2120
|
+
expected: "string",
|
|
2121
|
+
value: input3.name
|
|
2122
|
+
}), "termCollection" === input3.type || $report(_exceptionable2, {
|
|
2123
|
+
path: _path2 + ".type",
|
|
2124
|
+
expected: '"termCollection"',
|
|
2125
|
+
value: input3.type
|
|
2126
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
2127
|
+
path: _path2 + ".child_types",
|
|
2128
|
+
expected: "(Array<string> | undefined)",
|
|
2129
|
+
value: input3.child_types
|
|
2130
|
+
})) && input3.child_types.map((elem, _index40) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2131
|
+
path: _path2 + ".child_types[" + _index40 + "]",
|
|
2132
|
+
expected: "string",
|
|
2133
|
+
value: elem
|
|
2134
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2135
|
+
path: _path2 + ".child_types",
|
|
2136
|
+
expected: "(Array<string> | undefined)",
|
|
2137
|
+
value: input3.child_types
|
|
2138
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
2139
|
+
path: _path2 + ".hashtmldetail",
|
|
2140
|
+
expected: "(boolean | undefined)",
|
|
2141
|
+
value: input3.hashtmldetail
|
|
2142
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
2143
|
+
path: _path2 + ".included_types",
|
|
2144
|
+
expected: "(Array<string> | undefined)",
|
|
2145
|
+
value: input3.included_types
|
|
2146
|
+
})) && input3.included_types.map((elem, _index41) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2147
|
+
path: _path2 + ".included_types[" + _index41 + "]",
|
|
2148
|
+
expected: "string",
|
|
2149
|
+
value: elem
|
|
2150
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2151
|
+
path: _path2 + ".included_types",
|
|
2152
|
+
expected: "(Array<string> | undefined)",
|
|
2153
|
+
value: input3.included_types
|
|
2154
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
2155
|
+
path: _path2 + ".isleaf",
|
|
2156
|
+
expected: "(boolean | undefined)",
|
|
2157
|
+
value: input3.isleaf
|
|
2158
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
2159
|
+
path: _path2 + ".values",
|
|
2160
|
+
expected: "(TermValues | undefined)",
|
|
2161
|
+
value: input3.values
|
|
2162
|
+
})) && $vo5(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
2163
|
+
path: _path2 + ".values",
|
|
2164
|
+
expected: "(TermValues | undefined)",
|
|
2165
|
+
value: input3.values
|
|
2166
|
+
}), void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild || $report(_exceptionable2, {
|
|
2167
|
+
path: _path2 + ".skipValuesBuild",
|
|
2168
|
+
expected: "(boolean | undefined)",
|
|
2169
|
+
value: input3.skipValuesBuild
|
|
2170
|
+
}), void 0 === input3.valueConversion || ("object" === typeof input3.valueConversion && null !== input3.valueConversion || $report(_exceptionable2, {
|
|
2171
|
+
path: _path2 + ".valueConversion",
|
|
2172
|
+
expected: "(__type.o1 | undefined)",
|
|
2173
|
+
value: input3.valueConversion
|
|
2174
|
+
})) && $vo7(input3.valueConversion, _path2 + ".valueConversion", _exceptionable2) || $report(_exceptionable2, {
|
|
2175
|
+
path: _path2 + ".valueConversion",
|
|
2176
|
+
expected: "(__type.o1 | undefined)",
|
|
2177
|
+
value: input3.valueConversion
|
|
2178
|
+
}), void 0 === input3.collectionId || "string" === typeof input3.collectionId || $report(_exceptionable2, {
|
|
2179
|
+
path: _path2 + ".collectionId",
|
|
2180
|
+
expected: "(string | undefined)",
|
|
2181
|
+
value: input3.collectionId
|
|
2182
|
+
}), void 0 === input3.lst || (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
2183
|
+
path: _path2 + ".lst",
|
|
2184
|
+
expected: "(Array<string> | undefined)",
|
|
2185
|
+
value: input3.lst
|
|
2186
|
+
})) && input3.lst.map((elem, _index42) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2187
|
+
path: _path2 + ".lst[" + _index42 + "]",
|
|
2188
|
+
expected: "string",
|
|
2189
|
+
value: elem
|
|
2190
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2191
|
+
path: _path2 + ".lst",
|
|
2192
|
+
expected: "(Array<string> | undefined)",
|
|
2193
|
+
value: input3.lst
|
|
2194
|
+
}), void 0 === input3.termlst || Array.isArray(input3.termlst) || $report(_exceptionable2, {
|
|
2195
|
+
path: _path2 + ".termlst",
|
|
2196
|
+
expected: "(Array<any> | undefined)",
|
|
2197
|
+
value: input3.termlst
|
|
2198
|
+
}), void 0 === input3.numerators || (Array.isArray(input3.numerators) || $report(_exceptionable2, {
|
|
2199
|
+
path: _path2 + ".numerators",
|
|
2200
|
+
expected: "(Array<string> | undefined)",
|
|
2201
|
+
value: input3.numerators
|
|
2202
|
+
})) && input3.numerators.map((elem, _index43) => "string" === typeof elem || $report(_exceptionable2, {
|
|
2203
|
+
path: _path2 + ".numerators[" + _index43 + "]",
|
|
2204
|
+
expected: "string",
|
|
2205
|
+
value: elem
|
|
2206
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
2207
|
+
path: _path2 + ".numerators",
|
|
2208
|
+
expected: "(Array<string> | undefined)",
|
|
2209
|
+
value: input3.numerators
|
|
2210
|
+
}), void 0 === input3.newTvs || "boolean" === typeof input3.newTvs || $report(_exceptionable2, {
|
|
2211
|
+
path: _path2 + ".newTvs",
|
|
2212
|
+
expected: "(boolean | undefined)",
|
|
2213
|
+
value: input3.newTvs
|
|
2214
|
+
})].every((flag) => flag);
|
|
2089
2215
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
2090
2216
|
if ("tvslst" === input3.type)
|
|
2091
2217
|
return $vo1(input3, _path2, _exceptionable2);
|
|
@@ -2129,6 +2255,8 @@ var validChatRequest = (input) => {
|
|
|
2129
2255
|
const $vu4 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
2130
2256
|
if (void 0 !== input3.ranges)
|
|
2131
2257
|
return $vo13(input3, _path2, _exceptionable2);
|
|
2258
|
+
if (void 0 !== input3.ratio)
|
|
2259
|
+
return $vo39(input3, _path2, _exceptionable2);
|
|
2132
2260
|
return $vo3(input3, _path2, false) || $vo29(input3, _path2, false) || $vo32(input3, _path2, false);
|
|
2133
2261
|
})();
|
|
2134
2262
|
const $vu5 = (input3, _path2, _exceptionable2 = true) => (() => {
|