@salesforce/b2c-tooling-sdk 1.3.2 → 1.5.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.
Files changed (109) hide show
  1. package/data/xsd/abtest.xsd +14 -1
  2. package/data/xsd/bmext.xsd +18 -0
  3. package/data/xsd/commercefeaturestate.xsd +101 -0
  4. package/data/xsd/index.json +10 -2
  5. package/data/xsd/library.xsd +33 -0
  6. package/data/xsd/order.xsd +2 -0
  7. package/data/xsd/pagemetatag.xsd +1 -0
  8. package/data/xsd/search2.xsd +39 -0
  9. package/data/xsd/sort.xsd +31 -1
  10. package/data/xsd/storefronts.xsd +104 -0
  11. package/dist/cjs/cli/lifecycle.d.ts +1 -1
  12. package/dist/cjs/cli/lifecycle.js.map +1 -1
  13. package/dist/cjs/index.d.ts +2 -0
  14. package/dist/cjs/index.js +2 -0
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/operations/cap/index.d.ts +56 -0
  17. package/dist/cjs/operations/cap/index.js +57 -0
  18. package/dist/cjs/operations/cap/index.js.map +1 -0
  19. package/dist/cjs/operations/cap/install.d.ts +53 -0
  20. package/dist/cjs/operations/cap/install.js +181 -0
  21. package/dist/cjs/operations/cap/install.js.map +1 -0
  22. package/dist/cjs/operations/cap/list.d.ts +92 -0
  23. package/dist/cjs/operations/cap/list.js +230 -0
  24. package/dist/cjs/operations/cap/list.js.map +1 -0
  25. package/dist/cjs/operations/cap/package.d.ts +39 -0
  26. package/dist/cjs/operations/cap/package.js +77 -0
  27. package/dist/cjs/operations/cap/package.js.map +1 -0
  28. package/dist/cjs/operations/cap/pull.d.ts +21 -0
  29. package/dist/cjs/operations/cap/pull.js +77 -0
  30. package/dist/cjs/operations/cap/pull.js.map +1 -0
  31. package/dist/cjs/operations/cap/uninstall.d.ts +46 -0
  32. package/dist/cjs/operations/cap/uninstall.js +87 -0
  33. package/dist/cjs/operations/cap/uninstall.js.map +1 -0
  34. package/dist/cjs/operations/cap/validate.d.ts +47 -0
  35. package/dist/cjs/operations/cap/validate.js +235 -0
  36. package/dist/cjs/operations/cap/validate.js.map +1 -0
  37. package/dist/cjs/operations/code/deploy.d.ts +17 -1
  38. package/dist/cjs/operations/code/deploy.js +21 -2
  39. package/dist/cjs/operations/code/deploy.js.map +1 -1
  40. package/dist/cjs/operations/code/download.d.ts +66 -0
  41. package/dist/cjs/operations/code/download.js +180 -0
  42. package/dist/cjs/operations/code/download.js.map +1 -0
  43. package/dist/cjs/operations/code/index.d.ts +7 -1
  44. package/dist/cjs/operations/code/index.js +6 -0
  45. package/dist/cjs/operations/code/index.js.map +1 -1
  46. package/dist/cjs/operations/jobs/site-archive.d.ts +1 -0
  47. package/dist/cjs/operations/jobs/site-archive.js +30 -39
  48. package/dist/cjs/operations/jobs/site-archive.js.map +1 -1
  49. package/dist/cjs/operations/util/zip.d.ts +5 -0
  50. package/dist/cjs/operations/util/zip.js +25 -0
  51. package/dist/cjs/operations/util/zip.js.map +1 -0
  52. package/dist/cjs/plugins/loader.js +6 -1
  53. package/dist/cjs/plugins/loader.js.map +1 -1
  54. package/dist/cjs/skills/github.js +143 -49
  55. package/dist/cjs/skills/github.js.map +1 -1
  56. package/dist/cjs/skills/installer.d.ts +1 -0
  57. package/dist/cjs/skills/installer.js.map +1 -1
  58. package/dist/cjs/telemetry/index.d.ts +8 -0
  59. package/dist/cjs/telemetry/index.js.map +1 -1
  60. package/dist/esm/cli/lifecycle.d.ts +1 -1
  61. package/dist/esm/cli/lifecycle.js.map +1 -1
  62. package/dist/esm/index.d.ts +2 -0
  63. package/dist/esm/index.js +2 -0
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/operations/cap/index.d.ts +56 -0
  66. package/dist/esm/operations/cap/index.js +57 -0
  67. package/dist/esm/operations/cap/index.js.map +1 -0
  68. package/dist/esm/operations/cap/install.d.ts +53 -0
  69. package/dist/esm/operations/cap/install.js +183 -0
  70. package/dist/esm/operations/cap/install.js.map +1 -0
  71. package/dist/esm/operations/cap/list.d.ts +92 -0
  72. package/dist/esm/operations/cap/list.js +231 -0
  73. package/dist/esm/operations/cap/list.js.map +1 -0
  74. package/dist/esm/operations/cap/package.d.ts +39 -0
  75. package/dist/esm/operations/cap/package.js +78 -0
  76. package/dist/esm/operations/cap/package.js.map +1 -0
  77. package/dist/esm/operations/cap/pull.d.ts +21 -0
  78. package/dist/esm/operations/cap/pull.js +78 -0
  79. package/dist/esm/operations/cap/pull.js.map +1 -0
  80. package/dist/esm/operations/cap/uninstall.d.ts +46 -0
  81. package/dist/esm/operations/cap/uninstall.js +98 -0
  82. package/dist/esm/operations/cap/uninstall.js.map +1 -0
  83. package/dist/esm/operations/cap/validate.d.ts +47 -0
  84. package/dist/esm/operations/cap/validate.js +235 -0
  85. package/dist/esm/operations/cap/validate.js.map +1 -0
  86. package/dist/esm/operations/code/deploy.d.ts +17 -1
  87. package/dist/esm/operations/code/deploy.js +21 -2
  88. package/dist/esm/operations/code/deploy.js.map +1 -1
  89. package/dist/esm/operations/code/download.d.ts +66 -0
  90. package/dist/esm/operations/code/download.js +180 -0
  91. package/dist/esm/operations/code/download.js.map +1 -0
  92. package/dist/esm/operations/code/index.d.ts +7 -1
  93. package/dist/esm/operations/code/index.js +6 -0
  94. package/dist/esm/operations/code/index.js.map +1 -1
  95. package/dist/esm/operations/jobs/site-archive.d.ts +1 -0
  96. package/dist/esm/operations/jobs/site-archive.js +30 -39
  97. package/dist/esm/operations/jobs/site-archive.js.map +1 -1
  98. package/dist/esm/operations/util/zip.d.ts +5 -0
  99. package/dist/esm/operations/util/zip.js +26 -0
  100. package/dist/esm/operations/util/zip.js.map +1 -0
  101. package/dist/esm/plugins/loader.js +6 -1
  102. package/dist/esm/plugins/loader.js.map +1 -1
  103. package/dist/esm/skills/github.js +143 -49
  104. package/dist/esm/skills/github.js.map +1 -1
  105. package/dist/esm/skills/installer.d.ts +1 -0
  106. package/dist/esm/skills/installer.js.map +1 -1
  107. package/dist/esm/telemetry/index.d.ts +8 -0
  108. package/dist/esm/telemetry/index.js.map +1 -1
  109. package/package.json +11 -1
