@sjcrh/proteinpaint-types 2.98.1-0 → 2.98.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,11 @@
1
+ import {
2
+ CorrelationVolcanoPayload,
3
+ validCorrelationVolcanoRequest,
4
+ validCorrelationVolcanoResponse
5
+ } from "./chunk-DFSJACIQ.js";
6
+ import "./chunk-Z6B6IQIY.js";
7
+ export {
8
+ CorrelationVolcanoPayload,
9
+ validCorrelationVolcanoRequest,
10
+ validCorrelationVolcanoResponse
11
+ };
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ import {
2
+ termdbTopTermsByTypePayload,
3
+ validTermdbTopTermsByTypeRequest,
4
+ validTermdbTopTermsByTypeResponse
5
+ } from "./chunk-CU5TLT6P.js";
1
6
  import {
2
7
  termdbTopVariablyExpressedGenesPayload,
3
8
  validTermdbTopVariablyExpressedGenesRequest,
@@ -18,6 +23,11 @@ import {
18
23
  validWSImagesResponse,
19
24
  wsImagesPayload
20
25
  } from "./chunk-XLBSZOMF.js";
26
+ import {
27
+ rootTermPayload,
28
+ validRootTermRequest,
29
+ validRootTermResponse
30
+ } from "./chunk-GU7LIGHN.js";
21
31
  import {
22
32
  termdbSampleImagesPayload,
23
33
  validTermdbSampleImagesRequest,
@@ -54,10 +64,10 @@ import {
54
64
  validTermsByIdsResponse
55
65
  } from "./chunk-7K726NBK.js";
56
66
  import {
57
- termdbTopTermsByTypePayload,
58
- validTermdbTopTermsByTypeRequest,
59
- validTermdbTopTermsByTypeResponse
60
- } from "./chunk-CU5TLT6P.js";
67
+ boxplotPayload,
68
+ validBoxPlotRequest,
69
+ validBoxPlotResponse
70
+ } from "./chunk-X36QKCNU.js";
61
71
  import {
62
72
  termdbCategoriesPayload,
63
73
  validCategoriesRequest,
@@ -94,10 +104,10 @@ import {
94
104
  validPercentileResponse
95
105
  } from "./chunk-IORCECK2.js";
96
106
  import {
97
- rootTermPayload,
98
- validRootTermRequest,
99
- validRootTermResponse
100
- } from "./chunk-GU7LIGHN.js";
107
+ hicstatPayload,
108
+ validHicstatRequest,
109
+ validHicstatResponse
110
+ } from "./chunk-QX7QLUKY.js";
101
111
  import {
102
112
  isoformlstPayload,
103
113
  validIsoformLstRequest,
@@ -129,10 +139,10 @@ import {
129
139
  validDEResponse
130
140
  } from "./chunk-Z2WFGV6V.js";
131
141
  import {
132
- boxplotPayload,
133
- validBoxPlotRequest,
134
- validBoxPlotResponse
135
- } from "./chunk-OAO3UWUX.js";
142
+ GdcMafPayload,
143
+ validGdcMafBuildRequest,
144
+ validGdcMafBuildResponse
145
+ } from "./chunk-DIDZMC3G.js";
136
146
  import {
137
147
  gdcTopMutatedGenePayload,
138
148
  validGdcTopMutatedGeneRequest,
@@ -168,11 +178,6 @@ import {
168
178
  validHicGenomeRequest,
169
179
  validHicGenomeResponse
170
180
  } from "./chunk-W3QYIXXF.js";
171
- import {
172
- hicstatPayload,
173
- validHicstatRequest,
174
- validHicstatResponse
175
- } from "./chunk-QX7QLUKY.js";
176
181
  import {
177
182
  brainImagingPayload,
178
183
  validBrainImagingRequest,
@@ -188,6 +193,11 @@ import {
188
193
  validBurdenRequest,
189
194
  validBurdenResponse
190
195
  } from "./chunk-RLFGMVJZ.js";
196
+ import {
197
+ CorrelationVolcanoPayload,
198
+ validCorrelationVolcanoRequest,
199
+ validCorrelationVolcanoResponse
200
+ } from "./chunk-DFSJACIQ.js";
191
201
  import {
192
202
  datasetPayload,
193
203
  validDatasetRequest,
@@ -208,13 +218,9 @@ import {
208
218
  validGdcMafRequest,
209
219
  validGdcMafResponse
210
220
  } from "./chunk-CETMA2FU.js";
211
- import {
212
- GdcMafPayload,
213
- validGdcMafBuildRequest,
214
- validGdcMafBuildResponse
215
- } from "./chunk-DIDZMC3G.js";
216
221
  import "./chunk-Z6B6IQIY.js";
217
222
  export {
223
+ CorrelationVolcanoPayload,
218
224
  GdcMafPayload,
219
225
  boxplotPayload,
220
226
  brainImagingPayload,
@@ -266,6 +272,8 @@ export {
266
272
  validBurdenResponse,
267
273
  validCategoriesRequest,
268
274
  validCategoriesResponse,
275
+ validCorrelationVolcanoRequest,
276
+ validCorrelationVolcanoResponse,
269
277
  validDERequest,
270
278
  validDEResponse,
271
279
  validDZImagesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-OAO3UWUX.js";
5
+ } from "./chunk-X36QKCNU.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  boxplotPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.98.1-0",
3
+ "version": "2.98.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
@@ -838,15 +838,18 @@ type SelectCohortValuesEntry = {
838
838
  }
839
839
 
840
840
  export type SelectCohortEntry = {
841
+ /** subcohort term in db. uses hardcoded type=multivalue */
841
842
  term: { id: string; type: string }
842
843
  /** Title above the cohort introduction/content in the about tab */
843
844
  title?: string
844
845
  /** Text above radio cohort options in the about tab. */
845
846
  prompt: string
846
847
  values: SelectCohortValuesEntry[]
848
+ /** cohort-related static html shown in about tab */
847
849
  description?: string
848
- /* If the description is dependent on the user pass a descriptionByUser dict instead */
849
- descriptionByUser?: { [index: string]: string }
850
+ /** If the description is dependent on the user's role,
851
+ define this callback to return description based on auth */
852
+ descriptionByUser?: (auth: any) => string
850
853
  /** subtext shown at the very bottom of the cohort/about tab subheader */
851
854
  asterisk?: string
852
855
  //The profile has clearOnChange. The terms used in the plots are not always the same for the profile.
@@ -895,6 +898,22 @@ this is limited to only one term and doesn't allow switching between multiple te
895
898
  type Scatterplots = {
896
899
  plots: ScatterPlotsEntry[]
897
900
  }
901
+ /** this plot compares correlation of one feature against a bunch of variables across samples
902
+ */
903
+ type CorrelationVolcano = {
904
+ /** fixed feature, is one numeric term */
905
+ feature: {
906
+ /** later expand to other types */
907
+ termType: 'geneExpression'
908
+ }
909
+ /** list of numeric variables to be compared against fixed feature*/
910
+ variables: {
911
+ /** later can expand */
912
+ type: 'dictionaryTerm'
913
+ /** when type=dictionaryTerm, is array of numeric term ids */
914
+ termIds?: string[]
915
+ }
916
+ }
898
917
 
899
918
  type MatrixSettingsControlLabels = {
900
919
  samples?: string
@@ -1142,7 +1161,6 @@ keep this setting here for reason of:
1142
1161
  */
1143
1162
  useLower?: boolean
1144
1163
 
1145
- scatterplots?: Scatterplots
1146
1164
  matrix?: Matrix
1147
1165
  numericDictTermCluster?: NumericDictTermCluster
1148
1166
  survival?: Survival
@@ -1280,6 +1298,8 @@ type AssayAvailability = {
1280
1298
 
1281
1299
  //Shared with genome.ts
1282
1300
  export type Cohort = {
1301
+ /** if present, means correlation volcano plot analysis is enabled */
1302
+ correlationVolcano?: CorrelationVolcano
1283
1303
  cumburden?: {
1284
1304
  files: {
1285
1305
  fit: string
@@ -1295,6 +1315,7 @@ export type Cohort = {
1295
1315
  matrixplots?: MatrixPlots
1296
1316
  mutationset?: MutationSet[]
1297
1317
  renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }
1318
+ /** if present, supplies premade scatter plots */
1298
1319
  scatterplots?: Scatterplots
1299
1320
  termdb: Termdb
1300
1321
  }
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@ export * from './routes/routeApi.ts'
8
8
  export * from './routes/brainImaging.ts'
9
9
  export * from './routes/brainImagingSamples.ts'
10
10
  export * from './routes/burden.ts'
11
+ export * from './routes/correlationVolcano.ts'
11
12
  export * from './routes/dataset.ts'
12
13
  export * from './routes/dsdata.ts'
13
14
  export * from './routes/dzimages.ts'
@@ -0,0 +1,44 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+ import type { TermWrapper } from '../terms/tw.ts'
3
+ import type { Filter } from '../filter.ts'
4
+
5
+ /** */
6
+ export type CorrelationVolcanoRequest = {
7
+ genome: string
8
+ dslabel: string
9
+ filter?: Filter
10
+ filter0?: any // gdc
11
+ /** feature tw */
12
+ featureTw: TermWrapper
13
+ /** variables */
14
+ variableTwLst: TermWrapper[]
15
+ /** correlation method */
16
+ correlationMethod: 'pearson' | 'spearman'
17
+ /** add new param */
18
+ }
19
+
20
+ export type CorrelationVolcanoResponse = {
21
+ /** each element is test result of one variable corresponding to variableTwLst */
22
+ variableItems: {
23
+ /** correlation coefficient, -1 to 1 */
24
+ correlation: number
25
+ /** pvalue */
26
+ original_pvalue: number
27
+ /** pvalue */
28
+ adjusted_pvalue: number
29
+ /** tw.$id, for client to match the item with variableTwLst */
30
+ tw$id: string
31
+ /** number of samples analyzed. samples not having complete data for all terms will be excluded, thus size may be lower than current cohort */
32
+ sampleSize: number
33
+ }[]
34
+ }
35
+
36
+ export const CorrelationVolcanoPayload: RoutePayload = {
37
+ request: {
38
+ typeId: 'CorrelationVolcanoRequest'
39
+ },
40
+ response: {
41
+ typeId: 'CorrelationVolcanoResponse'
42
+ }
43
+ //examples: []
44
+ }
@@ -1,18 +1,20 @@
1
1
  import type { RoutePayload } from './routeApi.js'
2
+ import type { TermWrapper } from '../terms/tw.ts'
3
+ import type { Filter } from '../filter.ts'
2
4
 
3
5
  /**Args set in Termdb vocab and from mass box plot */
4
6
  export type BoxPlotRequest = {
5
7
  /** Args set in TermVocab */
6
8
  /** term1 or term */
7
- tw: any
9
+ tw: TermWrapper
8
10
  genome: string
9
11
  dslabel: string
10
12
  /** sort plots by median value */
11
13
  orderByMedian: boolean
12
14
  /** term2 */
13
- overlayTw?: any
14
- filter: any
15
- filter0: any
15
+ overlayTw?: TermWrapper
16
+ filter?: Filter
17
+ filter0?: any
16
18
  }
17
19
 
18
20
  export type BoxPlotResponse = {
@@ -1,311 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-Z6B6IQIY.js";
5
-
6
- // dist/termdb.boxplot.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/termdb.boxplot.ts
10
- var boxplotPayload = {
11
- request: {
12
- typeId: "BoxPlotRequest"
13
- },
14
- response: {
15
- typeId: "BoxPlotResponse"
16
- },
17
- examples: [
18
- {
19
- request: {
20
- body: {
21
- tw: {
22
- term: { id: "subcohort", type: "categorical" },
23
- values: [{ key: "ABC", label: "ABC" }]
24
- },
25
- genome: "hg38-test",
26
- dslabel: "TermdbTest",
27
- orderByMedian: true
28
- }
29
- },
30
- response: {
31
- body: {
32
- absMin: 0,
33
- absMax: 100,
34
- plots: [
35
- {
36
- boxplot: {
37
- label: "ABC",
38
- w1: 0,
39
- w2: 100,
40
- p05: 0,
41
- p25: 25,
42
- p50: 50,
43
- p75: 75,
44
- p95: 100,
45
- iqr: 50,
46
- out: [101, 102, 106]
47
- },
48
- color: "blue",
49
- descrStats: [
50
- { id: "total", label: "Total", value: 100 },
51
- { id: "min", label: "Min", value: 0 },
52
- { id: "p25", label: "25%", value: 25 },
53
- { id: "median", label: "Median", value: 50 },
54
- { id: "mean", label: "Mean", value: 50 },
55
- { id: "p75", label: "75%", value: 75 },
56
- { id: "max", label: "Max", value: 100 },
57
- { id: "sd", label: "SD", value: 0 },
58
- { id: "variance", label: "Variance", value: 0 },
59
- { id: "iqr", label: "IQR", value: 50 }
60
- ],
61
- key: "ABC"
62
- }
63
- ],
64
- uncomputableValues: [{ label: "uncomputable-test", value: 1 }]
65
- }
66
- }
67
- }
68
- ]
69
- };
70
-
71
- // dist/termdb.boxplot.ts
72
- var validBoxPlotRequest = (input) => {
73
- const errors = [];
74
- const __is = (input2) => {
75
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.orderByMedian && true && true && true;
76
- return "object" === typeof input2 && null !== input2 && $io0(input2);
77
- };
78
- if (false === __is(input)) {
79
- const $report = import_typia.createValidate.report(errors);
80
- ((input2, _path, _exceptionable = true) => {
81
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [true, "string" === typeof input3.genome || $report(_exceptionable2, {
82
- path: _path2 + ".genome",
83
- expected: "string",
84
- value: input3.genome
85
- }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
86
- path: _path2 + ".dslabel",
87
- expected: "string",
88
- value: input3.dslabel
89
- }), "boolean" === typeof input3.orderByMedian || $report(_exceptionable2, {
90
- path: _path2 + ".orderByMedian",
91
- expected: "boolean",
92
- value: input3.orderByMedian
93
- }), true, true, true].every((flag) => flag);
94
- return ("object" === typeof input2 && null !== input2 || $report(true, {
95
- path: _path + "",
96
- expected: "BoxPlotRequest",
97
- value: input2
98
- })) && $vo0(input2, _path + "", true) || $report(true, {
99
- path: _path + "",
100
- expected: "BoxPlotRequest",
101
- value: input2
102
- });
103
- })(input, "$input", true);
104
- }
105
- const success = 0 === errors.length;
106
- return {
107
- success,
108
- errors,
109
- data: success ? input : void 0
110
- };
111
- };
112
- var validBoxPlotResponse = (input) => {
113
- const errors = [];
114
- const __is = (input2) => {
115
- const $io0 = (input3) => (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io1(elem))) && (null === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io5(elem)));
116
- const $io1 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io2(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && (Array.isArray(input3.descrStats) && input3.descrStats.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && true && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
117
- const $io2 = (input3) => (void 0 === input3.w1 || "number" === typeof input3.w1) && (void 0 === input3.w2 || "number" === typeof input3.w2) && "number" === typeof input3.p05 && "number" === typeof input3.p25 && "number" === typeof input3.p50 && "number" === typeof input3.p75 && "number" === typeof input3.p95 && "number" === typeof input3.iqr && (Array.isArray(input3.out) && input3.out.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && "string" === typeof input3.label;
118
- const $io3 = (input3) => "number" === typeof input3.value;
119
- const $io4 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
120
- const $io5 = (input3) => "string" === typeof input3.label && "number" === typeof input3.value;
121
- return "object" === typeof input2 && null !== input2 && $io0(input2);
122
- };
123
- if (false === __is(input)) {
124
- const $report = import_typia.createValidate.report(errors);
125
- ((input2, _path, _exceptionable = true) => {
126
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.absMin || "number" === typeof input3.absMin || $report(_exceptionable2, {
127
- path: _path2 + ".absMin",
128
- expected: "(number | undefined)",
129
- value: input3.absMin
130
- }), void 0 === input3.absMax || "number" === typeof input3.absMax || $report(_exceptionable2, {
131
- path: _path2 + ".absMax",
132
- expected: "(number | undefined)",
133
- value: input3.absMax
134
- }), (Array.isArray(input3.plots) || $report(_exceptionable2, {
135
- path: _path2 + ".plots",
136
- expected: "Array<BoxPlotEntry>",
137
- value: input3.plots
138
- })) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
139
- path: _path2 + ".plots[" + _index1 + "]",
140
- expected: "BoxPlotEntry",
141
- value: elem
142
- })) && $vo1(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
143
- path: _path2 + ".plots[" + _index1 + "]",
144
- expected: "BoxPlotEntry",
145
- value: elem
146
- })).every((flag) => flag) || $report(_exceptionable2, {
147
- path: _path2 + ".plots",
148
- expected: "Array<BoxPlotEntry>",
149
- value: input3.plots
150
- }), null === input3.uncomputableValues || (Array.isArray(input3.uncomputableValues) || $report(_exceptionable2, {
151
- path: _path2 + ".uncomputableValues",
152
- expected: "(Array<__type>.o1 | null)",
153
- value: input3.uncomputableValues
154
- })) && input3.uncomputableValues.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
155
- path: _path2 + ".uncomputableValues[" + _index2 + "]",
156
- expected: "__type.o1",
157
- value: elem
158
- })) && $vo5(elem, _path2 + ".uncomputableValues[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
159
- path: _path2 + ".uncomputableValues[" + _index2 + "]",
160
- expected: "__type.o1",
161
- value: elem
162
- })).every((flag) => flag) || $report(_exceptionable2, {
163
- path: _path2 + ".uncomputableValues",
164
- expected: "(Array<__type>.o1 | null)",
165
- value: input3.uncomputableValues
166
- })].every((flag) => flag);
167
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.boxplot && null !== input3.boxplot || $report(_exceptionable2, {
168
- path: _path2 + ".boxplot",
169
- expected: "BoxPlotData & { label: string; }",
170
- value: input3.boxplot
171
- })) && $vo2(input3.boxplot, _path2 + ".boxplot", _exceptionable2) || $report(_exceptionable2, {
172
- path: _path2 + ".boxplot",
173
- expected: "BoxPlotData & { label: string; }",
174
- value: input3.boxplot
175
- }), void 0 === input3.color || "string" === typeof input3.color || $report(_exceptionable2, {
176
- path: _path2 + ".color",
177
- expected: "(string | undefined)",
178
- value: input3.color
179
- }), (Array.isArray(input3.descrStats) || $report(_exceptionable2, {
180
- path: _path2 + ".descrStats",
181
- expected: "Array<BoxPlotDescrStatsEntry>",
182
- value: input3.descrStats
183
- })) && input3.descrStats.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
184
- path: _path2 + ".descrStats[" + _index3 + "]",
185
- expected: "BoxPlotDescrStatsEntry",
186
- value: elem
187
- })) && $vo4(elem, _path2 + ".descrStats[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
188
- path: _path2 + ".descrStats[" + _index3 + "]",
189
- expected: "BoxPlotDescrStatsEntry",
190
- value: elem
191
- })).every((flag) => flag) || $report(_exceptionable2, {
192
- path: _path2 + ".descrStats",
193
- expected: "Array<BoxPlotDescrStatsEntry>",
194
- value: input3.descrStats
195
- }), void 0 === input3.isHidden || "boolean" === typeof input3.isHidden || $report(_exceptionable2, {
196
- path: _path2 + ".isHidden",
197
- expected: "(boolean | undefined)",
198
- value: input3.isHidden
199
- }), "string" === typeof input3.key || $report(_exceptionable2, {
200
- path: _path2 + ".key",
201
- expected: "string",
202
- value: input3.key
203
- }), true, void 0 === input3.seriesId || "string" === typeof input3.seriesId || $report(_exceptionable2, {
204
- path: _path2 + ".seriesId",
205
- expected: "(string | undefined)",
206
- value: input3.seriesId
207
- })].every((flag) => flag);
208
- const $vo2 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.w1 || "number" === typeof input3.w1 || $report(_exceptionable2, {
209
- path: _path2 + ".w1",
210
- expected: "(number | undefined)",
211
- value: input3.w1
212
- }), void 0 === input3.w2 || "number" === typeof input3.w2 || $report(_exceptionable2, {
213
- path: _path2 + ".w2",
214
- expected: "(number | undefined)",
215
- value: input3.w2
216
- }), "number" === typeof input3.p05 || $report(_exceptionable2, {
217
- path: _path2 + ".p05",
218
- expected: "number",
219
- value: input3.p05
220
- }), "number" === typeof input3.p25 || $report(_exceptionable2, {
221
- path: _path2 + ".p25",
222
- expected: "number",
223
- value: input3.p25
224
- }), "number" === typeof input3.p50 || $report(_exceptionable2, {
225
- path: _path2 + ".p50",
226
- expected: "number",
227
- value: input3.p50
228
- }), "number" === typeof input3.p75 || $report(_exceptionable2, {
229
- path: _path2 + ".p75",
230
- expected: "number",
231
- value: input3.p75
232
- }), "number" === typeof input3.p95 || $report(_exceptionable2, {
233
- path: _path2 + ".p95",
234
- expected: "number",
235
- value: input3.p95
236
- }), "number" === typeof input3.iqr || $report(_exceptionable2, {
237
- path: _path2 + ".iqr",
238
- expected: "number",
239
- value: input3.iqr
240
- }), (Array.isArray(input3.out) || $report(_exceptionable2, {
241
- path: _path2 + ".out",
242
- expected: "Array<__type>",
243
- value: input3.out
244
- })) && input3.out.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
245
- path: _path2 + ".out[" + _index4 + "]",
246
- expected: "__type",
247
- value: elem
248
- })) && $vo3(elem, _path2 + ".out[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
249
- path: _path2 + ".out[" + _index4 + "]",
250
- expected: "__type",
251
- value: elem
252
- })).every((flag) => flag) || $report(_exceptionable2, {
253
- path: _path2 + ".out",
254
- expected: "Array<__type>",
255
- value: input3.out
256
- }), "string" === typeof input3.label || $report(_exceptionable2, {
257
- path: _path2 + ".label",
258
- expected: "string",
259
- value: input3.label
260
- })].every((flag) => flag);
261
- const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.value || $report(_exceptionable2, {
262
- path: _path2 + ".value",
263
- expected: "number",
264
- value: input3.value
265
- })].every((flag) => flag);
266
- const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
267
- path: _path2 + ".id",
268
- expected: "string",
269
- value: input3.id
270
- }), "string" === typeof input3.label || $report(_exceptionable2, {
271
- path: _path2 + ".label",
272
- expected: "string",
273
- value: input3.label
274
- }), "number" === typeof input3.value || $report(_exceptionable2, {
275
- path: _path2 + ".value",
276
- expected: "number",
277
- value: input3.value
278
- })].every((flag) => flag);
279
- const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
280
- path: _path2 + ".label",
281
- expected: "string",
282
- value: input3.label
283
- }), "number" === typeof input3.value || $report(_exceptionable2, {
284
- path: _path2 + ".value",
285
- expected: "number",
286
- value: input3.value
287
- })].every((flag) => flag);
288
- return ("object" === typeof input2 && null !== input2 || $report(true, {
289
- path: _path + "",
290
- expected: "BoxPlotResponse",
291
- value: input2
292
- })) && $vo0(input2, _path + "", true) || $report(true, {
293
- path: _path + "",
294
- expected: "BoxPlotResponse",
295
- value: input2
296
- });
297
- })(input, "$input", true);
298
- }
299
- const success = 0 === errors.length;
300
- return {
301
- success,
302
- errors,
303
- data: success ? input : void 0
304
- };
305
- };
306
-
307
- export {
308
- boxplotPayload,
309
- validBoxPlotRequest,
310
- validBoxPlotResponse
311
- };