@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.250 → 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 (245) hide show
  1. package/CHANGELOG.md +8 -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_Behavior-OrderingPlugin.cmi +0 -0
  8. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  9. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  10. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  11. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  12. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  13. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
  14. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
  15. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  16. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  17. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  18. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  19. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  20. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  21. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
  22. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
  23. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  34. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  35. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  36. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  37. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.ast +0 -0
  38. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
  39. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
  40. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  41. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  42. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.ast +0 -0
  43. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
  44. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
  45. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  46. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  47. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.ast +0 -0
  48. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
  49. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
  50. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  51. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  52. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.ast +0 -0
  53. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
  54. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
  55. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  56. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  57. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.ast +0 -0
  58. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
  59. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
  60. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  61. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  62. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.ast +0 -0
  63. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
  64. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
  65. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  66. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  67. package/lib/bs/tests/Customer/StateView/Customers_GWT.ast +0 -0
  68. package/lib/bs/tests/Customer/StateView/Customers_GWT.res +16 -20
  69. package/lib/bs/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
  70. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  71. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  72. package/lib/bs/tests/Extension/Products_Extension_GWT.ast +0 -0
  73. package/lib/bs/tests/Extension/Products_Extension_GWT.res +7 -7
  74. package/lib/bs/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
  75. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  76. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  77. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.ast +0 -0
  78. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
  79. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
  80. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  81. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  82. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.ast +0 -0
  83. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
  84. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
  85. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  86. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  87. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.ast +0 -0
  88. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
  89. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
  90. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  91. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  92. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.ast +0 -0
  93. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
  94. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
  95. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  96. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  97. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.ast +0 -0
  98. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
  99. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
  100. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  101. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  102. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.ast +0 -0
  103. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
  104. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
  105. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  106. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  107. package/lib/bs/tests/Order/StateView/Orders_GWT.ast +0 -0
  108. package/lib/bs/tests/Order/StateView/Orders_GWT.res +14 -21
  109. package/lib/bs/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
  110. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmi +0 -0
  111. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmj +0 -0
  112. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmt +0 -0
  113. package/lib/bs/tests/Ordering_Examples.ast +0 -0
  114. package/lib/bs/tests/Ordering_Examples.res +15 -0
  115. package/lib/bs/tests/Ordering_Examples.res.mjs +39 -0
  116. package/lib/ocaml/.compiler.log +2 -2
  117. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  118. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  119. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  120. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  121. package/lib/ocaml/AutoShipOrder_GWT.ast +0 -0
  122. package/lib/ocaml/AutoShipOrder_GWT.res +13 -8
  123. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  124. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  125. package/lib/ocaml/AvailableProducts_GWT.ast +0 -0
  126. package/lib/ocaml/AvailableProducts_GWT.res +8 -6
  127. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  128. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  129. package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
  130. package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
  131. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  132. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  133. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  134. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  135. package/lib/ocaml/CancelOrder_GWT.ast +0 -0
  136. package/lib/ocaml/CancelOrder_GWT.res +13 -10
  137. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  138. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  139. package/lib/ocaml/ChangeAddress_GWT.ast +0 -0
  140. package/lib/ocaml/ChangeAddress_GWT.res +13 -9
  141. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  142. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  143. package/lib/ocaml/ChangeEmail_GWT.ast +0 -0
  144. package/lib/ocaml/ChangeEmail_GWT.res +13 -9
  145. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  146. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  147. package/lib/ocaml/Customers_GWT.ast +0 -0
  148. package/lib/ocaml/Customers_GWT.res +16 -20
  149. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
  150. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
  151. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  152. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  153. package/lib/ocaml/DeactivateCustomer_GWT.ast +0 -0
  154. package/lib/ocaml/DeactivateCustomer_GWT.res +8 -5
  155. package/lib/ocaml/OrderingPlugin.cmi +0 -0
  156. package/lib/ocaml/OrderingPlugin.cmt +0 -0
  157. package/lib/ocaml/OrderingPlugin.mlmap +1 -0
  158. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmi +0 -0
  159. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmj +0 -0
  160. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmt +0 -0
  161. package/lib/ocaml/Ordering_Examples.ast +0 -0
  162. package/lib/ocaml/Ordering_Examples.res +15 -0
  163. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  164. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  165. package/lib/ocaml/Orders_ExtensionPointMapping_GWT.ast +0 -0
  166. package/lib/ocaml/Orders_ExtensionPointMapping_GWT.res +7 -7
  167. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  168. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  169. package/lib/ocaml/Orders_GWT.ast +0 -0
  170. package/lib/ocaml/Orders_GWT.res +14 -21
  171. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
  172. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
  173. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  174. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  175. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  176. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  177. package/lib/ocaml/PlaceOrder_GWT.ast +0 -0
  178. package/lib/ocaml/PlaceOrder_GWT.res +19 -18
  179. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  180. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  181. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  182. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  183. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  184. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  185. package/lib/ocaml/Products_Extension_GWT.ast +0 -0
  186. package/lib/ocaml/Products_Extension_GWT.res +7 -7
  187. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  188. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  189. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  190. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  191. package/lib/ocaml/RegisterCustomer_GWT.ast +0 -0
  192. package/lib/ocaml/RegisterCustomer_GWT.res +6 -6
  193. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  194. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  195. package/lib/ocaml/SendOrderConfirmation_GWT.ast +0 -0
  196. package/lib/ocaml/SendOrderConfirmation_GWT.res +7 -6
  197. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  198. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  199. package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
  200. package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
  201. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  202. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  203. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  204. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  205. package/lib/ocaml/ShipOrder_GWT.ast +0 -0
  206. package/lib/ocaml/ShipOrder_GWT.res +10 -6
  207. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  208. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  209. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  210. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  211. package/lib/ocaml/SyncCatalogProduct_GWT.ast +0 -0
  212. package/lib/ocaml/SyncCatalogProduct_GWT.res +14 -10
  213. package/package.json +3 -3
  214. package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
  215. package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
  216. package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
  217. package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
  218. package/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
  219. package/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
  220. package/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
  221. package/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
  222. package/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
  223. package/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
  224. package/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
  225. package/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
  226. package/tests/Customer/StateView/Customers_GWT.res +16 -20
  227. package/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
  228. package/tests/Extension/Products_Extension_GWT.res +7 -7
  229. package/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
  230. package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
  231. package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
  232. package/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
  233. package/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
  234. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
  235. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
  236. package/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
  237. package/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
  238. package/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
  239. package/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
  240. package/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
  241. package/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
  242. package/tests/Order/StateView/Orders_GWT.res +14 -21
  243. package/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
  244. package/tests/Ordering_Examples.res +15 -0
  245. package/tests/Ordering_Examples.res.mjs +39 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+
