@sjcrh/proteinpaint-types 2.139.1 → 2.140.1-2
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/aiProjectAdmin.js +1 -1
- package/dist/chunk-TMQI47YT.js +189 -0
- package/dist/index.js +31 -39
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/routes/aiProjectAdmin.ts +15 -6
- package/src/terms/geneExpression.ts +2 -1
- package/dist/aiProjectList.js +0 -11
- package/dist/chunk-4KJDCFS4.js +0 -123
- package/dist/chunk-EAHOJPLM.js +0 -96
- package/src/routes/aiProjectList.ts +0 -20
package/dist/aiProjectAdmin.js
CHANGED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-CNSSF43V.js";
|
|
5
|
+
|
|
6
|
+
// dist/aiProjectAdmin.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/aiProjectAdmin.ts
|
|
10
|
+
var aiProjectAdminPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "AIProjectAdminRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "AIProjectAdminResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/aiProjectAdmin.ts
|
|
20
|
+
var validAIProjectAdminRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("list" === input3["for"] || "admin" === input3["for"] || "images" === input3["for"]) && (void 0 === input3.project || "object" === typeof input3.project && null !== input3.project && $io1(input3.project));
|
|
24
|
+
const $io1 = (input3) => "string" === typeof input3.name && (void 0 === input3.id || "number" === typeof input3.id) && (void 0 === input3.filter || "string" === typeof input3.filter) && (void 0 === input3.classes || Array.isArray(input3.classes)) && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem));
|
|
25
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
26
|
+
};
|
|
27
|
+
if (false === __is(input)) {
|
|
28
|
+
const $report = import_typia.createValidate.report(errors);
|
|
29
|
+
((input2, _path, _exceptionable = true) => {
|
|
30
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
31
|
+
path: _path2 + ".genome",
|
|
32
|
+
expected: "string",
|
|
33
|
+
value: input3.genome
|
|
34
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
35
|
+
path: _path2 + ".dslabel",
|
|
36
|
+
expected: "string",
|
|
37
|
+
value: input3.dslabel
|
|
38
|
+
}), "list" === input3["for"] || "admin" === input3["for"] || "images" === input3["for"] || $report(_exceptionable2, {
|
|
39
|
+
path: _path2 + '["for"]',
|
|
40
|
+
expected: '("admin" | "images" | "list")',
|
|
41
|
+
value: input3["for"]
|
|
42
|
+
}), void 0 === input3.project || ("object" === typeof input3.project && null !== input3.project || $report(_exceptionable2, {
|
|
43
|
+
path: _path2 + ".project",
|
|
44
|
+
expected: "(__type | undefined)",
|
|
45
|
+
value: input3.project
|
|
46
|
+
})) && $vo1(input3.project, _path2 + ".project", _exceptionable2) || $report(_exceptionable2, {
|
|
47
|
+
path: _path2 + ".project",
|
|
48
|
+
expected: "(__type | undefined)",
|
|
49
|
+
value: input3.project
|
|
50
|
+
})].every((flag) => flag);
|
|
51
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".name",
|
|
53
|
+
expected: "string",
|
|
54
|
+
value: input3.name
|
|
55
|
+
}), void 0 === input3.id || "number" === typeof input3.id || $report(_exceptionable2, {
|
|
56
|
+
path: _path2 + ".id",
|
|
57
|
+
expected: "(number | undefined)",
|
|
58
|
+
value: input3.id
|
|
59
|
+
}), void 0 === input3.filter || "string" === typeof input3.filter || $report(_exceptionable2, {
|
|
60
|
+
path: _path2 + ".filter",
|
|
61
|
+
expected: "(string | undefined)",
|
|
62
|
+
value: input3.filter
|
|
63
|
+
}), void 0 === input3.classes || Array.isArray(input3.classes) || $report(_exceptionable2, {
|
|
64
|
+
path: _path2 + ".classes",
|
|
65
|
+
expected: "(Array<any> | undefined)",
|
|
66
|
+
value: input3.classes
|
|
67
|
+
}), void 0 === input3.images || (Array.isArray(input3.images) || $report(_exceptionable2, {
|
|
68
|
+
path: _path2 + ".images",
|
|
69
|
+
expected: "(Array<string> | undefined)",
|
|
70
|
+
value: input3.images
|
|
71
|
+
})) && input3.images.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
|
|
72
|
+
path: _path2 + ".images[" + _index1 + "]",
|
|
73
|
+
expected: "string",
|
|
74
|
+
value: elem
|
|
75
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
76
|
+
path: _path2 + ".images",
|
|
77
|
+
expected: "(Array<string> | undefined)",
|
|
78
|
+
value: input3.images
|
|
79
|
+
})].every((flag) => flag);
|
|
80
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
81
|
+
path: _path + "",
|
|
82
|
+
expected: "AIProjectAdminRequest",
|
|
83
|
+
value: input2
|
|
84
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
85
|
+
path: _path + "",
|
|
86
|
+
expected: "AIProjectAdminRequest",
|
|
87
|
+
value: input2
|
|
88
|
+
});
|
|
89
|
+
})(input, "$input", true);
|
|
90
|
+
}
|
|
91
|
+
const success = 0 === errors.length;
|
|
92
|
+
return {
|
|
93
|
+
success,
|
|
94
|
+
errors,
|
|
95
|
+
data: success ? input : void 0
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
var validAIProjectAdminResponse = (input) => {
|
|
99
|
+
const errors = [];
|
|
100
|
+
const __is = (input2) => {
|
|
101
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.data || Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
102
|
+
const $io1 = (input3) => Array.isArray(input3.cols) && Array.isArray(input3.rows) && (Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem));
|
|
103
|
+
return null !== input2 && void 0 !== input2 && (Array.isArray(input2) && input2.every((elem) => "string" === typeof elem) || "object" === typeof input2 && null !== input2 && $io0(input2));
|
|
104
|
+
};
|
|
105
|
+
if (false === __is(input)) {
|
|
106
|
+
const $report = import_typia.createValidate.report(errors);
|
|
107
|
+
((input2, _path, _exceptionable = true) => {
|
|
108
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
109
|
+
path: _path2 + ".status",
|
|
110
|
+
expected: '("error" | "ok")',
|
|
111
|
+
value: input3.status
|
|
112
|
+
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".error",
|
|
114
|
+
expected: "(string | undefined)",
|
|
115
|
+
value: input3.error
|
|
116
|
+
}), void 0 === input3.data || (Array.isArray(input3.data) || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + ".data",
|
|
118
|
+
expected: "(Array<__type> | undefined)",
|
|
119
|
+
value: input3.data
|
|
120
|
+
})) && input3.data.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".data[" + _index2 + "]",
|
|
122
|
+
expected: "__type.o1",
|
|
123
|
+
value: elem
|
|
124
|
+
})) && $vo1(elem, _path2 + ".data[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
125
|
+
path: _path2 + ".data[" + _index2 + "]",
|
|
126
|
+
expected: "__type.o1",
|
|
127
|
+
value: elem
|
|
128
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
129
|
+
path: _path2 + ".data",
|
|
130
|
+
expected: "(Array<__type> | undefined)",
|
|
131
|
+
value: input3.data
|
|
132
|
+
})].every((flag) => flag);
|
|
133
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [Array.isArray(input3.cols) || $report(_exceptionable2, {
|
|
134
|
+
path: _path2 + ".cols",
|
|
135
|
+
expected: "Array<any>",
|
|
136
|
+
value: input3.cols
|
|
137
|
+
}), Array.isArray(input3.rows) || $report(_exceptionable2, {
|
|
138
|
+
path: _path2 + ".rows",
|
|
139
|
+
expected: "Array<any>",
|
|
140
|
+
value: input3.rows
|
|
141
|
+
}), (Array.isArray(input3.images) || $report(_exceptionable2, {
|
|
142
|
+
path: _path2 + ".images",
|
|
143
|
+
expected: "Array<string>",
|
|
144
|
+
value: input3.images
|
|
145
|
+
})) && input3.images.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
|
|
146
|
+
path: _path2 + ".images[" + _index3 + "]",
|
|
147
|
+
expected: "string",
|
|
148
|
+
value: elem
|
|
149
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
150
|
+
path: _path2 + ".images",
|
|
151
|
+
expected: "Array<string>",
|
|
152
|
+
value: input3.images
|
|
153
|
+
})].every((flag) => flag);
|
|
154
|
+
return (null !== input2 || $report(true, {
|
|
155
|
+
path: _path + "",
|
|
156
|
+
expected: "(Array<string> | __type)",
|
|
157
|
+
value: input2
|
|
158
|
+
})) && (void 0 !== input2 || $report(true, {
|
|
159
|
+
path: _path + "",
|
|
160
|
+
expected: "(Array<string> | __type)",
|
|
161
|
+
value: input2
|
|
162
|
+
})) && (Array.isArray(input2) && input2.map((elem, _index1) => "string" === typeof elem || $report(true, {
|
|
163
|
+
path: _path + "[" + _index1 + "]",
|
|
164
|
+
expected: "string",
|
|
165
|
+
value: elem
|
|
166
|
+
})).every((flag) => flag) || "object" === typeof input2 && null !== input2 && $vo0(input2, _path + "", true) || $report(true, {
|
|
167
|
+
path: _path + "",
|
|
168
|
+
expected: "(Array<string> | __type)",
|
|
169
|
+
value: input2
|
|
170
|
+
}) || $report(true, {
|
|
171
|
+
path: _path + "",
|
|
172
|
+
expected: "(Array<string> | __type)",
|
|
173
|
+
value: input2
|
|
174
|
+
}));
|
|
175
|
+
})(input, "$input", true);
|
|
176
|
+
}
|
|
177
|
+
const success = 0 === errors.length;
|
|
178
|
+
return {
|
|
179
|
+
success,
|
|
180
|
+
errors,
|
|
181
|
+
data: success ? input : void 0
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export {
|
|
186
|
+
aiProjectAdminPayload,
|
|
187
|
+
validAIProjectAdminRequest,
|
|
188
|
+
validAIProjectAdminResponse
|
|
189
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validWSISamplesRequest,
|
|
3
|
-
validWSISamplesResponse,
|
|
4
|
-
wsiSamplesPayload
|
|
5
|
-
} from "./chunk-W6NLM363.js";
|
|
6
|
-
import {
|
|
7
|
-
termChildrenPayload,
|
|
8
|
-
validTermChildrenRequest,
|
|
9
|
-
validTermChildrenResponse
|
|
10
|
-
} from "./chunk-HKGWC7OO.js";
|
|
11
1
|
import {
|
|
12
2
|
termsByIdsPayload,
|
|
13
3
|
validTermsByIdsRequest,
|
|
@@ -44,10 +34,10 @@ import {
|
|
|
44
34
|
wsImagesPayload
|
|
45
35
|
} from "./chunk-CQDDRHRY.js";
|
|
46
36
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
37
|
+
validWSISamplesRequest,
|
|
38
|
+
validWSISamplesResponse,
|
|
39
|
+
wsiSamplesPayload
|
|
40
|
+
} from "./chunk-W6NLM363.js";
|
|
51
41
|
import {
|
|
52
42
|
ProfileScoresPayload,
|
|
53
43
|
validProfileScoresRequest,
|
|
@@ -84,10 +74,10 @@ import {
|
|
|
84
74
|
validTermdbSingleCellSamplesResponse
|
|
85
75
|
} from "./chunk-LPBYQJG4.js";
|
|
86
76
|
import {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} from "./chunk-
|
|
77
|
+
termChildrenPayload,
|
|
78
|
+
validTermChildrenRequest,
|
|
79
|
+
validTermChildrenResponse
|
|
80
|
+
} from "./chunk-HKGWC7OO.js";
|
|
91
81
|
import {
|
|
92
82
|
termdbClusterPayload,
|
|
93
83
|
validTermdbClusterRequest,
|
|
@@ -124,10 +114,10 @@ import {
|
|
|
124
114
|
validPercentileResponse
|
|
125
115
|
} from "./chunk-4S36DRJ4.js";
|
|
126
116
|
import {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
117
|
+
ProfileFormScoresPayload,
|
|
118
|
+
validProfileFormScoresRequest,
|
|
119
|
+
validProfileFormScoresResponse
|
|
120
|
+
} from "./chunk-E5MPHTIA.js";
|
|
131
121
|
import {
|
|
132
122
|
ntseqPayload,
|
|
133
123
|
validNtseqRequest,
|
|
@@ -164,10 +154,10 @@ import {
|
|
|
164
154
|
validBoxPlotResponse
|
|
165
155
|
} from "./chunk-F2ZZ5J3F.js";
|
|
166
156
|
import {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} from "./chunk-
|
|
157
|
+
termdbCategoriesPayload,
|
|
158
|
+
validCategoriesRequest,
|
|
159
|
+
validCategoriesResponse
|
|
160
|
+
} from "./chunk-ZHCVV36H.js";
|
|
171
161
|
import {
|
|
172
162
|
GRIN2Payload,
|
|
173
163
|
validGRIN2Request,
|
|
@@ -199,10 +189,10 @@ import {
|
|
|
199
189
|
validimgResponse
|
|
200
190
|
} from "./chunk-KVUJPR42.js";
|
|
201
191
|
import {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
} from "./chunk-
|
|
192
|
+
isoformlstPayload,
|
|
193
|
+
validIsoformLstRequest,
|
|
194
|
+
validIsoformLstResponse
|
|
195
|
+
} from "./chunk-B43GFRT4.js";
|
|
206
196
|
import {
|
|
207
197
|
dsDataPayload,
|
|
208
198
|
validDsDataRequest,
|
|
@@ -241,16 +231,16 @@ import {
|
|
|
241
231
|
validGenesetEnrichmentRequest,
|
|
242
232
|
validGenesetEnrichmentResponse
|
|
243
233
|
} from "./chunk-HUMZDPUU.js";
|
|
234
|
+
import {
|
|
235
|
+
genesetOverrepresentationPayload,
|
|
236
|
+
validGenesetOverrepresentationRequest,
|
|
237
|
+
validGenesetOverrepresentationResponse
|
|
238
|
+
} from "./chunk-VMSVBNM6.js";
|
|
244
239
|
import {
|
|
245
240
|
aiProjectAdminPayload,
|
|
246
241
|
validAIProjectAdminRequest,
|
|
247
242
|
validAIProjectAdminResponse
|
|
248
|
-
} from "./chunk-
|
|
249
|
-
import {
|
|
250
|
-
aiProjectListPayload,
|
|
251
|
-
validAIProjectListRequest,
|
|
252
|
-
validAIProjectListResponse
|
|
253
|
-
} from "./chunk-EAHOJPLM.js";
|
|
243
|
+
} from "./chunk-TMQI47YT.js";
|
|
254
244
|
import {
|
|
255
245
|
brainImagingPayload,
|
|
256
246
|
validBrainImagingRequest,
|
|
@@ -278,6 +268,11 @@ import {
|
|
|
278
268
|
validCorrelationVolcanoRequest,
|
|
279
269
|
validCorrelationVolcanoResponse
|
|
280
270
|
} from "./chunk-34LXTZYA.js";
|
|
271
|
+
import {
|
|
272
|
+
datasetPayload,
|
|
273
|
+
validDatasetRequest,
|
|
274
|
+
validDatasetResponse
|
|
275
|
+
} from "./chunk-5S3UWYSK.js";
|
|
281
276
|
import "./chunk-CNSSF43V.js";
|
|
282
277
|
export {
|
|
283
278
|
CorrelationVolcanoPayload,
|
|
@@ -287,7 +282,6 @@ export {
|
|
|
287
282
|
ProfileFormScoresPayload,
|
|
288
283
|
ProfileScoresPayload,
|
|
289
284
|
aiProjectAdminPayload,
|
|
290
|
-
aiProjectListPayload,
|
|
291
285
|
boxplotPayload,
|
|
292
286
|
brainImagingPayload,
|
|
293
287
|
brainImagingSamplesPayload,
|
|
@@ -335,8 +329,6 @@ export {
|
|
|
335
329
|
topMutatedGenePayload,
|
|
336
330
|
validAIProjectAdminRequest,
|
|
337
331
|
validAIProjectAdminResponse,
|
|
338
|
-
validAIProjectListRequest,
|
|
339
|
-
validAIProjectListResponse,
|
|
340
332
|
validBoxPlotRequest,
|
|
341
333
|
validBoxPlotResponse,
|
|
342
334
|
validBrainImagingRequest,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './termsetting.ts'
|
|
|
5
5
|
export * from './filter.ts'
|
|
6
6
|
export * from './termdb.matrix.ts'
|
|
7
7
|
export * from './routes/routeApi.ts'
|
|
8
|
-
export * from './routes/aiProjectList.ts'
|
|
9
8
|
export * from './routes/aiProjectAdmin.ts'
|
|
10
9
|
export * from './routes/brainImaging.ts'
|
|
11
10
|
export * from './routes/brainImagingSamples.ts'
|
|
@@ -3,18 +3,27 @@ import type { RoutePayload } from './routeApi.ts'
|
|
|
3
3
|
export type AIProjectAdminRequest = {
|
|
4
4
|
genome: string
|
|
5
5
|
dslabel: string
|
|
6
|
-
|
|
6
|
+
/** list: get entire list of projects from db
|
|
7
|
+
* admin: edit, add, or delete projects from db
|
|
8
|
+
*/
|
|
9
|
+
for: 'list' | 'admin' | 'images'
|
|
10
|
+
/** required for 'project' and 'selection' requests */
|
|
11
|
+
project?: {
|
|
7
12
|
name: string
|
|
8
13
|
id?: number
|
|
9
|
-
|
|
14
|
+
filter?: string
|
|
10
15
|
classes?: any[]
|
|
16
|
+
images?: string[]
|
|
11
17
|
}
|
|
12
18
|
}
|
|
13
19
|
|
|
14
|
-
export type AIProjectAdminResponse =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
export type AIProjectAdminResponse =
|
|
21
|
+
| {
|
|
22
|
+
status: 'ok' | 'error'
|
|
23
|
+
error?: string
|
|
24
|
+
data?: { cols: any[]; rows: any[]; images: string[] }[]
|
|
25
|
+
}
|
|
26
|
+
| string[]
|
|
18
27
|
|
|
19
28
|
export const aiProjectAdminPayload: RoutePayload = {
|
|
20
29
|
request: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TermWrapper } from './
|
|
1
|
+
import type { TermWrapper } from './updated-types.ts'
|
|
2
2
|
import type { NumericTerm, NumericQ } from './numeric.ts'
|
|
3
3
|
import type { TermSettingInstance } from '../termsetting.ts'
|
|
4
4
|
|
|
@@ -18,6 +18,7 @@ export type GeneExpressionQ = NumericQ & {
|
|
|
18
18
|
export type GeneExpressionTW = TermWrapper & {
|
|
19
19
|
q: GeneExpressionQ
|
|
20
20
|
term: GeneExpressionTerm
|
|
21
|
+
type: 'NumTWRegularBin' | 'NumTWCustomBin' | 'NumTWCont' | 'NumTWSpline'
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export type GeneExpressionTerm = NumericTerm & {
|
package/dist/aiProjectList.js
DELETED
package/dist/chunk-4KJDCFS4.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__toESM,
|
|
3
|
-
require_lib
|
|
4
|
-
} from "./chunk-CNSSF43V.js";
|
|
5
|
-
|
|
6
|
-
// dist/aiProjectAdmin.ts
|
|
7
|
-
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
-
|
|
9
|
-
// src/routes/aiProjectAdmin.ts
|
|
10
|
-
var aiProjectAdminPayload = {
|
|
11
|
-
request: {
|
|
12
|
-
typeId: "AIProjectAdminRequest"
|
|
13
|
-
},
|
|
14
|
-
response: {
|
|
15
|
-
typeId: "AIProjectAdminResponse"
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// dist/aiProjectAdmin.ts
|
|
20
|
-
var validAIProjectAdminRequest = (input) => {
|
|
21
|
-
const errors = [];
|
|
22
|
-
const __is = (input2) => {
|
|
23
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.project && null !== input3.project && $io1(input3.project));
|
|
24
|
-
const $io1 = (input3) => "string" === typeof input3.name && (void 0 === input3.id || "number" === typeof input3.id) && (void 0 === input3.fitler || "string" === typeof input3.fitler) && (void 0 === input3.classes || Array.isArray(input3.classes));
|
|
25
|
-
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
26
|
-
};
|
|
27
|
-
if (false === __is(input)) {
|
|
28
|
-
const $report = import_typia.createValidate.report(errors);
|
|
29
|
-
((input2, _path, _exceptionable = true) => {
|
|
30
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
31
|
-
path: _path2 + ".genome",
|
|
32
|
-
expected: "string",
|
|
33
|
-
value: input3.genome
|
|
34
|
-
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
35
|
-
path: _path2 + ".dslabel",
|
|
36
|
-
expected: "string",
|
|
37
|
-
value: input3.dslabel
|
|
38
|
-
}), ("object" === typeof input3.project && null !== input3.project || $report(_exceptionable2, {
|
|
39
|
-
path: _path2 + ".project",
|
|
40
|
-
expected: "__type",
|
|
41
|
-
value: input3.project
|
|
42
|
-
})) && $vo1(input3.project, _path2 + ".project", _exceptionable2) || $report(_exceptionable2, {
|
|
43
|
-
path: _path2 + ".project",
|
|
44
|
-
expected: "__type",
|
|
45
|
-
value: input3.project
|
|
46
|
-
})].every((flag) => flag);
|
|
47
|
-
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
48
|
-
path: _path2 + ".name",
|
|
49
|
-
expected: "string",
|
|
50
|
-
value: input3.name
|
|
51
|
-
}), void 0 === input3.id || "number" === typeof input3.id || $report(_exceptionable2, {
|
|
52
|
-
path: _path2 + ".id",
|
|
53
|
-
expected: "(number | undefined)",
|
|
54
|
-
value: input3.id
|
|
55
|
-
}), void 0 === input3.fitler || "string" === typeof input3.fitler || $report(_exceptionable2, {
|
|
56
|
-
path: _path2 + ".fitler",
|
|
57
|
-
expected: "(string | undefined)",
|
|
58
|
-
value: input3.fitler
|
|
59
|
-
}), void 0 === input3.classes || Array.isArray(input3.classes) || $report(_exceptionable2, {
|
|
60
|
-
path: _path2 + ".classes",
|
|
61
|
-
expected: "(Array<any> | undefined)",
|
|
62
|
-
value: input3.classes
|
|
63
|
-
})].every((flag) => flag);
|
|
64
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
65
|
-
path: _path + "",
|
|
66
|
-
expected: "AIProjectAdminRequest",
|
|
67
|
-
value: input2
|
|
68
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
69
|
-
path: _path + "",
|
|
70
|
-
expected: "AIProjectAdminRequest",
|
|
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 validAIProjectAdminResponse = (input) => {
|
|
83
|
-
const errors = [];
|
|
84
|
-
const __is = (input2) => {
|
|
85
|
-
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
86
|
-
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
87
|
-
};
|
|
88
|
-
if (false === __is(input)) {
|
|
89
|
-
const $report = import_typia.createValidate.report(errors);
|
|
90
|
-
((input2, _path, _exceptionable = true) => {
|
|
91
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
92
|
-
path: _path2 + ".status",
|
|
93
|
-
expected: '("error" | "ok")',
|
|
94
|
-
value: input3.status
|
|
95
|
-
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
96
|
-
path: _path2 + ".error",
|
|
97
|
-
expected: "(string | undefined)",
|
|
98
|
-
value: input3.error
|
|
99
|
-
})].every((flag) => flag);
|
|
100
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
101
|
-
path: _path + "",
|
|
102
|
-
expected: "AIProjectAdminResponse",
|
|
103
|
-
value: input2
|
|
104
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
105
|
-
path: _path + "",
|
|
106
|
-
expected: "AIProjectAdminResponse",
|
|
107
|
-
value: input2
|
|
108
|
-
});
|
|
109
|
-
})(input, "$input", true);
|
|
110
|
-
}
|
|
111
|
-
const success = 0 === errors.length;
|
|
112
|
-
return {
|
|
113
|
-
success,
|
|
114
|
-
errors,
|
|
115
|
-
data: success ? input : void 0
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export {
|
|
120
|
-
aiProjectAdminPayload,
|
|
121
|
-
validAIProjectAdminRequest,
|
|
122
|
-
validAIProjectAdminResponse
|
|
123
|
-
};
|
package/dist/chunk-EAHOJPLM.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__toESM,
|
|
3
|
-
require_lib
|
|
4
|
-
} from "./chunk-CNSSF43V.js";
|
|
5
|
-
|
|
6
|
-
// dist/aiProjectList.ts
|
|
7
|
-
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
-
|
|
9
|
-
// src/routes/aiProjectList.ts
|
|
10
|
-
var aiProjectListPayload = {
|
|
11
|
-
request: {
|
|
12
|
-
typeId: "AIProjectListRequest"
|
|
13
|
-
},
|
|
14
|
-
response: {
|
|
15
|
-
typeId: "AIProjectListResponse"
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// dist/aiProjectList.ts
|
|
20
|
-
var validAIProjectListRequest = (input) => {
|
|
21
|
-
const errors = [];
|
|
22
|
-
const __is = (input2) => {
|
|
23
|
-
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel);
|
|
24
|
-
};
|
|
25
|
-
if (false === __is(input)) {
|
|
26
|
-
const $report = import_typia.createValidate.report(errors);
|
|
27
|
-
((input2, _path, _exceptionable = true) => {
|
|
28
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
29
|
-
path: _path2 + ".genome",
|
|
30
|
-
expected: "string",
|
|
31
|
-
value: input3.genome
|
|
32
|
-
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
33
|
-
path: _path2 + ".dslabel",
|
|
34
|
-
expected: "string",
|
|
35
|
-
value: input3.dslabel
|
|
36
|
-
})].every((flag) => flag);
|
|
37
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
38
|
-
path: _path + "",
|
|
39
|
-
expected: "AIProjectListRequest",
|
|
40
|
-
value: input2
|
|
41
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
42
|
-
path: _path + "",
|
|
43
|
-
expected: "AIProjectListRequest",
|
|
44
|
-
value: input2
|
|
45
|
-
});
|
|
46
|
-
})(input, "$input", true);
|
|
47
|
-
}
|
|
48
|
-
const success = 0 === errors.length;
|
|
49
|
-
return {
|
|
50
|
-
success,
|
|
51
|
-
errors,
|
|
52
|
-
data: success ? input : void 0
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
var validAIProjectListResponse = (input) => {
|
|
56
|
-
const errors = [];
|
|
57
|
-
const __is = (input2) => {
|
|
58
|
-
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
59
|
-
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
60
|
-
};
|
|
61
|
-
if (false === __is(input)) {
|
|
62
|
-
const $report = import_typia.createValidate.report(errors);
|
|
63
|
-
((input2, _path, _exceptionable = true) => {
|
|
64
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
65
|
-
path: _path2 + ".status",
|
|
66
|
-
expected: '("error" | "ok")',
|
|
67
|
-
value: input3.status
|
|
68
|
-
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
69
|
-
path: _path2 + ".error",
|
|
70
|
-
expected: "(string | undefined)",
|
|
71
|
-
value: input3.error
|
|
72
|
-
})].every((flag) => flag);
|
|
73
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
74
|
-
path: _path + "",
|
|
75
|
-
expected: "AIProjectListResponse",
|
|
76
|
-
value: input2
|
|
77
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
78
|
-
path: _path + "",
|
|
79
|
-
expected: "AIProjectListResponse",
|
|
80
|
-
value: input2
|
|
81
|
-
});
|
|
82
|
-
})(input, "$input", true);
|
|
83
|
-
}
|
|
84
|
-
const success = 0 === errors.length;
|
|
85
|
-
return {
|
|
86
|
-
success,
|
|
87
|
-
errors,
|
|
88
|
-
data: success ? input : void 0
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
aiProjectListPayload,
|
|
94
|
-
validAIProjectListRequest,
|
|
95
|
-
validAIProjectListResponse
|
|
96
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type AIProjectListRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
dslabel: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type AIProjectListResponse = {
|
|
9
|
-
status: 'ok' | 'error'
|
|
10
|
-
error?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const aiProjectListPayload: RoutePayload = {
|
|
14
|
-
request: {
|
|
15
|
-
typeId: 'AIProjectListRequest'
|
|
16
|
-
},
|
|
17
|
-
response: {
|
|
18
|
-
typeId: 'AIProjectListResponse'
|
|
19
|
-
}
|
|
20
|
-
}
|