@arke-institute/sdk 2.3.6 → 2.3.8
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/{crypto-BddSiyPC.d.cts → crypto-D7rJLGQQ.d.cts} +12 -8
- package/dist/{crypto-Dz2ktRy4.d.ts → crypto-s98kufbt.d.ts} +12 -8
- package/dist/generated/index.d.cts +507 -24
- package/dist/generated/index.d.ts +507 -24
- package/dist/index.cjs +6 -541
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -541
- package/dist/index.js.map +1 -1
- package/dist/operations/index.cjs +6 -71
- package/dist/operations/index.cjs.map +1 -1
- package/dist/operations/index.d.cts +3 -26
- package/dist/operations/index.d.ts +3 -26
- package/dist/operations/index.js +6 -70
- package/dist/operations/index.js.map +1 -1
- package/openapi/spec.json +586 -26
- package/openapi/version.json +1 -1
- package/package.json +1 -1
|
@@ -275,9 +275,12 @@ interface UploadResult {
|
|
|
275
275
|
*
|
|
276
276
|
* @deprecated Use the new upload module instead:
|
|
277
277
|
* ```typescript
|
|
278
|
-
* import { uploadTree,
|
|
278
|
+
* import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
|
|
279
279
|
*
|
|
280
|
-
* const tree =
|
|
280
|
+
* const tree = buildUploadTree([
|
|
281
|
+
* { path: 'docs/readme.md', data: readmeBuffer },
|
|
282
|
+
* { path: 'images/logo.png', data: logoBlob },
|
|
283
|
+
* ]);
|
|
281
284
|
* const result = await uploadTree(client, tree, {
|
|
282
285
|
* target: { collectionId: '...' },
|
|
283
286
|
* });
|
|
@@ -322,14 +325,15 @@ interface UploadDirectoryResult {
|
|
|
322
325
|
/**
|
|
323
326
|
* Folder operations helper
|
|
324
327
|
*
|
|
325
|
-
* @deprecated Use uploadTree and
|
|
328
|
+
* @deprecated Use uploadTree and buildUploadTree functions instead:
|
|
326
329
|
* ```typescript
|
|
327
|
-
* import { uploadTree,
|
|
330
|
+
* import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
|
|
328
331
|
*
|
|
329
|
-
* const tree =
|
|
332
|
+
* const tree = buildUploadTree([
|
|
333
|
+
* { path: 'docs/readme.md', data: readmeBuffer },
|
|
334
|
+
* ]);
|
|
330
335
|
* const result = await uploadTree(client, tree, {
|
|
331
336
|
* target: { collectionId: '...' },
|
|
332
|
-
* onProgress: (p) => console.log(`${p.completedFiles}/${p.totalFiles} files`),
|
|
333
337
|
* });
|
|
334
338
|
* ```
|
|
335
339
|
*/
|
|
@@ -339,9 +343,9 @@ declare class FolderOperations {
|
|
|
339
343
|
/**
|
|
340
344
|
* Upload a local directory to Arke
|
|
341
345
|
*
|
|
342
|
-
* @deprecated Use uploadTree and
|
|
346
|
+
* @deprecated This method has been removed. Use uploadTree and buildUploadTree instead.
|
|
343
347
|
*/
|
|
344
|
-
uploadDirectory(
|
|
348
|
+
uploadDirectory(_localPath: string, _options: UploadDirectoryOptions): Promise<UploadDirectoryResult>;
|
|
345
349
|
}
|
|
346
350
|
|
|
347
351
|
/**
|
|
@@ -275,9 +275,12 @@ interface UploadResult {
|
|
|
275
275
|
*
|
|
276
276
|
* @deprecated Use the new upload module instead:
|
|
277
277
|
* ```typescript
|
|
278
|
-
* import { uploadTree,
|
|
278
|
+
* import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
|
|
279
279
|
*
|
|
280
|
-
* const tree =
|
|
280
|
+
* const tree = buildUploadTree([
|
|
281
|
+
* { path: 'docs/readme.md', data: readmeBuffer },
|
|
282
|
+
* { path: 'images/logo.png', data: logoBlob },
|
|
283
|
+
* ]);
|
|
281
284
|
* const result = await uploadTree(client, tree, {
|
|
282
285
|
* target: { collectionId: '...' },
|
|
283
286
|
* });
|
|
@@ -322,14 +325,15 @@ interface UploadDirectoryResult {
|
|
|
322
325
|
/**
|
|
323
326
|
* Folder operations helper
|
|
324
327
|
*
|
|
325
|
-
* @deprecated Use uploadTree and
|
|
328
|
+
* @deprecated Use uploadTree and buildUploadTree functions instead:
|
|
326
329
|
* ```typescript
|
|
327
|
-
* import { uploadTree,
|
|
330
|
+
* import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
|
|
328
331
|
*
|
|
329
|
-
* const tree =
|
|
332
|
+
* const tree = buildUploadTree([
|
|
333
|
+
* { path: 'docs/readme.md', data: readmeBuffer },
|
|
334
|
+
* ]);
|
|
330
335
|
* const result = await uploadTree(client, tree, {
|
|
331
336
|
* target: { collectionId: '...' },
|
|
332
|
-
* onProgress: (p) => console.log(`${p.completedFiles}/${p.totalFiles} files`),
|
|
333
337
|
* });
|
|
334
338
|
* ```
|
|
335
339
|
*/
|
|
@@ -339,9 +343,9 @@ declare class FolderOperations {
|
|
|
339
343
|
/**
|
|
340
344
|
* Upload a local directory to Arke
|
|
341
345
|
*
|
|
342
|
-
* @deprecated Use uploadTree and
|
|
346
|
+
* @deprecated This method has been removed. Use uploadTree and buildUploadTree instead.
|
|
343
347
|
*/
|
|
344
|
-
uploadDirectory(
|
|
348
|
+
uploadDirectory(_localPath: string, _options: UploadDirectoryOptions): Promise<UploadDirectoryResult>;
|
|
345
349
|
}
|
|
346
350
|
|
|
347
351
|
/**
|