@sjcrh/proteinpaint-types 2.132.1-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.
@@ -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
+ };
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,
@@ -113,21 +143,6 @@ import {
113
143
  validCategoriesRequest,
114
144
  validCategoriesResponse
115
145
  } from "./chunk-QHN3YO6Q.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";
131
146
  import {
132
147
  hicdataPayload,
133
148
  validHicdataRequest,
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.132.1-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",
@@ -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
+ }