@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.252 → 1.0.0-alpha.254

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 (263) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/CatalogPlugin.cmi +0 -0
  4. package/lib/bs/CatalogPlugin.cmt +0 -0
  5. package/lib/bs/CatalogPlugin.mlmap +1 -0
  6. package/lib/bs/compiler-info.json +1 -1
  7. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmi +0 -0
  8. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmt +0 -0
  9. package/lib/bs/src/Category/StateChange/AddCategory_Behavior-CatalogPlugin.cmi +0 -0
  10. package/lib/bs/src/Category/StateChange/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
  11. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmi +0 -0
  12. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmt +0 -0
  13. package/lib/bs/src/Category/StateChange/ArchiveCategory_Behavior-CatalogPlugin.cmi +0 -0
  14. package/lib/bs/src/Category/StateChange/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
  15. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmi +0 -0
  16. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmt +0 -0
  17. package/lib/bs/src/Category/StateChange/RenameCategory_Behavior-CatalogPlugin.cmi +0 -0
  18. package/lib/bs/src/Category/StateChange/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
  19. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmi +0 -0
  20. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmt +0 -0
  21. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmi +0 -0
  22. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmt +0 -0
  23. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  24. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  25. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  26. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  27. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  28. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  29. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  30. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  31. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmi +0 -0
  32. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
  33. package/lib/bs/src/Product/StateChange/ChangeProductName_Behavior-CatalogPlugin.cmi +0 -0
  34. package/lib/bs/src/Product/StateChange/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
  35. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
  36. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
  37. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmi +0 -0
  38. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmt +0 -0
  39. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  40. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  41. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  42. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  43. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  44. package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmi +0 -0
  45. package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmj +0 -0
  46. package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmt +0 -0
  47. package/lib/bs/tests/Catalog_Examples.ast +0 -0
  48. package/lib/bs/tests/Catalog_Examples.res +17 -0
  49. package/lib/bs/tests/Catalog_Examples.res.mjs +47 -0
  50. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  51. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  52. package/lib/bs/tests/Category/StateChange/AddCategory_GWT.ast +0 -0
  53. package/lib/bs/tests/Category/StateChange/AddCategory_GWT.res +8 -5
  54. package/lib/bs/tests/Category/StateChange/AddCategory_GWT.res.mjs +9 -12
  55. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  56. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  57. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.ast +0 -0
  58. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.res +8 -5
  59. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +5 -8
  60. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  61. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  62. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.ast +0 -0
  63. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.res +13 -9
  64. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.res.mjs +14 -17
  65. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmi +0 -0
  66. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmt +0 -0
  67. package/lib/bs/tests/Category/StateView/Categories_GWT.ast +0 -0
  68. package/lib/bs/tests/Category/StateView/Categories_GWT.res +12 -12
  69. package/lib/bs/tests/Category/StateView/Categories_GWT.res.mjs +16 -18
  70. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  71. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  72. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.ast +0 -0
  73. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res +14 -10
  74. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res.mjs +9 -16
  75. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  76. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  77. package/lib/bs/tests/Extension/Orders_Extension_GWT.ast +0 -0
  78. package/lib/bs/tests/Extension/Orders_Extension_GWT.res +5 -3
  79. package/lib/bs/tests/Extension/Orders_Extension_GWT.res.mjs +3 -6
  80. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  81. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  82. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.ast +0 -0
  83. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res +7 -8
  84. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +5 -8
  85. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  86. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  87. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.ast +0 -0
  88. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res +21 -15
  89. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +17 -16
  90. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  91. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  92. package/lib/bs/tests/Product/StateChange/AddProduct_GWT.ast +0 -0
  93. package/lib/bs/tests/Product/StateChange/AddProduct_GWT.res +6 -4
  94. package/lib/bs/tests/Product/StateChange/AddProduct_GWT.res.mjs +10 -13
  95. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  96. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  97. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.ast +0 -0
  98. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.res +10 -7
  99. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +9 -12
  100. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  101. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  102. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.ast +0 -0
  103. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.res +10 -7
  104. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +11 -14
  105. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  106. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  107. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.ast +0 -0
  108. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.res +8 -5
  109. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +5 -8
  110. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmi +0 -0
  111. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmt +0 -0
  112. package/lib/bs/tests/Product/StateView/Products_GWT.ast +0 -0
  113. package/lib/bs/tests/Product/StateView/Products_GWT.res +22 -15
  114. package/lib/bs/tests/Product/StateView/Products_GWT.res.mjs +30 -32
  115. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  116. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  117. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.ast +0 -0
  118. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res +20 -14
  119. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +23 -26
  120. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  121. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  122. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT.ast +0 -0
  123. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT.res +18 -14
  124. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT.res.mjs +22 -24
  125. package/lib/ocaml/.compiler.log +2 -2
  126. package/lib/ocaml/AddCategory-CatalogPlugin.cmi +0 -0
  127. package/lib/ocaml/AddCategory-CatalogPlugin.cmt +0 -0
  128. package/lib/ocaml/AddCategory_Behavior-CatalogPlugin.cmi +0 -0
  129. package/lib/ocaml/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
  130. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  131. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  132. package/lib/ocaml/AddCategory_GWT.ast +0 -0
  133. package/lib/ocaml/AddCategory_GWT.res +8 -5
  134. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  135. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  136. package/lib/ocaml/AddProduct_GWT.ast +0 -0
  137. package/lib/ocaml/AddProduct_GWT.res +6 -4
  138. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmi +0 -0
  139. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmt +0 -0
  140. package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmi +0 -0
  141. package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
  142. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  143. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  144. package/lib/ocaml/ArchiveCategory_GWT.ast +0 -0
  145. package/lib/ocaml/ArchiveCategory_GWT.res +8 -5
  146. package/lib/ocaml/CatalogPlugin.cmi +0 -0
  147. package/lib/ocaml/CatalogPlugin.cmt +0 -0
  148. package/lib/ocaml/CatalogPlugin.mlmap +1 -0
  149. package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmi +0 -0
  150. package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmj +0 -0
  151. package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmt +0 -0
  152. package/lib/ocaml/Catalog_Examples.ast +0 -0
  153. package/lib/ocaml/Catalog_Examples.res +17 -0
  154. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  155. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  156. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  157. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  158. package/lib/ocaml/Categories_GWT.ast +0 -0
  159. package/lib/ocaml/Categories_GWT.res +12 -12
  160. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmi +0 -0
  161. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmt +0 -0
  162. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  163. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  164. package/lib/ocaml/CategoryActivity_GWT.ast +0 -0
  165. package/lib/ocaml/CategoryActivity_GWT.res +14 -10
  166. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  167. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  168. package/lib/ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmi +0 -0
  169. package/lib/ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
  170. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  171. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  172. package/lib/ocaml/ChangeProductDescription_GWT.ast +0 -0
  173. package/lib/ocaml/ChangeProductDescription_GWT.res +10 -7
  174. package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmi +0 -0
  175. package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
  176. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  177. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  178. package/lib/ocaml/ChangeProductName_GWT.ast +0 -0
  179. package/lib/ocaml/ChangeProductName_GWT.res +10 -7
  180. package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
  181. package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
  182. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  183. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  184. package/lib/ocaml/ChangeProductPrice_GWT.ast +0 -0
  185. package/lib/ocaml/ChangeProductPrice_GWT.res +8 -5
  186. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  187. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  188. package/lib/ocaml/ImportProduct_GWT.ast +0 -0
  189. package/lib/ocaml/ImportProduct_GWT.res +21 -15
  190. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  191. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  192. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  193. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  194. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  195. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  196. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  197. package/lib/ocaml/Orders_Extension_GWT.ast +0 -0
  198. package/lib/ocaml/Orders_Extension_GWT.res +5 -3
  199. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  200. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  201. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  202. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  203. package/lib/ocaml/ProductDemand_GWT.ast +0 -0
  204. package/lib/ocaml/ProductDemand_GWT.res +18 -14
  205. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  206. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  207. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  208. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  209. package/lib/ocaml/Products_ExtensionPointMapping_GWT.ast +0 -0
  210. package/lib/ocaml/Products_ExtensionPointMapping_GWT.res +7 -8
  211. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  212. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  213. package/lib/ocaml/Products_GWT.ast +0 -0
  214. package/lib/ocaml/Products_GWT.res +22 -15
  215. package/lib/ocaml/Products_Projection-CatalogPlugin.cmi +0 -0
  216. package/lib/ocaml/Products_Projection-CatalogPlugin.cmt +0 -0
  217. package/lib/ocaml/RecordProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  218. package/lib/ocaml/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  219. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  220. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  221. package/lib/ocaml/RecordProductDemand_GWT.ast +0 -0
  222. package/lib/ocaml/RecordProductDemand_GWT.res +20 -14
  223. package/lib/ocaml/RenameCategory-CatalogPlugin.cmi +0 -0
  224. package/lib/ocaml/RenameCategory-CatalogPlugin.cmt +0 -0
  225. package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmi +0 -0
  226. package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
  227. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  228. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  229. package/lib/ocaml/RenameCategory_GWT.ast +0 -0
  230. package/lib/ocaml/RenameCategory_GWT.res +13 -9
  231. package/package.json +8 -8
  232. package/tests/Catalog_Examples.res +17 -0
  233. package/tests/Catalog_Examples.res.mjs +47 -0
  234. package/tests/Category/StateChange/AddCategory_GWT.res +8 -5
  235. package/tests/Category/StateChange/AddCategory_GWT.res.mjs +9 -12
  236. package/tests/Category/StateChange/ArchiveCategory_GWT.res +8 -5
  237. package/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +5 -8
  238. package/tests/Category/StateChange/RenameCategory_GWT.res +13 -9
  239. package/tests/Category/StateChange/RenameCategory_GWT.res.mjs +14 -17
  240. package/tests/Category/StateView/Categories_GWT.res +12 -12
  241. package/tests/Category/StateView/Categories_GWT.res.mjs +16 -18
  242. package/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res +14 -10
  243. package/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res.mjs +9 -16
  244. package/tests/Extension/Orders_Extension_GWT.res +5 -3
  245. package/tests/Extension/Orders_Extension_GWT.res.mjs +3 -6
  246. package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res +7 -8
  247. package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +5 -8
  248. package/tests/Product/InboundTranslation/ImportProduct_GWT.res +21 -15
  249. package/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +17 -16
  250. package/tests/Product/StateChange/AddProduct_GWT.res +6 -4
  251. package/tests/Product/StateChange/AddProduct_GWT.res.mjs +10 -13
  252. package/tests/Product/StateChange/ChangeProductDescription_GWT.res +10 -7
  253. package/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +9 -12
  254. package/tests/Product/StateChange/ChangeProductName_GWT.res +10 -7
  255. package/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +11 -14
  256. package/tests/Product/StateChange/ChangeProductPrice_GWT.res +8 -5
  257. package/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +5 -8
  258. package/tests/Product/StateView/Products_GWT.res +22 -15
  259. package/tests/Product/StateView/Products_GWT.res.mjs +30 -32
  260. package/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res +20 -14
  261. package/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +23 -26
  262. package/tests/ProductDemand/StateView/ProductDemand_GWT.res +18 -14
  263. package/tests/ProductDemand/StateView/ProductDemand_GWT.res.mjs +22 -24
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.0.0-alpha.254 (2026-09-23)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
9
+
10
+
11
+
12
+
13
+
14
+ # 1.0.0-alpha.253 (2026-09-23)
15
+
16
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
17
+
18
+
19
+
20
+
21
+
6
22
  # 1.0.0-alpha.252 (2026-09-22)
