@sjcrh/proteinpaint-types 2.116.1-2 → 2.117.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.
@@ -102,8 +102,8 @@ var validPercentileRequest = (input) => {
102
102
  const $io24 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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) && $io4(input3.values)) && true;
103
103
  const $io25 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
104
104
  const $io26 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu8(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
105
- const $io27 = (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) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
106
- const $io28 = (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) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
105
+ const $io27 = (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) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
106
+ const $io28 = (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) && $io4(input3.values)) && true && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
107
107
  const $io29 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
108
108
  const $io30 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
109
109
  const $io31 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
@@ -1134,11 +1134,11 @@ var validPercentileRequest = (input) => {
1134
1134
  value: input3.values
1135
1135
  }), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1136
1136
  path: _path2 + ".groupsetting",
1137
- expected: "EnabledTermGroupSetting",
1137
+ expected: "(EnabledTermGroupSetting | __type.o1)",
1138
1138
  value: input3.groupsetting
1139
- })) && $vo6(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
1139
+ })) && $vu4(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
1140
1140
  path: _path2 + ".groupsetting",
1141
- expected: "EnabledTermGroupSetting",
1141
+ expected: "(EnabledTermGroupSetting | __type.o1)",
1142
1142
  value: input3.groupsetting
1143
1143
  }), "gene" === input3.kind || $report(_exceptionable2, {
1144
1144
  path: _path2 + ".kind",
@@ -1215,11 +1215,11 @@ var validPercentileRequest = (input) => {
1215
1215
  value: input3.values
1216
1216
  }), true, ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
1217
1217
  path: _path2 + ".groupsetting",
1218
- expected: "EnabledTermGroupSetting",
1218
+ expected: "(EnabledTermGroupSetting | __type.o1)",
1219
1219
  value: input3.groupsetting
1220
- })) && $vo6(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
1220
+ })) && $vu4(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
1221
1221
  path: _path2 + ".groupsetting",
1222
- expected: "EnabledTermGroupSetting",
1222
+ expected: "(EnabledTermGroupSetting | __type.o1)",
1223
1223
  value: input3.groupsetting
1224
1224
  }), "coord" === input3.kind || $report(_exceptionable2, {
1225
1225
  path: _path2 + ".kind",
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-CNR46KGX.js";
5
+ } from "./chunk-53UNFIIG.js";
6
6
  import "./chunk-CNSSF43V.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-I3U2T7HV.js";
5
+ } from "./chunk-JYO2T4HZ.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-KZIZMP7Y.js";
15
+ } from "./chunk-OL4OMJSP.js";
16
16
  import {
17
17
  termdbTopVariablyExpressedGenesPayload,
18
18
  validTermdbTopVariablyExpressedGenesRequest,
19
19
  validTermdbTopVariablyExpressedGenesResponse
20
- } from "./chunk-7GSVLBKZ.js";
20
+ } from "./chunk-ROPNHRVV.js";
21
21
  import {
22
22
  validViolinRequest,
23
23
  validViolinResponse,
24
24
  violinPayload
25
- } from "./chunk-ZPN2DV5E.js";
25
+ } from "./chunk-DL4UYYVE.js";
26
26
  import {
27
27
  tilePayload,
28
28
  validTileRequest,
@@ -42,7 +42,7 @@ import {
42
42
  percentilePayload,
43
43
  validPercentileRequest,
44
44
  validPercentileResponse
45
- } from "./chunk-EQGBEPDC.js";
45
+ } from "./chunk-T2CSA2MC.js";
46
46
  import {
47
47
  rootTermPayload,
48
48
  validRootTermRequest,
@@ -87,17 +87,17 @@ import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
89
89
  validBoxPlotResponse
90
- } from "./chunk-PTYGGJLG.js";
90
+ } from "./chunk-4U546XOJ.js";
91
91
  import {
92
92
  termdbCategoriesPayload,
93
93
  validCategoriesRequest,
94
94
  validCategoriesResponse
95
- } from "./chunk-C7DJDPLP.js";
95
+ } from "./chunk-JOGEIPHA.js";
96
96
  import {
97
97
  termdbClusterPayload,
98
98
  validTermdbClusterRequest,
99
99
  validTermdbClusterResponse
100
- } from "./chunk-NESPJ4GG.js";
100
+ } from "./chunk-J6SJ4M3S.js";
101
101
  import {
102
102
  termdbCohortSummaryPayload,
103
103
  validTermdbCohortSummaryRequest,
@@ -112,12 +112,12 @@ import {
112
112
  descrStatsPayload,
113
113
  validDescrStatsRequest,
114
114
  validDescrStatsResponse
115
- } from "./chunk-GS37E7DB.js";
115
+ } from "./chunk-KG7UDG6M.js";
116
116
  import {
117
117
  numericCategoriesPayload,
118
118
  validNumericCategoriesRequest,
119
119
  validNumericCategoriesResponse
120
- } from "./chunk-M26XQDA4.js";
120
+ } from "./chunk-GI4NNB34.js";
121
121
  import {
122
122
  hicstatPayload,
123
123
  validHicstatRequest,
@@ -197,7 +197,7 @@ import {
197
197
  brainImagingPayload,
198
198
  validBrainImagingRequest,
199
199
  validBrainImagingResponse
200
- } from "./chunk-KBTAXZM4.js";
200
+ } from "./chunk-GD3KAF6V.js";
201
201
  import {
202
202
  brainImagingSamplesPayload,
203
203
  validBrainImagingSamplesRequest,
@@ -212,7 +212,7 @@ import {
212
212
  CorrelationVolcanoPayload,
213
213
  validCorrelationVolcanoRequest,
214
214
  validCorrelationVolcanoResponse
215
- } from "./chunk-CNR46KGX.js";
215
+ } from "./chunk-53UNFIIG.js";
216
216
  import {
217
217
  datasetPayload,
218
218
  validDatasetRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-PTYGGJLG.js";
5
+ } from "./chunk-4U546XOJ.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-C7DJDPLP.js";
5
+ } from "./chunk-JOGEIPHA.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-NESPJ4GG.js";
5
+ } from "./chunk-J6SJ4M3S.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-GS37E7DB.js";
5
+ } from "./chunk-KG7UDG6M.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-M26XQDA4.js";
5
+ } from "./chunk-GI4NNB34.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-EQGBEPDC.js";
5
+ } from "./chunk-T2CSA2MC.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-I3U2T7HV.js";
5
+ } from "./chunk-JYO2T4HZ.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-KZIZMP7Y.js";
5
+ } from "./chunk-OL4OMJSP.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-7GSVLBKZ.js";
5
+ } from "./chunk-ROPNHRVV.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-ZPN2DV5E.js";
5
+ } from "./chunk-DL4UYYVE.js";
6
6
  import "./chunk-CNSSF43V.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.116.1-2",
