@sitecore-content-sdk/core 1.3.0-canary.9 → 1.4.0-canary.2

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 (342) hide show
  1. package/README.md +7 -7
  2. package/dist/cjs/cache-client.js +55 -54
  3. package/dist/cjs/client/constants.js +7 -7
  4. package/dist/cjs/client/edge-proxy.js +24 -22
  5. package/dist/cjs/client/index.js +15 -15
  6. package/dist/cjs/client/models.js +2 -2
  7. package/dist/cjs/client/sitecore-client.js +421 -419
  8. package/dist/cjs/client/utils.js +47 -46
  9. package/dist/cjs/config/define-config.js +194 -193
  10. package/dist/cjs/config/index.js +7 -7
  11. package/dist/cjs/config/models.js +12 -11
  12. package/dist/cjs/config-cli/define-cli-config.js +23 -22
  13. package/dist/cjs/config-cli/index.js +7 -7
  14. package/dist/cjs/config-cli/models.js +8 -7
  15. package/dist/cjs/constants.js +49 -17
  16. package/dist/cjs/debug.js +48 -46
  17. package/dist/cjs/editing/codegen/index.js +14 -9
  18. package/dist/cjs/editing/codegen/preview.js +277 -193
  19. package/dist/cjs/editing/component-layout-service.js +62 -61
  20. package/dist/cjs/editing/design-library.js +183 -126
  21. package/dist/cjs/editing/editing-service.js +75 -74
  22. package/dist/cjs/editing/index.js +33 -27
  23. package/dist/cjs/editing/metadata.js +42 -42
  24. package/dist/cjs/editing/models.js +44 -38
  25. package/dist/cjs/editing/utils.js +108 -90
  26. package/dist/cjs/form/form.js +81 -78
  27. package/dist/cjs/form/index.js +7 -7
  28. package/dist/cjs/graphql-request-client.js +108 -107
  29. package/dist/cjs/i18n/dictionary-service.js +122 -121
  30. package/dist/cjs/i18n/index.js +7 -7
  31. package/dist/cjs/i18n/utils.js +16 -15
  32. package/dist/cjs/index.js +60 -60
  33. package/dist/cjs/layout/content-styles.js +72 -71
  34. package/dist/cjs/layout/index.js +24 -24
  35. package/dist/cjs/layout/layout-service.js +62 -57
  36. package/dist/cjs/layout/models.js +39 -34
  37. package/dist/cjs/layout/themes.js +76 -75
  38. package/dist/cjs/layout/utils.js +117 -110
  39. package/dist/cjs/media/index.js +38 -38
  40. package/dist/cjs/media/media-api.js +100 -96
  41. package/dist/cjs/models.js +2 -2
  42. package/dist/cjs/native-fetcher.js +194 -179
  43. package/dist/cjs/personalize/index.js +15 -15
  44. package/dist/cjs/personalize/layout-personalizer.js +98 -97
  45. package/dist/cjs/personalize/personalize-service.js +98 -94
  46. package/dist/cjs/personalize/utils.js +143 -136
  47. package/dist/cjs/retries.js +43 -42
  48. package/dist/cjs/site/error-pages-service.js +65 -64
  49. package/dist/cjs/site/index.js +26 -26
  50. package/dist/cjs/site/models.js +2 -2
  51. package/dist/cjs/site/redirects-service.js +94 -81
  52. package/dist/cjs/site/robots-service.js +66 -65
  53. package/dist/cjs/site/site-resolver.js +73 -72
  54. package/dist/cjs/site/siteinfo-service.js +84 -80
  55. package/dist/cjs/site/sitemap-xml-service.js +84 -83
  56. package/dist/cjs/site/sitepath-service.js +165 -164
  57. package/dist/cjs/site/utils.js +55 -47
  58. package/dist/cjs/sitecore-service-base.js +36 -36
  59. package/dist/cjs/tools/auth/flow.js +65 -64
  60. package/dist/cjs/tools/auth/index.js +5 -5
  61. package/dist/cjs/tools/auth/models.js +2 -2
  62. package/dist/cjs/tools/auth/tenant-store.js +38 -38
  63. package/dist/cjs/tools/codegen/component-generation.js +52 -50
  64. package/dist/cjs/tools/codegen/extract-files.js +105 -107
  65. package/dist/cjs/tools/codegen/import-map.js +401 -349
  66. package/dist/cjs/tools/codegen/utils.js +418 -418
  67. package/dist/cjs/tools/generate-map.js +2 -2
  68. package/dist/cjs/tools/generateMetadata.js +36 -35
  69. package/dist/cjs/tools/generateSites.js +59 -58
  70. package/dist/cjs/tools/index.js +75 -73
  71. package/dist/cjs/tools/scaffold.js +60 -59
  72. package/dist/cjs/tools/templating/components.js +96 -266
  73. package/dist/cjs/tools/templating/index.js +11 -14
  74. package/dist/cjs/tools/templating/plugins.js +80 -78
  75. package/dist/cjs/tools/templating/utils.js +67 -66
  76. package/dist/cjs/utils/ensurePath.js +20 -20
  77. package/dist/cjs/utils/env.js +28 -27
  78. package/dist/cjs/utils/globalCache.js +55 -0
  79. package/dist/cjs/utils/index.js +26 -21
  80. package/dist/cjs/utils/is-server.js +11 -10
  81. package/dist/cjs/utils/normalize-url.js +5 -5
  82. package/dist/cjs/utils/timeout-promise.js +31 -31
  83. package/dist/cjs/utils/utils.js +254 -229
  84. package/dist/esm/cache-client.js +51 -50
  85. package/dist/esm/client/constants.js +4 -4
  86. package/dist/esm/client/edge-proxy.js +19 -17
  87. package/dist/esm/client/index.js +5 -5
  88. package/dist/esm/client/models.js +1 -1
  89. package/dist/esm/client/sitecore-client.js +414 -412
  90. package/dist/esm/client/utils.js +43 -42
  91. package/dist/esm/config/define-config.js +188 -187
  92. package/dist/esm/config/index.js +2 -2
  93. package/dist/esm/config/models.js +9 -8
  94. package/dist/esm/config-cli/define-cli-config.js +19 -18
  95. package/dist/esm/config-cli/index.js +2 -2
  96. package/dist/esm/config-cli/models.js +5 -4
  97. package/dist/esm/constants.js +46 -14
  98. package/dist/esm/debug.js +41 -39
  99. package/dist/esm/editing/codegen/index.js +1 -1
  100. package/dist/esm/editing/codegen/preview.js +263 -185
  101. package/dist/esm/editing/component-layout-service.js +55 -54
  102. package/dist/esm/editing/design-library.js +171 -117
  103. package/dist/esm/editing/editing-service.js +68 -67
  104. package/dist/esm/editing/index.js +6 -5
  105. package/dist/esm/editing/metadata.js +39 -39
  106. package/dist/esm/editing/models.js +41 -35
  107. package/dist/esm/editing/utils.js +98 -80
  108. package/dist/esm/form/form.js +72 -69
  109. package/dist/esm/form/index.js +1 -1
  110. package/dist/esm/graphql-request-client.js +101 -100
  111. package/dist/esm/i18n/dictionary-service.js +115 -114
  112. package/dist/esm/i18n/index.js +2 -2
  113. package/dist/esm/i18n/utils.js +13 -12
  114. package/dist/esm/index.js +13 -13
  115. package/dist/esm/layout/content-styles.js +64 -63
  116. package/dist/esm/layout/index.js +6 -6
  117. package/dist/esm/layout/layout-service.js +55 -50
  118. package/dist/esm/layout/models.js +36 -31
  119. package/dist/esm/layout/themes.js +71 -70
  120. package/dist/esm/layout/utils.js +109 -102
  121. package/dist/esm/media/index.js +2 -2
  122. package/dist/esm/media/media-api.js +90 -86
  123. package/dist/esm/models.js +1 -1
  124. package/dist/esm/native-fetcher.js +187 -172
  125. package/dist/esm/personalize/index.js +3 -3
  126. package/dist/esm/personalize/layout-personalizer.js +93 -92
  127. package/dist/esm/personalize/personalize-service.js +91 -87
  128. package/dist/esm/personalize/utils.js +135 -128
  129. package/dist/esm/retries.js +39 -38
  130. package/dist/esm/site/error-pages-service.js +58 -57
  131. package/dist/esm/site/index.js +8 -8
  132. package/dist/esm/site/models.js +1 -1
  133. package/dist/esm/site/redirects-service.js +87 -74
  134. package/dist/esm/site/robots-service.js +59 -58
  135. package/dist/esm/site/site-resolver.js +69 -68
  136. package/dist/esm/site/siteinfo-service.js +77 -73
  137. package/dist/esm/site/sitemap-xml-service.js +77 -76
  138. package/dist/esm/site/sitepath-service.js +157 -156
  139. package/dist/esm/site/utils.js +49 -41
  140. package/dist/esm/sitecore-service-base.js +29 -29
  141. package/dist/esm/tools/auth/flow.js +62 -61
  142. package/dist/esm/tools/auth/index.js +1 -1
  143. package/dist/esm/tools/auth/models.js +1 -1
  144. package/dist/esm/tools/auth/tenant-store.js +35 -35
  145. package/dist/esm/tools/codegen/component-generation.js +44 -42
  146. package/dist/esm/tools/codegen/extract-files.js +99 -101
  147. package/dist/esm/tools/codegen/import-map.js +358 -306
  148. package/dist/esm/tools/codegen/utils.js +373 -373
  149. package/dist/esm/tools/generate-map.js +1 -1
  150. package/dist/esm/tools/generateMetadata.js +29 -28
  151. package/dist/esm/tools/generateSites.js +52 -51
  152. package/dist/esm/tools/index.js +28 -27
  153. package/dist/esm/tools/scaffold.js +52 -51
  154. package/dist/esm/tools/templating/components.js +59 -223
  155. package/dist/esm/tools/templating/index.js +3 -3
  156. package/dist/esm/tools/templating/plugins.js +72 -70
  157. package/dist/esm/tools/templating/utils.js +59 -58
  158. package/dist/esm/utils/ensurePath.js +13 -13
  159. package/dist/esm/utils/env.js +24 -23
  160. package/dist/esm/utils/globalCache.js +49 -0
  161. package/dist/esm/utils/index.js +4 -3
  162. package/dist/esm/utils/is-server.js +9 -8
  163. package/dist/esm/utils/normalize-url.js +1 -1
  164. package/dist/esm/utils/timeout-promise.js +28 -28
  165. package/dist/esm/utils/utils.js +238 -213
  166. package/package.json +73 -5
  167. package/types/cache-client.d.ts +68 -64
  168. package/types/cache-client.d.ts.map +1 -0
  169. package/types/client/constants.d.ts +5 -4
  170. package/types/client/constants.d.ts.map +1 -0
  171. package/types/client/edge-proxy.d.ts +18 -15
  172. package/types/client/edge-proxy.d.ts.map +1 -0
  173. package/types/client/index.d.ts +8 -7
  174. package/types/client/index.d.ts.map +1 -0
  175. package/types/client/models.d.ts +21 -19
  176. package/types/client/models.d.ts.map +1 -0
  177. package/types/client/sitecore-client.d.ts +338 -327
  178. package/types/client/sitecore-client.d.ts.map +1 -0
  179. package/types/client/utils.d.ts +15 -9
  180. package/types/client/utils.d.ts.map +1 -0
  181. package/types/config/define-config.d.ts +20 -18
  182. package/types/config/define-config.d.ts.map +1 -0
  183. package/types/config/index.d.ts +3 -2
  184. package/types/config/index.d.ts.map +1 -0
  185. package/types/config/models.d.ts +287 -268
  186. package/types/config/models.d.ts.map +1 -0
  187. package/types/config-cli/define-cli-config.d.ts +9 -7
  188. package/types/config-cli/define-cli-config.d.ts.map +1 -0
  189. package/types/config-cli/index.d.ts +3 -2
  190. package/types/config-cli/index.d.ts.map +1 -0
  191. package/types/config-cli/models.d.ts +6 -4
  192. package/types/config-cli/models.d.ts.map +1 -0
  193. package/types/constants.d.ts +44 -11
  194. package/types/constants.d.ts.map +1 -0
  195. package/types/debug.d.ts +35 -28
  196. package/types/debug.d.ts.map +1 -0
  197. package/types/editing/codegen/index.d.ts +2 -1
  198. package/types/editing/codegen/index.d.ts.map +1 -0
  199. package/types/editing/codegen/preview.d.ts +256 -195
  200. package/types/editing/codegen/preview.d.ts.map +1 -0
  201. package/types/editing/component-layout-service.d.ts +84 -80
  202. package/types/editing/component-layout-service.d.ts.map +1 -0
  203. package/types/editing/design-library.d.ts +111 -63
  204. package/types/editing/design-library.d.ts.map +1 -0
  205. package/types/editing/editing-service.d.ts +72 -62
  206. package/types/editing/editing-service.d.ts.map +1 -0
  207. package/types/editing/index.d.ts +7 -6
  208. package/types/editing/index.d.ts.map +1 -0
  209. package/types/editing/metadata.d.ts +8 -7
  210. package/types/editing/metadata.d.ts.map +1 -0
  211. package/types/editing/models.d.ts +103 -92
  212. package/types/editing/models.d.ts.map +1 -0
  213. package/types/editing/utils.d.ts +91 -74
  214. package/types/editing/utils.d.ts.map +1 -0
  215. package/types/form/form.d.ts +25 -21
  216. package/types/form/form.d.ts.map +1 -0
  217. package/types/form/index.d.ts +2 -1
  218. package/types/form/index.d.ts.map +1 -0
  219. package/types/graphql-request-client.d.ts +112 -105
  220. package/types/graphql-request-client.d.ts.map +1 -0
  221. package/types/i18n/dictionary-service.d.ts +135 -131
  222. package/types/i18n/dictionary-service.d.ts.map +1 -0
  223. package/types/i18n/index.d.ts +3 -2
  224. package/types/i18n/index.d.ts.map +1 -0
  225. package/types/i18n/utils.d.ts +9 -7
  226. package/types/i18n/utils.d.ts.map +1 -0
  227. package/types/index.d.ts +13 -12
  228. package/types/index.d.ts.map +1 -0
  229. package/types/layout/content-styles.d.ts +20 -18
  230. package/types/layout/content-styles.d.ts.map +1 -0
  231. package/types/layout/index.d.ts +6 -5
  232. package/types/layout/index.d.ts.map +1 -0
  233. package/types/layout/layout-service.d.ts +45 -35
  234. package/types/layout/layout-service.d.ts.map +1 -0
  235. package/types/layout/models.d.ts +174 -151
  236. package/types/layout/models.d.ts.map +1 -0
  237. package/types/layout/themes.d.ts +13 -11
  238. package/types/layout/themes.d.ts.map +1 -0
  239. package/types/layout/utils.d.ts +56 -41
  240. package/types/layout/utils.d.ts.map +1 -0
  241. package/types/media/index.d.ts +3 -2
  242. package/types/media/index.d.ts.map +1 -0
  243. package/types/media/media-api.d.ts +60 -55
  244. package/types/media/media-api.d.ts.map +1 -0
  245. package/types/models.d.ts +94 -84
  246. package/types/models.d.ts.map +1 -0
  247. package/types/native-fetcher.d.ts +124 -114
  248. package/types/native-fetcher.d.ts.map +1 -0
  249. package/types/personalize/index.d.ts +4 -3
  250. package/types/personalize/index.d.ts.map +1 -0
  251. package/types/personalize/layout-personalizer.d.ts +29 -27
  252. package/types/personalize/layout-personalizer.d.ts.map +1 -0
  253. package/types/personalize/personalize-service.d.ts +90 -80
  254. package/types/personalize/personalize-service.d.ts.map +1 -0
  255. package/types/personalize/utils.d.ts +78 -69
  256. package/types/personalize/utils.d.ts.map +1 -0
  257. package/types/retries.d.ts +26 -24
  258. package/types/retries.d.ts.map +1 -0
  259. package/types/site/error-pages-service.d.ts +64 -57
  260. package/types/site/error-pages-service.d.ts.map +1 -0
  261. package/types/site/index.d.ts +10 -9
  262. package/types/site/index.d.ts.map +1 -0
  263. package/types/site/models.d.ts +23 -18
  264. package/types/site/models.d.ts.map +1 -0
  265. package/types/site/redirects-service.d.ts +92 -69
  266. package/types/site/redirects-service.d.ts.map +1 -0
  267. package/types/site/robots-service.d.ts +57 -50
  268. package/types/site/robots-service.d.ts.map +1 -0
  269. package/types/site/site-resolver.d.ts +28 -26
  270. package/types/site/site-resolver.d.ts.map +1 -0
  271. package/types/site/siteinfo-service.d.ts +65 -52
  272. package/types/site/siteinfo-service.d.ts.map +1 -0
  273. package/types/site/sitemap-xml-service.d.ts +63 -56
  274. package/types/site/sitemap-xml-service.d.ts.map +1 -0
  275. package/types/site/sitepath-service.d.ts +137 -134
  276. package/types/site/sitepath-service.d.ts.map +1 -0
  277. package/types/site/utils.d.ts +41 -28
  278. package/types/site/utils.d.ts.map +1 -0
  279. package/types/sitecore-service-base.d.ts +31 -30
  280. package/types/sitecore-service-base.d.ts.map +1 -0
  281. package/types/tools/auth/flow.d.ts +29 -27
  282. package/types/tools/auth/flow.d.ts.map +1 -0
  283. package/types/tools/auth/index.d.ts +2 -1
  284. package/types/tools/auth/index.d.ts.map +1 -0
  285. package/types/tools/auth/models.d.ts +35 -33
  286. package/types/tools/auth/models.d.ts.map +1 -0
  287. package/types/tools/auth/tenant-store.d.ts +12 -11
  288. package/types/tools/auth/tenant-store.d.ts.map +1 -0
  289. package/types/tools/codegen/component-generation.d.ts +50 -47
  290. package/types/tools/codegen/component-generation.d.ts.map +1 -0
  291. package/types/tools/codegen/extract-files.d.ts +24 -22
  292. package/types/tools/codegen/extract-files.d.ts.map +1 -0
  293. package/types/tools/codegen/import-map.d.ts +103 -70
  294. package/types/tools/codegen/import-map.d.ts.map +1 -0
  295. package/types/tools/codegen/utils.d.ts +76 -75
  296. package/types/tools/codegen/utils.d.ts.map +1 -0
  297. package/types/tools/generate-map.d.ts +36 -26
  298. package/types/tools/generate-map.d.ts.map +1 -0
  299. package/types/tools/generateMetadata.d.ts +24 -22
  300. package/types/tools/generateMetadata.d.ts.map +1 -0
  301. package/types/tools/generateSites.d.ts +25 -22
  302. package/types/tools/generateSites.d.ts.map +1 -0
  303. package/types/tools/index.d.ts +22 -20
  304. package/types/tools/index.d.ts.map +1 -0
  305. package/types/tools/scaffold.d.ts +27 -25
  306. package/types/tools/scaffold.d.ts.map +1 -0
  307. package/types/tools/templating/components.d.ts +104 -103
  308. package/types/tools/templating/components.d.ts.map +1 -0
  309. package/types/tools/templating/index.d.ts +4 -3
  310. package/types/tools/templating/index.d.ts.map +1 -0
  311. package/types/tools/templating/plugins.d.ts +71 -67
  312. package/types/tools/templating/plugins.d.ts.map +1 -0
  313. package/types/tools/templating/utils.d.ts +42 -40
  314. package/types/tools/templating/utils.d.ts.map +1 -0
  315. package/types/utils/ensurePath.d.ts +7 -6
  316. package/types/utils/ensurePath.d.ts.map +1 -0
  317. package/types/utils/env.d.ts +9 -7
  318. package/types/utils/env.d.ts.map +1 -0
  319. package/types/utils/globalCache.d.ts +37 -0
  320. package/types/utils/globalCache.d.ts.map +1 -0
  321. package/types/utils/index.d.ts +5 -3
  322. package/types/utils/index.d.ts.map +1 -0
  323. package/types/utils/is-server.d.ts +8 -6
  324. package/types/utils/is-server.d.ts.map +1 -0
  325. package/types/utils/normalize-url.d.ts +2 -1
  326. package/types/utils/normalize-url.d.ts.map +1 -0
  327. package/types/utils/timeout-promise.d.ts +18 -17
  328. package/types/utils/timeout-promise.d.ts.map +1 -0
  329. package/types/utils/utils.d.ts +104 -79
  330. package/types/utils/utils.d.ts.map +1 -0
  331. package/client.js +0 -1
  332. package/codegen.js +0 -1
  333. package/config-cli.js +0 -1
  334. package/config.js +0 -1
  335. package/editing.js +0 -1
  336. package/i18n.js +0 -1
  337. package/layout.js +0 -1
  338. package/media.js +0 -1
  339. package/personalize.js +0 -1
  340. package/site.js +0 -1
  341. package/tools.js +0 -1
  342. package/utils.js +0 -1
