@sjcrh/proteinpaint-types 2.126.0 → 2.128.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.
@@ -7,7 +7,7 @@ import {
7
7
  var import_typia = __toESM(require_lib(), 1);
8
8
 
9
9
  // src/routes/gdc.grin2.ts
10
- var gdcGRIN2Payload = {
10
+ var gdcGRIN2listPayload = {
11
11
  request: {
12
12
  typeId: "GdcGRIN2listRequest"
13
13
  },
@@ -260,7 +260,7 @@ var validRunGRIN2Request = (input) => {
260
260
  var validRunGRIN2Response = (input) => {
261
261
  const errors = [];
262
262
  const __is = (input2) => {
263
- const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.imagestring || "string" === typeof input3.imagestring) && true && true;
263
+ 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;
264
264
  return "object" === typeof input2 && null !== input2 && $io0(input2);
265
265
  };
266
266
  if (false === __is(input)) {
@@ -274,10 +274,10 @@ var validRunGRIN2Response = (input) => {
274
274
  path: _path2 + ".error",
275
275
  expected: "(string | undefined)",
276
276
  value: input3.error
277
- }), void 0 === input3.imagestring || "string" === typeof input3.imagestring || $report(_exceptionable2, {
278
- path: _path2 + ".imagestring",
277
+ }), void 0 === input3.pngImg || "string" === typeof input3.pngImg || $report(_exceptionable2, {
278
+ path: _path2 + ".pngImg",
279
279
  expected: "(string | undefined)",
280
- value: input3.imagestring
280
+ value: input3.pngImg
281
281
  }), true, true].every((flag) => flag);
282
282
  return ("object" === typeof input2 && null !== input2 || $report(true, {
283
283
  path: _path + "",
@@ -299,7 +299,7 @@ var validRunGRIN2Response = (input) => {
299
299
  };
300
300
 
301
301
  export {
302
- gdcGRIN2Payload,
302
+ gdcGRIN2listPayload,
303
303
  runGRIN2Payload,
304
304
  validGdcGRIN2listRequest,
305
305
  validGdcGRIN2listResponse,
@@ -21,7 +21,7 @@ var genesetEnrichmentPayload = {
21
21
  var validGenesetEnrichmentRequest = (input) => {
22
22
  const errors = [];
23
23
  const __is = (input2) => {
24
- const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem) && (Array.isArray(input3.fold_change) && input3.fold_change.every((elem) => "number" === typeof elem)) && "boolean" === typeof input3.filter_non_coding_genes && "string" === typeof input3.genome && "string" === typeof input3.geneSetGroup && (void 0 === input3.geneset_name || "string" === typeof input3.geneset_name) && (void 0 === input3.pickle_file || "string" === typeof input3.pickle_file) && "number" === typeof input3.num_permutations && ("blitzgsea" === input3.method || "cerno" === input3.method);
24
+ const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem) && (Array.isArray(input3.fold_change) && input3.fold_change.every((elem) => "number" === typeof elem)) && "boolean" === typeof input3.filter_non_coding_genes && "string" === typeof input3.genome && "string" === typeof input3.geneSetGroup && (void 0 === input3.geneset_name || "string" === typeof input3.geneset_name) && (void 0 === input3.pickle_file || "string" === typeof input3.pickle_file) && "number" === typeof input3.num_permutations;
25
25
  return "object" === typeof input2 && null !== input2 && $io0(input2);
26
26
  };
27
27
  if (false === __is(input)) {
@@ -75,10 +75,6 @@ var validGenesetEnrichmentRequest = (input) => {
75
75
  path: _path2 + ".num_permutations",
76
76
  expected: "number",
77
77
  value: input3.num_permutations
78
- }), "blitzgsea" === input3.method || "cerno" === input3.method || $report(_exceptionable2, {
79
- path: _path2 + ".method",
80
- expected: '("blitzgsea" | "cerno")',
81
- value: input3.method
82
78
  })].every((flag) => flag);
83
79
  return ("object" === typeof input2 && null !== input2 || $report(true, {
84
80
  path: _path + "",
package/dist/gdc.grin2.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
- gdcGRIN2Payload,
2
+ gdcGRIN2listPayload,
3
3
  runGRIN2Payload,
4
4
  validGdcGRIN2listRequest,
5
5
  validGdcGRIN2listResponse,
6
6
  validRunGRIN2Request,
7
7
  validRunGRIN2Response
8
- } from "./chunk-NWEXA2YB.js";
8
+ } from "./chunk-B2DJ3H7H.js";
9
9
  import "./chunk-CNSSF43V.js";
10
10
  export {
11
- gdcGRIN2Payload,
11
+ gdcGRIN2listPayload,
12
12
  runGRIN2Payload,
13
13
  validGdcGRIN2listRequest,
14
14
  validGdcGRIN2listResponse,
@@ -2,7 +2,7 @@ import {
2
2
  genesetEnrichmentPayload,
3
3
  validGenesetEnrichmentRequest,
4
4
  validGenesetEnrichmentResponse
5
- } from "./chunk-A3XJW6BZ.js";
5
+ } from "./chunk-XZAH6P4D.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  genesetEnrichmentPayload,
package/dist/index.js CHANGED
@@ -169,13 +169,13 @@ import {
169
169
  validDZImagesResponse
170
170
  } from "./chunk-XT2IWGYK.js";
171
171
  import {
172
- gdcGRIN2Payload,
172
+ gdcGRIN2listPayload,
173
173
  runGRIN2Payload,
174
174
  validGdcGRIN2listRequest,
175
175
  validGdcGRIN2listResponse,
176
176
  validRunGRIN2Request,
177
177
  validRunGRIN2Response
178
- } from "./chunk-NWEXA2YB.js";
178
+ } from "./chunk-B2DJ3H7H.js";
179
179
  import {
180
180
  gdcMafPayload,
181
181
  validGdcMafRequest,
@@ -195,7 +195,7 @@ import {
195
195
  genesetEnrichmentPayload,
196
196
  validGenesetEnrichmentRequest,
197
197
  validGenesetEnrichmentResponse
198
- } from "./chunk-A3XJW6BZ.js";
198
+ } from "./chunk-XZAH6P4D.js";
199
199
  import {
200
200
  genesetOverrepresentationPayload,
201
201
  validGenesetOverrepresentationRequest,
@@ -257,7 +257,7 @@ export {
257
257
  diffExpPayload,
258
258
  dsDataPayload,
259
259
  dzImagesPayload,
260
- gdcGRIN2Payload,
260
+ gdcGRIN2listPayload,
261
261
  gdcMafPayload,
262
262
  geneLookupPayload,
263
263
  genesetEnrichmentPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.126.0",
3
+ "version": "2.128.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
@@ -1929,12 +1929,6 @@ export type PreInit = {
1929
1929
  retryDelay?: number
1930
1930
  /** maximum number of times to call preInit.getStatus() before giving up */
1931
1931
  retryMax?: number
1932
- /**
1933
- * optional callback to send notifications of pre-init errors
1934
- * for St. Jude, this may reuse code that post to Slack channel;
1935
- * in dev and other portals, this may use custom callbacks
1936
- * */
1937
- errorCallback?: (response: PreInitStatus) => void
1938
1932
  /**
1939
1933
  * dev only, used to test preInit handling by simulating different
1940
1934
  * responses in a known sequence of steps that may edit the preInit
@@ -1971,8 +1965,19 @@ export type Mds3 = BaseMds & {
1971
1965
  retryDelay?: number
1972
1966
  /** maximum number of times to call preInit.getStatus() before giving up */
1973
1967
  retryMax?: number
1968
+ /** server-computed cumulative count of the attempted init retries */
1969
+ currentRetry?: number
1970
+ /**
1971
+ * optional callback to send notifications of pre-init errors
1972
+ * for St. Jude, this may reuse code that post to Slack channel;
1973
+ * in dev and other portals, this may use custom callbacks
1974
+ * */
1975
+ errorCallback?: (response: PreInitStatus) => void
1974
1976
  }
1975
- initErrorCallback?: (a: any) => void
1977
+ /** optional callback to invoke non-blocking code after dataset query validation in mds3.init.js;
1978
+ * for GDC, this callback is created after buildDictionary in initGdc.js
1979
+ **/
1980
+ initNonblocking?: (a: any) => void
1976
1981
  viewModes?: ViewMode[]
1977
1982
  dsinfo?: KeyVal[]
1978
1983
  queries?: Mds3Queries
@@ -73,7 +73,7 @@ export type RunGRIN2Response = {
73
73
  /** Error message if status is 'error' */
74
74
  error?: string
75
75
  /** Path to the generated image if status is 'success' */
76
- imagestring?: string
76
+ pngImg?: string
77
77
  /** Download status */
78
78
  download?: any
79
79
  /** Table of top genes indentified by analysis */
@@ -82,7 +82,7 @@ export type RunGRIN2Response = {
82
82
  /**
83
83
  * Route payload definitions for type checking
84
84
  */
85
- export const gdcGRIN2Payload: RoutePayload = {
85
+ export const gdcGRIN2listPayload: RoutePayload = {
86
86
  request: {
87
87
  typeId: 'GdcGRIN2listRequest'
88
88
  },
@@ -17,8 +17,6 @@ export type GenesetEnrichmentRequest = {
17
17
  pickle_file?: string
18
18
  /** Number of permutations to be carried out for GSEA analysis */
19
19
  num_permutations: number
20
- /** Method used for GSEA blitzgsea/cerno */
21
- method: 'blitzgsea' | 'cerno'
22
20
  }
23
21
 
24
22
  type pathway_attributes = {