@endora-commerce/mod-catalog 0.107.0 → 0.109.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 (403) hide show
  1. package/dist/admin/components/AttachmentScopesDialog.d.ts +22 -0
  2. package/dist/admin/components/AttachmentScopesDialog.d.ts.map +1 -0
  3. package/dist/admin/components/AttachmentScopesDialog.js +70 -0
  4. package/dist/admin/components/AttachmentScopesDialog.js.map +1 -0
  5. package/dist/admin/components/PackagingUnitsEditor.d.ts +10 -1
  6. package/dist/admin/components/PackagingUnitsEditor.d.ts.map +1 -1
  7. package/dist/admin/components/PackagingUnitsEditor.js +127 -10
  8. package/dist/admin/components/PackagingUnitsEditor.js.map +1 -1
  9. package/dist/admin/components/ProductAttachmentsSection.d.ts +5 -0
  10. package/dist/admin/components/ProductAttachmentsSection.d.ts.map +1 -0
  11. package/dist/admin/components/ProductAttachmentsSection.js +137 -0
  12. package/dist/admin/components/ProductAttachmentsSection.js.map +1 -0
  13. package/dist/admin/components/ProductGallerySection.d.ts +14 -0
  14. package/dist/admin/components/ProductGallerySection.d.ts.map +1 -0
  15. package/dist/admin/components/ProductGallerySection.js +385 -0
  16. package/dist/admin/components/ProductGallerySection.js.map +1 -0
  17. package/dist/admin/components/ProductOrderRulesCard.d.ts +19 -0
  18. package/dist/admin/components/ProductOrderRulesCard.d.ts.map +1 -0
  19. package/dist/admin/components/ProductOrderRulesCard.js +275 -0
  20. package/dist/admin/components/ProductOrderRulesCard.js.map +1 -0
  21. package/dist/admin/components/ProductScopeControls.d.ts +31 -0
  22. package/dist/admin/components/ProductScopeControls.d.ts.map +1 -0
  23. package/dist/admin/components/ProductScopeControls.js +243 -0
  24. package/dist/admin/components/ProductScopeControls.js.map +1 -0
  25. package/dist/admin/components/ProductScopeEditor.d.ts +12 -18
  26. package/dist/admin/components/ProductScopeEditor.d.ts.map +1 -1
  27. package/dist/admin/components/ProductScopeEditor.js +5 -4
  28. package/dist/admin/components/ProductScopeEditor.js.map +1 -1
  29. package/dist/admin/components/ProductScopeOverview.d.ts +26 -0
  30. package/dist/admin/components/ProductScopeOverview.d.ts.map +1 -0
  31. package/dist/admin/components/ProductScopeOverview.js +207 -0
  32. package/dist/admin/components/ProductScopeOverview.js.map +1 -0
  33. package/dist/admin/components/ProductStatusPills.d.ts +17 -0
  34. package/dist/admin/components/ProductStatusPills.d.ts.map +1 -0
  35. package/dist/admin/components/ProductStatusPills.js +23 -0
  36. package/dist/admin/components/ProductStatusPills.js.map +1 -0
  37. package/dist/admin/components/ProductUrlKeysPanel.d.ts +17 -0
  38. package/dist/admin/components/ProductUrlKeysPanel.d.ts.map +1 -0
  39. package/dist/admin/components/ProductUrlKeysPanel.js +215 -0
  40. package/dist/admin/components/ProductUrlKeysPanel.js.map +1 -0
  41. package/dist/admin/components/ProductsBulkEditDialog.d.ts +30 -0
  42. package/dist/admin/components/ProductsBulkEditDialog.d.ts.map +1 -1
  43. package/dist/admin/components/ProductsBulkEditDialog.js +308 -125
  44. package/dist/admin/components/ProductsBulkEditDialog.js.map +1 -1
  45. package/dist/admin/components/ScopedDialogParts.d.ts +23 -0
  46. package/dist/admin/components/ScopedDialogParts.d.ts.map +1 -0
  47. package/dist/admin/components/ScopedDialogParts.js +16 -0
  48. package/dist/admin/components/ScopedDialogParts.js.map +1 -0
  49. package/dist/admin/index.d.ts +2 -2
  50. package/dist/admin/index.d.ts.map +1 -1
  51. package/dist/admin/index.js +9 -0
  52. package/dist/admin/index.js.map +1 -1
  53. package/dist/admin/lib/attribute-scope.d.ts +20 -0
  54. package/dist/admin/lib/attribute-scope.d.ts.map +1 -0
  55. package/dist/admin/lib/attribute-scope.js +18 -0
  56. package/dist/admin/lib/attribute-scope.js.map +1 -0
  57. package/dist/admin/lib/bulk-operation-log-text.d.ts +9 -0
  58. package/dist/admin/lib/bulk-operation-log-text.d.ts.map +1 -0
  59. package/dist/admin/lib/bulk-operation-log-text.js +13 -0
  60. package/dist/admin/lib/bulk-operation-log-text.js.map +1 -0
  61. package/dist/admin/lib/media-scopes.d.ts +41 -0
  62. package/dist/admin/lib/media-scopes.d.ts.map +1 -0
  63. package/dist/admin/lib/media-scopes.js +66 -0
  64. package/dist/admin/lib/media-scopes.js.map +1 -0
  65. package/dist/admin/lib/product-labels.d.ts +14 -0
  66. package/dist/admin/lib/product-labels.d.ts.map +1 -0
  67. package/dist/admin/lib/product-labels.js +27 -0
  68. package/dist/admin/lib/product-labels.js.map +1 -0
  69. package/dist/admin/lib/product-scope-drafts.d.ts +77 -0
  70. package/dist/admin/lib/product-scope-drafts.d.ts.map +1 -0
  71. package/dist/admin/lib/product-scope-drafts.js +133 -0
  72. package/dist/admin/lib/product-scope-drafts.js.map +1 -0
  73. package/dist/admin/lib/product-scopes-api.d.ts +40 -0
  74. package/dist/admin/lib/product-scopes-api.d.ts.map +1 -0
  75. package/dist/admin/lib/product-scopes-api.js +101 -0
  76. package/dist/admin/lib/product-scopes-api.js.map +1 -0
  77. package/dist/admin/lib/product-url-keys-api.d.ts +46 -0
  78. package/dist/admin/lib/product-url-keys-api.d.ts.map +1 -0
  79. package/dist/admin/lib/product-url-keys-api.js +110 -0
  80. package/dist/admin/lib/product-url-keys-api.js.map +1 -0
  81. package/dist/admin/lib/resolve-product-selection.d.ts +29 -1
  82. package/dist/admin/lib/resolve-product-selection.d.ts.map +1 -1
  83. package/dist/admin/lib/resolve-product-selection.js +42 -6
  84. package/dist/admin/lib/resolve-product-selection.js.map +1 -1
  85. package/dist/admin/lib/scope-overview.d.ts +74 -0
  86. package/dist/admin/lib/scope-overview.d.ts.map +1 -0
  87. package/dist/admin/lib/scope-overview.js +173 -0
  88. package/dist/admin/lib/scope-overview.js.map +1 -0
  89. package/dist/admin/pages/AttributesManager.d.ts.map +1 -1
  90. package/dist/admin/pages/AttributesManager.js +84 -7
  91. package/dist/admin/pages/AttributesManager.js.map +1 -1
  92. package/dist/admin/pages/BulkOperationDetailPage.d.ts.map +1 -1
  93. package/dist/admin/pages/BulkOperationDetailPage.js +4 -19
  94. package/dist/admin/pages/BulkOperationDetailPage.js.map +1 -1
  95. package/dist/admin/pages/ProductEditor.d.ts +0 -4
  96. package/dist/admin/pages/ProductEditor.d.ts.map +1 -1
  97. package/dist/admin/pages/ProductEditor.js +221 -374
  98. package/dist/admin/pages/ProductEditor.js.map +1 -1
  99. package/dist/admin/pages/ProductsList.d.ts +12 -0
  100. package/dist/admin/pages/ProductsList.d.ts.map +1 -1
  101. package/dist/admin/pages/ProductsList.js +105 -38
  102. package/dist/admin/pages/ProductsList.js.map +1 -1
  103. package/dist/backend/admin-search-provider.d.ts +1 -1
  104. package/dist/backend/admin-search-provider.d.ts.map +1 -1
  105. package/dist/backend/admin-search-provider.js +1 -2
  106. package/dist/backend/admin-search-provider.js.map +1 -1
  107. package/dist/backend/demo/reset.d.ts +1 -1
  108. package/dist/backend/demo/rows.d.ts +14 -3
  109. package/dist/backend/demo/rows.d.ts.map +1 -1
  110. package/dist/backend/demo/rows.js +24 -17
  111. package/dist/backend/demo/rows.js.map +1 -1
  112. package/dist/backend/demo/seed.d.ts.map +1 -1
  113. package/dist/backend/demo/seed.js +3 -6
  114. package/dist/backend/demo/seed.js.map +1 -1
  115. package/dist/backend/entities/bulk-operation.entity.d.ts +10 -0
  116. package/dist/backend/entities/bulk-operation.entity.d.ts.map +1 -1
  117. package/dist/backend/entities/bulk-operation.entity.js.map +1 -1
  118. package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts +14 -0
  119. package/dist/backend/entities/gallery-item-channel-hidden.entity.d.ts.map +1 -0
  120. package/dist/backend/entities/gallery-item-channel-hidden.entity.js +42 -0
  121. package/dist/backend/entities/gallery-item-channel-hidden.entity.js.map +1 -0
  122. package/dist/backend/entities/gallery-item-channel-label.entity.d.ts +18 -0
  123. package/dist/backend/entities/gallery-item-channel-label.entity.d.ts.map +1 -0
  124. package/dist/backend/entities/gallery-item-channel-label.entity.js +49 -0
  125. package/dist/backend/entities/gallery-item-channel-label.entity.js.map +1 -0
  126. package/dist/backend/entities/gallery-item.entity.d.ts +8 -1
  127. package/dist/backend/entities/gallery-item.entity.d.ts.map +1 -1
  128. package/dist/backend/entities/gallery-item.entity.js +11 -0
  129. package/dist/backend/entities/gallery-item.entity.js.map +1 -1
  130. package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts +13 -0
  131. package/dist/backend/entities/product-attachment-channel-hidden.entity.d.ts.map +1 -0
  132. package/dist/backend/entities/product-attachment-channel-hidden.entity.js +41 -0
  133. package/dist/backend/entities/product-attachment-channel-hidden.entity.js.map +1 -0
  134. package/dist/backend/entities/product-attachment.entity.d.ts +8 -1
  135. package/dist/backend/entities/product-attachment.entity.d.ts.map +1 -1
  136. package/dist/backend/entities/product-attachment.entity.js +15 -0
  137. package/dist/backend/entities/product-attachment.entity.js.map +1 -1
  138. package/dist/backend/entities/product-channel-language-scope.entity.d.ts +23 -0
  139. package/dist/backend/entities/product-channel-language-scope.entity.d.ts.map +1 -0
  140. package/dist/backend/entities/product-channel-language-scope.entity.js +61 -0
  141. package/dist/backend/entities/product-channel-language-scope.entity.js.map +1 -0
  142. package/dist/backend/entities/product-channel-scope.entity.d.ts +42 -0
  143. package/dist/backend/entities/product-channel-scope.entity.d.ts.map +1 -0
  144. package/dist/backend/entities/product-channel-scope.entity.js +104 -0
  145. package/dist/backend/entities/product-channel-scope.entity.js.map +1 -0
  146. package/dist/backend/entities/product-packaging-unit.entity.d.ts +13 -1
  147. package/dist/backend/entities/product-packaging-unit.entity.d.ts.map +1 -1
  148. package/dist/backend/entities/product-packaging-unit.entity.js +20 -0
  149. package/dist/backend/entities/product-packaging-unit.entity.js.map +1 -1
  150. package/dist/backend/entities/product-url-key.entity.d.ts +32 -0
  151. package/dist/backend/entities/product-url-key.entity.d.ts.map +1 -0
  152. package/dist/backend/entities/product-url-key.entity.js +75 -0
  153. package/dist/backend/entities/product-url-key.entity.js.map +1 -0
  154. package/dist/backend/entities/product-url-redirect.entity.d.ts +23 -0
  155. package/dist/backend/entities/product-url-redirect.entity.d.ts.map +1 -0
  156. package/dist/backend/entities/product-url-redirect.entity.js +58 -0
  157. package/dist/backend/entities/product-url-redirect.entity.js.map +1 -0
  158. package/dist/backend/entities/product-variant.entity.d.ts +1 -2
  159. package/dist/backend/entities/product-variant.entity.d.ts.map +1 -1
  160. package/dist/backend/entities/product-variant.entity.js +0 -5
  161. package/dist/backend/entities/product-variant.entity.js.map +1 -1
  162. package/dist/backend/entities/product.entity.d.ts +41 -2
  163. package/dist/backend/entities/product.entity.d.ts.map +1 -1
  164. package/dist/backend/entities/product.entity.js +84 -1
  165. package/dist/backend/entities/product.entity.js.map +1 -1
  166. package/dist/backend/index.d.ts +27 -6
  167. package/dist/backend/index.d.ts.map +1 -1
  168. package/dist/backend/index.js +209 -15
  169. package/dist/backend/index.js.map +1 -1
  170. package/dist/backend/plugin.d.ts +45 -4
  171. package/dist/backend/plugin.d.ts.map +1 -1
  172. package/dist/backend/plugin.js +67 -9
  173. package/dist/backend/plugin.js.map +1 -1
  174. package/dist/backend/prompt-tools.d.ts +10 -0
  175. package/dist/backend/prompt-tools.d.ts.map +1 -1
  176. package/dist/backend/prompt-tools.js +108 -4
  177. package/dist/backend/prompt-tools.js.map +1 -1
  178. package/dist/backend/routes.admin.d.ts +29 -0
  179. package/dist/backend/routes.admin.d.ts.map +1 -1
  180. package/dist/backend/routes.admin.js +161 -55
  181. package/dist/backend/routes.admin.js.map +1 -1
  182. package/dist/backend/routes.admin.url-keys.d.ts +23 -0
  183. package/dist/backend/routes.admin.url-keys.d.ts.map +1 -0
  184. package/dist/backend/routes.admin.url-keys.js +14 -0
  185. package/dist/backend/routes.admin.url-keys.js.map +1 -0
  186. package/dist/backend/routes.api-key.d.ts.map +1 -1
  187. package/dist/backend/routes.api-key.js +14 -1
  188. package/dist/backend/routes.api-key.js.map +1 -1
  189. package/dist/backend/routes.external.d.ts.map +1 -1
  190. package/dist/backend/routes.external.js +6 -1
  191. package/dist/backend/routes.external.js.map +1 -1
  192. package/dist/backend/routes.public.d.ts +24 -7
  193. package/dist/backend/routes.public.d.ts.map +1 -1
  194. package/dist/backend/routes.public.js +58 -29
  195. package/dist/backend/routes.public.js.map +1 -1
  196. package/dist/backend/routes.public.url-keys.d.ts +26 -0
  197. package/dist/backend/routes.public.url-keys.d.ts.map +1 -0
  198. package/dist/backend/routes.public.url-keys.js +17 -0
  199. package/dist/backend/routes.public.url-keys.js.map +1 -0
  200. package/dist/backend/services/asset-references.js +43 -30
  201. package/dist/backend/services/asset-references.js.map +1 -1
  202. package/dist/backend/services/attachment-packaging-scopes.d.ts +43 -0
  203. package/dist/backend/services/attachment-packaging-scopes.d.ts.map +1 -0
  204. package/dist/backend/services/attachment-packaging-scopes.js +115 -0
  205. package/dist/backend/services/attachment-packaging-scopes.js.map +1 -0
  206. package/dist/backend/services/attachment.service.d.ts +12 -1
  207. package/dist/backend/services/attachment.service.d.ts.map +1 -1
  208. package/dist/backend/services/attachment.service.js +119 -21
  209. package/dist/backend/services/attachment.service.js.map +1 -1
  210. package/dist/backend/services/attribute-scope-preview.d.ts +38 -0
  211. package/dist/backend/services/attribute-scope-preview.d.ts.map +1 -0
  212. package/dist/backend/services/attribute-scope-preview.js +66 -0
  213. package/dist/backend/services/attribute-scope-preview.js.map +1 -0
  214. package/dist/backend/services/bulk-operation.service.d.ts +36 -0
  215. package/dist/backend/services/bulk-operation.service.d.ts.map +1 -1
  216. package/dist/backend/services/bulk-operation.service.js +203 -36
  217. package/dist/backend/services/bulk-operation.service.js.map +1 -1
  218. package/dist/backend/services/bundle.service.d.ts +9 -1
  219. package/dist/backend/services/bundle.service.d.ts.map +1 -1
  220. package/dist/backend/services/bundle.service.js +12 -2
  221. package/dist/backend/services/bundle.service.js.map +1 -1
  222. package/dist/backend/services/catalog-admin-search.service.d.ts +1 -1
  223. package/dist/backend/services/catalog-admin-search.service.js +1 -1
  224. package/dist/backend/services/catalog-admin.service.d.ts +125 -18
  225. package/dist/backend/services/catalog-admin.service.d.ts.map +1 -1
  226. package/dist/backend/services/catalog-admin.service.js +367 -164
  227. package/dist/backend/services/catalog-admin.service.js.map +1 -1
  228. package/dist/backend/services/catalog-bulk-import.service.d.ts +24 -2
  229. package/dist/backend/services/catalog-bulk-import.service.d.ts.map +1 -1
  230. package/dist/backend/services/catalog-bulk-import.service.js +132 -6
  231. package/dist/backend/services/catalog-bulk-import.service.js.map +1 -1
  232. package/dist/backend/services/catalog-bulk-update.service.d.ts +32 -4
  233. package/dist/backend/services/catalog-bulk-update.service.d.ts.map +1 -1
  234. package/dist/backend/services/catalog-bulk-update.service.js +115 -12
  235. package/dist/backend/services/catalog-bulk-update.service.js.map +1 -1
  236. package/dist/backend/services/catalog-org-price-decorator.d.ts +18 -27
  237. package/dist/backend/services/catalog-org-price-decorator.d.ts.map +1 -1
  238. package/dist/backend/services/catalog-org-price-decorator.js +77 -33
  239. package/dist/backend/services/catalog-org-price-decorator.js.map +1 -1
  240. package/dist/backend/services/catalog-product-filter.service.d.ts +16 -2
  241. package/dist/backend/services/catalog-product-filter.service.d.ts.map +1 -1
  242. package/dist/backend/services/catalog-product-filter.service.js +80 -3
  243. package/dist/backend/services/catalog-product-filter.service.js.map +1 -1
  244. package/dist/backend/services/catalog-product-read.service.d.ts +45 -3
  245. package/dist/backend/services/catalog-product-read.service.d.ts.map +1 -1
  246. package/dist/backend/services/catalog-product-read.service.js +130 -3
  247. package/dist/backend/services/catalog-product-read.service.js.map +1 -1
  248. package/dist/backend/services/catalog-query.service.d.ts +145 -40
  249. package/dist/backend/services/catalog-query.service.d.ts.map +1 -1
  250. package/dist/backend/services/catalog-query.service.js +1048 -391
  251. package/dist/backend/services/catalog-query.service.js.map +1 -1
  252. package/dist/backend/services/catalog-quick-search.service.d.ts +18 -2
  253. package/dist/backend/services/catalog-quick-search.service.d.ts.map +1 -1
  254. package/dist/backend/services/catalog-quick-search.service.js +52 -20
  255. package/dist/backend/services/catalog-quick-search.service.js.map +1 -1
  256. package/dist/backend/services/catalog-write-ports.d.ts +18 -1
  257. package/dist/backend/services/catalog-write-ports.d.ts.map +1 -1
  258. package/dist/backend/services/catalog-write-ports.js +77 -0
  259. package/dist/backend/services/catalog-write-ports.js.map +1 -1
  260. package/dist/backend/services/category-admin.service.d.ts +12 -1
  261. package/dist/backend/services/category-admin.service.d.ts.map +1 -1
  262. package/dist/backend/services/category-admin.service.js +23 -2
  263. package/dist/backend/services/category-admin.service.js.map +1 -1
  264. package/dist/backend/services/channel-url-facts.d.ts +17 -0
  265. package/dist/backend/services/channel-url-facts.d.ts.map +1 -0
  266. package/dist/backend/services/channel-url-facts.js +20 -0
  267. package/dist/backend/services/channel-url-facts.js.map +1 -0
  268. package/dist/backend/services/effective-value.sql.d.ts +56 -0
  269. package/dist/backend/services/effective-value.sql.d.ts.map +1 -0
  270. package/dist/backend/services/effective-value.sql.js +111 -0
  271. package/dist/backend/services/effective-value.sql.js.map +1 -0
  272. package/dist/backend/services/gallery-scopes.d.ts +40 -0
  273. package/dist/backend/services/gallery-scopes.d.ts.map +1 -0
  274. package/dist/backend/services/gallery-scopes.js +151 -0
  275. package/dist/backend/services/gallery-scopes.js.map +1 -0
  276. package/dist/backend/services/gallery.service.d.ts +46 -4
  277. package/dist/backend/services/gallery.service.d.ts.map +1 -1
  278. package/dist/backend/services/gallery.service.js +308 -46
  279. package/dist/backend/services/gallery.service.js.map +1 -1
  280. package/dist/backend/services/linkable-asset.d.ts +21 -0
  281. package/dist/backend/services/linkable-asset.d.ts.map +1 -0
  282. package/dist/backend/services/linkable-asset.js +31 -0
  283. package/dist/backend/services/linkable-asset.js.map +1 -0
  284. package/dist/backend/services/packaging-unit.service.d.ts.map +1 -1
  285. package/dist/backend/services/packaging-unit.service.js +95 -29
  286. package/dist/backend/services/packaging-unit.service.js.map +1 -1
  287. package/dist/backend/services/primary-asset-url.d.ts +7 -1
  288. package/dist/backend/services/primary-asset-url.d.ts.map +1 -1
  289. package/dist/backend/services/primary-asset-url.js +45 -14
  290. package/dist/backend/services/primary-asset-url.js.map +1 -1
  291. package/dist/backend/services/product-availability.service.d.ts +79 -0
  292. package/dist/backend/services/product-availability.service.d.ts.map +1 -0
  293. package/dist/backend/services/product-availability.service.js +223 -0
  294. package/dist/backend/services/product-availability.service.js.map +1 -0
  295. package/dist/backend/services/product-availability.sql.d.ts +71 -0
  296. package/dist/backend/services/product-availability.sql.d.ts.map +1 -0
  297. package/dist/backend/services/product-availability.sql.js +77 -0
  298. package/dist/backend/services/product-availability.sql.js.map +1 -0
  299. package/dist/backend/services/product-link.service.d.ts +10 -9
  300. package/dist/backend/services/product-link.service.d.ts.map +1 -1
  301. package/dist/backend/services/product-link.service.js +48 -23
  302. package/dist/backend/services/product-link.service.js.map +1 -1
  303. package/dist/backend/services/product-overrides.service.d.ts +9 -2
  304. package/dist/backend/services/product-overrides.service.d.ts.map +1 -1
  305. package/dist/backend/services/product-overrides.service.js +13 -6
  306. package/dist/backend/services/product-overrides.service.js.map +1 -1
  307. package/dist/backend/services/product-page-revalidation.d.ts +51 -0
  308. package/dist/backend/services/product-page-revalidation.d.ts.map +1 -0
  309. package/dist/backend/services/product-page-revalidation.js +146 -0
  310. package/dist/backend/services/product-page-revalidation.js.map +1 -0
  311. package/dist/backend/services/product-scope-context.service.d.ts.map +1 -1
  312. package/dist/backend/services/product-scope-context.service.js +3 -2
  313. package/dist/backend/services/product-scope-context.service.js.map +1 -1
  314. package/dist/backend/services/product-scopes.service.d.ts +212 -0
  315. package/dist/backend/services/product-scopes.service.d.ts.map +1 -0
  316. package/dist/backend/services/product-scopes.service.js +638 -0
  317. package/dist/backend/services/product-scopes.service.js.map +1 -0
  318. package/dist/backend/services/product-summary-text.d.ts +8 -0
  319. package/dist/backend/services/product-summary-text.d.ts.map +1 -0
  320. package/dist/backend/services/product-summary-text.js +8 -0
  321. package/dist/backend/services/product-summary-text.js.map +1 -0
  322. package/dist/backend/services/product-value-resolver.service.d.ts +11 -1
  323. package/dist/backend/services/product-value-resolver.service.d.ts.map +1 -1
  324. package/dist/backend/services/product-value-resolver.service.js +29 -9
  325. package/dist/backend/services/product-value-resolver.service.js.map +1 -1
  326. package/dist/backend/services/publication-window-sweep.d.ts +77 -0
  327. package/dist/backend/services/publication-window-sweep.d.ts.map +1 -0
  328. package/dist/backend/services/publication-window-sweep.js +117 -0
  329. package/dist/backend/services/publication-window-sweep.js.map +1 -0
  330. package/dist/backend/services/scope-completeness.d.ts +107 -0
  331. package/dist/backend/services/scope-completeness.d.ts.map +1 -0
  332. package/dist/backend/services/scope-completeness.js +180 -0
  333. package/dist/backend/services/scope-completeness.js.map +1 -0
  334. package/dist/backend/services/scope-overview.service.d.ts +112 -0
  335. package/dist/backend/services/scope-overview.service.d.ts.map +1 -0
  336. package/dist/backend/services/scope-overview.service.js +372 -0
  337. package/dist/backend/services/scope-overview.service.js.map +1 -0
  338. package/dist/backend/services/sql-id-arrays.d.ts +16 -0
  339. package/dist/backend/services/sql-id-arrays.d.ts.map +1 -0
  340. package/dist/backend/services/sql-id-arrays.js +24 -0
  341. package/dist/backend/services/sql-id-arrays.js.map +1 -0
  342. package/dist/backend/services/storefront-value-overrides.d.ts +31 -0
  343. package/dist/backend/services/storefront-value-overrides.d.ts.map +1 -0
  344. package/dist/backend/services/storefront-value-overrides.js +48 -0
  345. package/dist/backend/services/storefront-value-overrides.js.map +1 -0
  346. package/dist/backend/services/url-key-resolution.service.d.ts +76 -0
  347. package/dist/backend/services/url-key-resolution.service.d.ts.map +1 -0
  348. package/dist/backend/services/url-key-resolution.service.js +179 -0
  349. package/dist/backend/services/url-key-resolution.service.js.map +1 -0
  350. package/dist/backend/services/url-key.service.d.ts +171 -0
  351. package/dist/backend/services/url-key.service.d.ts.map +1 -0
  352. package/dist/backend/services/url-key.service.js +738 -0
  353. package/dist/backend/services/url-key.service.js.map +1 -0
  354. package/dist/manifest.d.ts +3 -1
  355. package/dist/manifest.d.ts.map +1 -1
  356. package/dist/manifest.js +188 -13
  357. package/dist/manifest.js.map +1 -1
  358. package/dist/migrations/20261016T082008_catalog_order_rules.d.ts +22 -0
  359. package/dist/migrations/20261016T082008_catalog_order_rules.d.ts.map +1 -0
  360. package/dist/migrations/20261016T082008_catalog_order_rules.js +48 -0
  361. package/dist/migrations/20261016T082008_catalog_order_rules.js.map +1 -0
  362. package/dist/migrations/20261022T035133_catalog_product_scopes.d.ts +28 -0
  363. package/dist/migrations/20261022T035133_catalog_product_scopes.d.ts.map +1 -0
  364. package/dist/migrations/20261022T035133_catalog_product_scopes.js +92 -0
  365. package/dist/migrations/20261022T035133_catalog_product_scopes.js.map +1 -0
  366. package/dist/migrations/20261022T054223_catalog_product_url_keys.d.ts +32 -0
  367. package/dist/migrations/20261022T054223_catalog_product_url_keys.d.ts.map +1 -0
  368. package/dist/migrations/20261022T054223_catalog_product_url_keys.js +81 -0
  369. package/dist/migrations/20261022T054223_catalog_product_url_keys.js.map +1 -0
  370. package/dist/migrations/20261022T111811_catalog_price_fields_removed.d.ts +26 -0
  371. package/dist/migrations/20261022T111811_catalog_price_fields_removed.d.ts.map +1 -0
  372. package/dist/migrations/20261022T111811_catalog_price_fields_removed.js +32 -0
  373. package/dist/migrations/20261022T111811_catalog_price_fields_removed.js.map +1 -0
  374. package/dist/migrations/20261022T182523_catalog_admin_name_keys.d.ts +38 -0
  375. package/dist/migrations/20261022T182523_catalog_admin_name_keys.d.ts.map +1 -0
  376. package/dist/migrations/20261022T182523_catalog_admin_name_keys.js +89 -0
  377. package/dist/migrations/20261022T182523_catalog_admin_name_keys.js.map +1 -0
  378. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.d.ts +34 -0
  379. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.d.ts.map +1 -0
  380. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.js +57 -0
  381. package/dist/migrations/20261025T222634_catalog_product_status_drop_draft.js.map +1 -0
  382. package/dist/migrations/20261026T033453_catalog_product_media_scopes.d.ts +26 -0
  383. package/dist/migrations/20261026T033453_catalog_product_media_scopes.d.ts.map +1 -0
  384. package/dist/migrations/20261026T033453_catalog_product_media_scopes.js +54 -0
  385. package/dist/migrations/20261026T033453_catalog_product_media_scopes.js.map +1 -0
  386. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.d.ts +27 -0
  387. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.d.ts.map +1 -0
  388. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.js +45 -0
  389. package/dist/migrations/20261026T084533_catalog_attachment_packaging_translations.js.map +1 -0
  390. package/dist/migrations/index.d.ts +9 -1
  391. package/dist/migrations/index.d.ts.map +1 -1
  392. package/dist/migrations/index.js +17 -1
  393. package/dist/migrations/index.js.map +1 -1
  394. package/docs/catalog/attachments.md +46 -4
  395. package/docs/catalog/attributes.md +11 -6
  396. package/docs/catalog/gallery-and-labels.md +63 -4
  397. package/docs/catalog/packaging-units.md +82 -8
  398. package/docs/catalog/per-channel-per-language-overrides.md +195 -10
  399. package/docs/catalog/url-keys-and-redirects.md +142 -0
  400. package/docs/catalog.md +326 -17
  401. package/i18n/en.json +931 -53
  402. package/i18n/pl.json +930 -52
  403. package/package.json +10 -10
