@sjcrh/proteinpaint-types 2.176.0 → 2.177.0

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.
Files changed (33) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-CJVAIEUK.js → chunk-2DJFVQUQ.js} +273 -203
  3. package/dist/{chunk-HJEEUTW3.js → chunk-44LN7YTE.js} +82 -12
  4. package/dist/{chunk-QYQNPL6O.js → chunk-4SOVPEYQ.js} +125 -55
  5. package/dist/{chunk-U5H2DV3T.js → chunk-5KF6Z3GL.js} +82 -12
  6. package/dist/{chunk-GZRRMIZZ.js → chunk-63OD34W2.js} +273 -203
  7. package/dist/{chunk-CMC3WJO7.js → chunk-7NKZVHIZ.js} +251 -177
  8. package/dist/{chunk-YIF5KN5P.js → chunk-7WEVNKAM.js} +273 -203
  9. package/dist/{chunk-ZGX6LDVV.js → chunk-F4YCPOQV.js} +82 -12
  10. package/dist/{chunk-7LV73FRY.js → chunk-LHJGTOZJ.js} +292 -222
  11. package/dist/{chunk-Z763D57O.js → chunk-Q6MWNJ2V.js} +469 -325
  12. package/dist/{chunk-CJKG67B2.js → chunk-TWNJZBZK.js} +61 -17
  13. package/dist/{chunk-VZNEPZ73.js → chunk-UQEAM7BH.js} +273 -203
  14. package/dist/{chunk-6VN4YVWP.js → chunk-URHI6FFP.js} +333 -189
  15. package/dist/{chunk-JVEPTUQN.js → chunk-W7UCAYSF.js} +82 -12
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/index.js +14 -14
  18. package/dist/termdb.boxplot.js +1 -1
  19. package/dist/termdb.categories.js +1 -1
  20. package/dist/termdb.chat.js +1 -1
  21. package/dist/termdb.cluster.js +1 -1
  22. package/dist/termdb.descrstats.js +1 -1
  23. package/dist/termdb.numericcategories.js +1 -1
  24. package/dist/termdb.percentile.js +1 -1
  25. package/dist/termdb.runChart.js +1 -1
  26. package/dist/termdb.termsbyids.js +1 -1
  27. package/dist/termdb.topTermsByType.js +1 -1
  28. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  29. package/dist/termdb.violin.js +1 -1
  30. package/package.json +1 -1
  31. package/src/dataset.ts +6 -0
  32. package/src/routes/termdb.runChart.ts +29 -12
  33. package/src/terms/termCollection.ts +2 -2
@@ -80,16 +80,17 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
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
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) && (Array.isArray(input3.termlst) && input3.termlst.every((elem) => "string" === typeof elem)) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem)) && (void 0 === input3.newTvs || "boolean" === typeof input3.newTvs) && ("object" === typeof input3.propsByTermId && null !== input3.propsByTermId && false === Array.isArray(input3.propsByTermId) && $io43(input3.propsByTermId));
84
- const $io43 = (input3) => Object.keys(input3).every((key) => {
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) && (Array.isArray(input3.termlst) && input3.termlst.every((elem) => "object" === typeof elem && null !== elem && $io43(elem))) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem)) && (void 0 === input3.newTvs || "boolean" === typeof input3.newTvs) && ("object" === typeof input3.propsByTermId && null !== input3.propsByTermId && false === Array.isArray(input3.propsByTermId) && $io44(input3.propsByTermId));
84
+ const $io43 = (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));
85
+ const $io44 = (input3) => Object.keys(input3).every((key) => {
85
86
  const value = input3[key];
86
87
  if (void 0 === value)
87
88
  return true;
88
89
  if (RegExp(/(.*)/).test(key))
89
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io44(value);
90
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io45(value);
90
91
  return true;
91
92
  });
