@sjcrh/proteinpaint-types 2.170.6 → 2.170.10

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.
@@ -59,7 +59,7 @@ var validViolinRequest = (input) => {
59
59
  const errors = [];
60
60
  const __is = (input2) => {
61
61
  const $join = import_typia.createValidate.join;
62
- const $io0 = (input3) => "number" === typeof input3.axisHeight && (Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && "string" === typeof input3.datasymbol && "number" === typeof input3.devicePixelRatio && true && true && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "string" === typeof input3.genome && "boolean" === typeof input3.isKDE && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "number" === typeof input3.radius && "number" === typeof input3.rightMargin && true && "number" === typeof input3.strokeWidth && "number" === typeof input3.svgw && "number" === typeof input3.ticks && true && "string" === typeof input3.unit && true;
62
+ const $io0 = (input3) => "number" === typeof input3.axisHeight && (Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && "string" === typeof input3.datasymbol && "number" === typeof input3.devicePixelRatio && true && true && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "string" === typeof input3.genome && "boolean" === typeof input3.isKDE && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "number" === typeof input3.radius && "number" === typeof input3.rightMargin && true && "number" === typeof input3.strokeWidth && "number" === typeof input3.svgw && "number" === typeof input3.ticks && true && "string" === typeof input3.unit;
63
63
  const $io1 = (input3) => "tvslst" === input3.type && "boolean" === typeof input3["in"] && "string" === typeof input3.join && (void 0 === input3.tag || "string" === typeof input3.tag) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $iu0(elem)));
64
64
  const $io2 = (input3) => "tvs" === input3.type && ("object" === typeof input3.tvs && null !== input3.tvs && $iu4(input3.tvs));
65
65
  const $io3 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io4(input3.term)) && (void 0 === input3.groupset_label || "string" === typeof input3.groupset_label) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io6(elem)));
@@ -282,7 +282,7 @@ var validViolinRequest = (input) => {
282
282
  path: _path2 + ".unit",
283
283
  expected: "string",
284
284
  value: input3.unit
285
- }), true].every((flag) => flag);
285
+ })].every((flag) => flag);
286
286
  const $vo1 = (input3, _path2, _exceptionable2 = true) => ["tvslst" === input3.type || $report(_exceptionable2, {
287
287
  path: _path2 + ".type",
288
288
  expected: '"tvslst"',
@@ -58,7 +58,7 @@ var validDescrStatsRequest = (input) => {
58
58
  const errors = [];
59
59
  const __is = (input2) => {
60
60
  const $join = import_typia.createValidate.join;
61
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw)) && (void 0 === input3.logScale || "boolean" === typeof input3.logScale) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && true;
61
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw)) && (void 0 === input3.logScale || "boolean" === typeof input3.logScale) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true;
62
62
  const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("object" === typeof input3.term && null !== input3.term && $iu7(input3.term)) && ("object" === typeof input3.q && null !== input3.q && $io45(input3.q)) && "QualTWValues" === input3.type;
63
63
  const $io2 = (input3) => Object.keys(input3).every((key) => {
64
64
  const value = input3[key];
@@ -341,7 +341,7 @@ var validDescrStatsRequest = (input) => {
341
341
  path: _path2 + ".filter",
342
342
  expected: "(Filter | undefined)",
343
343
  value: input3.filter
344
- }), true, true].every((flag) => flag);
344
+ }), true].every((flag) => flag);
345
345
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
346
346
  path: _path2 + ".id",
347
347
  expected: "(string | undefined)",
