@sjcrh/proteinpaint-types 2.147.2-0 → 2.148.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,386 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-YNHC5SXO.js";
5
+
6
+ // dist/termdb.sampleScatter.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.sampleScatter.ts
10
+ var termdbSampleScatterPayload = {
11
+ request: {
12
+ typeId: "TermdbSampleScatterRequest"
13
+ },
14
+ response: {
15
+ typeId: "TermdbSampleScatterResponse"
16
+ }
17
+ };
18
+
19
+ // dist/termdb.sampleScatter.ts
20
+ var validTermdbSampleScatterRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && true;
24
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
25
+ };
26
+ if (false === __is(input)) {
27
+ const $report = import_typia.createValidate.report(errors);
28
+ ((input2, _path, _exceptionable = true) => {
29
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
30
+ path: _path2 + ".genome",
31
+ expected: "string",
32
+ value: input3.genome
33
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
34
+ path: _path2 + ".dslabel",
35
+ expected: "string",
36
+ value: input3.dslabel
37
+ }), true, true, true, true, void 0 === input3.coordTWs || Array.isArray(input3.coordTWs) || $report(_exceptionable2, {
38
+ path: _path2 + ".coordTWs",
39
+ expected: "(Array<any> | undefined)",
40
+ value: input3.coordTWs
41
+ }), void 0 === input3.plotName || "string" === typeof input3.plotName || $report(_exceptionable2, {
42
+ path: _path2 + ".plotName",
43
+ expected: "(string | undefined)",
44
+ value: input3.plotName
45
+ }), true, true, true].every((flag) => flag);
46
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
47
+ path: _path + "",
48
+ expected: "TermdbSampleScatterRequest",
49
+ value: input2
50
+ })) && $vo0(input2, _path + "", true) || $report(true, {
51
+ path: _path + "",
52
+ expected: "TermdbSampleScatterRequest",
53
+ value: input2
54
+ });
55
+ })(input, "$input", true);
56
+ }
57
+ const success = 0 === errors.length;
58
+ return {
59
+ success,
60
+ errors,
61
+ data: success ? input : void 0
62
+ };
63
+ };
64
+ var validTermdbSampleScatterResponse = (input) => {
65
+ const errors = [];
66
+ const __is = (input2) => {
67
+ const $join = import_typia.createValidate.join;
68
+ const $io0 = (input3) => "object" === typeof input3.range && null !== input3.range && ("number" === typeof input3.range.xMin && "number" === typeof input3.range.xMax && "number" === typeof input3.range.yMin && "number" === typeof input3.range.yMax) && ("object" === typeof input3.result && null !== input3.result && false === Array.isArray(input3.result) && $io2(input3.result));
69
+ const $io2 = (input3) => Object.keys(input3).every((key) => {
70
+ const value = input3[key];
71
+ if (void 0 === value)
72
+ return true;
73
+ if (RegExp(/(.*)/).test(key))
74
+ return "object" === typeof value && null !== value && $io3(value);
75
+ return true;
76
+ });
77
+ const $io3 = (input3) => Array.isArray(input3.colorLegend) && input3.colorLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io4(elem[1])))) && ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io5(input3.colorMap)) && (Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input3.shapeLegend) && input3.shapeLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io8(elem[1]))))) && ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) && $io9(input3.shapeMap));
78
+ const $io4 = (input3) => "string" === typeof input3.color && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
79
+ const $io5 = (input3) => Object.keys(input3).every((key) => {
80
+ const value = input3[key];
81
+ if (void 0 === value)
82
+ return true;
83
+ if (RegExp(/(.*)/).test(key))
84
+ return "object" === typeof value && null !== value && ("string" === typeof value.color && "number" === typeof value.sampleCount && "string" === typeof value.key);
85
+ return true;
86
+ });
87
+ const $io6 = (input3) => "string" === typeof input3.category && "string" === typeof input3.sample && ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) && $io7(input3.info)) && "string" === typeof input3.shape && "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.z;
88
+ const $io7 = (input3) => Object.keys(input3).every((key) => {
89
+ const value = input3[key];
90
+ if (void 0 === value)
91
+ return true;
92
+ if (RegExp(/(.*)/).test(key))
93
+ return true;
94
+ return true;
95
+ });
96
+ const $io8 = (input3) => "number" === typeof input3.shape && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
97
+ const $io9 = (input3) => Object.keys(input3).every((key) => {
98
+ const value = input3[key];
99
+ if (void 0 === value)
100
+ return true;
101
+ if (RegExp(/(.*)/).test(key))
102
+ return "object" === typeof value && null !== value && ("number" === typeof value.shape && "number" === typeof value.sampleCount && "string" === typeof value.key);
103
+ return true;
104
+ });
105
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
106
+ };
107
+ if (false === __is(input)) {
108
+ const $report = import_typia.createValidate.report(errors);
109
+ ((input2, _path, _exceptionable = true) => {
110
+ const $join = import_typia.createValidate.join;
111
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.range && null !== input3.range || $report(_exceptionable2, {
112
+ path: _path2 + ".range",
113
+ expected: "__type",
114
+ value: input3.range
115
+ })) && $vo1(input3.range, _path2 + ".range", _exceptionable2) || $report(_exceptionable2, {
116
+ path: _path2 + ".range",
117
+ expected: "__type",
118
+ value: input3.range
119
+ }), ("object" === typeof input3.result && null !== input3.result && false === Array.isArray(input3.result) || $report(_exceptionable2, {
120
+ path: _path2 + ".result",
121
+ expected: "ScatterResult",
122
+ value: input3.result
123
+ })) && $vo2(input3.result, _path2 + ".result", _exceptionable2) || $report(_exceptionable2, {
124
+ path: _path2 + ".result",
125
+ expected: "ScatterResult",
126
+ value: input3.result
127
+ })].every((flag) => flag);
128
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.xMin || $report(_exceptionable2, {
129
+ path: _path2 + ".xMin",
130
+ expected: "number",
131
+ value: input3.xMin
132
+ }), "number" === typeof input3.xMax || $report(_exceptionable2, {
133
+ path: _path2 + ".xMax",
134
+ expected: "number",
135
+ value: input3.xMax
136
+ }), "number" === typeof input3.yMin || $report(_exceptionable2, {
137
+ path: _path2 + ".yMin",
138
+ expected: "number",
139
+ value: input3.yMin
140
+ }), "number" === typeof input3.yMax || $report(_exceptionable2, {
141
+ path: _path2 + ".yMax",
142
+ expected: "number",
143
+ value: input3.yMax
144
+ })].every((flag) => flag);
145
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
146
+ const value = input3[key];
147
+ if (void 0 === value)
148
+ return true;
149
+ if (RegExp(/(.*)/).test(key))
150
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
151
+ path: _path2 + $join(key),
152
+ expected: "__type.o1",
153
+ value
154
+ })) && $vo3(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
155
+ path: _path2 + $join(key),
156
+ expected: "__type.o1",
157
+ value
158
+ });
159
+ return true;
160
+ }).every((flag) => flag)].every((flag) => flag);
161
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.colorLegend) || $report(_exceptionable2, {
162
+ path: _path2 + ".colorLegend",
163
+ expected: "Array<ColorLegendEntry>",
164
+ value: input3.colorLegend
165
+ })) && input3.colorLegend.map((elem, _index1) => (Array.isArray(elem) || $report(_exceptionable2, {
166
+ path: _path2 + ".colorLegend[" + _index1 + "]",
167
+ expected: "ColorLegendEntry",
168
+ value: elem
169
+ })) && ((elem.length === 2 || $report(_exceptionable2, {
170
+ path: _path2 + ".colorLegend[" + _index1 + "]",
171
+ expected: "[string, ColorObject]",
172
+ value: elem
173
+ })) && [
174
+ "string" === typeof elem[0] || $report(_exceptionable2, {
175
+ path: _path2 + ".colorLegend[" + _index1 + "][0]",
176
+ expected: "string",
177
+ value: elem[0]
178
+ }),
179
+ ("object" === typeof elem[1] && null !== elem[1] || $report(_exceptionable2, {
180
+ path: _path2 + ".colorLegend[" + _index1 + "][1]",
181
+ expected: "ColorObject",
182
+ value: elem[1]
183
+ })) && $vo4(elem[1], _path2 + ".colorLegend[" + _index1 + "][1]", _exceptionable2) || $report(_exceptionable2, {
184
+ path: _path2 + ".colorLegend[" + _index1 + "][1]",
185
+ expected: "ColorObject",
186
+ value: elem[1]
187
+ })
188
+ ].every((flag) => flag)) || $report(_exceptionable2, {
189
+ path: _path2 + ".colorLegend[" + _index1 + "]",
190
+ expected: "ColorLegendEntry",
191
+ value: elem
192
+ })).every((flag) => flag) || $report(_exceptionable2, {
193
+ path: _path2 + ".colorLegend",
194
+ expected: "Array<ColorLegendEntry>",
195
+ value: input3.colorLegend
196
+ }), ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) || $report(_exceptionable2, {
197
+ path: _path2 + ".colorMap",
198
+ expected: "ColorMap",
199
+ value: input3.colorMap
200
+ })) && $vo5(input3.colorMap, _path2 + ".colorMap", _exceptionable2) || $report(_exceptionable2, {
201
+ path: _path2 + ".colorMap",
202
+ expected: "ColorMap",
203
+ value: input3.colorMap
204
+ }), (Array.isArray(input3.samples) || $report(_exceptionable2, {
205
+ path: _path2 + ".samples",
206
+ expected: "Array<ScatterSample>",
207
+ value: input3.samples
208
+ })) && input3.samples.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
209
+ path: _path2 + ".samples[" + _index2 + "]",
210
+ expected: "ScatterSample",
211
+ value: elem
212
+ })) && $vo6(elem, _path2 + ".samples[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
213
+ path: _path2 + ".samples[" + _index2 + "]",
214
+ expected: "ScatterSample",
215
+ value: elem
216
+ })).every((flag) => flag) || $report(_exceptionable2, {
217
+ path: _path2 + ".samples",
218
+ expected: "Array<ScatterSample>",
219
+ value: input3.samples
220
+ }), (Array.isArray(input3.shapeLegend) || $report(_exceptionable2, {
221
+ path: _path2 + ".shapeLegend",
222
+ expected: "Array<ShapeLegendEntry>",
223
+ value: input3.shapeLegend
224
+ })) && input3.shapeLegend.map((elem, _index3) => (Array.isArray(elem) || $report(_exceptionable2, {
225
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
226
+ expected: "ShapeLegendEntry",
227
+ value: elem
228
+ })) && ((elem.length === 2 || $report(_exceptionable2, {
229
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
230
+ expected: "[string, ShapeObject]",
231
+ value: elem
232
+ })) && [
233
+ "string" === typeof elem[0] || $report(_exceptionable2, {
234
+ path: _path2 + ".shapeLegend[" + _index3 + "][0]",
235
+ expected: "string",
236
+ value: elem[0]
237
+ }),
238
+ ("object" === typeof elem[1] && null !== elem[1] || $report(_exceptionable2, {
239
+ path: _path2 + ".shapeLegend[" + _index3 + "][1]",
240
+ expected: "ShapeObject",
241
+ value: elem[1]
242
+ })) && $vo8(elem[1], _path2 + ".shapeLegend[" + _index3 + "][1]", _exceptionable2) || $report(_exceptionable2, {
243
+ path: _path2 + ".shapeLegend[" + _index3 + "][1]",
244
+ expected: "ShapeObject",
245
+ value: elem[1]
246
+ })
247
+ ].every((flag) => flag)) || $report(_exceptionable2, {
248
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
249
+ expected: "ShapeLegendEntry",
250
+ value: elem
251
+ })).every((flag) => flag) || $report(_exceptionable2, {
252
+ path: _path2 + ".shapeLegend",
253
+ expected: "Array<ShapeLegendEntry>",
254
+ value: input3.shapeLegend
255
+ }), ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) || $report(_exceptionable2, {
256
+ path: _path2 + ".shapeMap",
257
+ expected: "ShapeMap",
258
+ value: input3.shapeMap
259
+ })) && $vo9(input3.shapeMap, _path2 + ".shapeMap", _exceptionable2) || $report(_exceptionable2, {
260
+ path: _path2 + ".shapeMap",
261
+ expected: "ShapeMap",
262
+ value: input3.shapeMap
263
+ })].every((flag) => flag);
264
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
265
+ path: _path2 + ".color",
266
+ expected: "string",
267
+ value: input3.color
268
+ }), "number" === typeof input3.sampleCount || $report(_exceptionable2, {
269
+ path: _path2 + ".sampleCount",
270
+ expected: "number",
271
+ value: input3.sampleCount
272
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
273
+ path: _path2 + ".key",
274
+ expected: "string",
275
+ value: input3.key
276
+ })].every((flag) => flag);
277
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
278
+ const value = input3[key];
279
+ if (void 0 === value)
280
+ return true;
281
+ if (RegExp(/(.*)/).test(key))
282
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
283
+ path: _path2 + $join(key),
284
+ expected: "ColorObject",
285
+ value
286
+ })) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
287
+ path: _path2 + $join(key),
288
+ expected: "ColorObject",
289
+ value
290
+ });
291
+ return true;
292
+ }).every((flag) => flag)].every((flag) => flag);
293
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.category || $report(_exceptionable2, {
294
+ path: _path2 + ".category",
295
+ expected: "string",
296
+ value: input3.category
297
+ }), "string" === typeof input3.sample || $report(_exceptionable2, {
298
+ path: _path2 + ".sample",
299
+ expected: "string",
300
+ value: input3.sample
301
+ }), ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
302
+ path: _path2 + ".info",
303
+ expected: "__type.o2",
304
+ value: input3.info
305
+ })) && $vo7(input3.info, _path2 + ".info", _exceptionable2) || $report(_exceptionable2, {
306
+ path: _path2 + ".info",
307
+ expected: "__type.o2",
308
+ value: input3.info
309
+ }), "string" === typeof input3.shape || $report(_exceptionable2, {
310
+ path: _path2 + ".shape",
311
+ expected: "string",
312
+ value: input3.shape
313
+ }), "number" === typeof input3.x || $report(_exceptionable2, {
314
+ path: _path2 + ".x",
315
+ expected: "number",
316
+ value: input3.x
317
+ }), "number" === typeof input3.y || $report(_exceptionable2, {
318
+ path: _path2 + ".y",
319
+ expected: "number",
320
+ value: input3.y
321
+ }), "number" === typeof input3.z || $report(_exceptionable2, {
322
+ path: _path2 + ".z",
323
+ expected: "number",
324
+ value: input3.z
325
+ })].every((flag) => flag);
326
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
327
+ const value = input3[key];
328
+ if (void 0 === value)
329
+ return true;
330
+ if (RegExp(/(.*)/).test(key))
331
+ return true;
332
+ return true;
333
+ }).every((flag) => flag)].every((flag) => flag);
334
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.shape || $report(_exceptionable2, {
335
+ path: _path2 + ".shape",
336
+ expected: "number",
337
+ value: input3.shape
338
+ }), "number" === typeof input3.sampleCount || $report(_exceptionable2, {
339
+ path: _path2 + ".sampleCount",
340
+ expected: "number",
341
+ value: input3.sampleCount
342
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
343
+ path: _path2 + ".key",
344
+ expected: "string",
345
+ value: input3.key
346
+ })].every((flag) => flag);
347
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
348
+ const value = input3[key];
349
+ if (void 0 === value)
350
+ return true;
351
+ if (RegExp(/(.*)/).test(key))
352
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
353
+ path: _path2 + $join(key),
354
+ expected: "ShapeObject",
355
+ value
356
+ })) && $vo8(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
357
+ path: _path2 + $join(key),
358
+ expected: "ShapeObject",
359
+ value
360
+ });
361
+ return true;
362
+ }).every((flag) => flag)].every((flag) => flag);
363
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
364
+ path: _path + "",
365
+ expected: "TermdbSampleScatterResponse",
366
+ value: input2
367
+ })) && $vo0(input2, _path + "", true) || $report(true, {
368
+ path: _path + "",
369
+ expected: "TermdbSampleScatterResponse",
370
+ value: input2
371
+ });
372
+ })(input, "$input", true);
373
+ }
374
+ const success = 0 === errors.length;
375
+ return {
376
+ success,
377
+ errors,
378
+ data: success ? input : void 0
379
+ };
380
+ };
381
+
382
+ export {
383
+ termdbSampleScatterPayload,
384
+ validTermdbSampleScatterRequest,
385
+ validTermdbSampleScatterResponse
386
+ };
@@ -159,7 +159,7 @@ var validGRIN2Response = (input) => {
159
159
  const errors = [];
160
160
  const __is = (input2) => {
161
161
  const $join = import_typia.createValidate.join;
162
- const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && (void 0 === input3.plotData || "object" === typeof input3.plotData && null !== input3.plotData && $io1(input3.plotData)) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io5(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io8(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && $io9(input3.processingSummary));
162
+ const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && (void 0 === input3.plotData || "object" === typeof input3.plotData && null !== input3.plotData && $io1(input3.plotData)) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io5(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io8(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && false === Array.isArray(input3.processingSummary) && $io9(input3.processingSummary));
163
163
  const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "boolean" === typeof input3.y_axis_scaled && "number" === typeof input3.scale_factor && "number" === typeof input3.total_genome_length && "number" === typeof input3.plot_width && "number" === typeof input3.plot_height && "number" === typeof input3.device_pixel_ratio && "number" === typeof input3.dpi;
164
164
  const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.svg_x && "number" === typeof input3.svg_y && "string" === typeof input3.color && "string" === typeof input3.type && "string" === typeof input3.gene && "string" === typeof input3.chrom && "number" === typeof input3.pos && "number" === typeof input3.q_value;
165
165
  const $io3 = (input3) => Object.keys(input3).every((key) => {
@@ -174,7 +174,7 @@ var validGRIN2Response = (input) => {
174
174
  const $io6 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
175
175
  const $io7 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
176
176
  const $io8 = (input3) => "number" === typeof input3.processingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
177
- const $io9 = (input3) => "number" === typeof input3.totalSamples && "number" === typeof input3.successfulSamples && "number" === typeof input3.failedSamples && (Array.isArray(input3.failedFiles) && input3.failedFiles.every((elem) => "object" === typeof elem && null !== elem && $io10(elem)));
177
+ 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);
178
178
  const $io10 = (input3) => "string" === typeof input3.sampleName && "string" === typeof input3.filePath && "string" === typeof input3.error;
179
179
  return "object" === typeof input2 && null !== input2 && $io0(input2);
180
180
  };
@@ -226,7 +226,7 @@ var validGRIN2Response = (input) => {
226
226
  path: _path2 + ".timing",
227
227
  expected: "(__type.o5 | undefined)",
228
228
  value: input3.timing
229
- }), void 0 === input3.processingSummary || ("object" === typeof input3.processingSummary && null !== input3.processingSummary || $report(_exceptionable2, {
229
+ }), void 0 === input3.processingSummary || ("object" === typeof input3.processingSummary && null !== input3.processingSummary && false === Array.isArray(input3.processingSummary) || $report(_exceptionable2, {
230
230
  path: _path2 + ".processingSummary",
231
231
  expected: "(__type.o6 | undefined)",
232
232
  value: input3.processingSummary
@@ -426,21 +426,21 @@ var validGRIN2Response = (input) => {
426
426
  expected: "number",
427
427
  value: input3.totalTime
428
428
  })].every((flag) => flag);
429
- const $vo9 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.totalSamples || $report(_exceptionable2, {
429
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.totalSamples || "number" === typeof input3.totalSamples || $report(_exceptionable2, {
430
430
  path: _path2 + ".totalSamples",
431
- expected: "number",
431
+ expected: "(number | undefined)",
432
432
  value: input3.totalSamples
433
- }), "number" === typeof input3.successfulSamples || $report(_exceptionable2, {
434
- path: _path2 + ".successfulSamples",
435
- expected: "number",
436
- value: input3.successfulSamples
437
- }), "number" === typeof input3.failedSamples || $report(_exceptionable2, {
433
+ }), void 0 === input3.processedSamples || "number" === typeof input3.processedSamples || $report(_exceptionable2, {
434
+ path: _path2 + ".processedSamples",
435
+ expected: "(number | undefined)",
436
+ value: input3.processedSamples
437
+ }), void 0 === input3.failedSamples || "number" === typeof input3.failedSamples || $report(_exceptionable2, {
438
438
  path: _path2 + ".failedSamples",
439
- expected: "number",
439
+ expected: "(number | undefined)",
440
440
  value: input3.failedSamples
441
- }), (Array.isArray(input3.failedFiles) || $report(_exceptionable2, {
441
+ }), void 0 === input3.failedFiles || (Array.isArray(input3.failedFiles) || $report(_exceptionable2, {
442
442
  path: _path2 + ".failedFiles",
443
- expected: "Array<__type>.o3",
443
+ expected: "(Array<__type>.o3 | undefined)",
444
444
  value: input3.failedFiles
445
445
  })) && input3.failedFiles.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
446
446
  path: _path2 + ".failedFiles[" + _index5 + "]",
@@ -452,8 +452,20 @@ var validGRIN2Response = (input) => {
452
452
  value: elem
453
453
  })).every((flag) => flag) || $report(_exceptionable2, {
454
454
  path: _path2 + ".failedFiles",
455
- expected: "Array<__type>.o3",
455
+ expected: "(Array<__type>.o3 | undefined)",
456
456
  value: input3.failedFiles
457
+ }), void 0 === input3.totalLesions || "number" === typeof input3.totalLesions || $report(_exceptionable2, {
458
+ path: _path2 + ".totalLesions",
459
+ expected: "(number | undefined)",
460
+ value: input3.totalLesions
461
+ }), void 0 === input3.processedLesions || "number" === typeof input3.processedLesions || $report(_exceptionable2, {
462
+ path: _path2 + ".processedLesions",
463
+ expected: "(number | undefined)",
464
+ value: input3.processedLesions
465
+ }), void 0 === input3.unprocessedSamples || "number" === typeof input3.unprocessedSamples || $report(_exceptionable2, {
466
+ path: _path2 + ".unprocessedSamples",
467
+ expected: "(number | undefined)",
468
+ value: input3.unprocessedSamples
457
469
  })].every((flag) => flag);
458
470
  const $vo10 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.sampleName || $report(_exceptionable2, {
459
471
  path: _path2 + ".sampleName",
package/dist/grin2.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  GRIN2Payload,
3
3
  validGRIN2Request,
4
4
  validGRIN2Response
5
- } from "./chunk-D6IBJJ63.js";
5
+ } from "./chunk-Z7KZU2H5.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  GRIN2Payload,
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ import {
2
+ termdbTopVariablyExpressedGenesPayload,
3
+ validTermdbTopVariablyExpressedGenesRequest,
4
+ validTermdbTopVariablyExpressedGenesResponse
5
+ } from "./chunk-OZ3CVAFP.js";
1
6
  import {
2
7
  validViolinRequest,
3
8
  validViolinResponse,
@@ -18,6 +23,11 @@ import {
18
23
  validWSISamplesResponse,
19
24
  wsiSamplesPayload
20
25
  } from "./chunk-2744ACBX.js";
26
+ import {
27
+ termdbSingleSampleMutationPayload,
28
+ validTermdbSingleSampleMutationRequest,
29
+ validTermdbSingleSampleMutationResponse
30
+ } from "./chunk-UGYLBYUU.js";
21
31
  import {
22
32
  termdbSingleCellDEgenesPayload,
23
33
  validTermdbSingleCellDEgenesRequest,
@@ -53,11 +63,6 @@ import {
53
63
  validTermdbTopTermsByTypeRequest,
54
64
  validTermdbTopTermsByTypeResponse
55
65
  } from "./chunk-KQNLROUN.js";
56
- import {
57
- termdbTopVariablyExpressedGenesPayload,
58
- validTermdbTopVariablyExpressedGenesRequest,
59
- validTermdbTopVariablyExpressedGenesResponse
60
- } from "./chunk-OZ3CVAFP.js";
61
66
  import {
62
67
  FilterTermValuesPayload,
63
68
  validFilterTermValuesRequest,
@@ -94,10 +99,10 @@ import {
94
99
  validTermdbSampleImagesResponse
95
100
  } from "./chunk-U3BTVE5T.js";
96
101
  import {
97
- termdbSingleSampleMutationPayload,
98
- validTermdbSingleSampleMutationRequest,
99
- validTermdbSingleSampleMutationResponse
100
- } from "./chunk-UGYLBYUU.js";
102
+ termdbSampleScatterPayload,
103
+ validTermdbSampleScatterRequest,
104
+ validTermdbSampleScatterResponse
105
+ } from "./chunk-OSBVSZBB.js";
101
106
  import {
102
107
  diffExpPayload,
103
108
  validDERequest,
@@ -192,7 +197,7 @@ import {
192
197
  GRIN2Payload,
193
198
  validGRIN2Request,
194
199
  validGRIN2Response
195
- } from "./chunk-D6IBJJ63.js";
200
+ } from "./chunk-Z7KZU2H5.js";
196
201
  import {
197
202
  healthcheckPayload,
198
203
  validHealthCheckRequest,
@@ -342,6 +347,7 @@ export {
342
347
  termdbCohortSummaryPayload,
343
348
  termdbCohortsPayload,
344
349
  termdbSampleImagesPayload,
350
+ termdbSampleScatterPayload,
345
351
  termdbSingleCellDEgenesPayload,
346
352
  termdbSingleCellDataPayload,
347
353
  termdbSingleCellSamplesPayload,
@@ -443,6 +449,8 @@ export {
443
449
  validTermdbCohortsResponse,
444
450
  validTermdbSampleImagesRequest,
445
451
  validTermdbSampleImagesResponse,
452
+ validTermdbSampleScatterRequest,
453
+ validTermdbSampleScatterResponse,
446
454
  validTermdbSingleCellDEgenesRequest,
447
455
  validTermdbSingleCellDEgenesResponse,
448
456
  validTermdbSingleCellDataRequest,
@@ -0,0 +1,11 @@
1
+ import {
2
+ termdbSampleScatterPayload,
3
+ validTermdbSampleScatterRequest,
4
+ validTermdbSampleScatterResponse
5
+ } from "./chunk-OSBVSZBB.js";
6
+ import "./chunk-YNHC5SXO.js";
7
+ export {
8
+ termdbSampleScatterPayload,
9
+ validTermdbSampleScatterRequest,
10
+ validTermdbSampleScatterResponse
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.147.2-0",
3
+ "version": "2.148.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
@@ -704,8 +704,6 @@ type RnaseqGeneCount = {
704
704
  samplesFile?: string
705
705
  /** Storage_type for storing data (HDF5) */
706
706
  storage_type: 'HDF5'
707
- /** temporary h5 file format flag */
708
- newformat?: boolean
709
707
  }
710
708
 
711
709
  /** the metabolite query */
@@ -1305,7 +1303,7 @@ type Matrix = {
1305
1303
  /** filter to hide categories or mclass, e.g. hide male, hide MISSENSE */
1306
1304
  legendValueFilter?: any
1307
1305
  /** local filter to limit samples in matrix/hiercluster, merged with this.state.termfilter.filter when querying server */
1308
- localFilter?: any
1306
+ filter?: any
1309
1307
  /** matrix criteria for a CNV alteration */
1310
1308
  cnvCutoffs?: any
1311
1309
  }
package/src/index.ts CHANGED
@@ -50,6 +50,7 @@ export * from './routes/termdb.percentile.ts'
50
50
  export * from './routes/termdb.rootterm.ts'
51
51
  export * from './routes/termdb.termchildren.ts'
52
52
  export * from './routes/termdb.sampleImages.ts'
53
+ export * from './routes/termdb.sampleScatter.ts'
53
54
  export * from './routes/termdb.singlecellData.ts'
54
55
  export * from './routes/termdb.singlecellDEgenes.ts'
55
56
  export * from './routes/termdb.singlecellSamples.ts'
@@ -136,14 +136,17 @@ export type GRIN2Response = {
136
136
  }
137
137
  /** Detailed processing summary */
138
138
  processingSummary?: {
139
- totalSamples: number
140
- successfulSamples: number
141
- failedSamples: number
142
- failedFiles: Array<{
139
+ totalSamples?: number
140
+ processedSamples?: number
141
+ failedSamples?: number
142
+ failedFiles?: Array<{
143
143
  sampleName: string
144
144
  filePath: string
145
145
  error: string
146
146
  }>
147
+ totalLesions?: number
148
+ processedLesions?: number
149
+ unprocessedSamples?: number
147
150
  }
148
151
  }
149
152
 
@@ -0,0 +1,59 @@
1
+ import type { RoutePayload } from './routeApi.ts'
2
+
3
+ //TermWrapper defined in client/types/terms/tw.ts
4
+ //Do not use #types TermWrapper here as it will be deprecated
5
+ export type TermdbSampleScatterRequest = {
6
+ genome: string
7
+ dslabel: string
8
+ colorTW?: any //TermWrapper
9
+ shapeTW?: any //TermWrapper
10
+ divideByTW?: any //TermWrapper
11
+ scaleDotTW?: any //TermWrapper
12
+ coordTWs?: any[] //TermWrapper[]
13
+ plotName?: string
14
+ filter?: any
15
+ filter0?: any
16
+ __protected__?: any // auth token for accessing protected data
17
+ }
18
+
19
+ export type ScatterSample = {
20
+ category: string
21
+ sample: string
22
+ info: { [index: string]: any }
23
+ shape: string
24
+ x: number
25
+ y: number
26
+ z: number
27
+ }
28
+
29
+ type ColorObject = { color: string; sampleCount: number; key: string }
30
+ export type ColorLegendEntry = [string, ColorObject]
31
+ export type ColorMap = { [index: string]: ColorObject }
32
+
33
+ type ShapeObject = { shape: number; sampleCount: number; key: string }
34
+ export type ShapeLegendEntry = [string, ShapeObject]
35
+ export type ShapeMap = { [index: string]: ShapeObject }
36
+
37
+ type ScatterResult = {
38
+ [index: string]: {
39
+ colorLegend: ColorLegendEntry[]
40
+ colorMap: ColorMap
41
+ samples: ScatterSample[]
42
+ shapeLegend: ShapeLegendEntry[]
43
+ shapeMap: ShapeMap
44
+ }
45
+ }
46
+
47
+ export type TermdbSampleScatterResponse = {
48
+ range: { xMin: number; xMax: number; yMin: number; yMax: number }
49
+ result: ScatterResult
50
+ }
51
+
52
+ export const termdbSampleScatterPayload: RoutePayload = {
53
+ request: {
54
+ typeId: 'TermdbSampleScatterRequest'
55
+ },
56
+ response: {
57
+ typeId: 'TermdbSampleScatterResponse'
58
+ }
59
+ }