sinfactura-types 1.10.643 → 1.10.645
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/platform.d.ts +49 -0
- package/dist/store.d.ts +33 -1
- package/package.json +1 -1
package/dist/platform.d.ts
CHANGED
|
@@ -168,6 +168,55 @@ export interface RevokeDomainOpBody extends PlatformOperatorReason {
|
|
|
168
168
|
/** Must equal `host` exactly as sent. Required. */
|
|
169
169
|
confirm: string;
|
|
170
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* `POST /platform/operations/domains { mode: 'provision-domain' }` — MANAGER
|
|
173
|
+
* onboarding of a store's VERIFIED custom domain onto the storefront edge, with
|
|
174
|
+
* both `www.<host>` and `<host>` on one tenant. `www.` is folded away first, so
|
|
175
|
+
* `www.example.com` and `example.com` address the same row.
|
|
176
|
+
*/
|
|
177
|
+
export interface ProvisionDomainOpBody extends PlatformOperatorReason {
|
|
178
|
+
mode: 'provision-domain';
|
|
179
|
+
host: string;
|
|
180
|
+
/** The DOMAIN row's owner; a row owned by another store is refused. */
|
|
181
|
+
storeId: string;
|
|
182
|
+
/** Must equal `host` exactly as sent. Required. */
|
|
183
|
+
confirm: string;
|
|
184
|
+
/**
|
|
185
|
+
* Who serves the certificate's validation token. `self-hosted` keeps a domain
|
|
186
|
+
* with live traffic on its current host while the certificate issues.
|
|
187
|
+
*/
|
|
188
|
+
validation: 'self-hosted' | 'cloudfront';
|
|
189
|
+
}
|
|
190
|
+
/** One name's self-hosted validation redirect: the path to serve and where it must redirect. */
|
|
191
|
+
export interface ProvisionDomainValidationToken {
|
|
192
|
+
domain: string;
|
|
193
|
+
redirectFrom?: string;
|
|
194
|
+
redirectTo?: string;
|
|
195
|
+
}
|
|
196
|
+
/** The 200 of `provision-domain`. Operator-facing only; the token details are never stored. */
|
|
197
|
+
export interface ProvisionDomainOpResult {
|
|
198
|
+
host: string;
|
|
199
|
+
storeId: string;
|
|
200
|
+
/** The edge distribution tenant now carrying the domain. */
|
|
201
|
+
tenantId: string;
|
|
202
|
+
/**
|
|
203
|
+
* Whether this call created the tenant (`false`: the row already had one,
|
|
204
|
+
* re-synced — or the row's own tenant, left by an earlier create whose id
|
|
205
|
+
* never reached the row, was adopted).
|
|
206
|
+
*/
|
|
207
|
+
created: boolean;
|
|
208
|
+
/** The names on the tenant, as CloudFront holds them (both `www.<host>` and `<host>` when it created them). */
|
|
209
|
+
domains: string[];
|
|
210
|
+
/**
|
|
211
|
+
* Who serves the certificate's validation token, as the TENANT's certificate
|
|
212
|
+
* reports it — never echoed from the request, so a re-sync shows what the
|
|
213
|
+
* existing tenant really uses. Absent until CloudFront reports a certificate.
|
|
214
|
+
*/
|
|
215
|
+
validation?: 'self-hosted' | 'cloudfront';
|
|
216
|
+
/** `issued` once valid, `pending-validation` while waiting; absent until CloudFront reports one. */
|
|
217
|
+
certificateStatus?: string;
|
|
218
|
+
validationTokens: ProvisionDomainValidationToken[];
|
|
219
|
+
}
|
|
171
220
|
/** A per-tenant integration op's provider; omitted means `'mercadopago'`. */
|
|
172
221
|
export type PlatformTenantIntegrationProvider = 'mercadopago' | 'mercadolibre' | 'gmail';
|
|
173
222
|
/**
|
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`).
|