platform-types 1.10.681 → 1.10.682
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.
|
@@ -12,6 +12,7 @@ export declare const STOREFRONT_DESIGN_LIMITS: {
|
|
|
12
12
|
readonly faqs: 20;
|
|
13
13
|
readonly benefits: 8;
|
|
14
14
|
readonly historyEntries: 20;
|
|
15
|
+
readonly selectedSourceIds: 50;
|
|
15
16
|
readonly documentBytes: number;
|
|
16
17
|
readonly heading: 120;
|
|
17
18
|
readonly label: 80;
|
|
@@ -273,7 +274,7 @@ declare global {
|
|
|
273
274
|
path: string;
|
|
274
275
|
code: StorefrontDesignFieldErrorCode;
|
|
275
276
|
}
|
|
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';
|
|
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';
|
|
277
278
|
interface StorefrontDesignMappingConflict {
|
|
278
279
|
path: string;
|
|
279
280
|
code: 'LEGACY_MULTIPLE_PRODUCT_FEEDS' | 'LEGACY_UNMAPPED_CONTENT';
|
|
@@ -304,6 +305,7 @@ declare global {
|
|
|
304
305
|
}
|
|
305
306
|
type StorefrontDesignSaveInput = StorefrontDesignRevisionInput & {
|
|
306
307
|
document: StorefrontDesignV1;
|
|
308
|
+
resolvedMappingConflictPaths?: string[];
|
|
307
309
|
};
|
|
308
310
|
type StorefrontDesignRestoreInput = StorefrontDesignRevisionInput & {
|
|
309
311
|
publicationId: string;
|
|
@@ -313,12 +315,41 @@ declare global {
|
|
|
313
315
|
interface StorefrontDesignPreviewInput {
|
|
314
316
|
draftRevision: string;
|
|
315
317
|
}
|
|
318
|
+
interface StorefrontDesignBaselineResult {
|
|
319
|
+
draftRevision: null;
|
|
320
|
+
publishedRevision: null;
|
|
321
|
+
document: StorefrontDesignV1;
|
|
322
|
+
dirty: false;
|
|
323
|
+
mappingConflicts: StorefrontDesignMappingConflict[];
|
|
324
|
+
legacySourceRevision: string;
|
|
325
|
+
}
|
|
326
|
+
interface StorefrontDesignHistoryEntry {
|
|
327
|
+
publicationId: string;
|
|
328
|
+
committedRevision: string;
|
|
329
|
+
/**
|
|
330
|
+
* The publishing tenant ADMIN's authorizer user id (`USR…`), the same id a
|
|
331
|
+
* store user list carries — resolve it to a name there. Never an email,
|
|
332
|
+
* display name or system sentinel: the store-level `LEGACY_LOGO` actor exists
|
|
333
|
+
* only on private media receipts and never reaches history.
|
|
334
|
+
*/
|
|
335
|
+
actor: string;
|
|
336
|
+
committedAt: string;
|
|
337
|
+
}
|
|
338
|
+
interface StorefrontDesignHistoryQuery {
|
|
339
|
+
limit?: number;
|
|
340
|
+
cursor?: string;
|
|
341
|
+
}
|
|
342
|
+
interface StorefrontDesignHistoryPage {
|
|
343
|
+
items: StorefrontDesignHistoryEntry[];
|
|
344
|
+
cursor?: string;
|
|
345
|
+
}
|
|
316
346
|
interface StorefrontDesignDraftResult {
|
|
317
347
|
draftRevision: string;
|
|
318
348
|
publishedRevision: string | null;
|
|
319
349
|
document: StorefrontDesignV1;
|
|
320
350
|
dirty: boolean;
|
|
321
351
|
mappingConflicts: StorefrontDesignMappingConflict[];
|
|
352
|
+
legacySourceRevision: string;
|
|
322
353
|
}
|
|
323
354
|
interface StorefrontDesignDeliveryTarget {
|
|
324
355
|
targetId: string;
|
|
@@ -378,7 +409,11 @@ declare global {
|
|
|
378
409
|
};
|
|
379
410
|
type StorefrontDesignDraftResponse = {
|
|
380
411
|
message: string;
|
|
381
|
-
data: StorefrontDesignDraftResult;
|
|
412
|
+
data: StorefrontDesignDraftResult | StorefrontDesignBaselineResult;
|
|
413
|
+
} | StorefrontDesignFailure;
|
|
414
|
+
type StorefrontDesignHistoryResponse = {
|
|
415
|
+
message: string;
|
|
416
|
+
data: StorefrontDesignHistoryPage;
|
|
382
417
|
} | StorefrontDesignFailure;
|
|
383
418
|
type StorefrontDesignPublishResponse = {
|
|
384
419
|
message: string;
|
package/dist/storefrontDesign.js
CHANGED