@@ -0,0 +1,27 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 163 — attachments and packaging units per scope
4
+ * (`specs/163-product-data-scopes/data-model.md` §8, research R16; FR-078, FR-079).
5
+ *
6
+ * - `product_attachments.name_translations`, `.description_translations` — the
7
+ * attachment's name and description per language, `{ "<lang>": "<text>" }`; a
8
+ * language absent here shows the global `name` / `description`.
9
+ * - `product_packaging_units.name_translations` — the unit's name per language; the
10
+ * basket and quote-request snapshots take it in the line's language and never
11
+ * re-resolve it.
12
+ * - `product_attachment_channel_hidden` — an attachment hidden in a channel: not listed
13
+ * on that channel's product page. `product_id` is carried so a page reads one
14
+ * product's hidden set per channel from one index.
15
+ *
16
+ * Every row cascades on the attachment's, the product's and the channel's delete
17
+ * (`sales_channels` is a kernel table catalog already depends on); a product leaving a
18
+ * channel leaves its rows in place (FR-015). No backfill (R21): `'{}'` and no hidden
19
+ * row are today's behaviour.
20
+ *
21
+ * `down()` drops the table and the three columns.
22
+ */
23
+ export declare class Migration20261026T084533CatalogAttachmentPackagingTranslations extends Migration {
24
+ up(): Promise<void>;
25
+ down(): Promise<void>;
26
+ }
27
+ //# sourceMappingURL=20261026T084533_catalog_attachment_packaging_translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20261026T084533_catalog_attachment_packaging_translations.d.ts","sourceRoot":"","sources":["../../src/migrations/20261026T084533_catalog_attachment_packaging_translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,8DAA+D,SAAQ,SAAS;IAC5E,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAMrC"}
@@ -0,0 +1,45 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 163 — attachments and packaging units per scope
4
+ * (`specs/163-product-data-scopes/data-model.md` §8, research R16; FR-078, FR-079).
5
+ *
6
+ * - `product_attachments.name_translations`, `.description_translations` — the
7
+ * attachment's name and description per language, `{ "<lang>": "<text>" }`; a
8
+ * language absent here shows the global `name` / `description`.
9
+ * - `product_packaging_units.name_translations` — the unit's name per language; the
10
+ * basket and quote-request snapshots take it in the line's language and never
11
+ * re-resolve it.
12
+ * - `product_attachment_channel_hidden` — an attachment hidden in a channel: not listed
13
+ * on that channel's product page. `product_id` is carried so a page reads one
14
+ * product's hidden set per channel from one index.
15
+ *
16
+ * Every row cascades on the attachment's, the product's and the channel's delete
17
+ * (`sales_channels` is a kernel table catalog already depends on); a product leaving a
18
+ * channel leaves its rows in place (FR-015). No backfill (R21): `'{}'` and no hidden
19
+ * row are today's behaviour.
20
+ *
21
+ * `down()` drops the table and the three columns.
22
+ */
23
+ export class Migration20261026T084533CatalogAttachmentPackagingTranslations extends Migration {
24
+ async up() {
25
+ this.addSql(`alter table "product_attachments" add column "name_translations" jsonb not null default '{}'::jsonb;`);
26
+ this.addSql(`alter table "product_attachments" add column "description_translations" jsonb not null default '{}'::jsonb;`);
27
+ this.addSql(`alter table "product_packaging_units" add column "name_translations" jsonb not null default '{}'::jsonb;`);
28
+ this.addSql(`
29
+ create table "product_attachment_channel_hidden" (
30
+ "attachment_id" uuid not null references "product_attachments"("id") on delete cascade,
31
+ "sales_channel_id" uuid not null references "sales_channels"("id") on delete cascade,
32
+ "product_id" uuid not null references "products"("id") on delete cascade,
33
+ constraint "product_attachment_channel_hidden_pkey" primary key ("attachment_id", "sales_channel_id")
34
+ );
35
+ `);
36
+ this.addSql(`create index "product_attachment_channel_hidden_product_channel_idx" on "product_attachment_channel_hidden" ("product_id", "sales_channel_id");`);
37
+ }
38
+ async down() {
39
+ this.addSql(`drop table if exists "product_attachment_channel_hidden";`);
40
+ this.addSql(`alter table "product_packaging_units" drop column if exists "name_translations";`);
41
+ this.addSql(`alter table "product_attachments" drop column if exists "description_translations";`);
42
+ this.addSql(`alter table "product_attachments" drop column if exists "name_translations";`);
43
+ }
44
+ }
45
+ //# sourceMappingURL=20261026T084533_catalog_attachment_packaging_translations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20261026T084533_catalog_attachment_packaging_translations.js","sourceRoot":"","sources":["../../src/migrations/20261026T084533_catalog_attachment_packaging_translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,8DAA+D,SAAQ,SAAS;IAClF,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,sGAAsG,CACvG,CAAC;QACF,IAAI,CAAC,MAAM,CACT,6GAA6G,CAC9G,CAAC;QACF,IAAI,CAAC,MAAM,CACT,0GAA0G,CAC3G,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC;;;;;;;KAOX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CACT,iJAAiJ,CAClJ,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;QAChG,IAAI,CAAC,MAAM,CAAC,qFAAqF,CAAC,CAAC;QACnG,IAAI,CAAC,MAAM,CAAC,8EAA8E,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -53,6 +53,14 @@ import { Migration20260925T125527CatalogInventoryColumns } from './20260925T1255
53
53
  import { Migration20261008T080839CatalogProductAttributeIsPriceRule } from './20261008T080839_catalog_product_attribute_is_price_rule.js';
