@sjcrh/proteinpaint-types 2.125.0 → 2.126.1

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.
@@ -0,0 +1,308 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/gdc.grin2.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/gdc.grin2.ts
10
+ var gdcGRIN2Payload = {
11
+ request: {
12
+ typeId: "GdcGRIN2listRequest"
13
+ },
14
+ response: {
15
+ typeId: "GdcGRIN2listResponse"
16
+ }
17
+ };
18
+ var runGRIN2Payload = {
19
+ request: {
20
+ typeId: "RunGRIN2Request"
21
+ },
22
+ response: {
23
+ typeId: "RunGRIN2Response"
24
+ }
25
+ };
26
+
27
+ // dist/gdc.grin2.ts
28
+ var validGdcGRIN2listRequest = (input) => {
29
+ const errors = [];
30
+ const __is = (input2) => {
31
+ const $io0 = (input3) => "WXS" === input3.experimentalStrategy && true && (void 0 === input3.fileTypes || Array.isArray(input3.fileTypes) && input3.fileTypes.every((elem) => "MAF" === elem));
32
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
33
+ };
34
+ if (false === __is(input)) {
35
+ const $report = import_typia.createValidate.report(errors);
36
+ ((input2, _path, _exceptionable = true) => {
37
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
38
+ path: _path2 + ".experimentalStrategy",
39
+ expected: '"WXS"',
40
+ value: input3.experimentalStrategy
41
+ }), true, void 0 === input3.fileTypes || (Array.isArray(input3.fileTypes) || $report(_exceptionable2, {
42
+ path: _path2 + ".fileTypes",
43
+ expected: '(Array<"MAF"> | undefined)',
44
+ value: input3.fileTypes
45
+ })) && input3.fileTypes.map((elem, _index1) => "MAF" === elem || $report(_exceptionable2, {
46
+ path: _path2 + ".fileTypes[" + _index1 + "]",
47
+ expected: '"MAF"',
48
+ value: elem
49
+ })).every((flag) => flag) || $report(_exceptionable2, {
50
+ path: _path2 + ".fileTypes",
51
+ expected: '(Array<"MAF"> | undefined)',
52
+ value: input3.fileTypes
53
+ })].every((flag) => flag);
54
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
55
+ path: _path + "",
56
+ expected: "GdcGRIN2listRequest",
57
+ value: input2
58
+ })) && $vo0(input2, _path + "", true) || $report(true, {
59
+ path: _path + "",
60
+ expected: "GdcGRIN2listRequest",
61
+ value: input2
62
+ });
63
+ })(input, "$input", true);
64
+ }
65
+ const success = 0 === errors.length;
66
+ return {
67
+ success,
68
+ errors,
69
+ data: success ? input : void 0
70
+ };
71
+ };
72
+ var validGdcGRIN2listResponse = (input) => {
73
+ const errors = [];
74
+ const __is = (input2) => {
75
+ const $io0 = (input3) => Array.isArray(input3.files) && input3.files.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.filesTotal && "number" === typeof input3.maxTotalSizeCompressed && (void 0 === input3.fileCounts || "object" === typeof input3.fileCounts && null !== input3.fileCounts && $io2(input3.fileCounts)) && (void 0 === input3.appliedFilters || "object" === typeof input3.appliedFilters && null !== input3.appliedFilters && false === Array.isArray(input3.appliedFilters) && $io3(input3.appliedFilters));
76
+ const $io1 = (input3) => "string" === typeof input3.id && "string" === typeof input3.case_submitter_id && "string" === typeof input3.case_uuid && "number" === typeof input3.file_size && (Array.isArray(input3.sample_types) && input3.sample_types.every((elem) => "string" === typeof elem)) && "string" === typeof input3.project_id && (void 0 === input3.file_format || "MAF" === input3.file_format);
77
+ const $io2 = (input3) => "number" === typeof input3.maf;
78
+ const $io3 = (input3) => (void 0 === input3.fileTypes || Array.isArray(input3.fileTypes) && input3.fileTypes.every((elem) => "MAF" === elem)) && (void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy);
79
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
80
+ };
81
+ if (false === __is(input)) {
82
+ const $report = import_typia.createValidate.report(errors);
83
+ ((input2, _path, _exceptionable = true) => {
84
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.files) || $report(_exceptionable2, {
85
+ path: _path2 + ".files",
86
+ expected: "Array<GdcGRIN2File>",
87
+ value: input3.files
88
+ })) && input3.files.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
89
+ path: _path2 + ".files[" + _index1 + "]",
90
+ expected: "GdcGRIN2File",
91
+ value: elem
92
+ })) && $vo1(elem, _path2 + ".files[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
93
+ path: _path2 + ".files[" + _index1 + "]",
94
+ expected: "GdcGRIN2File",
95
+ value: elem
96
+ })).every((flag) => flag) || $report(_exceptionable2, {
97
+ path: _path2 + ".files",
98
+ expected: "Array<GdcGRIN2File>",
99
+ value: input3.files
100
+ }), "number" === typeof input3.filesTotal || $report(_exceptionable2, {
101
+ path: _path2 + ".filesTotal",
102
+ expected: "number",
103
+ value: input3.filesTotal
104
+ }), "number" === typeof input3.maxTotalSizeCompressed || $report(_exceptionable2, {
105
+ path: _path2 + ".maxTotalSizeCompressed",
106
+ expected: "number",
107
+ value: input3.maxTotalSizeCompressed
108
+ }), void 0 === input3.fileCounts || ("object" === typeof input3.fileCounts && null !== input3.fileCounts || $report(_exceptionable2, {
109
+ path: _path2 + ".fileCounts",
110
+ expected: "(__type | undefined)",
111
+ value: input3.fileCounts
112
+ })) && $vo2(input3.fileCounts, _path2 + ".fileCounts", _exceptionable2) || $report(_exceptionable2, {
113
+ path: _path2 + ".fileCounts",
114
+ expected: "(__type | undefined)",
115
+ value: input3.fileCounts
116
+ }), void 0 === input3.appliedFilters || ("object" === typeof input3.appliedFilters && null !== input3.appliedFilters && false === Array.isArray(input3.appliedFilters) || $report(_exceptionable2, {
117
+ path: _path2 + ".appliedFilters",
118
+ expected: "(__type.o1 | undefined)",
119
+ value: input3.appliedFilters
120
+ })) && $vo3(input3.appliedFilters, _path2 + ".appliedFilters", _exceptionable2) || $report(_exceptionable2, {
121
+ path: _path2 + ".appliedFilters",
122
+ expected: "(__type.o1 | undefined)",
123
+ value: input3.appliedFilters
124
+ })].every((flag) => flag);
125
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
126
+ path: _path2 + ".id",
127
+ expected: "string",
128
+ value: input3.id
129
+ }), "string" === typeof input3.case_submitter_id || $report(_exceptionable2, {
130
+ path: _path2 + ".case_submitter_id",
131
+ expected: "string",
132
+ value: input3.case_submitter_id
133
+ }), "string" === typeof input3.case_uuid || $report(_exceptionable2, {
134
+ path: _path2 + ".case_uuid",
135
+ expected: "string",
136
+ value: input3.case_uuid
137
+ }), "number" === typeof input3.file_size || $report(_exceptionable2, {
138
+ path: _path2 + ".file_size",
139
+ expected: "number",
140
+ value: input3.file_size
141
+ }), (Array.isArray(input3.sample_types) || $report(_exceptionable2, {
142
+ path: _path2 + ".sample_types",
143
+ expected: "Array<string>",
144
+ value: input3.sample_types
145
+ })) && input3.sample_types.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
146
+ path: _path2 + ".sample_types[" + _index2 + "]",
147
+ expected: "string",
148
+ value: elem
149
+ })).every((flag) => flag) || $report(_exceptionable2, {
150
+ path: _path2 + ".sample_types",
151
+ expected: "Array<string>",
152
+ value: input3.sample_types
153
+ }), "string" === typeof input3.project_id || $report(_exceptionable2, {
154
+ path: _path2 + ".project_id",
155
+ expected: "string",
156
+ value: input3.project_id
157
+ }), void 0 === input3.file_format || "MAF" === input3.file_format || $report(_exceptionable2, {
158
+ path: _path2 + ".file_format",
159
+ expected: '("MAF" | undefined)',
160
+ value: input3.file_format
161
+ })].every((flag) => flag);
162
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.maf || $report(_exceptionable2, {
163
+ path: _path2 + ".maf",
164
+ expected: "number",
165
+ value: input3.maf
166
+ })].every((flag) => flag);
167
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.fileTypes || (Array.isArray(input3.fileTypes) || $report(_exceptionable2, {
168
+ path: _path2 + ".fileTypes",
169
+ expected: '(Array<"MAF"> | undefined)',
170
+ value: input3.fileTypes
171
+ })) && input3.fileTypes.map((elem, _index3) => "MAF" === elem || $report(_exceptionable2, {
172
+ path: _path2 + ".fileTypes[" + _index3 + "]",
173
+ expected: '"MAF"',
174
+ value: elem
175
+ })).every((flag) => flag) || $report(_exceptionable2, {
176
+ path: _path2 + ".fileTypes",
177
+ expected: '(Array<"MAF"> | undefined)',
178
+ value: input3.fileTypes
179
+ }), void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
180
+ path: _path2 + ".experimentalStrategy",
181
+ expected: '("WXS" | undefined)',
182
+ value: input3.experimentalStrategy
183
+ })].every((flag) => flag);
184
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
185
+ path: _path + "",
186
+ expected: "GdcGRIN2listResponse",
187
+ value: input2
188
+ })) && $vo0(input2, _path + "", true) || $report(true, {
189
+ path: _path + "",
190
+ expected: "GdcGRIN2listResponse",
191
+ value: input2
192
+ });
193
+ })(input, "$input", true);
194
+ }
195
+ const success = 0 === errors.length;
196
+ return {
197
+ success,
198
+ errors,
199
+ data: success ? input : void 0
200
+ };
201
+ };
202
+ var validRunGRIN2Request = (input) => {
203
+ const errors = [];
204
+ const __is = (input2) => {
205
+ const $join = import_typia.createValidate.join;
206
+ const $io0 = (input3) => Object.keys(input3).every((key) => {
207
+ const value = input3[key];
208
+ if (void 0 === value)
209
+ return true;
210
+ if (RegExp(/(.*)/).test(key))
211
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
212
+ return true;
213
+ });
214
+ const $io1 = (input3) => void 0 === input3.maf || "string" === typeof input3.maf;
215
+ return "object" === typeof input2 && null !== input2 && false === Array.isArray(input2) && $io0(input2);
216
+ };
217
+ if (false === __is(input)) {
218
+ const $report = import_typia.createValidate.report(errors);
219
+ ((input2, _path, _exceptionable = true) => {
220
+ const $join = import_typia.createValidate.join;
221
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
222
+ const value = input3[key];
223
+ if (void 0 === value)
224
+ return true;
225
+ if (RegExp(/(.*)/).test(key))
226
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
227
+ path: _path2 + $join(key),
228
+ expected: "__type",
229
+ value
230
+ })) && $vo1(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
231
+ path: _path2 + $join(key),
232
+ expected: "__type",
233
+ value
234
+ });
235
+ return true;
236
+ }).every((flag) => flag)].every((flag) => flag);
237
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.maf || "string" === typeof input3.maf || $report(_exceptionable2, {
238
+ path: _path2 + ".maf",
239
+ expected: "(string | undefined)",
240
+ value: input3.maf
241
+ })].every((flag) => flag);
242
+ return ("object" === typeof input2 && null !== input2 && false === Array.isArray(input2) || $report(true, {
243
+ path: _path + "",
244
+ expected: "RunGRIN2Request",
245
+ value: input2
246
+ })) && $vo0(input2, _path + "", true) || $report(true, {
247
+ path: _path + "",
248
+ expected: "RunGRIN2Request",
249
+ value: input2
250
+ });
251
+ })(input, "$input", true);
252
+ }
253
+ const success = 0 === errors.length;
254
+ return {
255
+ success,
256
+ errors,
257
+ data: success ? input : void 0
258
+ };
259
+ };
260
+ var validRunGRIN2Response = (input) => {
261
+ const errors = [];
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;
264
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
265
+ };
266
+ if (false === __is(input)) {
267
+ const $report = import_typia.createValidate.report(errors);
268
+ ((input2, _path, _exceptionable = true) => {
269
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["success" === input3.status || "error" === input3.status || $report(_exceptionable2, {
270
+ path: _path2 + ".status",
271
+ expected: '("error" | "success")',
272
+ value: input3.status
273
+ }), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
274
+ path: _path2 + ".error",
275
+ expected: "(string | undefined)",
276
+ value: input3.error
277
+ }), void 0 === input3.imagestring || "string" === typeof input3.imagestring || $report(_exceptionable2, {
278
+ path: _path2 + ".imagestring",
279
+ expected: "(string | undefined)",
280
+ value: input3.imagestring
281
+ }), true, true].every((flag) => flag);
282
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
283
+ path: _path + "",
284
+ expected: "RunGRIN2Response",
285
+ value: input2
286
+ })) && $vo0(input2, _path + "", true) || $report(true, {
287
+ path: _path + "",
288
+ expected: "RunGRIN2Response",
289
+ value: input2
290
+ });
291
+ })(input, "$input", true);
292
+ }
293
+ const success = 0 === errors.length;
294
+ return {
295
+ success,
296
+ errors,
297
+ data: success ? input : void 0
298
+ };
299
+ };
300
+
301
+ export {
302
+ gdcGRIN2Payload,
303
+ runGRIN2Payload,
304
+ validGdcGRIN2listRequest,
305
+ validGdcGRIN2listResponse,
306
+ validRunGRIN2Request,
307
+ validRunGRIN2Response
308
+ };
@@ -0,0 +1,14 @@
1
+ // src/routes/clearwsisessions.ts
2
+ var clearWSImagesSessionsPayload = {
3
+ request: {
4
+ typeId: "ClearWSImagesSessionsRequest"
5
+ },
6
+ response: {
7
+ typeId: "ClearWSImagesSessionsResponse"
8
+ }
9
+ // examples: []
10
+ };
11
+
12
+ export {
13
+ clearWSImagesSessionsPayload
14
+ };
@@ -65,7 +65,7 @@ var validHealthCheckResponse = (input) => {
65
65
  const errors = [];
66
66
  const __is = (input2) => {
67
67
  const $join = import_typia.createValidate.join;
68
- const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
68
+ const $io0 = (input3) => ("error" === input3.status || "ok" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
69
69
  const $io1 = (input3) => Object.keys(input3).every((key) => {
70
70
  const value = input3[key];
71
71
  if (void 0 === value)
@@ -117,7 +117,7 @@ var validHealthCheckResponse = (input) => {
117
117
  const $report = import_typia.createValidate.report(errors);
118
118
  ((input2, _path, _exceptionable = true) => {
119
119
  const $join = import_typia.createValidate.join;
120
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
120
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "ok" === input3.status || $report(_exceptionable2, {
121
121
  path: _path2 + ".status",
122
122
  expected: '("error" | "ok")',
123
123
  value: input3.status
@@ -0,0 +1,75 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/clearwsisessions.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+ var validClearWSImagesSessionsRequest = (input) => {
9
+ const errors = [];
10
+ const __is = (input2) => {
11
+ const $io0 = (input3) => Array.isArray(input3.sessions);
12
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
13
+ };
14
+ if (false === __is(input)) {
15
+ const $report = import_typia.createValidate.report(errors);
16
+ ((input2, _path, _exceptionable = true) => {
17
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [Array.isArray(input3.sessions) || $report(_exceptionable2, {
18
+ path: _path2 + ".sessions",
19
+ expected: "Array<any>",
20
+ value: input3.sessions
21
+ })].every((flag) => flag);
22
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
23
+ path: _path + "",
24
+ expected: "ClearWSImagesSessionsRequest",
25
+ value: input2
26
+ })) && $vo0(input2, _path + "", true) || $report(true, {
27
+ path: _path + "",
28
+ expected: "ClearWSImagesSessionsRequest",
29
+ value: input2
30
+ });
31
+ })(input, "$input", true);
32
+ }
33
+ const success = 0 === errors.length;
34
+ return {
35
+ success,
36
+ errors,
37
+ data: success ? input : void 0
38
+ };
39
+ };
40
+ var validClearWSImagesSessionsResponse = (input) => {
41
+ const errors = [];
42
+ const __is = (input2) => {
43
+ return "object" === typeof input2 && null !== input2 && "string" === typeof input2.message;
44
+ };
45
+ if (false === __is(input)) {
46
+ const $report = import_typia.createValidate.report(errors);
47
+ ((input2, _path, _exceptionable = true) => {
48
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.message || $report(_exceptionable2, {
49
+ path: _path2 + ".message",
50
+ expected: "string",
51
+ value: input3.message
52
+ })].every((flag) => flag);
53
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
54
+ path: _path + "",
55
+ expected: "ClearWSImagesSessionsResponse",
56
+ value: input2
57
+ })) && $vo0(input2, _path + "", true) || $report(true, {
58
+ path: _path + "",
59
+ expected: "ClearWSImagesSessionsResponse",
60
+ value: input2
61
+ });
62
+ })(input, "$input", true);
63
+ }
64
+ const success = 0 === errors.length;
65
+ return {
66
+ success,
67
+ errors,
68
+ data: success ? input : void 0
69
+ };
70
+ };
71
+
72
+ export {
73
+ validClearWSImagesSessionsRequest,
74
+ validClearWSImagesSessionsResponse
75
+ };
@@ -52,7 +52,7 @@ var validWSISamplesRequest = (input) => {
52
52
  data: success ? input : void 0
53
53
  };
54
54
  };
55
- var validWSSamplesResponse = (input) => {
55
+ var validWSISamplesResponse = (input) => {
56
56
  const errors = [];
57
57
  const __is = (input2) => {
58
58
  const $io0 = (input3) => Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && (void 0 === input3.error || "string" === typeof input3.error);
@@ -122,5 +122,5 @@ var validWSSamplesResponse = (input) => {
122
122
  export {
123
123
  wsiSamplesPayload,
124
124
  validWSISamplesRequest,
125
- validWSSamplesResponse
125
+ validWSISamplesResponse
126
126
  };
@@ -18,7 +18,7 @@ var topMutatedGenePayload = {
18
18
  };
19
19
 
20
20
  // dist/termdb.topMutatedGenes.ts
21
- var validTopMutatedGeneRequest = (input) => {
21
+ var validtopMutatedGeneRequest = (input) => {
22
22
  const errors = [];
23
23
  const __is = (input2) => {
24
24
  const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.geneFilter || "CGC" === input3.geneFilter) && (void 0 === input3.maxGenes || "number" === typeof input3.maxGenes) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && false === Array.isArray(input3.filter) && $io1(input3.filter)) && (void 0 === input3.filter0 || "object" === typeof input3.filter0 && null !== input3.filter0 && false === Array.isArray(input3.filter0) && $io1(input3.filter0)) && (void 0 === input3.snv_mfndi || "number" === typeof input3.snv_mfndi) && (void 0 === input3.snv_splice || "number" === typeof input3.snv_splice) && (void 0 === input3.snv_utr || "number" === typeof input3.snv_utr) && (void 0 === input3.snv_s || "number" === typeof input3.snv_s) && (void 0 === input3.sv || "number" === typeof input3.sv) && (void 0 === input3.fusion || "number" === typeof input3.fusion) && (void 0 === input3.cnv || "number" === typeof input3.cnv) && (void 0 === input3.cnv_ms || "object" === typeof input3.cnv_ms && null !== input3.cnv_ms && $io2(input3.cnv_ms)) && (void 0 === input3.cnv_logratio || "object" === typeof input3.cnv_logratio && null !== input3.cnv_logratio && $io3(input3.cnv_logratio));
@@ -152,7 +152,7 @@ var validTopMutatedGeneRequest = (input) => {
152
152
  data: success ? input : void 0
153
153
  };
154
154
  };
155
- var validTopMutatedGeneResponse = (input) => {
155
+ var validtopMutatedGeneResponse = (input) => {
156
156
  const errors = [];
157
157
  const __is = (input2) => {
158
158
  const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
@@ -235,6 +235,6 @@ var validTopMutatedGeneResponse = (input) => {
235
235
 
236
236
  export {
237
237
  topMutatedGenePayload,
238
- validTopMutatedGeneRequest,
239
- validTopMutatedGeneResponse
238
+ validtopMutatedGeneRequest,
239
+ validtopMutatedGeneResponse
240
240
  };
@@ -1,3 +1,6 @@
1
+ import {
2
+ clearWSImagesSessionsPayload
3
+ } from "./chunk-RPX4TVMD.js";
1
4
  import {
2
5
  __toESM,
3
6
  require_lib
@@ -5,19 +8,6 @@ import {
5
8
 
6
9
  // dist/clearwsisession.ts
7
10
  var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/clearwsisessions.ts
10
- var clearWSImagesSessionsPayload = {
11
- request: {
12
- typeId: "ClearWSImagesSessionsRequest"
13
- },
14
- response: {
15
- typeId: "ClearWSImagesSessionsResponse"
16
- }
17
- // examples: []
18
- };
19
-
20
- // dist/clearwsisession.ts
21
11
  var validClearWSImagesSessionsRequest = (input) => {
22
12
  const errors = [];
23
13
  const __is = (input2) => {
@@ -0,0 +1,13 @@
1
+ import {
2
+ validClearWSImagesSessionsRequest,
3
+ validClearWSImagesSessionsResponse
4
+ } from "./chunk-SMS3Y2XZ.js";
5
+ import {
6
+ clearWSImagesSessionsPayload
7
+ } from "./chunk-RPX4TVMD.js";
8
+ import "./chunk-CNSSF43V.js";
9
+ export {
10
+ clearWSImagesSessionsPayload,
11
+ validClearWSImagesSessionsRequest,
12
+ validClearWSImagesSessionsResponse
13
+ };
@@ -0,0 +1,17 @@
1
+ import {
2
+ gdcGRIN2Payload,
3
+ runGRIN2Payload,
4
+ validGdcGRIN2listRequest,
5
+ validGdcGRIN2listResponse,
6
+ validRunGRIN2Request,
7
+ validRunGRIN2Response
8
+ } from "./chunk-NWEXA2YB.js";
9
+ import "./chunk-CNSSF43V.js";
10
+ export {
11
+ gdcGRIN2Payload,
12
+ runGRIN2Payload,
13
+ validGdcGRIN2listRequest,
14
+ validGdcGRIN2listResponse,
15
+ validRunGRIN2Request,
16
+ validRunGRIN2Response
17
+ };
@@ -2,7 +2,7 @@ import {
2
2
  healthcheckPayload,
3
3
  validHealthCheckRequest,
4
4
  validHealthCheckResponse
5
- } from "./chunk-KRYTJ2SL.js";
5
+ } from "./chunk-RWMZSRX7.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  healthcheckPayload,
package/dist/index.js CHANGED
@@ -1,3 +1,23 @@
1
+ import {
2
+ validWSImagesRequest,
3
+ validWSImagesResponse,
4
+ wsImagesPayload
5
+ } from "./chunk-UZH5HOBP.js";
6
+ import {
7
+ validWSISamplesRequest,
8
+ validWSISamplesResponse,
9
+ wsiSamplesPayload
10
+ } from "./chunk-W6NLM363.js";
11
+ import {
12
+ termdbSingleCellSamplesPayload,
13
+ validTermdbSingleCellSamplesRequest,
14
+ validTermdbSingleCellSamplesResponse
15
+ } from "./chunk-LPBYQJG4.js";
16
+ import {
17
+ termChildrenPayload,
18
+ validTermChildrenRequest,
19
+ validTermChildrenResponse
20
+ } from "./chunk-HKGWC7OO.js";
1
21
  import {
2
22
  termsByIdsPayload,
3
23
  validTermsByIdsRequest,
@@ -5,9 +25,9 @@ import {
5
25
  } from "./chunk-O4RAE6UJ.js";
6
26
  import {
7
27
  topMutatedGenePayload,
8
- validTopMutatedGeneRequest,
9
- validTopMutatedGeneResponse
10
- } from "./chunk-WQGLAGSY.js";
28
+ validtopMutatedGeneRequest,
29
+ validtopMutatedGeneResponse
30
+ } from "./chunk-YGX6BZZY.js";
11
31
  import {
12
32
  termdbTopTermsByTypePayload,
13
33
  validTermdbTopTermsByTypeRequest,
@@ -29,15 +49,15 @@ import {
29
49
  validTileResponse
30
50
  } from "./chunk-KFVYRW7D.js";
31
51
  import {
32
- validWSImagesRequest,
33
- validWSImagesResponse,
34
- wsImagesPayload
35
- } from "./chunk-UZH5HOBP.js";
52
+ descrStatsPayload,
53
+ validDescrStatsRequest,
54
+ validDescrStatsResponse
55
+ } from "./chunk-YOS2YTCE.js";
36
56
  import {
37
- validWSISamplesRequest,
38
- validWSSamplesResponse,
39
- wsiSamplesPayload
40
- } from "./chunk-5HL5BPE5.js";
57
+ numericCategoriesPayload,
58
+ validNumericCategoriesRequest,
59
+ validNumericCategoriesResponse
60
+ } from "./chunk-5O422YU6.js";
41
61
  import {
42
62
  percentilePayload,
43
63
  validPercentileRequest,
@@ -69,15 +89,15 @@ import {
69
89
  validTermdbSingleCellDataResponse
70
90
  } from "./chunk-ZAMCS7PC.js";
71
91
  import {
72
- termdbSingleCellSamplesPayload,
73
- validTermdbSingleCellSamplesRequest,
74
- validTermdbSingleCellSamplesResponse
75
- } from "./chunk-LPBYQJG4.js";
92
+ sampleWSImagesPayload,
93
+ validSampleWSImagesRequest,
94
+ validSampleWSImagesResponse
95
+ } from "./chunk-D5OG676D.js";
76
96
  import {
77
- termChildrenPayload,
78
- validTermChildrenRequest,
79
- validTermChildrenResponse
80
- } from "./chunk-HKGWC7OO.js";
97
+ snpPayload,
98
+ validSnpRequest,
99
+ validSnpResponse
100
+ } from "./chunk-J4QAF4EU.js";
81
101
  import {
82
102
  diffExpPayload,
83
103
  validDERequest,
@@ -109,15 +129,15 @@ import {
109
129
  validTermdbCohortsResponse
110
130
  } from "./chunk-EH7VAE5S.js";
111
131
  import {
112
- descrStatsPayload,
113
- validDescrStatsRequest,
114
- validDescrStatsResponse
115
- } from "./chunk-YOS2YTCE.js";
132
+ hicdataPayload,
133
+ validHicdataRequest,
134
+ validHicdataResponse
135
+ } from "./chunk-VKBTOKI2.js";
116
136
  import {
117
- numericCategoriesPayload,
118
- validNumericCategoriesRequest,
119
- validNumericCategoriesResponse
120
- } from "./chunk-5O422YU6.js";
137
+ hicGenomePayload,
138
+ validHicGenomeRequest,
139
+ validHicGenomeResponse
140
+ } from "./chunk-I2KWGMNM.js";
121
141
  import {
122
142
  hicstatPayload,
123
143
  validHicstatRequest,
@@ -144,15 +164,18 @@ import {
144
164
  validPdomainResponse
145
165
  } from "./chunk-L5DFYFWX.js";
146
166
  import {
147
- sampleWSImagesPayload,
148
- validSampleWSImagesRequest,
149
- validSampleWSImagesResponse
150
- } from "./chunk-D5OG676D.js";
167
+ dzImagesPayload,
168
+ validDZImagesRequest,
169
+ validDZImagesResponse
170
+ } from "./chunk-XT2IWGYK.js";
151
171
  import {
152
- snpPayload,
153
- validSnpRequest,
154
- validSnpResponse
155
- } from "./chunk-J4QAF4EU.js";
172
+ gdcGRIN2Payload,
173
+ runGRIN2Payload,
174
+ validGdcGRIN2listRequest,
175
+ validGdcGRIN2listResponse,
176
+ validRunGRIN2Request,
177
+ validRunGRIN2Response
178
+ } from "./chunk-NWEXA2YB.js";
156
179
  import {
157
180
  gdcMafPayload,
158
181
  validGdcMafRequest,
@@ -182,17 +205,7 @@ import {
182
205
  healthcheckPayload,
183
206
  validHealthCheckRequest,
184
207
  validHealthCheckResponse
185
- } from "./chunk-KRYTJ2SL.js";
186
- import {
187
- hicdataPayload,
188
- validHicdataRequest,
189
- validHicdataResponse
190
- } from "./chunk-VKBTOKI2.js";
191
- import {
192
- hicGenomePayload,
193
- validHicGenomeRequest,
194
- validHicGenomeResponse
195
- } from "./chunk-I2KWGMNM.js";
208
+ } from "./chunk-RWMZSRX7.js";
196
209
  import {
197
210
  brainImagingPayload,
198
211
  validBrainImagingRequest,
@@ -208,6 +221,13 @@ import {
208
221
  validBurdenRequest,
209
222
  validBurdenResponse
210
223
  } from "./chunk-ZVTZJRGS.js";
224
+ import {
225
+ validClearWSImagesSessionsRequest,
226
+ validClearWSImagesSessionsResponse
227
+ } from "./chunk-SMS3Y2XZ.js";
228
+ import {
229
+ clearWSImagesSessionsPayload
230
+ } from "./chunk-RPX4TVMD.js";
211
231
  import {
212
232
  CorrelationVolcanoPayload,
213
233
  validCorrelationVolcanoRequest,
@@ -223,11 +243,6 @@ import {
223
243
  validDsDataRequest,
224
244
  validDsDataResponse
225
245
  } from "./chunk-4GCROGGK.js";
226
- import {
227
- dzImagesPayload,
228
- validDZImagesRequest,
229
- validDZImagesResponse
230
- } from "./chunk-XT2IWGYK.js";
231
246
  import "./chunk-CNSSF43V.js";
232
247
  export {
233
248
  CorrelationVolcanoPayload,
@@ -236,11 +251,13 @@ export {
236
251
  brainImagingPayload,
237
252
  brainImagingSamplesPayload,
238
253
  burdenPayload,
254
+ clearWSImagesSessionsPayload,
239
255
  datasetPayload,
240
256
  descrStatsPayload,
241
257
  diffExpPayload,
242
258
  dsDataPayload,
243
259
  dzImagesPayload,
260
+ gdcGRIN2Payload,
244
261
  gdcMafPayload,
245
262
  geneLookupPayload,
246
263
  genesetEnrichmentPayload,
@@ -256,6 +273,7 @@ export {
256
273
  pdomainPayload,
257
274
  percentilePayload,
258
275
  rootTermPayload,
276
+ runGRIN2Payload,
259
277
  sampleWSImagesPayload,
260
278
  snpPayload,
261
279
  termChildrenPayload,
@@ -283,6 +301,8 @@ export {
283
301
  validBurdenResponse,
284
302
  validCategoriesRequest,
285
303
  validCategoriesResponse,
304
+ validClearWSImagesSessionsRequest,
305
+ validClearWSImagesSessionsResponse,
286
306
  validCorrelationVolcanoRequest,
287
307
  validCorrelationVolcanoResponse,
288
308
  validDERequest,
@@ -295,6 +315,8 @@ export {
295
315
  validDescrStatsResponse,
296
316
  validDsDataRequest,
297
317
  validDsDataResponse,
318
+ validGdcGRIN2listRequest,
319
+ validGdcGRIN2listResponse,
298
320
  validGdcMafBuildRequest,
299
321
  validGdcMafBuildResponse,
300
322
  validGdcMafRequest,
@@ -325,6 +347,8 @@ export {
325
347
  validPercentileResponse,
326
348
  validRootTermRequest,
327
349
  validRootTermResponse,
350
+ validRunGRIN2Request,
351
+ validRunGRIN2Response,
328
352
  validSampleWSImagesRequest,
329
353
  validSampleWSImagesResponse,
330
354
  validSnpRequest,
@@ -355,16 +379,16 @@ export {
355
379
  validTermsByIdsResponse,
356
380
  validTileRequest,
357
381
  validTileResponse,
358
- validTopMutatedGeneRequest,
359
- validTopMutatedGeneResponse,
360
382
  validViolinRequest,
361
383
  validViolinResponse,
362
384
  validWSISamplesRequest,
385
+ validWSISamplesResponse,
363
386
  validWSImagesRequest,
364
387
  validWSImagesResponse,
365
- validWSSamplesResponse,
366
388
  validimgRequest,
367
389
  validimgResponse,
390
+ validtopMutatedGeneRequest,
391
+ validtopMutatedGeneResponse,
368
392
  violinPayload,
369
393
  wsImagesPayload,
370
394
  wsiSamplesPayload
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  topMutatedGenePayload,
3
- validTopMutatedGeneRequest,
4
- validTopMutatedGeneResponse
5
- } from "./chunk-WQGLAGSY.js";
3
+ validtopMutatedGeneRequest,
4
+ validtopMutatedGeneResponse
5
+ } from "./chunk-YGX6BZZY.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  topMutatedGenePayload,
9
- validTopMutatedGeneRequest,
10
- validTopMutatedGeneResponse
9
+ validtopMutatedGeneRequest,
10
+ validtopMutatedGeneResponse
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  validWSISamplesRequest,
3
- validWSSamplesResponse,
3
+ validWSISamplesResponse,
4
4
  wsiSamplesPayload
5
- } from "./chunk-5HL5BPE5.js";
5
+ } from "./chunk-W6NLM363.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validWSISamplesRequest,
9
- validWSSamplesResponse,
9
+ validWSISamplesResponse,
10
10
  wsiSamplesPayload
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.125.0",
3
+ "version": "2.126.1",
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
@@ -1966,7 +1960,24 @@ export type Mds3 = BaseMds & {
1966
1960
  isMds3: boolean
1967
1961
  loadWithoutBlocking?: boolean
1968
1962
  preInit?: PreInit
1969
- initErrorCallback?: (a: any) => void
1963
+ init?: {
1964
+ /** number of milliseconds to wait before calling th preInit.getStatus() again */
1965
+ retryDelay?: number
1966
+ /** maximum number of times to call preInit.getStatus() before giving up */
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
1976
+ }
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
1970
1981
  viewModes?: ViewMode[]
1971
1982
  dsinfo?: KeyVal[]
1972
1983
  queries?: Mds3Queries
package/src/index.ts CHANGED
@@ -17,6 +17,7 @@ export * from './routes/errorResponse.ts'
17
17
  export * from './routes/filter.gdc.ts'
18
18
  export * from './routes/gdc.maf.ts'
19
19
  export * from './routes/gdc.mafBuild.ts'
20
+ export * from './routes/gdc.grin2.ts'
20
21
  export * from './routes/termdb.topMutatedGenes.ts'
21
22
  export * from './routes/genelookup.ts'
22
23
  export * from './routes/genesetEnrichment.ts'
@@ -0,0 +1,101 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ /**
4
+ * Represents a file from GDC API (MAF)
5
+ */
6
+ export type GdcGRIN2File = {
7
+ /** A string representing the file's UUID, can be accessed via https://api.gdc.cancer.gov/data/<uuid> */
8
+ id: string
9
+ /** A string representing a submitter ID for the case associated with this file */
10
+ case_submitter_id: string
11
+ /** Case UUID */
12
+ case_uuid: string
13
+ /** An integer as the byte size of this file, compressed */
14
+ file_size: number
15
+ /** Array of strings, each is 'tumor descriptor+tissue type', for all samples involved in generating the file */
16
+ sample_types: string[]
17
+ /** A string as the project id of the case */
18
+ project_id: string
19
+ /** The format of the file (MAF) */
20
+ file_format?: 'MAF'
21
+ }
22
+
23
+ enum ExperimentalStrategy {
24
+ wxs = 'WXS'
25
+ }
26
+
27
+ /**
28
+ * Request parameters for GRIN2 file listing
29
+ */
30
+ export type GdcGRIN2listRequest = {
31
+ /** Name of experimental strategy to get files for */
32
+ experimentalStrategy: ExperimentalStrategy
33
+ /** JSON, optional GDC cohort filter to restrict cases */
34
+ filter0?: any
35
+ /** Optional array of file types to include ('MAF') */
36
+ fileTypes?: Array<'MAF'>
37
+ }
38
+
39
+ /**
40
+ * Response for GRIN2 file listing
41
+ */
42
+ export type GdcGRIN2listResponse = {
43
+ /** List of file objects passing filter and to be displayed on client */
44
+ files: GdcGRIN2File[]
45
+ /** Total number of files found by API (in case bigger than files.length) */
46
+ filesTotal: number
47
+ /** Maximum total size of files allowed, for indicating on UI while selecting files */
48
+ maxTotalSizeCompressed: number
49
+ /** File counts by type */
50
+ fileCounts?: {
51
+ maf: number
52
+ }
53
+ /** Applied filters (for UI reference) */
54
+ appliedFilters?: {
55
+ fileTypes?: Array<'MAF'>
56
+ experimentalStrategy?: ExperimentalStrategy
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Parameters for running GRIN2 analysis
62
+ */
63
+ export type RunGRIN2Request = {
64
+ [caseId: string]: { maf?: string }
65
+ }
66
+
67
+ /**
68
+ * Response for GRIN2 analysis run
69
+ */
70
+ export type RunGRIN2Response = {
71
+ /** Status of the analysis */
72
+ status: 'success' | 'error'
73
+ /** Error message if status is 'error' */
74
+ error?: string
75
+ /** Path to the generated image if status is 'success' */
76
+ imagestring?: string
77
+ /** Download status */
78
+ download?: any
79
+ /** Table of top genes indentified by analysis */
80
+ topgenetable?: any
81
+ }
82
+ /**
83
+ * Route payload definitions for type checking
84
+ */
85
+ export const gdcGRIN2Payload: RoutePayload = {
86
+ request: {
87
+ typeId: 'GdcGRIN2listRequest'
88
+ },
89
+ response: {
90
+ typeId: 'GdcGRIN2listResponse'
91
+ }
92
+ }
93
+
94
+ export const runGRIN2Payload: RoutePayload = {
95
+ request: {
96
+ typeId: 'RunGRIN2Request'
97
+ },
98
+ response: {
99
+ typeId: 'RunGRIN2Response'
100
+ }
101
+ }