7
23
 
8
24
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
@@ -1,2 +1,2 @@
1
- #Start(1790058029720)
2
- #Done(1790058031882)
1
+ #Start(1790194681256)
2
+ #Done(1790194684479)
Binary file
Binary file
@@ -8,6 +8,7 @@ AddProduct_GWT
8
8
  ArchiveCategory
9
9
  ArchiveCategory_Behavior
10
10
  ArchiveCategory_GWT
11
+ Catalog_Examples
11
12
  Categories
12
13
  Categories_GWT
13
14
  Categories_Projection
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "ca6bf04caf4f6b27dbf31b935f934d99c6fe59248cc8b122f9cc48ff2675eb4a",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1790058031892"
7
+ "generated_at": "1790194684481"
8
8
  }
Binary file
Binary file
@@ -0,0 +1,17 @@
1
+ @@reventless.examples
2
+
3
+ let c1: CategoryId.t = CategoryId.makeFromString("c1")
4
+
5
+ let p1: CatalogSpec.ProductId.t = CatalogSpec.ProductId.makeFromString("p1")
6
+
7
+ let anyDescription: string = "x"
8
+ let consumerElectronics: string = "Consumer Electronics"
9
+ let electronics: string = "Electronics"
10
+ let gamingLaptop: string = "Gaming Laptop"
11
+ let highEnd: string = "high-end"
12
+ let laptop: string = "Laptop"
13
+ let laptopDescription: string = "A laptop"
14
+ let order1: string = "order-1"
15
+ let order2: string = "order-2"
16
+ let sku: string = "p-1"
17
+ let usd: string = "USD"
@@ -0,0 +1,47 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
4
+ import * as CategoryId$CatalogPlugin from "../src/Category/CategoryId.res.mjs";
5
+
6
+ let c1 = CategoryId$CatalogPlugin.makeFromString("c1");
7
+
8
+ let p1 = ProductId$CatalogSpec.makeFromString("p1");
9
+
10
+ let anyDescription = "x";
11
+
12
+ let consumerElectronics = "Consumer Electronics";
13
+
14
+ let electronics = "Electronics";
15
+
16
+ let gamingLaptop = "Gaming Laptop";
17
+
18
+ let highEnd = "high-end";
19
+
20
+ let laptop = "Laptop";
21
+
22
+ let laptopDescription = "A laptop";
23
+
24
+ let order1 = "order-1";
25
+
26
+ let order2 = "order-2";
27
+
28
+ let sku = "p-1";
29
+
30
+ let usd = "USD";
31
+
32
+ export {
33
+ c1,
34
+ p1,
35
+ anyDescription,
36
+ consumerElectronics,
37
+ electronics,
38
+ gamingLaptop,
39
+ highEnd,
40
+ laptop,
41
+ laptopDescription,
42
+ order1,
43
+ order2,
44
+ sku,
45
+ usd,
46
+ }
47
+ /* c1 Not a pure module */
@@ -1,23 +1,26 @@
1
1
  @@reventless.gwt
