@eyepop.ai/eyepop 0.21.0 → 0.21.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/eyepop.index.mjs
CHANGED
|
@@ -10966,8 +10966,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10966
10966
|
this._requestLogger.debug("Response - " + response.status + " " + response.statusText);
|
|
10967
10967
|
return response.json();
|
|
10968
10968
|
}
|
|
10969
|
-
async listDatasets() {
|
|
10970
|
-
return this.request(`/datasets?account_uuid=${this._accountId}`, {
|
|
10969
|
+
async listDatasets(include_hero_asset = false) {
|
|
10970
|
+
return this.request(`/datasets?account_uuid=${this._accountId}&include_hero_asset=${include_hero_asset}`, {
|
|
10971
10971
|
method: "GET"
|
|
10972
10972
|
});
|
|
10973
10973
|
}
|
|
@@ -10977,8 +10977,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10977
10977
|
body: JSON.stringify(data)
|
|
10978
10978
|
});
|
|
10979
10979
|
}
|
|
10980
|
-
async getDataset(dataset_uuid) {
|
|
10981
|
-
return this.request(`/datasets/${dataset_uuid}`, {
|
|
10980
|
+
async getDataset(dataset_uuid, include_hero_asset = false) {
|
|
10981
|
+
return this.request(`/datasets/${dataset_uuid}?include_hero_asset=${include_hero_asset}`, {
|
|
10982
10982
|
method: "GET"
|
|
10983
10983
|
});
|
|
10984
10984
|
}
|
|
@@ -11005,8 +11005,14 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11005
11005
|
});
|
|
11006
11006
|
}
|
|
11007
11007
|
// Asset methods
|
|
11008
|
-
async uploadAsset(dataset_uuid, dataset_version, blob) {
|
|
11009
|
-
|
|
11008
|
+
async uploadAsset(dataset_uuid, dataset_version, blob, external_id = void 0) {
|
|
11009
|
+
let post_path;
|
|
11010
|
+
if (external_id) {
|
|
11011
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}&external_id=${external_id}`;
|
|
11012
|
+
} else {
|
|
11013
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}`;
|
|
11014
|
+
}
|
|
11015
|
+
return this.request(post_path, {
|
|
11010
11016
|
method: "POST",
|
|
11011
11017
|
body: blob,
|
|
11012
11018
|
headers: {
|