@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.239 → 1.0.0-alpha.241

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 (270) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  5. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  6. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct.ast +0 -0
  7. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct.res +2 -9
  8. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  9. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  10. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmi +0 -0
  11. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmt +0 -0
  12. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  13. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  14. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection.ast +0 -0
  15. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection.res +1 -2
  16. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
  17. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
  18. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  19. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  20. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
  21. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
  22. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  23. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  24. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  25. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  26. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  27. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  28. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
  29. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
  30. package/lib/bs/src/Customer/StateChange/RegisterCustomer.ast +0 -0
  31. package/lib/bs/src/Customer/StateChange/RegisterCustomer.res +3 -10
  32. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  33. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  34. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
  35. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
  36. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
  37. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
  38. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  39. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  40. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  41. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  42. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping.ast +0 -0
  43. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping.res +12 -12
  44. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
  45. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
  46. package/lib/bs/src/LifecycleModel.ast +0 -0
  47. package/lib/bs/src/LifecycleModel.res +21 -3
  48. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
  49. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
  50. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  51. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  52. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  53. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  54. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation.ast +0 -0
  55. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation.res +1 -2
  56. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  57. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  58. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation.ast +0 -0
  59. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation.res +1 -4
  60. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
  61. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
  62. package/lib/bs/src/Order/StateChange/CancelOrder.ast +0 -0
  63. package/lib/bs/src/Order/StateChange/CancelOrder.res +7 -7
  64. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  65. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  66. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
  67. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
  68. package/lib/bs/src/Order/StateChange/PlaceOrder.ast +0 -0
  69. package/lib/bs/src/Order/StateChange/PlaceOrder.res +5 -1
  70. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  71. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  72. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior.ast +0 -0
  73. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior.res +2 -1
  74. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
  75. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
  76. package/lib/bs/src/Order/StateChange/ShipOrder.ast +0 -0
  77. package/lib/bs/src/Order/StateChange/ShipOrder.res +1 -2
  78. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  79. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  80. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
  81. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
  82. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
  83. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
  84. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  85. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  86. package/lib/bs/src/Plugin.ast +0 -0
  87. package/lib/bs/src/Plugin.res +109 -18
  88. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  89. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  90. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  91. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  92. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  93. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  94. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  95. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  96. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  97. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  98. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  99. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  100. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.ast +0 -0
  101. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -9
  102. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  103. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  104. package/lib/bs/tests/Customer/StateView/Customers_GWT.ast +0 -0
  105. package/lib/bs/tests/Customer/StateView/Customers_GWT.res +3 -9
  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 +1 -3
  110. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  111. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  112. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  113. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  114. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  115. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  116. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  117. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  118. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  119. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  120. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.ast +0 -0
  121. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res +2 -8
  122. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  123. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  124. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  125. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  126. package/lib/bs/tests/Order/StateView/Orders_GWT.ast +0 -0
  127. package/lib/bs/tests/Order/StateView/Orders_GWT.res +3 -9
  128. package/lib/ocaml/.compiler.log +2 -2
  129. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
  130. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
  131. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  132. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  133. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  134. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  135. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  136. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  137. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  138. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  139. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  140. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  141. package/lib/ocaml/AvailableProducts_Projection.ast +0 -0
  142. package/lib/ocaml/AvailableProducts_Projection.res +1 -2
  143. package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
  144. package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
  145. package/lib/ocaml/CancelOrder.ast +0 -0
  146. package/lib/ocaml/CancelOrder.res +7 -7
  147. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  148. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  149. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  150. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  151. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
  152. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
  153. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  154. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  155. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  156. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  157. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
  158. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
  159. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  160. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  161. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  162. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  163. package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
  164. package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
  165. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  166. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  167. package/lib/ocaml/Customers_GWT.ast +0 -0
  168. package/lib/ocaml/Customers_GWT.res +3 -9
  169. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
  170. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
  171. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  172. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  173. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  174. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  175. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  176. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  177. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
  178. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
  179. package/lib/ocaml/LifecycleModel.ast +0 -0
  180. package/lib/ocaml/LifecycleModel.res +21 -3
  181. package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
  182. package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
  183. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  184. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  185. package/lib/ocaml/Orders_ExtensionPointMapping.ast +0 -0
  186. package/lib/ocaml/Orders_ExtensionPointMapping.res +12 -12
  187. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  188. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  189. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  190. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  191. package/lib/ocaml/Orders_GWT.ast +0 -0
  192. package/lib/ocaml/Orders_GWT.res +3 -9
  193. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
  194. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
  195. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
  196. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
  197. package/lib/ocaml/PlaceOrder.ast +0 -0
  198. package/lib/ocaml/PlaceOrder.res +5 -1
  199. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  200. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  201. package/lib/ocaml/PlaceOrder_Behavior.ast +0 -0
  202. package/lib/ocaml/PlaceOrder_Behavior.res +2 -1
  203. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  204. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  205. package/lib/ocaml/PlaceOrder_GWT.ast +0 -0
  206. package/lib/ocaml/PlaceOrder_GWT.res +2 -8
  207. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  208. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  209. package/lib/ocaml/Plugin.ast +0 -0
  210. package/lib/ocaml/Plugin.res +109 -18
  211. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  212. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  213. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  214. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  215. package/lib/ocaml/Products_Extension_GWT.ast +0 -0
  216. package/lib/ocaml/Products_Extension_GWT.res +1 -3
  217. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
  218. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
  219. package/lib/ocaml/RegisterCustomer.ast +0 -0
  220. package/lib/ocaml/RegisterCustomer.res +3 -10
  221. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  222. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  223. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  224. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  225. package/lib/ocaml/RegisterCustomer_GWT.ast +0 -0
  226. package/lib/ocaml/RegisterCustomer_GWT.res +3 -9
  227. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  228. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  229. package/lib/ocaml/SendOrderConfirmation.ast +0 -0
  230. package/lib/ocaml/SendOrderConfirmation.res +1 -2
  231. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  232. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  233. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  234. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  235. package/lib/ocaml/SendOrderConfirmation_Translation.ast +0 -0
  236. package/lib/ocaml/SendOrderConfirmation_Translation.res +1 -4
  237. package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
  238. package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
  239. package/lib/ocaml/ShipOrder.ast +0 -0
  240. package/lib/ocaml/ShipOrder.res +1 -2
  241. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  242. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  243. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  244. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  245. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  246. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  247. package/lib/ocaml/SyncCatalogProduct.ast +0 -0
  248. package/lib/ocaml/SyncCatalogProduct.res +2 -9
  249. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  250. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  251. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  252. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  253. package/package.json +8 -8
  254. package/src/CatalogProduct/StateChange/SyncCatalogProduct.res +2 -9
  255. package/src/CatalogProduct/StateView/AvailableProducts_Projection.res +1 -2
  256. package/src/Customer/StateChange/RegisterCustomer.res +3 -10
  257. package/src/ExtensionPoint/Orders_ExtensionPointMapping.res +12 -12
  258. package/src/LifecycleModel.res +21 -3
  259. package/src/Order/OutboundTranslation/SendOrderConfirmation.res +1 -2
  260. package/src/Order/OutboundTranslation/SendOrderConfirmation_Translation.res +1 -4
  261. package/src/Order/StateChange/CancelOrder.res +7 -7
  262. package/src/Order/StateChange/PlaceOrder.res +5 -1
  263. package/src/Order/StateChange/PlaceOrder_Behavior.res +2 -1
  264. package/src/Order/StateChange/ShipOrder.res +1 -2
  265. package/src/Plugin.res +109 -18
  266. package/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -9
  267. package/tests/Customer/StateView/Customers_GWT.res +3 -9
  268. package/tests/Extension/Products_Extension_GWT.res +1 -3
  269. package/tests/Order/StateChange/PlaceOrder_GWT.res +2 -8
  270. package/tests/Order/StateView/Orders_GWT.res +3 -9
