@3dverse/api 0.6.3 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +15 -7
- package/dist/index.js +18 -6
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +18 -6
- 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;
|
@@ -448,6 +451,7 @@ export type GetSessionsInFolder_Session = {
|
|
448
451
|
created_at: string;
|
449
452
|
country_code: string;
|
450
453
|
continent_code: string;
|
454
|
+
is_transient_session: boolean;
|
451
455
|
clients: Array<GetSessionsInFolder_UserInfo>;
|
452
456
|
};
|
453
457
|
export type GetSessionsInFolder_UserInfo = {
|
@@ -459,16 +463,19 @@ export type GetSessionsInFolder_UserInfo = {
|
|
459
463
|
export declare function getSessionsInFolder({ folder_id }: {
|
460
464
|
folder_id: string;
|
461
465
|
}): AxiosPromise<Array<GetSessionsInFolder_Session>>;
|
466
|
+
export type ListSourceFiles_Filters = {
|
467
|
+
source_file_name?: string;
|
468
|
+
};
|
462
469
|
export type ListSourceFiles_SourceFile = {
|
463
470
|
source_file_id: string;
|
464
|
-
upload_task_id: string;
|
465
471
|
source_file_original_name: string;
|
466
472
|
name: string;
|
467
473
|
size: number;
|
468
474
|
};
|
469
|
-
export declare function listSourceFiles({ offset, limit }: {
|
475
|
+
export declare function listSourceFiles({ offset, limit, filters }: {
|
470
476
|
offset?: number;
|
471
477
|
limit?: number;
|
478
|
+
filters?: ListSourceFiles_Filters;
|
472
479
|
}): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
|
473
480
|
export declare function deleteSourceFiles({ source_file_ids }: {
|
474
481
|
source_file_ids: Array<string>;
|
@@ -478,7 +485,6 @@ export declare function downloadSourceFile({ source_file_id }: {
|
|
478
485
|
}): AxiosPromise<ArrayBuffer>;
|
479
486
|
export type GetSourceFileDetails_SourceFile = {
|
480
487
|
source_file_id: string;
|
481
|
-
upload_task_id: string;
|
482
488
|
source_file_original_name: string;
|
483
489
|
name: string;
|
484
490
|
size: number;
|
@@ -599,7 +605,6 @@ export declare function deleteAsset({ asset_container, asset_id }: {
|
|
599
605
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
600
606
|
export type GetAssetSourceFile_SourceFile = {
|
601
607
|
source_file_id: string;
|
602
|
-
upload_task_id: string;
|
603
608
|
source_file_original_name: string;
|
604
609
|
name: string;
|
605
610
|
size: number;
|
@@ -931,6 +936,7 @@ export type GetSceneSessions_Session = {
|
|
931
936
|
created_at: string;
|
932
937
|
country_code: string;
|
933
938
|
continent_code: string;
|
939
|
+
is_transient_session: boolean;
|
934
940
|
clients: Array<GetSceneSessions_UserInfo>;
|
935
941
|
};
|
936
942
|
export type GetSceneSessions_UserInfo = {
|
@@ -1654,9 +1660,10 @@ export declare function deleteEntity({ scene_id, entity_id }: {
|
|
1654
1660
|
export type CreateSession_Object = {
|
1655
1661
|
session_id: string;
|
1656
1662
|
};
|
1657
|
-
export declare function createSession({ scene_id, renderer_version }: {
|
1663
|
+
export declare function createSession({ scene_id, renderer_version, is_transient }: {
|
1658
1664
|
scene_id: string;
|
1659
1665
|
renderer_version?: string;
|
1666
|
+
is_transient?: boolean;
|
1660
1667
|
}): AxiosPromise<CreateSession_Object>;
|
1661
1668
|
export type GetSession_Session = {
|
1662
1669
|
session_id: string;
|
@@ -1668,6 +1675,7 @@ export type GetSession_Session = {
|
|
1668
1675
|
created_at: string;
|
1669
1676
|
country_code: string;
|
1670
1677
|
continent_code: string;
|
1678
|
+
is_transient_session: boolean;
|
1671
1679
|
clients: Array<GetSession_UserInfo>;
|
1672
1680
|
};
|
1673
1681
|
export type GetSession_UserInfo = {
|
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({
|
@@ -822,14 +832,16 @@ function deleteEntity({
|
|
822
832
|
}
|
823
833
|
function createSession({
|
824
834
|
scene_id,
|
825
|
-
renderer_version
|
835
|
+
renderer_version,
|
836
|
+
is_transient = false
|
826
837
|
}) {
|
827
838
|
return axiosInstance({
|
828
839
|
method: "post",
|
829
840
|
url: "/sessions",
|
830
841
|
data: {
|
831
842
|
scene_id,
|
832
|
-
renderer_version
|
843
|
+
renderer_version,
|
844
|
+
is_transient
|
833
845
|
}
|
834
846
|
});
|
835
847
|
}
|