@@ -170,6 +170,7 @@
170
170
  <xsd:element name="slot-configuration" type="ABTestSegmentSlotConfiguration" minOccurs="0" maxOccurs="unbounded" />
171
171
  <xsd:element name="sorting-rule" type="ABTestSegmentSortingRule" minOccurs="0" maxOccurs="unbounded" />
172
172
  <xsd:element name="keyword-search-sorting-rule" type="ABTestSegmentKeywordSearchSortingRule" minOccurs="0" maxOccurs="unbounded" />
173
+ <xsd:element name="preference" type="ABTestSegmentPreference" minOccurs="0" maxOccurs="unbounded" />
173
174
  </xsd:sequence>
174
175
  </xsd:complexType>
175
176
 
@@ -199,6 +200,11 @@
199
200
  <xsd:attribute name="rule-context" type="Context" use="optional" default="site" />
200
201
  </xsd:complexType>
201
202
 
203
+ <xsd:complexType name="ABTestSegmentPreference" mixed="false">
204
+ <xsd:attribute name="preference-name" type="Generic.NonEmptyString.256" use="required" />
205
+ <xsd:attribute name="preference-value" type="PreferenceValue" use="required" />
206
+ </xsd:complexType>
207
+
202
208
  <xsd:complexType name="Notification">
203
209
  <xsd:sequence>
204
210
  <xsd:element name="email-to" type="simpleType.Email" minOccurs="0" maxOccurs="10" />
@@ -256,6 +262,13 @@
256
262
  </xsd:restriction>
257
263
  </xsd:simpleType>
258
264
 
265
+ <xsd:simpleType name="PreferenceValue">
266
+ <xsd:restriction base="xsd:string">
267
+ <xsd:enumeration value="ENABLED" />
268
+ <xsd:enumeration value="DISABLED" />
269
+ </xsd:restriction>
270
+ </xsd:simpleType>
271
+
259
272
  <xsd:simpleType name="Generic.Word.40">
260
273
  <xsd:restriction base="Generic.String">
261
274
  <xsd:minLength value="1" />
@@ -344,4 +357,4 @@
344
357
  </xsd:restriction>
345
358
  </xsd:simpleType>
346
359
 
347
- </xsd:schema>
360
+ </xsd:schema>
@@ -57,6 +57,11 @@
57
57
  <xsd:documentation>Please note: This element is NOT supported for custom menu actions.</xsd:documentation>
58
58
  </xsd:annotation>
59
59
  </xsd:element>
60
+ <xsd:element ref="scapis" minOccurs="0">
61
+ <xsd:annotation>
62
+ <xsd:documentation>SCAPI paths for BM module permissions. Please note: This element is NOT supported for custom menu actions.</xsd:documentation>
63
+ </xsd:annotation>
64
+ </xsd:element>
60
65
  <xsd:element name="required-features" type="complexType.Features" minOccurs="0" maxOccurs="1">
61
66
  <xsd:annotation>
62
67
  <xsd:documentation>Please note: This element is NOT supported for custom menu actions.</xsd:documentation>
@@ -168,6 +173,19 @@
168
173
  <xsd:attribute name="methods" type="ApiMethods" use="required"/>
169
174
  </xsd:complexType>
170
175
  </xsd:element>
