@endora-commerce/mod-catalog 0.109.0 → 0.111.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 (615) hide show
  1. package/dist/admin/components/CopyToChannelsDialog.d.ts +37 -0
  2. package/dist/admin/components/CopyToChannelsDialog.js +83 -0
  3. package/dist/admin/components/PackagingUnitsEditor.d.ts +13 -4
  4. package/dist/admin/components/PackagingUnitsEditor.js +21 -85
  5. package/dist/admin/components/ProductAttachmentsSection.d.ts +1 -3
  6. package/dist/admin/components/ProductAttachmentsSection.js +59 -98
  7. package/dist/admin/components/ProductAttributesTab.d.ts +1 -11
  8. package/dist/admin/components/ProductAttributesTab.js +128 -119
  9. package/dist/admin/components/ProductContentCard.d.ts +41 -0
  10. package/dist/admin/components/ProductContentCard.js +28 -0
  11. package/dist/admin/components/ProductEditorSaveAction.d.ts +22 -0
  12. package/dist/admin/components/ProductEditorSaveAction.js +23 -0
  13. package/dist/admin/components/ProductGallerySection.d.ts +2 -13
  14. package/dist/admin/components/ProductGallerySection.js +98 -354
  15. package/dist/admin/components/ProductInventoryTab.d.ts +12 -1
  16. package/dist/admin/components/ProductInventoryTab.js +52 -115
  17. package/dist/admin/components/ProductOrderRulesCard.d.ts +11 -15
  18. package/dist/admin/components/ProductOrderRulesCard.js +15 -268
  19. package/dist/admin/components/ProductScopeBar.d.ts +34 -0
  20. package/dist/admin/components/ProductScopeBar.js +70 -0
  21. package/dist/admin/components/ProductScopeOverview.d.ts +13 -1
  22. package/dist/admin/components/ProductScopeOverview.js +56 -37
  23. package/dist/admin/components/ProductUrlRedirects.d.ts +15 -0
  24. package/dist/admin/components/ProductUrlRedirects.js +70 -0
  25. package/dist/admin/components/ProductsBulkEditDialog.js +4 -3
  26. package/dist/admin/components/editor/DetailsTab.d.ts +30 -0
  27. package/dist/admin/components/editor/DetailsTab.js +60 -0
  28. package/dist/admin/components/editor/SectionHeading.d.ts +22 -0
  29. package/dist/admin/components/editor/SectionHeading.js +19 -0
  30. package/dist/admin/components/editor/confirm-removal.d.ts +13 -0
  31. package/dist/admin/components/editor/confirm-removal.js +33 -0
  32. package/dist/admin/components/editor/editor-context.d.ts +55 -0
  33. package/dist/admin/components/editor/editor-context.js +88 -0
  34. package/dist/admin/components/editor/scoped-controls.d.ts +46 -0
  35. package/dist/admin/components/editor/scoped-controls.js +64 -0
  36. package/dist/admin/index.d.ts +1 -1
  37. package/dist/admin/index.js +11 -0
  38. package/dist/admin/lib/attribute-scope.d.ts +17 -14
  39. package/dist/admin/lib/attribute-scope.js +12 -9
  40. package/dist/admin/lib/bulk-result-outcome.d.ts +14 -0
  41. package/dist/admin/lib/bulk-result-outcome.js +13 -0
  42. package/dist/admin/lib/editor-scope.d.ts +35 -0
  43. package/dist/admin/lib/editor-scope.js +114 -0
  44. package/dist/admin/lib/order-minimum-input.d.ts +13 -0
  45. package/dist/admin/lib/order-minimum-input.js +16 -0
  46. package/dist/admin/lib/product-labels.d.ts +0 -2
  47. package/dist/admin/lib/product-labels.js +1 -5
  48. package/dist/admin/lib/product-scopes-api.d.ts +5 -22
  49. package/dist/admin/lib/product-scopes-api.js +4 -48
  50. package/dist/admin/lib/product-url-keys-api.d.ts +4 -27
  51. package/dist/admin/lib/product-url-keys-api.js +1 -50
  52. package/dist/admin/lib/scope-overview.d.ts +13 -14
  53. package/dist/admin/lib/scope-overview.js +36 -31
  54. package/dist/admin/lib/scoped-editor-store.d.ts +81 -0
  55. package/dist/admin/lib/scoped-editor-store.js +198 -0
  56. package/dist/admin/lib/scoped-values-api.d.ts +14 -0
  57. package/dist/admin/lib/scoped-values-api.js +55 -0
  58. package/dist/admin/pages/AttachmentTypesPage.js +14 -4
  59. package/dist/admin/pages/AttributeSetsPage.js +11 -4
  60. package/dist/admin/pages/AttributesManager.js +130 -40
  61. package/dist/admin/pages/BulkOperationDetailPage.js +11 -4
  62. package/dist/admin/pages/CategoriesTree.d.ts +5 -0
  63. package/dist/admin/pages/CategoriesTree.js +226 -40
  64. package/dist/admin/pages/ProductContentPage.d.ts +27 -0
  65. package/dist/admin/pages/ProductContentPage.js +161 -0
  66. package/dist/admin/pages/ProductCreateForm.d.ts +3 -0
  67. package/dist/admin/pages/ProductCreateForm.js +87 -0
  68. package/dist/admin/pages/ProductEditor.js +938 -458
  69. package/dist/admin/pages/ProductsList.js +33 -38
  70. package/dist/backend/admin-search-provider.d.ts +2 -1
  71. package/dist/backend/admin-search-provider.js +1 -1
  72. package/dist/backend/commands/attribute-commands.d.ts +4 -3
  73. package/dist/backend/commands/attribute-commands.js +137 -30
  74. package/dist/backend/commands/product-content-commands.d.ts +31 -0
  75. package/dist/backend/commands/product-content-commands.js +70 -0
  76. package/dist/backend/commands/scoped-values.commands.d.ts +95 -0
  77. package/dist/backend/commands/scoped-values.commands.js +235 -0
  78. package/dist/backend/demo/reset.js +2 -1
  79. package/dist/backend/demo/rows.d.ts +18 -0
  80. package/dist/backend/demo/rows.js +18 -0
  81. package/dist/backend/demo/seed.d.ts +2 -1
  82. package/dist/backend/demo/seed.js +20 -6
  83. package/dist/backend/entities/gallery-item-scope-override.entity.d.ts +30 -0
  84. package/dist/backend/entities/gallery-item-scope-override.entity.js +80 -0
  85. package/dist/backend/entities/gallery-item.entity.d.ts +7 -6
  86. package/dist/backend/entities/gallery-item.entity.js +11 -6
  87. package/dist/backend/entities/gallery-role-scope-override.entity.d.ts +28 -0
  88. package/dist/backend/entities/gallery-role-scope-override.entity.js +75 -0
  89. package/dist/backend/entities/product-attachment-scope-override.entity.d.ts +30 -0
  90. package/dist/backend/entities/product-attachment-scope-override.entity.js +80 -0
  91. package/dist/backend/entities/product-attachment.entity.d.ts +4 -6
  92. package/dist/backend/entities/product-attachment.entity.js +6 -12
  93. package/dist/backend/entities/product-attribute.entity.d.ts +5 -9
  94. package/dist/backend/entities/product-attribute.entity.js +5 -13
  95. package/dist/backend/entities/product-channel-scope.entity.d.ts +7 -2
  96. package/dist/backend/entities/product-channel-scope.entity.js +10 -1
  97. package/dist/backend/entities/product-content-value.entity.d.ts +39 -0
  98. package/dist/backend/entities/product-content-value.entity.js +81 -0
  99. package/dist/backend/entities/product-packaging-unit-scope-override.entity.d.ts +30 -0
  100. package/dist/backend/entities/product-packaging-unit-scope-override.entity.js +80 -0
  101. package/dist/backend/entities/product-packaging-unit.entity.d.ts +1 -7
  102. package/dist/backend/entities/product-packaging-unit.entity.js +0 -10
  103. package/dist/backend/entities/product-url-key.entity.d.ts +14 -19
  104. package/dist/backend/entities/product-url-key.entity.js +17 -22
  105. package/dist/backend/entities/product-url-redirect.entity.d.ts +8 -13
  106. package/dist/backend/entities/product-url-redirect.entity.js +13 -14
  107. package/dist/backend/entities/product-variant.entity.d.ts +8 -1
  108. package/dist/backend/entities/product-variant.entity.js +13 -2
  109. package/dist/backend/entities/product.entity.d.ts +31 -14
  110. package/dist/backend/entities/product.entity.js +41 -34
  111. package/dist/backend/index.d.ts +11 -3
  112. package/dist/backend/index.js +155 -49
  113. package/dist/backend/plugin.d.ts +36 -6
  114. package/dist/backend/plugin.js +36 -13
  115. package/dist/backend/prompt-tools.d.ts +3 -2
  116. package/dist/backend/prompt-tools.js +18 -7
  117. package/dist/backend/routes.admin.d.ts +15 -16
  118. package/dist/backend/routes.admin.js +122 -103
  119. package/dist/backend/routes.api-key.js +4 -2
  120. package/dist/backend/routes.external.js +3 -2
  121. package/dist/backend/routes.public.d.ts +8 -1
  122. package/dist/backend/routes.public.js +68 -11
  123. package/dist/backend/services/asset-references.d.ts +12 -1
  124. package/dist/backend/services/asset-references.js +42 -2
  125. package/dist/backend/services/attachment-packaging-scopes.d.ts +38 -20
  126. package/dist/backend/services/attachment-packaging-scopes.js +58 -75
  127. package/dist/backend/services/attachment.service.d.ts +4 -8
  128. package/dist/backend/services/attachment.service.js +35 -49
  129. package/dist/backend/services/attribute-filter-match.d.ts +14 -0
  130. package/dist/backend/services/attribute-filter-match.js +19 -0
  131. package/dist/backend/services/attribute-scope-preview.d.ts +17 -7
  132. package/dist/backend/services/attribute-scope-preview.js +30 -20
  133. package/dist/backend/services/attribute-set.service.d.ts +10 -1
  134. package/dist/backend/services/attribute-set.service.js +30 -4
  135. package/dist/backend/services/attribute-type-mapping.d.ts +2 -2
  136. package/dist/backend/services/attribute-type-mapping.js +6 -0
  137. package/dist/backend/services/attribute-usage.d.ts +31 -0
  138. package/dist/backend/services/attribute-usage.js +29 -0
  139. package/dist/backend/services/bulk-operation.service.d.ts +1 -1
  140. package/dist/backend/services/bulk-operation.service.js +16 -6
  141. package/dist/backend/services/bundle.service.js +19 -1
  142. package/dist/backend/services/catalog-admin-search.service.d.ts +3 -2
  143. package/dist/backend/services/catalog-admin-search.service.js +6 -6
  144. package/dist/backend/services/catalog-admin.service.d.ts +63 -12
  145. package/dist/backend/services/catalog-admin.service.js +368 -195
  146. package/dist/backend/services/catalog-attribute-read.service.d.ts +14 -0
  147. package/dist/backend/services/catalog-attribute-read.service.js +9 -19
  148. package/dist/backend/services/catalog-bulk-import.service.d.ts +58 -5
  149. package/dist/backend/services/catalog-bulk-import.service.js +192 -142
  150. package/dist/backend/services/catalog-bulk-update.service.d.ts +5 -3
  151. package/dist/backend/services/catalog-bulk-update.service.js +21 -8
  152. package/dist/backend/services/catalog-product-read.service.d.ts +11 -1
  153. package/dist/backend/services/catalog-product-read.service.js +37 -17
  154. package/dist/backend/services/catalog-query.service.d.ts +48 -8
  155. package/dist/backend/services/catalog-query.service.js +180 -116
  156. package/dist/backend/services/catalog-quick-search.service.js +5 -5
  157. package/dist/backend/services/catalog-write-ports.d.ts +14 -16
  158. package/dist/backend/services/catalog-write-ports.js +11 -70
  159. package/dist/backend/services/category-admin.service.js +29 -5
  160. package/dist/backend/services/content-attribute-rules.d.ts +61 -0
  161. package/dist/backend/services/content-attribute-rules.js +102 -0
  162. package/dist/backend/services/effective-value.sql.d.ts +24 -38
  163. package/dist/backend/services/effective-value.sql.js +37 -87
  164. package/dist/backend/services/gallery-scopes.d.ts +45 -22
  165. package/dist/backend/services/gallery-scopes.js +116 -109
  166. package/dist/backend/services/gallery.service.d.ts +13 -27
  167. package/dist/backend/services/gallery.service.js +75 -199
  168. package/dist/backend/services/grouped.service.js +20 -3
  169. package/dist/backend/services/packaging-unit.service.js +7 -12
  170. package/dist/backend/services/page-builder-content.d.ts +64 -0
  171. package/dist/backend/services/page-builder-content.js +113 -0
  172. package/dist/backend/services/primary-asset-url.d.ts +6 -1
  173. package/dist/backend/services/primary-asset-url.js +9 -4
  174. package/dist/backend/services/product-availability.service.d.ts +16 -3
  175. package/dist/backend/services/product-availability.service.js +58 -21
  176. package/dist/backend/services/product-content.service.d.ts +62 -0
  177. package/dist/backend/services/product-content.service.js +122 -0
  178. package/dist/backend/services/product-editor-preferences.service.d.ts +6 -0
  179. package/dist/backend/services/product-editor-preferences.service.js +12 -0
  180. package/dist/backend/services/product-global-field-rules.d.ts +39 -0
  181. package/dist/backend/services/product-global-field-rules.js +84 -0
  182. package/dist/backend/services/product-link.service.js +14 -16
  183. package/dist/backend/services/product-list-view-service.js +5 -8
  184. package/dist/backend/services/product-page-revalidation.d.ts +9 -0
  185. package/dist/backend/services/product-page-revalidation.js +19 -0
  186. package/dist/backend/services/product-scopes.service.d.ts +18 -8
  187. package/dist/backend/services/product-scopes.service.js +91 -36
  188. package/dist/backend/services/product-value-resolver.service.d.ts +2 -2
  189. package/dist/backend/services/product-value-resolver.service.js +4 -7
  190. package/dist/backend/services/publication-window-sweep.d.ts +61 -7
  191. package/dist/backend/services/publication-window-sweep.js +106 -19
  192. package/dist/backend/services/scheduled-work-probe.d.ts +34 -0
  193. package/dist/backend/services/scheduled-work-probe.js +30 -0
  194. package/dist/backend/services/scope-completeness.d.ts +11 -11
  195. package/dist/backend/services/scope-completeness.js +26 -33
  196. package/dist/backend/services/scope-overview.service.d.ts +24 -24
  197. package/dist/backend/services/scope-overview.service.js +33 -76
  198. package/dist/backend/services/scoped-store-adapters.d.ts +58 -0
  199. package/dist/backend/services/scoped-store-adapters.js +92 -0
  200. package/dist/backend/services/scoped-values-global-only.d.ts +36 -0
  201. package/dist/backend/services/scoped-values-global-only.js +92 -0
  202. package/dist/backend/services/scoped-values-import.d.ts +86 -0
  203. package/dist/backend/services/scoped-values-import.js +320 -0
  204. package/dist/backend/services/scoped-values-read.service.d.ts +56 -0
  205. package/dist/backend/services/scoped-values-read.service.js +289 -0
  206. package/dist/backend/services/scoped-values-save.service.d.ts +79 -0
  207. package/dist/backend/services/scoped-values-save.service.js +675 -0
  208. package/dist/backend/services/scoped-values-state.d.ts +94 -0
  209. package/dist/backend/services/scoped-values-state.js +159 -0
  210. package/dist/backend/services/scoped-values.service.d.ts +36 -0
  211. package/dist/backend/services/scoped-values.service.js +92 -0
  212. package/dist/backend/services/storefront-value-overrides.d.ts +7 -8
  213. package/dist/backend/services/storefront-value-overrides.js +11 -14
  214. package/dist/backend/services/table-maintenance-queue.d.ts +78 -0
  215. package/dist/backend/services/table-maintenance-queue.js +97 -0
  216. package/dist/backend/services/url-key-resolution.service.d.ts +12 -18
  217. package/dist/backend/services/url-key-resolution.service.js +43 -43
  218. package/dist/backend/services/url-key.service.d.ts +87 -135
  219. package/dist/backend/services/url-key.service.js +447 -619
  220. package/dist/manifest.d.ts +51 -1
  221. package/dist/manifest.js +111 -7
  222. package/dist/migrations/20261030T113855_catalog_scope_model_texts.d.ts +36 -0
  223. package/dist/migrations/20261030T113855_catalog_scope_model_texts.js +225 -0
  224. package/dist/migrations/20261030T113859_catalog_scope_model_order_rules.d.ts +18 -0
  225. package/dist/migrations/20261030T113859_catalog_scope_model_order_rules.js +39 -0
  226. package/dist/migrations/20261030T113904_catalog_scope_model_url_keys.d.ts +6 -0
  227. package/dist/migrations/20261030T113904_catalog_scope_model_url_keys.js +119 -0
  228. package/dist/migrations/20261030T113908_catalog_scope_model_media.d.ts +6 -0
  229. package/dist/migrations/20261030T113908_catalog_scope_model_media.js +185 -0
  230. package/dist/migrations/20261104T121504_catalog_product_content_values.d.ts +36 -0
  231. package/dist/migrations/20261104T121504_catalog_product_content_values.js +53 -0
  232. package/dist/migrations/20261107T093126_catalog_sku_unique_among_live.d.ts +33 -0
  233. package/dist/migrations/20261107T093126_catalog_sku_unique_among_live.js +58 -0
  234. package/dist/migrations/20261107T120008_catalog_product_created_at_milliseconds.d.ts +36 -0
  235. package/dist/migrations/20261107T120008_catalog_product_created_at_milliseconds.js +40 -0
  236. package/dist/migrations/20261114T000706_catalog_category_main_image.d.ts +37 -0
  237. package/dist/migrations/20261114T000706_catalog_category_main_image.js +56 -0
  238. package/dist/migrations/index.d.ts +9 -1
  239. package/dist/migrations/index.js +17 -1
  240. package/docs/catalog/attachments.md +53 -43
  241. package/docs/catalog/attribute-sets.md +3 -2
  242. package/docs/catalog/attributes.md +99 -25
  243. package/docs/catalog/category-content.md +9 -3
  244. package/docs/catalog/composite-products.md +5 -3
  245. package/docs/catalog/editing-a-product-at-a-scope.md +151 -0
  246. package/docs/catalog/gallery-and-labels.md +61 -60
  247. package/docs/catalog/packaging-units.md +43 -34
  248. package/docs/catalog/per-channel-per-language-overrides.md +83 -410
  249. package/docs/catalog/product-content.md +184 -0
  250. package/docs/catalog/product-links.md +2 -2
  251. package/docs/catalog/url-keys-and-redirects.md +79 -79
  252. package/docs/catalog.md +113 -31
  253. package/i18n/en.json +317 -274
  254. package/i18n/pl.json +319 -276
  255. package/package.json +13 -12
  256. package/dist/admin/components/AttachmentScopesDialog.d.ts +0 -22
  257. package/dist/admin/components/AttachmentScopesDialog.d.ts.map +0 -1
  258. package/dist/admin/components/AttachmentScopesDialog.js +0 -70
  259. package/dist/admin/components/AttachmentScopesDialog.js.map +0 -1
  260. package/dist/admin/components/PackagingUnitsEditor.d.ts.map +0 -1
  261. package/dist/admin/components/PackagingUnitsEditor.js.map +0 -1
  262. package/dist/admin/components/ProductAttachmentsSection.d.ts.map +0 -1
  263. package/dist/admin/components/ProductAttachmentsSection.js.map +0 -1
  264. package/dist/admin/components/ProductAttributesTab.d.ts.map +0 -1
  265. package/dist/admin/components/ProductAttributesTab.js.map +0 -1
  266. package/dist/admin/components/ProductGallerySection.d.ts.map +0 -1
  267. package/dist/admin/components/ProductGallerySection.js.map +0 -1
  268. package/dist/admin/components/ProductInventoryTab.d.ts.map +0 -1
  269. package/dist/admin/components/ProductInventoryTab.js.map +0 -1
  270. package/dist/admin/components/ProductOrderRulesCard.d.ts.map +0 -1
  271. package/dist/admin/components/ProductOrderRulesCard.js.map +0 -1
  272. package/dist/admin/components/ProductScopeControls.d.ts +0 -31
  273. package/dist/admin/components/ProductScopeControls.d.ts.map +0 -1
  274. package/dist/admin/components/ProductScopeControls.js +0 -243
  275. package/dist/admin/components/ProductScopeControls.js.map +0 -1
  276. package/dist/admin/components/ProductScopeEditor.d.ts +0 -88
  277. package/dist/admin/components/ProductScopeEditor.d.ts.map +0 -1
  278. package/dist/admin/components/ProductScopeEditor.js +0 -396
  279. package/dist/admin/components/ProductScopeEditor.js.map +0 -1
  280. package/dist/admin/components/ProductScopeOverview.d.ts.map +0 -1
  281. package/dist/admin/components/ProductScopeOverview.js.map +0 -1
  282. package/dist/admin/components/ProductStatusPills.d.ts.map +0 -1
  283. package/dist/admin/components/ProductStatusPills.js.map +0 -1
  284. package/dist/admin/components/ProductUrlKeysPanel.d.ts +0 -17
  285. package/dist/admin/components/ProductUrlKeysPanel.d.ts.map +0 -1
  286. package/dist/admin/components/ProductUrlKeysPanel.js +0 -215
  287. package/dist/admin/components/ProductUrlKeysPanel.js.map +0 -1
  288. package/dist/admin/components/ProductsBulkEditDialog.d.ts.map +0 -1
  289. package/dist/admin/components/ProductsBulkEditDialog.js.map +0 -1
  290. package/dist/admin/components/ScopedDialogParts.d.ts +0 -23
  291. package/dist/admin/components/ScopedDialogParts.d.ts.map +0 -1
  292. package/dist/admin/components/ScopedDialogParts.js +0 -16
  293. package/dist/admin/components/ScopedDialogParts.js.map +0 -1
  294. package/dist/admin/index.d.ts.map +0 -1
  295. package/dist/admin/index.js.map +0 -1
  296. package/dist/admin/lib/attribute-scope.d.ts.map +0 -1
  297. package/dist/admin/lib/attribute-scope.js.map +0 -1
  298. package/dist/admin/lib/bulk-operation-log-text.d.ts.map +0 -1
  299. package/dist/admin/lib/bulk-operation-log-text.js.map +0 -1
  300. package/dist/admin/lib/media-scopes.d.ts +0 -41
  301. package/dist/admin/lib/media-scopes.d.ts.map +0 -1
  302. package/dist/admin/lib/media-scopes.js +0 -66
  303. package/dist/admin/lib/media-scopes.js.map +0 -1
  304. package/dist/admin/lib/product-labels.d.ts.map +0 -1
  305. package/dist/admin/lib/product-labels.js.map +0 -1
  306. package/dist/admin/lib/product-scope-drafts.d.ts +0 -77
  307. package/dist/admin/lib/product-scope-drafts.d.ts.map +0 -1
  308. package/dist/admin/lib/product-scope-drafts.js +0 -133
  309. package/dist/admin/lib/product-scope-drafts.js.map +0 -1
  310. package/dist/admin/lib/product-scopes-api.d.ts.map +0 -1
  311. package/dist/admin/lib/product-scopes-api.js.map +0 -1
  312. package/dist/admin/lib/product-url-keys-api.d.ts.map +0 -1
  313. package/dist/admin/lib/product-url-keys-api.js.map +0 -1
  314. package/dist/admin/lib/resolve-product-selection.d.ts.map +0 -1
  315. package/dist/admin/lib/resolve-product-selection.js.map +0 -1
  316. package/dist/admin/lib/scope-overview.d.ts.map +0 -1
  317. package/dist/admin/lib/scope-overview.js.map +0 -1
  318. package/dist/admin/pages/AttachmentTypesPage.d.ts.map +0 -1
  319. package/dist/admin/pages/AttachmentTypesPage.js.map +0 -1
  320. package/dist/admin/pages/AttributeSetsPage.d.ts.map +0 -1
  321. package/dist/admin/pages/AttributeSetsPage.js.map +0 -1
  322. package/dist/admin/pages/AttributesManager.d.ts.map +0 -1
  323. package/dist/admin/pages/AttributesManager.js.map +0 -1
  324. package/dist/admin/pages/BulkOperationDetailPage.d.ts.map +0 -1
  325. package/dist/admin/pages/BulkOperationDetailPage.js.map +0 -1
  326. package/dist/admin/pages/BulkOperationsPage.d.ts.map +0 -1
  327. package/dist/admin/pages/BulkOperationsPage.js.map +0 -1
  328. package/dist/admin/pages/CategoriesTree.d.ts.map +0 -1
  329. package/dist/admin/pages/CategoriesTree.js.map +0 -1
  330. package/dist/admin/pages/CategoryContentPage.d.ts.map +0 -1
  331. package/dist/admin/pages/CategoryContentPage.js.map +0 -1
  332. package/dist/admin/pages/ProductEditor.d.ts.map +0 -1
  333. package/dist/admin/pages/ProductEditor.js.map +0 -1
  334. package/dist/admin/pages/ProductsList.d.ts.map +0 -1
  335. package/dist/admin/pages/ProductsList.js.map +0 -1
  336. package/dist/backend/admin-search-provider.d.ts.map +0 -1
  337. package/dist/backend/admin-search-provider.js.map +0 -1
  338. package/dist/backend/commands/attribute-commands.d.ts.map +0 -1
  339. package/dist/backend/commands/attribute-commands.js.map +0 -1
  340. package/dist/backend/demo/reset.d.ts.map +0 -1
  341. package/dist/backend/demo/reset.js.map +0 -1
  342. package/dist/backend/demo/rows.d.ts.map +0 -1
  343. package/dist/backend/demo/rows.js.map +0 -1
  344. package/dist/backend/demo/seed.d.ts.map +0 -1
  345. package/dist/backend/demo/seed.js.map +0 -1
  346. package/dist/backend/entities/attachment-type.entity.d.ts.map +0 -1
  347. package/dist/backend/entities/attachment-type.entity.js.map +0 -1
  348. package/dist/backend/entities/attribute-set-attribute.entity.d.ts.map +0 -1
  349. package/dist/backend/entities/attribute-set-attribute.entity.js.map +0 -1
  350. package/dist/backend/entities/attribute-set.entity.d.ts.map +0 -1
  351. package/dist/backend/entities/attribute-set.entity.js.map +0 -1
  352. package/dist/backend/entities/bulk-operation.entity.d.ts.map +0 -1
  353. package/dist/backend/entities/bulk-operation.entity.js.map +0 -1
  354. package/dist/backend/entities/bundle-slot-option.entity.d.ts.map +0 -1
  355. package/dist/backend/entities/bundle-slot-option.entity.js.map +0 -1
  356. package/dist/backend/entities/bundle-slot.entity.d.ts.map +0 -1
  357. package/dist/backend/entities/bundle-slot.entity.js.map +0 -1
  358. package/dist/backend/entities/category.entity.d.ts.map +0 -1
  359. package/dist/backend/entities/category.entity.js.map +0 -1
  360. package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts +0 -14
  361. package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts.map +0 -1
  362. package/dist/backend/entities/gallery-item-channel-hidden.entity.js +0 -42
  363. package/dist/backend/entities/gallery-item-channel-hidden.entity.js.map +0 -1
  364. package/dist/backend/entities/gallery-item-channel-label.entity.d.ts +0 -18
  365. package/dist/backend/entities/gallery-item-channel-label.entity.d.ts.map +0 -1
  366. package/dist/backend/entities/gallery-item-channel-label.entity.js +0 -49
  367. package/dist/backend/entities/gallery-item-channel-label.entity.js.map +0 -1
  368. package/dist/backend/entities/gallery-item-label.entity.d.ts.map +0 -1
  369. package/dist/backend/entities/gallery-item-label.entity.js.map +0 -1
  370. package/dist/backend/entities/gallery-item.entity.d.ts.map +0 -1
  371. package/dist/backend/entities/gallery-item.entity.js.map +0 -1
  372. package/dist/backend/entities/grouped-item.entity.d.ts.map +0 -1
  373. package/dist/backend/entities/grouped-item.entity.js.map +0 -1
  374. package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts +0 -13
  375. package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts.map +0 -1
  376. package/dist/backend/entities/product-attachment-channel-hidden.entity.js +0 -41
  377. package/dist/backend/entities/product-attachment-channel-hidden.entity.js.map +0 -1
  378. package/dist/backend/entities/product-attachment.entity.d.ts.map +0 -1
  379. package/dist/backend/entities/product-attachment.entity.js.map +0 -1
  380. package/dist/backend/entities/product-attribute.entity.d.ts.map +0 -1
  381. package/dist/backend/entities/product-attribute.entity.js.map +0 -1
  382. package/dist/backend/entities/product-channel-language-scope.entity.d.ts.map +0 -1
  383. package/dist/backend/entities/product-channel-language-scope.entity.js.map +0 -1
  384. package/dist/backend/entities/product-channel-scope.entity.d.ts.map +0 -1
  385. package/dist/backend/entities/product-channel-scope.entity.js.map +0 -1
  386. package/dist/backend/entities/product-editor-preference.entity.d.ts.map +0 -1
  387. package/dist/backend/entities/product-editor-preference.entity.js.map +0 -1
  388. package/dist/backend/entities/product-link.entity.d.ts.map +0 -1
  389. package/dist/backend/entities/product-link.entity.js.map +0 -1
  390. package/dist/backend/entities/product-list-saved-view.entity.d.ts.map +0 -1
  391. package/dist/backend/entities/product-list-saved-view.entity.js.map +0 -1
  392. package/dist/backend/entities/product-packaging-unit.entity.d.ts.map +0 -1
  393. package/dist/backend/entities/product-packaging-unit.entity.js.map +0 -1
  394. package/dist/backend/entities/product-url-key.entity.d.ts.map +0 -1
  395. package/dist/backend/entities/product-url-key.entity.js.map +0 -1
  396. package/dist/backend/entities/product-url-redirect.entity.d.ts.map +0 -1
  397. package/dist/backend/entities/product-url-redirect.entity.js.map +0 -1
  398. package/dist/backend/entities/product-value-override.entity.d.ts.map +0 -1
  399. package/dist/backend/entities/product-value-override.entity.js.map +0 -1
  400. package/dist/backend/entities/product-variant.entity.d.ts.map +0 -1
  401. package/dist/backend/entities/product-variant.entity.js.map +0 -1
  402. package/dist/backend/entities/product.entity.d.ts.map +0 -1
  403. package/dist/backend/entities/product.entity.js.map +0 -1
  404. package/dist/backend/index.d.ts.map +0 -1
  405. package/dist/backend/index.js.map +0 -1
  406. package/dist/backend/plugin.d.ts.map +0 -1
  407. package/dist/backend/plugin.js.map +0 -1
  408. package/dist/backend/prompt-tools.d.ts.map +0 -1
  409. package/dist/backend/prompt-tools.js.map +0 -1
  410. package/dist/backend/routes.admin.d.ts.map +0 -1
  411. package/dist/backend/routes.admin.js.map +0 -1
  412. package/dist/backend/routes.admin.url-keys.d.ts.map +0 -1
  413. package/dist/backend/routes.admin.url-keys.js.map +0 -1
  414. package/dist/backend/routes.api-key.d.ts.map +0 -1
  415. package/dist/backend/routes.api-key.js.map +0 -1
  416. package/dist/backend/routes.external.d.ts.map +0 -1
  417. package/dist/backend/routes.external.js.map +0 -1
  418. package/dist/backend/routes.public.d.ts.map +0 -1
  419. package/dist/backend/routes.public.js.map +0 -1
  420. package/dist/backend/routes.public.url-keys.d.ts.map +0 -1
  421. package/dist/backend/routes.public.url-keys.js.map +0 -1
  422. package/dist/backend/saved-view-actor.d.ts.map +0 -1
  423. package/dist/backend/saved-view-actor.js.map +0 -1
  424. package/dist/backend/services/asset-references.d.ts.map +0 -1
  425. package/dist/backend/services/asset-references.js.map +0 -1
  426. package/dist/backend/services/attachment-packaging-scopes.d.ts.map +0 -1
  427. package/dist/backend/services/attachment-packaging-scopes.js.map +0 -1
  428. package/dist/backend/services/attachment.service.d.ts.map +0 -1
  429. package/dist/backend/services/attachment.service.js.map +0 -1
  430. package/dist/backend/services/attribute-option-validator.d.ts.map +0 -1
  431. package/dist/backend/services/attribute-option-validator.js.map +0 -1
  432. package/dist/backend/services/attribute-scope-preview.d.ts.map +0 -1
  433. package/dist/backend/services/attribute-scope-preview.js.map +0 -1
  434. package/dist/backend/services/attribute-set-validations.d.ts.map +0 -1
  435. package/dist/backend/services/attribute-set-validations.js.map +0 -1
  436. package/dist/backend/services/attribute-set.service.d.ts.map +0 -1
  437. package/dist/backend/services/attribute-set.service.js.map +0 -1
  438. package/dist/backend/services/attribute-type-mapping.d.ts.map +0 -1
  439. package/dist/backend/services/attribute-type-mapping.js.map +0 -1
  440. package/dist/backend/services/attribute-value-key.service.d.ts.map +0 -1
  441. package/dist/backend/services/attribute-value-key.service.js.map +0 -1
  442. package/dist/backend/services/audit-references.d.ts.map +0 -1
  443. package/dist/backend/services/audit-references.js.map +0 -1
  444. package/dist/backend/services/bulk-operation-queue.d.ts.map +0 -1
  445. package/dist/backend/services/bulk-operation-queue.js.map +0 -1
  446. package/dist/backend/services/bulk-operation.service.d.ts.map +0 -1
  447. package/dist/backend/services/bulk-operation.service.js.map +0 -1
  448. package/dist/backend/services/bundle.service.d.ts.map +0 -1
  449. package/dist/backend/services/bundle.service.js.map +0 -1
  450. package/dist/backend/services/catalog-admin-search.service.d.ts.map +0 -1
  451. package/dist/backend/services/catalog-admin-search.service.js.map +0 -1
  452. package/dist/backend/services/catalog-admin.service.d.ts.map +0 -1
  453. package/dist/backend/services/catalog-admin.service.js.map +0 -1
  454. package/dist/backend/services/catalog-attribute-read.service.d.ts.map +0 -1
  455. package/dist/backend/services/catalog-attribute-read.service.js.map +0 -1
  456. package/dist/backend/services/catalog-bulk-import.service.d.ts.map +0 -1
  457. package/dist/backend/services/catalog-bulk-import.service.js.map +0 -1
  458. package/dist/backend/services/catalog-bulk-update.service.d.ts.map +0 -1
  459. package/dist/backend/services/catalog-bulk-update.service.js.map +0 -1
  460. package/dist/backend/services/catalog-category-read.service.d.ts.map +0 -1
  461. package/dist/backend/services/catalog-category-read.service.js.map +0 -1
  462. package/dist/backend/services/catalog-org-price-decorator.d.ts.map +0 -1
  463. package/dist/backend/services/catalog-org-price-decorator.js.map +0 -1
  464. package/dist/backend/services/catalog-product-filter.service.d.ts.map +0 -1
  465. package/dist/backend/services/catalog-product-filter.service.js.map +0 -1
  466. package/dist/backend/services/catalog-product-read.service.d.ts.map +0 -1
  467. package/dist/backend/services/catalog-product-read.service.js.map +0 -1
  468. package/dist/backend/services/catalog-query.service.d.ts.map +0 -1
  469. package/dist/backend/services/catalog-query.service.js.map +0 -1
  470. package/dist/backend/services/catalog-quick-search.service.d.ts.map +0 -1
  471. package/dist/backend/services/catalog-quick-search.service.js.map +0 -1
  472. package/dist/backend/services/catalog-write-ports.d.ts.map +0 -1
  473. package/dist/backend/services/catalog-write-ports.js.map +0 -1
  474. package/dist/backend/services/category-admin.service.d.ts.map +0 -1
  475. package/dist/backend/services/category-admin.service.js.map +0 -1
  476. package/dist/backend/services/channel-url-facts.d.ts.map +0 -1
  477. package/dist/backend/services/channel-url-facts.js.map +0 -1
  478. package/dist/backend/services/effective-value.sql.d.ts.map +0 -1
  479. package/dist/backend/services/effective-value.sql.js.map +0 -1
  480. package/dist/backend/services/gallery-scopes.d.ts.map +0 -1
  481. package/dist/backend/services/gallery-scopes.js.map +0 -1
  482. package/dist/backend/services/gallery.service.d.ts.map +0 -1
  483. package/dist/backend/services/gallery.service.js.map +0 -1
  484. package/dist/backend/services/grouped.service.d.ts.map +0 -1
  485. package/dist/backend/services/grouped.service.js.map +0 -1
  486. package/dist/backend/services/label-resolver.d.ts.map +0 -1
  487. package/dist/backend/services/label-resolver.js.map +0 -1
  488. package/dist/backend/services/linkable-asset.d.ts.map +0 -1
  489. package/dist/backend/services/linkable-asset.js.map +0 -1
  490. package/dist/backend/services/packaging-unit.service.d.ts.map +0 -1
  491. package/dist/backend/services/packaging-unit.service.js.map +0 -1
  492. package/dist/backend/services/primary-asset-url.d.ts.map +0 -1
  493. package/dist/backend/services/primary-asset-url.js.map +0 -1
  494. package/dist/backend/services/product-availability.service.d.ts.map +0 -1
  495. package/dist/backend/services/product-availability.service.js.map +0 -1
  496. package/dist/backend/services/product-availability.sql.d.ts.map +0 -1
  497. package/dist/backend/services/product-availability.sql.js.map +0 -1
  498. package/dist/backend/services/product-editor-preferences.service.d.ts.map +0 -1
  499. package/dist/backend/services/product-editor-preferences.service.js.map +0 -1
  500. package/dist/backend/services/product-link.service.d.ts.map +0 -1
  501. package/dist/backend/services/product-link.service.js.map +0 -1
  502. package/dist/backend/services/product-list-view-service.d.ts.map +0 -1
  503. package/dist/backend/services/product-list-view-service.js.map +0 -1
  504. package/dist/backend/services/product-overrides.service.d.ts +0 -84
  505. package/dist/backend/services/product-overrides.service.d.ts.map +0 -1
  506. package/dist/backend/services/product-overrides.service.js +0 -211
  507. package/dist/backend/services/product-overrides.service.js.map +0 -1
  508. package/dist/backend/services/product-page-revalidation.d.ts.map +0 -1
  509. package/dist/backend/services/product-page-revalidation.js.map +0 -1
  510. package/dist/backend/services/product-scope-context.service.d.ts +0 -36
  511. package/dist/backend/services/product-scope-context.service.d.ts.map +0 -1
  512. package/dist/backend/services/product-scope-context.service.js +0 -107
  513. package/dist/backend/services/product-scope-context.service.js.map +0 -1
  514. package/dist/backend/services/product-scopes.service.d.ts.map +0 -1
  515. package/dist/backend/services/product-scopes.service.js.map +0 -1
  516. package/dist/backend/services/product-summary-text.d.ts.map +0 -1
  517. package/dist/backend/services/product-summary-text.js.map +0 -1
  518. package/dist/backend/services/product-type-validations.d.ts.map +0 -1
  519. package/dist/backend/services/product-type-validations.js.map +0 -1
  520. package/dist/backend/services/product-value-resolver.service.d.ts.map +0 -1
  521. package/dist/backend/services/product-value-resolver.service.js.map +0 -1
  522. package/dist/backend/services/publication-window-sweep.d.ts.map +0 -1
  523. package/dist/backend/services/publication-window-sweep.js.map +0 -1
  524. package/dist/backend/services/scope-completeness.d.ts.map +0 -1
  525. package/dist/backend/services/scope-completeness.js.map +0 -1
  526. package/dist/backend/services/scope-overview.service.d.ts.map +0 -1
  527. package/dist/backend/services/scope-overview.service.js.map +0 -1
  528. package/dist/backend/services/sql-id-arrays.d.ts.map +0 -1
  529. package/dist/backend/services/sql-id-arrays.js.map +0 -1
  530. package/dist/backend/services/storefront-value-overrides.d.ts.map +0 -1
  531. package/dist/backend/services/storefront-value-overrides.js.map +0 -1
  532. package/dist/backend/services/system-attribute-scopes.d.ts.map +0 -1
  533. package/dist/backend/services/system-attribute-scopes.js.map +0 -1
  534. package/dist/backend/services/url-key-resolution.service.d.ts.map +0 -1
  535. package/dist/backend/services/url-key-resolution.service.js.map +0 -1
  536. package/dist/backend/services/url-key.service.d.ts.map +0 -1
  537. package/dist/backend/services/url-key.service.js.map +0 -1
  538. package/dist/backend/services/viewer-organization.d.ts.map +0 -1
  539. package/dist/backend/services/viewer-organization.js.map +0 -1
  540. package/dist/manifest.d.ts.map +0 -1
  541. package/dist/manifest.js.map +0 -1
  542. package/dist/migrations/20260429T064146_catalog_attribute_sets_init.d.ts.map +0 -1
  543. package/dist/migrations/20260429T064146_catalog_attribute_sets_init.js.map +0 -1
  544. package/dist/migrations/20260429T070004_catalog_product_attribute_extensions.d.ts.map +0 -1
  545. package/dist/migrations/20260429T070004_catalog_product_attribute_extensions.js.map +0 -1
  546. package/dist/migrations/20260429T102322_catalog_product_type_and_virtual_fields.d.ts.map +0 -1
  547. package/dist/migrations/20260429T102322_catalog_product_type_and_virtual_fields.js.map +0 -1
  548. package/dist/migrations/20260429T111839_catalog_gallery_items_and_labels.d.ts.map +0 -1
  549. package/dist/migrations/20260429T111839_catalog_gallery_items_and_labels.js.map +0 -1
  550. package/dist/migrations/20260429T112543_catalog_product_attachments.d.ts.map +0 -1
  551. package/dist/migrations/20260429T112543_catalog_product_attachments.js.map +0 -1
  552. package/dist/migrations/20260429T123726_catalog_product_links.d.ts.map +0 -1
  553. package/dist/migrations/20260429T123726_catalog_product_links.js.map +0 -1
  554. package/dist/migrations/20260429T130803_catalog_grouped_and_bundle.d.ts.map +0 -1
  555. package/dist/migrations/20260429T130803_catalog_grouped_and_bundle.js.map +0 -1
  556. package/dist/migrations/20260501T185835_catalog_product_attribute_is_comparable.d.ts.map +0 -1
  557. package/dist/migrations/20260501T185835_catalog_product_attribute_is_comparable.js.map +0 -1
  558. package/dist/migrations/20260505T060113_catalog_attribute_options_and_flags.d.ts.map +0 -1
  559. package/dist/migrations/20260505T060113_catalog_attribute_options_and_flags.js.map +0 -1
  560. package/dist/migrations/20260515T082629_catalog_attribute_mass_editable.d.ts.map +0 -1
  561. package/dist/migrations/20260515T082629_catalog_attribute_mass_editable.js.map +0 -1
  562. package/dist/migrations/20260526T124736_catalog_product_status_inactive.d.ts.map +0 -1
  563. package/dist/migrations/20260526T124736_catalog_product_status_inactive.js.map +0 -1
  564. package/dist/migrations/20260611T140346_catalog_product_value_overrides_init.d.ts.map +0 -1
  565. package/dist/migrations/20260611T140346_catalog_product_value_overrides_init.js.map +0 -1
  566. package/dist/migrations/20260611T140400_catalog_attribute_quick_searchable.d.ts.map +0 -1
  567. package/dist/migrations/20260611T140400_catalog_attribute_quick_searchable.js.map +0 -1
  568. package/dist/migrations/20260611T140407_catalog_bulk_operations.d.ts.map +0 -1
  569. package/dist/migrations/20260611T140407_catalog_bulk_operations.js.map +0 -1
  570. package/dist/migrations/20260611T140408_catalog_bulk_operation_logs.d.ts.map +0 -1
  571. package/dist/migrations/20260611T140408_catalog_bulk_operation_logs.js.map +0 -1
  572. package/dist/migrations/20260611T140412_catalog_product_packaging_units.d.ts.map +0 -1
  573. package/dist/migrations/20260611T140412_catalog_product_packaging_units.js.map +0 -1
  574. package/dist/migrations/20260718T060659_catalog_bulk_operation_revert_state.d.ts.map +0 -1
  575. package/dist/migrations/20260718T060659_catalog_bulk_operation_revert_state.js.map +0 -1
  576. package/dist/migrations/20260718T200343_catalog_category_custom_field_values.d.ts.map +0 -1
  577. package/dist/migrations/20260718T200343_catalog_category_custom_field_values.js.map +0 -1
  578. package/dist/migrations/20260723T230401_catalog_attributes_on_custom_fields.d.ts.map +0 -1
  579. package/dist/migrations/20260723T230401_catalog_attributes_on_custom_fields.js.map +0 -1
  580. package/dist/migrations/20260804T152604_catalog_widen_product_sku.d.ts.map +0 -1
  581. package/dist/migrations/20260804T152604_catalog_widen_product_sku.js.map +0 -1
  582. package/dist/migrations/20260804T160244_catalog_category_activation.d.ts.map +0 -1
  583. package/dist/migrations/20260804T160244_catalog_category_activation.js.map +0 -1
  584. package/dist/migrations/20260912T094557_catalog_sales_channel_products.d.ts.map +0 -1
  585. package/dist/migrations/20260912T094557_catalog_sales_channel_products.js.map +0 -1
  586. package/dist/migrations/20260912T094623_catalog_sales_channel_categories.d.ts.map +0 -1
  587. package/dist/migrations/20260912T094623_catalog_sales_channel_categories.js.map +0 -1
  588. package/dist/migrations/20260925T125527_catalog_inventory_columns.d.ts.map +0 -1
  589. package/dist/migrations/20260925T125527_catalog_inventory_columns.js.map +0 -1
  590. package/dist/migrations/20261008T080839_catalog_product_attribute_is_price_rule.d.ts.map +0 -1
  591. package/dist/migrations/20261008T080839_catalog_product_attribute_is_price_rule.js.map +0 -1
  592. package/dist/migrations/20261008T092714_catalog_category_content.d.ts.map +0 -1
  593. package/dist/migrations/20261008T092714_catalog_category_content.js.map +0 -1
  594. package/dist/migrations/20261014T170531_catalog_product_list_saved_views.d.ts.map +0 -1
  595. package/dist/migrations/20261014T170531_catalog_product_list_saved_views.js.map +0 -1
  596. package/dist/migrations/20261016T082008_catalog_order_rules.d.ts.map +0 -1
  597. package/dist/migrations/20261016T082008_catalog_order_rules.js.map +0 -1
  598. package/dist/migrations/20261022T035133_catalog_product_scopes.d.ts.map +0 -1
  599. package/dist/migrations/20261022T035133_catalog_product_scopes.js.map +0 -1
  600. package/dist/migrations/20261022T054223_catalog_product_url_keys.d.ts.map +0 -1
  601. package/dist/migrations/20261022T054223_catalog_product_url_keys.js.map +0 -1
  602. package/dist/migrations/20261022T111811_catalog_price_fields_removed.d.ts.map +0 -1
  603. package/dist/migrations/20261022T111811_catalog_price_fields_removed.js.map +0 -1
  604. package/dist/migrations/20261022T182523_catalog_admin_name_keys.d.ts.map +0 -1
  605. package/dist/migrations/20261022T182523_catalog_admin_name_keys.js.map +0 -1
  606. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.d.ts.map +0 -1
  607. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.js.map +0 -1
  608. package/dist/migrations/20261026T033453_catalog_product_media_scopes.d.ts.map +0 -1
  609. package/dist/migrations/20261026T033453_catalog_product_media_scopes.js.map +0 -1
  610. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.d.ts.map +0 -1
  611. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.js.map +0 -1
  612. package/dist/migrations/index.d.ts.map +0 -1
  613. package/dist/migrations/index.js.map +0 -1
  614. package/dist/ports/index.d.ts.map +0 -1
  615. package/dist/ports/index.js.map +0 -1