92
- const $io44 = (input3) => Object.keys(input3).every((key) => {
93
+ const $io45 = (input3) => Object.keys(input3).every((key) => {
93
94
  const value = input3[key];
94
95
  if (void 0 === value)
95
96
  return true;
@@ -2261,15 +2262,19 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
2261
2262
  value: input3.collectionId
2262
2263
  }), (Array.isArray(input3.termlst) || $report(_exceptionable2, {
2263
2264
  path: _path2 + ".termlst",
2264
- expected: "Array<string>",
2265
+ expected: "Array<BaseTerm>",
2265
2266
  value: input3.termlst
2266
- })) && input3.termlst.map((elem, _index43) => "string" === typeof elem || $report(_exceptionable2, {
2267
+ })) && input3.termlst.map((elem, _index43) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
2267
2268
  path: _path2 + ".termlst[" + _index43 + "]",
2268
- expected: "string",
2269
+ expected: "BaseTerm",
2270
+ value: elem
2271
+ })) && $vo43(elem, _path2 + ".termlst[" + _index43 + "]", _exceptionable2) || $report(_exceptionable2, {
2272
+ path: _path2 + ".termlst[" + _index43 + "]",
2273
+ expected: "BaseTerm",
2269
2274
  value: elem
2270
2275
  })).every((flag) => flag) || $report(_exceptionable2, {
2271
2276
  path: _path2 + ".termlst",
2272
- expected: "Array<string>",
2277
+ expected: "Array<BaseTerm>",
2273
2278
  value: input3.termlst
2274
2279
  }), void 0 === input3.numerators || (Array.isArray(input3.numerators) || $report(_exceptionable2, {
2275
2280
  path: _path2 + ".numerators",
@@ -2291,12 +2296,77 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
2291
2296
  path: _path2 + ".propsByTermId",
2292
2297
  expected: "__type.o8",
2293
2298
  value: input3.propsByTermId
2294
- })) && $vo43(input3.propsByTermId, _path2 + ".propsByTermId", _exceptionable2) || $report(_exceptionable2, {
2299
+ })) && $vo44(input3.propsByTermId, _path2 + ".propsByTermId", _exceptionable2) || $report(_exceptionable2, {
2295
2300
  path: _path2 + ".propsByTermId",
2296
2301
  expected: "__type.o8",
2297
2302
  value: input3.propsByTermId
2298
2303
  })].every((flag) => flag);
2299
- const $vo43 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
2304
+ const $vo43 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
2305
+ path: _path2 + ".id",
2306
+ expected: "string",
2307
+ value: input3.id
2308
+ }), "string" === typeof input3.name || $report(_exceptionable2, {
2309
+ path: _path2 + ".name",
2310
+ expected: "string",
2311
+ value: input3.name
2312
+ }), "string" === typeof input3.type || $report(_exceptionable2, {
2313
+ path: _path2 + ".type",
2314
+ expected: "string",
2315
+ value: input3.type
2316
+ }), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
2317
+ path: _path2 + ".child_types",
2318
+ expected: "(Array<string> | undefined)",
2319
+ value: input3.child_types
2320
+ })) && input3.child_types.map((elem, _index45) => "string" === typeof elem || $report(_exceptionable2, {
2321
+ path: _path2 + ".child_types[" + _index45 + "]",
2322
+ expected: "string",
2323
+ value: elem
2324
+ })).every((flag) => flag) || $report(_exceptionable2, {
2325
+ path: _path2 + ".child_types",
2326
+ expected: "(Array<string> | undefined)",
2327
+ value: input3.child_types
2328
+ }), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
2329
+ path: _path2 + ".hashtmldetail",
2330
+ expected: "(boolean | undefined)",
2331
+ value: input3.hashtmldetail
2332
+ }), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
2333
+ path: _path2 + ".included_types",
2334
+ expected: "(Array<string> | undefined)",
2335
+ value: input3.included_types
2336
+ })) && input3.included_types.map((elem, _index46) => "string" === typeof elem || $report(_exceptionable2, {
2337
+ path: _path2 + ".included_types[" + _index46 + "]",
2338
+ expected: "string",
2339
+ value: elem
2340
+ })).every((flag) => flag) || $report(_exceptionable2, {
2341
+ path: _path2 + ".included_types",
2342
+ expected: "(Array<string> | undefined)",
2343
+ value: input3.included_types
2344
+ }), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
2345
+ path: _path2 + ".isleaf",
2346
+ expected: "(boolean | undefined)",
2347
+ value: input3.isleaf
2348
+ }), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
2349
+ path: _path2 + ".values",
2350
+ expected: "(TermValues | undefined)",
2351
+ value: input3.values
2352
+ })) && $vo7(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
2353
+ path: _path2 + ".values",
2354
+ expected: "(TermValues | undefined)",
2355
+ value: input3.values
2356
+ }), void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild || $report(_exceptionable2, {
2357
+ path: _path2 + ".skipValuesBuild",
2358
+ expected: "(boolean | undefined)",
2359
+ value: input3.skipValuesBuild
2360
+ }), void 0 === input3.valueConversion || ("object" === typeof input3.valueConversion && null !== input3.valueConversion || $report(_exceptionable2, {
2361
+ path: _path2 + ".valueConversion",
2362
+ expected: "(__type.o3 | undefined)",
2363
+ value: input3.valueConversion
2364
+ })) && $vo9(input3.valueConversion, _path2 + ".valueConversion", _exceptionable2) || $report(_exceptionable2, {
2365
+ path: _path2 + ".valueConversion",
2366
+ expected: "(__type.o3 | undefined)",
2367
+ value: input3.valueConversion
2368
+ })].every((flag) => flag);
2369
+ const $vo44 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
2300
2370
  const value = input3[key];
