@3dverse/api 0.2.0 → 0.2.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.
@@ -9,8 +9,9 @@
9
9
  *
10
10
  * Contact: 3dverse Support (support@3dverse.com)
11
11
  *
12
- * NOTE: This file is auto generated by library-generator (https://gitlab.com/3dverse/libs/library-generator).
13
- * Do not edit this file class manually.
12
+ * DO NOT EDIT THIS FILE MANUALLY.
13
+ * This file has been generated automatically from its OpenAPI spec file.
14
+ * See : https://gitlab.com/3dverse/platform/libs/js/openapi-client-library-generator
14
15
  */
15
16
  import { AxiosPromise } from 'axios';
16
17
  type UnionKeys<T> = T extends T ? keyof T : never;
@@ -350,6 +351,10 @@ export declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
350
351
  offset?: number;
351
352
  limit?: number;
352
353
  }): AxiosPromise<Array<GetUploadTasksInFolder_UploadTask>>;
354
+ export type GetFolderAssets_Filter = {
355
+ asset_type?: StrictUnion<Array<"animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial"> | "animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial"> & any;
356
+ asset_name?: string;
357
+ };
353
358
  export type GetFolderAssets_asset_list = {
354
359
  animations?: Array<GetFolderAssets_asset_item>;
355
360
  animationGraphs?: Array<GetFolderAssets_asset_item>;
@@ -373,10 +378,11 @@ export type GetFolderAssets_asset_item = {
373
378
  asset_id: string;
374
379
  name: string;
375
380
  };
376
- export declare function getFolderAssets({ folder_id, offset, limit }: {
381
+ export declare function getFolderAssets({ folder_id, offset, limit, filter }: {
377
382
  folder_id: string;
378
383
  offset?: number;
379
384
  limit?: number;
385
+ filter?: GetFolderAssets_Filter;
380
386
  }): AxiosPromise<GetFolderAssets_asset_list>;
381
387
  export declare function moveAssets({ folder_id, assetIds }: {
382
388
  folder_id: string;
@@ -384,6 +390,7 @@ export declare function moveAssets({ folder_id, assetIds }: {
384
390
  }): Promise<import("axios").AxiosResponse<any, any>>;
385
391
  export type CreateAsset_Object = {
386
392
  copy_from_asset_id: string;
393
+ new_asset_name?: string;
387
394
  };
388
395
  export type CreateAsset_AssetDescription = {
389
396
  name: string;
@@ -582,7 +589,7 @@ export declare function getAssetFolder({ asset_container, asset_id }: {
582
589
  asset_id: string;
583
590
  }): AxiosPromise<GetAssetFolder_Folder>;
584
591
  export type GetAssetDependencies_Filter = {
585
- type?: "animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial";
592
+ asset_type?: "animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial";
586
593
  };
587
594
  export type GetAssetDependencies_Flat = {
588
595
  animations?: Array<GetAssetDependencies_asset_item>;
package/dist/index.js CHANGED
@@ -483,7 +483,8 @@ function getUploadTasksInFolder({
483
483
  function getFolderAssets({
484
484
  folder_id,
485
485
  offset = 0,
486
- limit = 10
486
+ limit = 10,
487
+ filter
487
488
  }) {
488
489
  return axiosInstance({
489
490
  operationId: "getFolderAssets",
@@ -491,7 +492,8 @@ function getFolderAssets({
491
492
  url: "/folders/" + folder_id + "/assets",
492
493
  params: {
493
494
  offset,
494
- limit
495
+ limit,
496
+ filter
495
497
  }
496
498
  });
497
499
  }