@3dverse/api 0.6.3 → 0.6.4
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 +10 -6
- package/dist/index.js +14 -4
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -325,17 +325,20 @@ export declare function uploadSourceFiles({ folder_id, body }: {
|
|
|
325
325
|
folder_id: string;
|
|
326
326
|
body: FormData;
|
|
327
327
|
}): AxiosPromise<UploadSourceFiles_Object>;
|
|
328
|
+
export type GetSourceFilesInFolder_Filters = {
|
|
329
|
+
source_file_name?: string;
|
|
330
|
+
};
|
|
328
331
|
export type GetSourceFilesInFolder_SourceFile = {
|
|
329
332
|
source_file_id: string;
|
|
330
|
-
upload_task_id: string;
|
|
331
333
|
source_file_original_name: string;
|
|
332
334
|
name: string;
|
|
333
335
|
size: number;
|
|
334
336
|
};
|
|
335
|
-
export declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
|
|
337
|
+
export declare function getSourceFilesInFolder({ folder_id, offset, limit, filters }: {
|
|
336
338
|
folder_id: string;
|
|
337
339
|
offset?: number;
|
|
338
340
|
limit?: number;
|
|
341
|
+
filters?: GetSourceFilesInFolder_Filters;
|
|
339
342
|
}): AxiosPromise<Array<GetSourceFilesInFolder_SourceFile>>;
|
|
340
343
|
export declare function moveSourceFiles({ folder_id, source_file_ids }: {
|
|
341
344
|
folder_id: string;
|
|
@@ -459,16 +462,19 @@ export type GetSessionsInFolder_UserInfo = {
|
|
|
459
462
|
export declare function getSessionsInFolder({ folder_id }: {
|
|
460
463
|
folder_id: string;
|
|
461
464
|
}): AxiosPromise<Array<GetSessionsInFolder_Session>>;
|
|
465
|
+
export type ListSourceFiles_Filters = {
|
|
466
|
+
source_file_name?: string;
|
|
467
|
+
};
|
|
462
468
|
export type ListSourceFiles_SourceFile = {
|
|
463
469
|
source_file_id: string;
|
|
464
|
-
upload_task_id: string;
|
|
465
470
|
source_file_original_name: string;
|
|
466
471
|
name: string;
|
|
467
472
|
size: number;
|
|
468
473
|
};
|
|
469
|
-
export declare function listSourceFiles({ offset, limit }: {
|
|
474
|
+
export declare function listSourceFiles({ offset, limit, filters }: {
|
|
470
475
|
offset?: number;
|
|
471
476
|
limit?: number;
|
|
477
|
+
filters?: ListSourceFiles_Filters;
|
|
472
478
|
}): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
|
|
473
479
|
export declare function deleteSourceFiles({ source_file_ids }: {
|
|
474
480
|
source_file_ids: Array<string>;
|
|
@@ -478,7 +484,6 @@ export declare function downloadSourceFile({ source_file_id }: {
|
|
|
478
484
|
}): AxiosPromise<ArrayBuffer>;
|
|
479
485
|
export type GetSourceFileDetails_SourceFile = {
|
|
480
486
|
source_file_id: string;
|
|
481
|
-
upload_task_id: string;
|
|
482
487
|
source_file_original_name: string;
|
|
483
488
|
name: string;
|
|
484
489
|
size: number;
|
|
@@ -599,7 +604,6 @@ export declare function deleteAsset({ asset_container, asset_id }: {
|
|
|
599
604
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
600
605
|
export type GetAssetSourceFile_SourceFile = {
|
|
601
606
|
source_file_id: string;
|
|
602
|
-
upload_task_id: string;
|
|
603
607
|
source_file_original_name: string;
|
|
604
608
|
name: string;
|
|
605
609
|
size: number;
|
package/dist/index.js
CHANGED
|
@@ -403,15 +403,20 @@ function listFolderSubFolders({
|
|
|
403
403
|
function getSourceFilesInFolder({
|
|
404
404
|
folder_id,
|
|
405
405
|
offset = 0,
|
|
406
|
-
limit = 10
|
|
406
|
+
limit = 10,
|
|
407
|
+
filters
|
|
407
408
|
}) {
|
|
408
409
|
return axiosInstance({
|
|
409
410
|
method: "get",
|
|
410
411
|
url: "/folders/" + folder_id + "/source-files",
|
|
411
412
|
params: {
|
|
412
413
|
offset,
|
|
413
|
-
limit
|
|
414
|
+
limit,
|
|
415
|
+
filters
|
|
414
416
|
}
|
|
417
|
+
}).then((response) => {
|
|
418
|
+
response.headers["x-source-files-count"] = JSON.parse(response.headers["x-source-files-count"]);
|
|
419
|
+
return response;
|
|
415
420
|
});
|
|
416
421
|
}
|
|
417
422
|
function moveSourceFiles({
|
|
@@ -484,15 +489,20 @@ function getSessionsInFolder({
|
|
|
484
489
|
}
|
|
485
490
|
function listSourceFiles({
|
|
486
491
|
offset = 0,
|
|
487
|
-
limit = 10
|
|
492
|
+
limit = 10,
|
|
493
|
+
filters
|
|
488
494
|
}) {
|
|
489
495
|
return axiosInstance({
|
|
490
496
|
method: "get",
|
|
491
497
|
url: "/source-files",
|
|
492
498
|
params: {
|
|
493
499
|
offset,
|
|
494
|
-
limit
|
|
500
|
+
limit,
|
|
501
|
+
filters
|
|
495
502
|
}
|
|
503
|
+
}).then((response) => {
|
|
504
|
+
response.headers["x-source-files-count"] = JSON.parse(response.headers["x-source-files-count"]);
|
|
505
|
+
return response;
|
|
496
506
|
});
|
|
497
507
|
}
|
|
498
508
|
function deleteSourceFiles({
|