@sjcrh/proteinpaint-types 2.184.0 → 2.185.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.
@@ -1,155 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-YNHC5SXO.js";
5
-
6
- // dist/termdb.diffMeth.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/termdb.diffMeth.ts
10
- var diffMethPayload = {
11
- request: {
12
- typeId: "DiffMethRequest"
13
- },
14
- response: {
15
- typeId: "DiffMethResponse"
16
- }
17
- };
18
-
19
- // dist/termdb.diffMeth.ts
20
- var validDiffMethRequest = (input) => {
21
- const errors = [];
22
- const __is = (input2) => {
23
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && (void 0 === input3.min_samples_per_group || "number" === typeof input3.min_samples_per_group) && true && true && (void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis);
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, void 0 === input3.min_samples_per_group || "number" === typeof input3.min_samples_per_group || $report(_exceptionable2, {
38
- path: _path2 + ".min_samples_per_group",
39
- expected: "(number | undefined)",
40
- value: input3.min_samples_per_group
41
- }), true, true, void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis || $report(_exceptionable2, {
42
- path: _path2 + ".preAnalysis",
43
- expected: "(boolean | undefined)",
44
- value: input3.preAnalysis
45
- })].every((flag) => flag);
46
- return ("object" === typeof input2 && null !== input2 || $report(true, {
47
- path: _path + "",
48
- expected: "DiffMethRequest",
49
- value: input2
50
- })) && $vo0(input2, _path + "", true) || $report(true, {
51
- path: _path + "",
52
- expected: "DiffMethRequest",
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 validDiffMethResponse = (input) => {
65
- const errors = [];
66
- const __is = (input2) => {
67
- const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2;
68
- const $io1 = (input3) => "string" === typeof input3.promoter_id && "string" === typeof input3.gene_name && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop && "number" === typeof input3.fold_change && "number" === typeof input3.original_p_value && "number" === typeof input3.adjusted_p_value;
69
- return "object" === typeof input2 && null !== input2 && $io0(input2);
70
- };
71
- if (false === __is(input)) {
72
- const $report = import_typia.createValidate.report(errors);
73
- ((input2, _path, _exceptionable = true) => {
74
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
75
- path: _path2 + ".data",
76
- expected: "Array<DiffMethDataEntry>",
77
- value: input3.data
78
- })) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
79
- path: _path2 + ".data[" + _index1 + "]",
80
- expected: "DiffMethDataEntry",
81
- value: elem
82
- })) && $vo1(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
83
- path: _path2 + ".data[" + _index1 + "]",
84
- expected: "DiffMethDataEntry",
85
- value: elem
86
- })).every((flag) => flag) || $report(_exceptionable2, {
87
- path: _path2 + ".data",
88
- expected: "Array<DiffMethDataEntry>",
89
- value: input3.data
90
- }), "number" === typeof input3.sample_size1 || $report(_exceptionable2, {
91
- path: _path2 + ".sample_size1",
92
- expected: "number",
93
- value: input3.sample_size1
94
- }), "number" === typeof input3.sample_size2 || $report(_exceptionable2, {
95
- path: _path2 + ".sample_size2",
96
- expected: "number",
97
- value: input3.sample_size2
98
- })].every((flag) => flag);
99
- const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.promoter_id || $report(_exceptionable2, {
100
- path: _path2 + ".promoter_id",
101
- expected: "string",
102
- value: input3.promoter_id
103
- }), "string" === typeof input3.gene_name || $report(_exceptionable2, {
104
- path: _path2 + ".gene_name",
105
- expected: "string",
106
- value: input3.gene_name
107
- }), "string" === typeof input3.chr || $report(_exceptionable2, {
108
- path: _path2 + ".chr",
109
- expected: "string",
110
- value: input3.chr
111
- }), "number" === typeof input3.start || $report(_exceptionable2, {
112
- path: _path2 + ".start",
113
- expected: "number",
114
- value: input3.start
115
- }), "number" === typeof input3.stop || $report(_exceptionable2, {
116
- path: _path2 + ".stop",
117
- expected: "number",
118
- value: input3.stop
119
- }), "number" === typeof input3.fold_change || $report(_exceptionable2, {
120
- path: _path2 + ".fold_change",
121
- expected: "number",
122
- value: input3.fold_change
123
- }), "number" === typeof input3.original_p_value || $report(_exceptionable2, {
124
- path: _path2 + ".original_p_value",
125
- expected: "number",
126
- value: input3.original_p_value
127
- }), "number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
128
- path: _path2 + ".adjusted_p_value",
129
- expected: "number",
130
- value: input3.adjusted_p_value
131
- })].every((flag) => flag);
132
- return ("object" === typeof input2 && null !== input2 || $report(true, {
133
- path: _path + "",
134
- expected: "DiffMethResponse",
135
- value: input2
136
- })) && $vo0(input2, _path + "", true) || $report(true, {
137
- path: _path + "",
138
- expected: "DiffMethResponse",
139
- value: input2
140
- });
141
- })(input, "$input", true);
142
- }
143
- const success = 0 === errors.length;
144
- return {
145
- success,
146
- errors,
147
- data: success ? input : void 0
148
- };
149
- };
150
-
151
- export {
152
- diffMethPayload,
153
- validDiffMethRequest,
154
- validDiffMethResponse
155
- };
@@ -1,199 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-YNHC5SXO.js";
5
-
6
- // dist/termdb.DE.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/termdb.DE.ts
10
- var diffExpPayload = {
11
- request: {
12
- typeId: "DERequest"
13
- },
14
- response: {
15
- typeId: "DEResponse"
16
- // will combine this with type checker
17
- //valid: (t) => {}
18
- }
19
- };
20
-
21
- // dist/termdb.DE.ts
22
- var validDERequest = (input) => {
23
- const errors = [];
24
- const __is = (input2) => {
25
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && "number" === typeof input3.min_count && "number" === typeof input3.min_total_count && "number" === typeof input3.cpm_cutoff && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && true && (void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis);
26
- return "object" === typeof input2 && null !== input2 && $io0(input2);
27
- };
28
- if (false === __is(input)) {
29
- const $report = import_typia.createValidate.report(errors);
30
- ((input2, _path, _exceptionable = true) => {
31
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
32
- path: _path2 + ".genome",
33
- expected: "string",
34
- value: input3.genome
35
- }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
36
- path: _path2 + ".dslabel",
37
- expected: "string",
38
- value: input3.dslabel
39
- }), true, "number" === typeof input3.min_count || $report(_exceptionable2, {
40
- path: _path2 + ".min_count",
41
- expected: "number",
42
- value: input3.min_count
43
- }), "number" === typeof input3.min_total_count || $report(_exceptionable2, {
44
- path: _path2 + ".min_total_count",
45
- expected: "number",
46
- value: input3.min_total_count
47
- }), "number" === typeof input3.cpm_cutoff || $report(_exceptionable2, {
48
- path: _path2 + ".cpm_cutoff",
49
- expected: "number",
50
- value: input3.cpm_cutoff
51
- }), "text" === input3.storage_type || "HDF5" === input3.storage_type || $report(_exceptionable2, {
52
- path: _path2 + ".storage_type",
53
- expected: '("HDF5" | "text")',
54
- value: input3.storage_type
55
- }), void 0 === input3.method || "string" === typeof input3.method || $report(_exceptionable2, {
56
- path: _path2 + ".method",
57
- expected: "(string | undefined)",
58
- value: input3.method
59
- }), true, true, void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis || $report(_exceptionable2, {
60
- path: _path2 + ".preAnalysis",
61
- expected: "(boolean | undefined)",
62
- value: input3.preAnalysis
63
- })].every((flag) => flag);
64
- return ("object" === typeof input2 && null !== input2 || $report(true, {
65
- path: _path + "",
66
- expected: "DERequest",
67
- value: input2
68
- })) && $vo0(input2, _path + "", true) || $report(true, {
69
- path: _path + "",
70
- expected: "DERequest",
71
- value: input2
72
- });
73
- })(input, "$input", true);
74
- }
75
- const success = 0 === errors.length;
76
- return {
77
- success,
78
- errors,
79
- data: success ? input : void 0
80
- };
81
- };
82
- var validDEResponse = (input) => {
83
- const errors = [];
84
- const __is = (input2) => {
85
- const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2 && "string" === typeof input3.method && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.bcv || "number" === typeof input3.bcv);
86
- const $io1 = (input3) => "number" === typeof input3.adjusted_p_value && "number" === typeof input3.original_p_value && "number" === typeof input3.fold_change && "string" === typeof input3.gene_id && "string" === typeof input3.gene_name;
87
- const $io2 = (input3) => "string" === typeof input3.src && "number" === typeof input3.size && "string" === typeof input3.key;
88
- return "object" === typeof input2 && null !== input2 && $io0(input2);
89
- };
90
- if (false === __is(input)) {
91
- const $report = import_typia.createValidate.report(errors);
92
- ((input2, _path, _exceptionable = true) => {
93
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
94
- path: _path2 + ".data",
95
- expected: "Array<DataEntry>",
96
- value: input3.data
97
- })) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
98
- path: _path2 + ".data[" + _index1 + "]",
99
- expected: "DataEntry",
100
- value: elem
101
- })) && $vo1(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
102
- path: _path2 + ".data[" + _index1 + "]",
103
- expected: "DataEntry",
104
- value: elem
105
- })).every((flag) => flag) || $report(_exceptionable2, {
106
- path: _path2 + ".data",
107
- expected: "Array<DataEntry>",
108
- value: input3.data
109
- }), "number" === typeof input3.sample_size1 || $report(_exceptionable2, {
110
- path: _path2 + ".sample_size1",
111
- expected: "number",
112
- value: input3.sample_size1
113
- }), "number" === typeof input3.sample_size2 || $report(_exceptionable2, {
114
- path: _path2 + ".sample_size2",
115
- expected: "number",
116
- value: input3.sample_size2
117
- }), "string" === typeof input3.method || $report(_exceptionable2, {
118
- path: _path2 + ".method",
119
- expected: "string",
120
- value: input3.method
121
- }), void 0 === input3.images || (Array.isArray(input3.images) || $report(_exceptionable2, {
122
- path: _path2 + ".images",
123
- expected: "(Array<DEImage> | undefined)",
124
- value: input3.images
125
- })) && input3.images.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
126
- path: _path2 + ".images[" + _index2 + "]",
127
- expected: "DEImage",
128
- value: elem
129
- })) && $vo2(elem, _path2 + ".images[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
130
- path: _path2 + ".images[" + _index2 + "]",
131
- expected: "DEImage",
132
- value: elem
133
- })).every((flag) => flag) || $report(_exceptionable2, {
134
- path: _path2 + ".images",
135
- expected: "(Array<DEImage> | undefined)",
136
- value: input3.images
137
- }), void 0 === input3.bcv || "number" === typeof input3.bcv || $report(_exceptionable2, {
138
- path: _path2 + ".bcv",
139
- expected: "(number | undefined)",
140
- value: input3.bcv
141
- })].every((flag) => flag);
142
- const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
143
- path: _path2 + ".adjusted_p_value",
144
- expected: "number",
145
- value: input3.adjusted_p_value
146
- }), "number" === typeof input3.original_p_value || $report(_exceptionable2, {
147
- path: _path2 + ".original_p_value",
148
- expected: "number",
149
- value: input3.original_p_value
150
- }), "number" === typeof input3.fold_change || $report(_exceptionable2, {
151
- path: _path2 + ".fold_change",
152
- expected: "number",
153
- value: input3.fold_change
154
- }), "string" === typeof input3.gene_id || $report(_exceptionable2, {
155
- path: _path2 + ".gene_id",
156
- expected: "string",
157
- value: input3.gene_id
158
- }), "string" === typeof input3.gene_name || $report(_exceptionable2, {
159
- path: _path2 + ".gene_name",
160
- expected: "string",
161
- value: input3.gene_name
162
- })].every((flag) => flag);
163
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.src || $report(_exceptionable2, {
164
- path: _path2 + ".src",
165
- expected: "string",
166
- value: input3.src
167
- }), "number" === typeof input3.size || $report(_exceptionable2, {
168
- path: _path2 + ".size",
169
- expected: "number",
170
- value: input3.size
171
- }), "string" === typeof input3.key || $report(_exceptionable2, {
172
- path: _path2 + ".key",
173
- expected: "string",
174
- value: input3.key
175
- })].every((flag) => flag);
176
- return ("object" === typeof input2 && null !== input2 || $report(true, {
177
- path: _path + "",
178
- expected: "DEResponse",
179
- value: input2
180
- })) && $vo0(input2, _path + "", true) || $report(true, {
181
- path: _path + "",
182
- expected: "DEResponse",
183
- value: input2
184
- });
185
- })(input, "$input", true);
186
- }
187
- const success = 0 === errors.length;
188
- return {
189
- success,
190
- errors,
191
- data: success ? input : void 0
192
- };
193
- };
194
-
195
- export {
196
- diffExpPayload,
197
- validDERequest,
198
- validDEResponse
199
- };