54
54
  import { Migration20261008T092714CatalogCategoryContent } from './20261008T092714_catalog_category_content.js';
55
55
  import { Migration20261014T170531CatalogProductListSavedViews } from './20261014T170531_catalog_product_list_saved_views.js';
56
+ import { Migration20261016T082008CatalogOrderRules } from './20261016T082008_catalog_order_rules.js';
57
+ import { Migration20261022T035133CatalogProductScopes } from './20261022T035133_catalog_product_scopes.js';
58
+ import { Migration20261022T054223CatalogProductUrlKeys } from './20261022T054223_catalog_product_url_keys.js';
59
+ import { Migration20261022T111811CatalogPriceFieldsRemoved } from './20261022T111811_catalog_price_fields_removed.js';
60
+ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_catalog_admin_name_keys.js';
61
+ import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
62
+ import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
63
+ import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
56
64
  export declare const migrations: (typeof Migration20260429T070004CatalogProductAttributeExtensions)[];
57
- 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, };
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, };
58
66
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,yDAAyD,EAAE,MAAM,2DAA2D,CAAC;AACtI,OAAO,EAAE,0DAA0D,EAAE,MAAM,8DAA8D,CAAC;AAC1I,OAAO,EAAE,oDAAoD,EAAE,MAAM,uDAAuD,CAAC;AAC7H,OAAO,EAAE,iDAAiD,EAAE,MAAM,kDAAkD,CAAC;AACrH,OAAO,EAAE,2CAA2C,EAAE,MAAM,4CAA4C,CAAC;AACzG,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,2DAA2D,EAAE,MAAM,8DAA8D,CAAC;AAC3I,OAAO,EAAE,uDAAuD,EAAE,MAAM,0DAA0D,CAAC;AACnI,OAAO,EAAE,oDAAoD,EAAE,MAAM,sDAAsD,CAAC;AAC5H,OAAO,EAAE,oDAAoD,EAAE,MAAM,sDAAsD,CAAC;AAC5H,OAAO,EAAE,wDAAwD,EAAE,MAAM,2DAA2D,CAAC;A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9C,oDAAoD,EACpD,yCAAyC,EACzC,4CAA4C,EAC5C,6CAA6C,EAC7C,iDAAiD,EACjD,4CAA4C,EAC5C,qDAAqD,EACrD,iDAAiD,EACjD,8DAA8D,GAC/D,CAAC"}
@@ -53,6 +53,14 @@ import { Migration20260925T125527CatalogInventoryColumns } from './20260925T1255
53
53
  import { Migration20261008T080839CatalogProductAttributeIsPriceRule } from './20261008T080839_catalog_product_attribute_is_price_rule.js';