@@ -0,0 +1,56 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * `categories.main_image_asset_id`, its foreign key to `assets` and its index
4
+ * (feature 013 — a catalogue category's main image from the assets library),
5
+ * created by `catalog`.
6
+ *
7
+ * `Category.mainImageAssetId` maps the column. Until issue #611 only
8
+ * `assets_library`'s frozen `Migration20260505T102206AssetsLibraryInit`
9
+ * created the three, so another module's migration decided this module's
10
+ * schema — the write the migration table-ownership rule (feature 097, R2)
11
+ * refuses. Declaring `catalog` in `assets_library` was no remedy: this module
12
+ * declares `assets_library`, so that closes a cycle. The frozen init keeps
13
+ * its class name and lost only these statements, the shape D-226 gave the
14
+ * `cms_pages` index the same body carried
15
+ * (`Migration20260912T125709CmsPageBodyAssetRefIndex`) and feature 134 gave
16
+ * the stock columns `inventory` carried
17
+ * (`Migration20260925T125527CatalogInventoryColumns`).
18
+ *
19
+ * The closure holds in the direction the SQL runs: this module declares
20
+ * `assets_library`, so `assets` exists by the time this runs.
21
+ *
22
+ * **`if not exists` and a `pg_constraint` probe**, because every database
23
+ * that ran the frozen init already has all three, and there this must be a
24
+ * no-op. PostgreSQL has no `add constraint if not exists`; the probe form
25
+ * follows `20260925T125527`. Types, names and `on delete set null` are the
26
+ * frozen statements verbatim, so the two paths reach one schema.
27
+ *
28
+ * **`down()` is deliberately empty**, for `20260925T125527`'s reason:
29
+ * `categories` is created by the platform's `core_foundation_init`, which a
30
+ * hard uninstall of this module never reverts, so the rows outlive `catalog`
31
+ * and dropping the column would silently lose every category's main image.
32
+ */
33
+ export class Migration20261114T000706CatalogCategoryMainImage extends Migration {
34
+ async up() {
35
+ this.addSql('alter table "categories" add column if not exists "main_image_asset_id" uuid null;');
36
+ this.addSql(`
37
+ do $$
38
+ begin
39
+ if not exists (
40
+ select 1 from pg_constraint
41
+ where "conname" = 'categories_main_image_fk'
42
+ and "conrelid" = '"categories"'::regclass
43
+ ) then
44
+ alter table "categories"
45
+ add constraint "categories_main_image_fk" foreign key ("main_image_asset_id")
46
+ references "assets" ("id") on delete set null;
47
+ end if;
48
+ end $$;
49
+ `);
50
+ this.addSql('create index if not exists "categories_main_image_asset_id_index" on "categories" ("main_image_asset_id");');
51
+ }
52
+ async down() {
53
+ // Intentionally empty — see the class comment.
54
+ }
55
+ }
56
+ //# sourceMappingURL=20261114T000706_catalog_category_main_image.js.map
@@ -61,6 +61,14 @@ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_
61
61
  import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
62
62
  import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
63
63
  import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
64
+ import { Migration20261030T113855CatalogScopeModelTexts } from './20261030T113855_catalog_scope_model_texts.js';
65
+ import { Migration20261030T113859CatalogScopeModelOrderRules } from './20261030T113859_catalog_scope_model_order_rules.js';
66
+ import { Migration20261030T113904CatalogScopeModelUrlKeys } from './20261030T113904_catalog_scope_model_url_keys.js';
67
+ import { Migration20261030T113908CatalogScopeModelMedia } from './20261030T113908_catalog_scope_model_media.js';
68
+ import { Migration20261104T121504CatalogProductContentValues } from './20261104T121504_catalog_product_content_values.js';
69
+ import { Migration20261107T093126CatalogSkuUniqueAmongLive } from './20261107T093126_catalog_sku_unique_among_live.js';
70
+ import { Migration20261107T120008CatalogProductCreatedAtMilliseconds } from './20261107T120008_catalog_product_created_at_milliseconds.js';
71
+ import { Migration20261114T000706CatalogCategoryMainImage } from './20261114T000706_catalog_category_main_image.js';
64
72
  export declare const migrations: (typeof Migration20260429T070004CatalogProductAttributeExtensions)[];
65
- export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, };
73
+ export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, Migration20261030T113855CatalogScopeModelTexts, Migration20261030T113859CatalogScopeModelOrderRules, Migration20261030T113904CatalogScopeModelUrlKeys, Migration20261030T113908CatalogScopeModelMedia, Migration20261104T121504CatalogProductContentValues, Migration20261107T093126CatalogSkuUniqueAmongLive, Migration20261107T120008CatalogProductCreatedAtMilliseconds, Migration20261114T000706CatalogCategoryMainImage, };
66
74
  //# sourceMappingURL=index.d.ts.map