176
+ <xsd:element name="scapis">
177
+ <xsd:complexType mixed="false">
178
+ <xsd:sequence>
179
+ <xsd:element ref="scapi" minOccurs="0" maxOccurs="unbounded"/>
180
+ </xsd:sequence>
181
+ </xsd:complexType>
182
+ </xsd:element>
183
+ <xsd:element name="scapi">
184
+ <xsd:complexType mixed="false">
185
+ <xsd:attribute name="path" type="xsd:string" use="required"/>
186
+ <xsd:attribute name="methods" type="ApiMethods" use="required"/>
187
+ </xsd:complexType>
188
+ </xsd:element>
171
189
  <xsd:element name="menuactions">
172
190
  <xsd:complexType mixed="false">
173
191
  <xsd:sequence>
@@ -0,0 +1,101 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns="http://www.demandware.com/xml/impex/commercefeaturestate/2026-03-06"
3
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="http://www.demandware.com/xml/impex/commercefeaturestate/2026-03-06"
5
+ elementFormDefault="qualified">
6
+
7
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd" />
8
+
9
+ <!-- root element -->
10
+ <xsd:element name="commerce-feature-states" type="complexType.CommerceFeatureStates" />
11
+
12
+ <xsd:complexType name="complexType.CommerceFeatureStates" mixed="false">
13
+ <xsd:sequence>
14
+ <xsd:element name="commerce-feature-state" type="complexType.CommerceFeatureState" minOccurs="0" maxOccurs="unbounded" />
15
+ </xsd:sequence>
16
+ </xsd:complexType>
17
+
18
+ <xsd:complexType name="complexType.CommerceFeatureState" mixed="false">
19
+ <xsd:sequence>
20
+ <xsd:element name="feature-type" type="simpleType.FeatureType" />
21
+ <xsd:element name="feature-source" type="simpleType.Generic.String.64" />
22
+ <xsd:element name="feature-domain" type="simpleType.Generic.String.128" />
23
+ <xsd:element name="install-status" type="simpleType.InstallStatus" />
24
+ <xsd:element name="config-status" type="simpleType.ConfigStatus" />
25
+ <xsd:element name="feature-version-id" type="simpleType.Generic.String.128" minOccurs="0" />
26
+ <xsd:element name="installed-at" type="xsd:dateTime" minOccurs="0" />
27
+ <xsd:element name="uninstalled-at" type="xsd:dateTime" minOccurs="0" />
28
+ <xsd:element name="configured-at" type="xsd:dateTime" minOccurs="0" />
29
+ <xsd:element name="unconfigured-at" type="xsd:dateTime" minOccurs="0" />
30
+ <xsd:element name="config-tasks" type="simpleType.Generic.String" minOccurs="0" />
31
+ <xsd:element name="installation-metadata" type="simpleType.Generic.String" minOccurs="0" />
32
+ </xsd:sequence>
33
+ <xsd:attribute name="site-id" type="simpleType.Generic.NonEmptyString.256" use="required" />
34
+ <xsd:attribute name="feature-name" type="simpleType.Generic.NonEmptyString.256" use="required" />
35
+ </xsd:complexType>
36
+
37
+ <!-- Enum Types -->
38
+
39
+ <xsd:simpleType name="simpleType.FeatureType">
40
+ <xsd:restriction base="xsd:string">
41
+ <xsd:enumeration value="NATIVE_APP" />
42
+ <xsd:enumeration value="ISV_APP" />
43
+ <xsd:enumeration value="NATIVE_FEATURE" />
44
+ <xsd:enumeration value="CUSTOM_FEATURE" />
45
+ </xsd:restriction>
46
+ </xsd:simpleType>
47
+
48
+ <!-- Intentionally exclude INSTALLING and UNINSTALLING to prevent intermediate states from being
49
+ imported/exported. -->
50
+ <xsd:simpleType name="simpleType.InstallStatus">
51
+ <xsd:restriction base="xsd:string">
52
+ <xsd:enumeration value="INSTALLED" />
53
+ <xsd:enumeration value="INSTALL_FAILED" />
54
+ <xsd:enumeration value="N_A" />
55
+ <xsd:enumeration value="UNINSTALLED" />
56
+ <xsd:enumeration value="UNINSTALL_FAILED" />
57
+ </xsd:restriction>
58
+ </xsd:simpleType>
59
+
60
+ <xsd:simpleType name="simpleType.ConfigStatus">
61
+ <xsd:restriction base="xsd:string">
62
+ <xsd:enumeration value="NOT_CONFIGURED" />
63
+ <xsd:enumeration value="CONFIGURING" />
64
+ <xsd:enumeration value="CONFIGURED" />
65
+ <xsd:enumeration value="CONFIGURATION_FAILED" />
66
+ </xsd:restriction>
67
+ </xsd:simpleType>
68
+
69
+ <!-- Generic String Types -->
70
+
71
+ <xsd:simpleType name="simpleType.Generic.String">
72
+ <xsd:restriction base="xsd:string" />
73
+ </xsd:simpleType>
74
+
75
+ <xsd:simpleType name="simpleType.Generic.String.64">
76
+ <xsd:restriction base="simpleType.Generic.String">
77
+ <xsd:maxLength value="64" />
78
+ </xsd:restriction>
79
+ </xsd:simpleType>
80
+
81
+ <xsd:simpleType name="simpleType.Generic.String.128">
82
+ <xsd:restriction base="simpleType.Generic.String">
83
+ <xsd:maxLength value="128" />
84
+ </xsd:restriction>
85
+ </xsd:simpleType>
86
+
87
+ <xsd:simpleType name="simpleType.Generic.String.256">
88
+ <xsd:restriction base="simpleType.Generic.String">
89
+ <xsd:maxLength value="256" />
90
+ </xsd:restriction>
91
+ </xsd:simpleType>
92
+
93
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.256">
94
+ <xsd:restriction base="simpleType.Generic.String">
95
+ <xsd:minLength value="1" />
96
+ <xsd:maxLength value="256" />
97
+ <xsd:pattern value="\S|(\S(.*)\S)" />
98
+ </xsd:restriction>
99
+ </xsd:simpleType>
100
+
101
+ </xsd:schema>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "generatedAt": "2026-01-10T22:14:13.492Z",
3
+ "generatedAt": "2026-04-21T18:00:00.000Z",
4
4
  "entries": [
5
5
  {
6
6
  "id": "abtest",
@@ -26,6 +26,10 @@
26
26
  "id": "catalog",
27
27
  "filePath": "catalog.xsd"
28
28
  },
29
+ {
30
+ "id": "commercefeaturestate",
31
+ "filePath": "commercefeaturestate.xsd"
32
+ },
29
33
  {
30
34
  "id": "coupon",
31
35
  "filePath": "coupon.xsd"
@@ -206,6 +210,10 @@
206
210
  "id": "store",
207
211
  "filePath": "store.xsd"
208
212
  },
213
+ {
214
+ "id": "storefronts",
215
+ "filePath": "storefronts.xsd"
216
+ },
209
217
  {
210
218
  "id": "tax",
211
219
  "filePath": "tax.xsd"
@@ -219,4 +227,4 @@
219
227
  "filePath": "xml.xsd"
220
228
  }
221
229
  ]
