@3dverse/api 0.6.8 → 0.7.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.
package/dist/index.mjs CHANGED
@@ -396,12 +396,16 @@ function listSourceFiles({
396
396
  });
397
397
  }
398
398
  function deleteSourceFiles({
399
- source_file_ids
399
+ source_file_ids,
400
+ delete_assets = false
400
401
  }) {
401
402
  return axiosInstance({
402
403
  method: "delete",
403
404
  url: "/source-files",
404
- data: source_file_ids
405
+ data: {
406
+ source_file_ids,
407
+ delete_assets
408
+ }
405
409
  });
406
410
  }
407
411
  function downloadSourceFile({
@@ -525,27 +529,39 @@ function getAssetFolder({
525
529
  function getAssetDependencies({
526
530
  asset_container,
527
531
  asset_id,
528
- format = "flat",
532
+ offset = 0,
533
+ limit = 10,
529
534
  depth = "all",
530
- filter
535
+ filters,
536
+ properties
531
537
  }) {
532
538
  return axiosInstance({
533
539
  method: "get",
534
540
  url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
535
541
  params: {
536
- format,
542
+ offset,
543
+ limit,
537
544
  depth,
538
- filter
545
+ filters,
546
+ properties
539
547
  }
540
548
  });
541
549
  }
542
550
  function getAssetReferences({
543
551
  asset_container,
544
- asset_id
552
+ asset_id,
553
+ offset = 0,
554
+ limit = 10,
555
+ properties
545
556
  }) {
546
557
  return axiosInstance({
547
558
  method: "get",
548
- url: "/assets/" + asset_container + "/" + asset_id + "/references"
559
+ url: "/assets/" + asset_container + "/" + asset_id + "/references",
560
+ params: {
561
+ offset,
562
+ limit,
563
+ properties
564
+ }
549
565
  });
550
566
  }
551
567
  function getAssetDescription({