54
54
  import { Migration20261008T092714CatalogCategoryContent } from './20261008T092714_catalog_category_content.js';
55
55
  import { Migration20261014T170531CatalogProductListSavedViews } from './20261014T170531_catalog_product_list_saved_views.js';
56
+ import { Migration20261016T082008CatalogOrderRules } from './20261016T082008_catalog_order_rules.js';
57
+ import { Migration20261022T035133CatalogProductScopes } from './20261022T035133_catalog_product_scopes.js';
58
+ import { Migration20261022T054223CatalogProductUrlKeys } from './20261022T054223_catalog_product_url_keys.js';
59
+ import { Migration20261022T111811CatalogPriceFieldsRemoved } from './20261022T111811_catalog_price_fields_removed.js';
60
+ import { Migration20261022T182523CatalogAdminNameKeys } from './20261022T182523_catalog_admin_name_keys.js';
61
+ import { Migration20261025T222634CatalogProductStatusDropDraft } from './20261025T222634_catalog_product_status_drop_draft.js';
62
+ import { Migration20261026T033453CatalogProductMediaScopes } from './20261026T033453_catalog_product_media_scopes.js';
63
+ import { Migration20261026T084533CatalogAttachmentPackagingTranslations } from './20261026T084533_catalog_attachment_packaging_translations.js';
56
64
  export const migrations = [
57
65
  Migration20260429T064146CatalogAttributeSetsInit,
58
66
  Migration20260429T070004CatalogProductAttributeExtensions,
@@ -81,6 +89,14 @@ export const migrations = [
81
89
  Migration20261008T080839CatalogProductAttributeIsPriceRule,
82
90
  Migration20261008T092714CatalogCategoryContent,
83
91
  Migration20261014T170531CatalogProductListSavedViews,
92
+ Migration20261016T082008CatalogOrderRules,
93
+ Migration20261022T035133CatalogProductScopes,
94
+ Migration20261022T054223CatalogProductUrlKeys,
95
+ Migration20261022T111811CatalogPriceFieldsRemoved,
96
+ Migration20261022T182523CatalogAdminNameKeys,
97
+ Migration20261025T222634CatalogProductStatusDropDraft,
98
+ Migration20261026T033453CatalogProductMediaScopes,
99
+ Migration20261026T084533CatalogAttachmentPackagingTranslations,
84
100
  ];
85
- 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, };
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, };
86
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,yDAAyD,EAAE,MAAM,2DAA2D,CAAC;AACtI,OAAO,EAAE,0DAA0D,EAAE,MAAM,8DAA8D,CAAC;AAC1I,OAAO,EAAE,oDAAoD,EAAE,MAAM,uDAAuD,CAAC;AAC7H,OAAO,EAAE,iDAAiD,EAAE,MAAM,kDAAkD,CAAC;AACrH,OAAO,EAAE,2CAA2C,EAAE,MAAM,4CAA4C,CAAC;AACzG,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,2DAA2D,E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,EAC7C,iDAAiD,EACjD,4CAA4C,EAC5C,qDAAqD,EACrD,iDAAiD,EACjD,8DAA8D,GAC/D,CAAC"}
@@ -34,10 +34,45 @@ 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 |
38
- | `PATCH /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Update name / description / type / position |
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 |
39
39
  | `DELETE /api/v1/admin/catalog/products/:id/attachments/:attachmentId` | admin | Remove (Asset survives) |
40
40
 
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
62
+ still download it. Do not rely on hiding to keep a document confidential: a file
63
+ that must not be public must not be attached to the product.
64
+
65
+ Creating or updating an attachment is recorded once in the audit log, as
66
+ `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.
72
+
73
+ With none of these set, every channel lists every attachment under its global name,
74
+ as before.
75
+
41
76
  ## Errors
