@sjcrh/proteinpaint-types 2.132.0 → 2.132.1-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.
@@ -452,9 +452,10 @@ var validRunGRIN2Request = (input) => {
452
452
  var validRunGRIN2Response = (input) => {
453
453
  const errors = [];
454
454
  const __is = (input2) => {
455
- const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult));
455
+ const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult)) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing));
456
456
  const $io1 = (input3) => Array.isArray(input3.successful_data) && input3.successful_data.every((elem) => Array.isArray(elem) && elem.every((elem2) => "string" === typeof elem2)) && (Array.isArray(input3.failed_files) && input3.failed_files.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && ("object" === typeof input3.summary && null !== input3.summary && ("number" === typeof input3.summary.total_files && "number" === typeof input3.summary.successful_files && "number" === typeof input3.summary.failed_files));
457
457
  const $io2 = (input3) => "string" === typeof input3.case_id && "string" === typeof input3.data_type && "string" === typeof input3.error_type && "string" === typeof input3.error_details && "number" === typeof input3.attempts_made;
458
+ const $io4 = (input3) => "number" === typeof input3.rustProcessingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
458
459
  return "object" === typeof input2 && null !== input2 && $io0(input2);
459
460
  };
460
461
  if (false === __is(input)) {
@@ -480,6 +481,14 @@ var validRunGRIN2Response = (input) => {
480
481
  path: _path2 + ".rustResult",
481
482
  expected: "(RustGRIN2Result | undefined)",
482
483
  value: input3.rustResult
484
+ }), void 0 === input3.timing || ("object" === typeof input3.timing && null !== input3.timing || $report(_exceptionable2, {
485
+ path: _path2 + ".timing",
486
+ expected: "(__type | undefined)",
487
+ value: input3.timing
488
+ })) && $vo4(input3.timing, _path2 + ".timing", _exceptionable2) || $report(_exceptionable2, {
489
+ path: _path2 + ".timing",
490
+ expected: "(__type | undefined)",
491
+ value: input3.timing
483
492
  })].every((flag) => flag);
484
493
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.successful_data) || $report(_exceptionable2, {
485
494
  path: _path2 + ".successful_data",
@@ -560,6 +569,19 @@ var validRunGRIN2Response = (input) => {
560
569
  expected: "number",
561
570
  value: input3.failed_files
562
571
  })].every((flag) => flag);
