@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.249 → 1.0.0-alpha.251

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 (317) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/OrderingPlugin.cmi +0 -0
  4. package/lib/bs/OrderingPlugin.cmt +0 -0
  5. package/lib/bs/OrderingPlugin.mlmap +1 -0
  6. package/lib/bs/compiler-info.json +1 -1
  7. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  8. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  9. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  10. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  11. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmi +0 -0
  12. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmt +0 -0
  13. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  14. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  15. package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmi +0 -0
  16. package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmt +0 -0
  17. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
  18. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
  19. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  20. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  21. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
  22. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
  23. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
  34. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
  35. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
  36. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
  37. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  38. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  39. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  40. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  41. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
  42. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
  43. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
  44. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
  45. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  46. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  47. package/lib/bs/src/Order/OrderId-OrderingPlugin.cmi +0 -0
  48. package/lib/bs/src/Order/OrderId-OrderingPlugin.cmt +0 -0
  49. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  50. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  51. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  52. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  53. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
  54. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
  55. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  56. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  57. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
  58. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
  59. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  60. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  61. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
  62. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
  63. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  64. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  65. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
  66. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
  67. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
  68. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
  69. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  70. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  71. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  72. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  73. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.ast +0 -0
  74. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
  75. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
  76. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  77. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  78. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.ast +0 -0
  79. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
  80. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
  81. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  82. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  83. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.ast +0 -0
  84. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
  85. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
  86. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  87. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  88. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.ast +0 -0
  89. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
  90. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
  91. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  92. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  93. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.ast +0 -0
  94. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
  95. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
  96. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  97. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  98. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.ast +0 -0
  99. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
  100. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
  101. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  102. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  103. package/lib/bs/tests/Customer/StateView/Customers_GWT.ast +0 -0
  104. package/lib/bs/tests/Customer/StateView/Customers_GWT.res +16 -20
  105. package/lib/bs/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
  106. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  107. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  108. package/lib/bs/tests/Extension/Products_Extension_GWT.ast +0 -0
  109. package/lib/bs/tests/Extension/Products_Extension_GWT.res +7 -7
  110. package/lib/bs/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
  111. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  112. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  113. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.ast +0 -0
  114. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
  115. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
  116. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  117. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  118. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.ast +0 -0
  119. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
  120. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
  121. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  122. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  123. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.ast +0 -0
  124. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
  125. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
  126. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  127. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  128. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.ast +0 -0
  129. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
  130. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
  131. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  132. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  133. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.ast +0 -0
  134. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
  135. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
  136. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  137. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  138. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.ast +0 -0
  139. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
  140. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
  141. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  142. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  143. package/lib/bs/tests/Order/StateView/Orders_GWT.ast +0 -0
  144. package/lib/bs/tests/Order/StateView/Orders_GWT.res +14 -21
  145. package/lib/bs/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
  146. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmi +0 -0
  147. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmj +0 -0
  148. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmt +0 -0
  149. package/lib/bs/tests/Ordering_Examples.ast +0 -0
  150. package/lib/bs/tests/Ordering_Examples.res +15 -0
  151. package/lib/bs/tests/Ordering_Examples.res.mjs +39 -0
  152. package/lib/ocaml/.compiler.log +2 -2
  153. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
  154. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
  155. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  156. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  157. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  158. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  159. package/lib/ocaml/AutoShipOrder_GWT.ast +0 -0
  160. package/lib/ocaml/AutoShipOrder_GWT.res +13 -8
  161. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  162. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  163. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  164. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  165. package/lib/ocaml/AvailableProducts_GWT.ast +0 -0
  166. package/lib/ocaml/AvailableProducts_GWT.res +8 -6
  167. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  168. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  169. package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
  170. package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
  171. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  172. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  173. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  174. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  175. package/lib/ocaml/CancelOrder_GWT.ast +0 -0
  176. package/lib/ocaml/CancelOrder_GWT.res +13 -10
  177. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
  178. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
  179. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  180. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  181. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  182. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  183. package/lib/ocaml/ChangeAddress_GWT.ast +0 -0
  184. package/lib/ocaml/ChangeAddress_GWT.res +13 -9
  185. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
  186. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
  187. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  188. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  189. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  190. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  191. package/lib/ocaml/ChangeEmail_GWT.ast +0 -0
  192. package/lib/ocaml/ChangeEmail_GWT.res +13 -9
  193. package/lib/ocaml/CustomerId-OrderingPlugin.cmi +0 -0
  194. package/lib/ocaml/CustomerId-OrderingPlugin.cmt +0 -0
  195. package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
  196. package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
  197. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  198. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  199. package/lib/ocaml/Customers_GWT.ast +0 -0
  200. package/lib/ocaml/Customers_GWT.res +16 -20
  201. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
  202. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
  203. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  204. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  205. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  206. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  207. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  208. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  209. package/lib/ocaml/DeactivateCustomer_GWT.ast +0 -0
  210. package/lib/ocaml/DeactivateCustomer_GWT.res +8 -5
  211. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
  212. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
  213. package/lib/ocaml/OrderId-OrderingPlugin.cmi +0 -0
  214. package/lib/ocaml/OrderId-OrderingPlugin.cmt +0 -0
  215. package/lib/ocaml/OrderingPlugin.cmi +0 -0
  216. package/lib/ocaml/OrderingPlugin.cmt +0 -0
  217. package/lib/ocaml/OrderingPlugin.mlmap +1 -0
  218. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmi +0 -0
  219. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmj +0 -0
  220. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmt +0 -0
  221. package/lib/ocaml/Ordering_Examples.ast +0 -0
  222. package/lib/ocaml/Ordering_Examples.res +15 -0
  223. package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
  224. package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
  225. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  226. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  227. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  228. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  229. package/lib/ocaml/Orders_ExtensionPointMapping_GWT.ast +0 -0
  230. package/lib/ocaml/Orders_ExtensionPointMapping_GWT.res +7 -7
  231. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  232. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  233. package/lib/ocaml/Orders_GWT.ast +0 -0
  234. package/lib/ocaml/Orders_GWT.res +14 -21
  235. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
  236. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
  237. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
  238. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
  239. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  240. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  241. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  242. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  243. package/lib/ocaml/PlaceOrder_GWT.ast +0 -0
  244. package/lib/ocaml/PlaceOrder_GWT.res +19 -18
  245. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  246. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  247. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  248. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  249. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  250. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  251. package/lib/ocaml/Products_Extension_GWT.ast +0 -0
  252. package/lib/ocaml/Products_Extension_GWT.res +7 -7
  253. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
  254. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
  255. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  256. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  257. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  258. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  259. package/lib/ocaml/RegisterCustomer_GWT.ast +0 -0
  260. package/lib/ocaml/RegisterCustomer_GWT.res +6 -6
  261. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  262. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  263. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  264. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  265. package/lib/ocaml/SendOrderConfirmation_GWT.ast +0 -0
  266. package/lib/ocaml/SendOrderConfirmation_GWT.res +7 -6
  267. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  268. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  269. package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
  270. package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
  271. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  272. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  273. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  274. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  275. package/lib/ocaml/ShipOrder_GWT.ast +0 -0
  276. package/lib/ocaml/ShipOrder_GWT.res +10 -6
  277. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  278. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  279. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  280. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  281. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  282. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  283. package/lib/ocaml/SyncCatalogProduct_GWT.ast +0 -0
  284. package/lib/ocaml/SyncCatalogProduct_GWT.res +14 -10
  285. package/package.json +8 -8
  286. package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
  287. package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
  288. package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
  289. package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
  290. package/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
  291. package/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
  292. package/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
  293. package/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
  294. package/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
  295. package/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
  296. package/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
  297. package/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
  298. package/tests/Customer/StateView/Customers_GWT.res +16 -20
  299. package/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
  300. package/tests/Extension/Products_Extension_GWT.res +7 -7
  301. package/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
  302. package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
  303. package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
  304. package/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
  305. package/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
  306. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
  307. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
  308. package/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
  309. package/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
  310. package/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
  311. package/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
  312. package/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
  313. package/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
  314. package/tests/Order/StateView/Orders_GWT.res +14 -21
  315. package/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
  316. package/tests/Ordering_Examples.res +15 -0
  317. package/tests/Ordering_Examples.res.mjs +39 -0
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.251 (2026-09-23)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
9
+
10
+
11
+
12
+
13
+
14
+ # 1.0.0-alpha.250 (2026-09-22)
15
+
16
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
17
+
18
+
19
+
20
+
21
+
6
22
  # 1.0.0-alpha.249 (2026-09-21)