2301
2371
  if (void 0 === value)
2302
2372
  return true;
@@ -2305,14 +2375,14 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
2305
2375
  path: _path2 + $join(key),
2306
2376
  expected: "__type.o9",
2307
2377
  value
2308
- })) && $vo44(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
2378
+ })) && $vo45(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
2309
2379
  path: _path2 + $join(key),
2310
2380
  expected: "__type.o9",
2311
2381
  value
2312
2382
  });
2313
2383
  return true;
2314
2384
  }).every((flag) => flag)].every((flag) => flag);
2315
- const $vo44 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
2385
+ const $vo45 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
2316
2386
  const value = input3[key];
2317
2387
  if (void 0 === value)
2318
2388
  return true;
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-7LV73FRY.js";
5
+ } from "./chunk-LHJGTOZJ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-YIF5KN5P.js";
5
+ } from "./chunk-7WEVNKAM.js";
6
6
  import {
7
7
  topMutatedGenePayload,
8
8
  validtopMutatedGeneRequest,
@@ -12,17 +12,17 @@ import {
12
12
  termdbTopTermsByTypePayload,
13
13
  validTermdbTopTermsByTypeRequest,
14
14
  validTermdbTopTermsByTypeResponse
15
- } from "./chunk-6VN4YVWP.js";
15
+ } from "./chunk-URHI6FFP.js";
16
16
  import {
17
17
  termdbTopVariablyExpressedGenesPayload,
18
18
  validTermdbTopVariablyExpressedGenesRequest,
19
19
  validTermdbTopVariablyExpressedGenesResponse
20
- } from "./chunk-JVEPTUQN.js";
20
+ } from "./chunk-W7UCAYSF.js";
21
21
  import {
22
22
  validViolinRequest,
23
23
  validViolinResponse,
24
24
  violinPayload
25
- } from "./chunk-HJEEUTW3.js";
25
+ } from "./chunk-44LN7YTE.js";
26
26
  import {
27
27
  tilePayload,
28
28
  validTileRequest,
@@ -42,7 +42,7 @@ import {
42
42
  runChartPayload,
43
43
  validRunChartRequest,
44
44
  validRunChartResponse
45
- } from "./chunk-CJKG67B2.js";
45
+ } from "./chunk-TWNJZBZK.js";
46
46
  import {
47
47
  termdbSampleImagesPayload,
48
48
  validTermdbSampleImagesRequest,
@@ -87,7 +87,7 @@ import {
87
87
  descrStatsPayload,
88
88
  validDescrStatsRequest,
89
89
  validDescrStatsResponse
90
- } from "./chunk-GZRRMIZZ.js";
90
+ } from "./chunk-63OD34W2.js";
91
91
  import {
92
92
  FilterTermValuesPayload,
93
93
  validFilterTermValuesRequest,
@@ -97,12 +97,12 @@ import {
97
97
  numericCategoriesPayload,
98
98
  validNumericCategoriesRequest,
99
99
  validNumericCategoriesResponse
100
- } from "./chunk-U5H2DV3T.js";
100
+ } from "./chunk-5KF6Z3GL.js";
101
101
  import {
102
102
  percentilePayload,
103
103
  validPercentileRequest,
104
104
  validPercentileResponse
105
- } from "./chunk-CMC3WJO7.js";
105
+ } from "./chunk-7NKZVHIZ.js";
106
106
  import {
107
107
  ProfileFormScoresPayload,
108
108
  validProfileFormScoresRequest,
@@ -137,22 +137,22 @@ import {
137
137
  boxplotPayload,
138
138
  validBoxPlotRequest,
139
139
  validBoxPlotResponse
140
- } from "./chunk-CJVAIEUK.js";
140
+ } from "./chunk-2DJFVQUQ.js";
141
141
  import {
142
142
  termdbCategoriesPayload,
143
143
  validCategoriesRequest,
144
144
  validCategoriesResponse
145
- } from "./chunk-VZNEPZ73.js";
145
+ } from "./chunk-UQEAM7BH.js";
146
146
  import {
147
147
  ChatPayload,
148
148
  validChatRequest,
149
149
  validChatResponse
150
- } from "./chunk-ZGX6LDVV.js";
150
+ } from "./chunk-F4YCPOQV.js";
151
151
  import {
152
152
  termdbClusterPayload,
153
153
  validTermdbClusterRequest,
154
154
  validTermdbClusterResponse
155
- } from "./chunk-Z763D57O.js";
155
+ } from "./chunk-Q6MWNJ2V.js";
156
156
  import {
157
157
  termdbCohortSummaryPayload,
158
158
  validTermdbCohortSummaryRequest,
@@ -244,7 +244,7 @@ import {
244
244
  CorrelationVolcanoPayload,
245
245
  validCorrelationVolcanoRequest,
246
246
  validCorrelationVolcanoResponse
247
- } from "./chunk-7LV73FRY.js";
247
+ } from "./chunk-LHJGTOZJ.js";
248
248
  import {
249
249
  datasetPayload,
250
250
  validDatasetRequest,
@@ -302,7 +302,7 @@ import {
302
302
  brainImagingPayload,
303
303
  validBrainImagingRequest,
304
304
  validBrainImagingResponse
305
- } from "./chunk-QYQNPL6O.js";
305
+ } from "./chunk-4SOVPEYQ.js";
306
306
  import {
307
307
  brainImagingSamplesPayload,
308
308
  validBrainImagingSamplesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-CJVAIEUK.js";
5
+ } from "./chunk-2DJFVQUQ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-VZNEPZ73.js";
5
+ } from "./chunk-UQEAM7BH.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  ChatPayload,
3
3
  validChatRequest,
