platform-types 1.10.682 → 1.10.683
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/storefrontDesign.d.ts +11 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StorefrontThemeWarning } from './storefrontTheme.ts';
|
|
1
2
|
export declare const STOREFRONT_DESIGN_LIMITS: {
|
|
2
3
|
readonly customPages: 20;
|
|
3
4
|
readonly sectionsPerPage: 10;
|
|
@@ -274,7 +275,7 @@ declare global {
|
|
|
274
275
|
path: string;
|
|
275
276
|
code: StorefrontDesignFieldErrorCode;
|
|
276
277
|
}
|
|
277
|
-
type StorefrontDesignErrorCode = 'STOREFRONT_DESIGN_INVALID' | 'STOREFRONT_SCHEMA_UNSUPPORTED' | 'STOREFRONT_REVISION_CONFLICT' | 'STOREFRONT_DRAFT_NOT_INITIALIZED' | 'STOREFRONT_REQUEST_EXPIRED' | 'STOREFRONT_PUBLICATION_NOT_FOUND' | 'STOREFRONT_DRAFT_UNAVAILABLE' | 'IDEMPOTENCY_CONFLICT' | 'STOREFRONT_EDITOR_REQUIRED' | 'STOREFRONT_ASSET_NOT_READY' | 'STOREFRONT_PREVIEW_EXPIRED' | 'STOREFRONT_PREVIEW_REVOKED' | 'STOREFRONT_PREVIEW_FORBIDDEN';
|
|
278
|
+
type StorefrontDesignErrorCode = 'STOREFRONT_DESIGN_INVALID' | 'STOREFRONT_SCHEMA_UNSUPPORTED' | 'STOREFRONT_REVISION_CONFLICT' | 'STOREFRONT_DRAFT_NOT_INITIALIZED' | 'STOREFRONT_REQUEST_EXPIRED' | 'STOREFRONT_PUBLICATION_NOT_FOUND' | 'STOREFRONT_OPERATION_NOT_FOUND' | 'STOREFRONT_DRAFT_UNAVAILABLE' | 'IDEMPOTENCY_CONFLICT' | 'STOREFRONT_EDITOR_REQUIRED' | 'STOREFRONT_ASSET_NOT_READY' | 'STOREFRONT_PREVIEW_EXPIRED' | 'STOREFRONT_PREVIEW_REVOKED' | 'STOREFRONT_PREVIEW_FORBIDDEN';
|
|
278
279
|
interface StorefrontDesignMappingConflict {
|
|
279
280
|
path: string;
|
|
280
281
|
code: 'LEGACY_MULTIPLE_PRODUCT_FEEDS' | 'LEGACY_UNMAPPED_CONTENT';
|
|
@@ -352,11 +353,19 @@ declare global {
|
|
|
352
353
|
legacySourceRevision: string;
|
|
353
354
|
}
|
|
354
355
|
interface StorefrontDesignDeliveryTarget {
|
|
356
|
+
/**
|
|
357
|
+
* Opaque per-target key, stable for one publication (`platform`, `customDomain-1`, …).
|
|
358
|
+
* Never a provider or CDN id; clients may only compare it, never parse it.
|
|
359
|
+
*/
|
|
355
360
|
targetId: string;
|
|
356
361
|
state: 'pending' | 'retrying' | 'completed' | 'notProvisioned';
|
|
357
|
-
providerOperationId?: string;
|
|
358
362
|
}
|
|
363
|
+
type StorefrontDesignPublishOperationResult = StorefrontDesignPublishResult;
|
|
364
|
+
type StorefrontDesignPublishOperationResponse = StorefrontDesignPublishResponse;
|
|
359
365
|
interface StorefrontDesignPublishResult {
|
|
366
|
+
changeSummary: {
|
|
367
|
+
contrastAdjustments: StorefrontThemeWarning[];
|
|
368
|
+
};
|
|
360
369
|
publicationId: string;
|
|
361
370
|
committedRevision: string;
|
|
362
371
|
draftRevision: string;
|