sf-plugin-cms 0.5.0 → 0.6.1

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.
Files changed (54) hide show
  1. package/README.md +49 -14
  2. package/lib/commands/cms/export/workspace.d.ts +2 -0
  3. package/lib/commands/cms/export/workspace.js +58 -5
  4. package/lib/commands/cms/export/workspace.js.map +1 -1
  5. package/lib/commands/cms/import/workspace.d.ts +1 -1
  6. package/lib/commands/cms/import/workspace.js +2 -2
  7. package/lib/commands/cms/import/workspace.js.map +1 -1
  8. package/lib/contracts/workspace-export.d.ts +18 -0
  9. package/lib/contracts/workspace-export.js +53 -0
  10. package/lib/contracts/workspace-export.js.map +1 -1
  11. package/lib/contracts/workspace-import.d.ts +1 -0
  12. package/lib/contracts/workspace-import.js +13 -1
  13. package/lib/contracts/workspace-import.js.map +1 -1
  14. package/lib/generated/operations.d.ts +5 -0
  15. package/lib/generated/operations.js +6 -0
  16. package/lib/generated/operations.js.map +1 -1
  17. package/lib/services/bulk-export-workspaces.js +1 -1
  18. package/lib/services/bulk-export-workspaces.js.map +1 -1
  19. package/lib/services/cms-prerequisite-lookup.d.ts +16 -0
  20. package/lib/services/cms-prerequisite-lookup.js +89 -0
  21. package/lib/services/cms-prerequisite-lookup.js.map +1 -0
  22. package/lib/services/content-key.d.ts +9 -0
  23. package/lib/services/content-key.js +15 -0
  24. package/lib/services/content-key.js.map +1 -0
  25. package/lib/services/email-fragment.js +5 -1
  26. package/lib/services/email-fragment.js.map +1 -1
  27. package/lib/services/export-workspace.d.ts +2 -0
  28. package/lib/services/export-workspace.js +104 -47
  29. package/lib/services/export-workspace.js.map +1 -1
  30. package/lib/services/image-import.js +3 -7
  31. package/lib/services/image-import.js.map +1 -1
  32. package/lib/services/import-identities.js +5 -1
  33. package/lib/services/import-identities.js.map +1 -1
  34. package/lib/services/import-workspace.d.ts +48 -1
  35. package/lib/services/import-workspace.js +142 -19
  36. package/lib/services/import-workspace.js.map +1 -1
  37. package/lib/services/landing-page-pair-export.d.ts +31 -0
  38. package/lib/services/landing-page-pair-export.js +122 -0
  39. package/lib/services/landing-page-pair-export.js.map +1 -0
  40. package/lib/services/landing-page-template.d.ts +12 -2
  41. package/lib/services/landing-page-template.js +25 -74
  42. package/lib/services/landing-page-template.js.map +1 -1
  43. package/lib/services/landing-page.d.ts +45 -1
  44. package/lib/services/landing-page.js +241 -3
  45. package/lib/services/landing-page.js.map +1 -1
  46. package/lib/services/variant-identity.d.ts +14 -0
  47. package/lib/services/variant-identity.js +24 -0
  48. package/lib/services/variant-identity.js.map +1 -1
  49. package/lib/services/web-fragment.d.ts +12 -6
  50. package/lib/services/web-fragment.js +60 -19
  51. package/lib/services/web-fragment.js.map +1 -1
  52. package/messages/cms.export.workspace.md +20 -0
  53. package/messages/cms.import.workspace.md +6 -2
  54. package/package.json +1 -1
package/README.md CHANGED
@@ -191,7 +191,7 @@ Choose either single or bulk mode:
191
191
 
192
192
  In single mode, `--output-dir <path>` remains the exact new destination. When omitted, export writes to `./cms/<safe-canonical-workspace-name>`. In bulk mode, `--output-dir` is the parent directory and defaults to `./cms`; each workspace is written beneath it using the canonical fetched name. Safe segments preserve Unicode and case, replace path/control/Windows-invalid characters, and trim unsafe trailing dots or spaces.
193
193
 
194
- Bulk mode performs a strict global preflight before the first workspace export: it enumerates until an empty page, canonicalizes every workspace by ID, validates IDs and names, resolves recognized canonical `spaceType` values, applies the optional type filter, sorts by canonical ID, checks the output parent and every destination, and rejects collisions after sanitization, Unicode normalization, and case folding. If a canonical detail response omits `spaceType`, preflight can use the list response's recognized type only for the same exact workspace ID. A present malformed, null, or unsupported canonical type is rejected, while an explicit contradictory canonical `Content` type is filtered out. Any preflight failure creates no destinations and makes no export calls.
194
+ Bulk mode performs a strict global preflight before the first workspace export. When `--workspace-type` is supplied, workspace enumeration sends the matching `spaceType` filter to Salesforce, so unrelated workspace families such as Enablement cannot enter the Marketing or Content preflight and block the requested export. The command then enumerates until an empty page, canonicalizes every returned workspace by ID, validates IDs and names, resolves recognized canonical `spaceType` values, applies the type check again, sorts by canonical ID, checks the output parent and every destination, and rejects collisions after sanitization, Unicode normalization, and case folding. If a canonical detail response omits `spaceType`, preflight can use the list response's recognized type only for the same exact workspace ID. A present malformed, null, or unsupported canonical type is rejected, while an explicit contradictory type is filtered out. Any preflight failure creates no destinations and makes no export calls.
195
195
 
196
196
  After preflight, each workspace export remains atomic. Execution continues after individual failures. Manifest warnings count as successful exports. JSON and human modes both return the complete deterministic aggregate with discovered, selected, succeeded, and failed counts plus per-workspace status, manifest, or redacted single-line error. A partial execution sets a nonzero process exit code only after the aggregate is emitted.
197
197
 
@@ -300,7 +300,7 @@ sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --
300
300
  sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --source-dir ./cms-images --image-map ./image-map.json --contract-version 2 --apply --report-dir ./cms-image-report --json
