@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.302 → 1.0.0-alpha.304
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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.304 (2026-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 1.0.0-alpha.303 (2026-10-30)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **examples:** the customer's email and address are marked personal data ([768e985](https://github.com/ReventlessDev/reventless-core/commit/768e9853c4943eaad8926b9cb4df55e2a54f4fa8))
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
# 1.0.0-alpha.302 (2026-10-30)
|
|
7
22
|
|
|
8
23
|
**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(1793352733497)
|
|
2
|
+
#Done(1793352736111)
|
|
@@ -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": "1793352736126"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Decision-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Decision-OrderingPlugin.cmt
CHANGED
|
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})
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
4
5
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
6
|
import * as CustomerId$OrderingPlugin from "../CustomerId.res.mjs";
|
|
6
7
|
|
|
7
8
|
let consumedEventSchema = Sury.union([
|
|
8
9
|
Sury.$schema(s => ({
|
|
9
10
|
TAG: "CustomerRegistered",
|
|
10
|
-
address: s.m(Sury.string)
|
|
11
|
+
address: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
11
12
|
})),
|
|
12
13
|
Sury.$schema(s => ({
|
|
13
14
|
TAG: "AddressChanged",
|
|
14
|
-
address: s.m(Sury.string)
|
|
15
|
+
address: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
15
16
|
})),
|
|
16
17
|
Sury.literal("CustomerDeactivated")
|
|
17
18
|
]);
|
|
@@ -19,7 +20,7 @@ let consumedEventSchema = Sury.union([
|
|
|
19
20
|
let commandSchema = Sury.$schema(s => ({
|
|
20
21
|
TAG: "ChangeAddress",
|
|
21
22
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
22
|
-
address: s.m(Sury.string)
|
|
23
|
+
address: s.m(Pii$Reventless.mark("customerId", undefined, Sury.string))
|
|
23
24
|
}));
|
|
24
25
|
|
|
25
26
|
let errorSchema = Sury.union([
|
|
@@ -30,7 +31,7 @@ let errorSchema = Sury.union([
|
|
|
30
31
|
let eventSchema = Sury.$schema(s => ({
|
|
31
32
|
TAG: "AddressChanged",
|
|
32
33
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
33
|
-
address: s.m(Sury.string)
|
|
34
|
+
address: s.m(Pii$Reventless.marked("customerId", undefined, Sury.string))
|
|
34
35
|
}));
|
|
35
36
|
|
|
36
37
|
function authorizationOf(param) {
|
|
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
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
3
4
|
|
|
4
5
|
function evolve(state, event) {
|
|
5
6
|
if (typeof event !== "object") {
|
|
@@ -12,13 +13,13 @@ function evolve(state, event) {
|
|
|
12
13
|
return {
|
|
13
14
|
exists: true,
|
|
14
15
|
deactivated: false,
|
|
15
|
-
currentAddress: event.address
|
|
16
|
+
currentAddress: Pii$Reventless.getOr(event.address, "")
|
|
16
17
|
};
|
|
17
18
|
} else {
|
|
18
19
|
return {
|
|
19
20
|
exists: state.exists,
|
|
20
21
|
deactivated: state.deactivated,
|
|
21
|
-
currentAddress: event.address
|
|
22
|
+
currentAddress: Pii$Reventless.getOr(event.address, "")
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -48,7 +49,10 @@ function decide(state, command) {
|
|
|
48
49
|
_0: [{
|
|
49
50
|
TAG: "AddressChanged",
|
|
50
51
|
customerId: command.customerId,
|
|
51
|
-
address:
|
|
52
|
+
address: {
|
|
53
|
+
TAG: "Value",
|
|
54
|
+
_0: address
|
|
55
|
+
}
|
|
52
56
|
}]
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -71,4 +75,4 @@ export {
|
|
|
71
75
|
decide,
|
|
72
76
|
moduleUrl,
|
|
73
77
|
}
|
|
74
|
-
/*
|
|
78
|
+
/* Pii-Reventless Not a pure module */
|
|
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})
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
4
5
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
6
|
import * as CustomerId$OrderingPlugin from "../CustomerId.res.mjs";
|
|
6
7
|
|
|
7
8
|
let consumedEventSchema = Sury.union([
|
|
8
9
|
Sury.$schema(s => ({
|
|
9
10
|
TAG: "CustomerRegistered",
|
|
10
|
-
email: s.m(Sury.string)
|
|
11
|
+
email: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
11
12
|
})),
|
|
12
13
|
Sury.$schema(s => ({
|
|
13
14
|
TAG: "EmailChanged",
|
|
14
|
-
email: s.m(Sury.string)
|
|
15
|
+
email: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
15
16
|
})),
|
|
16
17
|
Sury.literal("CustomerDeactivated")
|
|
17
18
|
]);
|
|
@@ -19,7 +20,7 @@ let consumedEventSchema = Sury.union([
|
|
|
19
20
|
let commandSchema = Sury.$schema(s => ({
|
|
20
21
|
TAG: "ChangeEmail",
|
|
21
22
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
22
|
-
email: s.m(Sury.string)
|
|
23
|
+
email: s.m(Pii$Reventless.mark("customerId", undefined, Sury.string))
|
|
23
24
|
}));
|
|
24
25
|
|
|
25
26
|
let errorSchema = Sury.union([
|
|
@@ -30,7 +31,7 @@ let errorSchema = Sury.union([
|
|
|
30
31
|
let eventSchema = Sury.$schema(s => ({
|
|
31
32
|
TAG: "EmailChanged",
|
|
32
33
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
33
|
-
email: s.m(Sury.string)
|
|
34
|
+
email: s.m(Pii$Reventless.marked("customerId", undefined, Sury.string))
|
|
34
35
|
}));
|
|
35
36
|
|
|
36
37
|
function authorizationOf(param) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -6,8 +6,13 @@ let initialState = {exists: false, deactivated: false, currentEmail: ""}
|
|
|
6
6
|
|
|
7
7
|
let evolve = (state, event) =>
|
|
8
8
|
switch event {
|
|
9
|
-
|
|
10
|
-
|
|
|
9
|
+
// An erased address matches no address presented later.
|
|
10
|
+
| CustomerRegistered({email}) => {
|
|
11
|
+
exists: true,
|
|
12
|
+
deactivated: false,
|
|
13
|
+
currentEmail: email->Reventless.Pii.getOr(""),
|
|
14
|
+
}
|
|
15
|
+
| EmailChanged({email}) => {...state, currentEmail: email->Reventless.Pii.getOr("")}
|
|
11
16
|
| CustomerDeactivated => {...state, deactivated: true}
|
|
12
17
|
}
|
|
13
18
|
|
|
@@ -21,6 +26,6 @@ let decide = (state, command) =>
|
|
|
21
26
|
} else if email == state.currentEmail {
|
|
22
27
|
Ok([]) // idempotent — email unchanged
|
|
23
28
|
} else {
|
|
24
|
-
Ok([EmailChanged({customerId, email})])
|
|
29
|
+
Ok([EmailChanged({customerId, email: Value(email)})])
|
|
25
30
|
}
|
|
26
31
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
3
4
|
|
|
4
5
|
function evolve(state, event) {
|
|
5
6
|
if (typeof event !== "object") {
|
|
@@ -12,13 +13,13 @@ function evolve(state, event) {
|
|
|
12
13
|
return {
|
|
13
14
|
exists: true,
|
|
14
15
|
deactivated: false,
|
|
15
|
-
currentEmail: event.email
|
|
16
|
+
currentEmail: Pii$Reventless.getOr(event.email, "")
|
|
16
17
|
};
|
|
17
18
|
} else {
|
|
18
19
|
return {
|
|
19
20
|
exists: state.exists,
|
|
20
21
|
deactivated: state.deactivated,
|
|
21
|
-
currentEmail: event.email
|
|
22
|
+
currentEmail: Pii$Reventless.getOr(event.email, "")
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -48,7 +49,10 @@ function decide(state, command) {
|
|
|
48
49
|
_0: [{
|
|
49
50
|
TAG: "EmailChanged",
|
|
50
51
|
customerId: command.customerId,
|
|
51
|
-
email:
|
|
52
|
+
email: {
|
|
53
|
+
TAG: "Value",
|
|
54
|
+
_0: email
|
|
55
|
+
}
|
|
52
56
|
}]
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -71,4 +75,4 @@ export {
|
|
|
71
75
|
decide,
|
|
72
76
|
moduleUrl,
|
|
73
77
|
}
|
|
74
|
-
/*
|
|
78
|
+
/* Pii-Reventless Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -6,10 +6,20 @@
|
|
|
6
6
|
type consumedEvent = CustomerRegistered
|
|
7
7
|
|
|
8
8
|
@schema
|
|
9
|
-
type command =
|
|
9
|
+
type command =
|
|
10
|
+
| RegisterCustomer({
|
|
11
|
+
customerId: CustomerId.t,
|
|
12
|
+
@pii("customerId") email: string,
|
|
13
|
+
@pii("customerId") address: string,
|
|
14
|
+
})
|
|
10
15
|
|
|
11
16
|
@schema
|
|
12
17
|
type error = CustomerAlreadyRegistered
|
|
13
18
|
|
|
14
19
|
@schema
|
|
15
|
-
type event =
|
|
20
|
+
type event =
|
|
21
|
+
| CustomerRegistered({
|
|
22
|
+
customerId: CustomerId.t,
|
|
23
|
+
@pii("customerId") email: string,
|
|
24
|
+
@pii("customerId") address: string,
|
|
25
|
+
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
4
5
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
6
|
import * as CustomerId$OrderingPlugin from "../CustomerId.res.mjs";
|
|
6
7
|
|
|
@@ -9,8 +10,8 @@ let consumedEventSchema = Sury.literal("CustomerRegistered");
|
|
|
9
10
|
let commandSchema = Sury.$schema(s => ({
|
|
10
11
|
TAG: "RegisterCustomer",
|
|
11
12
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
12
|
-
email: s.m(Sury.string),
|
|
13
|
-
address: s.m(Sury.string)
|
|
13
|
+
email: s.m(Pii$Reventless.mark("customerId", undefined, Sury.string)),
|
|
14
|
+
address: s.m(Pii$Reventless.mark("customerId", undefined, Sury.string))
|
|
14
15
|
}));
|
|
15
16
|
|
|
16
17
|
let errorSchema = Sury.literal("CustomerAlreadyRegistered");
|
|
@@ -18,8 +19,8 @@ let errorSchema = Sury.literal("CustomerAlreadyRegistered");
|
|
|
18
19
|
let eventSchema = Sury.$schema(s => ({
|
|
19
20
|
TAG: "CustomerRegistered",
|
|
20
21
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
21
|
-
email: s.m(Sury.string),
|
|
22
|
-
address: s.m(Sury.string)
|
|
22
|
+
email: s.m(Pii$Reventless.marked("customerId", undefined, Sury.string)),
|
|
23
|
+
address: s.m(Pii$Reventless.marked("customerId", undefined, Sury.string))
|
|
23
24
|
}));
|
|
24
25
|
|
|
25
26
|
function authorizationOf(param) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -19,8 +19,14 @@ function decide(state, command) {
|
|
|
19
19
|
_0: [{
|
|
20
20
|
TAG: "CustomerRegistered",
|
|
21
21
|
customerId: command.customerId,
|
|
22
|
-
email:
|
|
23
|
-
|
|
22
|
+
email: {
|
|
23
|
+
TAG: "Value",
|
|
24
|
+
_0: command.email
|
|
25
|
+
},
|
|
26
|
+
address: {
|
|
27
|
+
TAG: "Value",
|
|
28
|
+
_0: command.address
|
|
29
|
+
}
|
|
24
30
|
}]
|
|
25
31
|
};
|
|
26
32
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15,7 +15,7 @@ type state = {
|
|
|
15
15
|
|
|
16
16
|
@schema
|
|
17
17
|
type consumedEvent =
|
|
18
|
-
| CustomerRegistered({customerId: CustomerId.t, email: string, address: string})
|
|
19
|
-
| EmailChanged({customerId: CustomerId.t, email: string})
|
|
20
|
-
| AddressChanged({customerId: CustomerId.t, address: string})
|
|
18
|
+
| CustomerRegistered({customerId: CustomerId.t, @pii email: string, @pii address: string})
|
|
19
|
+
| EmailChanged({customerId: CustomerId.t, @pii email: string})
|
|
20
|
+
| AddressChanged({customerId: CustomerId.t, @pii address: string})
|
|
21
21
|
| CustomerDeactivated({customerId: CustomerId.t})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
4
5
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
6
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
7
|
import * as DisplayName$Reventless from "@reventlessdev/reventless-spec/src/components/DisplayName.res.mjs";
|
|
@@ -24,18 +25,18 @@ let consumedEventSchema = Sury.union([
|
|
|
24
25
|
Sury.$schema(s => ({
|
|
25
26
|
TAG: "CustomerRegistered",
|
|
26
27
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
27
|
-
email: s.m(Sury.string),
|
|
28
|
-
address: s.m(Sury.string)
|
|
28
|
+
email: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string)),
|
|
29
|
+
address: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
29
30
|
})),
|
|
30
31
|
Sury.$schema(s => ({
|
|
31
32
|
TAG: "EmailChanged",
|
|
32
33
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
33
|
-
email: s.m(Sury.string)
|
|
34
|
+
email: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
34
35
|
})),
|
|
35
36
|
Sury.$schema(s => ({
|
|
36
37
|
TAG: "AddressChanged",
|
|
37
38
|
customerId: s.m(DcbTag$Reventless.mark(CustomerId$OrderingPlugin.schema)),
|
|
38
|
-
address: s.m(Sury.string)
|
|
39
|
+
address: s.m(Pii$Reventless.marked("$stream", undefined, Sury.string))
|
|
39
40
|
})),
|
|
40
41
|
Sury.$schema(s => ({
|
|
41
42
|
TAG: "CustomerDeactivated",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,10 +3,24 @@
|
|
|
3
3
|
let project = ({event}) =>
|
|
4
4
|
switch event {
|
|
5
5
|
| CustomerRegistered({customerId, email, address}) => [
|
|
6
|
-
|
|
6
|
+
// The view holds plaintext; an erased customer's row is cleared by the app's
|
|
7
|
+
// erasure, and a rebuild after it writes nothing in its place.
|
|
8
|
+
Set(
|
|
9
|
+
customerId,
|
|
10
|
+
{
|
|
11
|
+
customerId,
|
|
12
|
+
email: email->Reventless.Pii.getOr(""),
|
|
13
|
+
address: address->Reventless.Pii.getOr(""),
|
|
14
|
+
deactivated: false,
|
|
15
|
+
},
|
|
16
|
+
),
|
|
17
|
+
]
|
|
18
|
+
| EmailChanged({customerId, email}) => [
|
|
19
|
+
Update(customerId, state => {...state, email: email->Reventless.Pii.getOr("")}),
|
|
20
|
+
]
|
|
21
|
+
| AddressChanged({customerId, address}) => [
|
|
22
|
+
Update(customerId, state => {...state, address: address->Reventless.Pii.getOr("")}),
|
|
7
23
|
]
|
|
8
|
-
| EmailChanged({customerId, email}) => [Update(customerId, state => {...state, email})]
|
|
9
|
-
| AddressChanged({customerId, address}) => [Update(customerId, state => {...state, address})]
|
|
10
24
|
| CustomerDeactivated({customerId}) => [
|
|
11
25
|
Update(customerId, state => {...state, deactivated: true}),
|
|
12
26
|
]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
3
4
|
|
|
4
5
|
function project(param) {
|
|
5
6
|
let event = param.event;
|
|
@@ -11,8 +12,8 @@ function project(param) {
|
|
|
11
12
|
_0: customerId,
|
|
12
13
|
_1: {
|
|
13
14
|
customerId: customerId,
|
|
14
|
-
email: event.email,
|
|
15
|
-
address: event.address,
|
|
15
|
+
email: Pii$Reventless.getOr(event.email, ""),
|
|
16
|
+
address: Pii$Reventless.getOr(event.address, ""),
|
|
16
17
|
deactivated: false
|
|
17
18
|
}
|
|
18
19
|
}];
|
|
@@ -23,7 +24,7 @@ function project(param) {
|
|
|
23
24
|
_0: event.customerId,
|
|
24
25
|
_1: state => {
|
|
25
26
|
let newrecord = {...state};
|
|
26
|
-
newrecord.email = email;
|
|
27
|
+
newrecord.email = Pii$Reventless.getOr(email, "");
|
|
27
28
|
return newrecord;
|
|
28
29
|
}
|
|
29
30
|
}];
|
|
@@ -34,7 +35,7 @@ function project(param) {
|
|
|
34
35
|
_0: event.customerId,
|
|
35
36
|
_1: state => {
|
|
36
37
|
let newrecord = {...state};
|
|
37
|
-
newrecord.address = address;
|
|
38
|
+
newrecord.address = Pii$Reventless.getOr(address, "");
|
|
38
39
|
return newrecord;
|
|
39
40
|
}
|
|
40
41
|
}];
|
|
@@ -60,4 +61,4 @@ export {
|
|
|
60
61
|
project,
|
|
61
62
|
moduleUrl,
|
|
62
63
|
}
|
|
63
|
-
/*
|
|
64
|
+
/* Pii-Reventless Not a pure module */
|
|
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/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
|