sf-plugin-cms 0.5.0 → 0.6.0
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/README.md +47 -12
- package/lib/commands/cms/export/workspace.d.ts +2 -0
- package/lib/commands/cms/export/workspace.js +58 -5
- package/lib/commands/cms/export/workspace.js.map +1 -1
- package/lib/commands/cms/import/workspace.d.ts +1 -1
- package/lib/commands/cms/import/workspace.js +2 -2
- package/lib/commands/cms/import/workspace.js.map +1 -1
- package/lib/contracts/workspace-export.d.ts +18 -0
- package/lib/contracts/workspace-export.js +53 -0
- package/lib/contracts/workspace-export.js.map +1 -1
- package/lib/contracts/workspace-import.d.ts +1 -0
- package/lib/contracts/workspace-import.js +13 -1
- package/lib/contracts/workspace-import.js.map +1 -1
- package/lib/services/cms-prerequisite-lookup.d.ts +16 -0
- package/lib/services/cms-prerequisite-lookup.js +89 -0
- package/lib/services/cms-prerequisite-lookup.js.map +1 -0
- package/lib/services/content-key.d.ts +9 -0
- package/lib/services/content-key.js +15 -0
- package/lib/services/content-key.js.map +1 -0
- package/lib/services/email-fragment.js +5 -1
- package/lib/services/email-fragment.js.map +1 -1
- package/lib/services/export-workspace.d.ts +2 -0
- package/lib/services/export-workspace.js +104 -47
- package/lib/services/export-workspace.js.map +1 -1
- package/lib/services/image-import.js +3 -7
- package/lib/services/image-import.js.map +1 -1
- package/lib/services/import-identities.js +5 -1
- package/lib/services/import-identities.js.map +1 -1
- package/lib/services/import-workspace.d.ts +48 -1
- package/lib/services/import-workspace.js +142 -19
- package/lib/services/import-workspace.js.map +1 -1
- package/lib/services/landing-page-pair-export.d.ts +31 -0
- package/lib/services/landing-page-pair-export.js +122 -0
- package/lib/services/landing-page-pair-export.js.map +1 -0
- package/lib/services/landing-page-template.d.ts +12 -2
- package/lib/services/landing-page-template.js +25 -74
- package/lib/services/landing-page-template.js.map +1 -1
- package/lib/services/landing-page.d.ts +45 -1
- package/lib/services/landing-page.js +241 -3
- package/lib/services/landing-page.js.map +1 -1
- package/lib/services/variant-identity.d.ts +14 -0
- package/lib/services/variant-identity.js +24 -0
- package/lib/services/variant-identity.js.map +1 -1
- package/lib/services/web-fragment.d.ts +12 -6
- package/lib/services/web-fragment.js +60 -19
- package/lib/services/web-fragment.js.map +1 -1
- package/messages/cms.export.workspace.md +20 -0
- package/messages/cms.import.workspace.md +6 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ Safely plan or apply a create-only import into a CMS workspace.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Validates the complete source workspace export locally before any org request, selects one destination workspace by exact ID or exact case-sensitive name, and defaults to a non-mutating dry run. The default profile checks each planned source content key for destination existence, but complete server conflict validation and API-name/URL-name availability are not established; named default-profile apply remains blocked. --native-copy-map instead selects bounded native raw-HTML email/template copies with fresh names and server-generated keys. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir to create content.
|
|
7
|
+
Validates the complete source workspace export locally before any org request, selects one destination workspace by exact ID or exact case-sensitive name, and defaults to a non-mutating dry run. The default profile checks each planned source content key for destination existence, but complete server conflict validation and API-name/URL-name availability are not established; named default-profile apply remains blocked. --native-copy-map instead selects bounded native raw-HTML email/template copies with fresh names and server-generated keys. --landing-page-map consumes paired landing-page/template exports, resolves the destination Draft template plus image and Data Graph prerequisites during preflight, and repeats immutable resolution immediately before CREATE. Source template resolution is title-first; canonical package identity and normalized body hashes are compatibility evidence, not historical provenance. Native and edited HTML is not resolved, rewritten, sanitized, or scanned through Phase 7. Pass --apply with a new --report-dir to create content.
|
|
8
8
|
|
|
9
9
|
# examples
|
|
10
10
|
|
|
@@ -68,9 +68,13 @@ JSON array selecting exact typed cms/emailFragment API names with fresh target c
|
|
|
68
68
|
|
|
69
69
|
Verified HTML-only companion for --native-copy-map. Requires the unchanged --source-dir baseline; opaque rawHtml is not dependency-resolved, sanitized, or scanned through Phase 7.
|
|
70
70
|
|
|
71
|
+
# flags.landing-page-map.summary
|
|
72
|
+
|
|
73
|
+
JSON array selecting paired cms/landingPage sources, fresh page identities, an exact Draft destination template selector, and explicit image/Data Graph prerequisite mappings. The source pair is title-first; canonical package identity proves compatibility, not provenance.
|
|
74
|
+
|
|
71
75
|
# flags.apply.summary
|
|
72
76
|
|
|
73
|
-
Create the planned content after local validation and the profile's bounded preflight checks pass. Dry-run does not establish full conflict or apply readiness.
|
|
77
|
+
Create the planned content after local validation and the profile's bounded preflight checks pass. Landing-page apply writes the initial journal before mutation, then re-resolves every prerequisite and rebuilds the request from immutable source baselines. Dry-run writes no report and does not establish full conflict or apply readiness.
|
|
74
78
|
|
|
75
79
|
# flags.allow-partial.summary
|
|
76
80
|
|