301
301
  ```
302
302
 
303
- Every row selects exactly one integrity-verified `cms/image` item by exact API name, with optional source bindings such as workspace, language, server ID, title, or version. Each of the four identity fields has an explicit strategy: `preserve` submits the evidenced source value, `fresh` submits a different map-provided value, and `generated` omits the value for the server to assign. `title` supports only `preserve` or `fresh`. Content keys supplied through `preserve` or `fresh` must use the canonical `MC` plus 26 base32-character shape. Duplicate source selections and duplicate non-generated target identity tuples are rejected.
303
+ Every row selects exactly one integrity-verified `cms/image` item by exact API name, with optional source bindings such as workspace, language, server ID, title, or version. Each of the four identity fields has an explicit strategy: `preserve` submits the evidenced source value, `fresh` submits a different map-provided value, and `generated` omits the value for the server to assign. `title` supports only `preserve` or `fresh`. Every explicitly submitted Enhanced CMS target content key must match `^MC[A-Z2-7]{26}$`: the `MC` prefix followed by exactly 26 uppercase base32 characters (`A`–`Z` or `2`–`7`). Image keys supplied through `preserve` or `fresh` follow the same rule. Duplicate source selections and duplicate non-generated target identity tuples are rejected.
304
304
 
305
305
  Dry-run validates the complete v2 package, verifies media bytes and hashes, resolves the exact destination workspace, and checks every selected destination identity before reporting the plan. Apply repeats destination checks immediately before each sequential multipart CREATE, records a pending operation before transport, and verifies returned identity, workspace, type, Draft state, authoring metadata, and canonical variant readback. Binary byte proof is reported separately because the authoring readback may not expose original bytes. Multipart filenames are normalized to the declared GIF, JPEG, PNG, or WebP MIME type; missing extensions are added and mismatches are rejected.
306
306
 
@@ -308,7 +308,17 @@ Image import is create-only. It has no update fallback, overwrite, publication,
308
308
 
309
309
  #### Bounded email-fragment copies (`--email-fragment-map`)
310
310
 
311
- `--email-fragment-map <json-file>` opts into the experimental first Phase 4 profile. It supports only dependency-free `sfdc_cms__emailFragment` content whose body exactly matches the evidenced root-content-block → one section → one empty column shape, including the exact accepted layout attributes and empty provider, expression, attachment, and variant arrays. It is not general reusable-block or workspace restoration support.
311
+ Export one or many `sfdc_cms__emailFragment` components by exact API name. The selection file is a nonempty JSON string array; every requested name must resolve exactly once in the selected workspace and exact content type. Only selected variants are packaged, so relationship descriptors owned by unrelated workspace content are excluded while the resulting package retains normal manifest and hash verification.
312
+
313
+ ```json
314
+ ["ReusableHeader", "ReusableFooter"]
315
+ ```
316
+
317
+ ```sh
318
+ sf cms export workspace --target-org source-org --workspace-id 0ZuSOURCE --output-dir ./cms-email-fragments --email-fragment-map ./email-fragments.json --json
319
+ ```
320
+
321
+ For import, `--email-fragment-map <json-file>` opts into the experimental first Phase 4 profile. It supports only dependency-free `sfdc_cms__emailFragment` content whose body exactly matches the evidenced root-content-block → one section → one empty column shape, including the exact accepted layout attributes and empty provider, expression, attachment, and variant arrays. It is not general reusable-block or workspace restoration support.
312
322
 
313
323
  The mapping file is a nonempty JSON array with exact typed source selectors and fresh target identities:
314
324
 
@@ -321,7 +331,7 @@ The mapping file is a nonempty JSON array with exact typed source selectors and
321
331
  "apiName": "source_fragment_api"
322
332
  },
323
333
  "target": {
324
- "contentKey": "fresh-fragment-key",
334
+ "contentKey": "MCAAAAAAAAAAAAAAAAAAAAAAAAAA",
325
335
  "apiName": "fresh_fragment_api"
326
336
  }
327
337
  }
@@ -364,7 +374,7 @@ Import uses a nonempty JSON array with exact typed source selection, fresh targe
364
374
  "apiName": "LandingHero"
365
375
  },
366
376
  "target": {
367
- "contentKey": "fresh_landing_hero_key",
377
+ "contentKey": "MCBBBBBBBBBBBBBBBBBBBBBBBBBB",
368
378
  "apiName": "LandingHeroTarget"
369
379
  },
370
380
  "dataGraphs": [
@@ -384,7 +394,7 @@ sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --
384
394
  sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --source-dir ./cms-web-fragments --web-fragment-map ./web-fragment-map.json --apply --report-dir ./cms-web-fragment-report --contract-version 1 --json
385
395
  ```
386
396
 
387
- Dry-run proves fresh content-key and API-name availability plus exact unique `DataGraph.DeveloperName` and `DataSpaceDevName` matches. Apply repeats API-name and Data Graph validation immediately before each CREATE, creates sequentially, and journals every prerequisite mapping and mutation in `workspace-import-run.json`. Missing, ambiguous, unqueryable, or mismatched prerequisites block creation; no default Data Graph substitution is allowed. The profile creates Draft content only: no update fallback, overwrite, publication, activation, or send is performed. Deploy referenced CMS images before dependent fragments. Live installed-host fragment CREATE/readback acceptance is still pending.
397
+ Dry-run proves fresh content-key and API-name availability, then resolves each exact target Data Graph with a named Connect GET at `/services/data/v{version}/ssot/data-graphs/{encodedDeveloperName}` using the connection-selected API version. A prerequisite qualifies only when the response is a non-array object whose nonempty `name` and `dataspaceName` exactly and case-sensitively match the mapped target pair, and whose nonblank status is `ready` or `active` case-insensitively. Apply repeats API-name and Data Graph validation immediately before each CREATE, creates sequentially, and journals every prerequisite mapping, validation result, and mutation in `workspace-import-run.json`. Duplicate target pairs share one request within each validation pass, but dry-run and apply revalidation remain separate. Request failures and malformed, missing, mismatched, or non-ready responses block creation; there is no SOQL, metadata/list fallback, data-space query-parameter reliance, or default Data Graph substitution. The profile creates Draft content only: no update fallback, overwrite, publication, activation, or send is performed. Deploy referenced CMS images before dependent fragments. The bounded packed installed-host acceptance matrix includes fresh Draft CREATE and independent readback for this exact profile; broader web-fragment shapes remain unsupported.
388
398
 