222
- }
230
+ }
@@ -163,6 +163,14 @@
163
163
  </xsd:documentation>
164
164
  </xsd:annotation>
165
165
  </xsd:element>
166
+ <xsd:element name="content-variant-assignments" type="complexType.Content.ContentVariantAssignments" minOccurs="0" maxOccurs="1">
167
+ <xsd:annotation>
168
+ <xsd:documentation>
169
+ The content-variant-assignments can only be set for default content. Each default content can have
170
+ multiple variant content assigned in a specific order.
171
+ </xsd:documentation>
172
+ </xsd:annotation>
173
+ </xsd:element>
166
174
  <xsd:element name="sitemap-included-flag" type="sharedType.SiteSpecificBoolean" minOccurs="0" maxOccurs="unbounded" nillable="true">
167
175
  <xsd:annotation>
168
176
  <xsd:documentation>
@@ -254,6 +262,31 @@
254
262
  <xsd:attribute name="object-type" type="simpleType.AssignedObjectType" use="required" />
255
263
  </xsd:complexType>
256
264
 
265
+ <!-- ContentVariantAssignment -->
266
+ <xsd:complexType name="complexType.Content.ContentVariantAssignments" mixed="false">
267
+ <xsd:annotation>
268
+ <xsd:documentation>
269
+ These assignments represent variant content linked to a default content. Each default content can have
270
+ multiple variant content in a specific order.
271
+ </xsd:documentation>
272
+ </xsd:annotation>
273
+ <xsd:sequence>
274
+ <xsd:element name="content-variant-assignment" type="complexType.Content.ContentVariantAssignment" minOccurs="0" maxOccurs="unbounded" />
275
+ </xsd:sequence>
276
+ </xsd:complexType>
277
+
278
+ <xsd:complexType name="complexType.Content.ContentVariantAssignment" mixed="false">
279
+ <xsd:annotation>
280
+ <xsd:documentation>
281
+ Represents a variant content assignment with position for ordering.
282
+ </xsd:documentation>
283
+ </xsd:annotation>
284
+ <xsd:all>
285
+ <xsd:element name="position" type="xsd:double" minOccurs="0" maxOccurs="1" />
286
+ </xsd:all>
287
+ <xsd:attribute name="content-id" type="simpleType.Generic.NonEmptyString.256" use="required" />
288
+ </xsd:complexType>
289
+
257
290
  <xsd:simpleType name="simpleType.AssignedObjectType">
258
291
  <xsd:restriction base="xsd:string">
259
292
  <xsd:enumeration value="category" />
@@ -1197,6 +1197,8 @@
1197
1197
  <xsd:enumeration value="Snapchat" />
1198
1198
  <xsd:enumeration value="WhatsApp" />
1199
1199
  <xsd:enumeration value="YouTube" />
1200
+ <xsd:enumeration value="ChatGPT" />
1201
+ <xsd:enumeration value="Gemini" />
1200
1202
  </xsd:restriction>
1201
1203
  </xsd:simpleType>
1202
1204
 
@@ -78,6 +78,7 @@
78
78
  <xsd:enumeration value="name" />
79
79
  <xsd:enumeration value="property" />
80
80
  <xsd:enumeration value="title" />
81
+ <xsd:enumeration value="jsonld" />
81
82
  </xsd:restriction>
82
83
  </xsd:simpleType>
83
84
 
@@ -21,6 +21,7 @@
21
21
  <xsd:element name="suggestion-list" type="SuggestionList" minOccurs="0" maxOccurs="unbounded"/>
22
22
  <xsd:element name="compound-word-list" type="CompoundWordList" minOccurs="0" maxOccurs="unbounded"/>
23
23
  <xsd:element name="common-phrase-list" type="CommonPhraseList" minOccurs="0" maxOccurs="unbounded"/>
24
+ <xsd:element name="user-dictionaries" type="UserDictionaries" minOccurs="0" maxOccurs="1"/>
24
25
  <xsd:element name="category-exclusion-list" type="CategoryExclusionList" minOccurs="0"
