@sjcrh/proteinpaint-types 2.99.1-0 → 2.99.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.
- package/dist/{chunk-UCG25D2C.js → chunk-75VJBEAQ.js} +19 -5
- package/dist/{chunk-XLBSZOMF.js → chunk-W3KUIWKN.js} +8 -4
- package/dist/clearwsisession.js +88 -0
- package/dist/index.js +24 -24
- package/dist/samplewsimages.js +1 -1
- package/dist/wsimages.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +3 -3
- package/src/index.ts +1 -0
- package/src/routes/clearwsisessions.ts +19 -0
- package/src/routes/routeApi.ts +2 -0
- package/src/routes/samplewsimages.ts +1 -1
- package/src/routes/wsimages.ts +5 -1
|
@@ -64,7 +64,8 @@ var validSampleWSImagesRequest = (input) => {
|
|
|
64
64
|
var validSampleWSImagesResponse = (input) => {
|
|
65
65
|
const errors = [];
|
|
66
66
|
const __is = (input2) => {
|
|
67
|
-
const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "
|
|
67
|
+
const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
|
|
68
|
+
const $io1 = (input3) => "string" === typeof input3.filename && "string" === typeof input3.metadata;
|
|
68
69
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
69
70
|
};
|
|
70
71
|
if (false === __is(input)) {
|
|
@@ -72,17 +73,30 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
72
73
|
((input2, _path, _exceptionable = true) => {
|
|
73
74
|
const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.sampleWSImages) || $report(_exceptionable2, {
|
|
74
75
|
path: _path2 + ".sampleWSImages",
|
|
75
|
-
expected: "Array<
|
|
76
|
+
expected: "Array<WSImage>",
|
|
76
77
|
value: input3.sampleWSImages
|
|
77
|
-
})) && input3.sampleWSImages.map((elem, _index1) => "
|
|
78
|
+
})) && input3.sampleWSImages.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
78
79
|
path: _path2 + ".sampleWSImages[" + _index1 + "]",
|
|
79
|
-
expected: "
|
|
80
|
+
expected: "WSImage",
|
|
81
|
+
value: elem
|
|
82
|
+
})) && $vo1(elem, _path2 + ".sampleWSImages[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
83
|
+
path: _path2 + ".sampleWSImages[" + _index1 + "]",
|
|
84
|
+
expected: "WSImage",
|
|
80
85
|
value: elem
|
|
81
86
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
82
87
|
path: _path2 + ".sampleWSImages",
|
|
83
|
-
expected: "Array<
|
|
88
|
+
expected: "Array<WSImage>",
|
|
84
89
|
value: input3.sampleWSImages
|
|
85
90
|
})].every((flag) => flag);
|
|
91
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.filename || $report(_exceptionable2, {
|
|
92
|
+
path: _path2 + ".filename",
|
|
93
|
+
expected: "string",
|
|
94
|
+
value: input3.filename
|
|
95
|
+
}), "string" === typeof input3.metadata || $report(_exceptionable2, {
|
|
96
|
+
path: _path2 + ".metadata",
|
|
97
|
+
expected: "string",
|
|
98
|
+
value: input3.metadata
|
|
99
|
+
})].every((flag) => flag);
|
|
86
100
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
87
101
|
path: _path + "",
|
|
88
102
|
expected: "SampleWSImagesResponse",
|
|
@@ -64,16 +64,20 @@ var validWSImagesRequest = (input) => {
|
|
|
64
64
|
var validWSImagesResponse = (input) => {
|
|
65
65
|
const errors = [];
|
|
66
66
|
const __is = (input2) => {
|
|
67
|
-
const $io0 = (input3) => (void 0 === input3.
|
|
67
|
+
const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (void 0 === input3.browserImageInstanceId || "string" === typeof input3.browserImageInstanceId) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status;
|
|
68
68
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
69
69
|
};
|
|
70
70
|
if (false === __is(input)) {
|
|
71
71
|
const $report = import_typia.createValidate.report(errors);
|
|
72
72
|
((input2, _path, _exceptionable = true) => {
|
|
73
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.
|
|
74
|
-
path: _path2 + ".
|
|
73
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId || $report(_exceptionable2, {
|
|
74
|
+
path: _path2 + ".wsiSessionId",
|
|
75
75
|
expected: "(string | undefined)",
|
|
76
|
-
value: input3.
|
|
76
|
+
value: input3.wsiSessionId
|
|
77
|
+
}), void 0 === input3.browserImageInstanceId || "string" === typeof input3.browserImageInstanceId || $report(_exceptionable2, {
|
|
78
|
+
path: _path2 + ".browserImageInstanceId",
|
|
79
|
+
expected: "(string | undefined)",
|
|
80
|
+
value: input3.browserImageInstanceId
|
|
77
81
|
}), (Array.isArray(input3.slide_dimensions) || $report(_exceptionable2, {
|
|
78
82
|
path: _path2 + ".slide_dimensions",
|
|
79
83
|
expected: "Array<number>",
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/clearwsisession.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/clearwsisessions.ts
|
|
10
|
+
var clearWSImagesSessionsPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "ClearWSImagesSessionsRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "ClearWSImagesSessionsResponse"
|
|
16
|
+
}
|
|
17
|
+
// examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/clearwsisession.ts
|
|
21
|
+
var validClearWSImagesSessionsRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
const $io0 = (input3) => Array.isArray(input3.sessions);
|
|
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.sessions) || $report(_exceptionable2, {
|
|
31
|
+
path: _path2 + ".sessions",
|
|
32
|
+
expected: "Array<any>",
|
|
33
|
+
value: input3.sessions
|
|
34
|
+
})].every((flag) => flag);
|
|
35
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
36
|
+
path: _path + "",
|
|
37
|
+
expected: "ClearWSImagesSessionsRequest",
|
|
38
|
+
value: input2
|
|
39
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
40
|
+
path: _path + "",
|
|
41
|
+
expected: "ClearWSImagesSessionsRequest",
|
|
42
|
+
value: input2
|
|
43
|
+
});
|
|
44
|
+
})(input, "$input", true);
|
|
45
|
+
}
|
|
46
|
+
const success = 0 === errors.length;
|
|
47
|
+
return {
|
|
48
|
+
success,
|
|
49
|
+
errors,
|
|
50
|
+
data: success ? input : void 0
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
var validClearWSImagesSessionsResponse = (input) => {
|
|
54
|
+
const errors = [];
|
|
55
|
+
const __is = (input2) => {
|
|
56
|
+
return "object" === typeof input2 && null !== input2 && "string" === typeof input2.message;
|
|
57
|
+
};
|
|
58
|
+
if (false === __is(input)) {
|
|
59
|
+
const $report = import_typia.createValidate.report(errors);
|
|
60
|
+
((input2, _path, _exceptionable = true) => {
|
|
61
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.message || $report(_exceptionable2, {
|
|
62
|
+
path: _path2 + ".message",
|
|
63
|
+
expected: "string",
|
|
64
|
+
value: input3.message
|
|
65
|
+
})].every((flag) => flag);
|
|
66
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
67
|
+
path: _path + "",
|
|
68
|
+
expected: "ClearWSImagesSessionsResponse",
|
|
69
|
+
value: input2
|
|
70
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
71
|
+
path: _path + "",
|
|
72
|
+
expected: "ClearWSImagesSessionsResponse",
|
|
73
|
+
value: input2
|
|
74
|
+
});
|
|
75
|
+
})(input, "$input", true);
|
|
76
|
+
}
|
|
77
|
+
const success = 0 === errors.length;
|
|
78
|
+
return {
|
|
79
|
+
success,
|
|
80
|
+
errors,
|
|
81
|
+
data: success ? input : void 0
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
clearWSImagesSessionsPayload,
|
|
86
|
+
validClearWSImagesSessionsRequest,
|
|
87
|
+
validClearWSImagesSessionsResponse
|
|
88
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
termChildrenPayload,
|
|
3
|
+
validTermChildrenRequest,
|
|
4
|
+
validTermChildrenResponse
|
|
5
|
+
} from "./chunk-5RZYB4M4.js";
|
|
1
6
|
import {
|
|
2
7
|
termsByIdsPayload,
|
|
3
8
|
validTermsByIdsRequest,
|
|
@@ -27,7 +32,12 @@ import {
|
|
|
27
32
|
validWSImagesRequest,
|
|
28
33
|
validWSImagesResponse,
|
|
29
34
|
wsImagesPayload
|
|
30
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-W3KUIWKN.js";
|
|
36
|
+
import {
|
|
37
|
+
numericCategoriesPayload,
|
|
38
|
+
validNumericCategoriesRequest,
|
|
39
|
+
validNumericCategoriesResponse
|
|
40
|
+
} from "./chunk-JDJZ35H6.js";
|
|
31
41
|
import {
|
|
32
42
|
percentilePayload,
|
|
33
43
|
validPercentileRequest,
|
|
@@ -64,10 +74,10 @@ import {
|
|
|
64
74
|
validTermdbSingleCellSamplesResponse
|
|
65
75
|
} from "./chunk-FZ6QOTGM.js";
|
|
66
76
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
77
|
+
snpPayload,
|
|
78
|
+
validSnpRequest,
|
|
79
|
+
validSnpResponse
|
|
80
|
+
} from "./chunk-XJCQEOPB.js";
|
|
71
81
|
import {
|
|
72
82
|
diffExpPayload,
|
|
73
83
|
validDERequest,
|
|
@@ -104,10 +114,10 @@ import {
|
|
|
104
114
|
validDescrStatsResponse
|
|
105
115
|
} from "./chunk-HQDTWY25.js";
|
|
106
116
|
import {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} from "./chunk-
|
|
117
|
+
hicGenomePayload,
|
|
118
|
+
validHicGenomeRequest,
|
|
119
|
+
validHicGenomeResponse
|
|
120
|
+
} from "./chunk-W3QYIXXF.js";
|
|
111
121
|
import {
|
|
112
122
|
hicstatPayload,
|
|
113
123
|
validHicstatRequest,
|
|
@@ -137,12 +147,12 @@ import {
|
|
|
137
147
|
sampleWSImagesPayload,
|
|
138
148
|
validSampleWSImagesRequest,
|
|
139
149
|
validSampleWSImagesResponse
|
|
140
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-75VJBEAQ.js";
|
|
141
151
|
import {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
152
|
+
gdcMafPayload,
|
|
153
|
+
validGdcMafRequest,
|
|
154
|
+
validGdcMafResponse
|
|
155
|
+
} from "./chunk-CETMA2FU.js";
|
|
146
156
|
import {
|
|
147
157
|
GdcMafPayload,
|
|
148
158
|
validGdcMafBuildRequest,
|
|
@@ -178,11 +188,6 @@ import {
|
|
|
178
188
|
validHicdataRequest,
|
|
179
189
|
validHicdataResponse
|
|
180
190
|
} from "./chunk-5JWTIWVB.js";
|
|
181
|
-
import {
|
|
182
|
-
hicGenomePayload,
|
|
183
|
-
validHicGenomeRequest,
|
|
184
|
-
validHicGenomeResponse
|
|
185
|
-
} from "./chunk-W3QYIXXF.js";
|
|
186
191
|
import {
|
|
187
192
|
brainImagingPayload,
|
|
188
193
|
validBrainImagingRequest,
|
|
@@ -218,11 +223,6 @@ import {
|
|
|
218
223
|
validDZImagesRequest,
|
|
219
224
|
validDZImagesResponse
|
|
220
225
|
} from "./chunk-SDOWCOGK.js";
|
|
221
|
-
import {
|
|
222
|
-
gdcMafPayload,
|
|
223
|
-
validGdcMafRequest,
|
|
224
|
-
validGdcMafResponse
|
|
225
|
-
} from "./chunk-CETMA2FU.js";
|
|
226
226
|
import "./chunk-Z6B6IQIY.js";
|
|
227
227
|
export {
|
|
228
228
|
CorrelationVolcanoPayload,
|
package/dist/samplewsimages.js
CHANGED
package/dist/wsimages.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -829,9 +829,9 @@ export type WSImages = {
|
|
|
829
829
|
// type of the image, e.g. H&E
|
|
830
830
|
type: string
|
|
831
831
|
// path to the folder where sample images are stored
|
|
832
|
-
imageBySampleFolder
|
|
833
|
-
|
|
834
|
-
|
|
832
|
+
imageBySampleFolder?: string
|
|
833
|
+
|
|
834
|
+
sources?: string
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
/*** types supporting Termdb ***/
|
package/src/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './routes/routeApi.ts'
|
|
|
8
8
|
export * from './routes/brainImaging.ts'
|
|
9
9
|
export * from './routes/brainImagingSamples.ts'
|
|
10
10
|
export * from './routes/burden.ts'
|
|
11
|
+
export * from './routes/clearwsisessions.ts'
|
|
11
12
|
export * from './routes/correlationVolcano.ts'
|
|
12
13
|
export * from './routes/dataset.ts'
|
|
13
14
|
export * from './routes/dsdata.ts'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
+
|
|
3
|
+
export type ClearWSImagesSessionsRequest = {
|
|
4
|
+
sessions: Array<any>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type ClearWSImagesSessionsResponse = {
|
|
8
|
+
message: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const clearWSImagesSessionsPayload: RoutePayload = {
|
|
12
|
+
request: {
|
|
13
|
+
typeId: 'ClearWSImagesSessionsRequest'
|
|
14
|
+
},
|
|
15
|
+
response: {
|
|
16
|
+
typeId: 'ClearWSImagesSessionsResponse'
|
|
17
|
+
}
|
|
18
|
+
// examples: []
|
|
19
|
+
}
|
package/src/routes/routeApi.ts
CHANGED
package/src/routes/wsimages.ts
CHANGED
|
@@ -8,7 +8,11 @@ export type WSImagesRequest = {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export type WSImagesResponse = {
|
|
11
|
-
|
|
11
|
+
// TileServer image session id
|
|
12
|
+
wsiSessionId?: string
|
|
13
|
+
// Identifier for the image instance displayed in the browser
|
|
14
|
+
// In case the same image is displayed in multiple browser windows, a new id is generated
|
|
15
|
+
browserImageInstanceId?: string
|
|
12
16
|
slide_dimensions: number[]
|
|
13
17
|
status: string
|
|
14
18
|
}
|