4
4
  validChatResponse
5
- } from "./chunk-ZGX6LDVV.js";
5
+ } from "./chunk-F4YCPOQV.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  ChatPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-Z763D57O.js";
5
+ } from "./chunk-Q6MWNJ2V.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-GZRRMIZZ.js";
5
+ } from "./chunk-63OD34W2.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-U5H2DV3T.js";
5
+ } from "./chunk-5KF6Z3GL.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-CMC3WJO7.js";
5
+ } from "./chunk-7NKZVHIZ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  runChartPayload,
3
3
  validRunChartRequest,
4
4
  validRunChartResponse
5
- } from "./chunk-CJKG67B2.js";
5
+ } from "./chunk-TWNJZBZK.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  runChartPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-YIF5KN5P.js";
5
+ } from "./chunk-7WEVNKAM.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-6VN4YVWP.js";
5
+ } from "./chunk-URHI6FFP.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-JVEPTUQN.js";
5
+ } from "./chunk-W7UCAYSF.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-HJEEUTW3.js";
5
+ } from "./chunk-44LN7YTE.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.176.0",
3
+ "version": "2.177.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -1597,6 +1597,12 @@ keep this setting here for reason of:
1597
1597
  }
1598
1598
  /** maximum number of genes to query in geneVariant gene set */