389
399
  #### Landing-page templates (`--landing-page-template-map`)
390
400
 
@@ -398,7 +408,7 @@ Export one or many `sfdc_cms__landingPageTemplate` components by exact API name.
398
408
  sf cms export workspace --target-org source-org --workspace-id 0ZuSOURCE --output-dir ./cms-landing-templates --landing-page-template-map ./landing-page-templates.json --json
399
409
  ```
400
410
 
401
- Import uses exact typed source selection, fresh create identities, explicit mappings for every captured CMS image/web-fragment reference, and explicit mappings for every Data Graph provider. `targetTitle` is optional and is used only when the exact target API-name lookup succeeds with zero matches; fallback remains exact, type-qualified, workspace-scoped, and must resolve uniquely.
411
+ Import uses exact typed source selection, fresh create identities, explicit mappings for every captured CMS image/web-fragment reference, and explicit mappings for every Data Graph provider. Salesforce derives the template Label as `<target.apiName>--sfdc_cms__landingPageTemplate` and limits it to 80 characters, so `target.apiName` is limited to 49 characters. `targetTitle` is optional and is used only when the exact target API-name lookup succeeds with zero matches; fallback remains exact, type-qualified, workspace-scoped, and must resolve uniquely.
402
412
 
403
413
  ```json
404
414
  [
@@ -409,7 +419,7 @@ Import uses exact typed source selection, fresh create identities, explicit mapp
409
419
  "apiName": "MCBSUMZKCZFFEU3MZFHAZWVTWNGY"
410
420
  },
411
421
  "target": {
412
- "contentKey": "fresh_landing_template_key",
422
+ "contentKey": "MCCCCCCCCCCCCCCCCCCCCCCCCCCC",
413
423
  "apiName": "FreshLandingTemplate"
414
424
  },
