@sjcrh/proteinpaint-types 2.171.0-0 → 2.171.0

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.
@@ -2,7 +2,7 @@ import {
2
2
  aiProjectAdminPayload,
3
3
  validAIProjectAdminRequest,
4
4
  validAIProjectAdminResponse
5
- } from "./chunk-J2Y7RIN2.js";
5
+ } from "./chunk-THQOFV2K.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  aiProjectAdminPayload,
@@ -99,7 +99,7 @@ var validAIProjectAdminResponse = (input) => {
99
99
  const errors = [];
100
100
  const __is = (input2) => {
101
101
  const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.projectId || "number" === typeof input3.projectId) && (Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem)) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.data || Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
102
- const $io1 = (input3) => Array.isArray(input3.cols) && Array.isArray(input3.rows) && (Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem));
102
+ const $io1 = (input3) => Array.isArray(input3.cols) && Array.isArray(input3.rows) && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem)) && (void 0 === input3.selectedImages || Array.isArray(input3.selectedImages) && input3.selectedImages.every((elem) => "string" === typeof elem));
103
103
  return "object" === typeof input2 && null !== input2 && $io0(input2);
104
104
  };
105
105
  if (false === __is(input)) {
@@ -154,9 +154,9 @@ var validAIProjectAdminResponse = (input) => {
154
154
  path: _path2 + ".rows",
155
155
  expected: "Array<any>",
156
156
  value: input3.rows
157
- }), (Array.isArray(input3.images) || $report(_exceptionable2, {
157
+ }), void 0 === input3.images || (Array.isArray(input3.images) || $report(_exceptionable2, {
158
158
  path: _path2 + ".images",
159
- expected: "Array<string>",
159
+ expected: "(Array<string> | undefined)",
160
160
  value: input3.images
161
161
  })) && input3.images.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
162
162
  path: _path2 + ".images[" + _index3 + "]",
@@ -164,8 +164,20 @@ var validAIProjectAdminResponse = (input) => {
164
164
  value: elem
165
165
  })).every((flag) => flag) || $report(_exceptionable2, {
166
166
  path: _path2 + ".images",
167
- expected: "Array<string>",
167
+ expected: "(Array<string> | undefined)",
168
168
  value: input3.images
169
+ }), void 0 === input3.selectedImages || (Array.isArray(input3.selectedImages) || $report(_exceptionable2, {
170
+ path: _path2 + ".selectedImages",
171
+ expected: "(Array<string> | undefined)",
172
+ value: input3.selectedImages
173
+ })) && input3.selectedImages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
174
+ path: _path2 + ".selectedImages[" + _index4 + "]",
175
+ expected: "string",
176
+ value: elem
177
+ })).every((flag) => flag) || $report(_exceptionable2, {
178
+ path: _path2 + ".selectedImages",
179
+ expected: "(Array<string> | undefined)",
180
+ value: input3.selectedImages
169
181
  })].every((flag) => flag);
170
182
  return ("object" === typeof input2 && null !== input2 || $report(true, {
171
183
  path: _path + "",
package/dist/index.js CHANGED
@@ -272,7 +272,7 @@ import {
272
272
  aiProjectAdminPayload,
273
273
  validAIProjectAdminRequest,
274
274
  validAIProjectAdminResponse
275
- } from "./chunk-J2Y7RIN2.js";
275
+ } from "./chunk-THQOFV2K.js";
276
276
  import {
277
277
  aiProjectSelectedWSImagesResponsePayload,
278
278
  validAiProjectSelectedWSImagesRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.171.0-0",
3
+ "version": "2.171.0",
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
@@ -344,6 +344,7 @@ type SnvIndelQuery = {
344
344
  format4filters?: string[]
345
345
  format?: SnvIndelFormat
346
346
  variant_filter?: VariantFilter
347
+ mafFilter?: VariantFilter
347
348
  populations?: Population[]
348
349
  /** NOTE **
349
350
  this definition can appear either in queries.snvindel{} or termdb{}
@@ -1067,6 +1068,8 @@ export type WSImages = {
1067
1068
  getAnnotationClasses?: (projectId: string) => Promise<WSIClass[] | undefined>
1068
1069
  /** ds supplied */
1069
1070
  retrainModel?: (projectId: string, wsimages: string[]) => Promise<void>
1071
+ /** ds supplied */
1072
+ selectWSIImages?: () => Promise<string[]>
1070
1073
  }
1071
1074
 
1072
1075
  export type WSIClass = { id: number; key_shortcut: string; label: string; color: string }
@@ -24,7 +24,7 @@ export type AIProjectAdminResponse = {
24
24
  projectId?: number
25
25
  images: string[]
26
26
  error?: string
27
- data?: { cols: any[]; rows: any[]; images: string[] }[]
27
+ data?: { cols: any[]; rows: any[]; images?: string[]; selectedImages?: string[] }[]
28
28
  }
29
29
 
30
30
  export const aiProjectAdminPayload: RoutePayload = {