42
77
 
43
78
  | Code | Status | When |
@@ -47,11 +82,14 @@ admin panel. Deleting a type that any product still references returns
47
82
  | `ATTACHMENT_TYPE_CODE_TAKEN` | 409 | `code` collision on create |
48
83
  | `ATTACHMENT_TYPE_NOT_FOUND` | 404 | `:id` missing |
49
84
  | `ATTACHMENT_NOT_FOUND` | 404 | `:attachmentId` missing |
85
+ | `SCOPE_INVALID` | 422 | Hiding an attachment in a channel the product is not in |
50
86
 
51
87
  ## Storefront integration
52
88
 
53
89
  `productDetail.attachments[]` carries the full type and Asset metadata
54
- (filename, sizeBytes, mimeType, url). The `<AttachmentsList>` component
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
55
93
  groups by AttachmentType (preserving first-seen order so admin-curated
56
94
  positions shape the section ordering), renders one heading per type,
57
95
  and emits download anchors with `download={filename}` for clean file
@@ -61,7 +99,11 @@ names.
61
99
 
62
100
  `attachment_types` (id, code unique, name jsonb, position) +
63
101
  `product_attachments` (id, product_id FK CASCADE, asset_id FK RESTRICT,
64
- attachment_type_id FK RESTRICT, name, description, position).
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.
65
107
 
