@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.239 → 1.0.0-alpha.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -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.ast +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct.res +2 -9
- 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/CatalogProduct/StateView/AvailableProducts_Projection.ast +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection.res +1 -2
- 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.ast +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer.res +3 -10
- 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/ExtensionPoint/Orders_ExtensionPointMapping.ast +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping.res +12 -12
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel.ast +0 -0
- package/lib/bs/src/LifecycleModel.res +21 -3
- 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.ast +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation.res +1 -2
- 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/OutboundTranslation/SendOrderConfirmation_Translation.ast +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation.res +1 -4
- 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.ast +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder.res +7 -7
- 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.ast +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder.res +5 -1
- 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/PlaceOrder_Behavior.ast +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior.res +2 -1
- 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.ast +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder.res +1 -2
- 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/src/Plugin.ast +0 -0
- package/lib/bs/src/Plugin.res +109 -18
- 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/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- 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 -9
- 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 +3 -9
- 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 +1 -3
- 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/PlaceOrder_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT.res +2 -8
- 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/bs/tests/Order/StateView/Orders_GWT.ast +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT.res +3 -9
- 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/AvailableProducts_Projection.ast +0 -0
- package/lib/ocaml/AvailableProducts_Projection.res +1 -2
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder.ast +0 -0
- package/lib/ocaml/CancelOrder.res +7 -7
- 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/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/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/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 +3 -9
- 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/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel.ast +0 -0
- package/lib/ocaml/LifecycleModel.res +21 -3
- 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.ast +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping.res +12 -12
- 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_GWT.ast +0 -0
- package/lib/ocaml/Orders_GWT.res +3 -9
- 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.ast +0 -0
- package/lib/ocaml/PlaceOrder.res +5 -1
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_Behavior.ast +0 -0
- package/lib/ocaml/PlaceOrder_Behavior.res +2 -1
- 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 +2 -8
- package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Plugin.ast +0 -0
- package/lib/ocaml/Plugin.res +109 -18
- 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 +1 -3
- 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 +3 -10
- 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 +3 -9
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation.ast +0 -0
- package/lib/ocaml/SendOrderConfirmation.res +1 -2
- 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/SendOrderConfirmation_Translation.ast +0 -0
- package/lib/ocaml/SendOrderConfirmation_Translation.res +1 -4
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder.ast +0 -0
- package/lib/ocaml/ShipOrder.res +1 -2
- 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/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct.ast +0 -0
- package/lib/ocaml/SyncCatalogProduct.res +2 -9
- 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/package.json +8 -8
- package/src/CatalogProduct/StateChange/SyncCatalogProduct.res +2 -9
- package/src/CatalogProduct/StateView/AvailableProducts_Projection.res +1 -2
- package/src/Customer/StateChange/RegisterCustomer.res +3 -10
- package/src/ExtensionPoint/Orders_ExtensionPointMapping.res +12 -12
- package/src/LifecycleModel.res +21 -3
- package/src/Order/OutboundTranslation/SendOrderConfirmation.res +1 -2
- package/src/Order/OutboundTranslation/SendOrderConfirmation_Translation.res +1 -4
- package/src/Order/StateChange/CancelOrder.res +7 -7
- package/src/Order/StateChange/PlaceOrder.res +5 -1
- package/src/Order/StateChange/PlaceOrder_Behavior.res +2 -1
- package/src/Order/StateChange/ShipOrder.res +1 -2
- package/src/Plugin.res +109 -18
- package/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -9
- package/tests/Customer/StateView/Customers_GWT.res +3 -9
- package/tests/Extension/Products_Extension_GWT.res +1 -3
- package/tests/Order/StateChange/PlaceOrder_GWT.res +2 -8
- package/tests/Order/StateView/Orders_GWT.res +3 -9
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,19 +3,13 @@
|
|
|
3
3
|
describe("RegisterCustomer StateChangeSlice", () => {
|
|
4
4
|
test("empty event log produces CustomerRegistered", () =>
|
|
5
5
|
givenEvents([])
|
|
6
|
-
->whenCmd(
|
|
7
|
-
|
|
8
|
-
)
|
|
9
|
-
->thenEvent(
|
|
10
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
11
|
-
)
|
|
6
|
+
->whenCmd(RegisterCustomer({customerId: "c1", email: "alice@x.y", address: "123 Main"}))
|
|
7
|
+
->thenEvent(CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}))
|
|
12
8
|
)
|
|
13
9
|
|
|
14
10
|
test("existing customer returns CustomerAlreadyRegistered", () =>
|
|
15
11
|
givenEvents([CustomerRegistered])
|
|
16
|
-
->whenCmd(
|
|
17
|
-
RegisterCustomer({customerId: "c1", email: "bob@x.y", address: "456 Oak"}),
|
|
18
|
-
)
|
|
12
|
+
->whenCmd(RegisterCustomer({customerId: "c1", email: "bob@x.y", address: "456 Oak"}))
|
|
19
13
|
->thenError(CustomerAlreadyRegistered)
|
|
20
14
|
)
|
|
21
15
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11,9 +11,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
11
11
|
)
|
|
12
12
|
|
|
13
13
|
test("EmailChanged updates the email", () =>
|
|
14
|
-
givenEvents([
|
|
15
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
16
|
-
])
|
|
14
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
17
15
|
->whenEvent(EmailChanged({customerId: "c1", email: "alice2@x.y"}))
|
|
18
16
|
->thenStateWithId(
|
|
19
17
|
"c1",
|
|
@@ -22,9 +20,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
22
20
|
)
|
|
23
21
|
|
|
24
22
|
test("AddressChanged updates the address", () =>
|
|
25
|
-
givenEvents([
|
|
26
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
27
|
-
])
|
|
23
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
28
24
|
->whenEvent(AddressChanged({customerId: "c1", address: "789 Pine"}))
|
|
29
25
|
->thenStateWithId(
|
|
30
26
|
"c1",
|
|
@@ -33,9 +29,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
33
29
|
)
|
|
34
30
|
|
|
35
31
|
test("CustomerDeactivated sets deactivated flag", () =>
|
|
36
|
-
givenEvents([
|
|
37
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
38
|
-
])
|
|
32
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
39
33
|
->whenEvent(CustomerDeactivated({customerId: "c1"}))
|
|
40
34
|
->thenStateWithId(
|
|
41
35
|
"c1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -10,9 +10,7 @@ describe("Products Extension delegate", () => {
|
|
|
10
10
|
test("ProductBecameAvailable issues SyncNewProduct", () =>
|
|
11
11
|
whenIncomingEvent(
|
|
12
12
|
ExtensionPoint.ProductBecameAvailable({productId: "p1", name: "Book", price: 9.99}),
|
|
13
|
-
)->thenPublishesCommand(
|
|
14
|
-
Delegate.SyncNewProduct({productId: "p1", name: "Book", price: 9.99}),
|
|
15
|
-
)
|
|
13
|
+
)->thenPublishesCommand(Delegate.SyncNewProduct({productId: "p1", name: "Book", price: 9.99}))
|
|
16
14
|
)
|
|
17
15
|
|
|
18
16
|
test("ProductPriceChanged issues ChangeSyncedPrice", () =>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -20,19 +20,13 @@ describe("PlaceOrder StateChangeSlice", () => {
|
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
test("re-placing the same orderId returns OrderAlreadyPlaced", () =>
|
|
23
|
-
givenEvents([
|
|
24
|
-
CatalogProductSynced({productId: "p1"}),
|
|
25
|
-
OrderPlaced({orderId: "o1"}),
|
|
26
|
-
])
|
|
23
|
+
givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o1"})])
|
|
27
24
|
->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
28
25
|
->thenError(OrderAlreadyPlaced)
|
|
29
26
|
)
|
|
30
27
|
|
|
31
28
|
test("a sibling OrderPlaced for a different orderId does not block placement", () =>
|
|
32
|
-
givenEvents([
|
|
33
|
-
CatalogProductSynced({productId: "p1"}),
|
|
34
|
-
OrderPlaced({orderId: "o2"}),
|
|
35
|
-
])
|
|
29
|
+
givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o2"})])
|
|
36
30
|
->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
37
31
|
->thenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
38
32
|
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
describe("Orders StateViewSlice", () => {
|
|
4
4
|
test("OrderPlaced creates a row with status Placed", () =>
|
|
5
5
|
givenEvents([])
|
|
6
|
-
->whenEvent(
|
|
7
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}),
|
|
8
|
-
)
|
|
6
|
+
->whenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}))
|
|
9
7
|
->thenStateWithId(
|
|
10
8
|
"o1",
|
|
11
9
|
{orderId: "o1", customerId: "c1", productIds: ["p1", "p2"], lifecycle: Placed},
|
|
@@ -13,9 +11,7 @@ describe("Orders StateViewSlice", () => {
|
|
|
13
11
|
)
|
|
14
12
|
|
|
15
13
|
test("OrderShipped updates status to Shipped", () =>
|
|
16
|
-
givenEvents([
|
|
17
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
|
|
18
|
-
])
|
|
14
|
+
givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
|
|
19
15
|
->whenEvent(OrderShipped({orderId: "o1"}))
|
|
20
16
|
->thenStateWithId(
|
|
21
17
|
"o1",
|
|
@@ -24,9 +20,7 @@ describe("Orders StateViewSlice", () => {
|
|
|
24
20
|
)
|
|
25
21
|
|
|
26
22
|
test("OrderCancelled updates status to Cancelled", () =>
|
|
27
|
-
givenEvents([
|
|
28
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
|
|
29
|
-
])
|
|
23
|
+
givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
|
|
30
24
|
->whenEvent(OrderCancelled({orderId: "o1"}))
|
|
31
25
|
->thenStateWithId(
|
|
32
26
|
"o1",
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1789087733234)
|
|
2
|
+
#Done(1789087736200)
|
|
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
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
let project = ({event}) =>
|
|
4
4
|
switch event {
|
|
5
5
|
| CatalogProductSynced({productId, name, price}) => [Set(productId, {productId, name, price})]
|
|
6
|
-
| CatalogProductPriceChanged({productId, price}) =>
|
|
7
|
-
[Update(productId, p => {...p, price})]
|
|
6
|
+
| CatalogProductPriceChanged({productId, price}) => [Update(productId, p => {...p, price})]
|
|
8
7
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,8 +9,7 @@ type consumedEvent =
|
|
|
9
9
|
| OrderCancelled
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
|
-
type command =
|
|
13
|
-
| CancelOrder({orderId: string})
|
|
12
|
+
type command = CancelOrder({orderId: string})
|
|
14
13
|
|
|
15
14
|
@schema
|
|
16
15
|
type error =
|
|
@@ -18,11 +17,12 @@ type error =
|
|
|
18
17
|
| OrderAlreadyShipped
|
|
19
18
|
|
|
20
19
|
@schema
|
|
21
|
-
type event =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
type event =
|
|
21
|
+
| OrderCancelled({
|
|
22
|
+
// orderId and productIds both tag — @partitionTag picks the storage partition.
|
|
23
|
+
@partitionTag orderId: string,
|
|
24
|
+
productIds: array<string>,
|
|
25
|
+
})
|
|
26
26
|
|
|
27
27
|
type lifecycleState = Orders.lifecycle
|
|
28
28
|
|
|
Binary file
|
|
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
|
|
@@ -11,9 +11,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
11
11
|
)
|
|
12
12
|
|
|
13
13
|
test("EmailChanged updates the email", () =>
|
|
14
|
-
givenEvents([
|
|
15
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
16
|
-
])
|
|
14
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
17
15
|
->whenEvent(EmailChanged({customerId: "c1", email: "alice2@x.y"}))
|
|
18
16
|
->thenStateWithId(
|
|
19
17
|
"c1",
|
|
@@ -22,9 +20,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
22
20
|
)
|
|
23
21
|
|
|
24
22
|
test("AddressChanged updates the address", () =>
|
|
25
|
-
givenEvents([
|
|
26
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
27
|
-
])
|
|
23
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
28
24
|
->whenEvent(AddressChanged({customerId: "c1", address: "789 Pine"}))
|
|
29
25
|
->thenStateWithId(
|
|
30
26
|
"c1",
|
|
@@ -33,9 +29,7 @@ describe("Customers StateViewSlice", () => {
|
|
|
33
29
|
)
|
|
34
30
|
|
|
35
31
|
test("CustomerDeactivated sets deactivated flag", () =>
|
|
36
|
-
givenEvents([
|
|
37
|
-
CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"}),
|
|
38
|
-
])
|
|
32
|
+
givenEvents([CustomerRegistered({customerId: "c1", email: "alice@x.y", address: "123 Main"})])
|
|
39
33
|
->whenEvent(CustomerDeactivated({customerId: "c1"}))
|
|
40
34
|
->thenStateWithId(
|
|
41
35
|
"c1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,25 @@
|
|
|
7
7
|
// annotation where it is silent.
|
|
8
8
|
|
|
9
9
|
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
{
|
|
11
|
+
component: "CancelOrder",
|
|
12
|
+
command: "CancelOrder",
|
|
13
|
+
level: Reventless.Plugin.Instance,
|
|
14
|
+
allowedStates: ["Placed"],
|
|
15
|
+
targets: ["Cancelled"],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
component: "PlaceOrder",
|
|
19
|
+
command: "PlaceOrder",
|
|
20
|
+
level: Reventless.Plugin.Collection,
|
|
21
|
+
allowedStates: [],
|
|
22
|
+
targets: ["Placed"],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
component: "ShipOrder",
|
|
26
|
+
command: "ShipOrder",
|
|
27
|
+
level: Reventless.Plugin.Instance,
|
|
28
|
+
allowedStates: ["Placed"],
|
|
29
|
+
targets: ["Shipped"],
|
|
30
|
+
},
|
|
13
31
|
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15,18 +15,18 @@ module Delegate = {
|
|
|
15
15
|
|
|
16
16
|
let mapIncomingCommand = (_id, _command, _meta) => []
|
|
17
17
|
|
|
18
|
-
let mapOutgoingEvent = Some(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
PublishEvent(
|
|
18
|
+
let mapOutgoingEvent = Some(
|
|
19
|
+
(_id, event, _meta, _queryEngine) =>
|
|
20
|
+
switch event {
|
|
21
|
+
| Delegate.OrderPlaced({orderId, customerId, productIds}) =>
|
|
22
|
+
productIds->Array.map(productId => PublishEvent(
|
|
23
23
|
productId,
|
|
24
24
|
OrderingSpec.Orders_ExtensionPoint.ItemOrdered({productId, orderId, customerId}),
|
|
25
|
-
)
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
))
|
|
26
|
+
| Delegate.OrderCancelled({orderId, productIds}) =>
|
|
27
|
+
productIds->Array.map(productId => PublishEvent(
|
|
28
|
+
productId,
|
|
29
|
+
OrderingSpec.Orders_ExtensionPoint.ItemOrderCancelled({productId, orderId}),
|
|
30
|
+
))
|
|
31
|
+
},
|
|
32
32
|
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Orders_GWT.ast
CHANGED
|
Binary file
|
package/lib/ocaml/Orders_GWT.res
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
describe("Orders StateViewSlice", () => {
|
|
4
4
|
test("OrderPlaced creates a row with status Placed", () =>
|
|
5
5
|
givenEvents([])
|
|
6
|
-
->whenEvent(
|
|
7
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}),
|
|
8
|
-
)
|
|
6
|
+
->whenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1", "p2"]}))
|
|
9
7
|
->thenStateWithId(
|
|
10
8
|
"o1",
|
|
11
9
|
{orderId: "o1", customerId: "c1", productIds: ["p1", "p2"], lifecycle: Placed},
|
|
@@ -13,9 +11,7 @@ describe("Orders StateViewSlice", () => {
|
|
|
13
11
|
)
|
|
14
12
|
|
|
15
13
|
test("OrderShipped updates status to Shipped", () =>
|
|
16
|
-
givenEvents([
|
|
17
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
|
|
18
|
-
])
|
|
14
|
+
givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
|
|
19
15
|
->whenEvent(OrderShipped({orderId: "o1"}))
|
|
20
16
|
->thenStateWithId(
|
|
21
17
|
"o1",
|
|
@@ -24,9 +20,7 @@ describe("Orders StateViewSlice", () => {
|
|
|
24
20
|
)
|
|
25
21
|
|
|
26
22
|
test("OrderCancelled updates status to Cancelled", () =>
|
|
27
|
-
givenEvents([
|
|
28
|
-
OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}),
|
|
29
|
-
])
|
|
23
|
+
givenEvents([OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]})])
|
|
30
24
|
->whenEvent(OrderCancelled({orderId: "o1"}))
|
|
31
25
|
->thenStateWithId(
|
|
32
26
|
"o1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/PlaceOrder.ast
CHANGED
|
Binary file
|
package/lib/ocaml/PlaceOrder.res
CHANGED
|
@@ -12,7 +12,11 @@ type consumedEvent =
|
|
|
12
12
|
@schema
|
|
13
13
|
type command =
|
|
14
14
|
// Multiple tagged fields — @partitionTag picks orderId as the storage partition.
|
|
15
|
-
PlaceOrder({
|
|
15
|
+
| PlaceOrder({
|
|
16
|
+
@partitionTag orderId: string,
|
|
17
|
+
customerId: string,
|
|
18
|
+
@ref("AvailableProducts") productIds: array<string>,
|
|
19
|
+
})
|
|
16
20
|
|
|
17
21
|
@schema
|
|
18
22
|
type error =
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -29,7 +29,8 @@ let decide = (state, command) =>
|
|
|
29
29
|
if state.placedOrderIds->Array.includes(orderId) {
|
|
30
30
|
Error(OrderAlreadyPlaced)
|
|
31
31
|
} else {
|
|
32
|
-
let missing =
|
|
32
|
+
let missing =
|
|
33
|
+
productIds->Array.filter(pid => !(state.availableProductIds->Array.includes(pid)))
|
|
33
34
|
if missing->Array.length > 0 {
|
|
34
35
|
Error(ProductsNotAvailable({missing: missing}))
|
|
35
36
|
} else {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -20,19 +20,13 @@ describe("PlaceOrder StateChangeSlice", () => {
|
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
test("re-placing the same orderId returns OrderAlreadyPlaced", () =>
|
|
23
|
-
givenEvents([
|
|
24
|
-
CatalogProductSynced({productId: "p1"}),
|
|
25
|
-
OrderPlaced({orderId: "o1"}),
|
|
26
|
-
])
|
|
23
|
+
givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o1"})])
|
|
27
24
|
->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
28
25
|
->thenError(OrderAlreadyPlaced)
|
|
29
26
|
)
|
|
30
27
|
|
|
31
28
|
test("a sibling OrderPlaced for a different orderId does not block placement", () =>
|
|
32
|
-
givenEvents([
|
|
33
|
-
CatalogProductSynced({productId: "p1"}),
|
|
34
|
-
OrderPlaced({orderId: "o2"}),
|
|
35
|
-
])
|
|
29
|
+
givenEvents([CatalogProductSynced({productId: "p1"}), OrderPlaced({orderId: "o2"})])
|
|
36
30
|
->whenCmd(PlaceOrder({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
37
31
|
->thenEvent(OrderPlaced({orderId: "o1", customerId: "c1", productIds: ["p1"]}))
|
|
38
32
|
)
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Plugin.ast
CHANGED
|
Binary file
|