572
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.rustProcessingTime || $report(_exceptionable2, {
573
+ path: _path2 + ".rustProcessingTime",
574
+ expected: "number",
575
+ value: input3.rustProcessingTime
576
+ }), "number" === typeof input3.grin2Time || $report(_exceptionable2, {
577
+ path: _path2 + ".grin2Time",
578
+ expected: "number",
579
+ value: input3.grin2Time
580
+ }), "number" === typeof input3.totalTime || $report(_exceptionable2, {
581
+ path: _path2 + ".totalTime",
582
+ expected: "number",
583
+ value: input3.totalTime
584
+ })].every((flag) => flag);
563
585
  return ("object" === typeof input2 && null !== input2 || $report(true, {
564
586
  path: _path + "",
565
587
  expected: "RunGRIN2Response",
@@ -0,0 +1,197 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/profileFormScores.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/profileFormScores.ts
10
+ var ProfileFormScoresPayload = {
11
+ request: {
12
+ typeId: "ProfileFormScoresRequest"
13
+ },
14
+ response: {
15
+ typeId: "ProfileFormScoresResponse"
16
+ }
17
+ };
18
+
19
+ // dist/profileFormScores.ts
20
+ var validProfileFormScoresRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $io0 = (input3) => Array.isArray(input3.scoreTerms) && (void 0 === input3.scScoreTerms || Array.isArray(input3.scScoreTerms)) && true && (void 0 === input3.userSites || Array.isArray(input3.userSites) && input3.userSites.every((elem) => "string" === typeof elem)) && (void 0 === input3.site || "string" === typeof input3.site) && (void 0 === input3.isAggregate || "boolean" === typeof input3.isAggregate);
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) => [Array.isArray(input3.scoreTerms) || $report(_exceptionable2, {
30
+ path: _path2 + ".scoreTerms",
31
+ expected: "Array<any>",
32
+ value: input3.scoreTerms
33
+ }), void 0 === input3.scScoreTerms || Array.isArray(input3.scScoreTerms) || $report(_exceptionable2, {
34
+ path: _path2 + ".scScoreTerms",
35
+ expected: "(Array<any> | undefined)",
36
+ value: input3.scScoreTerms
37
+ }), true, void 0 === input3.userSites || (Array.isArray(input3.userSites) || $report(_exceptionable2, {
38
+ path: _path2 + ".userSites",
39
+ expected: "(Array<string> | undefined)",
40
+ value: input3.userSites
41
+ })) && input3.userSites.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
42
+ path: _path2 + ".userSites[" + _index1 + "]",
43
+ expected: "string",
44
+ value: elem
45
+ })).every((flag) => flag) || $report(_exceptionable2, {
46
+ path: _path2 + ".userSites",
47
+ expected: "(Array<string> | undefined)",
48
+ value: input3.userSites
49
+ }), void 0 === input3.site || "string" === typeof input3.site || $report(_exceptionable2, {
50
+ path: _path2 + ".site",
51
+ expected: "(string | undefined)",
52
+ value: input3.site
53
+ }), void 0 === input3.isAggregate || "boolean" === typeof input3.isAggregate || $report(_exceptionable2, {
54
+ path: _path2 + ".isAggregate",
55
+ expected: "(boolean | undefined)",
56
+ value: input3.isAggregate
57
+ })].every((flag) => flag);
58
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
59
+ path: _path + "",
60
+ expected: "ProfileFormScoresRequest",
61
+ value: input2
62
+ })) && $vo0(input2, _path + "", true) || $report(true, {
63
+ path: _path + "",
64
+ expected: "ProfileFormScoresRequest",
65
+ value: input2
66
+ });
67
+ })(input, "$input", true);
68
+ }
69
+ const success = 0 === errors.length;
70
+ return {
71
+ success,
72
+ errors,
73
+ data: success ? input : void 0
74
+ };
75
+ };
76
+ var validProfileFormScoresResponse = (input) => {
77
+ const errors = [];
78
+ const __is = (input2) => {
79
+ const $join = import_typia.createValidate.join;
80
+ const $io0 = (input3) => "object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) && $io1(input3.term2Score) && (Array.isArray(input3.sites) && input3.sites.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.hospital || "string" === typeof input3.hospital) && "number" === typeof input3.n;
81
+ const $io1 = (input3) => Object.keys(input3).every((key) => {
82
+ const value = input3[key];
83
+ if (void 0 === value)
84
+ return true;
85
+ if (RegExp(/(.*)/).test(key))
86
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
87
+ return true;
88
+ });
89
+ const $io2 = (input3) => Object.keys(input3).every((key) => {
90
+ const value = input3[key];
91
+ if (void 0 === value)
92
+ return true;
93
+ if (RegExp(/(.*)/).test(key))
94
+ return "number" === typeof value;
95
+ return true;
96
+ });
97
+ const $io3 = (input3) => "string" === typeof input3.label && "string" === typeof input3.value;
98
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
99
+ };
100
+ if (false === __is(input)) {
101
+ const $report = import_typia.createValidate.report(errors);
102
+ ((input2, _path, _exceptionable = true) => {
103
+ const $join = import_typia.createValidate.join;
104
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) || $report(_exceptionable2, {
105
+ path: _path2 + ".term2Score",
106
+ expected: "__type",
107
+ value: input3.term2Score
108
+ })) && $vo1(input3.term2Score, _path2 + ".term2Score", _exceptionable2) || $report(_exceptionable2, {
109
+ path: _path2 + ".term2Score",
110
+ expected: "__type",
111
+ value: input3.term2Score
112
+ }), (Array.isArray(input3.sites) || $report(_exceptionable2, {
113
+ path: _path2 + ".sites",
114
+ expected: "Array<__type>",
115
+ value: input3.sites
116
+ })) && input3.sites.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
117
+ path: _path2 + ".sites[" + _index1 + "]",
118
+ expected: "__type.o2",
119
+ value: elem
120
+ })) && $vo3(elem, _path2 + ".sites[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
121
+ path: _path2 + ".sites[" + _index1 + "]",
122
+ expected: "__type.o2",
123
+ value: elem
124
+ })).every((flag) => flag) || $report(_exceptionable2, {
125
+ path: _path2 + ".sites",
126
+ expected: "Array<__type>",
127
+ value: input3.sites
128
+ }), void 0 === input3.hospital || "string" === typeof input3.hospital || $report(_exceptionable2, {
129
+ path: _path2 + ".hospital",
130
+ expected: "(string | undefined)",
131
+ value: input3.hospital
132
+ }), "number" === typeof input3.n || $report(_exceptionable2, {
133
+ path: _path2 + ".n",
134
+ expected: "number",
135
+ value: input3.n
136
+ })].every((flag) => flag);
137
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
138
+ const value = input3[key];
139
+ if (void 0 === value)
140
+ return true;
141
+ if (RegExp(/(.*)/).test(key))
142
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
143
+ path: _path2 + $join(key),
144
+ expected: "__type.o1",
145
+ value
146
+ })) && $vo2(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
147
+ path: _path2 + $join(key),
148
+ expected: "__type.o1",
149
+ value
150
+ });
151
+ return true;
152
+ }).every((flag) => flag)].every((flag) => flag);
153
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
154
+ const value = input3[key];
155
+ if (void 0 === value)
156
+ return true;
157
+ if (RegExp(/(.*)/).test(key))
158
+ return "number" === typeof value || $report(_exceptionable2, {
159
+ path: _path2 + $join(key),
160
+ expected: "number",
161
+ value
162
+ });
163
+ return true;
164
+ }).every((flag) => flag)].every((flag) => flag);
165
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
166
+ path: _path2 + ".label",
167
+ expected: "string",
168
+ value: input3.label
169
+ }), "string" === typeof input3.value || $report(_exceptionable2, {
170
+ path: _path2 + ".value",
171
+ expected: "string",
172
+ value: input3.value
173
+ })].every((flag) => flag);
174
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
175
+ path: _path + "",
176
+ expected: "ProfileFormScoresResponse",
177
+ value: input2
178
+ })) && $vo0(input2, _path + "", true) || $report(true, {
179
+ path: _path + "",
180
+ expected: "ProfileFormScoresResponse",
181
+ value: input2
182
+ });
183
+ })(input, "$input", true);
184
+ }
185
+ const success = 0 === errors.length;
186
+ return {
187
+ success,
188
+ errors,
189
+ data: success ? input : void 0
190
+ };
191
+ };
192
+
193
+ export {
194
+ ProfileFormScoresPayload,
195
+ validProfileFormScoresRequest,
196
+ validProfileFormScoresResponse
197
+ };
@@ -0,0 +1,187 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/profileScores.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/profileScores.ts
10
+ var ProfileScoresPayload = {
11
+ request: {
12
+ typeId: "ProfileScoresRequest"
13
+ },
14
+ response: {
15
+ typeId: "ProfileScoresResponse"
16
+ }
17
+ };
18
+
19
+ // dist/profileScores.ts
20
+ var validProfileScoresRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $io0 = (input3) => Array.isArray(input3.scoreTerms) && input3.scoreTerms.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && true && (void 0 === input3.isRadarFacility || "boolean" === typeof input3.isRadarFacility) && (void 0 === input3.userSites || Array.isArray(input3.userSites) && input3.userSites.every((elem) => "string" === typeof elem)) && (void 0 === input3.site || "string" === typeof input3.site) && (void 0 === input3.isAggregate || "boolean" === typeof input3.isAggregate) && true;
24
+ const $io1 = (input3) => true;
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) => [(Array.isArray(input3.scoreTerms) || $report(_exceptionable2, {
31
+ path: _path2 + ".scoreTerms",
32
+ expected: "Array<__type>",
33
+ value: input3.scoreTerms
34
+ })) && input3.scoreTerms.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
35
+ path: _path2 + ".scoreTerms[" + _index1 + "]",
36
+ expected: "__type",
37
+ value: elem
38
+ })) && $vo1(elem, _path2 + ".scoreTerms[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
39
+ path: _path2 + ".scoreTerms[" + _index1 + "]",
40
+ expected: "__type",
41
+ value: elem
42
+ })).every((flag) => flag) || $report(_exceptionable2, {
43
+ path: _path2 + ".scoreTerms",
44
+ expected: "Array<__type>",
45
+ value: input3.scoreTerms
46
+ }), true, void 0 === input3.isRadarFacility || "boolean" === typeof input3.isRadarFacility || $report(_exceptionable2, {
47
+ path: _path2 + ".isRadarFacility",
48
+ expected: "(boolean | undefined)",
49
+ value: input3.isRadarFacility
50
+ }), void 0 === input3.userSites || (Array.isArray(input3.userSites) || $report(_exceptionable2, {
51
+ path: _path2 + ".userSites",
52
+ expected: "(Array<string> | undefined)",
53
+ value: input3.userSites
54
+ })) && input3.userSites.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
55
+ path: _path2 + ".userSites[" + _index2 + "]",
56
+ expected: "string",
57
+ value: elem
58
+ })).every((flag) => flag) || $report(_exceptionable2, {
59
+ path: _path2 + ".userSites",
60
+ expected: "(Array<string> | undefined)",
61
+ value: input3.userSites
62
+ }), void 0 === input3.site || "string" === typeof input3.site || $report(_exceptionable2, {
63
+ path: _path2 + ".site",
64
+ expected: "(string | undefined)",
65
+ value: input3.site
66
+ }), void 0 === input3.isAggregate || "boolean" === typeof input3.isAggregate || $report(_exceptionable2, {
67
+ path: _path2 + ".isAggregate",
68
+ expected: "(boolean | undefined)",
69
+ value: input3.isAggregate
70
+ }), true].every((flag) => flag);
71
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [true, true].every((flag) => flag);
72
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
73
+ path: _path + "",
74
+ expected: "ProfileScoresRequest",
75
+ value: input2
76
+ })) && $vo0(input2, _path + "", true) || $report(true, {
77
+ path: _path + "",
78
+ expected: "ProfileScoresRequest",
79
+ value: input2
80
+ });
81
+ })(input, "$input", true);
82
+ }
83
+ const success = 0 === errors.length;
84
+ return {
85
+ success,
86
+ errors,
87
+ data: success ? input : void 0
88
+ };
89
+ };
90
+ var validProfileScoresResponse = (input) => {
91
+ const errors = [];
92
+ const __is = (input2) => {
93
+ const $join = import_typia.createValidate.join;
94
+ const $io0 = (input3) => "object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) && $io1(input3.term2Score) && (Array.isArray(input3.sites) && input3.sites.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.hospital || "string" === typeof input3.hospital) && "number" === typeof input3.n;
95
+ const $io1 = (input3) => Object.keys(input3).every((key) => {
96
+ const value = input3[key];
97
+ if (void 0 === value)
98
+ return true;
99
+ if (RegExp(/(.*)/).test(key))
100
+ return "number" === typeof value;
101
+ return true;
102
+ });
103
+ const $io2 = (input3) => "string" === typeof input3.label && "string" === typeof input3.value;
104
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
105
+ };
106
+ if (false === __is(input)) {
107
+ const $report = import_typia.createValidate.report(errors);
108
+ ((input2, _path, _exceptionable = true) => {
109
+ const $join = import_typia.createValidate.join;
110
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) || $report(_exceptionable2, {
111
+ path: _path2 + ".term2Score",
112
+ expected: "__type",
113
+ value: input3.term2Score
114
+ })) && $vo1(input3.term2Score, _path2 + ".term2Score", _exceptionable2) || $report(_exceptionable2, {
115
+ path: _path2 + ".term2Score",
116
+ expected: "__type",
117
+ value: input3.term2Score
118
+ }), (Array.isArray(input3.sites) || $report(_exceptionable2, {
119
+ path: _path2 + ".sites",
120
+ expected: "Array<__type>",
121
+ value: input3.sites
122
+ })) && input3.sites.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
123
+ path: _path2 + ".sites[" + _index1 + "]",
124
+ expected: "__type.o1",
125
+ value: elem
126
+ })) && $vo2(elem, _path2 + ".sites[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
127
+ path: _path2 + ".sites[" + _index1 + "]",
128
+ expected: "__type.o1",
129
+ value: elem
130
+ })).every((flag) => flag) || $report(_exceptionable2, {
131
+ path: _path2 + ".sites",
132
+ expected: "Array<__type>",
133
+ value: input3.sites
134
+ }), void 0 === input3.hospital || "string" === typeof input3.hospital || $report(_exceptionable2, {
135
+ path: _path2 + ".hospital",
136
+ expected: "(string | undefined)",
137
+ value: input3.hospital
138
+ }), "number" === typeof input3.n || $report(_exceptionable2, {
139
+ path: _path2 + ".n",
140
+ expected: "number",
141
+ value: input3.n
142
+ })].every((flag) => flag);
143
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
144
+ const value = input3[key];
145
+ if (void 0 === value)
146
+ return true;
147
+ if (RegExp(/(.*)/).test(key))
148
+ return "number" === typeof value || $report(_exceptionable2, {
149
+ path: _path2 + $join(key),
150
+ expected: "number",
151
+ value
152
+ });
153
+ return true;
154
+ }).every((flag) => flag)].every((flag) => flag);
155
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
156
+ path: _path2 + ".label",
157
+ expected: "string",
158
+ value: input3.label
159
+ }), "string" === typeof input3.value || $report(_exceptionable2, {
160
+ path: _path2 + ".value",
161
+ expected: "string",
162
+ value: input3.value
163
+ })].every((flag) => flag);
164
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
165
+ path: _path + "",
166
+ expected: "ProfileScoresResponse",
167
+ value: input2
168
+ })) && $vo0(input2, _path + "", true) || $report(true, {
169
+ path: _path + "",
170
+ expected: "ProfileScoresResponse",
171
+ value: input2
172
+ });
173
+ })(input, "$input", true);
174
+ }
175
+ const success = 0 === errors.length;
176
+ return {
177
+ success,
178
+ errors,
179
+ data: success ? input : void 0
180
+ };
181
+ };
182
+
183
+ export {
184
+ ProfileScoresPayload,
185
+ validProfileScoresRequest,
186
+ validProfileScoresResponse
187
+ };
@@ -0,0 +1,161 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/profileFilters.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/profileFilters.ts
10
+ var ProfileFiltersPayload = {
11
+ request: {
12
+ typeId: "ProfileFiltersRequest"
13
+ },
14
+ response: {
15
+ typeId: "ProfileFiltersResponse"
16
+ }
17
+ };
18
+
19
+ // dist/profileFilters.ts
20
+ var validProfileFiltersRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $join = import_typia.createValidate.join;
24
+ const $io0 = (input3) => Array.isArray(input3.terms) && ("object" === typeof input3.filters && null !== input3.filters && false === Array.isArray(input3.filters) && $io1(input3.filters));
25
+ const $io1 = (input3) => Object.keys(input3).every((key) => {
26
+ const value = input3[key];
27
+ if (void 0 === value)
28
+ return true;
29
+ if (RegExp(/(.*)/).test(key))
30
+ return Array.isArray(value);
31
+ return true;
32
+ });
33
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
34
+ };
35
+ if (false === __is(input)) {
36
+ const $report = import_typia.createValidate.report(errors);
37
+ ((input2, _path, _exceptionable = true) => {
38
+ const $join = import_typia.createValidate.join;
39
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [Array.isArray(input3.terms) || $report(_exceptionable2, {
40
+ path: _path2 + ".terms",
41
+ expected: "Array<any>",
42
+ value: input3.terms
43
+ }), ("object" === typeof input3.filters && null !== input3.filters && false === Array.isArray(input3.filters) || $report(_exceptionable2, {
44
+ path: _path2 + ".filters",
45
+ expected: "__type",
46
+ value: input3.filters
47
+ })) && $vo1(input3.filters, _path2 + ".filters", _exceptionable2) || $report(_exceptionable2, {
48
+ path: _path2 + ".filters",
49
+ expected: "__type",
50
+ value: input3.filters
51
+ })].every((flag) => flag);
52
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
53
+ const value = input3[key];
54
+ if (void 0 === value)
55
+ return true;
56
+ if (RegExp(/(.*)/).test(key))
57
+ return Array.isArray(value) || $report(_exceptionable2, {
58
+ path: _path2 + $join(key),
59
+ expected: "Array<any>",
60
+ value
61
+ });
62
+ return true;
63
+ }).every((flag) => flag)].every((flag) => flag);
64
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
65
+ path: _path + "",
66
+ expected: "ProfileFiltersRequest",
67
+ value: input2
68
+ })) && $vo0(input2, _path + "", true) || $report(true, {
69
+ path: _path + "",
70
+ expected: "ProfileFiltersRequest",
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 validProfileFiltersResponse = (input) => {
83
+ const errors = [];
84
+ const __is = (input2) => {
85
+ const $join = import_typia.createValidate.join;
86
+ const $io0 = (input3) => Object.keys(input3).every((key) => {
87
+ const value = input3[key];
88
+ if (void 0 === value)
89
+ return true;
90
+ if (RegExp(/(.*)/).test(key))
91
+ return Array.isArray(value) && value.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
92
+ return true;
93
+ });
94
+ const $io1 = (input3) => "string" === typeof input3.label && "string" === typeof input3.value && (void 0 === input3.disabled || "boolean" === typeof input3.disabled);
95
+ return "object" === typeof input2 && null !== input2 && false === Array.isArray(input2) && $io0(input2);
96
+ };
97
+ if (false === __is(input)) {
98
+ const $report = import_typia.createValidate.report(errors);
99
+ ((input2, _path, _exceptionable = true) => {
100
+ const $join = import_typia.createValidate.join;
101
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
102
+ const value = input3[key];
103
+ if (void 0 === value)
104
+ return true;
105
+ if (RegExp(/(.*)/).test(key))
106
+ return (Array.isArray(value) || $report(_exceptionable2, {
107
+ path: _path2 + $join(key),
108
+ expected: "Array<__type>",
109
+ value
110
+ })) && value.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
111
+ path: _path2 + $join(key) + "[" + _index1 + "]",
112
+ expected: "__type",
113
+ value: elem
114
+ })) && $vo1(elem, _path2 + $join(key) + "[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
115
+ path: _path2 + $join(key) + "[" + _index1 + "]",
116
+ expected: "__type",
117
+ value: elem
118
+ })).every((flag) => flag) || $report(_exceptionable2, {
119
+ path: _path2 + $join(key),
120
+ expected: "Array<__type>",
121
+ value
122
+ });
123
+ return true;
124
+ }).every((flag) => flag)].every((flag) => flag);
125
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
126
+ path: _path2 + ".label",
127
+ expected: "string",
128
+ value: input3.label
129
+ }), "string" === typeof input3.value || $report(_exceptionable2, {
130
+ path: _path2 + ".value",
131
+ expected: "string",
132
+ value: input3.value
133
+ }), void 0 === input3.disabled || "boolean" === typeof input3.disabled || $report(_exceptionable2, {
134
+ path: _path2 + ".disabled",
135
+ expected: "(boolean | undefined)",
136
+ value: input3.disabled
137
+ })].every((flag) => flag);
138
+ return ("object" === typeof input2 && null !== input2 && false === Array.isArray(input2) || $report(true, {
139
+ path: _path + "",
140
+ expected: "ProfileFiltersResponse",
141
+ value: input2
142
+ })) && $vo0(input2, _path + "", true) || $report(true, {
143
+ path: _path + "",
144
+ expected: "ProfileFiltersResponse",
145
+ value: input2
146
+ });
147
+ })(input, "$input", true);
148
+ }
149
+ const success = 0 === errors.length;
150
+ return {
151
+ success,
152
+ errors,
153
+ data: success ? input : void 0
154
+ };
155
+ };
156
+
157
+ export {
158
+ ProfileFiltersPayload,
159
+ validProfileFiltersRequest,
160
+ validProfileFiltersResponse
161
+ };
@@ -58,7 +58,7 @@ var validCategoriesRequest = (input) => {
58
58
  const errors = [];
59
59
  const __is = (input2) => {
60
60
  const $join = import_typia.createValidate.join;
61
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(input3.filter)) && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
61
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && ("object" === typeof input3.tw && null !== input3.tw && $iu5(input3.tw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io12(input3.filter)) && true && (void 0 === input3.currentGeneNames || Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && true;
62
62
  const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("CatTWValues" === input3.type || "CatTWPredefinedGS" === input3.type || "CatTWCustomGS" === input3.type) && ("object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) && $iu6(input3.q)) && ("object" === typeof input3.term && null !== input3.term && $io15(input3.term));
63
63
  const $io2 = (input3) => Object.keys(input3).every((key) => {
64
64
  const value = input3[key];
@@ -356,7 +356,7 @@ var validCategoriesRequest = (input) => {
356
356
  path: _path2 + ".filter",
357
357
  expected: "(Filter | undefined)",
358
358
  value: input3.filter
359
- }), void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
359
+ }), true, void 0 === input3.currentGeneNames || (Array.isArray(input3.currentGeneNames) || $report(_exceptionable2, {
360
360
  path: _path2 + ".currentGeneNames",
361
361
  expected: "(Array<string> | undefined)",
362
362
  value: input3.currentGeneNames
package/dist/gdc.grin2.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  validGdcGRIN2listResponse,
6
6
  validRunGRIN2Request,
7
7
  validRunGRIN2Response
8
- } from "./chunk-45AF7AQH.js";
8
+ } from "./chunk-7YC2GEEO.js";
9
9
  import "./chunk-CNSSF43V.js";
10
10
  export {
11
11
  gdcGRIN2listPayload,
package/dist/index.js CHANGED
@@ -1,3 +1,18 @@
1
+ import {
2
+ termdbTopVariablyExpressedGenesPayload,
3
+ validTermdbTopVariablyExpressedGenesRequest,
4
+ validTermdbTopVariablyExpressedGenesResponse
5
+ } from "./chunk-UL54XEPY.js";
6
+ import {
7
+ validViolinRequest,
8
+ validViolinResponse,
9
+ violinPayload
10
+ } from "./chunk-J7ODYX6N.js";
11
+ import {
12
+ tilePayload,
13
+ validTileRequest,
14
+ validTileResponse
15
+ } from "./chunk-KFVYRW7D.js";
1
16
  import {
2
17
  validWSImagesRequest,
3
18
  validWSImagesResponse,
@@ -8,6 +23,21 @@ import {
8
23
  validWSISamplesResponse,
9
24
  wsiSamplesPayload
10
25
  } from "./chunk-W6NLM363.js";
26
+ import {
27
+ termdbSingleSampleMutationPayload,
28
+ validTermdbSingleSampleMutationRequest,
29
+ validTermdbSingleSampleMutationResponse
30
+ } from "./chunk-G36XAK7Y.js";
31
+ import {
32
+ termdbSingleCellDEgenesPayload,
33
+ validTermdbSingleCellDEgenesRequest,
34
+ validTermdbSingleCellDEgenesResponse
35
+ } from "./chunk-XEQWKMZN.js";
36
+ import {
37
+ termdbSingleCellDataPayload,
38
+ validTermdbSingleCellDataRequest,
39
+ validTermdbSingleCellDataResponse
40
+ } from "./chunk-ZAMCS7PC.js";
11
41
  import {
12
42
  termdbSingleCellSamplesPayload,
13
43
  validTermdbSingleCellSamplesRequest,
@@ -34,20 +64,20 @@ import {
34
64
  validTermdbTopTermsByTypeResponse
35
65
  } from "./chunk-7RY7HC24.js";
36
66
  import {
37
- termdbTopVariablyExpressedGenesPayload,
38
- validTermdbTopVariablyExpressedGenesRequest,
39
- validTermdbTopVariablyExpressedGenesResponse
40
- } from "./chunk-UL54XEPY.js";
67
+ termdbClusterPayload,
68
+ validTermdbClusterRequest,
69
+ validTermdbClusterResponse
70
+ } from "./chunk-MBQT6GOO.js";
41
71
  import {
42
- validViolinRequest,
43
- validViolinResponse,
44
- violinPayload
45
- } from "./chunk-J7ODYX6N.js";
72
+ termdbCohortSummaryPayload,
73
+ validTermdbCohortSummaryRequest,
74
+ validTermdbCohortSummaryResponse
75
+ } from "./chunk-QX3MRSSK.js";
46
76
  import {
47
- tilePayload,
48
- validTileRequest,
49
- validTileResponse
50
- } from "./chunk-KFVYRW7D.js";
77
+ termdbCohortsPayload,
78
+ validTermdbCohortsRequest,
79
+ validTermdbCohortsResponse
80
+ } from "./chunk-EH7VAE5S.js";
51
81
  import {
52
82
  descrStatsPayload,
53
83
  validDescrStatsRequest,
@@ -74,20 +104,20 @@ import {
74
104
  validTermdbSampleImagesResponse
75
105
  } from "./chunk-X2CX5K24.js";
76
106
  import {
77
- termdbSingleSampleMutationPayload,
78
- validTermdbSingleSampleMutationRequest,
79
- validTermdbSingleSampleMutationResponse
80
- } from "./chunk-G36XAK7Y.js";
107
+ ProfileFiltersPayload,
108
+ validProfileFiltersRequest,
109
+ validProfileFiltersResponse
110
+ } from "./chunk-MGSCXSFH.js";
81
111
  import {
82
- termdbSingleCellDEgenesPayload,
83
- validTermdbSingleCellDEgenesRequest,
84
- validTermdbSingleCellDEgenesResponse
85
- } from "./chunk-XEQWKMZN.js";
112
+ ProfileFormScoresPayload,
113
+ validProfileFormScoresRequest,
114
+ validProfileFormScoresResponse
115
+ } from "./chunk-BTYR5IOS.js";
86
116
  import {
87
- termdbSingleCellDataPayload,
88
- validTermdbSingleCellDataRequest,
89
- validTermdbSingleCellDataResponse
90
- } from "./chunk-ZAMCS7PC.js";
117
+ ProfileScoresPayload,
118
+ validProfileScoresRequest,
119
+ validProfileScoresResponse
120
+ } from "./chunk-IJLAEEK7.js";
91
121
  import {
92
122
  sampleWSImagesPayload,
93
123
  validSampleWSImagesRequest,
@@ -112,22 +142,7 @@ import {
112
142
  termdbCategoriesPayload,
113
143
  validCategoriesRequest,
114
144
  validCategoriesResponse
115
- } from "./chunk-3VVALC2P.js";
116
- import {
117
- termdbClusterPayload,
118
- validTermdbClusterRequest,
119
- validTermdbClusterResponse
120
- } from "./chunk-MBQT6GOO.js";
121
- import {
122
- termdbCohortSummaryPayload,
123
- validTermdbCohortSummaryRequest,
124
- validTermdbCohortSummaryResponse
125
- } from "./chunk-QX3MRSSK.js";
126
- import {
127
- termdbCohortsPayload,
128
- validTermdbCohortsRequest,
129
- validTermdbCohortsResponse
130
- } from "./chunk-EH7VAE5S.js";
145
+ } from "./chunk-QHN3YO6Q.js";
131
146
  import {
132
147
  hicdataPayload,
133
148
  validHicdataRequest,
@@ -175,7 +190,7 @@ import {
175
190
  validGdcGRIN2listResponse,
176
191
  validRunGRIN2Request,
177
192
  validRunGRIN2Response
178
- } from "./chunk-45AF7AQH.js";
193
+ } from "./chunk-7YC2GEEO.js";
179
194
  import {
180
195
  gdcMafPayload,
181
196
  validGdcMafRequest,
@@ -247,6 +262,9 @@ import "./chunk-CNSSF43V.js";
247
262
  export {
248
263
  CorrelationVolcanoPayload,
249
264
  GdcMafPayload,
265
+ ProfileFiltersPayload,
266
+ ProfileFormScoresPayload,
267
+ ProfileScoresPayload,
250
268
  boxplotPayload,
251
269
  brainImagingPayload,
252
270
  brainImagingSamplesPayload,
@@ -345,6 +363,12 @@ export {
345
363
  validPdomainResponse,
346
364
  validPercentileRequest,
347
365
  validPercentileResponse,
366
+ validProfileFiltersRequest,
367
+ validProfileFiltersResponse,
368
+ validProfileFormScoresRequest,
369
+ validProfileFormScoresResponse,
370
+ validProfileScoresRequest,
371
+ validProfileScoresResponse,
348
372
  validRootTermRequest,
349
373
  validRootTermResponse,
350
374
  validRunGRIN2Request,
@@ -0,0 +1,11 @@
1
+ import {
2
+ ProfileFiltersPayload,
3
+ validProfileFiltersRequest,
4
+ validProfileFiltersResponse
5
+ } from "./chunk-MGSCXSFH.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ ProfileFiltersPayload,
9
+ validProfileFiltersRequest,
10
+ validProfileFiltersResponse
11
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ ProfileFormScoresPayload,
3
+ validProfileFormScoresRequest,
4
+ validProfileFormScoresResponse
5
+ } from "./chunk-BTYR5IOS.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ ProfileFormScoresPayload,
9
+ validProfileFormScoresRequest,
10
+ validProfileFormScoresResponse
11
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ ProfileScoresPayload,
3
+ validProfileScoresRequest,
4
+ validProfileScoresResponse
5
+ } from "./chunk-IJLAEEK7.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ ProfileScoresPayload,
9
+ validProfileScoresRequest,
10
+ validProfileScoresResponse
11
+ };
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-3VVALC2P.js";
5
+ } from "./chunk-QHN3YO6Q.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.132.0",
3
+ "version": "2.132.1-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
@@ -910,6 +910,13 @@ type Mds3Queries = {
910
910
  snvindel?: SnvIndelQuery
911
911
  svfusion?: SvFusion
912
912
  cnv?: CnvSegmentQuery
913
+ /** gene-level cnv, only available on gdc; query by gene symbol, ds must define getter
914
+ */
915
+ geneCnv?: {
916
+ bygene: {
917
+ get: (q: any) => any
918
+ }
919
+ }
913
920
  trackLst?: TrackLst
914
921
  ld?: LdQuery
915
922
  defaultCoord?: string
@@ -928,11 +935,6 @@ type Mds3Queries = {
928
935
  file: string
929
936
  }
930
937
  singleCell?: SingleCellQuery
931
- geneCnv?: {
932
- bygene?: {
933
- gdcapi: true
934
- }
935
- }
936
938
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
937
939
  singleSampleGbtk?: SingleSampleGbtk
938
940
  /** depreciated. replaced by WSImages */
@@ -2034,6 +2036,23 @@ export type Mds3 = BaseMds & {
2034
2036
  validate_filter0?: (f: any) => void
2035
2037
  ssm2canonicalisoform?: GdcApi
2036
2038
  variant2samples?: Variant2Samples
2039
+ /** disables switching to genomic mode for the protein view mds3 tk of this ds
2040
+ works by preventing block gmmode menu from showing "genomic" option
2041
+ is only passed via mds3 adhoc ds copy, but not termdbConfig
2042
+ for lack of a better place to put this attribute, as it's not appropriate to put in queries.snvindel{}
2043
+ as snvindel is optional so even a cnv-only ds can disable genomic mode
2044
+ */
2045
+ noGenomicMode4lollipopTk?: true
2046
+ /** if ds.queries{} exists, server launch adds this convenient getter to wrap multiple queries data types
2047
+ */
2048
+ mayGetGeneVariantData?: (f: any) => void
2049
+ /** optional key-value pairs to pass to genomic queries getter when called in mayGetGeneVariantData()
2050
+ - only used in mayGetGeneVariantData! not in mds3.load.js
2051
+ - for now only passed to snvindel.*.get and not yet other data types; add when needed
2052
+ the param contents will be assessed by ds specific getter
2053
+ this is serverside only, not passed to termdbConfig
2054
+ */
2055
+ mayGetGeneVariantDataParam?: { [key: string]: any }
2037
2056
  // !!! TODO: improve these type definitions below !!!
2038
2057
  getHostHeaders?: (q?: any) => any
2039
2058
  serverconfigFeatures?: any
@@ -160,8 +160,17 @@ export type RunGRIN2Response = {
160
160
  download?: any
161
161
  /** Table of top genes indentified by analysis */
162
162
  topGeneTable?: any
163
- /** Data from Rust for making the failed files div */
163
+ /** Data from Rust for making the analysis summary div */
164
164
  rustResult?: RustGRIN2Result
165
+ /** Timing info from nodejs */
166
+ timing?: {
167
+ /** Time taken to run Rust processing */
168
+ rustProcessingTime: number
169
+ /** Time taken to run GRIN2 processing */
170
+ grin2Time: number
171
+ /** Total time taken for the entire run */
172
+ totalTime: number
173
+ }
165
174
  }
166
175
  /**
167
176
  * Route payload definitions for type checking
@@ -0,0 +1,23 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type ProfileFiltersRequest = {
4
+ terms: any[]
5
+ filters: { [termid: string]: any[] }
6
+ }
7
+
8
+ export type ProfileFiltersResponse = {
9
+ [termId: string]: {
10
+ label: string
11
+ value: string
12
+ disabled?: boolean
13
+ }[]
14
+ }
15
+
16
+ export const ProfileFiltersPayload: RoutePayload = {
17
+ request: {
18
+ typeId: 'ProfileFiltersRequest'
19
+ },
20
+ response: {
21
+ typeId: 'ProfileFiltersResponse'
22
+ }
23
+ }
@@ -0,0 +1,26 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type ProfileFormScoresRequest = {
4
+ scoreTerms: any[]
5
+ scScoreTerms?: any[]
6
+ filter?: any
7
+ userSites?: string[]
8
+ site?: string
9
+ isAggregate?: boolean
10
+ }
11
+
12
+ export type ProfileFormScoresResponse = {
13
+ term2Score: { [termId: string]: { [key: string]: number } }
14
+ sites: { label: string; value: string }[]
15
+ hospital?: string
16
+ n: number
17
+ }
18
+
19
+ export const ProfileFormScoresPayload: RoutePayload = {
20
+ request: {
21
+ typeId: 'ProfileFormScoresRequest'
22
+ },
23
+ response: {
24
+ typeId: 'ProfileFormScoresResponse'
25
+ }
26
+ }
@@ -0,0 +1,27 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type ProfileScoresRequest = {
4
+ scoreTerms: { score: any; maxScore?: any }[]
5
+ filter?: any
6
+ isRadarFacility?: boolean
7
+ userSites?: string[]
8
+ site?: string
9
+ isAggregate?: boolean
10
+ facilityTW?: any
11
+ }
12
+
13
+ export type ProfileScoresResponse = {
14
+ term2Score: { [termId: string]: number }
15
+ sites: { label: string; value: string }[]
16
+ hospital?: string
17
+ n: number
18
+ }
19
+
20
+ export const ProfileScoresPayload: RoutePayload = {
21
+ request: {
22
+ typeId: 'ProfileScoresRequest'
23
+ },
24
+ response: {
25
+ typeId: 'ProfileScoresResponse'
26
+ }
27
+ }
@@ -9,6 +9,7 @@ export type CategoriesRequest = {
9
9
  /** termwrapper object */
10
10
  tw: TermWrapper
11
11
  filter?: Filter
12
+ filter0?: any
12
13
  /** quick fix only for gdc */
13
14
  currentGeneNames?: string[]
14
15
  /** optional property added by mds3 tk, to limit to cases mutated in this region */
package/src/vocab.ts CHANGED
@@ -13,6 +13,7 @@ VocabApi
13
13
 
14
14
  export type VocabApi = {
15
15
  termdbConfig: any
16
+ state?: any
16
17
  //Methods
17
18
  cacheTermQ: (term: Term, q: any) => any
18
19
  findTerm: (f: string, activeCohort: number, usecase: UseCase, x: string) => { lst: Term[] }