@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
@@ -25,7 +25,13 @@ let Product = class Product {
25
25
  sku;
26
26
  slug;
27
27
  type;
28
- status = 'draft';
28
+ /**
29
+ * Feature 163 (FR-010, FR-019, FR-110) — `active` | `inactive`; `inactive` is
30
+ * plain off and never archives. Archiving is `archivedAt`, written only by the
31
+ * Archive / Restore action. New and duplicated products start `inactive` (Q1-d);
32
+ * the database refuses any other value (`products_status_check`).
33
+ */
34
+ status = 'inactive';
29
35
  name;
30
36
  description;
31
37
  /** Per-product override of global stock mode (categorical/numeric/null=inherit). */
@@ -118,6 +124,39 @@ let Product = class Product {
118
124
  /** When `fulfilment_strategy = 'defined_order'`, the ordered list
119
125
  * of warehouse UUIDs to walk. */
120
126
  fulfilmentStrategyWarehouseOrder;
127
+ /**
128
+ * Feature 155 (FR-001) — the minimum order quantity in pieces, 1…1 000 000,
129
+ * or `null` for none; `1` is equivalent to none. Meaningful for `simple`
130
+ * and `configurable` products only, and inherited by their variants.
131
+ */
132
+ minOrderQuantity;
133
+ /**
134
+ * Feature 155 (FR-003, FR-004) — whether the product may be returned.
135
+ * `false` unless an operator turns it on; snapshotted onto each order line
136
+ * at placement.
137
+ */
138
+ returnable = false;
139
+ /**
140
+ * Feature 161 (G15, `specs/161-price-book-editor/research.md` R14) — the
141
+ * admin name key and search key per admin language: **generated stored**
142
+ * columns Postgres computes from `name` and `sku` on every write (migration
143
+ * `…_catalog_admin_name_keys`). Read-only here: the ORM never writes them,
144
+ * never loads them unless asked (`lazy`) and never serialises them
145
+ * (`hidden`); `pageProductsByAdminName` reads them in SQL.
146
+ */
147
+ adminNameKeyEn;
148
+ adminNameKeyPl;
149
+ adminSearchKeyEn;
150
+ adminSearchKeyPl;
151
+ /**
152
+ * Feature 163 (FR-023) — the global publication window, inclusive at both
153
+ * ends; `null` = open on that side. A channel may replace the pair
154
+ * (`product_channel_scopes.window_overridden`). Never changes `status`: the
155
+ * window is evaluated at read time (A-4).
156
+ */
157
+ publishFrom;
158
+ /** Feature 163 (FR-023) — the end of the global publication window, inclusive. */
159
+ publishUntil;
121
160
  };
122
161
  __decorate([
123
162
  PrimaryKey({ type: 'uuid' }),
@@ -222,6 +261,50 @@ __decorate([
222
261
  Property({ type: 'json', nullable: true }),
223
262
  __metadata("design:type", Object)
224
263
  ], Product.prototype, "fulfilmentStrategyWarehouseOrder", void 0);
264
+ __decorate([
265
+ Property({ type: 'integer', nullable: true }),
266
+ __metadata("design:type", Object)
267
+ ], Product.prototype, "minOrderQuantity", void 0);
268
+ __decorate([
269
+ Property({ type: 'boolean' }),
270
+ __metadata("design:type", Boolean)
271
+ ], Product.prototype, "returnable", void 0);
272
+ __decorate([
273
+ Property({ type: 'text', generated: `(catalog_admin_name_key("name", "sku", 'en')) stored`, lazy: true, hidden: true, nullable: true }),
274
+ __metadata("design:type", String)
275
+ ], Product.prototype, "adminNameKeyEn", void 0);
276
+ __decorate([
277
+ Property({ type: 'text', generated: `(catalog_admin_name_key("name", "sku", 'pl')) stored`, lazy: true, hidden: true, nullable: true }),
278
+ __metadata("design:type", String)
279
+ ], Product.prototype, "adminNameKeyPl", void 0);
280
+ __decorate([
281
+ Property({
282
+ type: 'text',
283
+ generated: `(catalog_admin_name_key("name", "sku", 'en') || ' ' || lower("sku")) stored`,
284
+ lazy: true,
285
+ hidden: true,
286
+ nullable: true,
287
+ }),
288
+ __metadata("design:type", String)
289
+ ], Product.prototype, "adminSearchKeyEn", void 0);
290
+ __decorate([
291
+ Property({
292
+ type: 'text',
293
+ generated: `(catalog_admin_name_key("name", "sku", 'pl') || ' ' || lower("sku")) stored`,
294
+ lazy: true,
295
+ hidden: true,
296
+ nullable: true,
297
+ }),
298
+ __metadata("design:type", String)
299
+ ], Product.prototype, "adminSearchKeyPl", void 0);
300
+ __decorate([
301
+ Property({ type: 'datetime', nullable: true }),
302
+ __metadata("design:type", Object)
303
+ ], Product.prototype, "publishFrom", void 0);
304
+ __decorate([
305
+ Property({ type: 'datetime', nullable: true }),
306
+ __metadata("design:type", Object)
307
+ ], Product.prototype, "publishUntil", void 0);
225
308
  Product = __decorate([
226
309
  GlobalEntity(),
227
310
  Entity({ tableName: 'products' })
@@ -1 +1 @@
1
- {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../src/backend/entities/product.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;;;;;GAQG;AAGI,IAAM,OAAO,GAAb,MAAM,OAAO;IAClB,CAAC,aAAa,CAAC,CAiBwB;IAGvC,EAAE,GAAW,UAAU,EAAE,CAAC;IAI1B,GAAG,CAAU;IAKb,IAAI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EAAE,SAAS,EAAE,CAAC;;2CACF;AAWnB;IADR,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sDAAsD,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACvG;AAGxB;IADR,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sDAAsD,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACvG;AASxB;IAPR,QAAQ,CAAC;QACR,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,6EAA6E;QACxF,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACiC;AAS1B;IAPR,QAAQ,CAAC;QACR,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,6EAA6E;QACxF,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACiC;AASnC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACrB;AAI1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACpB;AAxPhB,OAAO;IAFnB,YAAY,EAAE;IACd,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;GACrB,OAAO,CAyPnB"}
@@ -16,11 +16,17 @@ import { BulkOperation } from './entities/bulk-operation.entity.js';
16
16
  import { BundleSlotOption } from './entities/bundle-slot-option.entity.js';
17
17
  import { BundleSlot } from './entities/bundle-slot.entity.js';
18
18
  import { Category } from './entities/category.entity.js';
19
+ import { GalleryItemChannelHidden } from './entities/gallery-item-channel-hidden.entity.js';
20
+ import { ProductAttachmentChannelHidden } from './entities/product-attachment-channel-hidden.entity.js';
19
21
  import { GalleryItemLabel } from './entities/gallery-item-label.entity.js';
20
22
  import { GalleryItem } from './entities/gallery-item.entity.js';
21
23
  import { GroupedItem } from './entities/grouped-item.entity.js';
22
24
  import { ProductAttachment } from './entities/product-attachment.entity.js';
23
25
  import { ProductAttribute } from './entities/product-attribute.entity.js';
26
+ import { ProductChannelLanguageScope } from './entities/product-channel-language-scope.entity.js';
27
+ import { ProductChannelScope } from './entities/product-channel-scope.entity.js';
28
+ import { ProductUrlKey } from './entities/product-url-key.entity.js';
29
+ import { ProductUrlRedirect } from './entities/product-url-redirect.entity.js';
24
30
  import { ProductEditorPreference } from './entities/product-editor-preference.entity.js';
25
31
  import { ProductLink } from './entities/product-link.entity.js';
26
32
  import { ProductListSavedView } from './entities/product-list-saved-view.entity.js';
@@ -31,6 +37,7 @@ import { Product } from './entities/product.entity.js';
31
37
  import { catalogModule, type CatalogModuleOptions } from './plugin.js';
32
38
  import type { CustomFieldDefinitionApplyApi } from './commands/attribute-commands.js';
33
39
  import { CatalogAdminService } from './services/catalog-admin.service.js';
40
+ import { ProductPageRevalidation } from './services/product-page-revalidation.js';
34
41
  import { CategoryAdminService } from './services/category-admin.service.js';
35
42
  import { AttributeSetService } from './services/attribute-set.service.js';
36
43
  import { GalleryService } from './services/gallery.service.js';
@@ -40,7 +47,7 @@ import { GroupedService } from './services/grouped.service.js';
40
47
  import { BundleService } from './services/bundle.service.js';
41
48
  import { PackagingUnitService } from './services/packaging-unit.service.js';
42
49
  import { CatalogAttributeReadService } from './services/catalog-attribute-read.service.js';
43
- import { CatalogQueryService } from './services/catalog-query.service.js';
50
+ import { CatalogQueryService, type CatalogCursorSeal } from './services/catalog-query.service.js';
44
51
  /**
45
52
  * `catalog` — seven services each composition built **twice** (feature 072,
46
53
  * wave 4, T142; the last module in the sweep).
@@ -92,6 +99,16 @@ export interface CatalogCradle {
92
99
  readonly commandBus: CommandBus;
93
100
  readonly auditLogService: AuditPort;
94
101
  readonly moduleQueueRedis: Redis | undefined;
102
+ /**
103
+ * Issue #497 — the platform's cursor seal, a host value both composition
104
+ * roots register; declared here in the narrow shape the price walks use.
105
+ */
106
+ readonly cursorSeal: CatalogCursorSeal;
107
+ /**
108
+ * Whether this process consumes queues — the host's answer; the shared test
109
+ * server says no and drives the publication-window sweep directly.
110
+ */
111
+ readonly processRunsWorkers: boolean;
95
112
  /**
96
113
  * The process connection, distinct from `moduleQueueRedis`: the assistant's
97
114
  * bulk tools delegate over the same queue in both compositions, which is a
@@ -165,6 +182,10 @@ export interface CatalogCradle {
165
182
  readonly catalogExternalAvailability: NonNullable<CatalogModuleOptions['resolveExternalAvailability']>;
166
183
  readonly catalogImagePlaceholderUrl: NonNullable<CatalogModuleOptions['resolveProductImagePlaceholderUrl']>;
167
184
  readonly catalogSearchReindex: NonNullable<CatalogModuleOptions['reindexSearchIndexes']>;
185
+ /** Feature 163 — `seo`'s product metadata, `null` while `seo` is off (`seoProductMetaPort`). */
186
+ readonly catalogSeoProductMeta: NonNullable<CatalogModuleOptions['resolveSeoProductMeta']>;
187
+ /** Feature 163 (T118c) — `seo`'s scopes of a product, `[]` while `seo` is off. */
188
+ readonly catalogSeoProductScopes: NonNullable<CatalogModuleOptions['listSeoProductScopes']>;
168
189
  /**
169
190
  * Owned by `assets_library`: the registry that refuses to delete an asset a
170
191
  * product gallery, attachment, virtual download or category image points at.
@@ -203,6 +224,7 @@ export interface CatalogCradle {
203
224
  readonly bundleService: BundleService;
204
225
  readonly packagingUnitService: PackagingUnitService;
205
226
  readonly catalogCategoryRevalidator: StorefrontRevalidator;
227
+ readonly catalogProductPageRevalidation: ProductPageRevalidation;
206
228
  readonly catalog: ReturnType<typeof catalogModule>;
207
229
  }
208
230
  export declare function registerModule(ctx: ModuleContext): void;
@@ -222,20 +244,19 @@ export declare function registerModule(ctx: ModuleContext): void;
222
244
  * module became a package, so the registered set is the same list in the same
223
245
  * sequence.
224
246
  */
225
- export declare const entities: (typeof Category | typeof Product | typeof AttachmentType | typeof AttributeSetAttribute | typeof AttributeSet | typeof BulkOperation | typeof BundleSlotOption | typeof BundleSlot | typeof GalleryItemLabel | typeof GalleryItem | typeof GroupedItem | typeof ProductAttachment | typeof ProductAttribute | typeof ProductEditorPreference | typeof ProductLink | typeof ProductListSavedView | typeof ProductPackagingUnit | typeof ProductValueOverride | typeof ProductVariant)[];
247
+ export declare const entities: (typeof Category | typeof Product | typeof AttachmentType | typeof AttributeSetAttribute | typeof AttributeSet | typeof BulkOperation | typeof BundleSlotOption | typeof BundleSlot | typeof GalleryItemChannelHidden | typeof ProductAttachmentChannelHidden | typeof GalleryItemLabel | typeof GalleryItem | typeof GroupedItem | typeof ProductAttachment | typeof ProductAttribute | typeof ProductChannelLanguageScope | typeof ProductChannelScope | typeof ProductUrlKey | typeof ProductUrlRedirect | typeof ProductEditorPreference | typeof ProductLink | typeof ProductListSavedView | typeof ProductPackagingUnit | typeof ProductValueOverride | typeof ProductVariant)[];
226
248
  /**
227
249
  * The catalogue read surface a host program needs, published **by name**.
228
250
  *
229
- * `@endora-commerce/demo-composition` hands a `CatalogProductReadService` to
230
- * `price_lists`' `DefaultPriceListMigrator`, and its attribute helper maps a legacy
231
- * attribute value type onto the unified custom-field model. That is a package an
251
+ * `@endora-commerce/demo-composition`'s attribute helper maps a legacy attribute
252
+ * value type onto the unified custom-field model. That is a package an
232
253
  * instance installs, so it may name this one by its published door and by nothing
233
254
  * else: a filesystem path would evaluate the file a second time, and in an instance
234
255
  * there is no source to name.
235
256
  *
236
257
  * D-168 bars an **entity class** from leaving by this door; a service and a pure
237
258
  * mapping function are not entities, and `inventory`'s `WarehouseChannelReconciler` /
238
- * `price_lists`' `DefaultPriceListMigrator` are the precedent for exactly this shape.
259
+ * `price_lists`' `seedDemoPriceBooks` are the precedent for exactly this shape.
239
260
  *
240
261
  * `CatalogQueryService` is published as a **type** for `src/composition.ts`, which
241
262
  * declares the cradle slot `promotions`, `quick_order` and `search` each resolve their
@@ -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ulk-operation.entity.js';
13
13
  import { BundleSlotOption } from './entities/bundle-slot-option.entity.js';
14
14
  import { BundleSlot } from './entities/bundle-slot.entity.js';
15
15
  import { Category } from './entities/category.entity.js';
16
+ import { GalleryItemChannelHidden } from './entities/gallery-item-channel-hidden.entity.js';
17
+ import { ProductAttachmentChannelHidden } from './entities/product-attachment-channel-hidden.entity.js';
18
+ import { GalleryItemChannelLabel } from './entities/gallery-item-channel-label.entity.js';
16
19
  import { GalleryItemLabel } from './entities/gallery-item-label.entity.js';
17
20
  import { GalleryItem } from './entities/gallery-item.entity.js';
18
21
  import { GroupedItem } from './entities/grouped-item.entity.js';
19
22
  import { ProductAttachment } from './entities/product-attachment.entity.js';
20
23
  import { ProductAttribute } from './entities/product-attribute.entity.js';
24
+ import { ProductChannelLanguageScope } from './entities/product-channel-language-scope.entity.js';
25
+ import { ProductChannelScope } from './entities/product-channel-scope.entity.js';
26
+ import { ProductUrlKey } from './entities/product-url-key.entity.js';
27
+ import { ProductUrlRedirect } from './entities/product-url-redirect.entity.js';
21
28
  import { ProductEditorPreference } from './entities/product-editor-preference.entity.js';
22
29
  import { ProductLink } from './entities/product-link.entity.js';
23
30
  import { ProductListSavedView } from './entities/product-list-saved-view.entity.js';
@@ -28,6 +35,12 @@ import { Product } from './entities/product.entity.js';
28
35
  import { catalogModule } from './plugin.js';
29
36
  import { CatalogAdminService } from './services/catalog-admin.service.js';
30
37
  import { CatalogBulkImportService } from './services/catalog-bulk-import.service.js';
38
+ import { ProductAvailabilityService } from './services/product-availability.service.js';
39
+ import { ProductUrlKeyReadService } from './services/url-key-resolution.service.js';
40
+ import { ProductPageRevalidation } from './services/product-page-revalidation.js';
41
+ import { ProductScopesService } from './services/product-scopes.service.js';
42
+ import { UrlKeyService } from './services/url-key.service.js';
43
+ import { PublicationWindowSweep, startPublicationWindowSweep, } from './services/publication-window-sweep.js';
31
44
  import { CategoryAdminService } from './services/category-admin.service.js';
32
45
  import { AttributeSetService } from './services/attribute-set.service.js';
33
46
  import { GalleryService } from './services/gallery.service.js';
@@ -44,7 +57,7 @@ import { CatalogQueryService } from './services/catalog-query.service.js';
44
57
  import { CatalogQuickSearchService } from './services/catalog-quick-search.service.js';
45
58
  import { ProductOverridesService } from './services/product-overrides.service.js';
46
59
  import { AttributeValueKeyService } from './services/attribute-value-key.service.js';
47
- import { createCatalogCategoryWritePort, createCatalogProductWritePort, createCatalogPromoAttributePort, } from './services/catalog-write-ports.js';
60
+ import { createCatalogCategoryWritePort, createCatalogProductScopeWritePort, createCatalogProductWritePort, createCatalogPromoAttributePort, } from './services/catalog-write-ports.js';
48
61
  import { registerCatalogAssetReferences } from './services/asset-references.js';
49
62
  import { registerCatalogAuditReferences } from './services/audit-references.js';
50
63
  import { presenceAwareBulkRecorder } from './services/bulk-operation.service.js';
@@ -206,6 +219,40 @@ export function registerModule(ctx) {
206
219
  };
207
220
  })
208
221
  .singleton(),
222
+ /**
223
+ * Feature 163 (R13) — the product page's metadata per sales channel ×
224
+ * language. `catalog` declares `seoProductMetaPort` `degrades-without`: the
225
+ * probe comes **before** the resolution and the absent answer is `null` in
226
+ * the return type, so the page serves its derived metadata — there is no
227
+ * `catch` to swallow a genuine `seo` failure with the absence.
228
+ */
229
+ catalogSeoProductMeta: ctx
230
+ .asFunction(() => {
231
+ const seoMeta = lazyPort(ctx, 'seoProductMetaPort');
232
+ return async (input) => {
233
+ if (!effectiveState.isPresent('seo'))
234
+ return null;
235
+ const { sources: _sources, ...values } = await seoMeta.resolveForProduct(input);
236
+ return values;
237
+ };
238
+ })
239
+ .singleton(),
240
+ /**
241
+ * Feature 163 (T118c) — `seo`'s scopes of one product for the scope overview, by
242
+ * the same probe-before-resolve as the page's metadata above: with `seo` off the
243
+ * overview lists no SEO field and answers no error, and there is no `catch` to
244
+ * hide a genuine `seo` failure behind that absence.
245
+ */
246
+ catalogSeoProductScopes: ctx
247
+ .asFunction(() => {
248
+ const seoMeta = lazyPort(ctx, 'seoProductMetaPort');
249
+ return async (productId) => {
250
+ if (!effectiveState.isPresent('seo'))
251
+ return [];
252
+ return seoMeta.listScopesForProduct(productId);
253
+ };
254
+ })
255
+ .singleton(),
209
256
  /**
210
257
  * The storefront product-image placeholder
211
258
  * (`general.product_image_placeholder_url`), resolved per channel.
@@ -253,12 +300,35 @@ export function registerModule(ctx) {
253
300
  secret: process.env['REVALIDATE_SECRET'],
254
301
  }))
255
302
  .singleton(),
303
+ /**
304
+ * Feature 163 (T155 finding CACHE-1) — drops a product's cached storefront
305
+ * product-page reads after an availability-changing write (subscriptions
306
+ * below). Rides the category revalidator: the same storefront endpoint, and
307
+ * the plugin hands it `app.log`.
308
+ */
309
+ catalogProductPageRevalidation: ctx
310
+ .asFunction(({ emFactory, catalogCategoryRevalidator }) => new ProductPageRevalidation({
311
+ revalidator: catalogCategoryRevalidator,
312
+ keysOf: async (productIds) => {
313
+ const em = emFactory();
314
+ const ids = [...productIds];
315
+ const [products, keys, redirects] = await Promise.all([
316
+ em.find(Product, { id: { $in: ids } }, { fields: ['slug'] }),
317
+ em.find(ProductUrlKey, { productId: { $in: ids } }, { fields: ['key'] }),
318
+ em.find(ProductUrlRedirect, { productId: { $in: ids } }, { fields: ['key'] }),
319
+ ]);
320
+ return [...products.map((p) => p.slug), ...keys.map((k) => k.key), ...redirects.map((r) => r.key)];
321
+ },
322
+ log: { warn: (obj, msg) => ctx.log.warn(obj, msg) },
323
+ }))
324
+ .singleton(),
256
325
  catalog: ctx
257
- .asFunction(({ emFactory, eventBus, commandBus, auditLogService, moduleQueueRedis, catalogRunBulkOperationWorker, }) => catalogModule({
326
+ .asFunction(({ emFactory, eventBus, commandBus, auditLogService, moduleQueueRedis, catalogRunBulkOperationWorker, cursorSeal, }) => catalogModule({
258
327
  emFactory,
259
328
  eventBus,
260
329
  commandBus,
261
330
  auditLogService,
331
+ cursorSeal,
262
332
  ...(moduleQueueRedis === undefined ? {} : { redis: moduleQueueRedis }),
263
333
  runBulkOperationWorker: catalogRunBulkOperationWorker,
264
334
  log: ctx.log,
@@ -285,11 +355,17 @@ export function registerModule(ctx) {
285
355
  attributeReadService: lazyPort(ctx, 'catalogAttributeReadPort'),
286
356
  pricingService: lazyPort(ctx, 'pricingService'),
287
357
  salesChannelMembership: lazyPort(ctx, 'salesChannelMembershipPort'),
358
+ // Feature 163 (W5 = A) — the registered availability port, for the
359
+ // external bulk-price probe.
360
+ productAvailability: lazyPort(ctx, 'catalogProductAvailabilityPort'),
288
361
  // Feature 075 — the *read* port rather than the whole admin service.
289
362
  // The two consumers in this module ask two questions between them,
290
363
  // `listActive` and `getDefault`, which is what `languageReadPort`
291
364
  // publishes.
292
365
  languageService: lazyPort(ctx, 'languageReadPort'),
366
+ // Feature 163 (FR-060) — the completeness gate's mode, a platform-wide
367
+ // setting; the platform's own registration, so no module edge.
368
+ settingsReadPort: lazyPort(ctx, 'settingsReadPort'),
293
369
  // Absent from the harness before T142, so the bulk-operation
294
370
  // completion notice and its e-mail ran in no test.
295
371
  //
@@ -323,6 +399,11 @@ export function registerModule(ctx) {
323
399
  // another module's entity against another module's table.
324
400
  organizations: lazyPort(ctx, 'organizationDetailsPort'),
325
401
  adminUsers: lazyPort(ctx, 'adminUserReadPort'),
402
+ // Feature 163, checkpoint F (S-3) — the queued bulk operation's requester
403
+ // is re-checked at worker start. `admin_roles` is declared in
404
+ // `dependencies`; with it absent the gated port throws and the
405
+ // operation fails closed.
406
+ permissionChecker: lazyPort(ctx, 'permissionService'),
326
407
  requireAdmin: (permission) => async (req, reply) => cradle().requireAdmin(permission)(req, reply),
327
408
  requireApiKey: requireApiKeyGate,
328
409
  requireBoundApiKey: requireBoundApiKeyGate,
@@ -330,6 +411,8 @@ export function registerModule(ctx) {
330
411
  resolveExternalAvailability: (productIds, salesChannelId) => cradle().catalogExternalAvailability(productIds, salesChannelId),
331
412
  resolveProductImagePlaceholderUrl: (salesChannelCode) => cradle().catalogImagePlaceholderUrl(salesChannelCode),
332
413
  reindexSearchIndexes: () => cradle().catalogSearchReindex(),
414
+ resolveSeoProductMeta: (input) => cradle().catalogSeoProductMeta(input),
415
+ listSeoProductScopes: (productId) => cradle().catalogSeoProductScopes(productId),
333
416
  categoryRevalidator: cradle().catalogCategoryRevalidator,
334
417
  copyWarehouseThresholds,
335
418
  }))
@@ -370,7 +453,12 @@ export function registerModule(ctx) {
370
453
  * neither can be composed away by a caller.
371
454
  */
372
455
  ctx.di.providePort('catalogProductFilterPort', ctx
373
- .asFunction(({ emFactory }) => new CatalogProductFilterService(emFactory))
456
+ .asFunction(({ emFactory }) => new CatalogProductFilterService(emFactory,
457
+ // Feature 163 — a feed's scoped floor is effective availability:
458
+ // the registered `catalogProductAvailabilityPort` instance (typed as
459
+ // the service for its `scopeChannel`, as `catalogAttributeReadPort`
460
+ // is below), never a second one (code review N4).
461
+ lazyPort(ctx, 'catalogProductAvailabilityPort')))
374
462
  .singleton());
375
463
  ctx.di.providePort('catalogProductWritePort', ctx
376
464
  .asFunction(() => createCatalogProductWritePort(() => ctx.cradle().catalogAdminService))
@@ -408,7 +496,9 @@ export function registerModule(ctx) {
408
496
  * module's tables and in nobody else's.
409
497
  */
410
498
  ctx.di.providePort('catalogBulkImportPort', ctx
411
- .asFunction(({ commandBus }) => new CatalogBulkImportService(commandBus, lazyPort(ctx, 'salesChannelMembershipPort')))
499
+ .asFunction(({ commandBus, emFactory, eventBus }) => new CatalogBulkImportService(commandBus, lazyPort(ctx, 'salesChannelMembershipPort'),
500
+ // Feature 163 (FR-092) — the scoped-status columns of the products file.
501
+ { emFactory, eventBus }))
412
502
  .singleton());
413
503
  /**
414
504
  * Issue #174 — the buyer's type-ahead, which `quick_order` was answering
@@ -424,7 +514,39 @@ export function registerModule(ctx) {
424
514
  * customer-facing read in this module.
425
515
  */
426
516
  ctx.di.providePort('catalogQuickSearchPort', ctx
427
- .asFunction(({ emFactory }) => new CatalogQuickSearchService(emFactory, lazyPort(ctx, 'catalogAttributeReadPort')))
517
+ .asFunction(({ emFactory }) => new CatalogQuickSearchService(emFactory, lazyPort(ctx, 'catalogAttributeReadPort'), lazyPort(ctx, 'salesChannelMembershipPort'), lazyPort(ctx, 'salesChannelResolutionPort')))
518
+ .singleton());
519
+ /**
520
+ * Feature 163 — the one way another module asks whether a product is
521
+ * available at (sales channel, language) to an audience, now
522
+ * (`specs/163-product-data-scopes/contracts/product-scopes.md` §3, FR-002).
523
+ * Consumers replace their own status, membership and audience tests with
524
+ * one call and keep their single not-found answer.
525
+ */
526
+ ctx.di.providePort('catalogProductAvailabilityPort', ctx
527
+ .asFunction(({ emFactory }) => new ProductAvailabilityService(emFactory, lazyPort(ctx, 'salesChannelMembershipPort'), lazyPort(ctx, 'salesChannelResolutionPort')))
528
+ .singleton());
529
+ /**
530
+ * Feature 163 (R28) — the effective URL key per channel language of each
531
+ * product a channel carries, for whole-channel readers (`seo`'s sitemap). Every
532
+ * product URL those readers emit is then `productPath()` over this key.
533
+ */
534
+ ctx.di.providePort('catalogProductUrlKeyReadPort', ctx
535
+ .asFunction(({ emFactory }) => new ProductUrlKeyReadService(emFactory, lazyPort(ctx, 'salesChannelMembershipPort')))
536
+ .singleton());
537
+ /**
538
+ * Feature 163 (R17) — the scoped write of connectors and importers: only the
539
+ * scopes named are written (FR-091); a URL key another product holds is
540
+ * reported, never taken over (FR-093). Through the operator's own services and
541
+ * Commands, so validation, audit and events are theirs.
542
+ */
543
+ ctx.di.providePort('catalogProductScopeWritePort', ctx
544
+ .asFunction(({ emFactory, commandBus }) => {
545
+ const membership = lazyPort(ctx, 'salesChannelMembershipPort');
546
+ const scopes = new ProductScopesService(emFactory, membership, commandBus);
547
+ const urlKeys = new UrlKeyService(emFactory, membership, commandBus);
548
+ return createCatalogProductScopeWritePort(() => scopes, () => urlKeys);
549
+ })
428
550
  .singleton());
429
551
  ctx.di.providePort('catalogPromoAttributePort', ctx
430
552
  .asFunction(() => createCatalogPromoAttributePort(() => ctx.cradle().catalogQueryPort))
@@ -443,12 +565,12 @@ export function registerModule(ctx) {
443
565
  lazyPort(ctx, 'customFieldDefinitionReadPort')))
444
566
  .singleton());
445
567
  ctx.di.providePort('catalogQueryPort', ctx
446
- .asFunction(({ emFactory }) => new CatalogQueryService(emFactory, undefined, undefined, lazyPort(ctx, 'catalogAttributeReadPort'), lazyPort(ctx, 'pricingService'), lazyPort(ctx, 'assetReadPort'), lazyPort(ctx, 'salesChannelMembershipPort'), lazyPort(ctx, 'organizationDetailsPort'),
568
+ .asFunction(({ emFactory, cursorSeal }) => new CatalogQueryService(emFactory, undefined, undefined, lazyPort(ctx, 'catalogAttributeReadPort'), lazyPort(ctx, 'pricingService'), lazyPort(ctx, 'assetReadPort'), lazyPort(ctx, 'salesChannelMembershipPort'), lazyPort(ctx, 'organizationDetailsPort'),
447
569
  // Feature 086 — the ordering slice, off the same container and the
448
570
  // same declared edge. Two `lazyPort` calls rather than one widened
449
571
  // type, because a captured gate keeps answering after its owner is
450
572
  // switched off and both of these are handed to a singleton.
451
- lazyPort(ctx, 'pricingService'), ctx.log))
573
+ lazyPort(ctx, 'pricingService'), ctx.log, cursorSeal))
452
574
  .singleton());
453
575
  ctx.di.providePort('catalogAdminService', ctx
454
576
  .asFunction(({ emFactory, eventBus, auditLogService, commandBus }) => new CatalogAdminService(emFactory, eventBus, auditLogService, lazyPort(ctx, 'salesChannelMembershipPort'), commandBus, lazyPort(ctx, 'catalogAttributeReadPort'),
@@ -464,19 +586,27 @@ export function registerModule(ctx) {
464
586
  // unchecked cast either way, and a cradle lookup reaches the owner's
465
587
  // declaration by a route nothing states (!951's consumer-side
466
588
  // finding, in the same shape).
467
- lazyPort(ctx, 'customFieldDefinitionService'), copyWarehouseThresholds))
589
+ lazyPort(ctx, 'customFieldDefinitionService'), copyWarehouseThresholds,
590
+ // No completeness gate on the published port (it is the admin routes' alone).
591
+ undefined,
592
+ // Feature 166 (FR-006) — a download file the caller may not see is not linked.
593
+ lazyPort(ctx, 'assetReadPort')))
468
594
  .singleton());
469
595
  ctx.di.providePort('categoryAdminService', ctx
470
- .asFunction(({ emFactory, commandBus }) => new CategoryAdminService(emFactory, lazyPort(ctx, 'salesChannelMembershipPort'), commandBus, lazyPort(ctx, 'customFieldValueService')))
596
+ .asFunction(({ emFactory, commandBus }) => new CategoryAdminService(emFactory, lazyPort(ctx, 'salesChannelMembershipPort'), commandBus, lazyPort(ctx, 'customFieldValueService'),
597
+ // No event bus: the Command Bus dispatches the category's event.
598
+ undefined,
599
+ // Feature 166 (FR-006) — a main image the caller may not see is not linked.
600
+ lazyPort(ctx, 'assetReadPort')))
471
601
  .singleton());
472
602
  ctx.di.providePort('attributeSetService', ctx
473
603
  .asFunction(({ emFactory, commandBus }) => new AttributeSetService(emFactory, commandBus, lazyPort(ctx, 'catalogAttributeReadPort')))
474
604
  .singleton());
475
605
  ctx.di.providePort('galleryService', ctx
476
- .asFunction(({ emFactory, commandBus }) => new GalleryService(emFactory, commandBus, lazyPort(ctx, 'assetReadPort')))
606
+ .asFunction(({ emFactory, commandBus }) => new GalleryService(emFactory, commandBus, lazyPort(ctx, 'assetReadPort'), lazyPort(ctx, 'salesChannelMembershipPort')))
477
607
  .singleton());
478
608
  ctx.di.providePort('attachmentService', ctx
479
- .asFunction(({ emFactory, commandBus }) => new AttachmentService(emFactory, commandBus, lazyPort(ctx, 'assetReadPort')))
609
+ .asFunction(({ emFactory, commandBus }) => new AttachmentService(emFactory, commandBus, lazyPort(ctx, 'assetReadPort'), lazyPort(ctx, 'salesChannelMembershipPort')))
480
610
  .singleton());
481
611
  ctx.di.providePort('productLinkService', ctx
482
612
  .asFunction(({ emFactory, commandBus }) => new ProductLinkService(emFactory, commandBus, lazyPort(ctx, 'pricingService'), lazyPort(ctx, 'assetReadPort'), lazyPort(ctx, 'salesChannelMembershipPort'), lazyPort(ctx, 'organizationDetailsPort')))
@@ -547,6 +677,10 @@ export function registerModule(ctx) {
547
677
  auditLogService: cradle().auditLogService,
548
678
  salesChannelMembership: cradle().salesChannelMembershipPort,
549
679
  redis: cradle().redis,
680
+ // Feature 163 (P-1 = A) — the Archive / Restore tools' audited Commands.
681
+ // Read only when registered: a composition without a bus (the absent-owner
682
+ // harness) still boots, and the two tools are simply not offered.
683
+ ...('commandBus' in cradle() ? { commandBus: cradle().commandBus } : {}),
550
684
  };
551
685
  const registry = cradle().promptActionToolRegistry;
552
686
  for (const tool of [
@@ -596,8 +730,57 @@ export function registerModule(ctx) {
596
730
  ctx.subscribe('category.content.updated.v1', () => {
597
731
  void cradle().catalogCategoryRevalidator.revalidate(['catalog:categories']);
598
732
  });
733
+ /**
734
+ * Feature 163 (T155 finding CACHE-1) — a product's storefront page follows its
735
+ * availability at once. Every committed write that can change whether or where a
736
+ * product is available announces `product.updated.v1` (status at any scope, window,
737
+ * audience, URL keys, restore, the bulk and import paths, the window sweep) or
738
+ * `product.archived.v1`; channel membership is the kernel's
739
+ * `sales_channels.membership_changed`. Next keeps only a `200`, so without this a
740
+ * product switched off went on showing. Coalesced and best-effort
741
+ * (`ProductPageRevalidation`); `ctx.subscribe` stops it with the module.
742
+ */
743
+ ctx.subscribe('product.updated.v1', (payload) => {
744
+ const productId = productIdOf(payload);
745
+ if (productId)
746
+ cradle().catalogProductPageRevalidation.productChanged(productId);
747
+ });
748
+ ctx.subscribe('product.archived.v1', (payload) => {
749
+ const productId = productIdOf(payload);
750
+ if (productId)
751
+ cradle().catalogProductPageRevalidation.productChanged(productId);
752
+ });
753
+ ctx.subscribe('product.deleted.v1', (payload) => {
754
+ const productId = productIdOf(payload);
755
+ if (!productId)
756
+ return;
757
+ const former = payload.formerUrlKeys;
758
+ const formerKeys = Array.isArray(former) ? former.filter((key) => typeof key === 'string') : [];
759
+ cradle().catalogProductPageRevalidation.productRemoved(productId, formerKeys);
760
+ });
761
+ ctx.subscribe('sales_channels.membership_changed', (payload) => {
762
+ const change = payload;
763
+ if (change.entityType === 'product' && typeof change.entityId === 'string') {
764
+ cradle().catalogProductPageRevalidation.productChanged(change.entityId);
765
+ }
766
+ });
599
767
  ctx.routes(async (app) => {
600
768
  await cradle().catalog(app);
769
+ // Feature 163 (R9, FR-024) — the publication-window sweep's clock: a Job
770
+ // Scheduler and its consumer, where the host says this process consumes
771
+ // queues. `ctx.worker` stops the consumer with the module; the watermark
772
+ // lives on the process connection, beside nothing it could be mistaken for.
773
+ const c = cradle();
774
+ await startPublicationWindowSweep({
775
+ processRunsWorkers: c.processRunsWorkers,
776
+ moduleQueueRedis: c.moduleQueueRedis,
777
+ sweep: new PublicationWindowSweep(c.emFactory, c.redis, (event) => c.eventBus.emit('product.updated.v1', event)),
778
+ log: ctx.log,
779
+ attach: (worker) => ctx.worker(worker, { logger: app.log }),
780
+ onClose: (close) => {
781
+ app.addHook('onClose', close);
782
+ },
783
+ });
601
784
  });
602
785
  /**
603
786
  * What an audit row about a product is called, and where the admin app shows it
@@ -646,15 +829,22 @@ export const entities = [
646
829
  BundleSlotOption,
647
830
  BundleSlot,
648
831
  Category,
832
+ GalleryItemChannelHidden,
833
+ GalleryItemChannelLabel,
649
834
  GalleryItemLabel,
650
835
  GalleryItem,
651
836
  GroupedItem,
652
837
  ProductAttachment,
838
+ ProductAttachmentChannelHidden,
653
839
  ProductAttribute,
840
+ ProductChannelLanguageScope,
841
+ ProductChannelScope,
654
842
  ProductEditorPreference,
655
843
  ProductLink,
656
844
  ProductListSavedView,
657
845
  ProductPackagingUnit,
846
+ ProductUrlKey,
847
+ ProductUrlRedirect,
658
848
  ProductValueOverride,
659
849
  ProductVariant,
660
850
  Product,
@@ -662,16 +852,15 @@ export const entities = [
662
852
  /**
663
853
  * The catalogue read surface a host program needs, published **by name**.
664
854
  *
665
- * `@endora-commerce/demo-composition` hands a `CatalogProductReadService` to
666
- * `price_lists`' `DefaultPriceListMigrator`, and its attribute helper maps a legacy
667
- * attribute value type onto the unified custom-field model. That is a package an
855
+ * `@endora-commerce/demo-composition`'s attribute helper maps a legacy attribute
856
+ * value type onto the unified custom-field model. That is a package an
668
857
  * instance installs, so it may name this one by its published door and by nothing
669
858
  * else: a filesystem path would evaluate the file a second time, and in an instance
670
859
  * there is no source to name.
671
860
  *
672
861
  * D-168 bars an **entity class** from leaving by this door; a service and a pure
673
862
  * mapping function are not entities, and `inventory`'s `WarehouseChannelReconciler` /
674
- * `price_lists`' `DefaultPriceListMigrator` are the precedent for exactly this shape.
863
+ * `price_lists`' `seedDemoPriceBooks` are the precedent for exactly this shape.
675
864
  *
676
865
  * `CatalogQueryService` is published as a **type** for `src/composition.ts`, which
677
866
  * declares the cradle slot `promotions`, `quick_order` and `search` each resolve their
@@ -693,4 +882,9 @@ export const salesChannelBridges = [
693
882
  { entityType: 'product', table: 'sales_channel_products', entityIdColumn: 'product_id' },
694
883
  { entityType: 'category', table: 'sales_channel_categories', entityIdColumn: 'category_id' },
695
884
  ];
885
+ /** An event payload's `productId`, when it is a string (security review L1). */
886
+ function productIdOf(payload) {
887
+ const productId = payload?.productId;
888
+ return typeof productId === 'string' ? productId : null;
889
+ }
696
890
  //# sourceMappingURL=index.js.map