@3dverse/api 0.11.0 → 0.12.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/README.md CHANGED
@@ -40,14 +40,17 @@ async () => {
40
40
  For client-side request, you can authenticate with the User Token.
41
41
 
42
42
  ```
43
- import { setUserToken, uploadSourceFiles } from '@3dverse/api';
43
+ import { createImport, setUserToken } from '@3dverse/api';
44
44
 
45
45
  setUserToken(MY_USER_TOKEN);
46
46
 
47
47
  async () => {
48
- const upload = await uploadSourceFiles({
48
+ const {
49
+ data: { import_id },
50
+ } = await createImport({
49
51
  folder_id: 'my_folder_id',
50
- body: formData
52
+ conversion_pipeline: 'auto-detect',
53
+ files: [myFile],
51
54
  });
52
55
  }
53
56
  ```