1599
1599
  maxGeneVariantGeneSetSize?: number
1600
+ /** (server-side) maximum number of awaited by-term queries for sample data */
1601
+ maxConcurrentQueries?: number
1602
+ /** (client-side) maximum number of terms that should be submitted in one fetch request in TermdbVocab.getAnnotatedSampleData() */
1603
+ maxAnnoTermsPerClientRequest?: number
1604
+ /** option to disable mayAddDataAvailability() based on request path and query parameters */
1605
+ disableAssayAvailability?: (path: string, query: { [key: string]: any }) => boolean
1600
1606
  //terms are shown in the dictionary based on term and user role.
1601
1607
  isTermVisible?: (clientAuthResult: any, ids: string) => boolean
1602
1608
  hiddenIds?: string[]
@@ -9,23 +9,40 @@ export type RunChartRequest = {
9
9
  * runChart2Period: q.mode='discrete' (with bins) → multiple series by period.
10
10
  */
11
11
  xtw: { term: { id: string }; q?: { mode?: 'continuous' | 'discrete' }; $id?: string }
12
- /** term wrapper for y axis: { term, q } */
13
- ytw: { term: { id: string }; q?: { mode?: string }; $id?: string }
14
- aggregation: 'median'
12
+ /** term wrapper for y axis: { term, q }. When omitted, chart renders as frequency (count per time bucket). */
13
+ ytw?: { term: { id: string }; q?: { mode?: string }; $id?: string }
14
+ aggregation?: 'median'
15
+ /** When true (frequency mode only), series Y values are cumulative counts. */
16
+ showCumulativeFrequency?: boolean
15
17
  filter?: any
16
18
  __protected__?: any // auth token for accessing protected data
17
19
  }
18
20
 
19
- export type RunChartResponse = {
20
- status: 'ok' | 'error'
21
+ export type RunChartSeries = {
22
+ /** period/series identifier */
23
+ seriesId?: string
24
+ /** calculated Y median value for this curve */
25
+ median: number
26
+ points: Point[]
27
+ }
28
+
29
+ export type RunChartSuccessResponse = {
30
+ status: 'ok'
21
31
  /** each series is one curve, with a median. a runchart may show 1 or multiple curves */
22
- series: {
23
- /** period/series identifier */
24
- seriesId?: string
25
- /** calculated Y median value for this curve */
26
- median: number
27
- points: Point[]
28
- }[]
32
+ series: RunChartSeries[]
33
+ }
34
+
35
+ export type RunChartErrorResponse = {
36
+ error: string
37
+ /** Always empty on error; present so response shape is consistent for clients/checkers. */
38
+ series: RunChartSeries[]
39
+ }
40
+
41
+ /** Discriminated union: server returns success shape on 200 or error shape with series: []. */
42
+ export type RunChartResponse = RunChartSuccessResponse | RunChartErrorResponse
43
+
44
+ export function isRunChartSuccess(r: RunChartResponse): r is RunChartSuccessResponse {
45
+ return 'status' in r && r.status === 'ok'
29
46
  }
30
47
 
31
48
  type Point = {
@@ -10,7 +10,7 @@ export type TermCollection = BaseTerm & {
10
10
  type: 'termCollection'
11
11
  // may be queried from backend, but should be available in frontend for termsetting edit menu
12
12
  /** the full list of term.ids that are available in this collection */
13
- termlst: string[]
13
+ termlst: BaseTerm[]
14
14
  numerators?: string[]
15
15
  newTvs?: boolean
16
16
  propsByTermId: {
@@ -22,7 +22,7 @@ export type TermCollection = BaseTerm & {
22
22
 
23
23
  export type RawTermCollection = TermCollection & {
24
24
  type?: 'termCollection'
25
- termlst: string[]
25
+ termlst: BaseTerm[]
26
26
  propsByTermId?: {
27
27
  [termId: string]: {
28
28
  [prop: string]: any