2
2
 
3
- let catId = CategoryId.make
3
+ open Catalog_Examples
4
4
 
5
5
  describe("AddCategory StateChangeSlice", () => {
6
+ // scenario-id: 47177361-8d6c-4779-a480-205c15f81cba
6
7
  test("empty event log produces CategoryAdded", () =>
7
8
  givenEvents([])
8
- ->whenCmd(AddCategory({categoryId: catId("c1"), name: "Electronics"}))
9
- ->thenEvent(CategoryAdded({categoryId: catId("c1"), name: "Electronics"}))
9
+ ->whenCmd(AddCategory({categoryId: c1, name: electronics}))
10
+ ->thenEvent(CategoryAdded({categoryId: c1, name: electronics}))
10
11
  )
11
12
 
13
+ // scenario-id: f992f21a-5262-460d-8cb5-525cb1f47535
12
14
  test("existing category returns CategoryAlreadyExists", () =>
13
15
  givenEvents([CategoryAdded])
14
- ->whenCmd(AddCategory({categoryId: catId("c1"), name: "Electronics"}))
16
+ ->whenCmd(AddCategory({categoryId: c1, name: electronics}))
15
17
  ->thenError(CategoryAlreadyExists)
16
18
  )
17
19
 
20
+ // scenario-id: 2876b32e-3cf4-43e2-94b2-849a4b6ec1ef
18
21
  test("archived category still rejects new AddCategory", () =>
19
22
  givenEvents([CategoryAdded, CategoryArchived])
20
- ->whenCmd(AddCategory({categoryId: catId("c1"), name: "Electronics"}))
23
+ ->whenCmd(AddCategory({categoryId: c1, name: electronics}))
21
24
  ->thenError(CategoryAlreadyExists)
22
25
  )
23
26
  })
