@3dverse/api 0.4.3 → 0.4.5

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.
@@ -92,15 +92,15 @@ export type GetUserUploadTasks_UploadTask = {
92
92
  uploaded_by: string;
93
93
  progress: number;
94
94
  download_progress?: number;
95
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
95
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
96
96
  conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
97
97
  };
98
98
  export type GetUserUploadTasks_ConversionTask = {
99
- asset_id?: string;
100
- source_file_id?: string;
101
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
102
- progress?: number;
103
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
99
+ asset_id: string;
100
+ source_file_id: string;
101
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
102
+ progress: number;
103
+ status: "waiting" | "pending" | "converting" | "error" | "success";
104
104
  };
105
105
  export declare function getUserUploadTasks({ user_id, offset, limit }: {
106
106
  user_id: string;
@@ -338,15 +338,15 @@ export type GetUploadTasksInFolder_UploadTask = {
338
338
  uploaded_by: string;
339
339
  progress: number;
340
340
  download_progress?: number;
341
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
341
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
342
342
  conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
343
343
  };
344
344
  export type GetUploadTasksInFolder_ConversionTask = {
345
- asset_id?: string;
346
- source_file_id?: string;
347
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
348
- progress?: number;
349
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
345
+ asset_id: string;
346
+ source_file_id: string;
347
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
348
+ progress: number;
349
+ status: "waiting" | "pending" | "converting" | "error" | "success";
350
350
  };
351
351
  export declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
352
352
  folder_id: string;
@@ -505,6 +505,10 @@ export type GetSourceFileAssets_Object = {
505
505
  export declare function getSourceFileAssets({ source_file_id }: {
506
506
  source_file_id: string;
507
507
  }): AxiosPromise<GetSourceFileAssets__index_AssetList_AssetList>;
508
+ export declare function getUploadTasks({ offset, limit }: {
509
+ offset?: number;
510
+ limit?: number;
511
+ }): AxiosPromise<any>;
508
512
  export type GetUploadTask_UploadTask = {
509
513
  upload_task_id: string;
510
514
  folder_id: string;
@@ -512,15 +516,15 @@ export type GetUploadTask_UploadTask = {
512
516
  uploaded_by: string;
513
517
  progress: number;
514
518
  download_progress?: number;
515
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
519
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
516
520
  conversion_tasks: Array<GetUploadTask_ConversionTask>;
517
521
  };
518
522
  export type GetUploadTask_ConversionTask = {
519
- asset_id?: string;
520
- source_file_id?: string;
521
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
522
- progress?: number;
523
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
523
+ asset_id: string;
524
+ source_file_id: string;
525
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
526
+ progress: number;
527
+ status: "waiting" | "pending" | "converting" | "error" | "success";
524
528
  };
525
529
  export declare function getUploadTask({ upload_task_id }: {
526
530
  upload_task_id: string;
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,