@camstack/addon-provider-onvif 1.2.76 → 1.2.77

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/addon.js CHANGED
@@ -10548,12 +10548,30 @@ var BackupDestinationInfoSchema = object({
10548
10548
  lastSuccessAt: number().optional(),
10549
10549
  /** Newest-archive size from `manifests.json`, or undefined. */
10550
10550
  lastSuccessSizeBytes: number().optional(),
10551
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
10551
+ /**
10552
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
10553
+ * destination, comma-joined. Absent when no enabled schedule targets it
10554
+ * — a destination nothing is scheduled to write to must not advertise a
10555
+ * cadence (D384). This is never the `backup_destination_policies.cron`
10556
+ * column: that per-location cron has scheduled nothing since 2026-07-28
10557
+ * and reading it made a destination with a DISABLED schedule claim a
10558
+ * nightly run.
10559
+ */
10552
10560
  cron: string().optional(),
10553
- /** ms-epoch of next computed firing for this destination's cron, if any. */
10561
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
10554
10562
  nextRunAt: number().optional(),
10555
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10556
- lastRunAt: number().optional()
10563
+ /**
10564
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
10565
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
10566
+ * newest archive that actually landed) and `lastError`.
10567
+ */
10568
+ lastAttemptAt: number().optional(),
10569
+ /**
10570
+ * Why the last attempt failed, verbatim. Absent when the last attempt
10571
+ * landed the archive. A destination that has never been written to has
10572
+ * neither this nor `lastAttemptAt`.
10573
+ */
10574
+ lastError: string().optional()
10557
10575
  });
10558
10576
  /**
10559
10577
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10716,8 +10734,16 @@ var BackupScheduleSchema = object({
10716
10734
  retentionCount: number().int().min(1).max(1e3),
10717
10735
  /** Optional subset of source locations to include; omitted = all. */
10718
10736
  dataSources: array(string()).readonly().optional(),
10719
- /** ms-epoch of last successful run. */
10720
- lastRunAt: number().optional(),
10737
+ /**
10738
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
10739
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
10740
+ * "succeeded" — a run refused by every destination stamps it too.
10741
+ */
10742
+ lastAttemptAt: number().optional(),
10743
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
10744
+ lastSuccessAt: number().optional(),
10745
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
10746
+ lastError: string().optional(),
10721
10747
  /** ms-epoch of next computed firing (read-only, filled on list). */
10722
10748
  nextRunAt: number().optional()
10723
10749
  });
@@ -10766,14 +10792,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10766
10792
  locationId: string(),
10767
10793
  enabled: boolean(),
10768
10794
  retentionCount: number().int().min(1).max(1e3),
10769
- label: string().optional(),
10770
- /**
10771
- * Per-destination cron expression. Empty string clears the
10772
- * schedule (manual-only). Validated server-side via croner;
10773
- * malformed expressions reject the upsert with an actionable
10774
- * message.
10775
- */
10776
- cron: string().optional()
10795
+ label: string().optional()
10777
10796
  }), _void(), {
10778
10797
  kind: "mutation",
10779
10798
  auth: "admin"
package/dist/addon.mjs CHANGED
@@ -10549,12 +10549,30 @@ var BackupDestinationInfoSchema = object({
10549
10549
  lastSuccessAt: number().optional(),
10550
10550
  /** Newest-archive size from `manifests.json`, or undefined. */
10551
10551
  lastSuccessSizeBytes: number().optional(),
10552
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
10552
+ /**
10553
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
10554
+ * destination, comma-joined. Absent when no enabled schedule targets it
10555
+ * — a destination nothing is scheduled to write to must not advertise a
10556
+ * cadence (D384). This is never the `backup_destination_policies.cron`
10557
+ * column: that per-location cron has scheduled nothing since 2026-07-28
10558
+ * and reading it made a destination with a DISABLED schedule claim a
10559
+ * nightly run.
10560
+ */
10553
10561
  cron: string().optional(),
10554
- /** ms-epoch of next computed firing for this destination's cron, if any. */
10562
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
10555
10563
  nextRunAt: number().optional(),
10556
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10557
- lastRunAt: number().optional()
10564
+ /**
10565
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
10566
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
10567
+ * newest archive that actually landed) and `lastError`.
10568
+ */
10569
+ lastAttemptAt: number().optional(),
10570
+ /**
10571
+ * Why the last attempt failed, verbatim. Absent when the last attempt
10572
+ * landed the archive. A destination that has never been written to has
10573
+ * neither this nor `lastAttemptAt`.
10574
+ */
10575
+ lastError: string().optional()
10558
10576
  });
10559
10577
  /**
10560
10578
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10717,8 +10735,16 @@ var BackupScheduleSchema = object({
10717
10735
  retentionCount: number().int().min(1).max(1e3),
10718
10736
  /** Optional subset of source locations to include; omitted = all. */
10719
10737
  dataSources: array(string()).readonly().optional(),
10720
- /** ms-epoch of last successful run. */
10721
- lastRunAt: number().optional(),
10738
+ /**
10739
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
10740
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
10741
+ * "succeeded" — a run refused by every destination stamps it too.
10742
+ */
10743
+ lastAttemptAt: number().optional(),
10744
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
10745
+ lastSuccessAt: number().optional(),
10746
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
10747
+ lastError: string().optional(),
10722
10748
  /** ms-epoch of next computed firing (read-only, filled on list). */
10723
10749
  nextRunAt: number().optional()
10724
10750
  });
@@ -10767,14 +10793,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10767
10793
  locationId: string(),
10768
10794
  enabled: boolean(),
10769
10795
  retentionCount: number().int().min(1).max(1e3),
10770
- label: string().optional(),
10771
- /**
10772
- * Per-destination cron expression. Empty string clears the
10773
- * schedule (manual-only). Validated server-side via croner;
10774
- * malformed expressions reject the upsert with an actionable
10775
- * message.
10776
- */
10777
- cron: string().optional()
10796
+ label: string().optional()
10778
10797
  }), _void(), {
10779
10798
  kind: "mutation",
10780
10799
  auth: "admin"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.76",
3
+ "version": "1.2.77",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",