@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,119 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 174 (`specs/174-product-editor-scope-switcher/data-model.md` §5, `contracts/url-keys.md`;
4
+ * research R12, spec round 7) — URL keys at Channel and Channel × language, redirects per
5
+ * (channel, language). Replaces 163 data-model §5.
6
+ *
7
+ * Both tables are **recreated**: every 163 language key (`sales_channel_id null`) and every
8
+ * redirect is dropped (FR-020); a development database keeps working on `products.slug`.
9
+ * `product_url_keys_one_product_per_channel_key` makes "a key text belongs to one product per
10
+ * channel, across all the channel's languages, orphans included" a database rule; it needs
11
+ * `btree_gist` (an extension shipped with PostgreSQL; plan *Complexity Tracking*). The slug and
12
+ * redirect halves of the rule are `UrlKeyService.lockAndCheck`'s (T039).
13
+ *
14
+ * C1 review (amended in place; unreleased): the key text carries `productSlugSchema`'s grammar
15
+ * as a CHECK on both tables; the exclusion constraint is `deferrable initially immediate`, so a
16
+ * re-key from one product to another inside one transaction is checked at its end; and every
17
+ * unique that names `language_code` compares `lower(language_code)`, so two spellings of one
18
+ * language are one language (writers also store the channel's own spelling, T039).
19
+ *
20
+ * Idempotent: the recreation runs only while the 163 shape (a nullable `sales_channel_id`) is
21
+ * there. `down` restores the 163 tables, empty — not a data-preserving `down` (R18).
22
+ */
23
+ /** `productSlugSchema`'s grammar (`packages/contracts/src/product-url-keys.ts`), verbatim. */
24
+ const KEY_GRAMMAR = `"key" ~ '^[a-z0-9]+(-[a-z0-9]+)*$'`;
25
+ export class Migration20261030T113904CatalogScopeModelUrlKeys extends Migration {
26
+ async up() {
27
+ this.addSql(`create extension if not exists btree_gist;`);
28
+ this.addSql(`do $$
29
+ begin
30
+ if (select is_nullable from information_schema.columns where table_schema = current_schema()
31
+ and table_name = 'product_url_keys' and column_name = 'sales_channel_id') = 'YES' then
32
+ drop table product_url_redirects;
33
+ drop table product_url_keys;
34
+ end if;
35
+ end $$;`);
36
+ this.addSql(`create table if not exists "product_url_keys" (
37
+ "id" uuid not null,
38
+ "product_id" uuid not null references "products"("id") on delete cascade,
39
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
40
+ "language_code" varchar(16) null,
41
+ "key" varchar(160) not null,
42
+ "created_at" timestamptz not null default now(),
43
+ "updated_at" timestamptz not null default now(),
44
+ constraint "product_url_keys_pkey" primary key ("id"),
45
+ constraint "product_url_keys_key_grammar" check (${KEY_GRAMMAR}),
46
+ constraint "product_url_keys_one_product_per_channel_key"
47
+ exclude using gist ("sales_channel_id" with =, "key" with =, "product_id" with <>)
48
+ deferrable initially immediate
49
+ );`);
50
+ this.addSql(`create unique index if not exists "product_url_keys_channel_key_unique"
51
+ on "product_url_keys" ("sales_channel_id", "key") where "language_code" is null;`);
52
+ this.addSql(`create unique index if not exists "product_url_keys_channel_language_key_unique"
53
+ on "product_url_keys" ("sales_channel_id", lower("language_code"), "key") where "language_code" is not null;`);
54
+ this.addSql(`create unique index if not exists "product_url_keys_product_channel_unique"
55
+ on "product_url_keys" ("product_id", "sales_channel_id") where "language_code" is null;`);
56
+ this.addSql(`create unique index if not exists "product_url_keys_product_channel_language_unique"
57
+ on "product_url_keys" ("product_id", "sales_channel_id", lower("language_code")) where "language_code" is not null;`);
58
+ // The partial uniques do not serve unqualified reads: per-product reads and cascades, and the
59
+ // Global-key check against every row key.
60
+ this.addSql(`create index if not exists "product_url_keys_product_idx" on "product_url_keys" ("product_id");`);
61
+ this.addSql(`create index if not exists "product_url_keys_key_idx" on "product_url_keys" ("key");`);
62
+ this.addSql(`create table if not exists "product_url_redirects" (
63
+ "id" uuid not null,
64
+ "product_id" uuid not null references "products"("id") on delete cascade,
65
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
66
+ "language_code" varchar(16) not null,
67
+ "key" varchar(160) not null,
68
+ "created_at" timestamptz not null default now(),
69
+ constraint "product_url_redirects_pkey" primary key ("id"),
70
+ constraint "product_url_redirects_key_grammar" check (${KEY_GRAMMAR})
71
+ );`);
72
+ this.addSql(`create unique index if not exists "product_url_redirects_channel_language_key_unique"
73
+ on "product_url_redirects" ("sales_channel_id", lower("language_code"), "key");`);
74
+ this.addSql(`create index if not exists "product_url_redirects_product_idx" on "product_url_redirects" ("product_id");`);
75
+ }
76
+ async down() {
77
+ this.addSql(`do $$
78
+ begin
79
+ if (select is_nullable from information_schema.columns where table_schema = current_schema()
80
+ and table_name = 'product_url_keys' and column_name = 'sales_channel_id') = 'NO' then
81
+ drop table product_url_redirects;
82
+ drop table product_url_keys;
83
+ end if;
84
+ end $$;`);
85
+ // 163's tables (20261022T054223), as it created them.
86
+ this.addSql(`create table if not exists "product_url_keys" (
87
+ "id" uuid not null,
88
+ "product_id" uuid not null references "products"("id") on delete cascade,
89
+ "language_code" varchar(16) not null,
90
+ "sales_channel_id" uuid null references "sales_channels"("id") on delete cascade,
91
+ "key" varchar(160) not null,
92
+ "created_at" timestamptz not null default now(),
93
+ "updated_at" timestamptz not null default now(),
94
+ constraint "product_url_keys_pkey" primary key ("id")
95
+ );`);
96
+ this.addSql(`create unique index if not exists "product_url_keys_product_language_unique"
97
+ on "product_url_keys" ("product_id", "language_code") where "sales_channel_id" is null;`);
98
+ this.addSql(`create unique index if not exists "product_url_keys_product_channel_language_unique"
99
+ on "product_url_keys" ("product_id", "sales_channel_id", "language_code") where "sales_channel_id" is not null;`);
100
+ this.addSql(`create index if not exists "product_url_keys_language_key_idx" on "product_url_keys" ("language_code", "key");`);
101
+ this.addSql(`create index if not exists "product_url_keys_key_idx" on "product_url_keys" ("key");`);
102
+ this.addSql(`create index if not exists "product_url_keys_product_idx" on "product_url_keys" ("product_id");`);
103
+ this.addSql(`create table if not exists "product_url_redirects" (
104
+ "id" uuid not null,
105
+ "product_id" uuid not null references "products"("id") on delete cascade,
106
+ "language_code" varchar(16) null,
107
+ "key" varchar(160) not null,
108
+ "created_at" timestamptz not null default now(),
109
+ constraint "product_url_redirects_pkey" primary key ("id")
110
+ );`);
111
+ this.addSql(`create unique index if not exists "product_url_redirects_language_key_unique"
112
+ on "product_url_redirects" ("language_code", "key") where "language_code" is not null;`);
113
+ this.addSql(`create unique index if not exists "product_url_redirects_global_key_unique"
114
+ on "product_url_redirects" ("key") where "language_code" is null;`);
115
+ this.addSql(`create index if not exists "product_url_redirects_key_idx" on "product_url_redirects" ("key");`);
116
+ this.addSql(`create index if not exists "product_url_redirects_product_idx" on "product_url_redirects" ("product_id");`);
117
+ }
118
+ }
119
+ //# sourceMappingURL=20261030T113904_catalog_scope_model_url_keys.js.map
@@ -0,0 +1,6 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ export declare class Migration20261030T113908CatalogScopeModelMedia extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=20261030T113908_catalog_scope_model_media.d.ts.map
@@ -0,0 +1,185 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 174 (`specs/174-product-editor-scope-switcher/data-model.md` §6–§7; research R2, R22) —
4
+ * the gallery, attachment and packaging-unit values at Channel and Channel × language move to one
5
+ * override table per family, beside a Global value on the subject row. Replaces 163 data-model
6
+ * §7–§8.
7
+ *
8
+ * Statement order (data-model §7): new Global columns with defaults → `unique (id, product_id)` on
9
+ * the three subject tables (the targets of the composite FKs) → the four override tables with their
10
+ * constraints → drop 163's three channel tables and the `*_translations` columns → `alt_text`
11
+ * jsonb → text by add / update / drop / rename (the Global alt text: `en-US`, else the first
12
+ * non-empty value in key order — a dev-only convenience, FR-020). 163's channel rows are not
13
+ * carried over.
14
+ *
15
+ * Every override table references its subject with a **composite** FK `(subject_id, product_id)`,
16
+ * so an override can never point at another product's subject. The gallery-role holder FK is
17
+ * composite and nullable (`match simple`) and cascades: a removed holder makes the role inherit
18
+ * again rather than silently become "no image" (`set null` would turn it into the empty override).
19
+ * Readers detect an empty override with `jsonb_typeof(value -> 'v') = 'null'`, never `->>` (R22);
20
+ * the per-field type CHECKs keep `hidden` a boolean and the texts a string or the empty override.
21
+ *
22
+ * Idempotent: every statement is guarded. `down` restores the 163 shape and none of its data —
23
+ * not a data-preserving `down` (R18).
24
+ */
25
+ const SUBJECT_UNIQUES = [
26
+ ['gallery_items', 'gallery_items_id_product_unique'],
27
+ ['product_attachments', 'product_attachments_id_product_unique'],
28
+ ['product_packaging_units', 'product_packaging_units_id_product_unique'],
29
+ ];
30
+ const WRAPPED = `jsonb_typeof("value") = 'object' and jsonb_exists("value", 'v')`;
31
+ const TEXT_OR_EMPTY = `jsonb_typeof("value" -> 'v') in ('string', 'null')`;
32
+ const BOOLEAN = `jsonb_typeof("value" -> 'v') = 'boolean'`;
33
+ /** The shared column set of a subject's override table (data-model §6a). */
34
+ function overrideTable(table, subjectColumn, subjectTable, fields, checks) {
35
+ return `create table if not exists "${table}" (
36
+ "id" uuid not null,
37
+ "${subjectColumn}" uuid not null,
38
+ "product_id" uuid not null references "products"("id") on delete cascade,
39
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
40
+ "language_code" varchar(16) null,
41
+ "field" varchar(16) not null,
42
+ "value" jsonb not null,
43
+ "created_at" timestamptz not null default now(),
44
+ "updated_at" timestamptz not null default now(),
45
+ constraint "${table}_pkey" primary key ("id"),
46
+ constraint "${table}_subject_fk" foreign key ("${subjectColumn}", "product_id")
47
+ references "${subjectTable}" ("id", "product_id") on delete cascade,
48
+ constraint "${table}_field_check" check ("field" in (${fields.map((f) => `'${f}'`).join(', ')})),
49
+ constraint "${table}_value_wrapped" check (${WRAPPED}),
50
+ constraint "${table}_value_type" check (${checks})
51
+ );`;
52
+ }
53
+ export class Migration20261030T113908CatalogScopeModelMedia extends Migration {
54
+ async up() {
55
+ // Global columns.
56
+ this.addSql(`alter table "gallery_items" add column if not exists "hidden" boolean not null default false;`);
57
+ this.addSql(`alter table "product_attachments" add column if not exists "hidden" boolean not null default false;`);
58
+ // Targets of the composite FKs.
59
+ for (const [table, name] of SUBJECT_UNIQUES) {
60
+ this.addSql(`do $$
61
+ begin
62
+ if not exists (select 1 from pg_constraint where conname = '${name}') then
63
+ alter table "${table}" add constraint "${name}" unique ("id", "product_id");
64
+ end if;
65
+ end $$;`);
66
+ }
67
+ // §6a — gallery item alt text and hidden flag.
68
+ this.addSql(overrideTable('gallery_item_scope_overrides', 'gallery_item_id', 'gallery_items', ['alt_text', 'hidden'], `("field" <> 'hidden' or ${BOOLEAN}) and ("field" <> 'alt_text' or ${TEXT_OR_EMPTY})`));
69
+ this.addSql(`create unique index if not exists "gallery_item_scope_overrides_channel_unique"
70
+ on "gallery_item_scope_overrides" ("gallery_item_id", "field", "sales_channel_id") where "language_code" is null;`);
71
+ this.addSql(`create unique index if not exists "gallery_item_scope_overrides_channel_language_unique"
72
+ on "gallery_item_scope_overrides" ("gallery_item_id", "field", "sales_channel_id", "language_code") where "language_code" is not null;`);
73
+ this.addSql(`create index if not exists "gallery_item_scope_overrides_item_idx" on "gallery_item_scope_overrides" ("gallery_item_id");`);
74
+ this.addSql(`create index if not exists "gallery_item_scope_overrides_product_idx" on "gallery_item_scope_overrides" ("product_id");`);
75
+ // §6b — gallery role holders; `gallery_item_id null` = no image holds the role at the scope.
76
+ this.addSql(`create table if not exists "gallery_role_scope_overrides" (
77
+ "id" uuid not null,
78
+ "product_id" uuid not null references "products"("id") on delete cascade,
79
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
80
+ "language_code" varchar(16) null,
81
+ "label" varchar(16) not null,
82
+ "gallery_item_id" uuid null,
83
+ "created_at" timestamptz not null default now(),
84
+ "updated_at" timestamptz not null default now(),
85
+ constraint "gallery_role_scope_overrides_pkey" primary key ("id"),
86
+ constraint "gallery_role_scope_overrides_holder_fk" foreign key ("gallery_item_id", "product_id")
87
+ references "gallery_items" ("id", "product_id") match simple on delete cascade,
88
+ constraint "gallery_role_scope_overrides_label_check"
89
+ check ("label" in ('base_image', 'small_image', 'thumbnail'))
90
+ );`);
91
+ this.addSql(`create unique index if not exists "gallery_role_scope_overrides_channel_unique"
92
+ on "gallery_role_scope_overrides" ("product_id", "label", "sales_channel_id") where "language_code" is null;`);
93
+ this.addSql(`create unique index if not exists "gallery_role_scope_overrides_channel_language_unique"
94
+ on "gallery_role_scope_overrides" ("product_id", "label", "sales_channel_id", "language_code") where "language_code" is not null;`);
95
+ this.addSql(`create index if not exists "gallery_role_scope_overrides_product_idx" on "gallery_role_scope_overrides" ("product_id");`);
96
+ this.addSql(`create index if not exists "gallery_role_scope_overrides_item_idx" on "gallery_role_scope_overrides" ("gallery_item_id");`);
97
+ // §7 — attachment name, description and hidden flag.
98
+ this.addSql(overrideTable('product_attachment_scope_overrides', 'attachment_id', 'product_attachments', ['name', 'description', 'hidden'], `("field" <> 'hidden' or ${BOOLEAN}) and ("field" = 'hidden' or ${TEXT_OR_EMPTY})`));
99
+ this.addSql(`create unique index if not exists "product_attachment_scope_overrides_channel_unique"
100
+ on "product_attachment_scope_overrides" ("attachment_id", "field", "sales_channel_id") where "language_code" is null;`);
101
+ this.addSql(`create unique index if not exists "product_attachment_scope_overrides_channel_language_unique"
102
+ on "product_attachment_scope_overrides" ("attachment_id", "field", "sales_channel_id", "language_code") where "language_code" is not null;`);
103
+ this.addSql(`create index if not exists "product_attachment_scope_overrides_attachment_idx" on "product_attachment_scope_overrides" ("attachment_id");`);
104
+ this.addSql(`create index if not exists "product_attachment_scope_overrides_product_idx" on "product_attachment_scope_overrides" ("product_id");`);
105
+ // §7 — packaging-unit name.
106
+ this.addSql(overrideTable('product_packaging_unit_scope_overrides', 'packaging_unit_id', 'product_packaging_units', ['name'], TEXT_OR_EMPTY));
107
+ this.addSql(`create unique index if not exists "product_packaging_unit_scope_overrides_channel_unique"
108
+ on "product_packaging_unit_scope_overrides" ("packaging_unit_id", "field", "sales_channel_id") where "language_code" is null;`);
109
+ this.addSql(`create unique index if not exists "product_packaging_unit_scope_overrides_channel_language_unique"
110
+ on "product_packaging_unit_scope_overrides" ("packaging_unit_id", "field", "sales_channel_id", "language_code") where "language_code" is not null;`);
111
+ this.addSql(`create index if not exists "product_packaging_unit_scope_overrides_unit_idx" on "product_packaging_unit_scope_overrides" ("packaging_unit_id");`);
112
+ this.addSql(`create index if not exists "product_packaging_unit_scope_overrides_product_idx" on "product_packaging_unit_scope_overrides" ("product_id");`);
113
+ // 163's channel tables and translation maps go (FR-020).
114
+ this.addSql(`drop table if exists "gallery_item_channel_labels";`);
115
+ this.addSql(`drop table if exists "gallery_item_channel_hidden";`);
116
+ this.addSql(`drop table if exists "product_attachment_channel_hidden";`);
117
+ this.addSql(`alter table "product_attachments" drop column if exists "name_translations";`);
118
+ this.addSql(`alter table "product_attachments" drop column if exists "description_translations";`);
119
+ this.addSql(`alter table "product_packaging_units" drop column if exists "name_translations";`);
120
+ // `gallery_items.alt_text` jsonb → the Global text.
121
+ this.addSql(`do $$
122
+ begin
123
+ if (select data_type from information_schema.columns where table_schema = current_schema()
124
+ and table_name = 'gallery_items' and column_name = 'alt_text') = 'jsonb' then
125
+ alter table gallery_items add column alt_text_g text;
126
+ update gallery_items set alt_text_g = coalesce(
127
+ nullif(alt_text ->> 'en-US', ''),
128
+ (select e.value from jsonb_each_text(case when jsonb_typeof(alt_text) = 'object' then alt_text else '{}'::jsonb end) e
129
+ where e.value <> '' order by octet_length(e.key), e.key collate "C" limit 1));
130
+ alter table gallery_items drop column alt_text;
131
+ alter table gallery_items rename column alt_text_g to alt_text;
132
+ end if;
133
+ end $$;`);
134
+ }
135
+ async down() {
136
+ this.addSql(`do $$
137
+ begin
138
+ if (select data_type from information_schema.columns where table_schema = current_schema()
139
+ and table_name = 'gallery_items' and column_name = 'alt_text') = 'text' then
140
+ alter table gallery_items add column alt_text_j jsonb not null default '{}'::jsonb;
141
+ update gallery_items set alt_text_j = jsonb_build_object('en-US', alt_text) where alt_text is not null;
142
+ alter table gallery_items drop column alt_text;
143
+ alter table gallery_items rename column alt_text_j to alt_text;
144
+ end if;
145
+ end $$;`);
146
+ this.addSql(`drop table if exists "product_packaging_unit_scope_overrides";`);
147
+ this.addSql(`drop table if exists "product_attachment_scope_overrides";`);
148
+ this.addSql(`drop table if exists "gallery_role_scope_overrides";`);
149
+ this.addSql(`drop table if exists "gallery_item_scope_overrides";`);
150
+ for (const [table, name] of SUBJECT_UNIQUES) {
151
+ this.addSql(`alter table "${table}" drop constraint if exists "${name}";`);
152
+ }
153
+ this.addSql(`alter table "product_attachments" drop column if exists "hidden";`);
154
+ this.addSql(`alter table "gallery_items" drop column if exists "hidden";`);
155
+ // 163's shape (20261026T033453, 20261026T084533), as they created it.
156
+ this.addSql(`alter table "product_attachments" add column if not exists "name_translations" jsonb not null default '{}'::jsonb;`);
157
+ this.addSql(`alter table "product_attachments" add column if not exists "description_translations" jsonb not null default '{}'::jsonb;`);
158
+ this.addSql(`alter table "product_packaging_units" add column if not exists "name_translations" jsonb not null default '{}'::jsonb;`);
159
+ this.addSql(`create table if not exists "gallery_item_channel_labels" (
160
+ "product_id" uuid not null references "products"("id") on delete cascade,
161
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
162
+ "label" varchar(16) not null,
163
+ "gallery_item_id" uuid not null references "gallery_items"("id") on delete cascade,
164
+ constraint "gallery_item_channel_labels_pkey" primary key ("product_id", "sales_channel_id", "label"),
165
+ constraint "chk_gallery_item_channel_labels_label"
166
+ check ("label" in ('base_image', 'small_image', 'thumbnail'))
167
+ );`);
168
+ this.addSql(`create index if not exists "gallery_item_channel_labels_item_idx" on "gallery_item_channel_labels" ("gallery_item_id");`);
169
+ this.addSql(`create table if not exists "gallery_item_channel_hidden" (
170
+ "gallery_item_id" uuid not null references "gallery_items"("id") on delete cascade,
171
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
172
+ "product_id" uuid not null references "products"("id") on delete cascade,
173
+ constraint "gallery_item_channel_hidden_pkey" primary key ("gallery_item_id", "sales_channel_id")
174
+ );`);
175
+ this.addSql(`create index if not exists "gallery_item_channel_hidden_product_channel_idx" on "gallery_item_channel_hidden" ("product_id", "sales_channel_id");`);
176
+ this.addSql(`create table if not exists "product_attachment_channel_hidden" (
177
+ "attachment_id" uuid not null references "product_attachments"("id") on delete cascade,
178
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
179
+ "product_id" uuid not null references "products"("id") on delete cascade,
180
+ constraint "product_attachment_channel_hidden_pkey" primary key ("attachment_id", "sales_channel_id")
181
+ );`);
182
+ this.addSql(`create index if not exists "product_attachment_channel_hidden_product_channel_idx" on "product_attachment_channel_hidden" ("product_id", "sales_channel_id");`);
183
+ }
184
+ }
185
+ //# sourceMappingURL=20261030T113908_catalog_scope_model_media.js.map
@@ -0,0 +1,36 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 172 — product content attributes
4
+ * (`specs/172-product-content-attributes/data-model.md` §2, research R-1).
5
+ *
6
+ * `product_content_values` holds one Page Builder value per product × content
7
+ * attribute: `content` is the per-language envelope
8
+ * `{ "languages": { "<code>": <document> } }` (≤ 1 MiB of JSON, every language
9
+ * holding a block — normalised on write), and `summary` is what the product
10
+ * form's card reads instead of the documents,
11
+ * `{ "<code>": { "blocks": n, "excerpt": string | null } }`, derived from
12
+ * `content` on every write and written by nobody else.
13
+ *
14
+ * Apart from `products.attribute_values` on purpose: every reader of ordinary
15
+ * values (search, feeds, comparison, promotions, list reads, "Parametry") is
16
+ * then right by not changing (FR-011).
17
+ *
18
+ * Both foreign keys are this module's own tables and cascade: a product row's
19
+ * removal and an attribute's deletion take their content with them. A product's
20
+ * soft delete leaves the rows in place, unreachable (OR-6).
21
+ *
22
+ * - `unique (product_id, product_attribute_id)` — at most one value per
23
+ * product × attribute (FR-010); its leading column serves every per-product
24
+ * read.
25
+ * - `index (product_attribute_id)` — the usage count, the attribute-delete
26
+ * removal and the cascade.
27
+ * - No index on `content`, as `categories.content` has none: the only query
28
+ * looking inside it is the asset-reference lookup.
29
+ *
30
+ * `down()` drops the table.
31
+ */
32
+ export declare class Migration20261104T121504CatalogProductContentValues extends Migration {
33
+ up(): Promise<void>;
34
+ down(): Promise<void>;
35
+ }
36
+ //# sourceMappingURL=20261104T121504_catalog_product_content_values.d.ts.map
@@ -0,0 +1,53 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 172 — product content attributes
4
+ * (`specs/172-product-content-attributes/data-model.md` §2, research R-1).
5
+ *
6
+ * `product_content_values` holds one Page Builder value per product × content
7
+ * attribute: `content` is the per-language envelope
8
+ * `{ "languages": { "<code>": <document> } }` (≤ 1 MiB of JSON, every language
9
+ * holding a block — normalised on write), and `summary` is what the product
10
+ * form's card reads instead of the documents,
11
+ * `{ "<code>": { "blocks": n, "excerpt": string | null } }`, derived from
12
+ * `content` on every write and written by nobody else.
13
+ *
14
+ * Apart from `products.attribute_values` on purpose: every reader of ordinary
15
+ * values (search, feeds, comparison, promotions, list reads, "Parametry") is
16
+ * then right by not changing (FR-011).
17
+ *
18
+ * Both foreign keys are this module's own tables and cascade: a product row's
19
+ * removal and an attribute's deletion take their content with them. A product's
20
+ * soft delete leaves the rows in place, unreachable (OR-6).
21
+ *
22
+ * - `unique (product_id, product_attribute_id)` — at most one value per
23
+ * product × attribute (FR-010); its leading column serves every per-product
24
+ * read.
25
+ * - `index (product_attribute_id)` — the usage count, the attribute-delete
26
+ * removal and the cascade.
27
+ * - No index on `content`, as `categories.content` has none: the only query
28
+ * looking inside it is the asset-reference lookup.
29
+ *
30
+ * `down()` drops the table.
31
+ */
32
+ export class Migration20261104T121504CatalogProductContentValues extends Migration {
33
+ async up() {
34
+ this.addSql(`
35
+ create table "product_content_values" (
36
+ "id" uuid not null,
37
+ "product_id" uuid not null references "products"("id") on delete cascade,
38
+ "product_attribute_id" uuid not null references "product_attributes"("id") on delete cascade,
39
+ "content" jsonb not null,
40
+ "summary" jsonb not null default '{}',
41
+ "created_at" timestamptz not null default now(),
42
+ "updated_at" timestamptz not null default now(),
43
+ constraint "product_content_values_pkey" primary key ("id"),
44
+ constraint "product_content_values_product_attribute_unique" unique ("product_id", "product_attribute_id")
45
+ );
46
+ `);
47
+ this.addSql(`create index "product_content_values_product_attribute_idx" on "product_content_values" ("product_attribute_id");`);
48
+ }
49
+ async down() {
50
+ this.addSql(`drop table if exists "product_content_values";`);
51
+ }
52
+ }
53
+ //# sourceMappingURL=20261104T121504_catalog_product_content_values.js.map
@@ -0,0 +1,33 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Issue #693 — a deleted product frees its SKU and the SKUs of its variants.
4
+ *
5
+ * `product.delete` is a soft delete with no undo, and `products_sku_unique` /
6
+ * `product_variants_sku_unique` (both `unique ("sku")`, `core_foundation_init`) covered the
7
+ * deleted rows too, so a deleted product's SKU stayed taken for good. The deleted row keeps its
8
+ * real SKU, for audit and ERP/PIM reconciliation; uniqueness now holds among live rows only.
9
+ *
10
+ * 1. `product_variants.deleted_at` — set by the parent's `product.delete` Command, in the same
11
+ * transaction, to the product's own `deleted_at`. A variant deleted on its own is still a
12
+ * hard delete.
13
+ * 2. The back-fill: the variants of every product deleted before this migration take their
14
+ * parent's `deleted_at`, so those SKUs are freed too. Only unmarked variants are touched.
15
+ * 3. Each table-wide constraint is replaced by a partial unique index `where "deleted_at" is
16
+ * null` — `products_sku_live_unique` and `product_variants_sku_live_unique`. The index is
17
+ * created before the constraint is dropped, so there is no instant without one. Product and
18
+ * variant SKUs share one namespace; that rule spans two tables and is the services' to hold
19
+ * (`findSkuHolder`, the duplicate's `-copy` allocation, the variant create), as before.
20
+ * 4. A plain index on `sku` per table, for the lookups that do not filter on `deleted_at`.
21
+ *
22
+ * Every statement is re-runnable (`if exists` / `if not exists`, a back-fill of unmarked rows
23
+ * only), which is what lets the integration test run `up` again over a deleted product it seeds.
24
+ *
25
+ * `down()` restores the table-wide constraints and drops the column. On a database where a SKU
26
+ * has since been reused it cannot do that: the constraint refuses the duplicate and the
27
+ * transaction rolls back. Remove or rename the deleted duplicates first.
28
+ */
29
+ export declare class Migration20261107T093126CatalogSkuUniqueAmongLive extends Migration {
30
+ up(): Promise<void>;
31
+ down(): Promise<void>;
32
+ }
33
+ //# sourceMappingURL=20261107T093126_catalog_sku_unique_among_live.d.ts.map
@@ -0,0 +1,58 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Issue #693 — a deleted product frees its SKU and the SKUs of its variants.
4
+ *
5
+ * `product.delete` is a soft delete with no undo, and `products_sku_unique` /
6
+ * `product_variants_sku_unique` (both `unique ("sku")`, `core_foundation_init`) covered the
7
+ * deleted rows too, so a deleted product's SKU stayed taken for good. The deleted row keeps its
8
+ * real SKU, for audit and ERP/PIM reconciliation; uniqueness now holds among live rows only.
9
+ *
10
+ * 1. `product_variants.deleted_at` — set by the parent's `product.delete` Command, in the same
11
+ * transaction, to the product's own `deleted_at`. A variant deleted on its own is still a
12
+ * hard delete.
13
+ * 2. The back-fill: the variants of every product deleted before this migration take their
14
+ * parent's `deleted_at`, so those SKUs are freed too. Only unmarked variants are touched.
15
+ * 3. Each table-wide constraint is replaced by a partial unique index `where "deleted_at" is
16
+ * null` — `products_sku_live_unique` and `product_variants_sku_live_unique`. The index is
17
+ * created before the constraint is dropped, so there is no instant without one. Product and
18
+ * variant SKUs share one namespace; that rule spans two tables and is the services' to hold
19
+ * (`findSkuHolder`, the duplicate's `-copy` allocation, the variant create), as before.
20
+ * 4. A plain index on `sku` per table, for the lookups that do not filter on `deleted_at`.
21
+ *
22
+ * Every statement is re-runnable (`if exists` / `if not exists`, a back-fill of unmarked rows
23
+ * only), which is what lets the integration test run `up` again over a deleted product it seeds.
24
+ *
25
+ * `down()` restores the table-wide constraints and drops the column. On a database where a SKU
26
+ * has since been reused it cannot do that: the constraint refuses the duplicate and the
27
+ * transaction rolls back. Remove or rename the deleted duplicates first.
28
+ */
29
+ export class Migration20261107T093126CatalogSkuUniqueAmongLive extends Migration {
30
+ async up() {
31
+ this.addSql(`alter table "product_variants" add column if not exists "deleted_at" timestamptz null;`);
32
+ this.addSql(`update "product_variants" as v
33
+ set "deleted_at" = p."deleted_at"
34
+ from "products" as p
35
+ where p."id" = v."parent_product_id"
36
+ and p."deleted_at" is not null
37
+ and v."deleted_at" is null;`);
38
+ this.addSql(`create unique index if not exists "products_sku_live_unique" on "products" ("sku") where "deleted_at" is null;`);
39
+ this.addSql(`alter table "products" drop constraint if exists "products_sku_unique";`);
40
+ this.addSql(`create unique index if not exists "product_variants_sku_live_unique" on "product_variants" ("sku") where "deleted_at" is null;`);
41
+ this.addSql(`alter table "product_variants" drop constraint if exists "product_variants_sku_unique";`);
42
+ // The dropped constraints' indexes also served every lookup by SKU that does not filter on
43
+ // `deleted_at` — the read port's default, which history needs. A partial index cannot serve
44
+ // those, so each table keeps a plain one.
45
+ this.addSql(`create index if not exists "products_sku_index" on "products" ("sku");`);
46
+ this.addSql(`create index if not exists "product_variants_sku_index" on "product_variants" ("sku");`);
47
+ }
48
+ async down() {
49
+ this.addSql(`drop index if exists "product_variants_sku_index";`);
50
+ this.addSql(`drop index if exists "products_sku_index";`);
51
+ this.addSql(`alter table "product_variants" add constraint "product_variants_sku_unique" unique ("sku");`);
52
+ this.addSql(`drop index if exists "product_variants_sku_live_unique";`);
53
+ this.addSql(`alter table "products" add constraint "products_sku_unique" unique ("sku");`);
54
+ this.addSql(`drop index if exists "products_sku_live_unique";`);
55
+ this.addSql(`alter table "product_variants" drop column if exists "deleted_at";`);
56
+ }
57
+ }
58
+ //# sourceMappingURL=20261107T093126_catalog_sku_unique_among_live.js.map
@@ -0,0 +1,36 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Issue #234 — store `products.created_at` to the millisecond.
4
+ *
5
+ * The storefront listing pages by the keyset `(created_at, id)`, and its
6
+ * cursor carries `created_at` as a millisecond ISO string because that is all
7
+ * a JavaScript `Date` holds. A row written through the ORM has a millisecond
8
+ * value; a row whose `created_at` came from SQL `now()` — an import, a seed, a
9
+ * bulk insert — had microseconds. For such rows the next page's
10
+ * `created_at < T.mmm` left out the rest of that millisecond, and
11
+ * `created_at = T.mmm` matched none of it, so the listing never returned them.
12
+ * The price-range path and the price tail use the same keyset.
13
+ *
14
+ * `timestamptz(3)` makes PostgreSQL round every value it stores to the
15
+ * millisecond, whoever writes it, so the cursor's precision and the column's
16
+ * are the same and cannot drift apart again. The cursor logic, and every
17
+ * cursor already handed out, stay as they are (architect ruling 6,
18
+ * 2026-11-07).
19
+ *
20
+ * Existing values are rounded to the nearest millisecond (PostgreSQL rounds,
21
+ * it does not truncate). That can move a row's `created_at` by up to half a
22
+ * millisecond and give two rows the same value; `id` already breaks ties in
23
+ * every ordering over it.
24
+ *
25
+ * **Cost.** Changing the precision rewrites `products` and its indexes under
26
+ * an `ACCESS EXCLUSIVE` lock, which blocks reads and writes of the table for
27
+ * the duration of the rewrite.
28
+ *
29
+ * `down()` widens the column back to microseconds; the precision dropped by
30
+ * `up()` is not restored.
31
+ */
32
+ export declare class Migration20261107T120008CatalogProductCreatedAtMilliseconds extends Migration {
33
+ up(): Promise<void>;
34
+ down(): Promise<void>;
35
+ }
36
+ //# sourceMappingURL=20261107T120008_catalog_product_created_at_milliseconds.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Issue #234 — store `products.created_at` to the millisecond.
4
+ *
5
+ * The storefront listing pages by the keyset `(created_at, id)`, and its
6
+ * cursor carries `created_at` as a millisecond ISO string because that is all
7
+ * a JavaScript `Date` holds. A row written through the ORM has a millisecond
8
+ * value; a row whose `created_at` came from SQL `now()` — an import, a seed, a
9
+ * bulk insert — had microseconds. For such rows the next page's
10
+ * `created_at < T.mmm` left out the rest of that millisecond, and
11
+ * `created_at = T.mmm` matched none of it, so the listing never returned them.
12
+ * The price-range path and the price tail use the same keyset.
13
+ *
14
+ * `timestamptz(3)` makes PostgreSQL round every value it stores to the
15
+ * millisecond, whoever writes it, so the cursor's precision and the column's
16
+ * are the same and cannot drift apart again. The cursor logic, and every
17
+ * cursor already handed out, stay as they are (architect ruling 6,
18
+ * 2026-11-07).
19
+ *
20
+ * Existing values are rounded to the nearest millisecond (PostgreSQL rounds,
21
+ * it does not truncate). That can move a row's `created_at` by up to half a
22
+ * millisecond and give two rows the same value; `id` already breaks ties in
23
+ * every ordering over it.
24
+ *
25
+ * **Cost.** Changing the precision rewrites `products` and its indexes under
26
+ * an `ACCESS EXCLUSIVE` lock, which blocks reads and writes of the table for
27
+ * the duration of the rewrite.
28
+ *
29
+ * `down()` widens the column back to microseconds; the precision dropped by
30
+ * `up()` is not restored.
31
+ */
32
+ export class Migration20261107T120008CatalogProductCreatedAtMilliseconds extends Migration {
33
+ async up() {
34
+ this.addSql(`alter table "products" alter column "created_at" type timestamptz(3);`);
35
+ }
36
+ async down() {
37
+ this.addSql(`alter table "products" alter column "created_at" type timestamptz;`);
38
+ }
39
+ }
40
+ //# sourceMappingURL=20261107T120008_catalog_product_created_at_milliseconds.js.map
@@ -0,0 +1,37 @@
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 declare class Migration20261114T000706CatalogCategoryMainImage extends Migration {
34
+ up(): Promise<void>;
35
+ down(): Promise<void>;
36
+ }
37
+ //# sourceMappingURL=20261114T000706_catalog_category_main_image.d.ts.map