diff --git a/frontend/javascripts/admin/admin_rest_api.js b/frontend/javascripts/admin/admin_rest_api.js index 104d1c30031..dc0f592d7bc 100644 --- a/frontend/javascripts/admin/admin_rest_api.js +++ b/frontend/javascripts/admin/admin_rest_api.js @@ -43,7 +43,7 @@ import { type ServerSkeletonTracing, type ServerTracing, type ServerVolumeTracing, - type wkConnectDatasetConfig, + type WkConnectDatasetConfig, } from "admin/api_flow_types"; import type { DatasetConfiguration } from "oxalis/store"; import type { NewTask, TaskCreationResponse } from "admin/task/task_create_bulk_view"; @@ -781,7 +781,7 @@ export function addDataset(datasetConfig: DatasetConfig): Promise { export function addWkConnectDataset( datastoreHost: string, - datasetConfig: wkConnectDatasetConfig, + datasetConfig: WkConnectDatasetConfig, ): Promise { return doWithToken(token => Request.sendJSONReceiveJSON(`/data/datasets?token=${token}`, { diff --git a/frontend/javascripts/admin/api_flow_types.js b/frontend/javascripts/admin/api_flow_types.js index 38dd03e6380..1150e7cec04 100644 --- a/frontend/javascripts/admin/api_flow_types.js +++ b/frontend/javascripts/admin/api_flow_types.js @@ -364,16 +364,17 @@ export type DatasetConfig = { +zipFile: File, }; -type wkConnectLayer = { +type WkConnectLayer = { + // This is the source URL of the layer, should start with gs://, http:// or https:// source: string, type: "image" | "segmentation", }; -export type wkConnectDatasetConfig = { +export type WkConnectDatasetConfig = { neuroglancer: { - [string]: { - [string]: { - layers: { [string]: wkConnectLayer }, + [organizationName: string]: { + [datasetName: string]: { + layers: { [layerName: string]: WkConnectLayer }, }, }, },