25
26
  maxOccurs="unbounded"/>
26
27
  <xsd:element name="stemming-exception-list" type="StemmingExceptionList" minOccurs="0"
@@ -40,6 +41,7 @@
40
41
  <xsd:element name="suggestion-list" type="SuggestionList"/>
41
42
  <xsd:element name="compound-word-list" type="CompoundWordList"/>
42
43
  <xsd:element name="common-phrase-list" type="CommonPhraseList"/>
44
+ <xsd:element name="user-dictionaries" type="UserDictionaries"/>
43
45
  <xsd:element name="category-exclusion-list" type="CategoryExclusionList"/>
44
46
  <xsd:element name="stemming-exception-list" type="StemmingExceptionList"/>
45
47
  <xsd:element name="index-settings" type="IndexingSettings"/>
@@ -252,6 +254,29 @@
252
254
  </xsd:simpleContent>
253
255
  </xsd:complexType>
254
256
 
257
+ <xsd:complexType name="UserDictionaries">
258
+ <xsd:sequence>
259
+ <xsd:element name="japanese-user-dictionary" type="JapaneseUserDictionary" minOccurs="0" maxOccurs="unbounded"/>
260
+ </xsd:sequence>
261
+ </xsd:complexType>
262
+
263
+ <xsd:complexType name="JapaneseUserDictionary">
264
+ <xsd:sequence>
265
+ <xsd:element name="user-dictionary-entry" type="JapaneseUserDictionaryEntry" minOccurs="0" maxOccurs="unbounded"/>
266
+ </xsd:sequence>
267
+ <xsd:attribute ref="xml:lang" use="required"/>
268
+ <xsd:attribute name="mode" type="ImportMode" use="optional"/>
269
+ </xsd:complexType>
270
+
271
+ <xsd:complexType name="JapaneseUserDictionaryEntry">
272
+ <xsd:sequence>
273
+ <xsd:element name="surface-form" type="Generic.String.384" minOccurs="1" maxOccurs="1"/>
274
+ <xsd:element name="segmentation" type="Generic.String.384" minOccurs="1" maxOccurs="1"/>
275
+ <xsd:element name="furigana" type="Generic.String.384" minOccurs="1" maxOccurs="1"/>
276
+ <xsd:element name="part-of-speech" type="Generic.String.128" minOccurs="1" maxOccurs="1"/>
277
+ </xsd:sequence>
278
+ </xsd:complexType>
279
+
255
280
  <xsd:complexType name="CategoryExclusionList">
256
281
  <xsd:sequence>
257
282
  <xsd:element name="category-exclusions" type="CategoryExclusions" minOccurs="0" maxOccurs="unbounded"/>
@@ -371,6 +396,20 @@
371
396
  </xsd:restriction>
372
397
  </xsd:simpleType>
373
398
 
399
+ <xsd:simpleType name="Generic.String.384">
400
+ <xsd:restriction base="Generic.String">
401
+ <xsd:minLength value="0"/>
402
+ <xsd:maxLength value="384"/>
403
+ </xsd:restriction>
404
+ </xsd:simpleType>
405
+
406
+ <xsd:simpleType name="Generic.String.128">
407
+ <xsd:restriction base="Generic.String">
408
+ <xsd:minLength value="0"/>
409
+ <xsd:maxLength value="128"/>
410
+ </xsd:restriction>
411
+ </xsd:simpleType>
412
+
374
413
  <xsd:simpleType name="Generic.String.4000">
375
414
  <xsd:restriction base="Generic.String">
376
415
  <xsd:minLength value="0"/>
package/data/xsd/sort.xsd CHANGED
@@ -20,6 +20,7 @@
20
20
  <xsd:element name="sorting-options" type="SortingOptions" minOccurs="0" maxOccurs="1" />
21
21
  <xsd:element name="keyword-search-sorting-rule-assignment" type="KeywordSearchSortingRuleAssignment" minOccurs="0" maxOccurs="unbounded" />
22
22
  <xsd:element name="keyword-search-sorting-rule-campaign-assignment" type="KeywordSearchSortingRuleCampaignAssignment" minOccurs="0" maxOccurs="unbounded" />
23
+ <xsd:element name="boostable-attribute" type="BoostableAttribute" minOccurs="0" maxOccurs="100" />
23
24
  <xsd:element name="boost-bury-rule" type="BoostBuryRule" minOccurs="0" maxOccurs="1000" />
24
25
  </xsd:sequence>
25
26
  </xsd:complexType>
@@ -33,6 +34,7 @@
33
34
  <xsd:element name="sorting-options" type="SortingOptions" />
34
35
  <xsd:element name="keyword-search-sorting-rule-assignment" type="KeywordSearchSortingRuleAssignment" />
35
36
  <xsd:element name="keyword-search-sorting-rule-campaign-assignment" type="KeywordSearchSortingRuleCampaignAssignment" />
37
+ <xsd:element name="boostable-attribute" type="BoostableAttribute" />
36
38
  <xsd:element name="boost-bury-rule" type="BoostBuryRule" />
37
39
 
38
40
  <xsd:complexType name="DynamicAttribute">
@@ -266,6 +268,12 @@
266
268
  </xsd:restriction>
267
269
  </xsd:simpleType>
268
270
 
