@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.250 → 1.0.0-alpha.252
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_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-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/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_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/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_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_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_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_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_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_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_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/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_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/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_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_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_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_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_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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.0.0-alpha.252 (2026-09-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 1.0.0-alpha.251 (2026-09-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# 1.0.0-alpha.250 (2026-09-22)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790194681255)
|
|
2
|
+
#Done(1790194684463)
|
|
Binary file
|
|
Binary file
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
|
|
5
5
|
"rescript_config_hash": "2b45634c4ef9d26c69e2cd8282eb5d077ce9cf087ded0065001d0f0d889e241c",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1790194684481"
|
|
8
8
|
}
|
package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt
CHANGED
|
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
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("SyncCatalogProduct StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 7aa368ea-aa0c-4643-9ac1-73fa767d66ee
|
|
6
7
|
test("SyncNewProduct produces CatalogProductSynced", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(SyncNewProduct({productId:
|
|
9
|
-
->thenEvent(CatalogProductSynced({productId:
|
|
9
|
+
->whenCmd(SyncNewProduct({productId: p1, name: laptop, price: 999.99}))
|
|
10
|
+
->thenEvent(CatalogProductSynced({productId: p1, name: laptop, price: 999.99}))
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: ec4e7784-783e-4b2c-855c-d2c111333658
|
|
12
14
|
test("ChangeSyncedPrice produces CatalogProductPriceChanged", () =>
|
|
13
|
-
givenEvents([CatalogProductSynced({name:
|
|
14
|
-
->whenCmd(ChangeSyncedPrice({productId:
|
|
15
|
-
->thenEvent(CatalogProductPriceChanged({productId:
|
|
15
|
+
givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
|
|
16
|
+
->whenCmd(ChangeSyncedPrice({productId: p1, price: 899.99}))
|
|
17
|
+
->thenEvent(CatalogProductPriceChanged({productId: p1, price: 899.99}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: 20c38820-28d3-4fb4-b9c6-64000e089de9
|
|
18
21
|
test("re-syncing identical product data produces no events (idempotent)", () =>
|
|
19
|
-
givenEvents([CatalogProductSynced({name:
|
|
20
|
-
->whenCmd(SyncNewProduct({productId:
|
|
22
|
+
givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
|
|
23
|
+
->whenCmd(SyncNewProduct({productId: p1, name: laptop, price: 999.99}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
|
|
27
|
+
// scenario-id: 9d1cebd5-19ce-4352-905f-00353c078b9b
|
|
24
28
|
test("re-applying the current price produces no events (idempotent)", () =>
|
|
25
|
-
givenEvents([CatalogProductSynced({name:
|
|
26
|
-
->whenCmd(ChangeSyncedPrice({productId:
|
|
29
|
+
givenEvents([CatalogProductSynced({name: laptop, price: 999.99})])
|
|
30
|
+
->whenCmd(ChangeSyncedPrice({productId: p1, price: 999.99}))
|
|
27
31
|
->thenNoEvent
|
|
28
32
|
)
|
|
29
33
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.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 SyncCatalogProduct$OrderingPlugin from "../../../src/CatalogProduct/StateChange/SyncCatalogProduct.res.mjs";
|
|
6
6
|
import * as SyncCatalogProduct_Behavior$OrderingPlugin from "../../../src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior.res.mjs";
|
|
7
7
|
|
|
@@ -32,45 +32,45 @@ let thenNoEvent = include.thenNoEvent;
|
|
|
32
32
|
describe("SyncCatalogProduct StateChangeSlice", () => {
|
|
33
33
|
test("SyncNewProduct produces CatalogProductSynced", () => thenEvent(whenCmd(givenEvents([]), {
|
|
34
34
|
TAG: "SyncNewProduct",
|
|
35
|
-
productId:
|
|
36
|
-
name:
|
|
35
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
36
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
37
37
|
price: 999.99
|
|
38
38
|
}), {
|
|
39
39
|
TAG: "CatalogProductSynced",
|
|
40
|
-
productId:
|
|
41
|
-
name:
|
|
40
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
41
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
42
42
|
price: 999.99
|
|
43
43
|
}));
|
|
44
44
|
test("ChangeSyncedPrice produces CatalogProductPriceChanged", () => thenEvent(whenCmd(givenEvents([{
|
|
45
45
|
TAG: "CatalogProductSynced",
|
|
46
|
-
name:
|
|
46
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
47
47
|
price: 999.99
|
|
48
48
|
}]), {
|
|
49
49
|
TAG: "ChangeSyncedPrice",
|
|
50
|
-
productId:
|
|
50
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
51
51
|
price: 899.99
|
|
52
52
|
}), {
|
|
53
53
|
TAG: "CatalogProductPriceChanged",
|
|
54
|
-
productId:
|
|
54
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
55
55
|
price: 899.99
|
|
56
56
|
}));
|
|
57
57
|
test("re-syncing identical product data produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
58
58
|
TAG: "CatalogProductSynced",
|
|
59
|
-
name:
|
|
59
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
60
60
|
price: 999.99
|
|
61
61
|
}]), {
|
|
62
62
|
TAG: "SyncNewProduct",
|
|
63
|
-
productId:
|
|
64
|
-
name:
|
|
63
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
64
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
65
65
|
price: 999.99
|
|
66
66
|
})));
|
|
67
67
|
test("re-applying the current price produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
68
68
|
TAG: "CatalogProductSynced",
|
|
69
|
-
name:
|
|
69
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
70
70
|
price: 999.99
|
|
71
71
|
}]), {
|
|
72
72
|
TAG: "ChangeSyncedPrice",
|
|
73
|
-
productId:
|
|
73
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
74
74
|
price: 999.99
|
|
75
75
|
})));
|
|
76
76
|
});
|
|
@@ -91,8 +91,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
91
91
|
|
|
92
92
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
93
93
|
|
|
94
|
-
let pid = ProductId$CatalogSpec.make;
|
|
95
|
-
|
|
96
94
|
export {
|
|
97
95
|
Spec,
|
|
98
96
|
describe,
|
|
@@ -108,6 +106,5 @@ export {
|
|
|
108
106
|
thenError,
|
|
109
107
|
thenAppendsConditionedOn,
|
|
110
108
|
thenAppendsConditionedOnExactly,
|
|
111
|
-
pid,
|
|
112
109
|
}
|
|
113
110
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("AvailableProducts StateViewSlice", () => {
|
|
6
|
+
// scenario-id: bbaa93a0-6f73-437b-948e-583c3f5b1b63
|
|
6
7
|
test("CatalogProductSynced creates a row", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenEvent(CatalogProductSynced({productId:
|
|
9
|
-
->thenStateWithId("p1", {productId:
|
|
9
|
+
->whenEvent(CatalogProductSynced({productId: p1, name: laptop, price: 999.99}))
|
|
10
|
+
->thenStateWithId("p1", {productId: p1, name: laptop, price: 999.99})
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: def1787d-69b4-4e67-8d9b-c1d3adce0a4d
|
|
12
14
|
test("CatalogProductPriceChanged updates the price", () =>
|
|
13
|
-
givenEvents([CatalogProductSynced({productId:
|
|
14
|
-
->whenEvent(CatalogProductPriceChanged({productId:
|
|
15
|
-
->thenStateWithId("p1", {productId:
|
|
15
|
+
givenEvents([CatalogProductSynced({productId: p1, name: laptop, price: 999.99})])
|
|
16
|
+
->whenEvent(CatalogProductPriceChanged({productId: p1, price: 899.99}))
|
|
17
|
+
->thenStateWithId("p1", {productId: p1, name: laptop, price: 899.99})
|
|
16
18
|
)
|
|
17
19
|
})
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
4
4
|
import * as Projection_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Projection_GWT.res.mjs";
|
|
5
5
|
import * as AvailableProducts$OrderingPlugin from "../../../src/CatalogProduct/StateView/AvailableProducts.res.mjs";
|
|
6
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
6
7
|
import * as AvailableProducts_Projection$OrderingPlugin from "../../../src/CatalogProduct/StateView/AvailableProducts_Projection.res.mjs";
|
|
7
8
|
|
|
8
9
|
let include = Projection_GWT$ReventlessGwt.Make({
|
|
@@ -28,26 +29,26 @@ let thenStateWithId = include.thenStateWithId;
|
|
|
28
29
|
describe("AvailableProducts StateViewSlice", () => {
|
|
29
30
|
test("CatalogProductSynced creates a row", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
|
|
30
31
|
TAG: "CatalogProductSynced",
|
|
31
|
-
productId:
|
|
32
|
-
name:
|
|
32
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
33
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
33
34
|
price: 999.99
|
|
34
35
|
}), "p1", {
|
|
35
|
-
productId:
|
|
36
|
-
name:
|
|
36
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
37
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
37
38
|
price: 999.99
|
|
38
39
|
}));
|
|
39
40
|
test("CatalogProductPriceChanged updates the price", undefined, () => thenStateWithId(whenEvent(givenEvents([{
|
|
40
41
|
TAG: "CatalogProductSynced",
|
|
41
|
-
productId:
|
|
42
|
-
name:
|
|
42
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
43
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
43
44
|
price: 999.99
|
|
44
45
|
}]), {
|
|
45
46
|
TAG: "CatalogProductPriceChanged",
|
|
46
|
-
productId:
|
|
47
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
47
48
|
price: 899.99
|
|
48
49
|
}), "p1", {
|
|
49
|
-
productId:
|
|
50
|
-
name:
|
|
50
|
+
productId: Ordering_Examples$OrderingPlugin.p1,
|
|
51
|
+
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
51
52
|
price: 899.99
|
|
52
53
|
}));
|
|
53
54
|
});
|
|
@@ -74,8 +75,6 @@ let thenThrow = include.thenThrow;
|
|
|
74
75
|
|
|
75
76
|
let thenFail = include.thenFail;
|
|
76
77
|
|
|
77
|
-
let pid = ProductId$CatalogSpec.make;
|
|
78
|
-
|
|
79
78
|
export {
|
|
80
79
|
Spec,
|
|
81
80
|
describe,
|
|
@@ -93,6 +92,5 @@ export {
|
|
|
93
92
|
thenNoState,
|
|
94
93
|
thenThrow,
|
|
95
94
|
thenFail,
|
|
96
|
-
pid,
|
|
97
95
|
}
|
|
98
96
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Ordering_Examples
|
|
4
4
|
|
|
5
5
|
describe("ChangeAddress StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: c948f0e0-ef17-4731-a26b-4439a38140fb
|
|
6
7
|
test("non-existent customer returns CustomerNotFound", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(ChangeAddress({customerId:
|
|
9
|
+
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
9
10
|
->thenError(CustomerNotFound)
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
|
|
12
14
|
test("active customer produces AddressChanged", () =>
|
|
13
|
-
givenEvents([CustomerRegistered({address:
|
|
14
|
-
->whenCmd(ChangeAddress({customerId:
|
|
15
|
-
->thenEvent(AddressChanged({customerId:
|
|
15
|
+
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
16
|
+
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
17
|
+
->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
|
|
18
21
|
test("same address produces no events (idempotent)", () =>
|
|
19
|
-
givenEvents([CustomerRegistered({address:
|
|
20
|
-
->whenCmd(ChangeAddress({customerId:
|
|
22
|
+
givenEvents([CustomerRegistered({address: mainStreet})])
|
|
23
|
+
->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
|
|
27
|
+
// scenario-id: 909078a3-adc9-479e-85cc-88549075d963
|
|
24
28
|
test("deactivated customer returns CustomerAlreadyDeactivated", () =>
|
|
25
|
-
givenEvents([CustomerRegistered({address:
|
|
26
|
-
->whenCmd(ChangeAddress({customerId:
|
|
29
|
+
givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
|
|
30
|
+
->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
|
|
27
31
|
->thenError(CustomerAlreadyDeactivated)
|
|
28
32
|
)
|
|
29
33
|
})
|
|
@@ -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 ChangeAddress$OrderingPlugin from "../../../src/Customer/StateChange/ChangeAddress.res.mjs";
|
|
5
|
+
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
6
6
|
import * as ChangeAddress_Behavior$OrderingPlugin from "../../../src/Customer/StateChange/ChangeAddress_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -34,39 +34,39 @@ let thenError = include.thenError;
|
|
|
34
34
|
describe("ChangeAddress StateChangeSlice", () => {
|
|
35
35
|
test("non-existent customer returns CustomerNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
36
36
|
TAG: "ChangeAddress",
|
|
37
|
-
customerId:
|
|
38
|
-
address:
|
|
37
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
38
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet
|
|
39
39
|
}), "CustomerNotFound"));
|
|
40
40
|
test("active customer produces AddressChanged", () => thenEvent(whenCmd(givenEvents([{
|
|
41
41
|
TAG: "CustomerRegistered",
|
|
42
|
-
address:
|
|
42
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
43
43
|
}]), {
|
|
44
44
|
TAG: "ChangeAddress",
|
|
45
|
-
customerId:
|
|
46
|
-
address:
|
|
45
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
46
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet
|
|
47
47
|
}), {
|
|
48
48
|
TAG: "AddressChanged",
|
|
49
|
-
customerId:
|
|
50
|
-
address:
|
|
49
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
50
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet
|
|
51
51
|
}));
|
|
52
52
|
test("same address produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
53
53
|
TAG: "CustomerRegistered",
|
|
54
|
-
address:
|
|
54
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
55
55
|
}]), {
|
|
56
56
|
TAG: "ChangeAddress",
|
|
57
|
-
customerId:
|
|
58
|
-
address:
|
|
57
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
58
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
59
59
|
})));
|
|
60
60
|
test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
|
|
61
61
|
{
|
|
62
62
|
TAG: "CustomerRegistered",
|
|
63
|
-
address:
|
|
63
|
+
address: Ordering_Examples$OrderingPlugin.mainStreet
|
|
64
64
|
},
|
|
65
65
|
"CustomerDeactivated"
|
|
66
66
|
]), {
|
|
67
67
|
TAG: "ChangeAddress",
|
|
68
|
-
customerId:
|
|
69
|
-
address:
|
|
68
|
+
customerId: Ordering_Examples$OrderingPlugin.c1,
|
|
69
|
+
address: Ordering_Examples$OrderingPlugin.pineStreet
|
|
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,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
|