@@ -61,6 +61,14 @@ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_
61
61
  import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
62
62
  import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
63
63
  import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
64
+ import { Migration20261030T113855CatalogScopeModelTexts } from './20261030T113855_catalog_scope_model_texts.js';
65
+ import { Migration20261030T113859CatalogScopeModelOrderRules } from './20261030T113859_catalog_scope_model_order_rules.js';
66
+ import { Migration20261030T113904CatalogScopeModelUrlKeys } from './20261030T113904_catalog_scope_model_url_keys.js';
67
+ import { Migration20261030T113908CatalogScopeModelMedia } from './20261030T113908_catalog_scope_model_media.js';
68
+ import { Migration20261104T121504CatalogProductContentValues } from './20261104T121504_catalog_product_content_values.js';
69
+ import { Migration20261107T093126CatalogSkuUniqueAmongLive } from './20261107T093126_catalog_sku_unique_among_live.js';
70
+ import { Migration20261107T120008CatalogProductCreatedAtMilliseconds } from './20261107T120008_catalog_product_created_at_milliseconds.js';
71
+ import { Migration20261114T000706CatalogCategoryMainImage } from './20261114T000706_catalog_category_main_image.js';
64
72
  export const migrations = [
65
73
  Migration20260429T064146CatalogAttributeSetsInit,
66
74
  Migration20260429T070004CatalogProductAttributeExtensions,
@@ -97,6 +105,14 @@ export const migrations = [
97
105
  Migration20261025T222634CatalogProductStatusDropDraft,
98
106
  Migration20261026T033453CatalogProductMediaScopes,
99
107
  Migration20261026T084533CatalogAttachmentPackagingTranslations,
108
+ Migration20261030T113855CatalogScopeModelTexts,
109
+ Migration20261030T113859CatalogScopeModelOrderRules,
110
+ Migration20261030T113904CatalogScopeModelUrlKeys,
111
+ Migration20261030T113908CatalogScopeModelMedia,
112
+ Migration20261104T121504CatalogProductContentValues,
113
+ Migration20261107T093126CatalogSkuUniqueAmongLive,
114
+ Migration20261107T120008CatalogProductCreatedAtMilliseconds,
115
+ Migration20261114T000706CatalogCategoryMainImage,
100
116
  ];
101
- export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, };
117
+ export { Migration20260429T064146CatalogAttributeSetsInit, Migration20260429T070004CatalogProductAttributeExtensions, Migration20260429T102322CatalogProductTypeAndVirtualFields, Migration20260429T111839CatalogGalleryItemsAndLabels, Migration20260429T112543CatalogProductAttachments, Migration20260429T123726CatalogProductLinks, Migration20260429T130803CatalogGroupedAndBundle, Migration20260501T185835CatalogProductAttributeIsComparable, Migration20260505T060113CatalogAttributeOptionsAndFlags, Migration20260515T082629CatalogAttributeMassEditable, Migration20260526T124736CatalogProductStatusInactive, Migration20260611T140346CatalogProductValueOverridesInit, Migration20260611T140400CatalogAttributeQuickSearchable, Migration20260611T140407CatalogBulkOperations, Migration20260611T140408CatalogBulkOperationLogs, Migration20260611T140412CatalogProductPackagingUnits, Migration20260718T060659CatalogBulkOperationRevertState, Migration20260718T200343CatalogCategoryCustomFieldValues, Migration20260723T230401CatalogAttributesOnCustomFields, Migration20260804T152604CatalogWidenProductSku, Migration20260804T160244CatalogCategoryActivation, Migration20260912T094557CatalogSalesChannelProducts, Migration20260912T094623CatalogSalesChannelCategories, Migration20260925T125527CatalogInventoryColumns, Migration20261008T080839CatalogProductAttributeIsPriceRule, Migration20261008T092714CatalogCategoryContent, Migration20261014T170531CatalogProductListSavedViews, Migration20261016T082008CatalogOrderRules, Migration20261022T035133CatalogProductScopes, Migration20261022T054223CatalogProductUrlKeys, Migration20261022T111811CatalogPriceFieldsRemoved, Migration20261022T182523CatalogAdminNameKeys, Migration20261025T222634CatalogProductStatusDropDraft, Migration20261026T033453CatalogProductMediaScopes, Migration20261026T084533CatalogAttachmentPackagingTranslations, Migration20261030T113855CatalogScopeModelTexts, Migration20261030T113859CatalogScopeModelOrderRules, Migration20261030T113904CatalogScopeModelUrlKeys, Migration20261030T113908CatalogScopeModelMedia, Migration20261104T121504CatalogProductContentValues, Migration20261107T093126CatalogSkuUniqueAmongLive, Migration20261107T120008CatalogProductCreatedAtMilliseconds, Migration20261114T000706CatalogCategoryMainImage, };
102
118
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  ---
2
- title: Product Attachments
2
+ title: Product attachments
3
3
  ---