66
108
  The Foundation has no public `AssetsService` — the catalog uses direct
67
109
  `Asset` entity imports across modules. An admin Asset upload UI is a
@@ -38,7 +38,7 @@ Plus the behavioural flags and a numeric position:
38
38
  | `isVariantAxis` | `false` | Configurable-product variant picker |
39
39
  | `isRequired` | `false` | Product-save validator (only when the attribute is in the assigned Attribute Set) |
40
40
  | `isPromoRule` | `false` | Promotion Rule criterion picker |
41
- | `isPriceRule` | `false` | Price Lists — whether the attribute may select products in a price list's **price matrix** (the `price_lists` module). Only a single-choice, multiple-choice or yes/no attribute that is neither per-language nor per-channel qualifies. Clearing the flag deactivates the matrix entries that use the attribute — they stop affecting prices and resume when the flag is set again; it never causes a pricing error. |
41
+ | `isPriceRule` | `false` | Price books (the `price_lists` module) — shown as **Price list rules**: whether a price book may price products by this attribute's value, on an *attribute value* line or a *category and attribute value* line. Only a single-choice, multiple-choice or yes/no attribute that is neither per-language nor per-channel qualifies. A variant matches on its own axis values, overlaid on its product's values. Clearing the flag deactivates the lines that use the attribute — they stop affecting prices, the price grid shows them as *Inactive*, and they resume when the flag is set again; it never causes a pricing error. |
42
42
  | `isVisibleOnProductPage` | `false` | PDP "Parametry produktu" tab |
43
43
  | `displayAsSlider` | `false` | Storefront sidebar — renders a range slider; only valid for `valueType ∈ ('number','price')` |
44
44
  | `filterPosition` | `0` | Storefront sidebar sort key (ascending; ties broken alphabetically by the resolved label) |
@@ -234,11 +234,16 @@ internals:
234
234
  - `buildVisibleAttributesProjection()` — internal, used by the PDP
235
235
  detail response to assemble the `visibleAttributes[]` payload.
236
236
 