415
425
  "cmsDependencies": [
@@ -437,7 +447,28 @@ sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --
437
447
  sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --source-dir ./cms-landing-templates --landing-page-template-map ./landing-page-template-map.json --apply --report-dir ./cms-landing-template-report --contract-version 1 --json
438
448
  ```
439
449
 
440
- Dry-run verifies the complete package, fresh destination content key/API name, each exact Data Graph identity, and each exact typed CMS prerequisite. Apply repeats all checks immediately before each sequential CREATE, rewrites only the mapped CMS content keys and bound media URLs, and records CMS/Data Graph prerequisite resolution plus mutation evidence in `workspace-import-run.json`. Any lookup error, missing/ambiguous API name, missing/ambiguous title fallback, wrong type/workspace, unsupported reference shape, or drift blocks creation. Templates remain Draft and unpublished; there is no update, overwrite, upsert, publication, activation, send, or landing-page creation. Deploy images and web fragments first. Live installed-host template CREATE/readback acceptance remains pending.
450
+ Dry-run verifies the complete package, fresh destination content key/API name, each exact Data Graph identity, and each exact typed CMS prerequisite. Apply repeats all checks immediately before each sequential CREATE, rewrites only the mapped CMS content keys and bound media URLs, and records CMS/Data Graph prerequisite resolution plus mutation evidence in `workspace-import-run.json`. Any lookup error, missing/ambiguous API name, missing/ambiguous title fallback, wrong type/workspace, unsupported reference shape, or drift blocks creation. Templates remain Draft and unpublished; there is no update, overwrite, upsert, publication, activation, send, or landing-page creation. Deploy images and web fragments first. The bounded packed installed-host acceptance matrix includes fresh Draft CREATE and independent readback for this exact template profile, with prerequisite revalidation and drift checks.
451
+
452
+ #### Paired landing pages and declared templates (`--landing-page-pair-map`)
453
+
454
+ Use this export-only compatibility baseline when a landing page declares a Landing Page Template relationship. The input is a nonempty array of explicit pairs:
455
+
456
+ ```json
457
+ [
458
+ {
459
+ "page": { "apiName": "SourceLandingPage" },
460
+ "template": { "title": "Human Template Label" }
461
+ }
462
+ ]
463
+ ```
464
+
465
+ The page selector is its exact API name. The expected template path is its exact human title/label because the relationship value can be opaque or unreadable. Title lookup is strict: zero or multiple exact matches fail closed, and lookup errors are never treated as zero matches. An optional `template.apiName` may corroborate a separately known API name, but the command never parses, compares, or asks the user to enter the opaque relationship value as a selector.
466
+
467
+ ```sh
468
+ sf cms export workspace --target-org source-org --workspace-id 0ZuSOURCE --output-dir ./cms-landing-page-pairs --landing-page-pair-map ./landing-page-pairs.json --json
469
+ ```
470
+
471
+ The bounded export retrieves complete exact-type inventories for `sfdc_cms__landingPage` and `sfdc_cms__landingPageTemplate` in the selected workspace, exports only the selected pages and resolved templates, and records deterministic `landingPageTemplatePairs` metadata. Each row binds the requested template title to the resolved canonical template API name, content key, and variant ID, plus the page API name/content key/variant ID. Compatibility is structural: each selected page must contain exactly one declared Landing Page Template relationship descriptor. The descriptor remains retained as a generic unsupported relationship; this baseline does not claim historical provenance and does not parse or compare the opaque relationship value. Multiple pages may bind the same exported template. No import mapping, destination lookup, body rewrite, journaling, or mutation is implemented by this flag.
441
472
 
442
473
  #### Landing pages (`--landing-page-map`)
443
474
 
@@ -451,7 +482,9 @@ Export one or many `sfdc_cms__landingPage` components by exact API name. The sel
451
482
  sf cms export workspace --target-org source-org --workspace-id 0ZuSOURCE --output-dir ./cms-landing-pages --landing-page-map ./landing-pages.json --json
452
483
  ```
453
484
 
454
- The bounded import profile supports only the captured landing-page shape: the exact top-level body fields, the `sfdc_cms__dataGraphDataProvider` with `dataGraphApiName` and `dataspace`, and image blocks whose `source.type` is `imageReference`, whose `source.ref.contentKey` identifies the image, and whose URL begins with `/cms/media/{contentKey}`. The available fixture does not evidence landing-page-template or web-fragment references, so this profile does not resolve or rewrite them and fails closed if an unsupported reference shape appears.
485
+ The bounded import profile consumes the paired export evidence above. Source template selection is title-first; the independently retained canonical template API name/content key/variant ID and normalized page/template body hashes prove structural compatibility, not historical provenance. The opaque relationship descriptor is bound only through that declared pair; any additional unsupported relationship remains blocking. The outgoing page body receives no template-reference field injection.
486
+
487
+ The supported page shape retains the exact top-level body fields, the `sfdc_cms__dataGraphDataProvider` with `dataGraphApiName` and `dataspace`, and image blocks whose `source.type` is `imageReference`, whose `source.ref.contentKey` identifies the image, and whose URL begins with `/cms/media/{contentKey}`. Salesforce derives the page Label as `<target.apiName>--sfdc_cms__landingPage` and limits it to 80 characters, so `target.apiName` is limited to 57 characters.
455
488
 
456
489
  ```json
457
490
  [
@@ -462,7 +495,7 @@ The bounded import profile supports only the captured landing-page shape: the ex
462
495
  "apiName": "MCJV5RXRKOMRF5HD3OD3OFQSO5C4"
463
496
  },
464
497
  "target": {
465
- "contentKey": "fresh_landing_page_key",
498
+ "contentKey": "MCDDDDDDDDDDDDDDDDDDDDDDDDDD",
466
499
  "apiName": "FreshLandingPage"
467
500
  },
468
501
  "imageDependencies": [
@@ -489,7 +522,9 @@ sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --
489
522
  sf cms import workspace --target-org destination-org --workspace-id 0ZuTARGET --source-dir ./cms-landing-pages --landing-page-map ./landing-page-map.json --apply --report-dir ./cms-landing-page-report --contract-version 1 --json
490
523
  ```
491
524
 
492
- Image resolution is exact API name first within the destination workspace and `sfdc_cms__image` type. `targetTitle` is considered only after that lookup completes successfully with zero matches, and the exact title fallback must resolve once. Dry-run performs no writes. Apply creates Draft pages sequentially, immediately rechecks content-key/API-name availability plus all image and Data Graph prerequisites before each CREATE, rewrites the resolved image content keys and their matching `/cms/media/{contentKey}` URLs, and durably journals prerequisite results, request hashes, and returned IDs in `workspace-import-run.json`. There is no update, overwrite, upsert, publish, activate, send, or implicit dependency deployment. Installed-host live landing-page CREATE/readback acceptance remains pending and was not performed for this slice.
525
+ Destination template resolution uses the explicitly requested content key, or exact API name with exact-title fallback only after a successful zero-match API-name lookup. The resolved template must remain the same exact type/workspace, Draft, unpublished identity and body at preflight and immediately before CREATE. Image resolution is exact API name first within the destination workspace and `sfdc_cms__image` type; `targetTitle` is considered only after that lookup completes successfully with zero matches. Data Graph developer-name/data-space identity and target page identity are also revalidated.
526
+
527
+ Dry-run creates no report and performs no mutation, but returns the same `templatePrerequisites` evidence shape as apply preflight. Apply writes `workspace-import-run.json` before any mutation, then rebuilds the outgoing body from immutable source page/template baselines and fresh image/Data Graph resolutions immediately before each CREATE. It fails before CREATE on template status/body/workspace/type drift, image/Data Graph drift, or target page identity drift. Evidence includes the source page and declared source template identities, requested target selector, normalization version/body hashes, relationship descriptor binding, phase timestamps/status/hashes, final request-body SHA-256, and returned IDs. The final packed installed-host acceptance performed exactly one fresh Landing Page CREATE and independent readback, proving the bounded result Draft and unpublished while the source/original content remained unchanged. The acceptance matrix also exercised prerequisite and drift checks. There is no update, overwrite, upsert, publish, activate, send, implicit dependency deployment, or template-reference injection.
493
528
 
494
529
  #### Editable HTML companion (`--editable-dir`)
495
530
 
@@ -658,7 +693,7 @@ The correlation table exists only at `result.externalReferenceCorrelations`. Eac
658
693
 
659
694
  ### Package layout and integrity
660
695
 
661
- A workspace export package contains `manifest.json` plus regular item files. Packages without image candidates use manifest v1. Image candidates without `--experimental-media` remain JSON entries in a strict v2 manifest with an empty `media` array, no media binary files, a `MEDIA_EXPORT_FAILED` warning, and `partial` completeness. With explicit `--experimental-media`, successful image downloads use the same strict v2 manifest and add bijectively matched `media` descriptors and `cms.media` items. `manifest.json` is the sole package control file and the sole regular file excluded from `items[]`. Every other regular file must occur exactly once in `items[]`; directories are excluded, while symlinks and other special filesystem entries are rejected. Paths are relative POSIX-style paths.
696
+ A workspace export package contains `manifest.json` plus regular item files. Packages without image candidates use manifest v1. Paired landing-page exports can additionally contain deterministic `landingPageTemplatePairs` rows that bind each selected page item to a title-resolved canonical template item while retaining the page's generic unsupported relationship descriptor. Image candidates without `--experimental-media` remain JSON entries in a strict v2 manifest with an empty `media` array, no media binary files, a `MEDIA_EXPORT_FAILED` warning, and `partial` completeness. With explicit `--experimental-media`, successful image downloads use the same strict v2 manifest and add bijectively matched `media` descriptors and `cms.media` items. `manifest.json` is the sole package control file and the sole regular file excluded from `items[]`. Every other regular file must occur exactly once in `items[]`; directories are excluded, while symlinks and other special filesystem entries are rejected. Paths are relative POSIX-style paths.
662
697
 
663
698
  Each item records exactly `{ path, sha256, kind, referenceId? }`, with lowercase SHA-256 calculated over the finalized exact file bytes. Import independently validates the manifest major, enumerates the package, rejects missing, substituted, duplicate-path, or unlisted files, and verifies every item hash. Only after the listed set and hashes are verified does it hash the exact `manifest.json` bytes and use that hash as package identity.
664
699
 
@@ -692,7 +727,7 @@ The experimental export uses the v67 `GET /connect/cms/items/search` operation.
692
727
 
693
728
  String-array query values such as `contentSpaceOrFolderIds` and `languages` are serialized as repeated keys. Pagination reconstructs each request from the original filters instead of trusting `nextPageUri`, which was observed to remain present after an empty page. Delivery responses do not prove workspace ownership and exclude drafts. SOQL omitted a known record that remained readable through Connect REST, and CMS `9Pu` folders exposed no child-enumeration operation, so none of those alternatives establishes a complete inventory.
694
729
 
695
- Current shipped export guards include an explicit single-workspace mode and a strict bulk preflight. Workspace enumeration is zero-based with `pageSize=250`, deduplicates exact IDs, rejects conflicting recognized types for the same ID during bulk preflight, ignores advertised totals as a termination signal, and continues until an empty page. It fails closed on repeated pages, no progress, malformed IDs, case/Unicode-equivalent IDs, or the 1,000-page cap. Bulk preflight canonicalizes every workspace with a GET, validates canonical ID and name, prefers recognized canonical `spaceType`, and uses recognized list type evidence only when the canonical detail type is absent and the exact ID matches. It rejects present malformed, null, or unsupported canonical type evidence, filters an explicit contradictory `Content` type, sorts by canonical ID, and rejects unsafe or colliding destinations before any export starts.
730
+ Current shipped export guards include an explicit single-workspace mode and a strict bulk preflight. Workspace enumeration is zero-based with `pageSize=250`; a requested Marketing or Content bulk export is filtered server-side with `spaceType`, preventing unrelated workspace families from entering that preflight. Enumeration deduplicates exact IDs, rejects conflicting recognized types for the same ID during bulk preflight, ignores advertised totals as a termination signal, and continues until an empty page. It fails closed on repeated pages, no progress, malformed IDs, case/Unicode-equivalent IDs, or the 1,000-page cap. Bulk preflight canonicalizes every returned workspace with a GET, validates canonical ID and name, prefers recognized canonical `spaceType`, and uses recognized list type evidence only when the canonical detail type is absent and the exact ID matches. It rejects present malformed, null, or unsupported canonical type evidence, filters an explicit contradictory type, sorts by canonical ID, and rejects unsafe or colliding destinations before any export starts.
696
731
 
697
732
  Per-workspace variant export remains atomic and best-effort: it verifies `managedContentSpaceId` in search rows and `contentSpace.id` in variant details, records ownership rejections and detail failures, refuses an existing destination, writes stable JSON to a temporary sibling directory, removes staging after failure, and renames staging only after all output is written. Bulk execution continues across workspace failures and emits a deterministic complete aggregate in both human and JSON modes.
698
733
 
@@ -15,9 +15,11 @@ export default class ExportWorkspace extends CmsCommand<WorkspaceExportCommandRe
15
15
  'workspace-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'workspace-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  'workspace-type': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ 'email-fragment-map': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  'web-fragment-map': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  'landing-page-template-map': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
21
  'landing-page-map': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ 'landing-page-pair-map': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
23
  'experimental-media': import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
24
  'editable-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
25
  'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -5,6 +5,7 @@ import { assertSupportedMajor } from '../../../contracts/shared.js';
5
5
  import { exportAllWorkspaces, normalizeWorkspaceType, } from '../../../services/bulk-export-workspaces.js';
6
6
  import { defaultWorkspaceDestination, exportWorkspace, } from '../../../services/export-workspace.js';
7
7
  import { preflightEditableExport } from '../../../services/editable-raw-html-export.js';
8
+ import { parseLandingPagePairSelectors } from '../../../services/landing-page-pair-export.js';
8
9
  import { assertWorkspaceSelector, resolveWorkspace } from '../../../services/resolve-workspace.js';
9
10
  import { apiVersionFlag, CmsCommand, targetOrgFlag } from '../../../command-base.js';
10
11
  export default class ExportWorkspace extends CmsCommand {
@@ -13,9 +14,11 @@ export default class ExportWorkspace extends CmsCommand {
13
14
  static examples = [
14
15
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-name "Main Site"',
15
16
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --json',
17
+ '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --email-fragment-map ./email-fragments.json --json',
16
18
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --web-fragment-map ./web-fragments.json --json',
17
19
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --landing-page-template-map ./landing-page-templates.json --json',
18
20
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --landing-page-map ./landing-pages.json --json',
21
+ '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --landing-page-pair-map ./landing-page-pairs.json --json',
19
22
  '<%= config.bin %> cms export workspace --target-org my-org --workspace-id 0Zu... --output-dir ./cms-export --experimental-media --json',
20
23
  '<%= config.bin %> cms export workspace --target-org my-org --all --workspace-type Marketing --output-dir ./cms --contract-version 1 --json',
21
24
  '<%= config.bin %> cms export workspace --target-org source-org --workspace-id 0ZuSOURCE --output-dir ./cms-baseline --editable-dir ./cms-editable --json',
@@ -45,21 +48,61 @@ export default class ExportWorkspace extends CmsCommand {
45
48
  parse: async (input) => normalizeWorkspaceType(input),
46
49
  summary: 'Bulk-only workspace type filter: Marketing or Content (case-insensitive).',
47
50
  }),
51
+ 'email-fragment-map': Flags.file({
52
+ exists: true,
53
+ exclusive: [
54
+ 'all',
55
+ 'web-fragment-map',
56
+ 'landing-page-template-map',
57
+ 'landing-page-map',
58
+ 'landing-page-pair-map',
59
+ ],
60
+ summary: 'JSON array of exact sfdc_cms__emailFragment API names to export; every name must resolve exactly once.',
61
+ }),
48
62
  'web-fragment-map': Flags.file({
49
63
  exists: true,
50
- exclusive: ['all', 'landing-page-template-map', 'landing-page-map'],
64
+ exclusive: [
65
+ 'all',
66
+ 'email-fragment-map',
67
+ 'landing-page-template-map',
68
+ 'landing-page-map',
69
+ 'landing-page-pair-map',
70
+ ],
51
71
  summary: 'JSON array of exact sfdc_cms__webFragment API names to export; every name must resolve exactly once.',
52
72
  }),
53
73
  'landing-page-template-map': Flags.file({
54
74
  exists: true,
55
- exclusive: ['all', 'web-fragment-map', 'landing-page-map'],
75
+ exclusive: [
76
+ 'all',
77
+ 'email-fragment-map',
78
+ 'web-fragment-map',
79
+ 'landing-page-map',
80
+ 'landing-page-pair-map',
81
+ ],
56
82
  summary: 'JSON array of exact sfdc_cms__landingPageTemplate API names to export; every name must resolve exactly once.',
57
83
  }),
58
84
  'landing-page-map': Flags.file({
59
85
  exists: true,
60
- exclusive: ['all', 'web-fragment-map', 'landing-page-template-map'],
86
+ exclusive: [
87
+ 'all',
88
+ 'email-fragment-map',
89
+ 'web-fragment-map',
90
+ 'landing-page-template-map',
91
+ 'landing-page-pair-map',
92
+ ],
61
93
  summary: 'JSON array of exact sfdc_cms__landingPage API names to export; every name must resolve exactly once.',
62
94
  }),
95
+ 'landing-page-pair-map': Flags.file({
96
+ exists: true,
97
+ exclusive: [
98
+ 'all',
99
+ 'email-fragment-map',
100
+ 'web-fragment-map',
101
+ 'landing-page-template-map',
102
+ 'landing-page-map',
103
+ ],
104
+ summary: 'JSON pairs of exact landing-page API name and exact source template title; the template API name is optional corroboration.',
105
+ }),
63
106
  'experimental-media': Flags.boolean({
64
107
  exclusive: ['all'],
65
108
  summary: 'Single-workspace only: opt into undocumented image binary transport and strict v2 media output.',
@@ -129,7 +172,11 @@ export default class ExportWorkspace extends CmsCommand {
129
172
  destination = defaultWorkspaceDestination(workspaceName);
130
173
  }
131
174
  const experimentalMedia = flags['experimental-media'] === true ? resolveExperimentalMedia(connection) : undefined;
132
- const selectionFile = flags['web-fragment-map'] ?? flags['landing-page-template-map'] ?? flags['landing-page-map'];
175
+ const pairSelectionFile = flags['landing-page-pair-map'];
176
+ const selectionFile = flags['email-fragment-map'] ??
177
+ flags['web-fragment-map'] ??
178
+ flags['landing-page-template-map'] ??
179
+ flags['landing-page-map'];
133
180
  const selectedApiNames = selectionFile === undefined
134
181
  ? undefined
135
182
  : JSON.parse(await readFile(selectionFile, 'utf8'));
@@ -138,8 +185,13 @@ export default class ExportWorkspace extends CmsCommand {
138
185
  selectedApiNames.some((value) => typeof value !== 'string'))) {
139
186
  throw new TypeError('Component map must contain a JSON array of API-name strings.');
140
187
  }
188
+ const landingPagePairs = pairSelectionFile === undefined
189
+ ? undefined
190
+ : parseLandingPagePairSelectors(JSON.parse(await readFile(pairSelectionFile, 'utf8')));
141
191
  let selectedContentType;
142
- if (flags['web-fragment-map'] !== undefined)
192
+ if (flags['email-fragment-map'] !== undefined)
193
+ selectedContentType = 'sfdc_cms__emailFragment';
194
+ else if (flags['web-fragment-map'] !== undefined)
143
195
  selectedContentType = 'sfdc_cms__webFragment';
144
196
  else if (flags['landing-page-template-map'] !== undefined)
145
197
  selectedContentType = 'sfdc_cms__landingPageTemplate';
@@ -155,6 +207,7 @@ export default class ExportWorkspace extends CmsCommand {
155
207
  apiNames: selectedApiNames,
156
208
  },
157
209
  }),
210
+ ...(landingPagePairs === undefined ? {} : { landingPagePairs }),
158
211
  pluginVersion: this.pluginVersion,
159
212
  sourceOrgId: orgId,
160
213
  ...(experimentalMedia === undefined ? {} : { experimentalMedia }),
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../src/commands/cms/export/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,8BAA8B,GAE/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAoB,MAAM,8BAA8B,CAAC;AACtF,OAAO,EACL,mBAAmB,E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;IAErB,OAAO;QACL,QAAQ,EAAE,6BAA6B;QACvC,eAAe,EAAE,OAAO;QACxB,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE;YACR,SAAS,EAAE,uBAAuB;YAClC,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,EAAE;YACzD,UAAU;SACX;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,8BAA8B;oBACpC,OAAO,EAAE,kBAAkB,gBAAgB,wCAAwC;oBACnF,SAAS,EAAE,KAAK;iBACjB;aACF;SACF;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,gBAAgB;YAC7B,aAAa;YACb,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACtC;QACD,MAAM,EAAE,IAAI;KACb,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAA+B;IACpD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3F,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,GAAG,UAAU,EAAE,CAAC;AAC7D,CAAC"}
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../src/commands/cms/export/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,8BAA8B,GAE/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAoB,MAAM,8BAA8B,CAAC;AACtF,OAAO,EACL,mBAAmB,EACnB,sBAAs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AE,OAAO,EAAE,aAAa,EAAE;YACzD,UAAU;SACX;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,8BAA8B;oBACpC,OAAO,EAAE,kBAAkB,gBAAgB,wCAAwC;oBACnF,SAAS,EAAE,KAAK;iBACjB;aACF;SACF;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,gBAAgB;YAC7B,aAAa;YACb,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACtC;QACD,MAAM,EAAE,IAAI;KACb,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAA+B;IACpD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3F,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,GAAG,UAAU,EAAE,CAAC;AAC7D,CAAC"}
@@ -4,7 +4,7 @@ import { CmsCommand } from '../../../command-base.js';
4
4
  type WorkspaceImportCommandResult = WorkspaceImportResult | WorkspaceImageImportResultV2;
5
5
  export default class ImportWorkspace extends CmsCommand<CmsEnvelope<WorkspaceImportCommandResult>> {
6
6
  static readonly summary = "Safely plan or apply a create-only import into a CMS workspace.";
7
- static readonly description = "Validates the complete source workspace export locally, selects a destination, and defaults to dry-run. The default profile checks source-key absence, but complete server conflict validation and destination name availability are not established. --native-copy-map selects bounded default-language raw-HTML email/template copies with fresh names and server-generated keys; --editable-dir applies verified HTML-only companion edits against the unchanged baseline. --email-fragment-map selects only the exact dependency-free sfdc_cms__emailFragment root/section/empty-column profile for create-only destination-default-language Drafts with fresh identities. --web-fragment-map selects exact sfdc_cms__webFragment API names, fresh create identities, and exact preserved or explicitly mapped Data Graph developer-name/data-space prerequisites. --landing-page-template-map selects exact sfdc_cms__landingPageTemplate API names with fresh identities and explicit typed CMS/Data Graph prerequisites. --landing-page-map selects the evidenced sfdc_cms__landingPage shape with exact image and Data Graph prerequisites; template and web-fragment references are not supported because they were not observed. --image-map selects strict workspace package v2 images for exact destination preflight and sequential create-only apply under contract version 2. Profile map flags are mutually exclusive. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir. No updates, publication, activation, send, rollback, or package transaction.";
7
+ static readonly description = "Validates the complete source workspace export locally, selects a destination, and defaults to dry-run. The default profile checks source-key absence, but complete server conflict validation and destination name availability are not established. --native-copy-map selects bounded default-language raw-HTML email/template copies with fresh names and server-generated keys; --editable-dir applies verified HTML-only companion edits against the unchanged baseline. --email-fragment-map selects only the exact dependency-free sfdc_cms__emailFragment root/section/empty-column profile for create-only destination-default-language Drafts with fresh identities. --web-fragment-map selects exact sfdc_cms__webFragment API names, fresh create identities, and exact preserved or explicitly mapped Data Graph developer-name/data-space prerequisites. --landing-page-template-map selects exact sfdc_cms__landingPageTemplate API names with fresh identities and explicit typed CMS/Data Graph prerequisites. --landing-page-map selects paired sfdc_cms__landingPage exports with an explicitly declared destination Landing Page Template plus exact image and Data Graph prerequisites. Source pairing is title-first and the canonical package template identity is retained as compatibility evidence, not historical provenance. --image-map selects strict workspace package v2 images for exact destination preflight and sequential create-only apply under contract version 2. Profile map flags are mutually exclusive. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir. No updates, publication, activation, send, rollback, or package transaction.";
8
8
  static readonly examples: string[];
9
9
  static readonly flags: {
10
10
  'target-org': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -13,7 +13,7 @@ import { applyImageImports, planImageImports, preflightImageImports, } from '../
13
13
  import { apiVersionFlag, CmsCommand, targetOrgFlag } from '../../../command-base.js';
14
14
  export default class ImportWorkspace extends CmsCommand {
15
15
  static summary = 'Safely plan or apply a create-only import into a CMS workspace.';
16
- static description = 'Validates the complete source workspace export locally, selects a destination, and defaults to dry-run. The default profile checks source-key absence, but complete server conflict validation and destination name availability are not established. --native-copy-map selects bounded default-language raw-HTML email/template copies with fresh names and server-generated keys; --editable-dir applies verified HTML-only companion edits against the unchanged baseline. --email-fragment-map selects only the exact dependency-free sfdc_cms__emailFragment root/section/empty-column profile for create-only destination-default-language Drafts with fresh identities. --web-fragment-map selects exact sfdc_cms__webFragment API names, fresh create identities, and exact preserved or explicitly mapped Data Graph developer-name/data-space prerequisites. --landing-page-template-map selects exact sfdc_cms__landingPageTemplate API names with fresh identities and explicit typed CMS/Data Graph prerequisites. --landing-page-map selects the evidenced sfdc_cms__landingPage shape with exact image and Data Graph prerequisites; template and web-fragment references are not supported because they were not observed. --image-map selects strict workspace package v2 images for exact destination preflight and sequential create-only apply under contract version 2. Profile map flags are mutually exclusive. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir. No updates, publication, activation, send, rollback, or package transaction.';
16
+ static description = 'Validates the complete source workspace export locally, selects a destination, and defaults to dry-run. The default profile checks source-key absence, but complete server conflict validation and destination name availability are not established. --native-copy-map selects bounded default-language raw-HTML email/template copies with fresh names and server-generated keys; --editable-dir applies verified HTML-only companion edits against the unchanged baseline. --email-fragment-map selects only the exact dependency-free sfdc_cms__emailFragment root/section/empty-column profile for create-only destination-default-language Drafts with fresh identities. --web-fragment-map selects exact sfdc_cms__webFragment API names, fresh create identities, and exact preserved or explicitly mapped Data Graph developer-name/data-space prerequisites. --landing-page-template-map selects exact sfdc_cms__landingPageTemplate API names with fresh identities and explicit typed CMS/Data Graph prerequisites. --landing-page-map selects paired sfdc_cms__landingPage exports with an explicitly declared destination Landing Page Template plus exact image and Data Graph prerequisites. Source pairing is title-first and the canonical package template identity is retained as compatibility evidence, not historical provenance. --image-map selects strict workspace package v2 images for exact destination preflight and sequential create-only apply under contract version 2. Profile map flags are mutually exclusive. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir. No updates, publication, activation, send, rollback, or package transaction.';
17
17
  static examples = [
18
18
  '<%= config.bin %> cms import workspace --target-org my-org --workspace-name "Destination" --source-dir ./cms/Source',
19
19
  '<%= config.bin %> cms import workspace --target-org my-org --workspace-id 0Zu... --source-dir ./cms/Source --apply --report-dir ./cms-import-report --contract-version 1 --json',
@@ -103,7 +103,7 @@ export default class ImportWorkspace extends CmsCommand {
103
103
  'editable-dir',
104
104
  'image-map',
105
105
  ],
106
- summary: 'JSON array selecting exact cms/landingPage API names, fresh identities, and evidenced image/Data Graph prerequisites.',
106
+ summary: 'JSON array selecting paired cms/landingPage API names, fresh identities, an exact Draft template selector, and image/Data Graph prerequisites.',
107
107
  }),
108
108
  'image-map': Flags.file({
109
109
  exists: true,
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../src/commands/cms/import/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,yBAAyB,EACzB,4BAA4B,GAG7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,mBAAmB,GAIpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,GAG1B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CA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AI,CAAC,GAAG,CAAC,eAAe,SAAS,CAAC,UAAU,IAAI,EAAE,EAAE,CAAC,CAAC;YACtD,KAAK,MAAM,UAAU,IAAI,SAAS,CAAC,WAAW;gBAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC/E,CAAC;IACH,CAAC;;AAGH,SAAS,QAAQ,CACf,MAAiB,EACjB,aAAoB,EACpB,UAAkB,EAClB,KAAa,EACb,aAAqB,EACrB,MAA2C,EAC3C,MAAuB,EACvB,WAA4B,EAAE;IAE9B,OAAO;QACL,QAAQ,EAAE,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,yBAAyB;QACxF,eAAe,EAAE,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;QACxD,MAAM;QACN,QAAQ,EAAE;YACR,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,EAAE;YACzD,UAAU;SACX;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,EAAE,sBAAsB,CAAC;YAC/D,MAAM,EAAE,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,CAAC;SAC1D;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,KAAK;YAClB,aAAa;YACb,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACtC;QACD,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -27,6 +27,23 @@ export type WorkspaceExportMedia = {
27
27
  sourceUrl: string;
28
28
  transport: 'experimental-undocumented-authoring-media';
29
29
  };
30
+ export type LandingPageTemplatePair = {
31
+ page: {
32
+ apiName: string;
33
+ contentKey: string;
34
+ variantId: string;
35
+ };
36
+ template: {
37
+ requestedTitle: string;
38
+ apiName: string;
39
+ contentKey: string;
40
+ variantId: string;
41
+ };
42
+ compatibility: {
43
+ basis: 'declared-source-pair';
44
+ relationship: 'opaque-structural-match';
45
+ };
46
+ };
30
47
  export type WorkspaceExportManifest = {
31
48
  schemaVersion: 1 | 2;
32
49
  mode: 'experimental-best-effort';
@@ -64,6 +81,7 @@ export type WorkspaceExportManifest = {
64
81
  };
65
82
  completeness: 'complete' | 'partial';
66
83
  dependencies: string[];
84
+ landingPageTemplatePairs?: LandingPageTemplatePair[];
67
85
  externalReferences: OpaqueCmsReference[];
68
86
  items: WorkspaceExportManifestItem[];
69
87
  };
@@ -29,6 +29,9 @@ export function assertWorkspaceExportManifest(value) {
29
29
  'provenance',
30
30
  'completeness',
31
31
  'dependencies',
32
+ ...(typeof value === 'object' && value !== null && 'landingPageTemplatePairs' in value
33
+ ? ['landingPageTemplatePairs']
34
+ : []),
32
35
  'externalReferences',
33
36
  'items',
34
37
  ], 'manifest');
@@ -83,6 +86,7 @@ export function assertWorkspaceExportManifest(value) {
83
86
  if (value.dependencies.length > 0) {
84
87
  throw new TypeError('manifest.dependencies must be empty while dependency discovery is unavailable');
85
88
  }
89
+ assertLandingPageTemplatePairs(value);
86
90
  let previousReference = '';
87
91
  const referenceIds = new Set();
88
92
  for (const [index, reference] of value.externalReferences.entries()) {
@@ -128,6 +132,55 @@ export function assertWorkspaceExportManifest(value) {
128
132
  throw new TypeError('manifest.completeness contradicts authoritative incompleteness evidence');
129
133
  }
130
134
  }
135
+ function assertLandingPageTemplatePairs(value) {
136
+ if (!('landingPageTemplatePairs' in value))
137
+ return;
138
+ if (!Array.isArray(value.landingPageTemplatePairs) ||
139
+ value.landingPageTemplatePairs.length === 0) {
140
+ throw new TypeError('manifest.landingPageTemplatePairs must be a nonempty array');
141
+ }
142
+ const entries = new Set(value.entries.map(({ variantId }) => variantId));
143
+ let previous = '';
144
+ const pageVariantIds = new Set();
145
+ for (const [index, pair] of value.landingPageTemplatePairs.entries()) {
146
+ const label = `manifest.landingPageTemplatePairs[${index}]`;
147
+ assertExactKeys(pair, ['page', 'template', 'compatibility'], label);
148
+ assertExactKeys(pair.page, ['apiName', 'contentKey', 'variantId'], `${label}.page`);
149
+ assertExactKeys(pair.template, ['requestedTitle', 'apiName', 'contentKey', 'variantId'], `${label}.template`);
150
+ assertExactKeys(pair.compatibility, ['basis', 'relationship'], `${label}.compatibility`);
151
+ for (const [field, fieldValue] of Object.entries(pair.page)) {
152
+ assertNonemptyString(fieldValue, `${label}.page.${field}`);
153
+ }
154
+ for (const [field, fieldValue] of Object.entries(pair.template)) {
155
+ assertNonemptyString(fieldValue, `${label}.template.${field}`);
156
+ }
157
+ if (pair.compatibility.basis !== 'declared-source-pair' ||
158
+ pair.compatibility.relationship !== 'opaque-structural-match') {
159
+ throw new TypeError(`${label}.compatibility is unsupported`);
160
+ }
161
+ const pageVariantId = pair.page.variantId;
162
+ const templateVariantId = pair.template.variantId;
163
+ if (!entries.has(pageVariantId) || !entries.has(templateVariantId)) {
164
+ throw new TypeError(`${label} must bind exported item variants`);
165
+ }
166
+ if (pageVariantId === templateVariantId) {
167
+ throw new TypeError(`${label} must bind distinct page and template variants`);
168
+ }
169
+ if (pageVariantIds.has(pageVariantId)) {
170
+ throw new TypeError('manifest.landingPageTemplatePairs contains a duplicate page');
171
+ }
172
+ pageVariantIds.add(pageVariantId);
173
+ const sortKey = [
174
+ pair.page.apiName,
175
+ pair.template.requestedTitle,
176
+ pair.template.apiName,
177
+ ].join('\u0000');
178
+ if (sortKey.localeCompare(previous) < 0) {
179
+ throw new TypeError('manifest.landingPageTemplatePairs must be sorted');
180
+ }
181
+ previous = sortKey;
182
+ }
183
+ }
131
184
  function normalizedManifestPath(value) {
132
185
  return value.startsWith('./') ? value.slice(2) : value;
133
186
  }