4
4
 
5
- # Product Attachments
5
+ # Product attachments
6
6
 
7
7
  Product Attachments are downloadable files (certificates, technical
8
8
  specifications, product cards, generic PDFs) attached to a Product.
@@ -10,7 +10,7 @@ They wrap an underlying `Asset` row, so the same file can be linked to
10
10
  multiple Products without duplication — the `assets` row survives even
11
11
  when an attachment is deleted.
12
12
 
13
- ## Attachment Types
13
+ ## Attachment types
14
14
 
15
15
  The `attachment_types` dictionary categorizes attachments. Migration
16
16
  `20260429T112543_catalog_product_attachments.ts` seeds four standard rows with deterministic UUIDs so seeds and
@@ -21,7 +21,7 @@ tests can reference them stably:
21
21
  - `product_card` — Product card / Karta produktu
22
22
  - `pdf` — generic PDF
23
23
 
24
- Admins can add custom types via the **Attachment Types** page in the
24
+ Admins can add custom types via the **Attachment types** page in the
25
25
  admin panel. Deleting a type that any product still references returns
26
26
  `409 ATTACHMENT_TYPE_IN_USE`.
27
27
 
@@ -34,44 +34,54 @@ admin panel. Deleting a type that any product still references returns
34
34
  | `PATCH /api/v1/admin/catalog/attachment-types/:id` | admin | Update name / position |
