@3dverse/api 0.4.4 → 0.5.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.
@@ -89,18 +89,23 @@ export type GetUserUploadTasks_UploadTask = {
89
89
  upload_task_id: string;
90
90
  folder_id: string;
91
91
  uploaded_at: string;
92
- uploaded_by: string;
92
+ uploaded_by: GetUserUploadTasks_Object;
93
93
  progress: number;
94
94
  download_progress?: number;
95
- status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
95
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
96
96
  conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
97
97
  };
98
+ export type GetUserUploadTasks_Object = {
99
+ user_id: string;
100
+ username: string;
101
+ };
98
102
  export type GetUserUploadTasks_ConversionTask = {
99
103
  asset_id: string;
100
104
  source_file_id: string;
105
+ source_file_name: string;
101
106
  conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
102
107
  progress: number;
103
- status: "waiting" | "pending" | "converting" | "error" | "success";
108
+ status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
104
109
  };
105
110
  export declare function getUserUploadTasks({ user_id, offset, limit }: {
106
111
  user_id: string;
@@ -335,18 +340,23 @@ export type GetUploadTasksInFolder_UploadTask = {
335
340
  upload_task_id: string;
336
341
  folder_id: string;
337
342
  uploaded_at: string;
338
- uploaded_by: string;
343
+ uploaded_by: GetUploadTasksInFolder_Object;
339
344
  progress: number;
340
345
  download_progress?: number;
341
- status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
346
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
342
347
  conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
343
348
  };
349
+ export type GetUploadTasksInFolder_Object = {
350
+ user_id: string;
351
+ username: string;
352
+ };
344
353
  export type GetUploadTasksInFolder_ConversionTask = {
345
354
  asset_id: string;
346
355
  source_file_id: string;
356
+ source_file_name: string;
347
357
  conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
348
358
  progress: number;
349
- status: "waiting" | "pending" | "converting" | "error" | "success";
359
+ status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
350
360
  };
351
361
  export declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
352
362
  folder_id: string;
@@ -505,22 +515,31 @@ export type GetSourceFileAssets_Object = {
505
515
  export declare function getSourceFileAssets({ source_file_id }: {
506
516
  source_file_id: string;
507
517
  }): AxiosPromise<GetSourceFileAssets__index_AssetList_AssetList>;
518
+ export declare function getUploadTasks({ offset, limit }: {
519
+ offset?: number;
520
+ limit?: number;
521
+ }): AxiosPromise<any>;
508
522
  export type GetUploadTask_UploadTask = {
509
523
  upload_task_id: string;
510
524
  folder_id: string;
511
525
  uploaded_at: string;
512
- uploaded_by: string;
526
+ uploaded_by: GetUploadTask_Object;
513
527
  progress: number;
514
528
  download_progress?: number;
515
- status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
529
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
516
530
  conversion_tasks: Array<GetUploadTask_ConversionTask>;
517
531
  };
532
+ export type GetUploadTask_Object = {
533
+ user_id: string;
534
+ username: string;
535
+ };
518
536
  export type GetUploadTask_ConversionTask = {
519
537
  asset_id: string;
520
538
  source_file_id: string;
539
+ source_file_name: string;
521
540
  conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
522
541
  progress: number;
523
- status: "waiting" | "pending" | "converting" | "error" | "success";
542
+ status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
524
543
  };
525
544
  export declare function getUploadTask({ upload_task_id }: {
526
545
  upload_task_id: string;
@@ -662,10 +681,39 @@ export declare function getAssetDependencies({ asset_container, asset_id, format
662
681
  depth?: StrictUnion<'all' | 'direct'>;
663
682
  filter?: GetAssetDependencies_Filter;
664
683
  }): AxiosPromise<(GetAssetDependencies_Flat | Array<Array<GetAssetDependencies__index_AssetItem_AssetItem>>)>;
684
+ export type GetAssetReferences__index_AssetList_AssetList = {
685
+ action_maps?: Array<GetAssetReferences_Object>;
686
+ algorithms?: Array<GetAssetReferences_Object>;
687
+ animation_graphs?: Array<GetAssetReferences_Object>;
688
+ animation_sequences?: Array<GetAssetReferences_Object>;
689
+ animation_sets?: Array<GetAssetReferences_Object>;
690
+ animations?: Array<GetAssetReferences_Object>;
691
+ collision_geometries?: Array<GetAssetReferences_Object>;
692
+ cubemaps?: Array<GetAssetReferences_Object>;
693
+ event_maps?: Array<GetAssetReferences_Object>;
694
+ materials?: Array<GetAssetReferences_Object>;
695
+ meshes?: Array<GetAssetReferences_Object>;
696
+ modules?: Array<GetAssetReferences_Object>;
697
+ point_clouds?: Array<GetAssetReferences_Object>;
698
+ render_graphs?: Array<GetAssetReferences_Object>;
699
+ scenes?: Array<GetAssetReferences_Object>;
700
+ scripts?: Array<GetAssetReferences_Object>;
701
+ shaders?: Array<GetAssetReferences_Object>;
702
+ skeletons?: Array<GetAssetReferences_Object>;
703
+ sounds?: Array<GetAssetReferences_Object>;
704
+ textures?: Array<GetAssetReferences_Object>;
705
+ textures_1d?: Array<GetAssetReferences_Object>;
706
+ textures_3d?: Array<GetAssetReferences_Object>;
707
+ volume_materials?: Array<GetAssetReferences_Object>;
708
+ };
709
+ export type GetAssetReferences_Object = {
710
+ asset_id: string;
711
+ name: string;
712
+ };
665
713
  export declare function getAssetReferences({ asset_container, asset_id }: {
666
714
  asset_container: "action_maps" | "algorithms" | "animations" | "animation_graphs" | "animation_sequences" | "animation_sets" | "collision_geometries" | "cubemaps" | "event_maps" | "materials" | "meshes" | "modules" | "point_clouds" | "render_graphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "textures_1d" | "textures_3d" | "volume_materials";
667
715
  asset_id: string;
668
- }): AxiosPromise<object>;
716
+ }): AxiosPromise<GetAssetReferences__index_AssetList_AssetList>;
669
717
  export type GetAssetDescription_ActionMap = {
670
718
  actions: GetAssetDescription_Object;
671
719
  };
package/dist/index.js CHANGED
@@ -72,6 +72,7 @@ __export(library_exports, {
72
72
  getSourceFileDetails: () => getSourceFileDetails,
73
73
  getSourceFilesInFolder: () => getSourceFilesInFolder,
74
74
  getUploadTask: () => getUploadTask,
75
+ getUploadTasks: () => getUploadTasks,
75
76
  getUploadTasksInFolder: () => getUploadTasksInFolder,
76
77
  getUser: () => getUser,
77
78
  getUserGroups: () => getUserGroups,
@@ -594,6 +595,20 @@ function getSourceFileAssets({
594
595
  url: "/source-files/" + source_file_id + "/assets"
595
596
  });
596
597
  }
598
+ function getUploadTasks({
599
+ offset = 0,
600
+ limit = 10
601
+ }) {
602
+ return axiosInstance({
603
+ operationId: "getUploadTasks",
604
+ method: "get",
605
+ url: "/upload-tasks",
606
+ params: {
607
+ offset,
608
+ limit
609
+ }
610
+ });
611
+ }
597
612
  function getUploadTask({
598
613
  upload_task_id
599
614
  }) {
@@ -1075,6 +1090,7 @@ installInterceptors();
1075
1090
  getSourceFileDetails,
1076
1091
  getSourceFilesInFolder,
1077
1092
  getUploadTask,
1093
+ getUploadTasks,
1078
1094
  getUploadTasksInFolder,
1079
1095
  getUser,
1080
1096
  getUserGroups,