@@ -73,7 +73,7 @@ var validBoxPlotRequest = (input) => {
73
73
  const errors = [];
74
74
  const __is = (input2) => {
75
75
  const $join = import_typia.createValidate.join;
76
- const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.isLogScale && "boolean" === typeof input3.orderByMedian && (void 0 === input3.removeOutliers || "boolean" === typeof input3.removeOutliers) && (void 0 === input3.showAssocTests || "boolean" === typeof input3.showAssocTests) && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.divideTw || "object" === typeof input3.divideTw && null !== input3.divideTw && $iu6(input3.divideTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && true;
76
+ const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.isLogScale && "boolean" === typeof input3.orderByMedian && (void 0 === input3.removeOutliers || "boolean" === typeof input3.removeOutliers) && (void 0 === input3.showAssocTests || "boolean" === typeof input3.showAssocTests) && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.divideTw || "object" === typeof input3.divideTw && null !== input3.divideTw && $iu6(input3.divideTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true;
77
77
  const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("object" === typeof input3.term && null !== input3.term && $iu7(input3.term)) && ("object" === typeof input3.q && null !== input3.q && $io45(input3.q)) && "QualTWValues" === input3.type;
78
78
  const $io2 = (input3) => Object.keys(input3).every((key) => {
79
79
  const value = input3[key];
@@ -380,7 +380,7 @@ var validBoxPlotRequest = (input) => {
380
380
  path: _path2 + ".filter",
381
381
  expected: "(Filter | undefined)",
382
382
  value: input3.filter
383
- }), true, true].every((flag) => flag);
383
+ }), true].every((flag) => flag);
384
384
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
385
385
  path: _path2 + ".id",
386
386
  expected: "(string | undefined)",
@@ -20,7 +20,7 @@ var termdbSampleScatterPayload = {
20
20
  var validTermdbSampleScatterRequest = (input) => {
21
21
  const errors = [];
22
22
  const __is = (input2) => {
23
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && (void 0 === input3.chartType || "string" === typeof input3.chartType) && true;
23
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && (void 0 === input3.chartType || "string" === typeof input3.chartType) && true && true && true;
24
24
  return "object" === typeof input2 && null !== input2 && $io0(input2);
25
25
  };
26
26
  if (false === __is(input)) {
@@ -46,7 +46,7 @@ var validTermdbSampleScatterRequest = (input) => {
46
46
  path: _path2 + ".chartType",
47
47
  expected: "(string | undefined)",
48
48
  value: input3.chartType
49
- }), true].every((flag) => flag);
49
+ }), true, true, true].every((flag) => flag);
50
50
  return ("object" === typeof input2 && null !== input2 || $report(true, {
51
51
  path: _path + "",
52
52
  expected: "TermdbSampleScatterRequest",
@@ -58,7 +58,7 @@ var validCategoriesRequest = (input) => {
58
58
  const errors = [];
59
59
  const __is = (input2) => {
60
60
  const $join = import_typia.createValidate.join;
61
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true && (void 0 === input3.__protected__ || "object" === typeof input3.__protected__ && null !== input3.__protected__ && false === Array.isArray(input3.__protected__) && $io80(input3.__protected__));
61
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
62
62
  const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("object" === typeof input3.term && null !== input3.term && $iu7(input3.term)) && ("object" === typeof input3.q && null !== input3.q && $io45(input3.q)) && "QualTWValues" === input3.type;
63
63
  const $io2 = (input3) => Object.keys(input3).every((key) => {
64
64
  const value = input3[key];
@@ -161,7 +161,6 @@ var validCategoriesRequest = (input) => {
161
161
  const $io77 = (input3) => "string" === typeof input3.k && ("string" === typeof input3.v || "number" === typeof input3.v);
162
162
  const $io78 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && "TermCollectionTWValues" === input3.type && ("object" === typeof input3.term && null !== input3.term && $io42(input3.term)) && ("object" === typeof input3.q && null !== input3.q && $io79(input3.q));
163
163
  const $io79 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io15(input3.hiddenValues)) && (void 0 === input3.isAtomic || true === input3.isAtomic) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.reuseId || "string" === typeof input3.reuseId) && "continuous" === input3.mode && "values" === input3.type && (Array.isArray(input3.lst) && input3.lst.every((elem) => "string" === typeof elem)) && (void 0 === input3.numerators || Array.isArray(input3.numerators) && input3.numerators.every((elem) => "string" === typeof elem));
164
- const $io80 = (input3) => (void 0 === input3.sessionId || "string" === typeof input3.sessionId) && true && true;
165
164
  const $iu0 = (input3) => (() => {
166
165
  if ("tvslst" === input3.type)
167
166
  return $io6(input3);
@@ -350,15 +349,7 @@ var validCategoriesRequest = (input) => {
350
349
  path: _path2 + ".currentGeneNames",
351
350
  expected: "(Array<string> | undefined)",
352
351
  value: input3.currentGeneNames
353
- }), true, void 0 === input3.__protected__ || ("object" === typeof input3.__protected__ && null !== input3.__protected__ && false === Array.isArray(input3.__protected__) || $report(_exceptionable2, {
354
- path: _path2 + ".__protected__",
355
- expected: "(__type.o9 | undefined)",
356
- value: input3.__protected__
357
- })) && $vo80(input3.__protected__, _path2 + ".__protected__", _exceptionable2) || $report(_exceptionable2, {
358
- path: _path2 + ".__protected__",
359
- expected: "(__type.o9 | undefined)",
360
- value: input3.__protected__
361
- })].every((flag) => flag);
352
+ }), true].every((flag) => flag);
362
353
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
363
354
  path: _path2 + ".id",
364
355
  expected: "(string | undefined)",
@@ -4278,11 +4269,6 @@ var validCategoriesRequest = (input) => {
4278
4269
  expected: "(Array<string> | undefined)",
4279
4270
  value: input3.numerators
4280
4271
  })].every((flag) => flag);
4281
- const $vo80 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.sessionId || "string" === typeof input3.sessionId || $report(_exceptionable2, {
4282
- path: _path2 + ".sessionId",
4283
- expected: "(string | undefined)",
4284
- value: input3.sessionId
4285
- }), true, true].every((flag) => flag);
4286
4272
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
4287
4273
  if ("tvslst" === input3.type)
4288
4274
  return $vo6(input3, _path2, _exceptionable2);
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  validViolinRequest,
18
18
  validViolinResponse,
19
19
  violinPayload