7
23
 
8
24
  ### Bug Fixes
@@ -1,2 +1,2 @@
1
- #Start(1790002882226)
2
- #Done(1790002885202)
1
+ #Start(1790168171117)
2
+ #Done(1790168173909)
Binary file
Binary file
@@ -24,6 +24,7 @@ DeactivateCustomer_GWT
24
24
  EmailService
25
25
  LifecycleModel
26
26
  OrderId
27
+ Ordering_Examples
27
28
  Orders
28
29
  Orders_ExtensionPointMapping
29
30
  Orders_ExtensionPointMapping_GWT
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "2b45634c4ef9d26c69e2cd8282eb5d077ce9cf087ded0065001d0f0d889e241c",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1790002885207"
7
+ "generated_at": "1790168173924"
8
8
  }
@@ -1,29 +1,33 @@
1
1
  @@reventless.gwt
2
2
 
3
- let pid = CatalogSpec.ProductId.make
3
+ open Ordering_Examples
4
4
 
5
5
  describe("SyncCatalogProduct StateChangeSlice", () => {
6
+ // scenario-id: 7aa368ea-aa0c-4643-9ac1-73fa767d66ee
6
7
  test("SyncNewProduct produces CatalogProductSynced", () =>
7
8
  givenEvents([])
8
- ->whenCmd(SyncNewProduct({productId: pid("p1"), name: "Laptop", price: 999.99}))
9
- ->thenEvent(CatalogProductSynced({productId: pid("p1"), name: "Laptop", price: 999.99}))
9
+ ->whenCmd(SyncNewProduct({productId: p1, name: laptop, price: 999.99}))
10
+ ->thenEvent(CatalogProductSynced({productId: p1, name: laptop, price: 999.99}))
10
11
  )
11
12
 
13
+ // scenario-id: ec4e7784-783e-4b2c-855c-d2c111333658
12
14
  test("ChangeSyncedPrice produces CatalogProductPriceChanged", () =>
13
- givenEvents([CatalogProductSynced({name: "Laptop", price: 999.99})])
14
- ->whenCmd(ChangeSyncedPrice({productId: pid("p1"), price: 899.99}))
15
- ->thenEvent(CatalogProductPriceChanged({productId: pid("p1"), price: 899.99}))
15
+ givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
16
+ ->whenCmd(ChangeSyncedPrice({productId: p1, price: 899.99}))
17
+ ->thenEvent(CatalogProductPriceChanged({productId: p1, price: 899.99}))
16
18
  )
17
19
 
20
+ // scenario-id: 20c38820-28d3-4fb4-b9c6-64000e089de9
18
21
  test("re-syncing identical product data produces no events (idempotent)", () =>
19
- givenEvents([CatalogProductSynced({name: "Laptop", price: 999.99})])
20
- ->whenCmd(SyncNewProduct({productId: pid("p1"), name: "Laptop", price: 999.99}))
22
+ givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
23
+ ->whenCmd(SyncNewProduct({productId: p1, name: laptop, price: 999.99}))
21
24
  ->thenNoEvent
22
25
  )
23
26
 
27
+ // scenario-id: 9d1cebd5-19ce-4352-905f-00353c078b9b
24
28
  test("re-applying the current price produces no events (idempotent)", () =>
25
- givenEvents([CatalogProductSynced({name: "Laptop", price: 999.99})])
26
- ->whenCmd(ChangeSyncedPrice({productId: pid("p1"), price: 999.99}))
29
+ givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
30
+ ->whenCmd(ChangeSyncedPrice({productId: p1, price: 999.99}))
27
31
  ->thenNoEvent
28
32
  )
29
33
  })
