@3dverse/api 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -293,15 +293,20 @@ function listFolderSubFolders({
293
293
  function getSourceFilesInFolder({
294
294
  folder_id,
295
295
  offset = 0,
296
- limit = 10
296
+ limit = 10,
297
+ filters
297
298
  }) {
298
299
  return axiosInstance({
299
300
  method: "get",
300
301
  url: "/folders/" + folder_id + "/source-files",
301
302
  params: {
302
303
  offset,
303
- limit
304
+ limit,
305
+ filters
304
306
  }
307
+ }).then((response) => {
308
+ response.headers["x-source-files-count"] = JSON.parse(response.headers["x-source-files-count"]);
309
+ return response;
305
310
  });
306
311
  }
307
312
  function moveSourceFiles({
@@ -374,15 +379,20 @@ function getSessionsInFolder({
374
379
  }
375
380
  function listSourceFiles({
376
381
  offset = 0,
377
- limit = 10
382
+ limit = 10,
383
+ filters
378
384
  }) {
379
385
  return axiosInstance({
380
386
  method: "get",
381
387
  url: "/source-files",
382
388
  params: {
383
389
  offset,
384
- limit
390
+ limit,
391
+ filters
385
392
  }
393
+ }).then((response) => {
394
+ response.headers["x-source-files-count"] = JSON.parse(response.headers["x-source-files-count"]);
395
+ return response;
386
396
  });
387
397
  }
388
398
  function deleteSourceFiles({