20
- } from "./chunk-E5YRM7EI.js";
20
+ } from "./chunk-4SVR3XVB.js";
21
21
  import {
22
22
  tilePayload,
23
23
  validTileRequest,
@@ -42,7 +42,7 @@ import {
42
42
  termdbSampleScatterPayload,
43
43
  validTermdbSampleScatterRequest,
44
44
  validTermdbSampleScatterResponse
45
- } from "./chunk-GDZUCVIB.js";
45
+ } from "./chunk-RXJNXOZC.js";
46
46
  import {
47
47
  termdbSingleSampleMutationPayload,
48
48
  validTermdbSingleSampleMutationRequest,
@@ -82,7 +82,7 @@ import {
82
82
  descrStatsPayload,
83
83
  validDescrStatsRequest,
84
84
  validDescrStatsResponse
85
- } from "./chunk-FZLBBARW.js";
85
+ } from "./chunk-IXV4U26B.js";
86
86
  import {
87
87
  FilterTermValuesPayload,
88
88
  validFilterTermValuesRequest,
@@ -132,12 +132,12 @@ import {
132
132
  boxplotPayload,
133
133
  validBoxPlotRequest,
134
134
  validBoxPlotResponse
135
- } from "./chunk-GVVWY7NO.js";
135
+ } from "./chunk-PFYCWMJO.js";
136
136
  import {
137
137
  termdbCategoriesPayload,
138
138
  validCategoriesRequest,
139
139
  validCategoriesResponse
140
- } from "./chunk-DC4BBXO5.js";
140
+ } from "./chunk-V43JPZ22.js";
141
141
  import {
142
142
  ChatPayload,
143
143
  validChatRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-GVVWY7NO.js";
5
+ } from "./chunk-PFYCWMJO.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-DC4BBXO5.js";
5
+ } from "./chunk-V43JPZ22.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-FZLBBARW.js";
5
+ } from "./chunk-IXV4U26B.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbSampleScatterPayload,
3
3
  validTermdbSampleScatterRequest,
4
4
  validTermdbSampleScatterResponse
5
- } from "./chunk-GDZUCVIB.js";
5
+ } from "./chunk-RXJNXOZC.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbSampleScatterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-E5YRM7EI.js";
5
+ } from "./chunk-4SVR3XVB.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.170.6",
3
+ "version": "2.170.10",
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
@@ -1588,6 +1588,10 @@ keep this setting here for reason of:
1588
1588
  }
1589
1589
  /** maximum number of genes to query in geneVariant gene set */
1590
1590
  maxGeneVariantGeneSetSize?: number
1591
+ /** (server-side) maximum number of awaited by-term queries for sample data */
1592
+ maxConcurrentQueries?: number
1593
+ /** (client-side) maximum number of terms that should be submitted in one fetch request in TermdbVocab.getAnnotatedSampleData() */
1594
+ maxAnnoTermsPerClientRequest?: number
1591
1595
  //terms are shown in the dictionary based on term and user role.
1592
1596
  isTermVisible?: (clientAuthResult: any, ids: string) => boolean
1593
1597
  hiddenIds?: string[]
package/src/index.ts CHANGED
@@ -34,6 +34,7 @@ export * from './routes/img.ts'
34
34
  export * from './routes/isoformlst.ts'
35
35
  export * from './routes/ntseq.ts'
36
36
  export * from './routes/pdomain.ts'
37
+ export * from './routes/routeApi.ts'
37
38
  export * from './routes/samplewsimages.ts'
38
39
  export * from './routes/saveWSIAnnotation.ts'
39
40
  export * from './routes/snp.ts'
@@ -23,7 +23,6 @@ export type BoxPlotRequest = {
23
23
  divideTw?: TermWrapper
24
24
  filter?: Filter
25
25
  filter0?: any
26
- __protected__: any
27
26
  }
28
27
 
29
28
  export type BoxPlotResponse = {
@@ -14,11 +14,6 @@ export type CategoriesRequest = {
14
14
  currentGeneNames?: string[]
15
15
  /** optional property added by mds3 tk, to limit to cases mutated in this region */
16
16
  rglst?: any
17
- __protected__?: {
18
- sessionId?: string
19
- clientAuthResults?: any
20
- ignoredTermIds?: any
21
- }
22
17
  }
23
18
 
24
19
  interface Entries {
@@ -16,7 +16,6 @@ export type DescrStatsRequest = {
16
16
  filter?: Filter
17
17
  /** optional gdc filter */
18
18
  filter0?: any
19
- __protected__?: any //reuse definition from termdb.matrix.ts!!!
20
19
  }
21
20
 
22
21
  export type DescrStats = {
@@ -14,7 +14,9 @@ export type TermdbSampleScatterRequest = {
14
14
  filter?: any
15
15
  filter0?: any
16
16
  chartType?: string
17
- __protected__?: any // auth token for accessing protected data
17
+ singleCellPlot?: any
18
+ colorColumn?: any
19
+ excludeOutliers?: any
18
20
  }
19
21
 
20
22
  export type ScatterSample = {
@@ -49,7 +49,6 @@ export type ViolinRequest = {
49
49
  tw: any
50
50
  /** A string representing a unit of measurement (e.g., 'log' for log scale) */
51
51
  unit: string
52
- __protected__: any
53
52
  }
54
53
 
55
54
  /** ?? TODO: Needs description */