@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.301 → 1.0.0-alpha.303
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 +15 -0
- package/lib/bs/.compiler.log +2 -2
- 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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Decision-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/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress.ast +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress.res +4 -4
- package/lib/bs/src/Customer/StateChange/ChangeAddress.res.mjs +5 -4
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmj +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.ast +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.res +4 -3
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.res.mjs +8 -4
- 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.ast +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail.res +4 -4
- package/lib/bs/src/Customer/StateChange/ChangeEmail.res.mjs +5 -4
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmj +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.ast +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.res +8 -3
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.res.mjs +8 -4
- 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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Decision-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.ast +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer.res +12 -2
- package/lib/bs/src/Customer/StateChange/RegisterCustomer.res.mjs +5 -4
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.ast +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.res +1 -1
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.res.mjs +8 -2
- 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.ast +0 -0
- package/lib/bs/src/Customer/StateView/Customers.res +3 -3
- package/lib/bs/src/Customer/StateView/Customers.res.mjs +5 -4
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmj +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection.ast +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection.res +17 -3
- package/lib/bs/src/Customer/StateView/Customers_Projection.res.mjs +6 -5
- 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/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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder_Decision-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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder_Decision-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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder_Decision-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/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- 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 +4 -4
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +16 -4
- 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 +4 -4
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +16 -4
- 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/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 +3 -1
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -2
- 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 +14 -6
- package/lib/bs/tests/Customer/StateView/Customers_GWT.res.mjs +40 -10
- 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/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
- 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/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- 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/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- 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/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -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/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_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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_Decision-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/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress.ast +0 -0
- package/lib/ocaml/ChangeAddress.res +4 -4
- package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_Decision.ast +0 -0
- package/lib/ocaml/ChangeAddress_Decision.res +4 -3
- 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 +4 -4
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail.ast +0 -0
- package/lib/ocaml/ChangeEmail.res +4 -4
- package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_Decision.ast +0 -0
- package/lib/ocaml/ChangeEmail_Decision.res +8 -3
- 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 +4 -4
- package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers.ast +0 -0
- package/lib/ocaml/Customers.res +3 -3
- 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 +14 -6
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers_Projection.ast +0 -0
- package/lib/ocaml/Customers_Projection.res +17 -3
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_Decision-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/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -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_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
- 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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_Decision-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/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/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer.ast +0 -0
- package/lib/ocaml/RegisterCustomer.res +12 -2
- package/lib/ocaml/RegisterCustomer_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_Decision-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_Decision.ast +0 -0
- package/lib/ocaml/RegisterCustomer_Decision.res +1 -1
- 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 +3 -1
- 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_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_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_Decision-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/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_Decision-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_Decision-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/package.json +7 -7
- package/src/Customer/StateChange/ChangeAddress.res +4 -4
- package/src/Customer/StateChange/ChangeAddress.res.mjs +5 -4
- package/src/Customer/StateChange/ChangeAddress_Decision.res +4 -3
- package/src/Customer/StateChange/ChangeAddress_Decision.res.mjs +8 -4
- package/src/Customer/StateChange/ChangeEmail.res +4 -4
- package/src/Customer/StateChange/ChangeEmail.res.mjs +5 -4
- package/src/Customer/StateChange/ChangeEmail_Decision.res +8 -3
- package/src/Customer/StateChange/ChangeEmail_Decision.res.mjs +8 -4
- package/src/Customer/StateChange/RegisterCustomer.res +12 -2
- package/src/Customer/StateChange/RegisterCustomer.res.mjs +5 -4
- package/src/Customer/StateChange/RegisterCustomer_Decision.res +1 -1
- package/src/Customer/StateChange/RegisterCustomer_Decision.res.mjs +8 -2
- package/src/Customer/StateView/Customers.res +3 -3
- package/src/Customer/StateView/Customers.res.mjs +5 -4
- package/src/Customer/StateView/Customers_Projection.res +17 -3
- package/src/Customer/StateView/Customers_Projection.res.mjs +6 -5
- package/tests/Customer/StateChange/ChangeAddress_GWT.res +4 -4
- package/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +16 -4
- package/tests/Customer/StateChange/ChangeEmail_GWT.res +4 -4
- package/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +16 -4
- package/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -1
- package/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -2
- package/tests/Customer/StateView/Customers_GWT.res +14 -6
- package/tests/Customer/StateView/Customers_GWT.res.mjs +40 -10
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,21 +12,21 @@ describe("ChangeAddress StateChangeSlice", () => {
|
|
|
12
12
|
|
|
13
13
|
// scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
|
|
14
14
|
test("active customer produces AddressChanged", () =>
|
|
15
|
-
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
15
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)})])
|
|
16
16
|
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
17
|
-
->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
|
|
17
|
+
->thenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
// scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
|
|
21
21
|
test("same address produces no events (idempotent)", () =>
|
|
22
|
-
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
22
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)})])
|
|
23
23
|
->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
|
|
24
24
|
->thenNoEvent
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
// scenario-id: 909078a3-adc9-479e-85cc-88549075d963
|
|
28
28
|
test("deactivated customer returns CustomerAlreadyDeactivated", () =>
|
|
29
|
-
givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
|
|
29
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)}), CustomerDeactivated])
|
|
30
30
|
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
31
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
32
32
|
)
|
|
@@ -40,7 +40,10 @@ describe("ChangeAddress StateChangeSlice", () => {
|
|
|
40
40
|
}), "CustomerNotFound"));
|
|
41
41
|
test("active customer produces AddressChanged", () => thenEvent(whenCmd(givenEvents([{
|
|
42
42
|
TAG: "CustomerRegistered",
|
|
43
|
-
address:
|
|
43
|
+
address: {
|
|
44
|
+
TAG: "Value",
|
|
45
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
46
|
+
}
|
|
44
47
|
}]), {
|
|
45
48
|
TAG: "ChangeAddress",
|
|
46
49
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
@@ -48,11 +51,17 @@ describe("ChangeAddress StateChangeSlice", () => {
|
|
|
48
51
|
}), {
|
|
49
52
|
TAG: "AddressChanged",
|
|
50
53
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
51
|
-
address:
|
|
54
|
+
address: {
|
|
55
|
+
TAG: "Value",
|
|
56
|
+
_0: Ordering_Examples$OrderingPlugin.pineStreet
|
|
57
|
+
}
|
|
52
58
|
}));
|
|
53
59
|
test("same address produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
54
60
|
TAG: "CustomerRegistered",
|
|
55
|
-
address:
|
|
61
|
+
address: {
|
|
62
|
+
TAG: "Value",
|
|
63
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
64
|
+
}
|
|
56
65
|
}]), {
|
|
57
66
|
TAG: "ChangeAddress",
|
|
58
67
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
@@ -61,7 +70,10 @@ describe("ChangeAddress StateChangeSlice", () => {
|
|
|
61
70
|
test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
|
|
62
71
|
{
|
|
63
72
|
TAG: "CustomerRegistered",
|
|
64
|
-
address:
|
|
73
|
+
address: {
|
|
74
|
+
TAG: "Value",
|
|
75
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
76
|
+
}
|
|
65
77
|
},
|
|
66
78
|
"CustomerDeactivated"
|
|
67
79
|
]), {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,21 +12,21 @@ describe("ChangeEmail StateChangeSlice", () => {
|
|
|
12
12
|
|
|
13
13
|
// scenario-id: c772aca9-7aa7-4ee0-bb3e-be1a2dc46967
|
|
14
14
|
test("active customer produces EmailChanged", () =>
|
|
15
|
-
givenEvents([CustomerRegistered({email: aliceEmail})])
|
|
15
|
+
givenEvents([CustomerRegistered({email: Value(aliceEmail)})])
|
|
16
16
|
->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
|
|
17
|
-
->thenEvent(EmailChanged({customerId: c1, email: aliceNewEmail}))
|
|
17
|
+
->thenEvent(EmailChanged({customerId: c1, email: Value(aliceNewEmail)}))
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
// scenario-id: 659398db-0145-4e2f-8087-905a1ff03af3
|
|
21
21
|
test("same email produces no events (idempotent)", () =>
|
|
22
|
-
givenEvents([CustomerRegistered({email: aliceEmail})])
|
|
22
|
+
givenEvents([CustomerRegistered({email: Value(aliceEmail)})])
|
|
23
23
|
->whenCmd(ChangeEmail({customerId: c1, email: aliceEmail}))
|
|
24
24
|
->thenNoEvent
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
// scenario-id: c868f35b-ea20-438e-947d-58568db6adbd
|
|
28
28
|
test("deactivated customer returns CustomerAlreadyDeactivated", () =>
|
|
29
|
-
givenEvents([CustomerRegistered({email: aliceEmail}), CustomerDeactivated])
|
|
29
|
+
givenEvents([CustomerRegistered({email: Value(aliceEmail)}), CustomerDeactivated])
|
|
30
30
|
->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
|
|
31
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
32
32
|
)
|
|
@@ -40,7 +40,10 @@ describe("ChangeEmail StateChangeSlice", () => {
|
|
|
40
40
|
}), "CustomerNotFound"));
|
|
41
41
|
test("active customer produces EmailChanged", () => thenEvent(whenCmd(givenEvents([{
|
|
42
42
|
TAG: "CustomerRegistered",
|
|
43
|
-
email:
|
|
43
|
+
email: {
|
|
44
|
+
TAG: "Value",
|
|
45
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
46
|
+
}
|
|
44
47
|
}]), {
|
|
45
48
|
TAG: "ChangeEmail",
|
|
46
49
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
@@ -48,11 +51,17 @@ describe("ChangeEmail StateChangeSlice", () => {
|
|
|
48
51
|
}), {
|
|
49
52
|
TAG: "EmailChanged",
|
|
50
53
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
51
|
-
email:
|
|
54
|
+
email: {
|
|
55
|
+
TAG: "Value",
|
|
56
|
+
_0: Ordering_Examples$OrderingPlugin.aliceNewEmail
|
|
57
|
+
}
|
|
52
58
|
}));
|
|
53
59
|
test("same email produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
54
60
|
TAG: "CustomerRegistered",
|
|
55
|
-
email:
|
|
61
|
+
email: {
|
|
62
|
+
TAG: "Value",
|
|
63
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
64
|
+
}
|
|
56
65
|
}]), {
|
|
57
66
|
TAG: "ChangeEmail",
|
|
58
67
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
@@ -61,7 +70,10 @@ describe("ChangeEmail StateChangeSlice", () => {
|
|
|
61
70
|
test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
|
|
62
71
|
{
|
|
63
72
|
TAG: "CustomerRegistered",
|
|
64
|
-
email:
|
|
73
|
+
email: {
|
|
74
|
+
TAG: "Value",
|
|
75
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
76
|
+
}
|
|
65
77
|
},
|
|
66
78
|
"CustomerDeactivated"
|
|
67
79
|
]), {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,9 @@ describe("RegisterCustomer StateChangeSlice", () => {
|
|
|
7
7
|
test("empty event log produces CustomerRegistered", () =>
|
|
8
8
|
givenEvents([])
|
|
9
9
|
->whenCmd(RegisterCustomer({customerId: c1, email: aliceEmail, address: mainStreet}))
|
|
10
|
-
->thenEvent(
|
|
10
|
+
->thenEvent(
|
|
11
|
+
CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
|
|
12
|
+
)
|
|
11
13
|
)
|
|
12
14
|
|
|
13
15
|
// scenario-id: d99db741-d659-456e-b84f-9af30a7d8a41
|
|
@@ -39,8 +39,14 @@ describe("RegisterCustomer StateChangeSlice", () => {
|
|
|
39
39
|
}), {
|
|
40
40
|
TAG: "CustomerRegistered",
|
|
41
41
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
42
|
-
email:
|
|
43
|
-
|
|
42
|
+
email: {
|
|
43
|
+
TAG: "Value",
|
|
44
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
45
|
+
},
|
|
46
|
+
address: {
|
|
47
|
+
TAG: "Value",
|
|
48
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
49
|
+
}
|
|
44
50
|
}));
|
|
45
51
|
test("existing customer returns CustomerAlreadyRegistered", () => thenError(whenCmd(givenEvents(["CustomerRegistered"]), {
|
|
46
52
|
TAG: "RegisterCustomer",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,9 @@ describe("Customers StateViewSlice", () => {
|
|
|
6
6
|
// scenario-id: 56a23bc7-31ce-4e9c-a7f1-d523e75aefba
|
|
7
7
|
test("CustomerRegistered creates a row", () =>
|
|
8
8
|
givenEvents([])
|
|
9
|
-
->whenEvent(
|
|
9
|
+
->whenEvent(
|
|
10
|
+
CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
|
|
11
|
+
)
|
|
10
12
|
->thenStateWithId(
|
|
11
13
|
"c1",
|
|
12
14
|
{customerId: c1, email: aliceEmail, address: mainStreet, deactivated: false},
|
|
@@ -15,8 +17,10 @@ describe("Customers StateViewSlice", () => {
|
|
|
15
17
|
|
|
16
18
|
// scenario-id: 941f8ba9-3740-49f7-bb3a-e3aca90f10bf
|
|
17
19
|
test("EmailChanged updates the email", () =>
|
|
18
|
-
givenEvents([
|
|
19
|
-
|
|
20
|
+
givenEvents([
|
|
21
|
+
CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
|
|
22
|
+
])
|
|
23
|
+
->whenEvent(EmailChanged({customerId: c1, email: Value(aliceNewEmail)}))
|
|
20
24
|
->thenStateWithId(
|
|
21
25
|
"c1",
|
|
22
26
|
{customerId: c1, email: aliceNewEmail, address: mainStreet, deactivated: false},
|
|
@@ -25,8 +29,10 @@ describe("Customers StateViewSlice", () => {
|
|
|
25
29
|
|
|
26
30
|
// scenario-id: 778d3e61-2b9b-4f55-a4ca-57f5e476a09b
|
|
27
31
|
test("AddressChanged updates the address", () =>
|
|
28
|
-
givenEvents([
|
|
29
|
-
|
|
32
|
+
givenEvents([
|
|
33
|
+
CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
|
|
34
|
+
])
|
|
35
|
+
->whenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
|
|
30
36
|
->thenStateWithId(
|
|
31
37
|
"c1",
|
|
32
38
|
{customerId: c1, email: aliceEmail, address: pineStreet, deactivated: false},
|
|
@@ -35,7 +41,9 @@ describe("Customers StateViewSlice", () => {
|
|
|
35
41
|
|
|
36
42
|
// scenario-id: 783d84a5-3b4d-41df-bf3c-abaa9c717bd7
|
|
37
43
|
test("CustomerDeactivated sets deactivated flag", () =>
|
|
38
|
-
givenEvents([
|
|
44
|
+
givenEvents([
|
|
45
|
+
CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
|
|
46
|
+
])
|
|
39
47
|
->whenEvent(CustomerDeactivated({customerId: c1}))
|
|
40
48
|
->thenStateWithId(
|
|
41
49
|
"c1",
|
|
@@ -30,8 +30,14 @@ describe("Customers StateViewSlice", () => {
|
|
|
30
30
|
test("CustomerRegistered creates a row", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
|
|
31
31
|
TAG: "CustomerRegistered",
|
|
32
32
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
33
|
-
email:
|
|
34
|
-
|
|
33
|
+
email: {
|
|
34
|
+
TAG: "Value",
|
|
35
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
36
|
+
},
|
|
37
|
+
address: {
|
|
38
|
+
TAG: "Value",
|
|
39
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
40
|
+
}
|
|
35
41
|
}), "c1", {
|
|
36
42
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
37
43
|
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
@@ -41,12 +47,21 @@ describe("Customers StateViewSlice", () => {
|
|
|
41
47
|
test("EmailChanged updates the email", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
42
48
|
TAG: "CustomerRegistered",
|
|
43
49
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
44
|
-
email:
|
|
45
|
-
|
|
50
|
+
email: {
|
|
51
|
+
TAG: "Value",
|
|
52
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
53
|
+
},
|
|
54
|
+
address: {
|
|
55
|
+
TAG: "Value",
|
|
56
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
57
|
+
}
|
|
46
58
|
}]), {
|
|
47
59
|
TAG: "EmailChanged",
|
|
48
60
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
49
|
-
email:
|
|
61
|
+
email: {
|
|
62
|
+
TAG: "Value",
|
|
63
|
+
_0: Ordering_Examples$OrderingPlugin.aliceNewEmail
|
|
64
|
+
}
|
|
50
65
|
}), "c1", {
|
|
51
66
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
52
67
|
email: Ordering_Examples$OrderingPlugin.aliceNewEmail,
|
|
@@ -56,12 +71,21 @@ describe("Customers StateViewSlice", () => {
|
|
|
56
71
|
test("AddressChanged updates the address", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
57
72
|
TAG: "CustomerRegistered",
|
|
58
73
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
59
|
-
email:
|
|
60
|
-
|
|
74
|
+
email: {
|
|
75
|
+
TAG: "Value",
|
|
76
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
77
|
+
},
|
|
78
|
+
address: {
|
|
79
|
+
TAG: "Value",
|
|
80
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
81
|
+
}
|
|
61
82
|
}]), {
|
|
62
83
|
TAG: "AddressChanged",
|
|
63
84
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
64
|
-
address:
|
|
85
|
+
address: {
|
|
86
|
+
TAG: "Value",
|
|
87
|
+
_0: Ordering_Examples$OrderingPlugin.pineStreet
|
|
88
|
+
}
|
|
65
89
|
}), "c1", {
|
|
66
90
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
67
91
|
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
@@ -71,8 +95,14 @@ describe("Customers StateViewSlice", () => {
|
|
|
71
95
|
test("CustomerDeactivated sets deactivated flag", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
72
96
|
TAG: "CustomerRegistered",
|
|
73
97
|
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
74
|
-
email:
|
|
75
|
-
|
|
98
|
+
email: {
|
|
99
|
+
TAG: "Value",
|
|
100
|
+
_0: Ordering_Examples$OrderingPlugin.aliceEmail
|
|
101
|
+
},
|
|
102
|
+
address: {
|
|
103
|
+
TAG: "Value",
|
|
104
|
+
_0: Ordering_Examples$OrderingPlugin.mainStreet
|
|
105
|
+
}
|
|
76
106
|
}]), {
|
|
77
107
|
TAG: "CustomerDeactivated",
|
|
78
108
|
customerId: Ordering_Examples$OrderingPlugin.c1
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1793351463162)
|
|
2
|
+
#Done(1793351466851)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
@schema
|
|
6
6
|
type consumedEvent =
|
|
7
|
-
| CustomerRegistered({address: string})
|
|
8
|
-
| AddressChanged({address: string})
|
|
7
|
+
| CustomerRegistered({@pii address: string})
|
|
8
|
+
| AddressChanged({@pii address: string})
|
|
9
9
|
| CustomerDeactivated
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
|
-
type command = ChangeAddress({customerId: CustomerId.t, address: string})
|
|
12
|
+
type command = ChangeAddress({customerId: CustomerId.t, @pii("customerId") address: string})
|
|
13
13
|
|
|
14
14
|
@schema
|
|
15
15
|
type error =
|
|
@@ -17,4 +17,4 @@ type error =
|
|
|
17
17
|
| CustomerAlreadyDeactivated
|
|
18
18
|
|
|
19
19
|
@schema
|
|
20
|
-
type event = AddressChanged({customerId: CustomerId.t, address: string})
|
|
20
|
+
type event = AddressChanged({customerId: CustomerId.t, @pii("customerId") address: string})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,9 +9,10 @@ let evolve = (state, event) =>
|
|
|
9
9
|
| CustomerRegistered({address}) => {
|
|
10
10
|
exists: true,
|
|
11
11
|
deactivated: false,
|
|
12
|
-
|
|
12
|
+
// An erased address matches no address presented later.
|
|
13
|
+
currentAddress: address->Reventless.Pii.getOr(""),
|
|
13
14
|
}
|
|
14
|
-
| AddressChanged({address}) => {...state, currentAddress: address}
|
|
15
|
+
| AddressChanged({address}) => {...state, currentAddress: address->Reventless.Pii.getOr("")}
|
|
15
16
|
| CustomerDeactivated => {...state, deactivated: true}
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -25,6 +26,6 @@ let decide = (state, command) =>
|
|
|
25
26
|
} else if address == state.currentAddress {
|
|
26
27
|
Ok([]) // idempotent — address unchanged
|
|
27
28
|
} else {
|
|
28
|
-
Ok([AddressChanged({customerId, address})])
|
|
29
|
+
Ok([AddressChanged({customerId, address: Value(address)})])
|
|
29
30
|
}
|
|
30
31
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,21 +12,21 @@ describe("ChangeAddress StateChangeSlice", () => {
|
|
|
12
12
|
|
|
13
13
|
// scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
|
|
14
14
|
test("active customer produces AddressChanged", () =>
|
|
15
|
-
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
15
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)})])
|
|
16
16
|
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
17
|
-
->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
|
|
17
|
+
->thenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
// scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
|
|
21
21
|
test("same address produces no events (idempotent)", () =>
|
|
22
|
-
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
22
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)})])
|
|
23
23
|
->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
|
|
24
24
|
->thenNoEvent
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
// scenario-id: 909078a3-adc9-479e-85cc-88549075d963
|
|
28
28
|
test("deactivated customer returns CustomerAlreadyDeactivated", () =>
|
|
29
|
-
givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
|
|
29
|
+
givenEvents([CustomerRegistered({address: Value(mainStreet)}), CustomerDeactivated])
|
|
30
30
|
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
31
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
32
32
|
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
@schema
|
|
6
6
|
type consumedEvent =
|
|
7
|
-
| CustomerRegistered({email: string})
|
|
8
|
-
| EmailChanged({email: string})
|
|
7
|
+
| CustomerRegistered({@pii email: string})
|
|
8
|
+
| EmailChanged({@pii email: string})
|
|
9
9
|
| CustomerDeactivated
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
|
-
type command = ChangeEmail({customerId: CustomerId.t, email: string})
|
|
12
|
+
type command = ChangeEmail({customerId: CustomerId.t, @pii("customerId") email: string})
|
|
13
13
|
|
|
14
14
|
@schema
|
|
15
15
|
type error =
|
|
@@ -17,4 +17,4 @@ type error =
|
|
|
17
17
|
| CustomerAlreadyDeactivated
|
|
18
18
|
|
|
19
19
|
@schema
|
|
20
|
-
type event = EmailChanged({customerId: CustomerId.t, email: string})
|
|
20
|
+
type event = EmailChanged({customerId: CustomerId.t, @pii("customerId") email: string})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|