6
14
  # 1.0.0-alpha.250 (2026-09-22)
7
15
 
8
16
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
@@ -1,2 +1,2 @@
1
- #Start(1790058029728)
2
- #Done(1790058031891)
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": "1790058031892"
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 */
@@ -1,29 +1,33 @@
1
1
  @@reventless.gwt
2
2
 
3
- let cid = CustomerId.make
3
+ open Ordering_Examples
4
4
 
5
5
  describe("ChangeEmail StateChangeSlice", () => {
6
+ // scenario-id: f82a30f6-fef5-4a05-ac2c-9a419e476f53
6
7
  test("non-existent customer returns CustomerNotFound", () =>
7
8
  givenEvents([])
8
- ->whenCmd(ChangeEmail({customerId: cid("c1"), email: "alice2@x.y"}))
9
+ ->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
9
10
  ->thenError(CustomerNotFound)
10
11
  )
11
12
 
13
+ // scenario-id: c772aca9-7aa7-4ee0-bb3e-be1a2dc46967
12
14
  test("active customer produces EmailChanged", () =>
13
- givenEvents([CustomerRegistered({email: "alice@x.y"})])
14
- ->whenCmd(ChangeEmail({customerId: cid("c1"), email: "alice2@x.y"}))
15
- ->thenEvent(EmailChanged({customerId: cid("c1"), email: "alice2@x.y"}))
15
+ givenEvents([CustomerRegistered({email: aliceEmail})])
16
+ ->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
17
+ ->thenEvent(EmailChanged({customerId: c1, email: aliceNewEmail}))
16
18
  )
17
19
 
20
+ // scenario-id: 659398db-0145-4e2f-8087-905a1ff03af3
18
21
  test("same email produces no events (idempotent)", () =>
19
- givenEvents([CustomerRegistered({email: "alice@x.y"})])
20
- ->whenCmd(ChangeEmail({customerId: cid("c1"), email: "alice@x.y"}))
22
+ givenEvents([CustomerRegistered({email: aliceEmail})])
23
+ ->whenCmd(ChangeEmail({customerId: c1, email: aliceEmail}))
21
24
  ->thenNoEvent
22
25
  )
23
26
 
27
+ // scenario-id: c868f35b-ea20-438e-947d-58568db6adbd
24
28
  test("deactivated customer returns CustomerAlreadyDeactivated", () =>
25
- givenEvents([CustomerRegistered({email: "alice@x.y"}), CustomerDeactivated])
26
- ->whenCmd(ChangeEmail({customerId: cid("c1"), email: "alice2@x.y"}))
29
+ givenEvents([CustomerRegistered({email: aliceEmail}), CustomerDeactivated])
30
+ ->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
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 ChangeEmail$OrderingPlugin from "../../../src/Customer/StateChange/ChangeEmail.res.mjs";
5
+ import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
6
6
  import * as ChangeEmail_Behavior$OrderingPlugin from "../../../src/Customer/StateChange/ChangeEmail_Behavior.res.mjs";
7
7
 
8
8
  let include = Behavior_GWT$ReventlessGwt.Make({
@@ -34,39 +34,39 @@ let thenError = include.thenError;
34
34
  describe("ChangeEmail StateChangeSlice", () => {
35
35
  test("non-existent customer returns CustomerNotFound", () => thenError(whenCmd(givenEvents([]), {
36
36
  TAG: "ChangeEmail",
37
- customerId: CustomerId$OrderingPlugin.make("c1"),
38
- email: "alice2@x.y"
37
+ customerId: Ordering_Examples$OrderingPlugin.c1,
38
+ email: Ordering_Examples$OrderingPlugin.aliceNewEmail
39
39
  }), "CustomerNotFound"));
40
40
  test("active customer produces EmailChanged", () => thenEvent(whenCmd(givenEvents([{
41
41
  TAG: "CustomerRegistered",
42
- email: "alice@x.y"
42
+ email: Ordering_Examples$OrderingPlugin.aliceEmail
43
43
  }]), {
44
44
  TAG: "ChangeEmail",
45
- customerId: CustomerId$OrderingPlugin.make("c1"),
46
- email: "alice2@x.y"
45
+ customerId: Ordering_Examples$OrderingPlugin.c1,
46
+ email: Ordering_Examples$OrderingPlugin.aliceNewEmail
47
47
  }), {
48
48
  TAG: "EmailChanged",
49
- customerId: CustomerId$OrderingPlugin.make("c1"),
50
- email: "alice2@x.y"
49
+ customerId: Ordering_Examples$OrderingPlugin.c1,
50
+ email: Ordering_Examples$OrderingPlugin.aliceNewEmail
51
51
  }));
52
52
  test("same email produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
53
53
  TAG: "CustomerRegistered",
54
- email: "alice@x.y"
54
+ email: Ordering_Examples$OrderingPlugin.aliceEmail
55
55
  }]), {
56
56
  TAG: "ChangeEmail",
57
- customerId: CustomerId$OrderingPlugin.make("c1"),
58
- email: "alice@x.y"
57
+ customerId: Ordering_Examples$OrderingPlugin.c1,
58
+ email: Ordering_Examples$OrderingPlugin.aliceEmail
59
59
  })));
60
60
  test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
61
61
  {
62
62
  TAG: "CustomerRegistered",
63
- email: "alice@x.y"
63
+ email: Ordering_Examples$OrderingPlugin.aliceEmail
64
64
  },
65
65
  "CustomerDeactivated"
66
66
  ]), {
67
67
  TAG: "ChangeEmail",
68
- customerId: CustomerId$OrderingPlugin.make("c1"),
69
- email: "alice2@x.y"
68
+ customerId: Ordering_Examples$OrderingPlugin.c1,
69
+ email: Ordering_Examples$OrderingPlugin.aliceNewEmail
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 */