@crawlee/types 4.0.0-beta.193 → 4.0.0-beta.195

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 +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/types",
3
- "version": "4.0.0-beta.193",
3
+ "version": "4.0.0-beta.195",
4
4
  "description": "Shared types for the crawlee projects",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -52,5 +52,5 @@
52
52
  }
53
53
  }
54
54
  },
55
- "gitHead": "db10ed8633118f3d53dcef58118f408ce578d5d5"
55
+ "gitHead": "7ef1df353c43614acc1275a53ef8ca96e850fe3e"
56
56
  }
package/storages.d.ts CHANGED
@@ -336,6 +336,15 @@ export interface RequestQueueBackend {
336
336
  * still being processed. Clients that do not lock may ignore it.
337
337
  */
338
338
  setExpectedRequestProcessingTimeSecs?(secs: number): Promise<void>;
339
+ /**
340
+ * Extends the lock on a request previously handed out by {@link fetchNextRequest}, for a consumer
341
+ * that needs more time than the sizing hint reserved.
342
+ *
343
+ * @returns `true` when prolonged, `false` when this client does not hold the request locked (or
344
+ * does not lock at all). `false` is information, not an error: the request may be processed twice.
345
+ * Non-locking backends leave this unimplemented.
346
+ */
347
+ extendRequestProcessingTimeSecs?(requestId: string, secs: number): Promise<boolean>;
339
348
  }
340
349
  /**
341
350
  * Identifies a storage by its ID, name, or alias. At most one may be provided.