@@ -1,8 +1,8 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
4
3
  import * as AddCategory$CatalogPlugin from "../../../src/Category/StateChange/AddCategory.res.mjs";
5
4
  import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
5
+ import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
6
  import * as AddCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/AddCategory_Behavior.res.mjs";
7
7
 
8
8
  let include = Behavior_GWT$ReventlessGwt.Make({
@@ -32,25 +32,25 @@ let thenError = include.thenError;
32
32
  describe("AddCategory StateChangeSlice", () => {
33
33
  test("empty event log produces CategoryAdded", () => thenEvent(whenCmd(givenEvents([]), {
34
34
  TAG: "AddCategory",
35
- categoryId: CategoryId$CatalogPlugin.make("c1"),
36
- name: "Electronics"
35
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
36
+ name: Catalog_Examples$CatalogPlugin.electronics
37
37
  }), {
38
38
  TAG: "CategoryAdded",
39
- categoryId: CategoryId$CatalogPlugin.make("c1"),
40
- name: "Electronics"
39
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
40
+ name: Catalog_Examples$CatalogPlugin.electronics
41
41
  }));
42
42
  test("existing category returns CategoryAlreadyExists", () => thenError(whenCmd(givenEvents(["CategoryAdded"]), {
43
43
  TAG: "AddCategory",
44
- categoryId: CategoryId$CatalogPlugin.make("c1"),
45
- name: "Electronics"
44
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
45
+ name: Catalog_Examples$CatalogPlugin.electronics
46
46
  }), "CategoryAlreadyExists"));
47
47
  test("archived category still rejects new AddCategory", () => thenError(whenCmd(givenEvents([
48
48
  "CategoryAdded",
49
49
  "CategoryArchived"
50
50
  ]), {
51
51
  TAG: "AddCategory",
52
- categoryId: CategoryId$CatalogPlugin.make("c1"),
53
- name: "Electronics"
52
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
53
+ name: Catalog_Examples$CatalogPlugin.electronics
54
54
  }), "CategoryAlreadyExists"));
55
55
  });
56
56
 
@@ -70,8 +70,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
70
70
 
71
71
  let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
72
72
 
73
- let catId = CategoryId$CatalogPlugin.make;
74
-
75
73
  export {
76
74
  Spec,
77
75
  describe,
@@ -87,6 +85,5 @@ export {
87
85
  thenError,
88
86
  thenAppendsConditionedOn,
89
87
  thenAppendsConditionedOnExactly,
90
- catId,
91
88
  }
92
89
  /* include Not a pure module */
@@ -1,23 +1,26 @@
1
1
  @@reventless.gwt
2
2
 
3
- let catId = CategoryId.make
3
+ open Catalog_Examples
4
4
 
5
5
  describe("ArchiveCategory StateChangeSlice", () => {
6
+ // scenario-id: 49ce0e1d-9e21-4883-b59a-86951fd8ff07
6
7
  test("non-existent category returns CategoryNotFound", () =>
7
8
  givenEvents([])
8
- ->whenCmd(ArchiveCategory({categoryId: catId("c1")}))
9
+ ->whenCmd(ArchiveCategory({categoryId: c1}))
9
10
  ->thenError(CategoryNotFound)
10
11
  )
11
12
 
13
+ // scenario-id: b424296a-dd52-469a-90af-76a2a5a6edab
12
14
  test("existing active category produces CategoryArchived", () =>
13
15
  givenEvents([CategoryAdded])
14
- ->whenCmd(ArchiveCategory({categoryId: catId("c1")}))
15
- ->thenEvent(CategoryArchived({categoryId: catId("c1")}))
16
+ ->whenCmd(ArchiveCategory({categoryId: c1}))
17
+ ->thenEvent(CategoryArchived({categoryId: c1}))
16
18
  )
17
19
 
20
+ // scenario-id: ad141ffb-7abc-4fbc-8450-195851a2e44d
18
21
  test("already archived category produces no events (idempotent)", () =>
19
22
  givenEvents([CategoryAdded, CategoryArchived])
20
- ->whenCmd(ArchiveCategory({categoryId: catId("c1")}))
23
+ ->whenCmd(ArchiveCategory({categoryId: c1}))
21
24
  ->thenNoEvent
22
25
  )
23
26
  })
@@ -1,8 +1,8 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
4
3
  import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
5
4
  import * as ArchiveCategory$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory.res.mjs";
5
+ import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
6
  import * as ArchiveCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory_Behavior.res.mjs";
7
7
 
8
8
  let include = Behavior_GWT$ReventlessGwt.Make({
@@ -34,21 +34,21 @@ let thenError = include.thenError;
34
34
  describe("ArchiveCategory StateChangeSlice", () => {
35
35
  test("non-existent category returns CategoryNotFound", () => thenError(whenCmd(givenEvents([]), {
36
36
  TAG: "ArchiveCategory",
37
- categoryId: CategoryId$CatalogPlugin.make("c1")
37
+ categoryId: Catalog_Examples$CatalogPlugin.c1
38
38
  }), "CategoryNotFound"));
39
39
  test("existing active category produces CategoryArchived", () => thenEvent(whenCmd(givenEvents(["CategoryAdded"]), {
40
40
  TAG: "ArchiveCategory",
41
- categoryId: CategoryId$CatalogPlugin.make("c1")
41
+ categoryId: Catalog_Examples$CatalogPlugin.c1
42
42
  }), {
43
43
  TAG: "CategoryArchived",
44
- categoryId: CategoryId$CatalogPlugin.make("c1")
44
+ categoryId: Catalog_Examples$CatalogPlugin.c1
45
45
  }));
46
46
  test("already archived category produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([
47
47
  "CategoryAdded",
48
48
  "CategoryArchived"
49
49
  ]), {
50
50
  TAG: "ArchiveCategory",
51
- categoryId: CategoryId$CatalogPlugin.make("c1")
51
+ categoryId: Catalog_Examples$CatalogPlugin.c1
52
52
  })));
53
53
  });
54
54
 
@@ -66,8 +66,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
66
66
 
67
67
  let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
68
68
 
69
- let catId = CategoryId$CatalogPlugin.make;
70
-
71
69
  export {
72
70
  Spec,
73
71
  describe,
@@ -83,6 +81,5 @@ export {
83
81
  thenError,
84
82
  thenAppendsConditionedOn,
85
83
  thenAppendsConditionedOnExactly,
86
- catId,
87
84
  }
88
85
  /* include Not a pure module */
@@ -1,29 +1,33 @@
1
1
  @@reventless.gwt
2
2
 
3
- let catId = CategoryId.make
3
+ open Catalog_Examples
4
4
 
5
5
  describe("RenameCategory StateChangeSlice", () => {
6
+ // scenario-id: 510ec7f6-4a46-4807-ba06-0cbf43eed254
6
7
  test("non-existent category returns CategoryNotFound", () =>
7
8
  givenEvents([])
8
- ->whenCmd(RenameCategory({categoryId: catId("c1"), name: "Consumer Electronics"}))
9
+ ->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
9
10
  ->thenError(CategoryNotFound)
10
11
  )
11
12
 
13
+ // scenario-id: 29ecdd5f-5225-438d-8129-1e3f0a1a978d
12
14
  test("existing active category produces CategoryRenamed", () =>
13
- givenEvents([CategoryAdded({name: "Electronics"})])
14
- ->whenCmd(RenameCategory({categoryId: catId("c1"), name: "Consumer Electronics"}))
15
- ->thenEvent(CategoryRenamed({categoryId: catId("c1"), name: "Consumer Electronics"}))
15
+ givenEvents([CategoryAdded({name: electronics})])
16
+ ->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
17
+ ->thenEvent(CategoryRenamed({categoryId: c1, name: consumerElectronics}))
16
18
  )
17
19
 
20
+ // scenario-id: 4fd166f6-e9de-4872-8aa5-e7b89b95288f
18
21
  test("renaming to the current name produces no events (idempotent)", () =>
19
- givenEvents([CategoryAdded({name: "Electronics"})])
20
- ->whenCmd(RenameCategory({categoryId: catId("c1"), name: "Electronics"}))
22
+ givenEvents([CategoryAdded({name: electronics})])
23
+ ->whenCmd(RenameCategory({categoryId: c1, name: electronics}))
21
24
  ->thenNoEvent
22
25
  )
23
26
 
27
+ // scenario-id: a2323466-eec1-42c7-86ad-26a2bcc811d3
24
28
  test("archived category returns CategoryAlreadyArchived", () =>
25
- givenEvents([CategoryAdded({name: "Electronics"}), CategoryArchived])
26
- ->whenCmd(RenameCategory({categoryId: catId("c1"), name: "Consumer Electronics"}))
29
+ givenEvents([CategoryAdded({name: electronics}), CategoryArchived])
30
+ ->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
27
31
  ->thenError(CategoryAlreadyArchived)
28
32
  )
29
33
  })
@@ -1,8 +1,8 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
4
3
  import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
5
4
  import * as RenameCategory$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory.res.mjs";
5
+ import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
6
  import * as RenameCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory_Behavior.res.mjs";
7
7
 
8
8
  let include = Behavior_GWT$ReventlessGwt.Make({
@@ -34,39 +34,39 @@ let thenError = include.thenError;
34
34
  describe("RenameCategory StateChangeSlice", () => {
35
35
  test("non-existent category returns CategoryNotFound", () => thenError(whenCmd(givenEvents([]), {
36
36
  TAG: "RenameCategory",
37
- categoryId: CategoryId$CatalogPlugin.make("c1"),
38
- name: "Consumer Electronics"
37
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
38
+ name: Catalog_Examples$CatalogPlugin.consumerElectronics
39
39
  }), "CategoryNotFound"));
40
40
  test("existing active category produces CategoryRenamed", () => thenEvent(whenCmd(givenEvents([{
41
41
  TAG: "CategoryAdded",
42
- name: "Electronics"
42
+ name: Catalog_Examples$CatalogPlugin.electronics
43
43
  }]), {
44
44
  TAG: "RenameCategory",
45
- categoryId: CategoryId$CatalogPlugin.make("c1"),
46
- name: "Consumer Electronics"
45
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
46
+ name: Catalog_Examples$CatalogPlugin.consumerElectronics
47
47
  }), {
48
48
  TAG: "CategoryRenamed",
49
- categoryId: CategoryId$CatalogPlugin.make("c1"),
50
- name: "Consumer Electronics"
49
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
50
+ name: Catalog_Examples$CatalogPlugin.consumerElectronics
51
51
  }));
52
52
  test("renaming to the current name produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
53
53
  TAG: "CategoryAdded",
54
- name: "Electronics"
54
+ name: Catalog_Examples$CatalogPlugin.electronics
55
55
  }]), {
56
56
  TAG: "RenameCategory",
57
- categoryId: CategoryId$CatalogPlugin.make("c1"),
58
- name: "Electronics"
57
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
58
+ name: Catalog_Examples$CatalogPlugin.electronics
59
59
  })));
60
60
  test("archived category returns CategoryAlreadyArchived", () => thenError(whenCmd(givenEvents([
61
61
  {
62
62
  TAG: "CategoryAdded",
63
- name: "Electronics"
63
+ name: Catalog_Examples$CatalogPlugin.electronics
64
64
  },
65
65
  "CategoryArchived"
66
66
  ]), {
67
67
  TAG: "RenameCategory",
68
- categoryId: CategoryId$CatalogPlugin.make("c1"),
69
- name: "Consumer Electronics"
68
+ categoryId: Catalog_Examples$CatalogPlugin.c1,
69
+ name: Catalog_Examples$CatalogPlugin.consumerElectronics
70
70
  }), "CategoryAlreadyArchived"));
71
71
  });
