sinfactura-types 1.10.643 → 1.10.644
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/store.d.ts +33 -1
- package/package.json +1 -1
package/dist/store.d.ts
CHANGED
|
@@ -367,7 +367,7 @@ declare global {
|
|
|
367
367
|
interface PublicStorefront {
|
|
368
368
|
/** `https://<canonicalHost>` — no path, no trailing slash. Render it only if it parses as `https:`. */
|
|
369
369
|
url: string;
|
|
370
|
-
/** Bare host: no scheme, port or path
|
|
370
|
+
/** Bare host: no scheme, port or path — the canonical custom domain's `www.` host when one is active, else the slug host. */
|
|
371
371
|
canonicalHost: string;
|
|
372
372
|
/** The current label only, without the platform suffix. */
|
|
373
373
|
slug: string;
|
|
@@ -1660,6 +1660,38 @@ declare global {
|
|
|
1660
1660
|
/** Present only once avanzado provisioning has been attempted for this VERIFIED host. */
|
|
1661
1661
|
provisioning?: DomainProvisioning;
|
|
1662
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* One row of the platform-staff `GET /platform/stores/{storeId}/domains`.
|
|
1665
|
+
*
|
|
1666
|
+
* The tenant row minus `verificationToken`, the live ownership credential:
|
|
1667
|
+
* platform staff see where a domain stands, never what proves it. The server
|
|
1668
|
+
* projects each row through an allow-list, so `provisioning` carries only
|
|
1669
|
+
* `state`, `step`, `total`, `records`, `activatedAt` and `error` — never the
|
|
1670
|
+
* deprecated `subDomains` / `certificateVerificationDnsRecord` or the
|
|
1671
|
+
* `lastCheckedAt` / `startedAt` diagnostics, although this type admits them.
|
|
1672
|
+
*
|
|
1673
|
+
* Unlike `GET /store/domains`, a PENDING claim whose seven-day window has
|
|
1674
|
+
* lapsed but which DynamoDB has not reaped yet is still listed.
|
|
1675
|
+
*/
|
|
1676
|
+
type PlatformDomainRecord = Omit<DomainRecord, 'verificationToken'>;
|
|
1677
|
+
/**
|
|
1678
|
+
* `GET /platform/stores/{storeId}/domains` (supervisorToken: SUPERVISOR,
|
|
1679
|
+
* MANAGER) — one store's custom domains plus its public address, so the
|
|
1680
|
+
* canonical host and the platform address arrive in one call.
|
|
1681
|
+
*
|
|
1682
|
+
* `domains` is `[]` for a store with none. `publicStorefront` is the same
|
|
1683
|
+
* value the store's own `GET /store` answers (`null` when the shop has no
|
|
1684
|
+
* address); `publicStorefront.canonicalHost` is the canonical custom domain's
|
|
1685
|
+
* `www.` host once one is active. An invalid `storeId` is `400
|
|
1686
|
+
* VALIDATION_FAILED` and an unknown store `404 STORE_NOT_FOUND`.
|
|
1687
|
+
*/
|
|
1688
|
+
interface PlatformStoreDomainsResponse {
|
|
1689
|
+
message: string;
|
|
1690
|
+
data: {
|
|
1691
|
+
domains: PlatformDomainRecord[];
|
|
1692
|
+
publicStorefront: PublicStorefront | null;
|
|
1693
|
+
};
|
|
1694
|
+
}
|
|
1663
1695
|
/**
|
|
1664
1696
|
* `POST /store/domains { mode: 'register' }` — the payload, carried ENVELOPED
|
|
1665
1697
|
* under `data` (see `DomainRegisterResponse`).
|