237
- `isPriceRule` has no method of its own. A pricing consumer reads it
238
- through the `catalogAttributeReadPort` — `listByFlag('isPriceRule')`
239
- for the attributes a price rule may name, and `isPriceRule` on every
240
- attribute view to refuse one that may not — and the admin picker
241
- payload is `GET /api/v1/admin/catalog/attributes/by-flag?flag=isPriceRule`.
237
+ `isPriceRule` has no method of its own. `price_lists` reads it through
238
+ the `catalogAttributeReadPort` — `listByFlag('isPriceRule')` for the
239
+ attributes a price-book line may name, and `isPriceRule` on every
240
+ attribute view to refuse one that may not — once per pricing batch, so a
241
+ flag change takes effect on the next resolution; an `attribute.updated.v1`
242
+ event also clears the pricing caches and marks on the price surface the
243
+ products that price-book rows naming the attribute select. The
244
+ price-book editor's picker is
245
+ `GET /api/v1/admin/price-books/targets/attributes`, which lists only the
246
+ eligible attributes with their option values.
242
247
 
243
248
  ## See also
244
249
 
@@ -24,7 +24,9 @@ typed conflict error rather than silent data corruption.
24
24
  | `GET /api/v1/admin/catalog/products/:id/gallery` | admin | List the Product's gallery |
25
25
  | `POST /api/v1/admin/catalog/products/:id/gallery` | admin | Attach an existing image/video Asset with optional labels |
26
26
  | `POST .../gallery?replace=true` | admin | Atomic-swap: remove conflicting labels from other items in this Product, then assign |
27
- | `PATCH /api/v1/admin/catalog/products/:id/gallery/:itemId` | admin | Update labels (same `?replace=true` toggle) |
27
+ | `PATCH /api/v1/admin/catalog/products/:id/gallery/:itemId` | admin | Update labels (same `?replace=true` toggle), alt text per language, channels the item is hidden in |
28
+ | `GET /api/v1/admin/catalog/products/:id/gallery/channel-roles` | admin | Each sales channel's own role holders |
29
+ | `PUT /api/v1/admin/catalog/products/:id/gallery/channel-roles` | admin | Set or clear a sales channel's own role holders |
28
30
  | `DELETE /api/v1/admin/catalog/products/:id/gallery/:itemId` | admin | Remove from gallery (Asset row survives) |
29
31
  | `PUT /api/v1/admin/catalog/products/:id/gallery/order` | admin | Reorder by id list |
30
32
 
@@ -36,6 +38,56 @@ service drops the conflicting assignments first then inserts the new
36
38
  one — all in a single transaction, so concurrent admins never see a
37
39
  half-applied state.
38
40
 
41
+ ## Per sales channel and per language
42
+
43
+ The set of images is the same in every sales channel: a channel cannot add an image
44
+ of its own or reorder the gallery. What a channel can change is which image holds
45
+ each role and which images it shows. The alt text can be set per language.
46
+
47
+ - **Role per channel.** `PUT …/gallery/channel-roles` with
48
+ `{ "channelId": "…", "roles": { "baseImage": "<itemId>", "smallImage": null } }`
49
+ gives the channel its own holder of a role. `null` returns the role to the global
50
+ holder; a role left out is unchanged. The keys are `baseImage`, `smallImage` and
51
+ `thumbnail`. Each role has at most one holder per channel. `GET` lists the
52
+ channels that have an override of their own.
53
+ - **Hidden per channel.** `PATCH …/gallery/:itemId` with
54
+ `{ "hiddenInChannels": ["…"] }` replaces the set of channels the image is hidden
55
+ in. A hidden image is not served in that channel: not in the product page's
56
+ gallery, not as the listing card's image, not as the Open Graph image, not in a
57
+ product feed of that channel and not in a comparison seen in it. A role whose
58
+ holder is hidden in a channel has no holder there, so the listing card moves on to
59
+ the next image in its chain.
60
+ - **Alt text per language.** `PATCH …/gallery/:itemId` with
61
+ `{ "altText": { "pl-PL": "…", "de-DE": "" } }` sets the product's own alt text of
62
+ the image in each named language. An empty string removes that language, and a
63
+ language left out is unchanged. The product page serves the text in the request's
64
+ language, else the asset's own alt text.
65
+
66
+ You can hide an image or give it a role only in a channel the product is in;
67
+ otherwise the request answers `422 SCOPE_INVALID`. Removing an override is always
68
+ allowed, even after the product has left the channel.
69
+
70
+ Hiding is presentation, not access control. A hidden image is not shown in the
71
+ channel, but its file keeps its stable URL, and anyone who has that URL can still
72
+ fetch it. Do not rely on hiding to keep an image confidential: a file that must
73
+ not be public must not be in the product's gallery.
74
+
75
+ Each of these writes is recorded once in the audit log as
76
+ `product.media.update`, with the item's (or the channel's roles') state before and
77
+ after. Sending the recorded before-state back through the same route restores it.
78
+ The write announces `product.updated.v1` with `changedFields: ["media"]`. A request
79
+ that changes nothing writes nothing and announces nothing.
80
+
81
+ The same holds for an item's labels and for the gallery's order. A `PATCH` that
82
+ changes labels records them (`labels`) in the item's state; the labels are
83
+ replaced in the same transaction as the rest of the item, so a refused label leaves
84
+ the item untouched. With `?replace=true` the entry restores this item only: a label
85
+ taken from another item is not handed back by re-sending it. `PUT …/gallery/order`
86
+ records `orderedGalleryItemIds` before and after, and runs in one transaction.
87
+ Deleting an item is recorded once, as `gallery_item.delete`.
88
+
89
+ With no override, every channel shows the global gallery, as before.
90
+
39
91
  ## Errors
40
92
 
41
93
  | Code | Status | When |
@@ -43,12 +95,15 @@ half-applied state.
43
95
  | `GALLERY_LABEL_ALREADY_TAKEN` | 409 | Label conflict without `?replace=true` |
44
96
  | `GALLERY_LABEL_LIMIT_EXCEEDED` | 400 | More than 3 labels on a single item |
45
97
  | `ASSET_KIND_NOT_SUPPORTED` | 400 | Asset kind ∉ `{image, video}` |
46
- | `GALLERY_ITEM_NOT_FOUND` | 404 | `:itemId` missing |
98
+ | `GALLERY_ITEM_NOT_FOUND` | 404 | `:itemId` missing, or a channel role names an item of another product |
99
+ | `SCOPE_INVALID` | 422 | Hiding an image or giving a role in a channel the product is not in |
47
100
  | `PRODUCT_NOT_FOUND` | 404 | `:id` missing |
48
101
 
49
102
  ## Storefront integration
50
103
 
51
- `productDetail.gallery[]` carries `{id, position, labels[], asset{id, kind, url}}`.
104
+ `productDetail.gallery[]` carries `{id, position, labels[], asset{id, kind, url}, altText}`,
105
+ as the request's sales channel shows it: hidden items are left out, `labels` are the
106
+ channel's roles, and `altText` is in the request's language.
52
107
  The `<GallerySwitcher>` component renders the Base Image as the primary
53
108
  `<img>` (or the first item if no Base Image is set) and emits a thumbnail
54
109
  strip with the Small Image marked via `data-small-image="true"` for
@@ -70,4 +125,8 @@ over the listing thumbnail so social shares get the marketer's hero shot.
70
125
  `gallery_items` (id, product_id FK CASCADE, asset_id FK RESTRICT,
71
126
  position, timestamps) + `gallery_item_labels` (composite PK on
72
127
  (gallery_item_id, label), `UNIQUE (product_id, label)`, CHECK label IN
73
- ('base_image', 'small_image', 'thumbnail')).
128
+ ('base_image', 'small_image', 'thumbnail')). `gallery_items.alt_text` holds the alt
129
+ text per language. `gallery_item_channel_labels` holds a channel's own role holder
130
+ (primary key (product_id, sales_channel_id, label)) and `gallery_item_channel_hidden`
131
+ an item hidden in a channel (primary key (gallery_item_id, sales_channel_id)); both
132
+ cascade on the product's, the item's and the channel's delete.
@@ -15,9 +15,71 @@ Manage packaging units in the **Inventory** section of the product card
15
15
  (simple and configurable products only). Each unit has:
16
16
 
17
17
  - a **name** (operator text, e.g. `Paleta`, `Karton`) — unique within the product,
18
+ optionally translated per language (see *Name per language* below),
18
19
  - a **base quantity** (whole number ≥ 1) — how many base pieces the unit holds,
19
20
  - a **default** flag — the unit pre-selected on the storefront,
20
- - a **position** — the order units appear in.
21
+ - a **position** — the order units appear in,
22
+ - an optional **minimum** — the fewest of this unit a buyer may order at once
23
+ (whole number from 1 to 1 000 000; empty for none).
24
+
25
+ ## Minimum number of units
26
+
27
+ A unit's minimum is counted over **every line of the product ordered in that
28
+ unit**, across all variants: a line counts its pieces divided by the unit's
29
+ base quantity. Pallet minimum 2 is met by one line of 2 pallets, or by two
30
+ lines of 1 pallet of different variants. It is independent of the product's
31
+ minimum in pieces (set in the product's **Order rules** card): both may be set,
32
+ and an order must satisfy each. Pieces ordered singly or in another unit do not
33
+ count toward this unit's minimum, but every line counts toward the pieces
34
+ minimum.
35
+
36
+ A basket, quote request or order that leaves a unit below its minimum is
37
+ refused with `422 PACKAGING_UNIT_BELOW_MINIMUM_QUANTITY`, whose message names
38
+ the product, the minimum and the unit. The storefront starts the quantity at
39
+ the selected unit's minimum. The admin's Create order screen and the external
40
+ order API carry no packaging unit, so only the pieces minimum is reachable
41
+ there.
42
+
43
+ On a quote request a line names its unit by `packagingUnitId`; the server
44
+ stores the catalogue's name and base quantity for it. A line that sends a
45
+ packaging name and base quantity without an id is accepted only when both
46
+ match one of the product's units. Anything else is refused with
47
+ `422 PACKAGING_UNIT_MISMATCH` — an id that is unknown, deleted or another
48
+ product's unit all give the same reason.
49
+
50
+ **For API clients:** a name sent without an id is matched against the unit's
51
+ **global** name only, never against its translations (see *Name per language*).
52
+ A line that sends the name a buyer saw in a translated storefront — `Pallet`
53
+ where the global name is `Paleta` — is refused with
54
+ `422 PACKAGING_UNIT_MISMATCH` (reason `name_unknown`). Send the
55
+ `packagingUnitId`, or the global name.
56
+
57
+ ## Name per language
58
+
59
+ A unit's name can be translated: `nameTranslations` maps a language to a name, e.g.
60
+ `{ "en-GB": "Pallet", "de-DE": "" }`. A named language is set, an empty string
61
+ removes it, and a language left out is unchanged; each name is at most 160
62
+ characters. The unit's own `name` stays the global name: it is the one that must be
63
+ unique within the product, the one a quote line sent without an id is matched
64
+ against, and the one minimum refusals name.
65
+
66
+ Where a buyer sees the unit, its name is the translation in the request's language,
67
+ else the global name:
68
+
69
+ - the product page's `packagingUnits[].name`;
70
+ - the name a basket line snapshots — in the basket's language on its channel. When
71
+ an administrator names the channel on a customer's behalf, the name is taken in
72
+ that channel's default language, like the product name beside it;
73
+ - the name a buyer's quote-request line snapshots — in the request's language on the
74
+ channel it is raised on.
75
+
76
+ Creating or updating a unit is recorded once in the audit log, as
77
+ `packaging_unit.create` or `packaging_unit.update`, with the unit's state before and
78
+ after (its product, name, `nameTranslations`, base quantity, default flag and
79
+ minimum). Sending the recorded before-state back through the same route (without
80
+ `productId`) restores it. The write announces `product.updated.v1` with
81
+ `changedFields: ["packagingUnits"]`. A request that changes nothing writes nothing
82
+ and announces nothing.
21
83
 
22
84
  ## For buyers
23
85
 
@@ -30,7 +92,7 @@ line of the same product stay separate.
30
92
  ## How the label travels
31
93
 
32
94
  The unit name and base quantity are **snapshotted** on the line when it is
33
- created, so later edits to (or deletion of) a product's packaging units never
95
+ created — the name in the line's language, as above — so later edits to (or deletion of) a product's packaging units never
34
96
  change historical carts, orders, or quote requests.
35
97
 
36
98
  - **Cart** — `cart_items` snapshot the unit; the cart serializer composes a
@@ -43,8 +105,9 @@ change historical carts, orders, or quote requests.
43
105
 
44
106
  ## Pricing & availability
45
107
 
46
- Pricing reuses the existing engine on the resulting base-piece quantity
47
- (including price-list quantity tiers) — there is no separate per-unit price.
108
+ A line in a packaging unit is priced by the price books on the resulting
109
+ base-piece quantity (including the books' quantity tiers) — there is no
110
+ separate per-unit price.
48
111
  Stock availability and per-line limits are evaluated on the resulting piece
49
112
  count.
50
113
 
@@ -52,9 +115,15 @@ count.
52
115
 
53
116
  - Admin CRUD: `GET/POST /api/v1/admin/catalog/products/:id/packaging-units`,
54
117
  `PATCH/DELETE …/:unitId`, `PATCH …/packaging-units/reorder`
55
- (gated by `catalog:read` / `catalog:write`).
118
+ (gated by `catalog:read` / `catalog:write`). Create and update accept an
119
+ optional `nameTranslations` and an optional `minOrderUnits` (`1…1000000`, or `null` to clear); the response
120
+ always carries it. The in-process `CatalogPackagingPort`, used by PIM
121
+ connectors, accepts the same optional field and refuses an out-of-range
122
+ value with `422 VALIDATION_FAILED`; a writer that never sends it keeps
123
+ working.
56
124
  - Public: the product detail (`GET /api/v1/catalog/products/:idOrSlug`)
57
- includes an optional `packagingUnits` array.
125
+ includes an optional `packagingUnits` array; each unit carries its name in
126
+ the request's language and `minOrderUnits` (`null` when none).
58
127
  - Cart: `POST /api/v1/cart/items` accepts an optional `packagingUnitId`; the
59
128
  resulting line quantity is `baseQuantity × quantity`.
60
129
 
@@ -64,7 +133,12 @@ Table `product_packaging_units` (migration
64
133
  `20260611T140412_catalog_product_packaging_units.ts`): `id`, `product_id`
65
134
  (FK → `products`, cascade delete), `name`, `base_quantity`
66
135
  (`CHECK >= 1`), `position`, `is_default`, timestamps; `UNIQUE (product_id,
67
- name)`. Additive snapshot columns, each added by its owning module:
136
+ name)`. Migration `20261016T082008_catalog_order_rules.ts` adds
137
+ `min_order_units` (nullable, `CHECK` 1–1 000 000), and
138
+ `20261026T084533_catalog_attachment_packaging_translations.ts` adds
139
+ `name_translations` (jsonb, `{}` by default). Additive snapshot columns, each added by its owning module:
68
140
  `cart_items` (`20260611T140413_carts_cart_item_packaging.ts`), `order_items`
69
141
  (`20260611T140414_orders_order_item_packaging.ts`), `quote_request_items`
70
- (`20260611T140415_quote_requests_qr_item_packaging.ts`).
142
+ (`20260611T140415_quote_requests_qr_item_packaging.ts`; its
143
+ `packaging_unit_id` from
144
+ `20261018T122118_quote_requests_item_packaging_unit_id.ts`).