sinfactura-types 1.10.651 → 1.10.652

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.
@@ -583,8 +583,8 @@ exports.SOCKET_ACTIONS = [
583
583
  // ⚠️ A frame for a period whose `periodStatus` is `'OPEN'` carries numbers
584
584
  // ML will still restate; a consumer must not render one as final.
585
585
  'mercadolibre_settlement_period',
586
- // BE → all store users when an avanzado custom domain's provisioning state
587
- // moves (`CustomDomainSocketPayload`). Status only: the row's
586
+ // BE → the store's OPERATOR sockets when an avanzado custom domain's provisioning state
587
+ // moves, or a teardown removes it (`provisioning: null`) (`CustomDomainSocketPayload`). Status only: the row's
588
588
  // `verificationToken` is an ownership credential and is never re-sent here.
589
589
  'customDomain',
590
590
  // BE → all store users on every purchase-order write: create, update, cancel,
package/dist/socket.d.ts CHANGED
@@ -40,6 +40,12 @@ export interface CustomDomainSocketPayload {
40
40
  storeId: string;
41
41
  /** The NORMALIZED host, as stored on the row. */
42
42
  host: string;
43
+ /**
44
+ * The attempt as it now stands, or `null` when a teardown (a deprovision, a
45
+ * revoke, the grace-expiry sweep) removed it — whatever state it was in.
46
+ * Merge the `null` over a cached row: the attempt is gone, and the host can
47
+ * be provisioned again.
48
+ */
43
49
  provisioning: {
44
50
  state: DomainProvisioningState;
45
51
  /** 1-based; see `DomainProvisioning.step`. */
@@ -55,7 +61,7 @@ export interface CustomDomainSocketPayload {
55
61
  /** Unix MILLISECONDS. Present once `state` reaches `active`. */
56
62
  activatedAt?: number;
57
63
  error?: string;
58
- };
64
+ } | null;
59
65
  /**
60
66
  * See `DomainRecord.deactivatesAt`. Every frame the server sends carries the
61
67
  * key — the number, or `null` when the domain is not in grace — so any frame
package/dist/socket.js CHANGED
@@ -580,8 +580,8 @@ export const SOCKET_ACTIONS = [
580
580
  // ⚠️ A frame for a period whose `periodStatus` is `'OPEN'` carries numbers
581
581
  // ML will still restate; a consumer must not render one as final.
582
582
  'mercadolibre_settlement_period',
583
- // BE → all store users when an avanzado custom domain's provisioning state
584
- // moves (`CustomDomainSocketPayload`). Status only: the row's
583
+ // BE → the store's OPERATOR sockets when an avanzado custom domain's provisioning state
584
+ // moves, or a teardown removes it (`provisioning: null`) (`CustomDomainSocketPayload`). Status only: the row's
585
585
  // `verificationToken` is an ownership credential and is never re-sent here.
586
586
  'customDomain',
587
587
  // BE → all store users on every purchase-order write: create, update, cancel,
package/dist/store.d.ts CHANGED
@@ -1665,6 +1665,7 @@ declare global {
1665
1665
  * that ran out) and the domain keeps serving, and stays the shop's canonical
1666
1666
  * address, until this instant. Then the hourly sweep tears it down: the row
1667
1667
  * stays `VERIFIED`, loses `provisioning`, and this field returns to `null`.
1668
+ * Any other teardown (a deprovision, a revoke) removes it.
1668
1669
  * A domain that never went live gets no grace (the date is the moment of the
1669
1670
  * loss). `null` or absent = not in grace; a re-upgrade clears it.
1670
1671
  */
@@ -1681,9 +1682,14 @@ declare global {
1681
1682
  * `lastCheckedAt` / `startedAt` diagnostics, although this type admits them.
1682
1683
  *
1683
1684
  * Unlike `GET /store/domains`, a PENDING claim whose seven-day window has
1684
- * lapsed but which DynamoDB has not reaped yet is still listed.
1685
+ * lapsed but which DynamoDB has not reaped yet is still listed (it still
1686
+ * blocks every other store from the host until it is reaped), and carries
1687
+ * `claimExpired: true` so staff can tell it from a live claim.
1685
1688
  */
1686
- type PlatformDomainRecord = Omit<DomainRecord, 'verificationToken'>;
1689
+ type PlatformDomainRecord = Omit<DomainRecord, 'verificationToken'> & {
1690
+ /** Present (always `true`) only on a PENDING claim whose seven-day window has lapsed. */
1691
+ claimExpired?: true;
1692
+ };
1687
1693
  /**
1688
1694
  * `GET /platform/stores/{storeId}/domains` (supervisorToken: SUPERVISOR,
1689
1695
  * MANAGER) — one store's custom domains plus its public address, so the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.651",
3
+ "version": "1.10.652",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",