@sjcrh/proteinpaint-types 2.139.0 → 2.140.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.
@@ -20,15 +20,24 @@ var GRIN2Payload = {
20
20
  var validGRIN2Request = (input) => {
21
21
  const errors = [];
22
22
  const __is = (input2) => {
23
+ const $join = import_typia.createValidate.join;
23
24
  const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions));
24
25
  const $io1 = (input3) => (void 0 === input3.minTotalDepth || "number" === typeof input3.minTotalDepth) && (void 0 === input3.minAltAlleleCount || "number" === typeof input3.minAltAlleleCount) && (void 0 === input3.consequences || Array.isArray(input3.consequences) && input3.consequences.every((elem) => "string" === typeof elem)) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator);
25
- const $io2 = (input3) => (void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold) && (void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold) && (void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength) && (void 0 === input3.minSegLength || "number" === typeof input3.minSegLength) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator);
26
- const $io3 = (input3) => (void 0 === input3.fusionTypes || Array.isArray(input3.fusionTypes) && input3.fusionTypes.every((elem) => "gene-gene" === elem || "gene-intergenic" === elem || "readthrough" === elem)) && (void 0 === input3.minConfidence || "number" === typeof input3.minConfidence);
26
+ const $io2 = (input3) => (void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold) && (void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold) && (void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator);
27
+ const $io3 = (input3) => Object.keys(input3).every((key) => {
28
+ const value = input3[key];
29
+ if (void 0 === value)
30
+ return true;
31
+ if (RegExp(/(.*)/).test(key))
32
+ return true;
33
+ return true;
34
+ });
27
35
  return "object" === typeof input2 && null !== input2 && $io0(input2);
28
36
  };
29
37
  if (false === __is(input)) {
30
38
  const $report = import_typia.createValidate.report(errors);
31
39
  ((input2, _path, _exceptionable = true) => {
40
+ const $join = import_typia.createValidate.join;
32
41
  const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
33
42
  path: _path2 + ".genome",
34
43
  expected: "string",
@@ -99,32 +108,19 @@ var validGRIN2Request = (input) => {
99
108
  path: _path2 + ".maxSegLength",
100
109
  expected: "(number | undefined)",
101
110
  value: input3.maxSegLength
102
- }), void 0 === input3.minSegLength || "number" === typeof input3.minSegLength || $report(_exceptionable2, {
103
- path: _path2 + ".minSegLength",
104
- expected: "(number | undefined)",
105
- value: input3.minSegLength
106
111
  }), void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator || $report(_exceptionable2, {
107
112
  path: _path2 + ".hyperMutator",
108
113
  expected: "(number | undefined)",
109
114
  value: input3.hyperMutator
110
115
  })].every((flag) => flag);
111
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.fusionTypes || (Array.isArray(input3.fusionTypes) || $report(_exceptionable2, {
112
- path: _path2 + ".fusionTypes",
113
- expected: '(Array<"gene-gene" | "gene-intergenic" | "readthrough"> | undefined)',
114
- value: input3.fusionTypes
115
- })) && input3.fusionTypes.map((elem, _index2) => "gene-gene" === elem || "gene-intergenic" === elem || "readthrough" === elem || $report(_exceptionable2, {
116
- path: _path2 + ".fusionTypes[" + _index2 + "]",
117
- expected: '("gene-gene" | "gene-intergenic" | "readthrough")',
118
- value: elem
119
- })).every((flag) => flag) || $report(_exceptionable2, {
120
- path: _path2 + ".fusionTypes",
121
- expected: '(Array<"gene-gene" | "gene-intergenic" | "readthrough"> | undefined)',
122
- value: input3.fusionTypes
123
- }), void 0 === input3.minConfidence || "number" === typeof input3.minConfidence || $report(_exceptionable2, {
124
- path: _path2 + ".minConfidence",
125
- expected: "(number | undefined)",
126
- value: input3.minConfidence
127
- })].every((flag) => flag);
116
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
117
+ const value = input3[key];
118
+ if (void 0 === value)
119
+ return true;
120
+ if (RegExp(/(.*)/).test(key))
121
+ return true;
122
+ return true;
123
+ }).every((flag) => flag)].every((flag) => flag);
128
124
  return ("object" === typeof input2 && null !== input2 || $report(true, {
129
125
  path: _path + "",
130
126
  expected: "GRIN2Request",
package/dist/grin2.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  GRIN2Payload,
3
3
  validGRIN2Request,
4
4
  validGRIN2Response
5
- } from "./chunk-VHEL5P6L.js";
5
+ } from "./chunk-WMI4VKU3.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  GRIN2Payload,
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ import {
172
172
  GRIN2Payload,
173
173
  validGRIN2Request,
174
174
  validGRIN2Response
175
- } from "./chunk-VHEL5P6L.js";
175
+ } from "./chunk-WMI4VKU3.js";
176
176
  import {
177
177
  healthcheckPayload,
178
178
  validHealthCheckRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.139.0",
3
+ "version": "2.140.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
@@ -1592,7 +1592,7 @@ type Tw = {
1592
1592
  /** short hand for using either id (dict term) or term{} */
1593
1593
  id?: string
1594
1594
  term?: object
1595
- q: unknown
1595
+ q?: unknown
1596
1596
  /** quick fix for generating URL links in mds3 tk sample table! adhoc design. may move to tw.term.baseURL and not specific to mds3 tk
1597
1597
  */
1598
1598
  baseURL?: string
@@ -18,7 +18,7 @@ export type GRIN2Request = {
18
18
  dslabel: string
19
19
 
20
20
  /** Filter from existing PP infrastructure */
21
- filter: any // Filter object passed to get_samples(filter, ds)
21
+ filter?: any // Filter object passed to get_samples(filter, ds)
22
22
 
23
23
  /** Options for filtering SNV/indel file content */
24
24
  snvindelOptions?: {
@@ -40,18 +40,14 @@ export type GRIN2Request = {
40
40
  gainThreshold?: number // Default: 0.3
41
41
  /** Maximum segment length to include (0 = no filter) */
42
42
  maxSegLength?: number // Default: 0
43
- /** Minimum segment length to include (0 = no filter) */
44
- minSegLength?: number // Default: 0
45
43
  /** Hypermutator max cut off for CNVs per case */
46
44
  hyperMutator?: number // Default: 500
47
45
  }
48
46
 
49
47
  /** Options for filtering fusion file content */
50
48
  fusionOptions?: {
51
- /** Filter by fusion type */
52
- fusionTypes?: ('gene-gene' | 'gene-intergenic' | 'readthrough')[]
53
- /** Minimum confidence score (0-1) */
54
- minConfidence?: number // Default: 0.7
49
+ /** Placeholder - fusion filtering options to be implemented */
50
+ [key: string]: any
55
51
  }
56
52
  }
57
53
 
@@ -1,4 +1,4 @@
1
- import type { TermWrapper } from './tw.ts'
1
+ import type { TermWrapper } from './updated-types.ts'
2
2
  import type { NumericTerm, NumericQ } from './numeric.ts'
3
3
  import type { TermSettingInstance } from '../termsetting.ts'
4
4
 
@@ -18,6 +18,7 @@ export type GeneExpressionQ = NumericQ & {
18
18
  export type GeneExpressionTW = TermWrapper & {
19
19
  q: GeneExpressionQ
20
20
  term: GeneExpressionTerm
21
+ type: 'NumTWRegularBin' | 'NumTWCustomBin' | 'NumTWCont' | 'NumTWSpline'
21
22
  }
22
23
 
23
24
  export type GeneExpressionTerm = NumericTerm & {