@arke-institute/sdk 2.3.7 → 2.3.9

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.
@@ -275,9 +275,12 @@ interface UploadResult {
275
275
  *
276
276
  * @deprecated Use the new upload module instead:
277
277
  * ```typescript
278
- * import { uploadTree, scanDirectory } from '@arke-institute/sdk/operations';
278
+ * import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
279
279
  *
280
- * const tree = await scanDirectory('/path/to/folder');
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 scanDirectory functions instead:
328
+ * @deprecated Use uploadTree and buildUploadTree functions instead:
326
329
  * ```typescript
327
- * import { uploadTree, scanDirectory } from '@arke-institute/sdk/operations';
330
+ * import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
328
331
  *
329
- * const tree = await scanDirectory('/path/to/folder');
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 scanDirectory instead
346
+ * @deprecated This method has been removed. Use uploadTree and buildUploadTree instead.
343
347
  */
344
- uploadDirectory(localPath: string, options: UploadDirectoryOptions): Promise<UploadDirectoryResult>;
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, scanDirectory } from '@arke-institute/sdk/operations';
278
+ * import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
279
279
  *
280
- * const tree = await scanDirectory('/path/to/folder');
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 scanDirectory functions instead:
328
+ * @deprecated Use uploadTree and buildUploadTree functions instead:
326
329
  * ```typescript
327
- * import { uploadTree, scanDirectory } from '@arke-institute/sdk/operations';
330
+ * import { uploadTree, buildUploadTree } from '@arke-institute/sdk/operations';
328
331
  *
329
- * const tree = await scanDirectory('/path/to/folder');
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 scanDirectory instead
346
+ * @deprecated This method has been removed. Use uploadTree and buildUploadTree instead.
343
347
  */
344
- uploadDirectory(localPath: string, options: UploadDirectoryOptions): Promise<UploadDirectoryResult>;
348
+ uploadDirectory(_localPath: string, _options: UploadDirectoryOptions): Promise<UploadDirectoryResult>;
345
349
  }
346
350
 
347
351
  /**