@sjcrh/proteinpaint-types 2.132.0 → 2.132.1-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.
@@ -452,9 +452,10 @@ var validRunGRIN2Request = (input) => {
452
452
  var validRunGRIN2Response = (input) => {
453
453
  const errors = [];
454
454
  const __is = (input2) => {
455
- const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult));
455
+ const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult)) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing));
456
456
  const $io1 = (input3) => Array.isArray(input3.successful_data) && input3.successful_data.every((elem) => Array.isArray(elem) && elem.every((elem2) => "string" === typeof elem2)) && (Array.isArray(input3.failed_files) && input3.failed_files.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && ("object" === typeof input3.summary && null !== input3.summary && ("number" === typeof input3.summary.total_files && "number" === typeof input3.summary.successful_files && "number" === typeof input3.summary.failed_files));
457
457
  const $io2 = (input3) => "string" === typeof input3.case_id && "string" === typeof input3.data_type && "string" === typeof input3.error_type && "string" === typeof input3.error_details && "number" === typeof input3.attempts_made;
458
+ const $io4 = (input3) => "number" === typeof input3.rustProcessingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
458
459
  return "object" === typeof input2 && null !== input2 && $io0(input2);
459
460
  };
460
461
  if (false === __is(input)) {
@@ -480,6 +481,14 @@ var validRunGRIN2Response = (input) => {
480
481
  path: _path2 + ".rustResult",
481
482
  expected: "(RustGRIN2Result | undefined)",
482
483
  value: input3.rustResult
484
+ }), void 0 === input3.timing || ("object" === typeof input3.timing && null !== input3.timing || $report(_exceptionable2, {
485
+ path: _path2 + ".timing",
486
+ expected: "(__type | undefined)",
487
+ value: input3.timing
488
+ })) && $vo4(input3.timing, _path2 + ".timing", _exceptionable2) || $report(_exceptionable2, {
489
+ path: _path2 + ".timing",
490
+ expected: "(__type | undefined)",
491
+ value: input3.timing
483
492
  })].every((flag) => flag);
484
493
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.successful_data) || $report(_exceptionable2, {
485
494
  path: _path2 + ".successful_data",
@@ -560,6 +569,19 @@ var validRunGRIN2Response = (input) => {
560
569
  expected: "number",
561
570
  value: input3.failed_files
562
571
  })].every((flag) => flag);
