platform-types 1.10.719 → 1.10.720

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.
@@ -232,6 +232,9 @@ declare global {
232
232
  * with the caller's own earlier edit having landed — never proof of it,
233
233
  * since this is a user id and the same operator on a second device reads
234
234
  * the same.
235
+ *
236
+ * ⚠️ On a `cancelled` session read `cancelledBy` for who abandoned it —
237
+ * `updatedAt` moved with the cancel, `updatedBy` did not.
235
238
  */
236
239
  updatedBy?: string;
237
240
  /** The operator who opened it. */
@@ -397,6 +400,21 @@ declare global {
397
400
  finalizedAt?: number;
398
401
  /** The operator who applied them — not necessarily the one who opened the session. */
399
402
  finalizedBy?: string;
403
+ /**
404
+ * Unix ms the session was cancelled — stamped in the SAME conditional write
405
+ * that moves `status` to `cancelled`, so it never lands without the
406
+ * transition. Present only on a `cancelled` session, and ABSENT on one
407
+ * cancelled before this field existed — nothing is backfilled.
408
+ */
409
+ cancelledAt?: number;
410
+ /**
411
+ * The operator who cancelled it — the request's authenticated user id, as
412
+ * `finalizedBy` and `Order.cancelledBy` are, so under an impersonation
413
+ * session it names the impersonated store user, never the support
414
+ * operator, whose identity travels separately. Same write, presence rule
415
+ * and absence on older rows as `cancelledAt`.
416
+ */
417
+ cancelledBy?: string;
400
418
  /** Operator note. ⚠️ Never personal data — this row is not scrubbed and has no TTL. */
401
419
  notes?: string;
402
420
  /** Lowercase '#'-joined write-side index. Internal; not part of the read contract. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.719",
3
+ "version": "1.10.720",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",