271
+ <xsd:complexType name="BoostableAttribute">
272
+ <xsd:attribute name="attribute-id" type="Generic.NonEmptyString.256" use="required" />
273
+ <xsd:attribute name="system" type="xsd:boolean" use="required" />
274
+ <xsd:attribute name="mode" type="ImportMode" use="optional" />
275
+ </xsd:complexType>
276
+
269
277
  <xsd:complexType name="BoostBuryRule">
270
278
  <xsd:sequence>
271
279
  <xsd:element name="description" type="Generic.String.4000" minOccurs="0" maxOccurs="1" />
@@ -275,6 +283,7 @@
275
283
  <xsd:attribute name="rule-id" type="Generic.NonEmptyString.256" use="required" />
276
284
  <xsd:attribute name="active-flag" type="xsd:boolean" use="required" />
277
285
  <xsd:attribute name="factor" type="xsd:int" use="required" />
286
+ <xsd:attribute name="target-logical-operator" type="BoostBuryRuleTargetLogicalOperator" use="optional" default="AND" />
278
287
  <xsd:attribute name="mode" type="ImportMode" use="optional" />
279
288
  </xsd:complexType>
280
289
 
@@ -285,9 +294,23 @@
285
294
 
286
295
  <xsd:complexType name="BoostBuryTarget">
287
296
  <xsd:attribute name="attribute-name" type="Generic.NonEmptyString.256" use="required" />
288
- <xsd:attribute name="attribute-value" type="Generic.NonEmptyString.256" use="required" />
297
+ <xsd:attribute name="attribute-value" type="Generic.NonEmptyString.256" use="optional" />
298
+ <xsd:attribute name="operator" type="BoostBuryTargetOperator" use="optional"/>
289
299
  </xsd:complexType>
290
300
 
301
+ <xsd:simpleType name="BoostBuryTargetOperator">
302
+ <xsd:restriction base="xsd:string">
303
+ <xsd:enumeration value="is equal" />
304
+ <xsd:enumeration value="is not equal" />
305
+ <xsd:enumeration value="contains" />
306
+ <xsd:enumeration value="starts with" />
307
+ <xsd:enumeration value="is greater than" />
308
+ <xsd:enumeration value="is less than" />
309
+ <xsd:enumeration value="is defined" />
310
+ <xsd:enumeration value="is not defined" />
311
+ </xsd:restriction>
312
+ </xsd:simpleType>
313
+
291
314
  <xsd:simpleType name="BoostBuryQualifierType">
292
315
  <xsd:restriction base="xsd:string">
293
316
  <xsd:enumeration value="Category Scope" />
@@ -295,4 +318,11 @@
295
318
  </xsd:restriction>
296
319
  </xsd:simpleType>
297
320
 
321
+ <xsd:simpleType name="BoostBuryRuleTargetLogicalOperator">
322
+ <xsd:restriction base="xsd:string">
323
+ <xsd:enumeration value="AND" />
324
+ <xsd:enumeration value="OR" />
325
+ </xsd:restriction>
326
+ </xsd:simpleType>
327
+
298
328
  </xsd:schema>
