@sjcrh/proteinpaint-types 2.147.2-0 → 2.148.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.
- package/dist/{chunk-D6IBJJ63.js → chunk-Z7KZU2H5.js} +26 -14
- package/dist/grin2.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/routes/grin2.ts +7 -4
|
@@ -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.
|
|
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.
|
|
434
|
-
path: _path2 + ".
|
|
435
|
-
expected: "number",
|
|
436
|
-
value: input3.
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/routes/grin2.ts
CHANGED
|
@@ -136,14 +136,17 @@ export type GRIN2Response = {
|
|
|
136
136
|
}
|
|
137
137
|
/** Detailed processing summary */
|
|
138
138
|
processingSummary?: {
|
|
139
|
-
totalSamples
|
|
140
|
-
|
|
141
|
-
failedSamples
|
|
142
|
-
failedFiles
|
|
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
|
|