platform-types 1.10.681 → 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.
|
@@ -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;
|
|
@@ -12,6 +13,7 @@ export declare const STOREFRONT_DESIGN_LIMITS: {
|
|
|
12
13
|
readonly faqs: 20;
|
|
13
14
|
readonly benefits: 8;
|
|
14
15
|
readonly historyEntries: 20;
|
|
16
|
+
readonly selectedSourceIds: 50;
|
|
15
17
|
readonly documentBytes: number;
|
|
16
18
|
readonly heading: 120;
|
|
17
19
|
readonly label: 80;
|
|
@@ -273,7 +275,7 @@ declare global {
|
|
|
273
275
|
path: string;
|
|
274
276
|
code: StorefrontDesignFieldErrorCode;
|
|
275
277
|
}
|
|
276
|
-
type StorefrontDesignErrorCode = 'STOREFRONT_DESIGN_INVALID' | 'STOREFRONT_SCHEMA_UNSUPPORTED' | 'STOREFRONT_REVISION_CONFLICT' | 'STOREFRONT_REQUEST_EXPIRED' | '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';
|
|
277
279
|
interface StorefrontDesignMappingConflict {
|
|
278
280
|
path: string;
|
|
279
281
|
code: 'LEGACY_MULTIPLE_PRODUCT_FEEDS' | 'LEGACY_UNMAPPED_CONTENT';
|
|
@@ -304,6 +306,7 @@ declare global {
|
|
|
304
306
|
}
|
|
305
307
|
type StorefrontDesignSaveInput = StorefrontDesignRevisionInput & {
|
|
306
308
|
document: StorefrontDesignV1;
|
|
309
|
+
resolvedMappingConflictPaths?: string[];
|
|
307
310
|
};
|
|
308
311
|
type StorefrontDesignRestoreInput = StorefrontDesignRevisionInput & {
|
|
309
312
|
publicationId: string;
|
|
@@ -313,19 +316,56 @@ declare global {
|
|
|
313
316
|
interface StorefrontDesignPreviewInput {
|
|
314
317
|
draftRevision: string;
|
|
315
318
|
}
|
|
319
|
+
interface StorefrontDesignBaselineResult {
|
|
320
|
+
draftRevision: null;
|
|
321
|
+
publishedRevision: null;
|
|
322
|
+
document: StorefrontDesignV1;
|
|
323
|
+
dirty: false;
|
|
324
|
+
mappingConflicts: StorefrontDesignMappingConflict[];
|
|
325
|
+
legacySourceRevision: string;
|
|
326
|
+
}
|
|
327
|
+
interface StorefrontDesignHistoryEntry {
|
|
328
|
+
publicationId: string;
|
|
329
|
+
committedRevision: string;
|
|
330
|
+
/**
|
|
331
|
+
* The publishing tenant ADMIN's authorizer user id (`USR…`), the same id a
|
|
332
|
+
* store user list carries — resolve it to a name there. Never an email,
|
|
333
|
+
* display name or system sentinel: the store-level `LEGACY_LOGO` actor exists
|
|
334
|
+
* only on private media receipts and never reaches history.
|
|
335
|
+
*/
|
|
336
|
+
actor: string;
|
|
337
|
+
committedAt: string;
|
|
338
|
+
}
|
|
339
|
+
interface StorefrontDesignHistoryQuery {
|
|
340
|
+
limit?: number;
|
|
341
|
+
cursor?: string;
|
|
342
|
+
}
|
|
343
|
+
interface StorefrontDesignHistoryPage {
|
|
344
|
+
items: StorefrontDesignHistoryEntry[];
|
|
345
|
+
cursor?: string;
|
|
346
|
+
}
|
|
316
347
|
interface StorefrontDesignDraftResult {
|
|
317
348
|
draftRevision: string;
|
|
318
349
|
publishedRevision: string | null;
|
|
319
350
|
document: StorefrontDesignV1;
|
|
320
351
|
dirty: boolean;
|
|
321
352
|
mappingConflicts: StorefrontDesignMappingConflict[];
|
|
353
|
+
legacySourceRevision: string;
|
|
322
354
|
}
|
|
323
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
|
+
*/
|
|
324
360
|
targetId: string;
|
|
325
361
|
state: 'pending' | 'retrying' | 'completed' | 'notProvisioned';
|
|
326
|
-
providerOperationId?: string;
|
|
327
362
|
}
|
|
363
|
+
type StorefrontDesignPublishOperationResult = StorefrontDesignPublishResult;
|
|
364
|
+
type StorefrontDesignPublishOperationResponse = StorefrontDesignPublishResponse;
|
|
328
365
|
interface StorefrontDesignPublishResult {
|
|
366
|
+
changeSummary: {
|
|
367
|
+
contrastAdjustments: StorefrontThemeWarning[];
|
|
368
|
+
};
|
|
329
369
|
publicationId: string;
|
|
330
370
|
committedRevision: string;
|
|
331
371
|
draftRevision: string;
|
|
@@ -378,7 +418,11 @@ declare global {
|
|
|
378
418
|
};
|
|
379
419
|
type StorefrontDesignDraftResponse = {
|
|
380
420
|
message: string;
|
|
381
|
-
data: StorefrontDesignDraftResult;
|
|
421
|
+
data: StorefrontDesignDraftResult | StorefrontDesignBaselineResult;
|
|
422
|
+
} | StorefrontDesignFailure;
|
|
423
|
+
type StorefrontDesignHistoryResponse = {
|
|
424
|
+
message: string;
|
|
425
|
+
data: StorefrontDesignHistoryPage;
|
|
382
426
|
} | StorefrontDesignFailure;
|
|
383
427
|
type StorefrontDesignPublishResponse = {
|
|
384
428
|
message: string;
|
package/dist/storefrontDesign.js
CHANGED