@@ -1,268 +1,287 @@
1
- import { RetryStrategy } from '../models';
2
- import { GenerateMapFunction, GenerateMapArgs } from '../tools';
3
- /**
4
- * Utility type to make every property in a type required
5
- */
6
- export type DeepRequired<T> = Required<{
7
- [K in keyof T]: T[K] extends Required<T[K]> ? T[K] : DeepRequired<T[K]>;
8
- }>;
9
- /**
10
- * Utility type to make all properties in a type optional, recursively
11
- */
12
- export type DeepPartial<T> = {
13
- [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
14
- };
15
- /**
16
- * Type to be used as config input in sitecore.config
17
- */
18
- export type SitecoreConfigInput = {
19
- /**
20
- * API settings required to connect to Sitecore.
21
- * Both edge and local sets can be specified; the Content SDK app will choose
22
- * the correct credentials (Edge or local) at runtime.
23
- */
24
- api?: {
25
- /**
26
- * Edge endpoint credentials for connecting to an XM Cloud instance.
27
- */
28
- edge?: {
29
- /**
30
- * A unified identifier used to connect and retrieve data from XM Cloud instance
31
- * Must be provided together with `clientContextId` to support both server-
32
- * side and browser-side data fetching.
33
- */
34
- contextId: string;
35
- /**
36
- * Optional identifier used to connect and retrieve data from XM Cloud instance in client-side functionality
37
- */
38
- clientContextId?: string;
39
- /**
40
- * XM Cloud endpoint that the app will communicate and retrieve data from
41
- * @default https://edge-platform.sitecorecloud.io
42
- */
43
- edgeUrl?: string;
44
- };
45
- /**
46
- * API endpoint credentials for connecting to a local Sitecore instance.
47
- */
48
- local?: {
49
- /**
50
- * Sitecore API key used to connect to the GraphQL endpoint
51
- */
52
- apiKey: string;
53
- /**
54
- * Sitecore API hostname that the app connects to
55
- */
56
- apiHost: string;
57
- /**
58
- * GraphQL endpoint path (appended to `apiHost` to form the full URL).
59
- * @default /sitecore/api/graph/edge
60
- */
61
- path?: string;
62
- };
63
- };
64
- /**
65
- * The default and fallback locale for your site.
66
- * Ensure it aligns with the framework-specific settings used in your application.
67
- */
68
- defaultLanguage?: string;
69
- /**
70
- * Your default site name. When using the multisite feature this variable defines the fallback site.
71
- */
72
- defaultSite?: string;
73
- /**
74
- * Editing secret required for Sitecore editing and preview functionality.
75
- * Default comes from the SITECORE_EDITING_SECRET environment variable.
76
- */
77
- editingSecret?: string;
78
- /**
79
- * Retry configuration applied to Layout, Dictionary and ErrorPages services
80
- */
81
- retries?: {
82
- /**
83
- * Number of retries for the GraphQL client.
84
- * @default 3
85
- */
86
- count?: number;
87
- /**
88
- * Retry strategy for the client. By default, uses exponential
89
- * back-off factor of 2 for codes 429, 502, 503, 504, 520, 521, 522, 523, 524.
90
- * @default DefaultRetryStrategy
91
- */
92
- retryStrategy?: RetryStrategy;
93
- };
94
- /**
95
- * Settings for Layout Service
96
- */
97
- layout?: {
98
- /**
99
- * Override the first part of graphQL query for Layout Service (excluding the fields part)
100
- * @param {string} siteName your site name
101
- * @param {string} itemPath full path to Sitecore item/route
102
- * @param {string} [locale] item/route language
103
- * @returns {string} custom layout query
104
- * @default 'layout(site:"${siteName}", routePath:"${itemPath}", language:"${language}")'
105
- */
106
- formatLayoutQuery?: ((siteName: string, itemPath: string, locale?: string) => string) | null;
107
- };
108
- /**
109
- * Settings for Dictionary Service
110
- */
111
- dictionary?: {
112
- /**
113
- * Configure local memory caching for Dictionary Service requests
114
- */
115
- caching?: {
116
- enabled?: boolean;
117
- timeout?: number;
118
- };
119
- };
120
- /**
121
- * Settings for multisite functionality
122
- */
123
- multisite?: {
124
- /**
125
- * Enable multisite
126
- * @default true
127
- */
128
- enabled?: boolean;
129
- /**
130
- * Function used to determine if site should be resolved from sc_site cookie when present
131
- */
132
- useCookieResolution?: (req?: RequestInit, res?: ResponseInit) => boolean;
133
- };
134
- /**
135
- * Settings for Personalize functionality
136
- */
137
- personalize?: {
138
- /**
139
- * Enable personalize middleware
140
- * @default process.env.NODE_ENV !== 'development'
141
- */
142
- enabled?: boolean;
143
- /**
144
- * Configuration for your Sitecore Experience Edge endpoint
145
- * by default set by the PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT environment variable
146
- * if not set, will use the default value of 400ms
147
- */
148
- edgeTimeout?: number;
149
- /**
150
- * Configuration for your Sitecore CDP endpoint
151
- * by default set by the PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT environment variable
152
- * if not set, will use the default value of 400ms
153
- */
154
- cdpTimeout?: number;
155
- /**
156
- * Optional Sitecore Personalize scope ID (to isolate data between environments)
157
- */
158
- scope?: string;
159
- /**
160
- * The Sitecore CDP channel to use for events. Uses 'WEB' by default.
161
- */
162
- channel?: string;
163
- /**
164
- * Currency for CDP requests
165
- * @default 'USA'
166
- */
167
- currency?: string;
168
- };
169
- /**
170
- * Settings for redirects functionality
171
- */
172
- redirects?: {
173
- /**
174
- * Enable redirects middleware
175
- * @default process.env.NODE_ENV !== 'development'
176
- */
177
- enabled?: boolean;
178
- /**
179
- * These are all the locales you support in your application.
180
- * These should match those in framework-specific configuration of your app.
181
- */
182
- locales?: string[];
183
- };
184
- /**
185
- * Opt-out setting for code generation feature
186
- * Disables code extraction procedure
187
- */
188
- disableCodeGeneration?: boolean;
189
- };
190
- /**
191
- * Final Sitecore config type used at runtime.
192
- * Every property is populated, either from sitecore.config or fallback values.
193
- */
194
- export type SitecoreConfig = DeepRequired<SitecoreConfigInput>;
195
- /**
196
- * Type used as CLI config input in sitecore.cli.config
197
- */
198
- export type SitecoreCliConfigInput = {
199
- /**
200
- * Sitecore configuration (`sitecore.config` file)
201
- */
202
- config?: SitecoreConfig;
203
- /**
204
- * Configuration for the `sitecore-tools build` CLI command
205
- */
206
- build?: {
207
- /**
208
- * Commands to run during the build process
209
- */
210
- commands?: Array<(args?: {
211
- scConfig?: SitecoreConfig;
212
- }) => Promise<void>>;
213
- };
214
- /**
215
- * Configuration for the `sitecore-tools scaffold` CLI command
216
- */
217
- scaffold?: {
218
- /**
219
- * Scaffold templates available for generating components
220
- */
221
- templates?: ScaffoldTemplate[];
222
- };
223
- /**
224
- * Configuration for the `sitecore-tools component generate-map` CLI command
225
- */
226
- componentMap?: GenerateMapArgs & {
227
- /**
228
- * Function implementation for generating a component map
229
- */
230
- generator?: GenerateMapFunction;
231
- };
232
- };
233
- /**
234
- * Final Sitecore CLI config type required by the CLI
235
- */
236
- export type SitecoreCliConfig = DeepRequired<SitecoreCliConfigInput>;
237
- /**
238
- * Represents a scaffold template used for generating components
239
- */
240
- export type ScaffoldTemplate = {
241
- /**
242
- * Name of the template
243
- */
244
- name: string;
245
- /**
246
- * File extension for the generated component
247
- */
248
- fileExtension: string;
249
- /**
250
- * Function to generate the component file contents based on the component name.
251
- * @param componentName - The name of the component.
252
- * @returns The generated content as a string.
253
- */
254
- generateTemplate: (componentName: string) => string;
255
- /**
256
- * Optional function to get the next steps to be shown by the cli after generating the component.
257
- * @param componentOutputPath - The output path of the generated component.
258
- * @returns An array of strings representing the next steps.
259
- */
260
- getNextSteps?: (componentOutputPath: string) => string[];
261
- };
262
- /**
263
- * Enumeration of default component templates
264
- */
265
- export declare enum ComponentTemplateType {
266
- BYOC = "byoc",
267
- DEFAULT = "default"
268
- }
1
+ import { RetryStrategy } from '../models';
2
+ import { GenerateMapFunction, GenerateMapArgs } from '../tools';
3
+ /**
4
+ * Utility type to make every property in a type required
5
+ * @public
6
+ */
7
+ export type DeepRequired<T> = Required<{
8
+ [K in keyof T]: T[K] extends Required<T[K]> ? T[K] : DeepRequired<T[K]>;
9
+ }>;
10
+ /**
11
+ * Utility type to make all properties in a type optional, recursively
12
+ * @internal
13
+ */
14
+ export type DeepPartial<T> = {
15
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
16
+ };
17
+ /**
18
+ * Type to be used as config input in sitecore.config
19
+ * @public
20
+ */
21
+ export type SitecoreConfigInput = {
22
+ /**
23
+ * API settings required to connect to Sitecore.
24
+ * Both edge and local sets can be specified; the Content SDK app will choose
25
+ * the correct credentials (Edge or local) at runtime.
26
+ */
27
+ api?: {
28
+ /**
29
+ * Edge endpoint credentials for connecting to an XM Cloud instance.
30
+ */
31
+ edge?: {
32
+ /**
33
+ * A unified identifier used to connect and retrieve data from XM Cloud instance
34
+ * Must be provided together with `clientContextId` to support both server-
35
+ * side and browser-side data fetching.
36
+ */
37
+ contextId: string;
38
+ /**
39
+ * Optional identifier used to connect and retrieve data from XM Cloud instance in client-side functionality
40
+ */
41
+ clientContextId?: string;
42
+ /**
43
+ * XM Cloud endpoint that the app will communicate and retrieve data from
44
+ * @default https://edge-platform.sitecorecloud.io
45
+ */
46
+ edgeUrl?: string;
47
+ };
48
+ /**
49
+ * API endpoint credentials for connecting to a local Sitecore instance.
50
+ */
51
+ local?: {
52
+ /**
53
+ * Sitecore API key used to connect to the GraphQL endpoint
54
+ */
55
+ apiKey: string;
56
+ /**
57
+ * Sitecore API hostname that the app connects to
58
+ */
59
+ apiHost: string;
60
+ /**
61
+ * GraphQL endpoint path (appended to `apiHost` to form the full URL).
62
+ * @default /sitecore/api/graph/edge
63
+ */
64
+ path?: string;
65
+ };
66
+ };
67
+ /**
68
+ * The default and fallback locale for your site.
69
+ * Ensure it aligns with the framework-specific settings used in your application.
70
+ */
71
+ defaultLanguage?: string;
72
+ /**
73
+ * Your default site name. When using the multisite feature this variable defines the fallback site.
74
+ */
75
+ defaultSite?: string;
76
+ /**
77
+ * Editing secret required for Sitecore editing and preview functionality.
78
+ * Default comes from the SITECORE_EDITING_SECRET environment variable.
79
+ */
80
+ editingSecret?: string;
81
+ /**
82
+ * Retry configuration applied to Layout, Dictionary and ErrorPages services
83
+ */
84
+ retries?: {
85
+ /**
86
+ * Number of retries for the GraphQL client.
87
+ * @default 3
88
+ */
89
+ count?: number;
90
+ /**
91
+ * Retry strategy for the client. By default, uses exponential
92
+ * back-off factor of 2 for codes 429, 502, 503, 504, 520, 521, 522, 523, 524.
93
+ * @default DefaultRetryStrategy
94
+ */
95
+ retryStrategy?: RetryStrategy;
96
+ };
97
+ /**
98
+ * Settings for Layout Service
99
+ */
100
+ layout?: {
101
+ /**
102
+ * Override the first part of graphQL query for Layout Service (excluding the fields part)
103
+ * @param {string} siteName your site name
104
+ * @param {string} itemPath full path to Sitecore item/route
105
+ * @param {string} [locale] item/route language
106
+ * @returns {string} custom layout query
107
+ * @default 'layout(site:"${siteName}", routePath:"${itemPath}", language:"${language}")'
108
+ */
109
+ formatLayoutQuery?: ((siteName: string, itemPath: string, locale?: string) => string) | null;
110
+ };
111
+ /**
112
+ * Settings for Dictionary Service
113
+ */
114
+ dictionary?: {
115
+ /**
116
+ * Configure local memory caching for Dictionary Service requests
117
+ */
118
+ caching?: {
119
+ enabled?: boolean;
120
+ timeout?: number;
121
+ };
122
+ };
123
+ /**
124
+ * Settings for multisite functionality
125
+ */
126
+ multisite?: {
127
+ /**
128
+ * Enable multisite
129
+ *
130
+ * **WARNING: Do NOT disable multisite in App Router applications.**
131
+ *
132
+ * The App Router route structure requires the `[site]` segment in the path (`/[site]/[locale]/[[...path]]`).
133
+ * Disabling this will break routing and cause 404 errors for regular requests.
134
+ *
135
+ * Preview and Editing modes will still work (they bypass this check), but regular page requests will fail.
136
+ *
137
+ * **For single-site setups**: Keep `enabled: true` and configure only one site in your sites configuration.
138
+ * The middleware will always use that single site, achieving the desired single-site behavior.
139
+ * @default true
140
+ */
141
+ enabled?: boolean;
142
+ /**
143
+ * Function used to determine if site should be resolved from sc_site cookie when present
144
+ */
145
+ useCookieResolution?: (req?: RequestInit, res?: ResponseInit) => boolean;
146
+ };
147
+ /**
148
+ * Settings for Personalize functionality
149
+ */
150
+ personalize?: {
151
+ /**
152
+ * Enable personalize middleware
153
+ * @default process.env.NODE_ENV !== 'development'
154
+ */
155
+ enabled?: boolean;
156
+ /**
157
+ * Configuration for your Sitecore Experience Edge endpoint
158
+ * by default set by the PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT environment variable
159
+ * if not set, will use the default value of 400ms
160
+ */
161
+ edgeTimeout?: number;
162
+ /**
163
+ * Configuration for your Sitecore CDP endpoint
164
+ * by default set by the PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT environment variable
165
+ * if not set, will use the default value of 400ms
166
+ */
167
+ cdpTimeout?: number;
168
+ /**
169
+ * Optional Sitecore Personalize scope ID (to isolate data between environments)
170
+ */
171
+ scope?: string;
172
+ /**
173
+ * The Sitecore CDP channel to use for events. Uses 'WEB' by default.
174
+ */
175
+ channel?: string;
176
+ /**
177
+ * Currency for CDP requests
178
+ * @default 'USA'
179
+ */
180
+ currency?: string;
181
+ };
182
+ /**
183
+ * Settings for redirects functionality
184
+ */
185
+ redirects?: {
186
+ /**
187
+ * Enable redirects middleware
188
+ * @default process.env.NODE_ENV !== 'development'
189
+ */
190
+ enabled?: boolean;
191
+ /**
192
+ * These are all the locales you support in your application.
193
+ * These should match those in framework-specific configuration of your app.
194
+ */
195
+ locales?: string[];
196
+ };
197
+ /**
198
+ * Opt-out setting for code generation feature
199
+ * Disables code extraction procedure
200
+ */
201
+ disableCodeGeneration?: boolean;
202
+ };
203
+ /**
204
+ * Final Sitecore config type used at runtime.
205
+ * Every property is populated, either from sitecore.config or fallback values.
206
+ * @public
207
+ */
208
+ export type SitecoreConfig = DeepRequired<SitecoreConfigInput>;
209
+ /**
210
+ * Type used as CLI config input in sitecore.cli.config
211
+ * @public
212
+ */
213
+ export type SitecoreCliConfigInput = {
214
+ /**
215
+ * Sitecore configuration (`sitecore.config` file)
216
+ */
217
+ config?: SitecoreConfig;
218
+ /**
219
+ * Configuration for the `sitecore-tools build` CLI command
220
+ */
221
+ build?: {
222
+ /**
223
+ * Commands to run during the build process
224
+ */
225
+ commands?: Array<(args?: {
226
+ scConfig?: SitecoreConfig;
227
+ }) => Promise<void>>;
228
+ };
229
+ /**
230
+ * Configuration for the `sitecore-tools scaffold` CLI command
231
+ */
232
+ scaffold?: {
233
+ /**
234
+ * Scaffold templates available for generating components
235
+ */
236
+ templates?: ScaffoldTemplate[];
237
+ };
238
+ /**
239
+ * Configuration for the `sitecore-tools component generate-map` CLI command
240
+ */
241
+ componentMap?: GenerateMapArgs & {
242
+ /**
243
+ * Function implementation for generating a component map
244
+ */
245
+ generator?: GenerateMapFunction;
246
+ };
247
+ };
248
+ /**
249
+ * Final Sitecore CLI config type required by the CLI
250
+ * @public
251
+ */
252
+ export type SitecoreCliConfig = DeepRequired<SitecoreCliConfigInput>;
253
+ /**
254
+ * Represents a scaffold template used for generating components
255
+ * @public
256
+ */
257
+ export type ScaffoldTemplate = {
258
+ /**
259
+ * Name of the template
260
+ */
261
+ name: string;
262
+ /**
263
+ * File extension for the generated component
264
+ */
265
+ fileExtension: string;
266
+ /**
267
+ * Function to generate the component file contents based on the component name.
268
+ * @param componentName - The name of the component.
269
+ * @returns The generated content as a string.
270
+ */
271
+ generateTemplate: (componentName: string) => string;
272
+ /**
273
+ * Optional function to get the next steps to be shown by the cli after generating the component.
274
+ * @param componentOutputPath - The output path of the generated component.
275
+ * @returns An array of strings representing the next steps.
276
+ */
277
+ getNextSteps?: (componentOutputPath: string) => string[];
278
+ };
279
+ /**
280
+ * Enumeration of default component templates
281
+ * @internal
282
+ */
283
+ export declare enum ComponentTemplateType {
284
+ BYOC = "byoc",
285
+ DEFAULT = "default"
286
+ }
287
+ //# sourceMappingURL=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CACpB"}
@@ -1,7 +1,9 @@
1
- import { SitecoreCliConfig, SitecoreCliConfigInput } from '../config/models';
2
- /**
3
- * Accepts a `SitecoreCliConfigInput` object and returns Sitecore Content SDK CLI configuration, updated with required default values
4
- * @param {SitecoreCliConfigInput} cliConfig the cli configuration provided by the application
5
- * @returns {SitecoreCliConfig} full sitecore cli configuration to use with cli
6
- */
7
- export declare const defineCliConfig: (cliConfig: SitecoreCliConfigInput) => SitecoreCliConfig;
1
+ import { SitecoreCliConfig, SitecoreCliConfigInput } from '../config/models';
2
+ /**
3
+ * Accepts a `SitecoreCliConfigInput` object and returns Sitecore Content SDK CLI configuration, updated with required default values
4
+ * @param {SitecoreCliConfigInput} cliConfig the cli configuration provided by the application
5
+ * @returns {SitecoreCliConfig} full sitecore cli configuration to use with cli
6
+ * @public
7
+ */
8
+ export declare const defineCliConfig: (cliConfig: SitecoreCliConfigInput) => SitecoreCliConfig;
9
+ //# sourceMappingURL=define-cli-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-cli-config.d.ts","sourceRoot":"","sources":["../../src/config-cli/define-cli-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAc7E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,sBAAsB,KAAG,iBAGnE,CAAC"}
@@ -1,2 +1,3 @@
1
- export { defineCliConfig } from './define-cli-config';
2
- export { SITECORE_CLI_MODE_ENV_VAR } from './models';
1
+ export { defineCliConfig } from './define-cli-config';
2
+ export { SITECORE_CLI_MODE_ENV_VAR } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config-cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,6 @@
1
- /**
2
- * Environment variable to indicate that the application is running in CLI mode
3
- */
4
- export declare const SITECORE_CLI_MODE_ENV_VAR = "SITECORE_CLI_MODE";
1
+ /**
2
+ * Environment variable to indicate that the application is running in CLI mode
3
+ * @internal
4
+ */
5
+ export declare const SITECORE_CLI_MODE_ENV_VAR = "SITECORE_CLI_MODE";
6
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/config-cli/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,sBAAsB,CAAC"}