@@ -0,0 +1,104 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <xsd:schema
3
+ xmlns="http://www.demandware.com/xml/impex/storefronts/2026-02-23"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
+ targetNamespace="http://www.demandware.com/xml/impex/storefronts/2026-02-23"
6
+ elementFormDefault="qualified"
7
+ attributeFormDefault="unqualified">
8
+
9
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
10
+
11
+ <!-- top-level element -->
12
+ <xsd:element name="storefronts">
13
+ <xsd:complexType>
14
+ <xsd:sequence>
15
+ <xsd:element name="storefront" type="complexType.Storefront" minOccurs="0" maxOccurs="unbounded"/>
16
+ </xsd:sequence>
17
+ </xsd:complexType>
18
+ </xsd:element>
19
+
20
+ <!-- fake top level elements to allow JAXB subsection parsing -->
21
+ <xsd:element name="storefront" type="complexType.Storefront"/>
22
+
23
+ <!-- Storefront -->
24
+ <xsd:complexType name="complexType.Storefront" mixed="false">
25
+ <xsd:sequence>
26
+ <xsd:element name="ecom-site" type="simpleType.Generic.String.48" minOccurs="0" maxOccurs="1"/>
27
+ <xsd:element name="storefront-type" type="simpleType.StorefrontType" minOccurs="1" maxOccurs="1"/>
28
+ <xsd:element name="associated-sites" type="complexType.AssociatedSites" minOccurs="0" maxOccurs="1"/>
29
+ <xsd:element name="user-id" type="simpleType.Generic.String.48" minOccurs="1" maxOccurs="1"/>
30
+ <xsd:element name="org-slug" type="simpleType.Generic.String.64" minOccurs="1" maxOccurs="1"/>
31
+ <xsd:element name="mrt-site" type="simpleType.Generic.String.64" minOccurs="1" maxOccurs="1"/>
32
+ <xsd:element name="scm-repo" type="simpleType.Generic.String.512" minOccurs="0" maxOccurs="1"/>
33
+ <xsd:element name="scm-target" type="simpleType.Generic.String.64" minOccurs="0" maxOccurs="1"/>
34
+ </xsd:sequence>
35
+ <xsd:attribute name="storefront-name" type="simpleType.Generic.NonEmptyString.64" use="required"/>
36
+ <xsd:attribute name="mode" type="simpleType.ImportMode"/>
37
+ </xsd:complexType>
38
+
39
+ <!-- Associated Sites -->
40
+ <xsd:complexType name="complexType.AssociatedSites" mixed="false">
41
+ <xsd:sequence>
42
+ <xsd:element name="ecom-site" type="simpleType.Generic.NonEmptyString.48" minOccurs="0" maxOccurs="100"/>
43
+ </xsd:sequence>
44
+ </xsd:complexType>
45
+
46
+ <!-- Storefront Type enumeration -->
47
+ <xsd:simpleType name="simpleType.StorefrontType">
48
+ <xsd:restriction base="xsd:string">
49
+ <xsd:enumeration value="composable"/>
50
+ <xsd:enumeration value="headless"/>
51
+ </xsd:restriction>
52
+ </xsd:simpleType>
53
+
54
+ <!-- Import Mode -->
55
+ <xsd:simpleType name="simpleType.ImportMode">
56
+ <xsd:restriction base="xsd:string">
57
+ <xsd:enumeration value="delete"/>
58
+ </xsd:restriction>
59
+ </xsd:simpleType>
60
+
61
+ <!-- simple generic types -->
62
+ <xsd:simpleType name="simpleType.Generic.String">
63
+ <xsd:restriction base="xsd:string"/>
64
+ </xsd:simpleType>
65
+
66
+ <xsd:simpleType name="simpleType.Generic.String.48">
67
+ <xsd:restriction base="simpleType.Generic.String">
68
+ <xsd:minLength value="0"/>
69
+ <xsd:maxLength value="48"/>
70
+ </xsd:restriction>
71
+ </xsd:simpleType>
72
+
73
+ <xsd:simpleType name="simpleType.Generic.String.64">
74
+ <xsd:restriction base="simpleType.Generic.String">
75
+ <xsd:minLength value="0"/>
76
+ <xsd:maxLength value="64"/>
77
+ </xsd:restriction>
78
+ </xsd:simpleType>
79
+
80
+ <xsd:simpleType name="simpleType.Generic.String.512">
81
+ <xsd:restriction base="simpleType.Generic.String">
82
+ <xsd:minLength value="0"/>
83
+ <xsd:maxLength value="512"/>
84
+ </xsd:restriction>
85
+ </xsd:simpleType>
86
+
87
+ <!-- Nonempty string with no leading or trailing whitespace -->
88
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.48">
89
+ <xsd:restriction base="simpleType.Generic.String">
90
+ <xsd:minLength value="1"/>
91
+ <xsd:maxLength value="48"/>
92
+ <xsd:pattern value="\S|(\S(.*)\S)"/>
93
+ </xsd:restriction>
94
+ </xsd:simpleType>
95
+
96
+ <xsd:simpleType name="simpleType.Generic.NonEmptyString.64">
97
+ <xsd:restriction base="simpleType.Generic.String">
98
+ <xsd:minLength value="1"/>
99
+ <xsd:maxLength value="64"/>
100
+ <xsd:pattern value="\S|(\S(.*)\S)"/>
101
+ </xsd:restriction>
102
+ </xsd:simpleType>
103
+
104
+ </xsd:schema>
@@ -4,7 +4,7 @@ import type { Logger } from '../logging/index.js';
4
4
  /**
5
5
  * Types of B2C operations that support lifecycle hooks.
6
6
  */