@@ -1,7 +1,7 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
4
3
  import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
4
+ import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
5
5
  import * as SyncCatalogProduct$OrderingPlugin from "../../../src/CatalogProduct/StateChange/SyncCatalogProduct.res.mjs";
6
6
  import * as SyncCatalogProduct_Behavior$OrderingPlugin from "../../../src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior.res.mjs";
7
7
 
@@ -32,45 +32,45 @@ let thenNoEvent = include.thenNoEvent;
32
32
  describe("SyncCatalogProduct StateChangeSlice", () => {
33
33
  test("SyncNewProduct produces CatalogProductSynced", () => thenEvent(whenCmd(givenEvents([]), {
34
34
  TAG: "SyncNewProduct",
35
- productId: ProductId$CatalogSpec.make("p1"),
36
- name: "Laptop",
35
+ productId: Ordering_Examples$OrderingPlugin.p1,
36
+ name: Ordering_Examples$OrderingPlugin.laptop,
37
37
  price: 999.99
38
38
  }), {
39
39
  TAG: "CatalogProductSynced",
40
- productId: ProductId$CatalogSpec.make("p1"),
41
- name: "Laptop",
40
+ productId: Ordering_Examples$OrderingPlugin.p1,
41
+ name: Ordering_Examples$OrderingPlugin.laptop,
42
42
  price: 999.99
43
43
  }));
44
44
  test("ChangeSyncedPrice produces CatalogProductPriceChanged", () => thenEvent(whenCmd(givenEvents([{
45
45
  TAG: "CatalogProductSynced",
46
- name: "Laptop",
46
+ name: Ordering_Examples$OrderingPlugin.laptop,
47
47
  price: 999.99
48
48
  }]), {
49
49
  TAG: "ChangeSyncedPrice",
50
- productId: ProductId$CatalogSpec.make("p1"),
50
+ productId: Ordering_Examples$OrderingPlugin.p1,
51
51
  price: 899.99
52
52
  }), {
53
53
  TAG: "CatalogProductPriceChanged",
54
- productId: ProductId$CatalogSpec.make("p1"),
54
+ productId: Ordering_Examples$OrderingPlugin.p1,
55
55
  price: 899.99
56
56
  }));
57
57
  test("re-syncing identical product data produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
58
58
  TAG: "CatalogProductSynced",
59
- name: "Laptop",
59
+ name: Ordering_Examples$OrderingPlugin.laptop,
60
60
  price: 999.99
61
61
  }]), {
62
62
  TAG: "SyncNewProduct",
63
- productId: ProductId$CatalogSpec.make("p1"),
64
- name: "Laptop",
63
+ productId: Ordering_Examples$OrderingPlugin.p1,
64
+ name: Ordering_Examples$OrderingPlugin.laptop,
65
65
  price: 999.99
66
66
  })));
