@sjcrh/proteinpaint-types 2.160.1-0 → 2.163.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.
@@ -207,7 +207,7 @@ var validGRIN2Response = (input) => {
207
207
  const $io5 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io6(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io7(elem2))));
208
208
  const $io6 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
209
209
  const $io7 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
210
- const $io8 = (input3) => "number" === typeof input3.processingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
210
+ const $io8 = (input3) => "string" === typeof input3.processingTime && "string" === typeof input3.grin2Time && "string" === typeof input3.plottingTime && "string" === typeof input3.totalTime;
211
211
  const $io9 = (input3) => (void 0 === input3.totalSamples || "number" === typeof input3.totalSamples) && (void 0 === input3.processedSamples || "number" === typeof input3.processedSamples) && (void 0 === input3.failedSamples || "number" === typeof input3.failedSamples) && (void 0 === input3.failedFiles || Array.isArray(input3.failedFiles) && input3.failedFiles.every((elem) => "object" === typeof elem && null !== elem && $io10(elem))) && (void 0 === input3.totalLesions || "number" === typeof input3.totalLesions) && (void 0 === input3.processedLesions || "number" === typeof input3.processedLesions) && (void 0 === input3.unprocessedSamples || "number" === typeof input3.unprocessedSamples) && (void 0 === input3.lesionCounts || "object" === typeof input3.lesionCounts && null !== input3.lesionCounts && false === Array.isArray(input3.lesionCounts) && $io11(input3.lesionCounts));
212
212
  const $io10 = (input3) => "string" === typeof input3.sampleName && "string" === typeof input3.filePath && "string" === typeof input3.error;
213
213
  const $io11 = (input3) => (void 0 === input3.total || "number" === typeof input3.total) && (void 0 === input3.byType || "object" === typeof input3.byType && null !== input3.byType && false === Array.isArray(input3.byType) && $io12(input3.byType));
@@ -436,17 +436,21 @@ var validGRIN2Response = (input) => {
436
436
  expected: "(number | string)",
437
437
  value: input3.value
438
438
  })].every((flag) => flag);
439
- const $vo8 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.processingTime || $report(_exceptionable2, {
439
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.processingTime || $report(_exceptionable2, {
440
440
  path: _path2 + ".processingTime",
441
- expected: "number",
441
+ expected: "string",
442
442
  value: input3.processingTime
443
- }), "number" === typeof input3.grin2Time || $report(_exceptionable2, {
443
+ }), "string" === typeof input3.grin2Time || $report(_exceptionable2, {
444
444
  path: _path2 + ".grin2Time",
445
- expected: "number",
445
+ expected: "string",
446
446
  value: input3.grin2Time
447
- }), "number" === typeof input3.totalTime || $report(_exceptionable2, {
447
+ }), "string" === typeof input3.plottingTime || $report(_exceptionable2, {
448
+ path: _path2 + ".plottingTime",
449
+ expected: "string",
450
+ value: input3.plottingTime
451
+ }), "string" === typeof input3.totalTime || $report(_exceptionable2, {
448
452
  path: _path2 + ".totalTime",
449
- expected: "number",
453
+ expected: "string",
450
454
  value: input3.totalTime
451
455
  })].every((flag) => flag);
452
456
  const $vo9 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.totalSamples || "number" === typeof input3.totalSamples || $report(_exceptionable2, {
package/dist/grin2.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  GRIN2Payload,
3
3
  validGRIN2Request,
4
4
  validGRIN2Response
5
- } from "./chunk-D37D752M.js";
5
+ } from "./chunk-VQOCGHP2.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  GRIN2Payload,
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ import {
217
217
  GRIN2Payload,
218
218
  validGRIN2Request,
219
219
  validGRIN2Response
220
- } from "./chunk-D37D752M.js";
220
+ } from "./chunk-VQOCGHP2.js";
221
221
  import {
222
222
  healthcheckPayload,
223
223
  validHealthCheckRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.160.1-0",
3
+ "version": "2.163.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
@@ -1405,6 +1405,12 @@ export type Termdb = {
1405
1405
  }
1406
1406
  /** if true, backend is allowed to send sample names to client in charts */
1407
1407
  displaySampleIds?: (clientAuthResult: any) => boolean
1408
+ /** ds-supplied async callback to build dictionary
1409
+ argument: dataset object
1410
+ sets termdb.q{}
1411
+ no return
1412
+ */
1413
+ buildDictionary?: (ds: any) => void
1408
1414
  converSampleIds?: boolean
1409
1415
  alwaysShowBranchTerms?: boolean
1410
1416
  minimumSampleAllowed4filter?: number
@@ -1781,7 +1787,6 @@ export type Mds = BaseMds & {
1781
1787
  cohort?: any
1782
1788
  queries?: any
1783
1789
  mutationAttribute?: any
1784
- dbFile?: string
1785
1790
  version?: { label: string; link: string }
1786
1791
  gene2mutcount?: any
1787
1792
  locusAttribute?: any
@@ -148,11 +148,13 @@ export type GRIN2Response = {
148
148
  /** Timing info for the analysis */
149
149
  timing?: {
150
150
  /** Time taken to run data processing */
151
- processingTime: number
151
+ processingTime: string
152
152
  /** Time taken to run GRIN2 processing */
153
- grin2Time: number
153
+ grin2Time: string
154
+ /** Time taken to run Manhattan plot generation */
155
+ plottingTime: string
154
156
  /** Total time taken for the entire run */
155
- totalTime: number
157
+ totalTime: string
156
158
  }
157
159
  /** Detailed processing summary */
158
160
  processingSummary?: {