572
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.rustProcessingTime || $report(_exceptionable2, {
573
+ path: _path2 + ".rustProcessingTime",
574
+ expected: "number",
575
+ value: input3.rustProcessingTime
576
+ }), "number" === typeof input3.grin2Time || $report(_exceptionable2, {
577
+ path: _path2 + ".grin2Time",
578
+ expected: "number",
579
+ value: input3.grin2Time
580
+ }), "number" === typeof input3.totalTime || $report(_exceptionable2, {
581
+ path: _path2 + ".totalTime",
582
+ expected: "number",
583
+ value: input3.totalTime
584
+ })].every((flag) => flag);
563
585
  return ("object" === typeof input2 && null !== input2 || $report(true, {
564
586
  path: _path + "",
565
587
  expected: "RunGRIN2Response",
@@ -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 && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(input3.filter)) && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
61
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(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 && ("CatTWValues" === input3.type || "CatTWPredefinedGS" === input3.type || "CatTWCustomGS" === input3.type) && ("object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) && $iu6(input3.q)) && ("object" === typeof input3.term && null !== input3.term && $io15(input3.term));
63
63
  const $io2 = (input3) => Object.keys(input3).every((key) => {
64
64
  const value = input3[key];
@@ -356,7 +356,7 @@ var validCategoriesRequest = (input) => {
356
356
  path: _path2 + ".filter",
357
357
  expected: "(Filter | undefined)",
358
358
  value: input3.filter
359
- }), void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
359
+ }), true, void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
360
360
  path: _path2 + ".currentGeneNames",
361
361
  expected: "(Array<string> | undefined)",
362
362
  value: input3.currentGeneNames
package/dist/gdc.grin2.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  validGdcGRIN2listResponse,
6
6
  validRunGRIN2Request,
7
7
  validRunGRIN2Response
8
- } from "./chunk-45AF7AQH.js";
8
+ } from "./chunk-7YC2GEEO.js";
9
9
  import "./chunk-CNSSF43V.js";
10
10
  export {
11
11
  gdcGRIN2listPayload,
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ import {
112
112
  termdbCategoriesPayload,
113
113
  validCategoriesRequest,
114
114
  validCategoriesResponse
115
- } from "./chunk-3VVALC2P.js";
115
+ } from "./chunk-QHN3YO6Q.js";
116
116
  import {
117
117
  termdbClusterPayload,
118
118
  validTermdbClusterRequest,
@@ -175,7 +175,7 @@ import {
175
175
  validGdcGRIN2listResponse,
176
176
  validRunGRIN2Request,
177
177
  validRunGRIN2Response
178
- } from "./chunk-45AF7AQH.js";
178
+ } from "./chunk-7YC2GEEO.js";
179
179
  import {
180
180
  gdcMafPayload,
181
181
  validGdcMafRequest,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-3VVALC2P.js";
5
+ } from "./chunk-QHN3YO6Q.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.132.0",
3
+ "version": "2.132.1-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
@@ -910,6 +910,13 @@ type Mds3Queries = {
910
910
  snvindel?: SnvIndelQuery
911
911
  svfusion?: SvFusion
912
912
  cnv?: CnvSegmentQuery
913
+ /** gene-level cnv, only available on gdc; query by gene symbol, ds must define getter
914
+ */
915
+ geneCnv?: {
916
+ bygene: {
917
+ get: (q: any) => any
918
+ }
919
+ }
913
920
  trackLst?: TrackLst
914
921
  ld?: LdQuery
915
922
  defaultCoord?: string
@@ -928,11 +935,6 @@ type Mds3Queries = {
928
935
  file: string
929
936
  }
930
937
  singleCell?: SingleCellQuery
931
- geneCnv?: {
932
- bygene?: {
933
- gdcapi: true
934
- }
935
- }
936
938
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
937
939
  singleSampleGbtk?: SingleSampleGbtk
938
940
  /** depreciated. replaced by WSImages */
@@ -2034,6 +2036,23 @@ export type Mds3 = BaseMds & {
2034
2036
  validate_filter0?: (f: any) => void
2035
2037
  ssm2canonicalisoform?: GdcApi
2036
2038
  variant2samples?: Variant2Samples
2039
+ /** disables switching to genomic mode for the protein view mds3 tk of this ds
2040
+ works by preventing block gmmode menu from showing "genomic" option
2041
+ is only passed via mds3 adhoc ds copy, but not termdbConfig
2042
+ for lack of a better place to put this attribute, as it's not appropriate to put in queries.snvindel{}
2043
+ as snvindel is optional so even a cnv-only ds can disable genomic mode
2044
+ */
2045
+ noGenomicMode4lollipopTk?: true
2046
+ /** if ds.queries{} exists, server launch adds this convenient getter to wrap multiple queries data types
2047
+ */
2048
+ mayGetGeneVariantData?: (f: any) => void
2049
+ /** optional key-value pairs to pass to genomic queries getter when called in mayGetGeneVariantData()
2050
+ - only used in mayGetGeneVariantData! not in mds3.load.js
2051
+ - for now only passed to snvindel.*.get and not yet other data types; add when needed
2052
+ the param contents will be assessed by ds specific getter
2053
+ this is serverside only, not passed to termdbConfig
2054
+ */
2055
+ mayGetGeneVariantDataParam?: { [key: string]: any }
2037
2056
  // !!! TODO: improve these type definitions below !!!
2038
2057
  getHostHeaders?: (q?: any) => any
2039
2058
  serverconfigFeatures?: any
@@ -160,8 +160,17 @@ export type RunGRIN2Response = {
160
160
  download?: any
161
161
  /** Table of top genes indentified by analysis */
162
162
  topGeneTable?: any
163
- /** Data from Rust for making the failed files div */
163
+ /** Data from Rust for making the analysis summary div */
164
164
  rustResult?: RustGRIN2Result
165
+ /** Timing info from nodejs */
166
+ timing?: {
167
+ /** Time taken to run Rust processing */
168
+ rustProcessingTime: number
169
+ /** Time taken to run GRIN2 processing */
170
+ grin2Time: number
171
+ /** Total time taken for the entire run */
172
+ totalTime: number
173
+ }
165
174
  }
166
175
  /**
167
176
  * Route payload definitions for type checking
@@ -9,6 +9,7 @@ export type CategoriesRequest = {
9
9
  /** termwrapper object */
10
10
  tw: TermWrapper
11
11
  filter?: Filter
12
+ filter0?: any
12
13
  /** quick fix only for gdc */
13
14
  currentGeneNames?: string[]
14
15
  /** optional property added by mds3 tk, to limit to cases mutated in this region */
package/src/vocab.ts CHANGED
@@ -13,6 +13,7 @@ VocabApi
13
13
 
14
14
  export type VocabApi = {
15
15
  termdbConfig: any
16
+ state?: any
16
17
  //Methods
17
18
  cacheTermQ: (term: Term, q: any) => any
18
19
  findTerm: (f: string, activeCohort: number, usecase: UseCase, x: string) => { lst: Term[] }