@3dverse/api 0.2.1 → 0.2.3

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;
@@ -583,7 +589,7 @@ export declare function getAssetFolder({ asset_container, asset_id }: {
583
589
  asset_id: string;
584
590
  }): AxiosPromise<GetAssetFolder_Folder>;
585
591
  export type GetAssetDependencies_Filter = {
586
- 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";
587
593
  };
588
594
  export type GetAssetDependencies_Flat = {
589
595
  animations?: Array<GetAssetDependencies_asset_item>;
@@ -1300,7 +1306,7 @@ export declare function getAssetThumbnail({ asset_container, asset_id, size, def
1300
1306
  asset_id: string;
1301
1307
  size: "large" | "medium" | "small" | "tiny";
1302
1308
  default_url?: string;
1303
- }): Promise<import("axios").AxiosResponse<any, any>>;
1309
+ }): AxiosPromise<ArrayBuffer>;
1304
1310
  export declare function setAssetThumbnail({ asset_container, asset_id, body }: {
1305
1311
  asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
1306
1312
  asset_id: string;
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
  }
@@ -766,6 +768,7 @@ function getAssetThumbnail({
766
768
  operationId: "getAssetThumbnail",
767
769
  method: "get",
768
770
  url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
771
+ responseType: "arraybuffer",
769
772
  params: {
770
773
  size,
771
774
  default_url