67
67
  test("re-applying the current price produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
68
68
  TAG: "CatalogProductSynced",
69
- name: "Laptop",
69
+ name: Ordering_Examples$OrderingPlugin.laptop,
70
70
  price: 999.99
71
71
  }]), {
72
72
  TAG: "ChangeSyncedPrice",
73
- productId: ProductId$CatalogSpec.make("p1"),
73
+ productId: Ordering_Examples$OrderingPlugin.p1,
74
74
  price: 999.99
75
75
  })));
76
76
  });
@@ -91,8 +91,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
91
91
 
92
92
  let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
93
93
 
94
- let pid = ProductId$CatalogSpec.make;
95
-
96
94
  export {
97
95
  Spec,
98
96
  describe,
@@ -108,6 +106,5 @@ export {
108
106
  thenError,
109
107
  thenAppendsConditionedOn,
110
108
  thenAppendsConditionedOnExactly,
111
- pid,
112
109
  }
113
110
  /* include Not a pure module */
@@ -1,17 +1,19 @@
1
1
  @@reventless.gwt
2
2
 
3
- let pid = CatalogSpec.ProductId.make
3
+ open Ordering_Examples
4
4
 
5
5
  describe("AvailableProducts StateViewSlice", () => {
6
+ // scenario-id: bbaa93a0-6f73-437b-948e-583c3f5b1b63
6
7
  test("CatalogProductSynced creates a row", () =>
7
8
  givenEvents([])
8
- ->whenEvent(CatalogProductSynced({productId: pid("p1"), name: "Laptop", price: 999.99}))
9
- ->thenStateWithId("p1", {productId: pid("p1"), name: "Laptop", price: 999.99})
9
+ ->whenEvent(CatalogProductSynced({productId: p1, name: laptop, price: 999.99}))
10
+ ->thenStateWithId("p1", {productId: p1, name: laptop, price: 999.99})
10
11
  )
11
12
 
13
+ // scenario-id: def1787d-69b4-4e67-8d9b-c1d3adce0a4d
12
14
  test("CatalogProductPriceChanged updates the price", () =>
13
- givenEvents([CatalogProductSynced({productId: pid("p1"), name: "Laptop", price: 999.99})])
14
- ->whenEvent(CatalogProductPriceChanged({productId: pid("p1"), price: 899.99}))
15
- ->thenStateWithId("p1", {productId: pid("p1"), name: "Laptop", price: 899.99})
15
+ givenEvents([CatalogProductSynced({productId: p1, name: laptop, price: 999.99})])
16
+ ->whenEvent(CatalogProductPriceChanged({productId: p1, price: 899.99}))
17
+ ->thenStateWithId("p1", {productId: p1, name: laptop, price: 899.99})
16
18
  )
17
19
  })
@@ -3,6 +3,7 @@
3
3
  import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
4
4
  import * as Projection_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Projection_GWT.res.mjs";
5
5
  import * as AvailableProducts$OrderingPlugin from "../../../src/CatalogProduct/StateView/AvailableProducts.res.mjs";
6
+ import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
6
7
  import * as AvailableProducts_Projection$OrderingPlugin from "../../../src/CatalogProduct/StateView/AvailableProducts_Projection.res.mjs";
7
8
 
8
9
  let include = Projection_GWT$ReventlessGwt.Make({
@@ -28,26 +29,26 @@ let thenStateWithId = include.thenStateWithId;
28
29
  describe("AvailableProducts StateViewSlice", () => {
29
30
  test("CatalogProductSynced creates a row", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
30
31
  TAG: "CatalogProductSynced",
31
- productId: ProductId$CatalogSpec.make("p1"),
32
- name: "Laptop",
32
+ productId: Ordering_Examples$OrderingPlugin.p1,
33
+ name: Ordering_Examples$OrderingPlugin.laptop,
33
34
  price: 999.99
34
35
  }), "p1", {
35
- productId: ProductId$CatalogSpec.make("p1"),
36
- name: "Laptop",
36
+ productId: Ordering_Examples$OrderingPlugin.p1,
37
+ name: Ordering_Examples$OrderingPlugin.laptop,
37
38
  price: 999.99
38
39
  }));
39
40
  test("CatalogProductPriceChanged updates the price", undefined, () => thenStateWithId(whenEvent(givenEvents([{
40
41
  TAG: "CatalogProductSynced",
41
- productId: ProductId$CatalogSpec.make("p1"),
42
- name: "Laptop",
42
+ productId: Ordering_Examples$OrderingPlugin.p1,
43
+ name: Ordering_Examples$OrderingPlugin.laptop,
43
44
  price: 999.99
44
45
  }]), {
45
46
  TAG: "CatalogProductPriceChanged",
46
- productId: ProductId$CatalogSpec.make("p1"),
47
+ productId: Ordering_Examples$OrderingPlugin.p1,
47
48
  price: 899.99
48
49
  }), "p1", {
49
- productId: ProductId$CatalogSpec.make("p1"),
50
- name: "Laptop",
50
+ productId: Ordering_Examples$OrderingPlugin.p1,
51
+ name: Ordering_Examples$OrderingPlugin.laptop,
51
52
  price: 899.99
52
53
  }));
53
54
  });
