@sjcrh/proteinpaint-types 2.140.1-0 → 2.140.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.
Files changed (39) hide show
  1. package/dist/aiProjectAdmin.js +1 -1
  2. package/dist/brainImaging.js +1 -1
  3. package/dist/{chunk-KDHGWAOS.js → chunk-2WLN6PMW.js} +575 -367
  4. package/dist/{chunk-G5BYLEJC.js → chunk-AADDTYUL.js} +266 -154
  5. package/dist/{chunk-2QKCLUH3.js → chunk-BWLSDIHM.js} +575 -367
  6. package/dist/{chunk-P3Z422N2.js → chunk-ECF6WSOD.js} +266 -154
  7. package/dist/{chunk-NHELOLDH.js → chunk-EWON4FG5.js} +2401 -644
  8. package/dist/{chunk-ZHCVV36H.js → chunk-FZJ3E7JA.js} +579 -371
  9. package/dist/{chunk-34LXTZYA.js → chunk-IDP5KXE6.js} +632 -424
  10. package/dist/{chunk-HJ7XFSJK.js → chunk-KS74VVON.js} +262 -150
  11. package/dist/{chunk-Y6Z6XAFN.js → chunk-PPFFVFUI.js} +266 -154
  12. package/dist/chunk-TMQI47YT.js +189 -0
  13. package/dist/{chunk-5BKOSJEU.js → chunk-WKT3H4P4.js} +731 -409
  14. package/dist/{chunk-F2ZZ5J3F.js → chunk-XXHHUIEV.js} +575 -367
  15. package/dist/{chunk-4S36DRJ4.js → chunk-ZA3FDGAD.js} +465 -255
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/index.js +42 -50
  18. package/dist/termdb.boxplot.js +1 -1
  19. package/dist/termdb.categories.js +1 -1
  20. package/dist/termdb.cluster.js +1 -1
  21. package/dist/termdb.descrstats.js +1 -1
  22. package/dist/termdb.numericcategories.js +1 -1
  23. package/dist/termdb.percentile.js +1 -1
  24. package/dist/termdb.termsbyids.js +1 -1
  25. package/dist/termdb.topTermsByType.js +1 -1
  26. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  27. package/dist/termdb.violin.js +1 -1
  28. package/package.json +1 -1
  29. package/src/dataset.ts +10 -2
  30. package/src/index.ts +0 -1
  31. package/src/routes/aiProjectAdmin.ts +15 -6
  32. package/src/routes/termdb.cluster.ts +6 -6
  33. package/src/terms/geneExpression.ts +13 -17
  34. package/src/terms/numeric.ts +7 -18
  35. package/src/terms/singleCellGeneExpression.ts +3 -4
  36. package/dist/aiProjectList.js +0 -11
  37. package/dist/chunk-4KJDCFS4.js +0 -123
  38. package/dist/chunk-EAHOJPLM.js +0 -96
  39. package/src/routes/aiProjectList.ts +0 -20
@@ -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
+ };