@dudousxd/nestjs-durable-core 0.36.0 → 0.37.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/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -507,17 +507,18 @@ declare const TERMINAL_RUN_STATUSES: readonly RunStatus[];
|
|
|
507
507
|
/**
|
|
508
508
|
* One retention rule for hard-pruning terminal run history. Within `statuses` (terminal only), a run
|
|
509
509
|
* is KEPT only if it satisfies EVERY bound you set, and pruned the moment it violates any:
|
|
510
|
-
* - `
|
|
511
|
-
* `now -
|
|
510
|
+
* - `maxAge` — prune runs whose `updatedAt` (≈ the time they reached terminal) is older than
|
|
511
|
+
* `now - maxAge`. A number is milliseconds; a string is an `ms`-style duration parsed by
|
|
512
|
+
* {@link parseDuration} (`'7d'`, `'2w'`, `'90m'` — note `'m'` is MINUTES; use `'30d'` for a month).
|
|
512
513
|
* - `maxCount` — keep only the `maxCount` most-recent (by `updatedAt`) runs in the status set; prune
|
|
513
514
|
* everything past that.
|
|
514
515
|
*
|
|
515
516
|
* Set one or both (both = the most-restrictive wins: capped at `maxCount` rows AND nothing older than
|
|
516
|
-
* `
|
|
517
|
+
* `maxAge`). Statuses not named by any policy are never pruned.
|
|
517
518
|
*/
|
|
518
519
|
interface RetentionPolicy {
|
|
519
520
|
statuses: RunStatus[];
|
|
520
|
-
|
|
521
|
+
maxAge?: number | string;
|
|
521
522
|
maxCount?: number;
|
|
522
523
|
}
|
|
523
524
|
/** Typed, queryable per-run data — exact values for `eq`/`ne`, numbers/strings for range ops. */
|
package/dist/index.d.ts
CHANGED
|
@@ -507,17 +507,18 @@ declare const TERMINAL_RUN_STATUSES: readonly RunStatus[];
|
|
|
507
507
|
/**
|
|
508
508
|
* One retention rule for hard-pruning terminal run history. Within `statuses` (terminal only), a run
|
|
509
509
|
* is KEPT only if it satisfies EVERY bound you set, and pruned the moment it violates any:
|
|
510
|
-
* - `
|
|
511
|
-
* `now -
|
|
510
|
+
* - `maxAge` — prune runs whose `updatedAt` (≈ the time they reached terminal) is older than
|
|
511
|
+
* `now - maxAge`. A number is milliseconds; a string is an `ms`-style duration parsed by
|
|
512
|
+
* {@link parseDuration} (`'7d'`, `'2w'`, `'90m'` — note `'m'` is MINUTES; use `'30d'` for a month).
|
|
512
513
|
* - `maxCount` — keep only the `maxCount` most-recent (by `updatedAt`) runs in the status set; prune
|
|
513
514
|
* everything past that.
|
|
514
515
|
*
|
|
515
516
|
* Set one or both (both = the most-restrictive wins: capped at `maxCount` rows AND nothing older than
|
|
516
|
-
* `
|
|
517
|
+
* `maxAge`). Statuses not named by any policy are never pruned.
|
|
517
518
|
*/
|
|
518
519
|
interface RetentionPolicy {
|
|
519
520
|
statuses: RunStatus[];
|
|
520
|
-
|
|
521
|
+
maxAge?: number | string;
|
|
521
522
|
maxCount?: number;
|
|
522
523
|
}
|
|
523
524
|
/** Typed, queryable per-run data — exact values for `eq`/`ne`, numbers/strings for range ops. */
|