35
35
  | `DELETE /api/v1/admin/catalog/attachment-types/:id` | admin | Delete; rejects when in use |
36
36
  | `GET /api/v1/admin/catalog/products/:id/attachments` | admin | List attachments on a product |
37
- | `POST /api/v1/admin/catalog/products/:id/attachments` | admin | Attach an existing Asset, optionally with names and descriptions per language and the channels it is hidden in |
38
- | `PATCH /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Update name / description / type / position, names and descriptions per language, channels it is hidden in |
37
+ | `POST /api/v1/admin/catalog/products/:id/attachments` | admin | Attach an existing Asset with its type and its Global name and description |
38
+ | `PATCH /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Update type / position |
39
+ | `PUT /api/v1/admin/catalog/products/:id/scoped-values` | admin | Name, description and hidden flag at Global, a channel, or a channel and language (see below) |
39
40
  | `DELETE /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Remove (Asset survives) |
40
41
 
41
- ## Per sales channel and per language
42
-
43
- An attachment is the same file in every sales channel. What can differ is its name
44
- and description per language, and whether a channel lists it at all.
45
-
46
- - **Name and description per language.** `nameTranslations` and
47
- `descriptionTranslations` map a language to a text, e.g.
48
- `{ "pl-PL": "Karta techniczna", "de-DE": "" }`. A named language is set, an empty
49
- string removes it, and a language left out is unchanged. A name is at most 160
50
- characters, a description at most 4000. The product page serves the text in the
51
- request's language, else the attachment's global name and description.
52
- - **Hidden per channel.** `hiddenInChannels` is a list of sales channel ids and
53
- replaces the set of channels the attachment is hidden in. A hidden attachment is
54
- neither listed on the product page in that channel nor linked from it.
55
-
56
- You can hide an attachment only in a channel the product is in; otherwise the
57
- request answers `422 SCOPE_INVALID`. Removing a channel from the set is always
58
- allowed, even after the product has left the channel.
59
-
60
- Hiding is presentation, not access control. A hidden attachment is not shown in
61
- the channel, but its file keeps its stable URL, and anyone who has that URL can
42
+ ## Per scope: Global, Channel, Channel × language
43
+
44
+ An attachment is the same file in every sales channel. What can differ per scope is
45
+ its name, its description, and whether it is listed at all. All three are scoped
46
+ fields, saved with the rest of the scope by `PUT …/products/:id/scoped-values`:
47
+
48
+ ```json
49
+ {
50
+ "scope": { "channelId": "<retail-uuid>", "languageCode": "pl-PL" },
51
+ "version": "7",
52
+ "changes": {
53
+ "attachments": { "<attachmentId>": { "name": "Karta techniczna", "description": null, "hidden": false } }
54
+ }
55
+ }
56
+ ```
57
+
58
+ - **Name** — at most 160 characters. At Global it is required, so an empty name is
59
+ refused there; at a channel or a channel and language `null` stores a deliberately
60
+ empty name.
61
+ - **Description** — at most 4000 characters; `null` stores a deliberately empty
62
+ description, which stays empty there even though a parent scope has one.
63
+ - **Hidden** — `true` or `false`, at Global, a channel, or a channel and language. A
64
+ hidden attachment is neither listed on the product page there nor linked from it.
65
+
66
+ `{ "inherit": true }` removes the scope's own value, and a field left out is unchanged.
67
+ A scope that holds no value inherits it — Channel × language → Channel → Global.
68
+ Writing at a channel the product is not in, or a language the channel does not
69
+ offer, answers `422 SCOPE_INVALID`; removing an override is always allowed, even after
70
+ the product has left the channel.
71
+
72
+ Hiding is presentation, not access control. A hidden attachment is not shown at
73
+ the scope, but its file keeps its stable URL, and anyone who has that URL can
62
74
  still download it. Do not rely on hiding to keep a document confidential: a file
63
75
  that must not be public must not be attached to the product.
64
76
 
65
77
  Creating or updating an attachment is recorded once in the audit log, as
66
78
  `product_attachment.create` or `product_attachment.update`, with the attachment's
67
- state before and after: its product, type, name, description, position, both
68
- translation maps and `hiddenInChannels`. Sending the recorded before-state back
69
- through the same route (without `productId`) restores it. The write announces
70
- `product.updated.v1` with `changedFields: ["attachments"]`. A request that changes
71
- nothing writes nothing and announces nothing.
79
+ state before and after. A scoped save is recorded as `product.scoped_values.save`.
80
+ Both announce `product.updated.v1`. A request that changes nothing writes nothing and
81
+ announces nothing. Deleting an attachment removes its overrides at every scope.
72
82
 
73
- With none of these set, every channel lists every attachment under its global name,
74
- as before.
83
+ With no override, every channel and language lists every attachment under its Global
84
+ name and description.
75
85
 
76
86
  ## Errors
77
87
 
@@ -82,14 +92,14 @@ as before.
82
92
  | `ATTACHMENT_TYPE_CODE_TAKEN` | 409 | `code` collision on create |
83
93
  | `ATTACHMENT_TYPE_NOT_FOUND` | 404 | `:id` missing |
84
94
  | `ATTACHMENT_NOT_FOUND` | 404 | `:attachmentId` missing |
85
- | `SCOPE_INVALID` | 422 | Hiding an attachment in a channel the product is not in |
95
+ | `SCOPE_INVALID` | 422 | A scoped attachment value for a channel the product is not in, or a language the channel does not offer |
86
96
 
87
97
  ## Storefront integration
88
98
 
89
99
  `productDetail.attachments[]` carries the full type and Asset metadata
90
- (filename, sizeBytes, mimeType, url), as the request's sales channel shows it:
91
- attachments hidden there are left out, and the name and description are in the
92
- request's language. The `<AttachmentsList>` component
100
+ (filename, sizeBytes, mimeType, url), as the request's sales channel and language
101
+ show it: attachments hidden there are left out, and the name and description are the
102
+ effective values there. The `<AttachmentsList>` component
93
103
  groups by AttachmentType (preserving first-seen order so admin-curated
94
104
  positions shape the section ordering), renders one heading per type,
95
105
  and emits download anchors with `download={filename}` for clean file
@@ -99,11 +109,11 @@ names.
99
109
 
100
110
  `attachment_types` (id, code unique, name jsonb, position) +
101
111
  `product_attachments` (id, product_id FK CASCADE, asset_id FK RESTRICT,
102
- attachment_type_id FK RESTRICT, name, description, position,
103
- name_translations, description_translations).
104
- `product_attachment_channel_hidden` (attachment_id, sales_channel_id,
105
- product_id) holds an attachment hidden in a channel; it cascades on the
106
- attachment's, the product's and the channel's delete.
112
+ attachment_type_id FK RESTRICT, the Global name, description and hidden flag,
113
+ position). `product_attachment_scope_overrides` holds a name, description or hidden
114
+ flag at a channel or a channel and language; it references the attachment together
115
+ with its product, so an override cannot point at another product's attachment, and
116
+ it cascades on the attachment's, the product's and the channel's delete.
107
117
 
108
118
  The Foundation has no public `AssetsService` — the catalog uses direct
109
119
  `Asset` entity imports across modules. An admin Asset upload UI is a
@@ -1,8 +1,8 @@
1
1
  ---
2
- title: Attribute Sets
2
+ title: Attribute sets
3
3
  ---
4
4
 
5
- # Attribute Sets
5
+ # Attribute sets
6
6
 
7
7
  Attribute Sets group `ProductAttribute` definitions into reusable
8
8
  schemas. Every Product is wired to exactly one Attribute Set; the system
@@ -39,6 +39,7 @@ omitted, the system Default Set is used.
39
39
  | `ATTRIBUTE_SET_CODE_TAKEN` | 409 | `code` already exists |
40
40
  | `ATTRIBUTE_SET_IN_USE` | 409 | Delete blocked: at least one Product references the set |
41
41
  | `SYSTEM_ATTRIBUTE_SET_IMMUTABLE` | 409 | Mutating the seeded Default Set |
42
+ | `ATTRIBUTE_VALUES_REQUIRED` | 400 | A product save leaves attributes the set requires without a value (`details.attributeKeys`, joined) |
42
43
  | `ATTRIBUTE_SET_NOT_FOUND` | 404 | `:id` missing |
43
44
  | `ATTRIBUTE_NOT_FOUND` | 404 | `:key` missing on assignment |
44
45
 
@@ -14,7 +14,7 @@ and the configurable-product variant picker.
14
14
  Attributes are grouped into [Attribute Sets](./attribute-sets.md) which
15
15
  are then pinned to a Product so the admin editor renders just the
16
16
  fields that family actually needs. This page covers the attribute
17
- itself; the set ↔ product wiring lives on the Attribute Sets page.
17
+ itself; the set ↔ product wiring lives on the Attribute sets page.
18
18
 
19
19
  ## Anatomy
20
20
 
@@ -25,8 +25,9 @@ Every attribute carries:
25
25
  | `key` | Stable, URL-safe identifier — `^[a-z][a-z0-9_]*$`, unique platform-wide (case-insensitive). Used in filter URLs, search payloads, and the product JSONB key. |
26
26
  | `label` | `Record<bcp47-tag, string>` per-locale label map. |
27
27
  | `labelDefault` | Fallback label used when the active storefront / admin locale is missing from `label`. |
28
- | `valueType` | One of `string`, `number`, `boolean`, `price`, `date`, `select`, `multiselect`, `enum`. |
28
+ | `valueType` | One of `string`, `number`, `boolean`, `price`, `date`, `select`, `multiselect`, `enum`, `page_builder`. |
29
29
  | `options[]` | Ordered list of selectable options — only for `select` / `multiselect` / `enum`. See [Option lists](#option-lists) below. |
30
+ | `adminAccess` | **Admin access**: `edit` (*Editable*, the default), `read` (*Read-only*) or `hidden` (*Hidden*), stored on the attribute's custom-field definition and answered on every attribute response. It only changes the admin panel: it does not restrict the API, filters, exports or the audit log. A required attribute must stay `edit` — anything else is refused with `400 VALIDATION_FAILED`, and the attribute editor keeps *Read-only* and *Hidden* unavailable while the attribute is required. |
30
31
 
31
32
  Plus the behavioural flags and a numeric position:
32
33
 
@@ -55,9 +56,31 @@ Plus the behavioural flags and a numeric position:
55
56
  | `select` | option `value` | Single choice from `options[]`. At most one option may carry `isDefault = true`. |
56
57
  | `multiselect` | array of option `value`s | Multiple choices from `options[]`. Any number of options may carry `isDefault = true`. |
57
58
  | `enum` | option `value` | Same storage shape as `select`; renders as a compact pill / segmented control on storefront filters and the PDP rather than a dropdown. |
59
+ | `page_builder` | one Page Builder document per language, stored apart from `attribute_values` | **Page Builder content** — see [Product content](./product-content.md). |
58
60
 
59
- Changing `valueType` while any product carries a value the new type
60
- cannot represent is refused with `attribute_type_change_unsafe`.
61
+ Changing `valueType` while any product holds a value for the attribute is
62
+ refused with `409 ATTRIBUTE_VALUE_TYPE_LOCKED`; clear the values first.
63
+
64
+ ### Page Builder content
65
+
66
+ A `page_builder` attribute holds a Page Builder document per language for each
67
+ product, authored on its own screen and shown in the product page's description
68
+ tab ([Product content](./product-content.md)). Its settings are fixed:
69
+
70
+ - its languages are those of its documents, so it is never `scopable`: it has
71
+ no value per sales channel or per channel language;
72
+ - `isSearchable`, `isFilterable`, `isVariantAxis`, `displayAsSlider`,
73
+ `isComparable`, `quickSearchable`, `isPromoRule`, `isPriceRule`,
74
+ `massEditable`, `isRequired`, `isVisibleOnProductPage` and `scopable`
75
+ stay `false`. Setting any of them is refused and nothing is stored: on
76
+ create with `400 VALIDATION_FAILED`, one detail per setting; on update, where
77
+ the stored type refuses it, with `400 CONTENT_ATTRIBUTE_CAPABILITY_LOCKED`;
78
+ - it has no options;
79
+ - its type cannot be changed, and no attribute can be changed into it
80
+ (`409 ATTRIBUTE_VALUE_TYPE_LOCKED`, token `page_builder`).
81
+
82
+ The attribute editor hides those settings for this type, and the list shows the
83
+ row's flags locked. The type is admissible for products only.
61
84
 
62
85
  ## Option lists
63
86
 
@@ -75,7 +98,7 @@ authored inline on the attribute editor. Each option carries:
75
98
  Option **values** are immutable while any product still carries them —
76
99
  the operator must migrate dependent values first. Option **labels** can
77
100
  always be renamed. Deleting an option is refused with
78
- `409 option_in_use` while any product still carries that value.
101
+ `409 ATTRIBUTE_OPTION_IN_USE` while any product still carries that value.
79
102
 
80
103
  ## Public surface
81
104
 
@@ -87,31 +110,78 @@ Admin routes are gated by `catalog:read` (list / get) /
87
110
  | `GET /api/v1/admin/catalog/attributes` | admin | List attributes |
88
111
  | `GET /api/v1/admin/catalog/attributes/by-flag?flag=isPromoRule\|isComparable\|...` | admin | Picker payload — every attribute carrying the requested flag |
89
112
  | `GET /api/v1/admin/catalog/attributes/:idOrKey` | admin | Single attribute read |
90
- | `POST /api/v1/admin/catalog/attributes` | admin | Create attribute (accepts the flags + inline `options[]` for select-style types) |
113
+ | `POST /api/v1/admin/catalog/attributes` | admin | Create attribute (accepts the flags, `adminAccess` + inline `options[]` for select-style types) |
91
114
  | `PATCH /api/v1/admin/catalog/attributes/:key` | admin | Update labels and hot-toggle `isFilterable` / `isSearchable` / `isVariantAxis` / `isPromoRule` / `isPriceRule` / `isComparable` / `isVisibleOnProductPage` / `isRequired` / `filterPosition`. Re-emits `attribute.updated.v1`. |
92
- | `DELETE /api/v1/admin/catalog/attributes/:idOrKey` | admin | Delete; refused with `409 attribute_in_use_by_set` while any Attribute Set still references it |
115
+ | `GET /api/v1/admin/catalog/attributes/:idOrKey/usage` | admin (`catalog:read`) | What deleting the attribute would meet: `{ attributeSetCount, productValueCount, productContentCount }` — see [Deleting an attribute](#deleting-an-attribute) |
116
+ | `DELETE /api/v1/admin/catalog/attributes/:idOrKey` | admin (`catalog:write`) | Delete an attribute of any type; refused with `409` while an Attribute Set contains it or a product holds a value for it — see [Deleting an attribute](#deleting-an-attribute) |
93
117
  | `GET /api/v1/admin/catalog/attributes/:idOrKey/options` | admin | List option rows for select / enum / multiselect attributes |
94
118
  | `POST /api/v1/admin/catalog/attributes/:idOrKey/options` | admin | Append an option |
95
- | `PATCH /api/v1/admin/catalog/attribute-options/:optionId` | admin | Patch `label` / `labelDefault` / `isDefault` / `sortOrder` (option `value` is immutable) |
96
- | `DELETE /api/v1/admin/catalog/attribute-options/:optionId` | admin | Remove; refused with `409 option_in_use` while any product still carries the value |
119
+ | `PATCH /api/v1/admin/catalog/attributes/:attributeId/options/:optionId` | admin | Patch `label` / `labelDefault` / `isDefault` / `sortOrder` (option `value` is immutable) |
120
+ | `DELETE /api/v1/admin/catalog/attributes/:attributeId/options/:optionId` | admin | Remove; refused with `409 ATTRIBUTE_OPTION_IN_USE` while any product still carries the value |
97
121
 
98
122
  Filter sidebar reads consume `GET /api/v1/catalog/filters` (defined on
99
123
  the [Catalog](../catalog.md) page) — that endpoint resolves the
100
124
  currently visible filterable attributes per Sales Channel and orders
101
125
  them by `filterPosition`.
102
126
 
103
- ## Errors
127
+ ## Deleting an attribute
104
128
 
105
- | Code | Status | When |
129
+ **Delete** is offered on every attribute row, whatever its type. The
130
+ confirmation first reads `GET …/attributes/:idOrKey/usage` and says what stands
131
+ in the way and what goes with the attribute:
132
+
133
+ | Count | Meaning | Effect |
106
134
  | --- | --- | --- |
107
- | `attribute_key_invalid` | 400 | `key` does not match `^[a-z][a-z0-9_]*$` |
108
- | `duplicate_key` | 409 | Attribute key already exists (case-insensitive) |
109
- | `attribute_in_use_by_set` | 409 | Delete blocked: at least one Attribute Set still references the attribute |
110
- | `attribute_type_change_unsafe` | 409 | `valueType` change refused — some product carries a value the new type cannot represent |
111
- | `default_option_ambiguous` | 409 | More than one option flagged `isDefault = true` on a `select` / `enum` attribute |
112
- | `option_in_use` | 409 | Delete (or value rename) blocked: a product still carries this option value |
113
- | `attribute_not_found` | 404 | `:idOrKey` missing |
114
- | `option_not_found` | 404 | `:optionId` missing |
135
+ | `attributeSetCount` | Attribute Sets that contain the attribute | Refuses: remove it from them first |
136
+ | `productValueCount` | Products that hold a value for the key — on the product, as a per-sales-channel override, or on a variant | Refuses: clear the values first |
137
+ | `productContentCount` | Products that carry content for a `page_builder` attribute | The content is deleted with the attribute |
138
+
139
+ A deleted product does not count, and does not block the delete. The dialog and
140
+ the delete use the same query, so a refusal can only come from a change made
141
+ after the dialog opened; the dialog then shows the API's message.
142
+
143
+ The delete removes the attribute's definition, its options, its content and its
144
+ catalogue settings in one transaction, with one audit entry
145
+ (`catalog.attribute.delete`, whose before-state counts the content removed). It
146
+ then emits `attribute.updated.v1` with the key and both `isSearchable` and
147
+ `isFilterable` set to `false`, so the search index and price lists stop using
148
+ the key.
149
+
150
+ Promotion conditions, price-list rows and feed rules that use the attribute are
151
+ neither refused nor deleted — the catalogue cannot see them. They stop matching
152
+ products: a promotion condition on the key no longer matches a cart line, a
153
+ price-list row on it shows as inactive, and a feed whose selection rule names it
154
+ records a configuration error on its next run. The confirmation says so in one
155
+ sentence. Fix or remove them in their own screens.
156
+
157
+ **Behaviour change (feature 172).** A per-sales-channel override or a variant
158
+ value now refuses the delete, as a value on the product always did; a value on a
159
+ deleted product no longer does; and the delete now emits
160
+ `attribute.updated.v1`.
161
+
162
+ ## Errors
163
+
164
+ Each refusal the stored attribute or its options make has its own code and a
165
+ sentence in English and Polish that names the values in `details`. Until issue
166
+ #624 (and issue #1218 for Page Builder content attributes) they were
167
+ `VALIDATION_FAILED` with an English message or a machine token
168
+ (`option_in_use: …`). A malformed request — a key that does not match
169
+ `^[a-z][a-z0-9_]*$`, an option value that does not match its pattern, options,
170
+ a slider or a content attribute's locked setting on a type the same request
171
+ names — stays `400 VALIDATION_FAILED`.
172
+
173
+ | Code | Status | When | `details` |
174
+ | --- | --- | --- | --- |
175
+ | `ATTRIBUTE_KEY_TAKEN` | 409 | Another attribute already has the key | `attributeKey` |
176
+ | `ATTRIBUTE_VALUE_TYPE_LOCKED` | 409 | The value type is changed while products hold values for the attribute; token `page_builder`: changed to or from Page Builder content | `attributeKey` |
177
+ | `ATTRIBUTE_IN_USE` | 409 | Delete blocked: an attribute set contains the attribute (token `attribute_sets`), or products hold its values (token `products`) | `attributeKey`, `attributeSetCount` or `productCount` |
178
+ | `ATTRIBUTE_OPTION_VALUE_TAKEN` | 409 | The attribute already has an option with the value | `attributeKey`, `value` |
179
+ | `ATTRIBUTE_DEFAULT_OPTION_TAKEN` | 409 | A second default option on a single-choice attribute, on create or when an option is made the default | `attributeKey`, `value` |
180
+ | `ATTRIBUTE_OPTIONS_NOT_SUPPORTED` | 400 | An option is written to an attribute whose type takes none | `attributeKey`, `valueType` |
181
+ | `ATTRIBUTE_OPTION_IN_USE` | 409 | Delete blocked: products carry the option (token `products` with the count) | `attributeKey`, `value`, `productCount` |
182
+ | `ATTRIBUTE_SLIDER_NOT_SUPPORTED` | 400 | `displayAsSlider` is turned on for an attribute whose stored type is not a number or a price | `attributeKey`, `valueType` |
183
+ | `CONTENT_ATTRIBUTE_CAPABILITY_LOCKED` | 400 | An update switches on a setting a Page Builder content attribute holds off | `attributeKey`, `capabilities` (joined) |
184
+ | `NOT_FOUND` | 404 | `:idOrKey` or `:optionId` missing | — |
115
185
 
116
186
  ## Storefront integration
117
187
 
@@ -125,12 +195,16 @@ values across the current page are omitted (no empty filter).
125
195
 
126
196
  ### PDP "Parametry produktu" tab
127
197
 
128
- Every PDP carries a `Parametry produktu` tab that lists every
129
- attribute meeting both:
198
+ The PDP's `Parametry produktu` tab lists every attribute meeting both:
130
199
 
131
200
  - the product has a value for the attribute, **and**
132
201
  - the attribute is flagged `isVisibleOnProductPage = true`.
133
202
 
203
+ Each row shows the attribute's label and its rendered value — never a technical
204
+ key or a raw stored value. An attribute not flagged visible is never shown, and
205
+ the tab itself is shown only when at least one attribute qualifies. Page Builder
206
+ content never appears in it.
207
+
134
208
  For `select` / `multiselect` / `enum` values the tab renders the
135
209
  option's per-locale label, not the raw `value`. The detail payload
136
210
  field is assembled by `CatalogQueryService.buildVisibleAttributesProjection()`.
@@ -190,7 +264,7 @@ admin surface composes the two back into the legacy form.
190
264
  - Boolean flags: `is_searchable`, `is_filterable`, `is_variant_axis`,
191
265
  `is_comparable`, `quick_searchable`, `is_promo_rule`,
192
266
  `is_price_rule`, `is_visible_on_product_page`, `display_as_slider`,
193
- `channel_scoped`, `language_scoped`, `mass_editable`.
267
+ `scopable`, `mass_editable`.
194
268
  - `filter_position int NOT NULL DEFAULT 0`.
195
269
  - Presentation refinements: `select_display varchar(16) NULL`
196
270
  (`pill` = legacy `enum`, `dropdown` = legacy `select`) and
@@ -209,12 +283,12 @@ them again.
209
283
  All attribute and option mutations flow through the catalog Commands
210
284
  behind `/catalog/attributes` — the generic Custom Fields admin surface
211
285
  lists product definitions read-only and refuses mutations with
212
- `409 host_managed`.
286
+ `409 CUSTOM_FIELD_HOST_MANAGED`.
213
287
 
214
288
  ## Events emitted
215
289
 
216
- - `attribute.updated.v1` — picked up by the search indexer and
217
- bridged to webhook subscribers.
290
+ - `attribute.updated.v1` — on create, update and delete; picked up by the
291
+ search indexer and bridged to webhook subscribers.
218
292
 
219
293
  ## Audit log
220
294
 
@@ -29,15 +29,21 @@ The **Content** action appears only while a module that provides a Page Builder
29
29
  (the CMS module) is enabled and you have access to it. Content that is already
30
30
  stored is kept while that module is off.
31
31
 
32
+ Unlike [product content](./product-content.md), which is hidden while the CMS
33
+ module is off, category content keeps rendering on the storefront.
34
+
32
35
  ## On the storefront
33
36
 
34
37
  The category page renders the content between the category heading and the
35
38
  listing toolbar, on the **first page** of the listing only — a visitor paging
36
39
  through products is not shown the introduction again above every page.
37
40
 
38
- The document is resolved to one language in this order: the visitor's language,
39
- the sales channel's default language, English, then any language that has
40
- content. A language whose document holds no block is skipped.
41
+ The document is resolved to one language in this order: the visitor's language
42
+ as the sales channel offers it, else the channel's default language; then the
43
+ channel's default language, English, and any language that has content. The
44
+ visitor's language is the first `Accept-Language` entry, by weight, that the
45
+ channel offers (`pl` matches the channel's `pl-PL`); a language the channel does
46
+ not offer is never used, even where a document is stored in it. A language whose document holds no block is skipped.
41
47
 
42
48
  The content follows the category's visibility: an inactive category, or one
43
49
  under an inactive parent, has no page and its content is not served.
@@ -1,8 +1,8 @@
1
1
  ---
2
- title: Composite Products
2
+ title: Composite products
3
3
  ---
4
4
 
5
- # Composite Products: grouped, bundle, virtual
5
+ # Composite products: grouped, bundle, virtual
6
6
 
7
7
  The Catalog supports three product types beyond `simple` /
8
8
  `configurable`. Each carries a type-discriminated payload on the PDP
@@ -75,7 +75,9 @@ not a bundle, 404 `PRODUCT_NOT_FOUND`) still apply.
75
75
 
76
76
  | Code | Status | When |
77
77
  | --- | --- | --- |
78
- | `PRODUCT_TYPE_MISMATCH` | 400 | Calling grouped/bundle endpoints against the wrong parent type |
78
+ | `PRODUCT_TYPE_MISMATCH` | 400 | Calling grouped/bundle endpoints against the wrong parent type; adding a variant to a product that is not configurable (token `variants_need_configurable`, `details.productId`, `productType`) |
79
+ | `SELF_LINK_NOT_ALLOWED` | 400 | A grouped product names itself as a child (token `grouped`, `details.productId`) |
80
+ | `GROUPED_ITEM_ALREADY_EXISTS` | 409 | The child is already in the group (`details.parentProductId`, `childProductId`, `childSku`) |
79
81
  | `NESTED_COMPOSITE_NOT_ALLOWED` | 400 | Child / option product is itself grouped or bundle |
80
82
  | `INVALID_QUANTITY_RANGE` | 400 | Slot `minQuantity > maxQuantity` |
81
83
  | `OPTION_ALREADY_EXISTS` | 409 | Same option product reused in a slot |