@eyepop.ai/eyepop 1.6.2 → 1.8.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.
package/dist/eyepop.index.mjs
CHANGED
|
@@ -11176,8 +11176,10 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11176
11176
|
body: JSON.stringify(data)
|
|
11177
11177
|
});
|
|
11178
11178
|
}
|
|
11179
|
-
async getDataset(dataset_uuid, include_stats = true) {
|
|
11180
|
-
|
|
11179
|
+
async getDataset(dataset_uuid, include_stats = true, dataset_version, modifiable_version_only) {
|
|
11180
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11181
|
+
const modifiableVersionQuery = typeof modifiable_version_only !== "undefined" ? `&modifiable_version_only=${modifiable_version_only}` : "";
|
|
11182
|
+
return this.request(`/datasets/${dataset_uuid}?include_stats=${include_stats}${versionQuery}${modifiableVersionQuery}`, {
|
|
11181
11183
|
method: "GET"
|
|
11182
11184
|
});
|
|
11183
11185
|
}
|
|
@@ -11336,6 +11338,11 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11336
11338
|
method: "GET"
|
|
11337
11339
|
});
|
|
11338
11340
|
}
|
|
11341
|
+
async findModelsForDataset(dataset_uuid) {
|
|
11342
|
+
return this.request(`/models?dataset_uuid=${dataset_uuid}`, {
|
|
11343
|
+
method: "GET"
|
|
11344
|
+
});
|
|
11345
|
+
}
|
|
11339
11346
|
async createModel(dataset_uuid, dataset_version, data, start_training = true) {
|
|
11340
11347
|
return this.request(`/models?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}&start_training=${start_training}`, {
|
|
11341
11348
|
method: "POST",
|