7
- export type B2COperationType = 'job:run' | 'job:import' | 'job:export' | 'code:deploy' | 'code:activate' | 'site-archive:import' | 'site-archive:export';
7
+ export type B2COperationType = 'job:run' | 'job:import' | 'job:export' | 'code:deploy' | 'code:download' | 'code:activate' | 'site-archive:import' | 'site-archive:export' | 'cap:install' | 'cap:uninstall';
8
8
  /**
9
9
  * Context provided to lifecycle hooks for a B2C operation.
10
10
  *
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../src/cli/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAuKvC;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,aAA+B,EAC/B,QAAiC,EACjC,QAAqB;IAErB,OAAO;QACL,aAAa;QACb,WAAW,EAAE,UAAU,EAAE;QACzB,QAAQ;QACR,SAAS,EAAE,IAAI,CAAC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QAAQ,CAAC,IAAI,2BAA2B,KAAK,EAAE,CAAC,CAAC;YAC3F,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;IAC/B,CAAC;CACF"}
@@ -22,6 +22,8 @@ export type { CloneState, WaitForCloneOptions, WaitForClonePollInfo } from './op
22
22
  export { buildCipReportSql, describeCipTable, executeCipReport, getCipReportByName, listCipReports, listCipTables, } from './operations/cip/index.js';
23
23
  export type { CipColumnMetadata, CipDescribeTableOptions, CipDescribeTableResult, CipListTablesOptions, CipListTablesResult, CipReportDefinition, CipReportExecutionOptions, CipReportParamType, CipReportParamDefinition, CipReportQueryExecutor, CipReportQueryResult, CipReportSqlResult, CipTableMetadata, } from './operations/cip/index.js';
24
24
  export { getUser, getUserByLogin, listUsers, createUser, updateUser, deleteUser, purgeUser, resetUser, grantRole, revokeRole, } from './operations/users/index.js';
25
+ export { validateCap, commerceAppInstall, commerceAppUninstall, commerceAppPackage, discoverLocalApps, listInstalledApps, parseCommerceFeatureStatesXml, readManifest, pullCommerceApps, } from './operations/cap/index.js';
26
+ export type { CapValidationResult, CommerceAppManifest, CommerceAppInstallOptions, CommerceAppInstallResult, CommerceAppUninstallOptions, CommerceAppUninstallResult, CommerceAppPackageOptions, CommerceAppPackageResult, CommerceFeatureState, LocalCommerceApp, ListInstalledAppsOptions, ListInstalledAppsResult, PullCommerceAppsOptions, PullCommerceAppsResult, PulledApp, PullSource, } from './operations/cap/index.js';
25
27
  export { getRole, listRoles } from './operations/roles/index.js';
26
28
  export { getOrg, getOrgByName, listOrgs } from './operations/orgs/index.js';
27
29
  export { getSafetyLevel, describeSafetyLevel, checkSafetyViolation, checkLevelViolation, SafetyBlockedError, SafetyConfirmationRequired, SafetyGuard, extractJobIdFromPath, maxSafetyLevel, isValidSafetyLevel, parseSafetyLevelString, resolveEffectiveSafetyConfig, loadGlobalSafetyConfig, isValidSafetyAction, VALID_SAFETY_ACTIONS, withSafetyConfirmation, } from './safety/index.js';
package/dist/cjs/index.js CHANGED
@@ -26,6 +26,8 @@ export { isUuid, isFriendlySandboxId, parseFriendlySandboxId, resolveSandboxId,
26
26
  export { buildCipReportSql, describeCipTable, executeCipReport, getCipReportByName, listCipReports, listCipTables, } from './operations/cip/index.js';
27
27
  // Operations - Users
28
28
  export { getUser, getUserByLogin, listUsers, createUser, updateUser, deleteUser, purgeUser, resetUser, grantRole, revokeRole, } from './operations/users/index.js';
29
+ // Operations - CAP (Commerce App Packages)
30
+ export { validateCap, commerceAppInstall, commerceAppUninstall, commerceAppPackage, discoverLocalApps, listInstalledApps, parseCommerceFeatureStatesXml, readManifest, pullCommerceApps, } from './operations/cap/index.js';
29
31
  // Operations - Roles
30
32
  export { getRole, listRoles } from './operations/roles/index.js';
31
33
  // Operations - Organizations
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAG7G,OAAO;AACP,OAAO,EAAC,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,oBAAoB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAGlH,SAAS;AACT,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAe9G,yCAAyC;AACzC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAiBzB,2BAA2B;AAC3B,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAGhD,UAAU;AACV,OAAO,EACL,YAAY,EACZ,iBAA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BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAI3B,WAAW;AACX,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AAEvB,eAAe;AACf,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Commerce App Package (CAP) operations for B2C Commerce.
3
+ *
4
+ * This module provides functions for validating, packaging, installing, and
5
+ * uninstalling Commerce App Packages (CAPs) on B2C Commerce instances.
6
+ *
7
+ * ## CAP Operations
8
+ *
9
+ * - {@link validateCap} - Validate CAP structure and manifest (local, no instance required)
10
+ * - {@link commerceAppInstall} - Install a CAP via the sfcc-install-commerce-app job
11
+ * - {@link commerceAppUninstall} - Uninstall a CAP via the sfcc-uninstall-commerce-app job
12
+ * - {@link commerceAppPackage} - Package a CAP directory into a distributable .zip
13
+ * - {@link discoverLocalApps} - Discover local CAPs by finding commerce-app.json files
14
+ * - {@link listInstalledApps} - List installed apps on an instance via commerce_feature_states export
15
+ *
16
+ * ## Usage
17
+ *
18
+ * ```typescript
19
+ * import {
20
+ * validateCap,
21
+ * commerceAppInstall,
22
+ * commerceAppUninstall,
23
+ * commerceAppPackage,
24
+ * discoverLocalApps,
25
+ * listInstalledApps,
26
+ * } from '@salesforce/b2c-tooling-sdk/operations/cap';
27
+ *
28
+ * // Validate locally
29
+ * const result = await validateCap('./my-commerce-app');
30
+ * if (!result.valid) console.error(result.errors);
31
+ *
32
+ * // Package for distribution
33
+ * const pkg = await commerceAppPackage('./my-commerce-app');
34
+ *
35
+ * // Install on an instance
36
+ * await commerceAppInstall(instance, './my-commerce-app', { siteId: 'RefArch' });
37
+ *
38
+ * // Uninstall
39
+ * await commerceAppUninstall(instance, 'my-app', 'tax', { siteId: 'RefArch' });
40
+ * ```
41
+ *
42
+ * @module operations/cap
43
+ */
44
+ export { validateCap } from './validate.js';
45
+ export type { CapValidationResult, CommerceAppManifest } from './validate.js';
46
+ export { JobExecutionError } from '../jobs/run.js';
47
+ export { commerceAppInstall, readManifest } from './install.js';
48
+ export type { CommerceAppInstallOptions, CommerceAppInstallResult } from './install.js';
49
+ export { commerceAppUninstall } from './uninstall.js';
50
+ export type { CommerceAppUninstallOptions, CommerceAppUninstallResult } from './uninstall.js';
51
+ export { commerceAppPackage } from './package.js';
52
+ export type { CommerceAppPackageOptions, CommerceAppPackageResult } from './package.js';
53
+ export { discoverLocalApps, listInstalledApps, parseCommerceFeatureStatesXml } from './list.js';
54
+ export { pullCommerceApps } from './pull.js';
55
+ export type { PullCommerceAppsOptions, PullCommerceAppsResult, PulledApp, PullSource } from './pull.js';
56
+ export type { CommerceFeatureState, LocalCommerceApp, ListInstalledAppsOptions, ListInstalledAppsResult, } from './list.js';