@sjcrh/proteinpaint-types 2.138.3-0 → 2.138.3-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.
@@ -0,0 +1,11 @@
1
+ import {
2
+ aiProjectAdminPayload,
3
+ validAIProjectAdminRequest,
4
+ validAIProjectAdminResponse
5
+ } from "./chunk-4KJDCFS4.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ aiProjectAdminPayload,
9
+ validAIProjectAdminRequest,
10
+ validAIProjectAdminResponse
11
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ aiProjectListPayload,
3
+ validAIProjectListRequest,
4
+ validAIProjectListResponse
5
+ } from "./chunk-EAHOJPLM.js";
6
+ import "./chunk-CNSSF43V.js";
7
+ export {
8
+ aiProjectListPayload,
9
+ validAIProjectListRequest,
10
+ validAIProjectListResponse
11
+ };
@@ -0,0 +1,123 @@
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
+ };
@@ -0,0 +1,96 @@
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
+ };
@@ -65,7 +65,7 @@ var validHealthCheckResponse = (input) => {
65
65
  const errors = [];
66
66
  const __is = (input2) => {
67
67
  const $join = import_typia.createValidate.join;
68
- const $io0 = (input3) => ("error" === input3.status || "ok" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
68
+ const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
69
69
  const $io1 = (input3) => Object.keys(input3).every((key) => {
70
70
  const value = input3[key];
71
71
  if (void 0 === value)
@@ -117,7 +117,7 @@ var validHealthCheckResponse = (input) => {
117
117
  const $report = import_typia.createValidate.report(errors);
118
118
  ((input2, _path, _exceptionable = true) => {
119
119
  const $join = import_typia.createValidate.join;
120
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "ok" === input3.status || $report(_exceptionable2, {
120
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
121
121
  path: _path2 + ".status",
122
122
  expected: '("error" | "ok")',
123
123
  value: input3.status
@@ -457,7 +457,7 @@ var validRunGRIN2Response = (input) => {
457
457
  const errors = [];
458
458
  const __is = (input2) => {
459
459
  const $join = import_typia.createValidate.join;
460
- 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 && $io11(input3.timing));
460
+ const $io0 = (input3) => ("error" === input3.status || "success" === 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 && $io11(input3.timing));
461
461
  const $io1 = (input3) => "string" === typeof input3.successful_data && (Array.isArray(input3.failed_files) && input3.failed_files.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && ("object" === typeof input3.summary && null !== input3.summary && $io3(input3.summary));
462
462
  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;
463
463
  const $io3 = (input3) => "summary" === input3.type && "number" === typeof input3.total_files && "number" === typeof input3.successful_files && "number" === typeof input3.failed_files && (Array.isArray(input3.errors) && input3.errors.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && "number" === typeof input3.filtered_records && "number" === typeof input3.filtered_maf_records && "number" === typeof input3.filtered_cnv_records && "number" === typeof input3.included_maf_records && "number" === typeof input3.included_cnv_records && ("object" === typeof input3.filtered_records_by_case && null !== input3.filtered_records_by_case && false === Array.isArray(input3.filtered_records_by_case) && $io4(input3.filtered_records_by_case)) && ("object" === typeof input3.hyper_mutator_records && null !== input3.hyper_mutator_records && false === Array.isArray(input3.hyper_mutator_records) && $io10(input3.hyper_mutator_records)) && ("object" === typeof input3.excluded_by_max_record && null !== input3.excluded_by_max_record && false === Array.isArray(input3.excluded_by_max_record) && $io10(input3.excluded_by_max_record));
@@ -503,7 +503,7 @@ var validRunGRIN2Response = (input) => {
503
503
  const $report = import_typia.createValidate.report(errors);
504
504
  ((input2, _path, _exceptionable = true) => {
505
505
  const $join = import_typia.createValidate.join;
506
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["success" === input3.status || "error" === input3.status || $report(_exceptionable2, {
506
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
507
507
  path: _path2 + ".status",
508
508
  expected: '("error" | "success")',
509
509
  value: input3.status
@@ -146,7 +146,7 @@ var validGRIN2Request = (input) => {
146
146
  var validGRIN2Response = (input) => {
147
147
  const errors = [];
148
148
  const __is = (input2) => {
149
- 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 && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io1(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && $io5(input3.processingSummary));
149
+ const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io1(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && $io5(input3.processingSummary));
150
150
  const $io1 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io3(elem2))));
151
151
  const $io2 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
152
152
  const $io3 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
@@ -158,7 +158,7 @@ var validGRIN2Response = (input) => {
158
158
  if (false === __is(input)) {
159
159
  const $report = import_typia.createValidate.report(errors);
160
160
  ((input2, _path, _exceptionable = true) => {
161
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["success" === input3.status || "error" === input3.status || $report(_exceptionable2, {
161
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
162
162
  path: _path2 + ".status",
163
163
  expected: '("error" | "success")',
164
164
  value: input3.status
@@ -60,13 +60,13 @@ var validSampleWSIAiApiRequest = (input) => {
60
60
  var validSampleWSIAiApiResponse = (input) => {
61
61
  const errors = [];
62
62
  const __is = (input2) => {
63
- const $io0 = (input3) => ("error" === input3.status || "ok" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
63
+ const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
64
64
  return "object" === typeof input2 && null !== input2 && $io0(input2);
65
65
  };
66
66
  if (false === __is(input)) {
67
67
  const $report = import_typia.createValidate.report(errors);
68
68
  ((input2, _path, _exceptionable = true) => {
69
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "ok" === input3.status || $report(_exceptionable2, {
69
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
70
70
  path: _path2 + ".status",
71
71
  expected: '("error" | "ok")',
72
72
  value: input3.status
package/dist/gdc.grin2.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  validGdcGRIN2listResponse,
6
6
  validRunGRIN2Request,
7
7
  validRunGRIN2Response
8
- } from "./chunk-XH7LJZRQ.js";
8
+ } from "./chunk-LDQNJLYQ.js";
9
9
  import "./chunk-CNSSF43V.js";
10
10
  export {
11
11
  gdcGRIN2listPayload,
package/dist/grin2.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  GRIN2Payload,
3
3
  validGRIN2Request,
4
4
  validGRIN2Response
5
- } from "./chunk-Z2VOERJ2.js";
5
+ } from "./chunk-VHEL5P6L.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  GRIN2Payload,
@@ -2,7 +2,7 @@ import {
2
2
  healthcheckPayload,
3
3
  validHealthCheckRequest,
4
4
  validHealthCheckResponse
5
- } from "./chunk-RWMZSRX7.js";
5
+ } from "./chunk-KRYTJ2SL.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  healthcheckPayload,
package/dist/index.js CHANGED
@@ -1,3 +1,18 @@
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
+ import {
12
+ termsByIdsPayload,
13
+ validTermsByIdsRequest,
14
+ validTermsByIdsResponse
15
+ } from "./chunk-CC3OBRKE.js";
1
16
  import {
2
17
  topMutatedGenePayload,
3
18
  validtopMutatedGeneRequest,
@@ -29,10 +44,15 @@ import {
29
44
  wsImagesPayload
30
45
  } from "./chunk-CQDDRHRY.js";
31
46
  import {
32
- validWSISamplesRequest,
33
- validWSISamplesResponse,
34
- wsiSamplesPayload
35
- } from "./chunk-W6NLM363.js";
47
+ numericCategoriesPayload,
48
+ validNumericCategoriesRequest,
49
+ validNumericCategoriesResponse
50
+ } from "./chunk-DD2RLZHC.js";
51
+ import {
52
+ percentilePayload,
53
+ validPercentileRequest,
54
+ validPercentileResponse
55
+ } from "./chunk-6HAS5WRS.js";
36
56
  import {
37
57
  rootTermPayload,
38
58
  validRootTermRequest,
@@ -64,15 +84,15 @@ import {
64
84
  validTermdbSingleCellSamplesResponse
65
85
  } from "./chunk-LPBYQJG4.js";
66
86
  import {
67
- termChildrenPayload,
68
- validTermChildrenRequest,
69
- validTermChildrenResponse
70
- } from "./chunk-HKGWC7OO.js";
87
+ snpPayload,
88
+ validSnpRequest,
89
+ validSnpResponse
90
+ } from "./chunk-J4QAF4EU.js";
71
91
  import {
72
- termsByIdsPayload,
73
- validTermsByIdsRequest,
74
- validTermsByIdsResponse
75
- } from "./chunk-CC3OBRKE.js";
92
+ diffExpPayload,
93
+ validDERequest,
94
+ validDEResponse
95
+ } from "./chunk-3C26VWPU.js";
76
96
  import {
77
97
  boxplotPayload,
78
98
  validBoxPlotRequest,
@@ -104,15 +124,10 @@ import {
104
124
  validDescrStatsResponse
105
125
  } from "./chunk-I2BMMKPN.js";
106
126
  import {
107
- numericCategoriesPayload,
108
- validNumericCategoriesRequest,
109
- validNumericCategoriesResponse
110
- } from "./chunk-DD2RLZHC.js";
111
- import {
112
- percentilePayload,
113
- validPercentileRequest,
114
- validPercentileResponse
115
- } from "./chunk-6HAS5WRS.js";
127
+ isoformlstPayload,
128
+ validIsoformLstRequest,
129
+ validIsoformLstResponse
130
+ } from "./chunk-B43GFRT4.js";
116
131
  import {
117
132
  ntseqPayload,
118
133
  validNtseqRequest,
@@ -137,32 +152,32 @@ import {
137
152
  sampleWsiAiApiPayload,
138
153
  validSampleWSIAiApiRequest,
139
154
  validSampleWSIAiApiResponse
140
- } from "./chunk-O7IJ2JNI.js";
155
+ } from "./chunk-XJU4JALX.js";
141
156
  import {
142
157
  sampleWSImagesPayload,
143
158
  validSampleWSImagesRequest,
144
159
  validSampleWSImagesResponse
145
160
  } from "./chunk-FYRWYZEE.js";
146
161
  import {
147
- snpPayload,
148
- validSnpRequest,
149
- validSnpResponse
150
- } from "./chunk-J4QAF4EU.js";
162
+ genesetEnrichmentPayload,
163
+ validGenesetEnrichmentRequest,
164
+ validGenesetEnrichmentResponse
165
+ } from "./chunk-HUMZDPUU.js";
151
166
  import {
152
- diffExpPayload,
153
- validDERequest,
154
- validDEResponse
155
- } from "./chunk-3C26VWPU.js";
167
+ genesetOverrepresentationPayload,
168
+ validGenesetOverrepresentationRequest,
169
+ validGenesetOverrepresentationResponse
170
+ } from "./chunk-VMSVBNM6.js";
156
171
  import {
157
172
  GRIN2Payload,
158
173
  validGRIN2Request,
159
174
  validGRIN2Response
160
- } from "./chunk-Z2VOERJ2.js";
175
+ } from "./chunk-VHEL5P6L.js";
161
176
  import {
162
177
  healthcheckPayload,
163
178
  validHealthCheckRequest,
164
179
  validHealthCheckResponse
165
- } from "./chunk-RWMZSRX7.js";
180
+ } from "./chunk-KRYTJ2SL.js";
166
181
  import {
167
182
  hicdataPayload,
168
183
  validHicdataRequest,
@@ -184,10 +199,15 @@ import {
184
199
  validimgResponse
185
200
  } from "./chunk-KVUJPR42.js";
186
201
  import {
187
- isoformlstPayload,
188
- validIsoformLstRequest,
189
- validIsoformLstResponse
190
- } from "./chunk-B43GFRT4.js";
202
+ datasetPayload,
203
+ validDatasetRequest,
204
+ validDatasetResponse
205
+ } from "./chunk-5S3UWYSK.js";
206
+ import {
207
+ dsDataPayload,
208
+ validDsDataRequest,
209
+ validDsDataResponse
210
+ } from "./chunk-4GCROGGK.js";
191
211
  import {
192
212
  dzImagesPayload,
193
213
  validDZImagesRequest,
@@ -205,7 +225,7 @@ import {
205
225
  validGdcGRIN2listResponse,
206
226
  validRunGRIN2Request,
207
227
  validRunGRIN2Response
208
- } from "./chunk-XH7LJZRQ.js";
228
+ } from "./chunk-LDQNJLYQ.js";
209
229
  import {
210
230
  gdcMafPayload,
211
231
  validGdcMafRequest,
@@ -222,15 +242,15 @@ import {
222
242
  validGeneLookupResponse
223
243
  } from "./chunk-HNETXFC7.js";
224
244
  import {
225
- genesetEnrichmentPayload,
226
- validGenesetEnrichmentRequest,
227
- validGenesetEnrichmentResponse
228
- } from "./chunk-HUMZDPUU.js";
245
+ aiProjectAdminPayload,
246
+ validAIProjectAdminRequest,
247
+ validAIProjectAdminResponse
248
+ } from "./chunk-4KJDCFS4.js";
229
249
  import {
230
- genesetOverrepresentationPayload,
231
- validGenesetOverrepresentationRequest,
232
- validGenesetOverrepresentationResponse
233
- } from "./chunk-VMSVBNM6.js";
250
+ aiProjectListPayload,
251
+ validAIProjectListRequest,
252
+ validAIProjectListResponse
253
+ } from "./chunk-EAHOJPLM.js";
234
254
  import {
235
255
  brainImagingPayload,
236
256
  validBrainImagingRequest,
@@ -258,16 +278,6 @@ import {
258
278
  validCorrelationVolcanoRequest,
259
279
  validCorrelationVolcanoResponse
260
280
  } from "./chunk-QG776KAI.js";
261
- import {
262
- datasetPayload,
263
- validDatasetRequest,
264
- validDatasetResponse
265
- } from "./chunk-5S3UWYSK.js";
266
- import {
267
- dsDataPayload,
268
- validDsDataRequest,
269
- validDsDataResponse
270
- } from "./chunk-4GCROGGK.js";
271
281
  import "./chunk-CNSSF43V.js";
272
282
  export {
273
283
  CorrelationVolcanoPayload,
@@ -276,6 +286,8 @@ export {
276
286
  GdcMafPayload,
277
287
  ProfileFormScoresPayload,
278
288
  ProfileScoresPayload,
289
+ aiProjectAdminPayload,
290
+ aiProjectListPayload,
279
291
  boxplotPayload,
280
292
  brainImagingPayload,
281
293
  brainImagingSamplesPayload,
@@ -321,6 +333,10 @@ export {
321
333
  termsByIdsPayload,
322
334
  tilePayload,
323
335
  topMutatedGenePayload,
336
+ validAIProjectAdminRequest,
337
+ validAIProjectAdminResponse,
338
+ validAIProjectListRequest,
339
+ validAIProjectListResponse,
324
340
  validBoxPlotRequest,
325
341
  validBoxPlotResponse,
326
342
  validBrainImagingRequest,
@@ -2,7 +2,7 @@ import {
2
2
  sampleWsiAiApiPayload,
3
3
  validSampleWSIAiApiRequest,
4
4
  validSampleWSIAiApiResponse
5
- } from "./chunk-O7IJ2JNI.js";
5
+ } from "./chunk-XJU4JALX.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  sampleWsiAiApiPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.138.3-0",
3
+ "version": "2.138.3-2",
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
@@ -148,6 +148,19 @@ type GdcApi = {
148
148
  gdcapi?: boolean
149
149
  }
150
150
 
151
+ type AiApi = {
152
+ /** Represents the configuration for accessing the AI API.
153
+ * For now only AI Histo is supported.
154
+ */
155
+ aiApi?: boolean
156
+ source?: {
157
+ /** Data source for building the termdb on the fly */
158
+ file: string
159
+ /** Column header for sample ids or names */
160
+ sampleKey: string
161
+ }
162
+ }
163
+
151
164
  type SnvIndelFormat = {
152
165
  [index: string]: {
153
166
  /* has value for a non-GT field indicating the variant
@@ -1001,6 +1014,7 @@ export type DZImages = {
1001
1014
  image file to sample mapping is stored in wsimages table
1002
1015
  */
1003
1016
  export type WSImages = {
1017
+ db?: { file: string }
1004
1018
  // type of the image, e.g. H&E
1005
1019
  type: string
1006
1020
 
@@ -1468,7 +1482,8 @@ keep this setting here for reason of:
1468
1482
 
1469
1483
  //GDC
1470
1484
  termid2totalsize2?: GdcApi
1471
- dictionary?: GdcApi
1485
+ /** Do not use a union here. */
1486
+ dictionary?: GdcApi & AiApi
1472
1487
  allowCaseDetails?: AllowCaseDetails
1473
1488
  isGeneSetTermdb?: boolean
1474
1489
  /** Searches the genedb alias list to return the genecode ID */
package/src/index.ts CHANGED
@@ -5,6 +5,8 @@ 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
+ export * from './routes/aiProjectAdmin.ts'
8
10
  export * from './routes/brainImaging.ts'
9
11
  export * from './routes/brainImagingSamples.ts'
10
12
  export * from './routes/burden.ts'
@@ -0,0 +1,26 @@
1
+ import type { RoutePayload } from './routeApi.ts'
2
+
3
+ export type AIProjectAdminRequest = {
4
+ genome: string
5
+ dslabel: string
6
+ project: {
7
+ name: string
8
+ id?: number
9
+ fitler?: string
10
+ classes?: any[]
11
+ }
12
+ }
13
+
14
+ export type AIProjectAdminResponse = {
15
+ status: 'ok' | 'error'
16
+ error?: string
17
+ }
18
+
19
+ export const aiProjectAdminPayload: RoutePayload = {
20
+ request: {
21
+ typeId: 'AIProjectAdminRequest'
22
+ },
23
+ response: {
24
+ typeId: 'AIProjectAdminResponse'
25
+ }
26
+ }
@@ -0,0 +1,20 @@
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
+ }