@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.
- package/CHANGELOG.md +16 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/OrderingPlugin.cmi +0 -0
- package/lib/bs/OrderingPlugin.cmt +0 -0
- package/lib/bs/OrderingPlugin.mlmap +1 -0
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OrderId-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OrderId-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.ast +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.ast +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.ast +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.ast +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.ast +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.ast +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
- package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT.ast +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT.res +16 -20
- package/lib/bs/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
- package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Products_Extension_GWT.ast +0 -0
- package/lib/bs/tests/Extension/Products_Extension_GWT.res +7 -7
- package/lib/bs/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.ast +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.ast +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.ast +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT.res +14 -21
- package/lib/bs/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
- package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmj +0 -0
- package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Ordering_Examples.ast +0 -0
- package/lib/bs/tests/Ordering_Examples.res +15 -0
- package/lib/bs/tests/Ordering_Examples.res.mjs +39 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_GWT.ast +0 -0
- package/lib/ocaml/AutoShipOrder_GWT.res +13 -8
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_GWT.ast +0 -0
- package/lib/ocaml/AvailableProducts_GWT.res +8 -6
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder_GWT.ast +0 -0
- package/lib/ocaml/CancelOrder_GWT.res +13 -10
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_GWT.ast +0 -0
- package/lib/ocaml/ChangeAddress_GWT.res +13 -9
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_GWT.ast +0 -0
- package/lib/ocaml/ChangeEmail_GWT.res +13 -9
- package/lib/ocaml/CustomerId-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CustomerId-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers_GWT.ast +0 -0
- package/lib/ocaml/Customers_GWT.res +16 -20
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT.ast +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT.res +8 -5
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderId-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderId-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderingPlugin.mlmap +1 -0
- package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Ordering_Examples.ast +0 -0
- package/lib/ocaml/Ordering_Examples.res +15 -0
- package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT.ast +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT.res +7 -7
- package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_GWT.ast +0 -0
- package/lib/ocaml/Orders_GWT.res +14 -21
- package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_GWT.ast +0 -0
- package/lib/ocaml/PlaceOrder_GWT.res +19 -18
- package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension_GWT.ast +0 -0
- package/lib/ocaml/Products_Extension_GWT.res +7 -7
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_GWT.ast +0 -0
- package/lib/ocaml/RegisterCustomer_GWT.res +6 -6
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT.ast +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT.res +7 -6
- package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_GWT.ast +0 -0
- package/lib/ocaml/ShipOrder_GWT.res +10 -6
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT.ast +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT.res +14 -10
- package/package.json +8 -8
- package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res +14 -10
- package/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT.res.mjs +13 -16
- package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res +8 -6
- package/tests/CatalogProduct/StateView/AvailableProducts_GWT.res.mjs +10 -12
- package/tests/Customer/StateChange/ChangeAddress_GWT.res +13 -9
- package/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +14 -17
- package/tests/Customer/StateChange/ChangeEmail_GWT.res +13 -9
- package/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +14 -17
- package/tests/Customer/StateChange/DeactivateCustomer_GWT.res +8 -5
- package/tests/Customer/StateChange/DeactivateCustomer_GWT.res.mjs +5 -8
- package/tests/Customer/StateChange/RegisterCustomer_GWT.res +6 -6
- package/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -11
- package/tests/Customer/StateView/Customers_GWT.res +16 -20
- package/tests/Customer/StateView/Customers_GWT.res.mjs +30 -32
- package/tests/Extension/Products_Extension_GWT.res +7 -7
- package/tests/Extension/Products_Extension_GWT.res.mjs +5 -8
- package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res +7 -7
- package/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT.res.mjs +8 -19
- package/tests/Order/Automation/AutoShipOrder_GWT.res +13 -8
- package/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +8 -11
- package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +7 -6
- package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +9 -16
- package/tests/Order/StateChange/CancelOrder_GWT.res +13 -10
- package/tests/Order/StateChange/CancelOrder_GWT.res.mjs +12 -19
- package/tests/Order/StateChange/PlaceOrder_GWT.res +19 -18
- package/tests/Order/StateChange/PlaceOrder_GWT.res.mjs +31 -42
- package/tests/Order/StateChange/ShipOrder_GWT.res +10 -6
- package/tests/Order/StateChange/ShipOrder_GWT.res.mjs +6 -9
- package/tests/Order/StateView/Orders_GWT.res +14 -21
- package/tests/Order/StateView/Orders_GWT.res.mjs +23 -33
- package/tests/Ordering_Examples.res +15 -0
- package/tests/Ordering_Examples.res.mjs +39 -0
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("ShipOrder StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 2146c7ce-d052-4b18-8d15-373916445f80
|
|
6
7
|
test("non-existent order returns OrderNotFound", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(ShipOrder({orderId:
|
|
9
|
+
->whenCmd(ShipOrder({orderId: o1}))
|
|
9
10
|
->thenError(OrderNotFound)
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: 76062151-57bb-468b-9fee-915e35e8d67e
|
|
12
14
|
test("placed order produces OrderShipped", () =>
|
|
13
15
|
givenEvents([OrderPlaced])
|
|
14
|
-
->whenCmd(ShipOrder({orderId:
|
|
15
|
-
->thenEvent(OrderShipped({orderId:
|
|
16
|
+
->whenCmd(ShipOrder({orderId: o1}))
|
|
17
|
+
->thenEvent(OrderShipped({orderId: o1}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: 3ffc1f1f-8611-4c99-90b3-435b441140d3
|
|
18
21
|
test("already shipped order produces no events (idempotent)", () =>
|
|
19
22
|
givenEvents([OrderPlaced, OrderShipped])
|
|
20
|
-
->whenCmd(ShipOrder({orderId:
|
|
23
|
+
->whenCmd(ShipOrder({orderId: o1}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
|
|
27
|
+
// scenario-id: 23a22483-510c-458d-aa40-17c442470b22
|
|
24
28
|
test("cancelled order returns OrderAlreadyCancelled", () =>
|
|
25
29
|
givenEvents([OrderPlaced, OrderCancelled])
|
|
26
|
-
->whenCmd(ShipOrder({orderId:
|
|
30
|
+
->whenCmd(ShipOrder({orderId: o1}))
|
|
27
31
|
->thenError(OrderAlreadyCancelled)
|
|
28
32
|
)
|
|
29
33
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as OrderId$OrderingPlugin from "../../../src/Order/OrderId.res.mjs";
|
|
4
3
|
import * as ShipOrder$OrderingPlugin from "../../../src/Order/StateChange/ShipOrder.res.mjs";
|
|
5
4
|
import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
|
|
5
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
6
6
|
import * as ShipOrder_Behavior$OrderingPlugin from "../../../src/Order/StateChange/ShipOrder_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -34,28 +34,28 @@ let thenError = include.thenError;
|
|
|
34
34
|
describe("ShipOrder StateChangeSlice", () => {
|
|
35
35
|
test("non-existent order returns OrderNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
36
36
|
TAG: "ShipOrder",
|
|
37
|
-
orderId:
|
|
37
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
38
38
|
}), "OrderNotFound"));
|
|
39
39
|
test("placed order produces OrderShipped", () => thenEvent(whenCmd(givenEvents(["OrderPlaced"]), {
|
|
40
40
|
TAG: "ShipOrder",
|
|
41
|
-
orderId:
|
|
41
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
42
42
|
}), {
|
|
43
43
|
TAG: "OrderShipped",
|
|
44
|
-
orderId:
|
|
44
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
45
45
|
}));
|
|
46
46
|
test("already shipped order produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([
|
|
47
47
|
"OrderPlaced",
|
|
48
48
|
"OrderShipped"
|
|
49
49
|
]), {
|
|
50
50
|
TAG: "ShipOrder",
|
|
51
|
-
orderId:
|
|
51
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
52
52
|
})));
|
|
53
53
|
test("cancelled order returns OrderAlreadyCancelled", () => thenError(whenCmd(givenEvents([
|
|
54
54
|
"OrderPlaced",
|
|
55
55
|
"OrderCancelled"
|
|
56
56
|
]), {
|
|
57
57
|
TAG: "ShipOrder",
|
|
58
|
-
orderId:
|
|
58
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
59
59
|
}), "OrderAlreadyCancelled"));
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -73,8 +73,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
73
73
|
|
|
74
74
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
75
75
|
|
|
76
|
-
let oid = OrderId$OrderingPlugin.make;
|
|
77
|
-
|
|
78
76
|
export {
|
|
79
77
|
Spec,
|
|
80
78
|
describe,
|
|
@@ -90,6 +88,5 @@ export {
|
|
|
90
88
|
thenError,
|
|
91
89
|
thenAppendsConditionedOn,
|
|
92
90
|
thenAppendsConditionedOnExactly,
|
|
93
|
-
oid,
|
|
94
91
|
}
|
|
95
92
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
let oid = OrderId.make
|
|
5
|
-
let pid = CatalogSpec.ProductId.make
|
|
3
|
+
open Ordering_Examples
|
|
6
4
|
|
|
7
5
|
describe("Orders StateViewSlice", () => {
|
|
6
|
+
// scenario-id: 7967e51a-49fb-4f1e-81f8-a4feabeccf8a
|
|
8
7
|
test("OrderPlaced creates a row with status Placed", () =>
|
|
9
8
|
givenEvents([])
|
|
10
|
-
->whenEvent(
|
|
11
|
-
OrderPlaced({orderId: oid("o1"), customerId: cid("c1"), productIds: [pid("p1"), pid("p2")]}),
|
|
12
|
-
)
|
|
9
|
+
->whenEvent(OrderPlaced({orderId: o1, customerId: c1, productIds: [p1, p2]}))
|
|
13
10
|
->thenStateWithId(
|
|
14
11
|
"o1",
|
|
15
12
|
{
|
|
16
|
-
orderId:
|
|
17
|
-
customerId:
|
|
18
|
-
productIds: [
|
|
13
|
+
orderId: o1,
|
|
14
|
+
customerId: c1,
|
|
15
|
+
productIds: [p1, p2],
|
|
19
16
|
lifecycle: Placed,
|
|
20
17
|
},
|
|
21
18
|
)
|
|
22
19
|
)
|
|
23
20
|
|
|
21
|
+
// scenario-id: e97d9c01-c2e6-48c1-82d2-3cc2e7c8e401
|
|
24
22
|
test("OrderShipped updates status to Shipped", () =>
|
|
25
|
-
givenEvents([OrderPlaced({orderId:
|
|
26
|
-
->whenEvent(OrderShipped({orderId:
|
|
27
|
-
->thenStateWithId(
|
|
28
|
-
"o1",
|
|
29
|
-
{orderId: oid("o1"), customerId: cid("c1"), productIds: [pid("p1")], lifecycle: Shipped},
|
|
30
|
-
)
|
|
23
|
+
givenEvents([OrderPlaced({orderId: o1, customerId: c1, productIds: [p1]})])
|
|
24
|
+
->whenEvent(OrderShipped({orderId: o1}))
|
|
25
|
+
->thenStateWithId("o1", {orderId: o1, customerId: c1, productIds: [p1], lifecycle: Shipped})
|
|
31
26
|
)
|
|
32
27
|
|
|
28
|
+
// scenario-id: 94ff556f-1d4d-444d-8eda-0a9192715489
|
|
33
29
|
test("OrderCancelled updates status to Cancelled", () =>
|
|
34
|
-
givenEvents([OrderPlaced({orderId:
|
|
35
|
-
->whenEvent(OrderCancelled({orderId:
|
|
36
|
-
->thenStateWithId(
|
|
37
|
-
"o1",
|
|
38
|
-
{orderId: oid("o1"), customerId: cid("c1"), productIds: [pid("p1")], lifecycle: Cancelled},
|
|
39
|
-
)
|
|
30
|
+
givenEvents([OrderPlaced({orderId: o1, customerId: c1, productIds: [p1]})])
|
|
31
|
+
->whenEvent(OrderCancelled({orderId: o1}))
|
|
32
|
+
->thenStateWithId("o1", {orderId: o1, customerId: c1, productIds: [p1], lifecycle: Cancelled})
|
|
40
33
|
)
|
|
41
34
|
})
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Orders$OrderingPlugin from "../../../src/Order/StateView/Orders.res.mjs";
|
|
4
|
-
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
5
4
|
import * as OrderId$OrderingPlugin from "../../../src/Order/OrderId.res.mjs";
|
|
6
|
-
import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
|
|
7
5
|
import * as Projection_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Projection_GWT.res.mjs";
|
|
6
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
8
7
|
import * as Orders_Projection$OrderingPlugin from "../../../src/Order/StateView/Orders_Projection.res.mjs";
|
|
9
8
|
|
|
10
9
|
let include = Projection_GWT$ReventlessGwt.Make({
|
|
@@ -30,47 +29,47 @@ let thenStateWithId = include.thenStateWithId;
|
|
|
30
29
|
describe("Orders StateViewSlice", () => {
|
|
31
30
|
test("OrderPlaced creates a row with status Placed", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
|
|
32
31
|
TAG: "OrderPlaced",
|
|
33
|
-
orderId:
|
|
34
|
-
customerId:
|
|
32
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
33
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
35
34
|
productIds: [
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
Ordering_Examples$OrderingPlugin.p1,
|
|
36
|
+
Ordering_Examples$OrderingPlugin.p2
|
|
38
37
|
]
|
|
39
38
|
}), "o1", {
|
|
40
|
-
orderId:
|
|
41
|
-
customerId:
|
|
39
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
40
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
42
41
|
productIds: [
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
Ordering_Examples$OrderingPlugin.p1,
|
|
43
|
+
Ordering_Examples$OrderingPlugin.p2
|
|
45
44
|
],
|
|
46
45
|
lifecycle: "Placed"
|
|
47
46
|
}));
|
|
48
47
|
test("OrderShipped updates status to Shipped", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
49
48
|
TAG: "OrderPlaced",
|
|
50
|
-
orderId:
|
|
51
|
-
customerId:
|
|
52
|
-
productIds: [
|
|
49
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
50
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
51
|
+
productIds: [Ordering_Examples$OrderingPlugin.p1]
|
|
53
52
|
}]), {
|
|
54
53
|
TAG: "OrderShipped",
|
|
55
|
-
orderId:
|
|
54
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
56
55
|
}), "o1", {
|
|
57
|
-
orderId:
|
|
58
|
-
customerId:
|
|
59
|
-
productIds: [
|
|
56
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
57
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
58
|
+
productIds: [Ordering_Examples$OrderingPlugin.p1],
|
|
60
59
|
lifecycle: "Shipped"
|
|
61
60
|
}));
|
|
62
61
|
test("OrderCancelled updates status to Cancelled", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
63
62
|
TAG: "OrderPlaced",
|
|
64
|
-
orderId:
|
|
65
|
-
customerId:
|
|
66
|
-
productIds: [
|
|
63
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
64
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
65
|
+
productIds: [Ordering_Examples$OrderingPlugin.p1]
|
|
67
66
|
}]), {
|
|
68
67
|
TAG: "OrderCancelled",
|
|
69
|
-
orderId:
|
|
68
|
+
orderId: Ordering_Examples$OrderingPlugin.o1
|
|
70
69
|
}), "o1", {
|
|
71
|
-
orderId:
|
|
72
|
-
customerId:
|
|
73
|
-
productIds: [
|
|
70
|
+
orderId: Ordering_Examples$OrderingPlugin.o1,
|
|
71
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
72
|
+
productIds: [Ordering_Examples$OrderingPlugin.p1],
|
|
74
73
|
lifecycle: "Cancelled"
|
|
75
74
|
}));
|
|
76
75
|
});
|
|
@@ -97,12 +96,6 @@ let thenThrow = include.thenThrow;
|
|
|
97
96
|
|
|
98
97
|
let thenFail = include.thenFail;
|
|
99
98
|
|
|
100
|
-
let cid = CustomerId$OrderingPlugin.make;
|
|
101
|
-
|
|
102
|
-
let oid = OrderId$OrderingPlugin.make;
|
|
103
|
-
|
|
104
|
-
let pid = ProductId$CatalogSpec.make;
|
|
105
|
-
|
|
106
99
|
export {
|
|
107
100
|
Spec,
|
|
108
101
|
describe,
|
|
@@ -120,8 +113,5 @@ export {
|
|
|
120
113
|
thenNoState,
|
|
121
114
|
thenThrow,
|
|
122
115
|
thenFail,
|
|
123
|
-
cid,
|
|
124
|
-
oid,
|
|
125
|
-
pid,
|
|
126
116
|
}
|
|
127
117
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@@reventless.examples
|
|
2
|
+
|
|
3
|
+
let p1: CatalogSpec.ProductId.t = CatalogSpec.ProductId.makeFromString("p1")
|
|
4
|
+
let p2: CatalogSpec.ProductId.t = CatalogSpec.ProductId.makeFromString("p2")
|
|
5
|
+
|
|
6
|
+
let c1: CustomerId.t = CustomerId.makeFromString("c1")
|
|
7
|
+
|
|
8
|
+
let o1: OrderId.t = OrderId.makeFromString("o1")
|
|
9
|
+
let o2: OrderId.t = OrderId.makeFromString("o2")
|
|
10
|
+
|
|
11
|
+
let aliceEmail: string = "alice@x.y"
|
|
12
|
+
let aliceNewEmail: string = "alice2@x.y"
|
|
13
|
+
let laptop: string = "Laptop"
|
|
14
|
+
let mainStreet: string = "123 Main"
|
|
15
|
+
let pineStreet: string = "789 Pine"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
4
|
+
import * as OrderId$OrderingPlugin from "../src/Order/OrderId.res.mjs";
|
|
5
|
+
import * as CustomerId$OrderingPlugin from "../src/Customer/CustomerId.res.mjs";
|
|
6
|
+
|
|
7
|
+
let p1 = ProductId$CatalogSpec.makeFromString("p1");
|
|
8
|
+
|
|
9
|
+
let p2 = ProductId$CatalogSpec.makeFromString("p2");
|
|
10
|
+
|
|
11
|
+
let c1 = CustomerId$OrderingPlugin.makeFromString("c1");
|
|
12
|
+
|
|
13
|
+
let o1 = OrderId$OrderingPlugin.makeFromString("o1");
|
|
14
|
+
|
|
15
|
+
let o2 = OrderId$OrderingPlugin.makeFromString("o2");
|
|
16
|
+
|
|
17
|
+
let aliceEmail = "alice@x.y";
|
|
18
|
+
|
|
19
|
+
let aliceNewEmail = "alice2@x.y";
|
|
20
|
+
|
|
21
|
+
let laptop = "Laptop";
|
|
22
|
+
|
|
23
|
+
let mainStreet = "123 Main";
|
|
24
|
+
|
|
25
|
+
let pineStreet = "789 Pine";
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
p1,
|
|
29
|
+
p2,
|
|
30
|
+
c1,
|
|
31
|
+
o1,
|
|
32
|
+
o2,
|
|
33
|
+
aliceEmail,
|
|
34
|
+
aliceNewEmail,
|
|
35
|
+
laptop,
|
|
36
|
+
mainStreet,
|
|
37
|
+
pineStreet,
|
|
38
|
+
}
|
|
39
|
+
/* p1 Not a pure module */
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790168171117)
|
|
2
|
+
#Done(1790168173909)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -22,36 +22,41 @@ module AutoShipOrderSlice = {
|
|
|
22
22
|
|
|
23
23
|
@@reventless.gwt
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
open Ordering_Examples
|
|
26
26
|
|
|
27
27
|
describe("AutoShipOrder AutomationSlice", () => {
|
|
28
|
+
// scenario-id: 02131883-ffbd-430f-a186-86d79daf5fb4
|
|
28
29
|
test("collect: OrderPlaced creates a pending TODO", () =>
|
|
29
|
-
givenEvent(OrderPlaced({orderId:
|
|
30
|
+
givenEvent(OrderPlaced({orderId: o1}))
|
|
30
31
|
->whenCollect
|
|
31
|
-
->thenTodos([("o1", {orderId:
|
|
32
|
+
->thenTodos([("o1", {orderId: o1})])
|
|
32
33
|
)
|
|
33
34
|
|
|
35
|
+
// scenario-id: 9f6c8137-a3ee-4bcd-8f22-59c028d3859e
|
|
34
36
|
test("collect: OrderShipped is ignored (no TODO)", () =>
|
|
35
|
-
givenEvent(OrderShipped({orderId:
|
|
37
|
+
givenEvent(OrderShipped({orderId: o1}))
|
|
36
38
|
->whenCollect
|
|
37
39
|
->thenTodos([])
|
|
38
40
|
)
|
|
39
41
|
|
|
42
|
+
// scenario-id: 0d773a65-4422-45d1-a861-a3b61d144bc5
|
|
40
43
|
test("resolve: OrderShipped marks the TODO done", () =>
|
|
41
|
-
givenEvent(OrderShipped({orderId:
|
|
44
|
+
givenEvent(OrderShipped({orderId: o1}))
|
|
42
45
|
->whenResolve
|
|
43
46
|
->thenResolved(Some("o1"))
|
|
44
47
|
)
|
|
45
48
|
|
|
49
|
+
// scenario-id: def98dd4-ed82-4d4b-9d93-7fd6f77278a4
|
|
46
50
|
test("resolve: OrderPlaced does not mark anything done", () =>
|
|
47
|
-
givenEvent(OrderPlaced({orderId:
|
|
51
|
+
givenEvent(OrderPlaced({orderId: o1}))
|
|
48
52
|
->whenResolve
|
|
49
53
|
->thenResolved(None)
|
|
50
54
|
)
|
|
51
55
|
|
|
56
|
+
// scenario-id: c33672f2-3c0a-489f-baed-79eb15963354
|
|
52
57
|
test("process: pending TODO emits ShipOrder for the same id", () =>
|
|
53
|
-
givenTodo("o1", {orderId:
|
|
58
|
+
givenTodo("o1", {orderId: o1})
|
|
54
59
|
->whenProcess
|
|
55
|
-
->thenCommand("o1", ShipOrder({orderId:
|
|
60
|
+
->thenCommand("o1", ShipOrder({orderId: o1}))
|
|
56
61
|
)
|
|
57
62
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
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:
|
|
9
|
-
->thenStateWithId("p1", {productId:
|
|
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:
|
|
14
|
-
->whenEvent(CatalogProductPriceChanged({productId:
|
|
15
|
-
->thenStateWithId("p1", {productId:
|
|
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
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
let pid = CatalogSpec.ProductId.make
|
|
3
|
+
open Ordering_Examples
|
|
5
4
|
|
|
6
5
|
describe("CancelOrder StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 8ec10480-8490-4004-a83c-1efa3d94695c
|
|
7
7
|
test("non-existent order returns OrderNotFound", () =>
|
|
8
8
|
givenEvents([])
|
|
9
|
-
->whenCmd(CancelOrder({orderId:
|
|
9
|
+
->whenCmd(CancelOrder({orderId: o1}))
|
|
10
10
|
->thenError(OrderNotFound)
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
+
// scenario-id: df6a7117-bfed-4393-ae46-a35b13339e32
|
|
13
14
|
test("placed order produces OrderCancelled with productIds carried over", () =>
|
|
14
|
-
givenEvents([OrderPlaced({productIds: [
|
|
15
|
-
->whenCmd(CancelOrder({orderId:
|
|
16
|
-
->thenEvent(OrderCancelled({orderId:
|
|
15
|
+
givenEvents([OrderPlaced({productIds: [p1, p2]})])
|
|
16
|
+
->whenCmd(CancelOrder({orderId: o1}))
|
|
17
|
+
->thenEvent(OrderCancelled({orderId: o1, productIds: [p1, p2]}))
|
|
17
18
|
)
|
|
18
19
|
|
|
20
|
+
// scenario-id: e639ee37-866c-45f9-ac7b-d2a902703578
|
|
19
21
|
test("already cancelled order produces no events (idempotent)", () =>
|
|
20
|
-
givenEvents([OrderPlaced({productIds: [
|
|
21
|
-
->whenCmd(CancelOrder({orderId:
|
|
22
|
+
givenEvents([OrderPlaced({productIds: [p1]}), OrderCancelled])
|
|
23
|
+
->whenCmd(CancelOrder({orderId: o1}))
|
|
22
24
|
->thenNoEvent
|
|
23
25
|
)
|
|
24
26
|
|
|
27
|
+
// scenario-id: eb8ae949-bd89-4b4c-9b4c-25992727e172
|
|
25
28
|
test("shipped order returns OrderAlreadyShipped", () =>
|
|
26
|
-
givenEvents([OrderPlaced({productIds: [
|
|
27
|
-
->whenCmd(CancelOrder({orderId:
|
|
29
|
+
givenEvents([OrderPlaced({productIds: [p1]}), OrderShipped])
|
|
30
|
+
->whenCmd(CancelOrder({orderId: o1}))
|
|
28
31
|
->thenError(OrderAlreadyShipped)
|
|
29
32
|
)
|
|
30
33
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
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:
|
|
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:
|
|
14
|
-
->whenCmd(ChangeAddress({customerId:
|
|
15
|
-
->thenEvent(AddressChanged({customerId:
|
|
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:
|
|
20
|
-
->whenCmd(ChangeAddress({customerId:
|
|
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:
|
|
26
|
-
->whenCmd(ChangeAddress({customerId:
|
|
29
|
+
givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
|
|
30
|
+
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
27
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
28
32
|
)
|
|
29
33
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
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:
|
|
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:
|
|
14
|
-
->whenCmd(ChangeEmail({customerId:
|
|
15
|
-
->thenEvent(EmailChanged({customerId:
|
|
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:
|
|
20
|
-
->whenCmd(ChangeEmail({customerId:
|
|
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:
|
|
26
|
-
->whenCmd(ChangeEmail({customerId:
|
|
29
|
+
givenEvents([CustomerRegistered({email: aliceEmail}), CustomerDeactivated])
|
|
30
|
+
->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
|
|
27
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
28
32
|
)
|
|
29
33
|
})
|