@@ -3,19 +3,13 @@
3
3
  describe("RegisterCustomer StateChangeSlice", () => {
4
4
  test("empty event log produces CustomerRegistered", () =>
5
5
  givenEvents([])
6
- ->whenCmd(
7
- RegisterCustomer({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
8
- )
9
- ->thenEvent(
10
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
11
- )
6
+ ->whenCmd(RegisterCustomer({customerId: "c1", email: "alice@x.y", address: "123 Main"}))
7
+ ->thenEvent(CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}))
12
8
  )
13
9
 
14
10
  test("existing customer returns CustomerAlreadyRegistered", () =>
15
11
  givenEvents([CustomerRegistered])
16
- ->whenCmd(
17
- RegisterCustomer({customerId: "c1", email: "bob@x.y", address: "456 Oak"}),
18
- )
12
+ ->whenCmd(RegisterCustomer({customerId: "c1", email: "bob@x.y", address: "456 Oak"}))
19
13
  ->thenError(CustomerAlreadyRegistered)
20
14
  )
21
15
  })
@@ -11,9 +11,7 @@ describe("Customers StateViewSlice", () => {
11
11
  )
12
12
 
13
13
  test("EmailChanged updates the email", () =>
14
- givenEvents([
15
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
16
- ])
14
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
17
15
  ->whenEvent(EmailChanged({customerId: "c1", email: "alice2@x.y"}))
18
16
  ->thenStateWithId(
19
17
  "c1",
@@ -22,9 +20,7 @@ describe("Customers StateViewSlice", () => {
22
20
  )
23
21
 
24
22
  test("AddressChanged updates the address", () =>
25
- givenEvents([
26
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
27
- ])
23
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
28
24
  ->whenEvent(AddressChanged({customerId: "c1", address: "789 Pine"}))
29
25
  ->thenStateWithId(
30
26
  "c1",
@@ -33,9 +29,7 @@ describe("Customers StateViewSlice", () => {
33
29
  )
34
30
 
35
31
  test("CustomerDeactivated sets deactivated flag", () =>
36
- givenEvents([
37
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
38
- ])
32
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
39
33
  ->whenEvent(CustomerDeactivated({customerId: "c1"}))
40
34
  ->thenStateWithId(
41
35
  "c1",
@@ -10,9 +10,7 @@ describe("Products Extension delegate", () => {
10
10
  test("ProductBecameAvailable issues SyncNewProduct", () =>
11
11
  whenIncomingEvent(
12
12
  ExtensionPoint.ProductBecameAvailable({productId: "p1", name: "Book", price: 9.99}),
13
- )->thenPublishesCommand(
14
- Delegate.SyncNewProduct({productId: "p1", name: "Book", price: 9.99}),
15
- )
13
+ )->thenPublishesCommand(Delegate.SyncNewProduct({productId: "p1", name: "Book", price: 9.99}))
16
14
  )
17
15
 
18
16
  test("ProductPriceChanged issues ChangeSyncedPrice", () =>
@@ -20,19 +20,13 @@ describe("PlaceOrder StateChangeSlice", () => {
20
20
  )
21
21
 
22
22
  test("re-placing the same orderId returns OrderAlreadyPlaced", () =>
23
- givenEvents([
24
- CatalogProductSynced({productId: "p1"}),
25
- OrderPlaced({orderId: "o1"}),
26
- ])
23
+ givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o1"})])
27
24
  ->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
28
25
  ->thenError(OrderAlreadyPlaced)
29
26
  )
30
27
 
31
28
  test("a sibling OrderPlaced for a different orderId does not block placement", () =>
32
- givenEvents([
33
- CatalogProductSynced({productId: "p1"}),
34
- OrderPlaced({orderId: "o2"}),
35
- ])
29
+ givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o2"})])
36
30
  ->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
37
31
  ->thenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
38
32
  )
@@ -3,9 +3,7 @@
3
3
  describe("Orders StateViewSlice", () => {
4
4
  test("OrderPlaced creates a row with status Placed", () =>
5
5
  givenEvents([])
6
- ->whenEvent(
7
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}),
8
- )
6
+ ->whenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}))
9
7
  ->thenStateWithId(
10
8
  "o1",
11
9
  {orderId: "o1", customerId: "c1", productIds: ["p1", "p2"], lifecycle: Placed},
@@ -13,9 +11,7 @@ describe("Orders StateViewSlice", () => {
13
11
  )
14
12
 
15
13
  test("OrderShipped updates status to Shipped", () =>
16
- givenEvents([
17
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
18
- ])
14
+ givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
19
15
  ->whenEvent(OrderShipped({orderId: "o1"}))
20
16
  ->thenStateWithId(
21
17
  "o1",
@@ -24,9 +20,7 @@ describe("Orders StateViewSlice", () => {
24
20
  )
25
21
 
26
22
  test("OrderCancelled updates status to Cancelled", () =>
27
- givenEvents([
28
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
29
- ])
23
+ givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
30
24
  ->whenEvent(OrderCancelled({orderId: "o1"}))
31
25
  ->thenStateWithId(
32
26
  "o1",
@@ -1,2 +1,2 @@
1
- #Start(1788869299999)
2
- #Done(1788869302860)
1
+ #Start(1789087733234)
2
+ #Done(1789087736200)
@@ -3,6 +3,5 @@
3
3
  let project = ({event}) =>
4
4
  switch event {
5
5
  | CatalogProductSynced({productId, name, price}) => [Set(productId, {productId, name, price})]
6
- | CatalogProductPriceChanged({productId, price}) =>
7
- [Update(productId, p => {...p, price})]
6
+ | CatalogProductPriceChanged({productId, price}) => [Update(productId, p => {...p, price})]
8
7
  }
Binary file
@@ -9,8 +9,7 @@ type consumedEvent =
9
9
  | OrderCancelled
10
10
 
11
11
  @schema
12
- type command =
13
- | CancelOrder({orderId: string})
12
+ type command = CancelOrder({orderId: string})
14
13
 
15
14
  @schema
16
15
  type error =
@@ -18,11 +17,12 @@ type error =
18
17
  | OrderAlreadyShipped
19
18
 
20
19
  @schema
21
- type event = OrderCancelled({
22
- // orderId and productIds both tag — @partitionTag picks the storage partition.
23
- @partitionTag orderId: string,
24
- productIds: array<string>,
25
- })
20
+ type event =
21
+ | OrderCancelled({
22
+ // orderId and productIds both tag — @partitionTag picks the storage partition.
23
+ @partitionTag orderId: string,
24
+ productIds: array<string>,
25
+ })
26
26
 
27
27
  type lifecycleState = Orders.lifecycle
28
28
 
Binary file
@@ -11,9 +11,7 @@ describe("Customers StateViewSlice", () => {
11
11
  )
12
12
 
13
13
  test("EmailChanged updates the email", () =>
14
- givenEvents([
15
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
16
- ])
14
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
17
15
  ->whenEvent(EmailChanged({customerId: "c1", email: "alice2@x.y"}))
18
16
  ->thenStateWithId(
19
17
  "c1",
@@ -22,9 +20,7 @@ describe("Customers StateViewSlice", () => {
22
20
  )
23
21
 
24
22
  test("AddressChanged updates the address", () =>
25
- givenEvents([
26
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
27
- ])
23
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
28
24
  ->whenEvent(AddressChanged({customerId: "c1", address: "789 Pine"}))
29
25
  ->thenStateWithId(
30
26
  "c1",
@@ -33,9 +29,7 @@ describe("Customers StateViewSlice", () => {
33
29
  )
34
30
 
35
31
  test("CustomerDeactivated sets deactivated flag", () =>
36
- givenEvents([
37
- CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
38
- ])
32
+ givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
39
33
  ->whenEvent(CustomerDeactivated({customerId: "c1"}))
40
34
  ->thenStateWithId(
41
35
  "c1",
Binary file
@@ -7,7 +7,25 @@
7
7
  // annotation where it is silent.
8
8
 
9
9
  let model: array<Reventless.Plugin.derivedEdge> = [
10
- {component: "CancelOrder", command: "CancelOrder", level: Reventless.Plugin.Instance, allowedStates: ["Placed"], targets: ["Cancelled"]},
11
- {component: "PlaceOrder", command: "PlaceOrder", level: Reventless.Plugin.Collection, allowedStates: [], targets: ["Placed"]},
12
- {component: "ShipOrder", command: "ShipOrder", level: Reventless.Plugin.Instance, allowedStates: ["Placed"], targets: ["Shipped"]},
10
+ {
11
+ component: "CancelOrder",
12
+ command: "CancelOrder",
13
+ level: Reventless.Plugin.Instance,
14
+ allowedStates: ["Placed"],
15
+ targets: ["Cancelled"],
16
+ },
17
+ {
18
+ component: "PlaceOrder",
19
+ command: "PlaceOrder",
20
+ level: Reventless.Plugin.Collection,
21
+ allowedStates: [],
22
+ targets: ["Placed"],
23
+ },
24
+ {
25
+ component: "ShipOrder",
26
+ command: "ShipOrder",
27
+ level: Reventless.Plugin.Instance,
28
+ allowedStates: ["Placed"],
29
+ targets: ["Shipped"],
30
+ },
13
31
  ]
Binary file
Binary file
@@ -15,18 +15,18 @@ module Delegate = {
15
15
 
16
16
  let mapIncomingCommand = (_id, _command, _meta) => []
17
17
 
18
- let mapOutgoingEvent = Some((_id, event, _meta, _queryEngine) =>
19
- switch event {
20
- | Delegate.OrderPlaced({orderId, customerId, productIds}) =>
21
- productIds->Array.map(productId =>
22
- PublishEvent(
18
+ let mapOutgoingEvent = Some(
19
+ (_id, event, _meta, _queryEngine) =>
20
+ switch event {
21
+ | Delegate.OrderPlaced({orderId, customerId, productIds}) =>
22
+ productIds->Array.map(productId => PublishEvent(
23
23
  productId,
24
24
  OrderingSpec.Orders_ExtensionPoint.ItemOrdered({productId, orderId, customerId}),
25
- )
26
- )
27
- | Delegate.OrderCancelled({orderId, productIds}) =>
28
- productIds->Array.map(productId =>
29
- PublishEvent(productId, OrderingSpec.Orders_ExtensionPoint.ItemOrderCancelled({productId, orderId}))
30
- )
31
- }
25
+ ))
26
+ | Delegate.OrderCancelled({orderId, productIds}) =>
27
+ productIds->Array.map(productId => PublishEvent(
28
+ productId,
29
+ OrderingSpec.Orders_ExtensionPoint.ItemOrderCancelled({productId, orderId}),
30
+ ))
31
+ },
32
32
  )
Binary file
@@ -3,9 +3,7 @@
3
3
  describe("Orders StateViewSlice", () => {
4
4
  test("OrderPlaced creates a row with status Placed", () =>
5
5
  givenEvents([])
6
- ->whenEvent(
7
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}),
8
- )
6
+ ->whenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}))
9
7
  ->thenStateWithId(
10
8
  "o1",
11
9
  {orderId: "o1", customerId: "c1", productIds: ["p1", "p2"], lifecycle: Placed},
@@ -13,9 +11,7 @@ describe("Orders StateViewSlice", () => {
13
11
  )
14
12
 
15
13
  test("OrderShipped updates status to Shipped", () =>
16
- givenEvents([
17
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
18
- ])
14
+ givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
19
15
  ->whenEvent(OrderShipped({orderId: "o1"}))
20
16
  ->thenStateWithId(
21
17
  "o1",
@@ -24,9 +20,7 @@ describe("Orders StateViewSlice", () => {
24
20
  )
25
21
 
26
22
  test("OrderCancelled updates status to Cancelled", () =>
27
- givenEvents([
28
- OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
29
- ])
23
+ givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
30
24
  ->whenEvent(OrderCancelled({orderId: "o1"}))
31
25
  ->thenStateWithId(
32
26
  "o1",
Binary file
@@ -12,7 +12,11 @@ type consumedEvent =
12
12
  @schema
13
13
  type command =
14
14
  // Multiple tagged fields — @partitionTag picks orderId as the storage partition.
15
- PlaceOrder({@partitionTag orderId: string, customerId: string, @ref("AvailableProducts") productIds: array<string>})
15
+ | PlaceOrder({
16
+ @partitionTag orderId: string,
17
+ customerId: string,
18
+ @ref("AvailableProducts") productIds: array<string>,
19
+ })
16
20
 
17
21
  @schema
18
22
  type error =
Binary file
@@ -29,7 +29,8 @@ let decide = (state, command) =>
29
29
  if state.placedOrderIds->Array.includes(orderId) {
30
30
  Error(OrderAlreadyPlaced)
31
31
  } else {
32
- let missing = productIds->Array.filter(pid => !(state.availableProductIds->Array.includes(pid)))
32
+ let missing =
33
+ productIds->Array.filter(pid => !(state.availableProductIds->Array.includes(pid)))
33
34
  if missing->Array.length > 0 {
34
35
  Error(ProductsNotAvailable({missing: missing}))
35
36
  } else {
Binary file
@@ -20,19 +20,13 @@ describe("PlaceOrder StateChangeSlice", () => {
20
20
  )
21
21
 
22
22
  test("re-placing the same orderId returns OrderAlreadyPlaced", () =>
23
- givenEvents([
24
- CatalogProductSynced({productId: "p1"}),
25
- OrderPlaced({orderId: "o1"}),
26
- ])
23
+ givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o1"})])
27
24
  ->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
28
25
  ->thenError(OrderAlreadyPlaced)
29
26
  )
30
27
 
31
28
  test("a sibling OrderPlaced for a different orderId does not block placement", () =>
32
- givenEvents([
33
- CatalogProductSynced({productId: "p1"}),
34
- OrderPlaced({orderId: "o2"}),
35
- ])
29
+ givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o2"})])
36
30
  ->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
37
31
  ->thenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
38
32
  )
Binary file
Binary file
Binary file