sinfactura-types 1.10.548 → 1.10.549

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.
@@ -635,6 +635,8 @@ declare global {
635
635
  * on both surfaces.
636
636
  */
637
637
  | 'CUSTOMER_ERASURE_INCOMPLETE'
638
+ /** 503: the shared erasure read allowance expired before a lifecycle write. Re-issue. */
639
+ | 'CUSTOMER_ERASURE_READ_DEADLINE'
638
640
  /**
639
641
  * 409, STOREFRONT ONLY (`POST /user` mode `anonymize`). The calling
640
642
  * customer's own account was merged away into another one, and the
@@ -647,7 +649,7 @@ declare global {
647
649
  */
648
650
  | 'CUSTOMER_ERASURE_REQUIRES_STAFF';
649
651
  /**
650
- * Why an erasure of a merged-away customer was refused as incomplete.
652
+ * Why an erasure was refused or its committed completion remains incomplete.
651
653
  *
652
654
  * - `MERGE_CHAIN` — the survivor was itself merged into a third customer (A
653
655
  * into B, then B into C). Chains are never walked: erase the end of the
@@ -667,10 +669,14 @@ declare global {
667
669
  * failed, the erasure ran out of time before reaching it, or one of its
668
670
  * completion steps reported incomplete. `incompleteCustomerIds` names the
669
671
  * rows. Re-issue.
672
+ * - `READ_DEADLINE` — a 200 completion on an already-erased row ran out of
673
+ * its shared read allowance. The original erasure stamp is preserved.
674
+ * - `RESIDUAL_PREFERENCES_NOT_ERASED` — a 200 completion could not remove a
675
+ * residual preference map under that original erasure stamp. Re-issue.
670
676
  */
671
- type CustomerErasureIncompleteReason = 'MERGE_CHAIN' | 'MERGE_SURVIVOR_UNRESOLVED' | 'MERGE_LOOKUP_TRUNCATED' | 'MERGED_ROW_NOT_ERASED';
677
+ type CustomerErasureIncompleteReason = 'MERGE_CHAIN' | 'MERGE_SURVIVOR_UNRESOLVED' | 'MERGE_LOOKUP_TRUNCATED' | 'MERGED_ROW_NOT_ERASED' | 'READ_DEADLINE' | 'RESIDUAL_PREFERENCES_NOT_ERASED';
672
678
  /** The reasons a 200 erasure can carry (`AnonymizeCustomerResult.erasureIncompleteReason`). */
673
- type CustomerErasureResultIncompleteReason = Extract<CustomerErasureIncompleteReason, 'MERGE_LOOKUP_TRUNCATED' | 'MERGED_ROW_NOT_ERASED'>;
679
+ type CustomerErasureResultIncompleteReason = Extract<CustomerErasureIncompleteReason, 'MERGE_LOOKUP_TRUNCATED' | 'MERGED_ROW_NOT_ERASED' | 'READ_DEADLINE' | 'RESIDUAL_PREFERENCES_NOT_ERASED'>;
674
680
  /** `data` of a `409 CUSTOMER_ERASURE_INCOMPLETE` refusal, on both erasure surfaces. Ids only. */
675
681
  interface CustomerErasureIncompleteData {
676
682
  /** The id the request named. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.548",
3
+ "version": "1.10.549",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",