@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("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
|
})
|
|
@@ -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:
|
|
38
|
-
email:
|
|
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:
|
|
42
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
43
43
|
}]), {
|
|
44
44
|
TAG: "ChangeEmail",
|
|
45
|
-
customerId:
|
|
46
|
-
email:
|
|
45
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
46
|
+
email: Ordering_Examples$OrderingPlugin.aliceNewEmail
|
|
47
47
|
}), {
|
|
48
48
|
TAG: "EmailChanged",
|
|
49
|
-
customerId:
|
|
50
|
-
email:
|
|
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:
|
|
54
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
55
55
|
}]), {
|
|
56
56
|
TAG: "ChangeEmail",
|
|
57
|
-
customerId:
|
|
58
|
-
email:
|
|
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:
|
|
63
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
64
64
|
},
|
|
65
65
|
"CustomerDeactivated"
|
|
66
66
|
]), {
|
|
67
67
|
TAG: "ChangeEmail",
|
|
68
|
-
customerId:
|
|
69
|
-
email:
|
|
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 */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("DeactivateCustomer StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 1baa12f3-6e24-4660-8b23-aaabcf0de1e3
|
|
6
7
|
test("non-existent customer returns CustomerNotFound", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(DeactivateCustomer({customerId:
|
|
9
|
+
->whenCmd(DeactivateCustomer({customerId: c1}))
|
|
9
10
|
->thenError(CustomerNotFound)
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: 0e52a2a6-9424-474d-b3be-b6c3c8d12bbe
|
|
12
14
|
test("existing customer produces CustomerDeactivated", () =>
|
|
13
15
|
givenEvents([CustomerRegistered])
|
|
14
|
-
->whenCmd(DeactivateCustomer({customerId:
|
|
15
|
-
->thenEvent(CustomerDeactivated({customerId:
|
|
16
|
+
->whenCmd(DeactivateCustomer({customerId: c1}))
|
|
17
|
+
->thenEvent(CustomerDeactivated({customerId: c1}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: c4b62b80-ea23-4d1a-a937-68409af297ec
|
|
18
21
|
test("already deactivated customer produces no events (idempotent)", () =>
|
|
19
22
|
givenEvents([CustomerRegistered, CustomerDeactivated])
|
|
20
|
-
->whenCmd(DeactivateCustomer({customerId:
|
|
23
|
+
->whenCmd(DeactivateCustomer({customerId: c1}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
5
5
|
import * as DeactivateCustomer$OrderingPlugin from "../../../src/Customer/StateChange/DeactivateCustomer.res.mjs";
|
|
6
6
|
import * as DeactivateCustomer_Behavior$OrderingPlugin from "../../../src/Customer/StateChange/DeactivateCustomer_Behavior.res.mjs";
|
|
7
7
|
|
|
@@ -34,21 +34,21 @@ let thenError = include.thenError;
|
|
|
34
34
|
describe("DeactivateCustomer StateChangeSlice", () => {
|
|
35
35
|
test("non-existent customer returns CustomerNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
36
36
|
TAG: "DeactivateCustomer",
|
|
37
|
-
customerId:
|
|
37
|
+
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
38
38
|
}), "CustomerNotFound"));
|
|
39
39
|
test("existing customer produces CustomerDeactivated", () => thenEvent(whenCmd(givenEvents(["CustomerRegistered"]), {
|
|
40
40
|
TAG: "DeactivateCustomer",
|
|
41
|
-
customerId:
|
|
41
|
+
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
42
42
|
}), {
|
|
43
43
|
TAG: "CustomerDeactivated",
|
|
44
|
-
customerId:
|
|
44
|
+
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
45
45
|
}));
|
|
46
46
|
test("already deactivated customer produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([
|
|
47
47
|
"CustomerRegistered",
|
|
48
48
|
"CustomerDeactivated"
|
|
49
49
|
]), {
|
|
50
50
|
TAG: "DeactivateCustomer",
|
|
51
|
-
customerId:
|
|
51
|
+
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
52
52
|
})));
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -66,8 +66,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
66
66
|
|
|
67
67
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
68
68
|
|
|
69
|
-
let cid = CustomerId$OrderingPlugin.make;
|
|
70
|
-
|
|
71
69
|
export {
|
|
72
70
|
Spec,
|
|
73
71
|
describe,
|
|
@@ -83,6 +81,5 @@ export {
|
|
|
83
81
|
thenError,
|
|
84
82
|
thenAppendsConditionedOn,
|
|
85
83
|
thenAppendsConditionedOnExactly,
|
|
86
|
-
cid,
|
|
87
84
|
}
|
|
88
85
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("RegisterCustomer StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: fd616ac0-6ee3-47ef-b74f-212a7befac4a
|
|
6
7
|
test("empty event log produces CustomerRegistered", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(RegisterCustomer({customerId:
|
|
9
|
-
->thenEvent(
|
|
10
|
-
CustomerRegistered({customerId: cid("c1"), email: "alice@x.y", address: "123 Main"}),
|
|
11
|
-
)
|
|
9
|
+
->whenCmd(RegisterCustomer({customerId: c1, email: aliceEmail, address: mainStreet}))
|
|
10
|
+
->thenEvent(CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet}))
|
|
12
11
|
)
|
|
13
12
|
|
|
13
|
+
// scenario-id: d99db741-d659-456e-b84f-9af30a7d8a41
|
|
14
14
|
test("existing customer returns CustomerAlreadyRegistered", () =>
|
|
15
15
|
givenEvents([CustomerRegistered])
|
|
16
|
-
->whenCmd(RegisterCustomer({customerId:
|
|
16
|
+
->whenCmd(RegisterCustomer({customerId: c1, email: "bob@x.y", address: "456 Oak"}))
|
|
17
17
|
->thenError(CustomerAlreadyRegistered)
|
|
18
18
|
)
|
|
19
19
|
})
|
|
@@ -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 RegisterCustomer$OrderingPlugin from "../../../src/Customer/StateChange/RegisterCustomer.res.mjs";
|
|
5
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
6
6
|
import * as RegisterCustomer_Behavior$OrderingPlugin from "../../../src/Customer/StateChange/RegisterCustomer_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -32,18 +32,18 @@ let thenError = include.thenError;
|
|
|
32
32
|
describe("RegisterCustomer StateChangeSlice", () => {
|
|
33
33
|
test("empty event log produces CustomerRegistered", () => thenEvent(whenCmd(givenEvents([]), {
|
|
34
34
|
TAG: "RegisterCustomer",
|
|
35
|
-
customerId:
|
|
36
|
-
email:
|
|
37
|
-
address:
|
|
35
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
36
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
37
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
38
38
|
}), {
|
|
39
39
|
TAG: "CustomerRegistered",
|
|
40
|
-
customerId:
|
|
41
|
-
email:
|
|
42
|
-
address:
|
|
40
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
41
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
42
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
43
43
|
}));
|
|
44
44
|
test("existing customer returns CustomerAlreadyRegistered", () => thenError(whenCmd(givenEvents(["CustomerRegistered"]), {
|
|
45
45
|
TAG: "RegisterCustomer",
|
|
46
|
-
customerId:
|
|
46
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
47
47
|
email: "bob@x.y",
|
|
48
48
|
address: "456 Oak"
|
|
49
49
|
}), "CustomerAlreadyRegistered"));
|
|
@@ -65,8 +65,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
65
65
|
|
|
66
66
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
67
67
|
|
|
68
|
-
let cid = CustomerId$OrderingPlugin.make;
|
|
69
|
-
|
|
70
68
|
export {
|
|
71
69
|
Spec,
|
|
72
70
|
describe,
|
|
@@ -82,6 +80,5 @@ export {
|
|
|
82
80
|
thenError,
|
|
83
81
|
thenAppendsConditionedOn,
|
|
84
82
|
thenAppendsConditionedOnExactly,
|
|
85
|
-
cid,
|
|
86
83
|
}
|
|
87
84
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,49 +1,45 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("Customers StateViewSlice", () => {
|
|
6
|
+
// scenario-id: 56a23bc7-31ce-4e9c-a7f1-d523e75aefba
|
|
6
7
|
test("CustomerRegistered creates a row", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenEvent(
|
|
9
|
-
CustomerRegistered({customerId: cid("c1"), email: "alice@x.y", address: "123 Main"}),
|
|
10
|
-
)
|
|
9
|
+
->whenEvent(CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet}))
|
|
11
10
|
->thenStateWithId(
|
|
12
11
|
"c1",
|
|
13
|
-
{customerId:
|
|
12
|
+
{customerId: c1, email: aliceEmail, address: mainStreet, deactivated: false},
|
|
14
13
|
)
|
|
15
14
|
)
|
|
16
15
|
|
|
16
|
+
// scenario-id: 941f8ba9-3740-49f7-bb3a-e3aca90f10bf
|
|
17
17
|
test("EmailChanged updates the email", () =>
|
|
18
|
-
givenEvents([
|
|
19
|
-
|
|
20
|
-
])
|
|
21
|
-
->whenEvent(EmailChanged({customerId: cid("c1"), email: "alice2@x.y"}))
|
|
18
|
+
givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
|
|
19
|
+
->whenEvent(EmailChanged({customerId: c1, email: aliceNewEmail}))
|
|
22
20
|
->thenStateWithId(
|
|
23
21
|
"c1",
|
|
24
|
-
{customerId:
|
|
22
|
+
{customerId: c1, email: aliceNewEmail, address: mainStreet, deactivated: false},
|
|
25
23
|
)
|
|
26
24
|
)
|
|
27
25
|
|
|
26
|
+
// scenario-id: 778d3e61-2b9b-4f55-a4ca-57f5e476a09b
|
|
28
27
|
test("AddressChanged updates the address", () =>
|
|
29
|
-
givenEvents([
|
|
30
|
-
|
|
31
|
-
])
|
|
32
|
-
->whenEvent(AddressChanged({customerId: cid("c1"), address: "789 Pine"}))
|
|
28
|
+
givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
|
|
29
|
+
->whenEvent(AddressChanged({customerId: c1, address: pineStreet}))
|
|
33
30
|
->thenStateWithId(
|
|
34
31
|
"c1",
|
|
35
|
-
{customerId:
|
|
32
|
+
{customerId: c1, email: aliceEmail, address: pineStreet, deactivated: false},
|
|
36
33
|
)
|
|
37
34
|
)
|
|
38
35
|
|
|
36
|
+
// scenario-id: 783d84a5-3b4d-41df-bf3c-abaa9c717bd7
|
|
39
37
|
test("CustomerDeactivated sets deactivated flag", () =>
|
|
40
|
-
givenEvents([
|
|
41
|
-
|
|
42
|
-
])
|
|
43
|
-
->whenEvent(CustomerDeactivated({customerId: cid("c1")}))
|
|
38
|
+
givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
|
|
39
|
+
->whenEvent(CustomerDeactivated({customerId: c1}))
|
|
44
40
|
->thenStateWithId(
|
|
45
41
|
"c1",
|
|
46
|
-
{customerId:
|
|
42
|
+
{customerId: c1, email: aliceEmail, address: mainStreet, deactivated: true},
|
|
47
43
|
)
|
|
48
44
|
)
|
|
49
45
|
})
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Customers$OrderingPlugin from "../../../src/Customer/StateView/Customers.res.mjs";
|
|
4
4
|
import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
|
|
5
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";
|
|
6
7
|
import * as Customers_Projection$OrderingPlugin from "../../../src/Customer/StateView/Customers_Projection.res.mjs";
|
|
7
8
|
|
|
8
9
|
let include = Projection_GWT$ReventlessGwt.Make({
|
|
@@ -28,57 +29,57 @@ let thenStateWithId = include.thenStateWithId;
|
|
|
28
29
|
describe("Customers StateViewSlice", () => {
|
|
29
30
|
test("CustomerRegistered creates a row", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
|
|
30
31
|
TAG: "CustomerRegistered",
|
|
31
|
-
customerId:
|
|
32
|
-
email:
|
|
33
|
-
address:
|
|
32
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
33
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
34
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
34
35
|
}), "c1", {
|
|
35
|
-
customerId:
|
|
36
|
-
email:
|
|
37
|
-
address:
|
|
36
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
37
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
38
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet,
|
|
38
39
|
deactivated: false
|
|
39
40
|
}));
|
|
40
41
|
test("EmailChanged updates the email", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
41
42
|
TAG: "CustomerRegistered",
|
|
42
|
-
customerId:
|
|
43
|
-
email:
|
|
44
|
-
address:
|
|
43
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
44
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
45
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
45
46
|
}]), {
|
|
46
47
|
TAG: "EmailChanged",
|
|
47
|
-
customerId:
|
|
48
|
-
email:
|
|
48
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
49
|
+
email: Ordering_Examples$OrderingPlugin.aliceNewEmail
|
|
49
50
|
}), "c1", {
|
|
50
|
-
customerId:
|
|
51
|
-
email:
|
|
52
|
-
address:
|
|
51
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
52
|
+
email: Ordering_Examples$OrderingPlugin.aliceNewEmail,
|
|
53
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet,
|
|
53
54
|
deactivated: false
|
|
54
55
|
}));
|
|
55
56
|
test("AddressChanged updates the address", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
56
57
|
TAG: "CustomerRegistered",
|
|
57
|
-
customerId:
|
|
58
|
-
email:
|
|
59
|
-
address:
|
|
58
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
59
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
60
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
60
61
|
}]), {
|
|
61
62
|
TAG: "AddressChanged",
|
|
62
|
-
customerId:
|
|
63
|
-
address:
|
|
63
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
64
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet
|
|
64
65
|
}), "c1", {
|
|
65
|
-
customerId:
|
|
66
|
-
email:
|
|
67
|
-
address:
|
|
66
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
67
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
68
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet,
|
|
68
69
|
deactivated: false
|
|
69
70
|
}));
|
|
70
71
|
test("CustomerDeactivated sets deactivated flag", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
71
72
|
TAG: "CustomerRegistered",
|
|
72
|
-
customerId:
|
|
73
|
-
email:
|
|
74
|
-
address:
|
|
73
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
74
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
75
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
75
76
|
}]), {
|
|
76
77
|
TAG: "CustomerDeactivated",
|
|
77
|
-
customerId:
|
|
78
|
+
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
78
79
|
}), "c1", {
|
|
79
|
-
customerId:
|
|
80
|
-
email:
|
|
81
|
-
address:
|
|
80
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
81
|
+
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
82
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet,
|
|
82
83
|
deactivated: true
|
|
83
84
|
}));
|
|
84
85
|
});
|
|
@@ -105,8 +106,6 @@ let thenThrow = include.thenThrow;
|
|
|
105
106
|
|
|
106
107
|
let thenFail = include.thenFail;
|
|
107
108
|
|
|
108
|
-
let cid = CustomerId$OrderingPlugin.make;
|
|
109
|
-
|
|
110
109
|
export {
|
|
111
110
|
Spec,
|
|
112
111
|
describe,
|
|
@@ -124,6 +123,5 @@ export {
|
|
|
124
123
|
thenNoState,
|
|
125
124
|
thenThrow,
|
|
126
125
|
thenFail,
|
|
127
|
-
cid,
|
|
128
126
|
}
|
|
129
127
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// SyncCatalogProduct commands on Ordering's local shadow slice.
|
|
3
3
|
@@reventless.gwt
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
open Ordering_Examples
|
|
6
6
|
|
|
7
7
|
// `Mapping` is brought into scope by the PPX `open Products_Extension`; opening
|
|
8
8
|
// it surfaces the extension point's events and the delegate's commands.
|
|
9
9
|
open Mapping
|
|
10
10
|
|
|
11
11
|
describe("Products Extension delegate", () => {
|
|
12
|
+
// scenario-id: a4680fe3-1546-4669-9334-d8971e2b7162
|
|
12
13
|
test("ProductBecameAvailable issues SyncNewProduct", () =>
|
|
13
14
|
whenIncomingEvent(
|
|
14
|
-
ExtensionPoint.ProductBecameAvailable({productId:
|
|
15
|
-
)->thenPublishesCommand(
|
|
16
|
-
Delegate.SyncNewProduct({productId: pid("p1"), name: "Book", price: 9.99}),
|
|
17
|
-
)
|
|
15
|
+
ExtensionPoint.ProductBecameAvailable({productId: p1, name: "Book", price: 9.99}),
|
|
16
|
+
)->thenPublishesCommand(Delegate.SyncNewProduct({productId: p1, name: "Book", price: 9.99}))
|
|
18
17
|
)
|
|
19
18
|
|
|
19
|
+
// scenario-id: b8178540-b81e-4d82-9b93-9f2f68b968c6
|
|
20
20
|
test("ProductPriceChanged issues ChangeSyncedPrice", () =>
|
|
21
21
|
whenIncomingEvent(
|
|
22
|
-
ExtensionPoint.ProductPriceChanged({productId:
|
|
23
|
-
)->thenPublishesCommand(Delegate.ChangeSyncedPrice({productId:
|
|
22
|
+
ExtensionPoint.ProductPriceChanged({productId: p1, price: 7.5}),
|
|
23
|
+
)->thenPublishesCommand(Delegate.ChangeSyncedPrice({productId: p1, price: 7.5}))
|
|
24
24
|
)
|
|
25
25
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
4
|
-
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
5
4
|
import * as Delegate_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Delegate_GWT.res.mjs";
|
|
5
|
+
import * as Ordering_Examples$OrderingPlugin from "../Ordering_Examples.res.mjs";
|
|
6
6
|
import * as Products_Extension$OrderingPlugin from "../../src/Extension/Products_Extension.res.mjs";
|
|
7
7
|
import * as SyncCatalogProduct$OrderingPlugin from "../../src/CatalogProduct/StateChange/SyncCatalogProduct.res.mjs";
|
|
8
8
|
import * as Products_ExtensionPoint$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/Products_ExtensionPoint.res.mjs";
|
|
@@ -45,22 +45,22 @@ let thenPublishesCommand = include.thenPublishesCommand;
|
|
|
45
45
|
describe("Products Extension delegate", () => {
|
|
46
46
|
test("ProductBecameAvailable issues SyncNewProduct", undefined, () => thenPublishesCommand(whenIncomingEvent({
|
|
47
47
|
TAG: "ProductBecameAvailable",
|
|
48
|
-
productId:
|
|
48
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
49
49
|
name: "Book",
|
|
50
50
|
price: 9.99
|
|
51
51
|
}), {
|
|
52
52
|
TAG: "SyncNewProduct",
|
|
53
|
-
productId:
|
|
53
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
54
54
|
name: "Book",
|
|
55
55
|
price: 9.99
|
|
56
56
|
}));
|
|
57
57
|
test("ProductPriceChanged issues ChangeSyncedPrice", undefined, () => thenPublishesCommand(whenIncomingEvent({
|
|
58
58
|
TAG: "ProductPriceChanged",
|
|
59
|
-
productId:
|
|
59
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
60
60
|
price: 7.5
|
|
61
61
|
}), {
|
|
62
62
|
TAG: "ChangeSyncedPrice",
|
|
63
|
-
productId:
|
|
63
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
64
64
|
price: 7.5
|
|
65
65
|
}));
|
|
66
66
|
});
|
|
@@ -91,8 +91,6 @@ let thenHandlesDirectives = include.thenHandlesDirectives;
|
|
|
91
91
|
|
|
92
92
|
let thenHandlesNoDirective = include.thenHandlesNoDirective;
|
|
93
93
|
|
|
94
|
-
let pid = ProductId$CatalogSpec.make;
|
|
95
|
-
|
|
96
94
|
export {
|
|
97
95
|
encCmd,
|
|
98
96
|
encEpCmd,
|
|
@@ -111,6 +109,5 @@ export {
|
|
|
111
109
|
thenHandlesDirective,
|
|
112
110
|
thenHandlesDirectives,
|
|
113
111
|
thenHandlesNoDirective,
|
|
114
|
-
pid,
|
|
115
112
|
}
|
|
116
113
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
// into one public per-product event each (one-to-many fan-out).
|
|
3
3
|
@@reventless.gwt
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
let oid = OrderId.make
|
|
7
|
-
let pid = CatalogSpec.ProductId.make
|
|
5
|
+
open Ordering_Examples
|
|
8
6
|
|
|
9
7
|
describe("Orders ExtensionPoint mapping — per-product fan-out", () => {
|
|
8
|
+
// scenario-id: 1a9119c4-48fe-4f5f-b357-a3326dcd4ae9
|
|
10
9
|
test("OrderPlaced fans out to one ItemOrdered per product", () =>
|
|
11
10
|
whenDelegateEvent(
|
|
12
11
|
Delegate.OrderPlaced({
|
|
13
|
-
orderId:
|
|
14
|
-
customerId:
|
|
15
|
-
productIds: [
|
|
12
|
+
orderId: o1,
|
|
13
|
+
customerId: c1,
|
|
14
|
+
productIds: [p1, p2],
|
|
16
15
|
}),
|
|
17
16
|
)->thenPublishesEvents([
|
|
18
17
|
("p1", ExtensionPoint.ItemOrdered({productId: "p1", orderId: "o1", customerId: "c1"})),
|
|
@@ -20,9 +19,10 @@ describe("Orders ExtensionPoint mapping — per-product fan-out", () => {
|
|
|
20
19
|
])
|
|
21
20
|
)
|
|
22
21
|
|
|
22
|
+
// scenario-id: c8a2bb56-33d0-4f1d-a9f0-220e4e04f755
|
|
23
23
|
test("OrderCancelled fans out to one ItemOrderCancelled per product", () =>
|
|
24
24
|
whenDelegateEvent(
|
|
25
|
-
Delegate.OrderCancelled({orderId:
|
|
25
|
+
Delegate.OrderCancelled({orderId: o1, productIds: [p1, p2]}),
|
|
26
26
|
)->thenPublishesEvents([
|
|
27
27
|
("p1", ExtensionPoint.ItemOrderCancelled({productId: "p1", orderId: "o1"})),
|
|
28
28
|
("p2", ExtensionPoint.ItemOrderCancelled({productId: "p2", orderId: "o1"})),
|