@@ -74,8 +75,6 @@ let thenThrow = include.thenThrow;
74
75
 
75
76
  let thenFail = include.thenFail;
76
77
 
77
- let pid = ProductId$CatalogSpec.make;
78
-
79
78
  export {
80
79
  Spec,
81
80
  describe,
@@ -93,6 +92,5 @@ export {
93
92
  thenNoState,
94
93
  thenThrow,
95
94
  thenFail,
96
- pid,
97
95
  }
98
96
  /* include Not a pure module */
@@ -1,29 +1,33 @@
1
1
  @@reventless.gwt
2
2
 
3
- let cid = CustomerId.make
3
+ open Ordering_Examples
4
4
 
5
5
  describe("ChangeAddress StateChangeSlice", () => {
6
+ // scenario-id: c948f0e0-ef17-4731-a26b-4439a38140fb
6
7
  test("non-existent customer returns CustomerNotFound", () =>
7
8
  givenEvents([])
8
- ->whenCmd(ChangeAddress({customerId: cid("c1"), address: "789 Pine"}))
9
+ ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
9
10
  ->thenError(CustomerNotFound)
10
11
  )
11
12
 
13
+ // scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
12
14
  test("active customer produces AddressChanged", () =>
13
- givenEvents([CustomerRegistered({address: "123 Main"})])
14
- ->whenCmd(ChangeAddress({customerId: cid("c1"), address: "789 Pine"}))
15
- ->thenEvent(AddressChanged({customerId: cid("c1"), address: "789 Pine"}))
15
+ givenEvents([CustomerRegistered({address: mainStreet})])
16
+ ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
17
+ ->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
16
18
  )
17
19
 
20
+ // scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
18
21
  test("same address produces no events (idempotent)", () =>
19
- givenEvents([CustomerRegistered({address: "123 Main"})])
20
- ->whenCmd(ChangeAddress({customerId: cid("c1"), address: "123 Main"}))
22
+ givenEvents([CustomerRegistered({address: mainStreet})])
23
+ ->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
21
24
  ->thenNoEvent
22
25
  )
23
26
 
27
+ // scenario-id: 909078a3-adc9-479e-85cc-88549075d963
24
28
  test("deactivated customer returns CustomerAlreadyDeactivated", () =>
25
- givenEvents([CustomerRegistered({address: "123 Main"}), CustomerDeactivated])
26
- ->whenCmd(ChangeAddress({customerId: cid("c1"), address: "789 Pine"}))
29
+ givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
30
+ ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
27
31
  ->thenError(CustomerAlreadyDeactivated)
28
32
  )
29
33
  })
@@ -1,8 +1,8 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
4
3
  import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
5
4
  import * as ChangeAddress$OrderingPlugin from "../../../src/Customer/StateChange/ChangeAddress.res.mjs";
5
+ import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
6
6
  import * as ChangeAddress_Behavior$OrderingPlugin from "../../../src/Customer/StateChange/ChangeAddress_Behavior.res.mjs";
7
7
 
8
8
  let include = Behavior_GWT$ReventlessGwt.Make({
@@ -34,39 +34,39 @@ let thenError = include.thenError;
34
34
  describe("ChangeAddress StateChangeSlice", () => {
35
35
  test("non-existent customer returns CustomerNotFound", () => thenError(whenCmd(givenEvents([]), {
36
36
  TAG: "ChangeAddress",
37
- customerId: CustomerId$OrderingPlugin.make("c1"),
38
- address: "789 Pine"
37
+ customerId: Ordering_Examples$OrderingPlugin.c1,
38
+ address: Ordering_Examples$OrderingPlugin.pineStreet
39
39
  }), "CustomerNotFound"));
40
40
  test("active customer produces AddressChanged", () => thenEvent(whenCmd(givenEvents([{
41
41
  TAG: "CustomerRegistered",
42
- address: "123 Main"
42
+ address: Ordering_Examples$OrderingPlugin.mainStreet
43
43
  }]), {
44
44
  TAG: "ChangeAddress",
45
- customerId: CustomerId$OrderingPlugin.make("c1"),
46
- address: "789 Pine"
45
+ customerId: Ordering_Examples$OrderingPlugin.c1,
46
+ address: Ordering_Examples$OrderingPlugin.pineStreet
47
47
  }), {
48
48
  TAG: "AddressChanged",
49
- customerId: CustomerId$OrderingPlugin.make("c1"),
50
- address: "789 Pine"
49
+ customerId: Ordering_Examples$OrderingPlugin.c1,
50
+ address: Ordering_Examples$OrderingPlugin.pineStreet
51
51
  }));
52
52
  test("same address produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
53
53
  TAG: "CustomerRegistered",
54
- address: "123 Main"
54
+ address: Ordering_Examples$OrderingPlugin.mainStreet
55
55
  }]), {
56
56
  TAG: "ChangeAddress",
57
- customerId: CustomerId$OrderingPlugin.make("c1"),
58
- address: "123 Main"
57
+ customerId: Ordering_Examples$OrderingPlugin.c1,
58
+ address: Ordering_Examples$OrderingPlugin.mainStreet
59
59
  })));
60
60
  test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
61
61
  {
62
62
  TAG: "CustomerRegistered",
63
- address: "123 Main"
63
+ address: Ordering_Examples$OrderingPlugin.mainStreet
64
64
  },
65
65
  "CustomerDeactivated"
66
66
  ]), {
67
67
  TAG: "ChangeAddress",
68
- customerId: CustomerId$OrderingPlugin.make("c1"),
69
- address: "789 Pine"
68
+ customerId: Ordering_Examples$OrderingPlugin.c1,
69
+ address: Ordering_Examples$OrderingPlugin.pineStreet
70
70
  }), "CustomerAlreadyDeactivated"));
71
71
  });
72
72
 
@@ -84,8 +84,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
84
84
 
85
85
  let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
86
86
 
87
- let cid = CustomerId$OrderingPlugin.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
- cid,
105
102
  }
106
103
  /* include Not a pure module */