3
+ "version": "2.117.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
@@ -1370,6 +1370,8 @@ keep this setting here for reason of:
1370
1370
  /** colors for a category multivalues */
1371
1371
  [index: string]: { [index: string]: string }
1372
1372
  }
1373
+ //terms that are not shown in the dictionary tree unless the user is admin. If there is no authentication the terms listes are always hidden
1374
+ hiddenTermIds?: string[]
1373
1375
  }
1374
1376
 
1375
1377
  type SampleType = {
@@ -1477,6 +1479,7 @@ export type Cohort = {
1477
1479
  /** if present, supplies premade scatter plots */
1478
1480
  scatterplots?: Scatterplots
1479
1481
  termdb: Termdb
1482
+ hiddenTermIds?: string[]
1480
1483
  }
1481
1484
 
1482
1485
  /** Customizations specific to the mass nav component */
@@ -1,12 +1,4 @@
1
- import type {
2
- MinBaseQ,
3
- BaseTerm,
4
- EnabledTermGroupSetting,
5
- BaseTW,
6
- GroupSettingQ,
7
- ValuesQ,
8
- TermValues
9
- } from '../index.ts'
1
+ import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, GroupSettingQ, ValuesQ, TermValues } from '../index.ts'
10
2
  import type { TermSettingInstance } from '../termsetting.ts'
11
3
 
12
4
  export type GeneVariantBaseQ = MinBaseQ & {
@@ -23,7 +15,7 @@ export type GeneVariantQ = GeneVariantBaseQ & (ValuesQ | GroupSettingQ)
23
15
 
24
16
  type GeneVariantBaseTerm = BaseTerm & {
25
17
  type: 'geneVariant'
26
- groupsetting: EnabledTermGroupSetting
18
+ groupsetting: TermGroupSetting
27
19
  }
28
20
 
29
21
  export type GeneVariantGeneTerm = GeneVariantBaseTerm & {
package/src/vocab.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { TermWrapper } from './terms/tw.ts'
2
- import { Term } from './terms/term.ts'
3
- import { Filter } from './filter.ts'
4
- import { UseCase } from './termsetting.ts'
1
+ import type { TermWrapper } from './terms/tw.ts'
2
+ import type { Term } from './terms/term.ts'
3
+ import type { Filter } from './filter.ts'
4
+ import type { UseCase } from './termsetting.ts'
5
5
 
6
6
  /*
7
7
  --------EXPORTED--------
@@ -16,7 +16,7 @@ export type VocabApi = {
16
16
  //Methods
17
17
  cacheTermQ: (term: Term, q: any) => any
18
18
  findTerm: (f: string, activeCohort: number, usecase: UseCase, x: string) => { lst: Term[] }
19
- getCategories: (term: Term, filer: Filter, body?: any) => any
19
+ getCategories: (term: Term, filter?: Filter, body?: any) => any
20
20
  getCustomTermQLst: (f: Term) => any
21
21
  getPercentile: (term_id: string | number, percentile_lst: number[], filter?: Filter) => any
22
22
  getterm: (f: any) => Term