@crawlee/types 4.0.0-beta.77 → 4.0.0-beta.79

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/storages.d.ts +3 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/types",
3
- "version": "4.0.0-beta.77",
3
+ "version": "4.0.0-beta.79",
4
4
  "description": "Shared types for the crawlee projects",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -53,5 +53,5 @@
53
53
  }
54
54
  }
55
55
  },
56
- "gitHead": "671ef0dab0f67275d0db5c289b940ea100ad3ef9"
56
+ "gitHead": "5c80f15646873cea691fc9101e649afc72296d14"
57
57
  }
package/storages.d.ts CHANGED
@@ -357,33 +357,6 @@ export type StorageIdentifier = {
357
357
  name?: never;
358
358
  alias?: never;
359
359
  };
360
- /**
361
- * Options for creating a dataset backend via {@link StorageBackend.createDatasetBackend}.
362
- */
363
- export type CreateDatasetBackendOptions = StorageIdentifier;
364
- /**
365
- * Options for creating a key-value store backend via {@link StorageBackend.createKeyValueStoreBackend}.
366
- */
367
- export type CreateKeyValueStoreBackendOptions = StorageIdentifier;
368
- /**
369
- * Options for creating a request queue backend via {@link StorageBackend.createRequestQueueBackend}.
370
- */
371
- export type CreateRequestQueueBackendOptions = StorageIdentifier & {
372
- /**
373
- * Client key for request locking.
374
- * TODO: This is an Apify-platform concern and should eventually be pushed down
375
- * into the Apify SDK's client implementation (aligning with crawlee-python).
376
- * https://github.com/apify/crawlee/issues/3328
377
- */
378
- clientKey?: string;
379
- /**
380
- * Timeout in seconds for request queue operations.
381
- * TODO: This is an Apify-platform concern and should eventually be pushed down
382
- * into the Apify SDK's client implementation (aligning with crawlee-python).
383
- * https://github.com/apify/crawlee/issues/3328
384
- */
385
- timeoutSecs?: number;
386
- };
387
360
  /**
388
361
  * Represents a storage backend capable of working with datasets, key-value stores and request queues.
389
362
  *
@@ -403,21 +376,21 @@ export interface StorageBackend {
403
376
  * If `name` is provided, opens an existing dataset with that name or creates a new one.
404
377
  * If neither is provided, opens or creates the default dataset.
405
378
  */
406
- createDatasetBackend(options?: CreateDatasetBackendOptions): Promise<DatasetBackend>;
379
+ createDatasetBackend(options?: StorageIdentifier): Promise<DatasetBackend>;
407
380
  /**
408
381
  * Create (or open) a key-value store backend.
409
382
  * If `id` is provided, opens the key-value store with that ID.
410
383
  * If `name` is provided, opens an existing store with that name or creates a new one.
411
384
  * If neither is provided, opens or creates the default key-value store.
412
385
  */
413
- createKeyValueStoreBackend(options?: CreateKeyValueStoreBackendOptions): Promise<KeyValueStoreBackend>;
386
+ createKeyValueStoreBackend(options?: StorageIdentifier): Promise<KeyValueStoreBackend>;
414
387
  /**
415
388
  * Create (or open) a request queue backend.
416
389
  * If `id` is provided, opens the request queue with that ID.
417
390
  * If `name` is provided, opens an existing queue with that name or creates a new one.
418
391
  * If neither is provided, opens or creates the default request queue.
419
392
  */
420
- createRequestQueueBackend(options?: CreateRequestQueueBackendOptions): Promise<RequestQueueBackend>;
393
+ createRequestQueueBackend(options?: StorageIdentifier): Promise<RequestQueueBackend>;
421
394
  /**
422
395
  * Check whether a storage with the given ID exists.
423
396
  *