72
72
 
@@ -84,8 +84,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
84
84
 
85
85
  let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
86
86
 
87
- let catId = CategoryId$CatalogPlugin.make;
88
-
89
87
  export {
90
88
  Spec,
91
89
  describe,
@@ -101,6 +99,5 @@ export {
101
99
  thenError,
102
100
  thenAppendsConditionedOn,
103
101
  thenAppendsConditionedOnExactly,
104
- catId,
105
102
  }
106
103
  /* include Not a pure module */
@@ -1,26 +1,26 @@
1
1
  @@reventless.gwt
2
2
 
3
- let catId = CategoryId.make
3
+ open Catalog_Examples
4
4
 
5
5
  describe("Categories StateViewSlice", () => {
6
+ // scenario-id: 37a3e157-7469-49fe-8b4d-f15f8f2a5cbf
6
7
  test("CategoryAdded creates a row", () =>
7
8
  givenEvents([])
8
- ->whenEvent(CategoryAdded({categoryId: catId("c1"), name: "Electronics"}))
9
- ->thenStateWithId("c1", {categoryId: catId("c1"), name: "Electronics", archived: false})
9
+ ->whenEvent(CategoryAdded({categoryId: c1, name: electronics}))
10
+ ->thenStateWithId("c1", {categoryId: c1, name: electronics, archived: false})
10
11
  )
11
12
 
13
+ // scenario-id: 90fbd54b-775c-4b15-b5c8-97daf7097677
12
14
  test("CategoryRenamed updates the name", () =>
13
- givenEvents([CategoryAdded({categoryId: catId("c1"), name: "Electronics"})])
14
- ->whenEvent(CategoryRenamed({categoryId: catId("c1"), name: "Consumer Electronics"}))
15
- ->thenStateWithId(
16
- "c1",
17
- {categoryId: catId("c1"), name: "Consumer Electronics", archived: false},
18
- )
15
+ givenEvents([CategoryAdded({categoryId: c1, name: electronics})])
16
+ ->whenEvent(CategoryRenamed({categoryId: c1, name: consumerElectronics}))
17
+ ->thenStateWithId("c1", {categoryId: c1, name: consumerElectronics, archived: false})
19
18
  )
20
19
 
20
+ // scenario-id: aeb0935e-631a-424f-b8ab-df8276a3dc15
21
21
  test("CategoryArchived sets archived flag", () =>
22
- givenEvents([CategoryAdded({categoryId: catId("c1"), name: "Electronics"})])
23
- ->whenEvent(CategoryArchived({categoryId: catId("c1")}))
24
- ->thenStateWithId("c1", {categoryId: catId("c1"), name: "Electronics", archived: true})
22
+ givenEvents([CategoryAdded({categoryId: c1, name: electronics})])
23
+ ->whenEvent(CategoryArchived({categoryId: c1}))
24
+ ->thenStateWithId("c1", {categoryId: c1, name: electronics, archived: true})
25
25
  )
26
26
  })