@3dverse/api 0.5.1 → 0.5.2
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/_prebuild/wrapper.d.ts +7 -6
- package/dist/index.js +11 -12
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +11 -12
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -402,14 +402,12 @@ export declare function getFolderAssets({ folder_id, offset, limit, filter }: {
|
|
402
402
|
limit?: number;
|
403
403
|
filter?: GetFolderAssets_Filter;
|
404
404
|
}): AxiosPromise<GetFolderAssets__index_AssetList_AssetList>;
|
405
|
-
export declare function moveAssets({ folder_id, assetIds }: {
|
406
|
-
folder_id: string;
|
407
|
-
assetIds: Array<string>;
|
408
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
409
405
|
export type CreateAsset_NewAsset = {
|
406
|
+
asset_type: "action_map" | "algorithm" | "animation_graph" | "animation_sequence" | "cubemap" | "event_map" | "material" | "module" | "render_graph" | "scene" | "script" | "shader" | "volume_material";
|
410
407
|
name: string;
|
411
408
|
};
|
412
409
|
export type CreateAsset_AssetDuplication = {
|
410
|
+
asset_type: "action_map" | "algorithm" | "animation" | "animation_graph" | "animation_sequence" | "animation_set" | "collision_geometry" | "cubemap" | "event_map" | "material" | "mesh" | "module" | "point_cloud" | "render_graph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "texture_1d" | "texture_3d" | "volume_material";
|
413
411
|
copy_from_asset_id: string;
|
414
412
|
new_asset_name?: string;
|
415
413
|
options?: CreateAsset_DuplicationOptions;
|
@@ -426,11 +424,14 @@ export type CreateAsset_AssetDuplicationResult = {
|
|
426
424
|
export type CreateAsset_SourceToCopyAssetIdMap = {
|
427
425
|
[source_asset_id: string]: string;
|
428
426
|
};
|
429
|
-
export declare function createAsset({ folder_id,
|
427
|
+
export declare function createAsset({ folder_id, assetCreationOptions }: {
|
430
428
|
folder_id: string;
|
431
|
-
asset_container_creatable: "action_maps" | "algorithms" | "animation_graphs" | "animation_sequences" | "cubemaps" | "event_maps" | "materials" | "modules" | "render_graphs" | "scenes" | "scripts" | "shaders" | "volume_materials";
|
432
429
|
assetCreationOptions: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;
|
433
430
|
}): AxiosPromise<CreateAsset_AssetDuplicationResult>;
|
431
|
+
export declare function moveAssets({ folder_id, assetIds }: {
|
432
|
+
folder_id: string;
|
433
|
+
assetIds: Array<string>;
|
434
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
434
435
|
export type GetSessionsInFolder_Session = {
|
435
436
|
session_id: string;
|
436
437
|
scene_id: string;
|
package/dist/index.js
CHANGED
@@ -484,27 +484,26 @@ function getFolderAssets({
|
|
484
484
|
}
|
485
485
|
});
|
486
486
|
}
|
487
|
-
function
|
487
|
+
function createAsset({
|
488
488
|
folder_id,
|
489
|
-
|
489
|
+
assetCreationOptions
|
490
490
|
}) {
|
491
491
|
return axiosInstance({
|
492
|
-
operationId: "
|
493
|
-
method: "
|
492
|
+
operationId: "createAsset",
|
493
|
+
method: "post",
|
494
494
|
url: "/folders/" + folder_id + "/assets",
|
495
|
-
data:
|
495
|
+
data: assetCreationOptions
|
496
496
|
});
|
497
497
|
}
|
498
|
-
function
|
498
|
+
function moveAssets({
|
499
499
|
folder_id,
|
500
|
-
|
501
|
-
assetCreationOptions
|
500
|
+
assetIds
|
502
501
|
}) {
|
503
502
|
return axiosInstance({
|
504
|
-
operationId: "
|
505
|
-
method: "
|
506
|
-
url: "/folders/" + folder_id + "/assets
|
507
|
-
data:
|
503
|
+
operationId: "moveAssets",
|
504
|
+
method: "put",
|
505
|
+
url: "/folders/" + folder_id + "/assets",
|
506
|
+
data: assetIds
|
508
507
|
});
|
509
508
|
}
|
510
509
|
function getSessionsInFolder({
|