@sjcrh/proteinpaint-types 2.150.0 → 2.151.1-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.
|
@@ -74,34 +74,18 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
74
74
|
return "object" === typeof value && null !== value && $io3(value);
|
|
75
75
|
return true;
|
|
76
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])))) && (
|
|
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])))) && (Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io5(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] && $io7(elem[1])))));
|
|
78
78
|
const $io4 = (input3) => "string" === typeof input3.color && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
|
|
79
|
-
const $io5 = (input3) =>
|
|
79
|
+
const $io5 = (input3) => "string" === typeof input3.category && "string" === typeof input3.sample && (void 0 === input3.info || "object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) && $io6(input3.info)) && "string" === typeof input3.shape && "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.z;
|
|
80
|
+
const $io6 = (input3) => Object.keys(input3).every((key) => {
|
|
80
81
|
const value = input3[key];
|
|
81
82
|
if (void 0 === value)
|
|
82
83
|
return true;
|
|
83
84
|
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
85
|
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
86
|
return true;
|
|
104
87
|
});
|
|
88
|
+
const $io7 = (input3) => "number" === typeof input3.shape && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
|
|
105
89
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
106
90
|
};
|
|
107
91
|
if (false === __is(input)) {
|
|
@@ -193,14 +177,6 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
193
177
|
path: _path2 + ".colorLegend",
|
|
194
178
|
expected: "Array<ColorLegendEntry>",
|
|
195
179
|
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
180
|
}), (Array.isArray(input3.samples) || $report(_exceptionable2, {
|
|
205
181
|
path: _path2 + ".samples",
|
|
206
182
|
expected: "Array<ScatterSample>",
|
|
@@ -209,7 +185,7 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
209
185
|
path: _path2 + ".samples[" + _index2 + "]",
|
|
210
186
|
expected: "ScatterSample",
|
|
211
187
|
value: elem
|
|
212
|
-
})) && $
|
|
188
|
+
})) && $vo5(elem, _path2 + ".samples[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
213
189
|
path: _path2 + ".samples[" + _index2 + "]",
|
|
214
190
|
expected: "ScatterSample",
|
|
215
191
|
value: elem
|
|
@@ -239,7 +215,7 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
239
215
|
path: _path2 + ".shapeLegend[" + _index3 + "][1]",
|
|
240
216
|
expected: "ShapeObject",
|
|
241
217
|
value: elem[1]
|
|
242
|
-
})) && $
|
|
218
|
+
})) && $vo7(elem[1], _path2 + ".shapeLegend[" + _index3 + "][1]", _exceptionable2) || $report(_exceptionable2, {
|
|
243
219
|
path: _path2 + ".shapeLegend[" + _index3 + "][1]",
|
|
244
220
|
expected: "ShapeObject",
|
|
245
221
|
value: elem[1]
|
|
@@ -252,14 +228,6 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
252
228
|
path: _path2 + ".shapeLegend",
|
|
253
229
|
expected: "Array<ShapeLegendEntry>",
|
|
254
230
|
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
231
|
})].every((flag) => flag);
|
|
264
232
|
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
|
|
265
233
|
path: _path2 + ".color",
|
|
@@ -274,23 +242,7 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
274
242
|
expected: "string",
|
|
275
243
|
value: input3.key
|
|
276
244
|
})].every((flag) => flag);
|
|
277
|
-
const $vo5 = (input3, _path2, _exceptionable2 = true) => [
|
|
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, {
|
|
245
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.category || $report(_exceptionable2, {
|
|
294
246
|
path: _path2 + ".category",
|
|
295
247
|
expected: "string",
|
|
296
248
|
value: input3.category
|
|
@@ -298,13 +250,13 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
298
250
|
path: _path2 + ".sample",
|
|
299
251
|
expected: "string",
|
|
300
252
|
value: input3.sample
|
|
301
|
-
}), ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
|
|
253
|
+
}), void 0 === input3.info || ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
|
|
302
254
|
path: _path2 + ".info",
|
|
303
|
-
expected: "__type.o2",
|
|
255
|
+
expected: "(__type.o2 | undefined)",
|
|
304
256
|
value: input3.info
|
|
305
|
-
})) && $
|
|
257
|
+
})) && $vo6(input3.info, _path2 + ".info", _exceptionable2) || $report(_exceptionable2, {
|
|
306
258
|
path: _path2 + ".info",
|
|
307
|
-
expected: "__type.o2",
|
|
259
|
+
expected: "(__type.o2 | undefined)",
|
|
308
260
|
value: input3.info
|
|
309
261
|
}), "string" === typeof input3.shape || $report(_exceptionable2, {
|
|
310
262
|
path: _path2 + ".shape",
|
|
@@ -323,7 +275,7 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
323
275
|
expected: "number",
|
|
324
276
|
value: input3.z
|
|
325
277
|
})].every((flag) => flag);
|
|
326
|
-
const $
|
|
278
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
327
279
|
const value = input3[key];
|
|
328
280
|
if (void 0 === value)
|
|
329
281
|
return true;
|
|
@@ -331,7 +283,7 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
331
283
|
return true;
|
|
332
284
|
return true;
|
|
333
285
|
}).every((flag) => flag)].every((flag) => flag);
|
|
334
|
-
const $
|
|
286
|
+
const $vo7 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.shape || $report(_exceptionable2, {
|
|
335
287
|
path: _path2 + ".shape",
|
|
336
288
|
expected: "number",
|
|
337
289
|
value: input3.shape
|
|
@@ -344,22 +296,6 @@ var validTermdbSampleScatterResponse = (input) => {
|
|
|
344
296
|
expected: "string",
|
|
345
297
|
value: input3.key
|
|
346
298
|
})].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
299
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
364
300
|
path: _path + "",
|
|
365
301
|
expected: "TermdbSampleScatterResponse",
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
termdbSampleScatterPayload,
|
|
43
43
|
validTermdbSampleScatterRequest,
|
|
44
44
|
validTermdbSampleScatterResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5BNDT4E6.js";
|
|
46
46
|
import {
|
|
47
47
|
termdbSingleSampleMutationPayload,
|
|
48
48
|
validTermdbSingleSampleMutationRequest,
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export type TermdbSampleScatterRequest = {
|
|
|
19
19
|
export type ScatterSample = {
|
|
20
20
|
category: string
|
|
21
21
|
sample: string
|
|
22
|
-
info
|
|
22
|
+
info?: { [index: string]: any }
|
|
23
23
|
shape: string
|
|
24
24
|
x: number
|
|
25
25
|
y: number
|
|
@@ -37,10 +37,8 @@ export type ShapeMap = { [index: string]: ShapeObject }
|
|
|
37
37
|
type ScatterResult = {
|
|
38
38
|
[index: string]: {
|
|
39
39
|
colorLegend: ColorLegendEntry[]
|
|
40
|
-
colorMap: ColorMap
|
|
41
40
|
samples: ScatterSample[]
|
|
42
41
|
shapeLegend: ShapeLegendEntry[]
|
|
43
|
-
shapeMap: ShapeMap
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
|