@reventlessdev/online-shop-aggregates-ordering 3.0.0-alpha.280 → 3.0.0-alpha.282
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 +22 -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 +3 -3
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/CatalogProduct/Aggregate/CatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/Aggregate/CatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior-OrderingPlugin.cmi → CatalogProduct_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/{ocaml/CatalogProduct_Behavior-OrderingPlugin.cmt → bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/{ocaml/CatalogProduct_Behavior.ast → bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision.ast} +0 -0
- package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior.res → CatalogProduct_Decision.res} +2 -2
- package/{src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs → lib/bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs} +1 -1
- package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/Aggregate/Customer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/Aggregate/Customer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmi → Customer_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmt → Customer_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/bs/src/Customer/Aggregate/{Customer_Behavior.ast → Customer_Decision.ast} +0 -0
- package/{src/Customer/Aggregate/Customer_Behavior.res → lib/bs/src/Customer/Aggregate/Customer_Decision.res} +2 -2
- package/{src/Customer/Aggregate/Customer_Behavior.res.mjs → lib/bs/src/Customer/Aggregate/Customer_Decision.res.mjs} +1 -1
- package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/ReadModel/Customers-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/ReadModel/Customers-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmi → Order_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmt → Order_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/{ocaml/Order_Behavior.ast → bs/src/Order/Aggregate/Order_Decision.ast} +0 -0
- package/lib/{ocaml/Order_Behavior.res → bs/src/Order/Aggregate/Order_Decision.res} +2 -2
- package/lib/bs/src/Order/Aggregate/{Order_Behavior.res.mjs → Order_Decision.res.mjs} +1 -1
- package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OrderId-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OrderId-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/ReadModel/Orders-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/ReadModel/Orders-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/SideEffect/Order_EmailNotification-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/SideEffect/Order_EmailNotification-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 +3 -3
- package/lib/bs/src/Plugin.res.mjs +15 -15
- package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.ast +0 -0
- package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res +1 -1
- package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res.mjs +10 -10
- package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/Aggregate/Customer_GWT.ast +0 -0
- package/lib/bs/tests/Customer/Aggregate/Customer_GWT.res +1 -1
- package/lib/bs/tests/Customer/Aggregate/Customer_GWT.res.mjs +10 -10
- package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmt +0 -0
- 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/Aggregate/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.ast +0 -0
- package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.res +3 -3
- package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.res.mjs +11 -11
- package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/Aggregate/Order_GWT.ast +0 -0
- package/lib/bs/tests/Order/Aggregate/Order_GWT.res +1 -1
- package/lib/bs/tests/Order/Aggregate/Order_GWT.res.mjs +10 -10
- package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- 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_Projections-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/{CatalogProduct_Behavior-OrderingPlugin.cmi → CatalogProduct_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/{bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior-OrderingPlugin.cmt → ocaml/CatalogProduct_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/{bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior.ast → ocaml/CatalogProduct_Decision.ast} +0 -0
- package/{src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res → lib/ocaml/CatalogProduct_Decision.res} +2 -2
- package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CatalogProduct_GWT.ast +0 -0
- package/lib/ocaml/CatalogProduct_GWT.res +1 -1
- package/lib/ocaml/Customer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CustomerId-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CustomerId-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmi → Customer_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmt → Customer_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/ocaml/{Customer_Behavior.ast → Customer_Decision.ast} +0 -0
- package/lib/{bs/src/Customer/Aggregate/Customer_Behavior.res → ocaml/Customer_Decision.res} +2 -2
- package/lib/ocaml/Customer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customer_GWT.ast +0 -0
- package/lib/ocaml/Customer_GWT.res +1 -1
- 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_Projections-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_Projections-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Order-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Order-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderId-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderId-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderMappings_GWT.ast +0 -0
- package/lib/ocaml/OrderMappings_GWT.res +3 -3
- package/lib/ocaml/OrderNotifications-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderNotifications-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmi → Order_Decision-OrderingPlugin.cmi} +0 -0
- package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmt → Order_Decision-OrderingPlugin.cmt} +0 -0
- package/lib/{bs/src/Order/Aggregate/Order_Behavior.ast → ocaml/Order_Decision.ast} +0 -0
- package/{src/Order/Aggregate/Order_Behavior.res → lib/ocaml/Order_Decision.res} +2 -2
- package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Order_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Order_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Order_GWT.ast +0 -0
- package/lib/ocaml/Order_GWT.res +1 -1
- package/lib/ocaml/Order_Mappings-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Order_Mappings-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderingPlugin.cmi +0 -0
- package/lib/ocaml/OrderingPlugin.cmt +0 -0
- package/lib/ocaml/OrderingPlugin.mlmap +3 -3
- package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Ordering_Examples-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_Projections-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Projections-OrderingPlugin.cmt +0 -0
- 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 +3 -3
- 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/package.json +7 -7
- package/{lib/ocaml/CatalogProduct_Behavior.res → src/CatalogProduct/Aggregate/CatalogProduct_Decision.res} +2 -2
- package/{lib/bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs → src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs} +1 -1
- package/{lib/ocaml/Customer_Behavior.res → src/Customer/Aggregate/Customer_Decision.res} +2 -2
- package/{lib/bs/src/Customer/Aggregate/Customer_Behavior.res.mjs → src/Customer/Aggregate/Customer_Decision.res.mjs} +1 -1
- package/{lib/bs/src/Order/Aggregate/Order_Behavior.res → src/Order/Aggregate/Order_Decision.res} +2 -2
- package/src/Order/Aggregate/{Order_Behavior.res.mjs → Order_Decision.res.mjs} +1 -1
- package/src/Plugin.res +3 -3
- package/src/Plugin.res.mjs +15 -15
- package/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res +1 -1
- package/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res.mjs +10 -10
- package/tests/Customer/Aggregate/Customer_GWT.res +1 -1
- package/tests/Customer/Aggregate/Customer_GWT.res.mjs +10 -10
- package/tests/Order/Aggregate/OrderMappings_GWT.res +3 -3
- package/tests/Order/Aggregate/OrderMappings_GWT.res.mjs +11 -11
- package/tests/Order/Aggregate/Order_GWT.res +1 -1
- package/tests/Order/Aggregate/Order_GWT.res.mjs +10 -10
- /package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior-OrderingPlugin.cmj → CatalogProduct_Decision-OrderingPlugin.cmj} +0 -0
- /package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmj → Customer_Decision-OrderingPlugin.cmj} +0 -0
- /package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmj → Order_Decision-OrderingPlugin.cmj} +0 -0
- /package/lib/ocaml/{CatalogProduct_Behavior-OrderingPlugin.cmj → CatalogProduct_Decision-OrderingPlugin.cmj} +0 -0
- /package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmj → Customer_Decision-OrderingPlugin.cmj} +0 -0
- /package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmj → Order_Decision-OrderingPlugin.cmj} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
# 3.0.0-alpha.282 (2026-10-21)
|
|
7
|
+
|
|
8
|
+
* feat!: the write-side logic module is called the decision, and a codemod moves an app over ([cb573ff](https://github.com/ReventlessDev/reventless-core/commit/cb573ff5b928c7d7f3e75988dfaa65066f8c95eb))
|
|
9
|
+
|
|
10
|
+
### BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* <Spec>_Behavior.res, @@reventless.behavior,
|
|
13
|
+
Reventless.Behavior.T, StateChangeSlice.Behavior, Behavior_GWT and
|
|
14
|
+
thenRefused no longer exist. Run `npx reventless-rename-to-decision` at an
|
|
15
|
+
app's root, then rebuild; comments are not rewritten. The PPX must be the
|
|
16
|
+
matching release.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# 3.0.0-alpha.281 (2026-10-19)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-ordering
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# 3.0.0-alpha.280 (2026-10-17)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-ordering
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1792571245529)
|
|
2
|
+
#Done(1792571253101)
|
|
Binary file
|
|
Binary file
|
|
@@ -3,11 +3,11 @@ AvailableProducts
|
|
|
3
3
|
AvailableProducts_GWT
|
|
4
4
|
AvailableProducts_Projections
|
|
5
5
|
CatalogProduct
|
|
6
|
-
|
|
6
|
+
CatalogProduct_Decision
|
|
7
7
|
CatalogProduct_GWT
|
|
8
8
|
Customer
|
|
9
9
|
CustomerId
|
|
10
|
-
|
|
10
|
+
Customer_Decision
|
|
11
11
|
Customer_GWT
|
|
12
12
|
Customers
|
|
13
13
|
Customers_GWT
|
|
@@ -19,7 +19,7 @@ Order
|
|
|
19
19
|
OrderId
|
|
20
20
|
OrderMappings_GWT
|
|
21
21
|
OrderNotifications
|
|
22
|
-
|
|
22
|
+
Order_Decision
|
|
23
23
|
Order_EmailNotification
|
|
24
24
|
Order_EmailNotification_GWT
|
|
25
25
|
Order_GWT
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
|
|
5
5
|
"rescript_config_hash": "4c884bf958b93b21c77764e35498f269b81377cfcc324135f1ab7a1cc5b569cb",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1792571253118"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -74,7 +74,7 @@ let Spec;
|
|
|
74
74
|
|
|
75
75
|
let initialState = "NotCreated";
|
|
76
76
|
|
|
77
|
-
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/CatalogProduct/Aggregate/
|
|
77
|
+
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
|
|
78
78
|
|
|
79
79
|
let snapshot;
|
|
80
80
|
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -130,7 +130,7 @@ let Spec;
|
|
|
130
130
|
|
|
131
131
|
let initialState = "NotCreated";
|
|
132
132
|
|
|
133
|
-
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Customer/Aggregate/
|
|
133
|
+
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Customer/Aggregate/Customer_Decision.res.mjs";
|
|
134
134
|
|
|
135
135
|
let snapshot;
|
|
136
136
|
|
|
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
|
|
@@ -174,7 +174,7 @@ let Spec;
|
|
|
174
174
|
|
|
175
175
|
let initialState = "NotCreated";
|
|
176
176
|
|
|
177
|
-
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Order/Aggregate/
|
|
177
|
+
let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Order/Aggregate/Order_Decision.res.mjs";
|
|
178
178
|
|
|
179
179
|
let snapshot;
|
|
180
180
|
|
|
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/Plugin.ast
CHANGED
|
Binary file
|
package/lib/bs/src/Plugin.res
CHANGED
|
@@ -6,15 +6,15 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
|
|
|
6
6
|
// Aggregates
|
|
7
7
|
module CatalogProductAggregate = Platform.Aggregate.Make(
|
|
8
8
|
CatalogProduct,
|
|
9
|
-
|
|
9
|
+
CatalogProduct_Decision,
|
|
10
10
|
ReventlessInfra.NoEventMappings.Make(CatalogProduct),
|
|
11
11
|
)
|
|
12
12
|
module CustomerAggregate = Platform.Aggregate.Make(
|
|
13
13
|
Customer,
|
|
14
|
-
|
|
14
|
+
Customer_Decision,
|
|
15
15
|
ReventlessInfra.NoEventMappings.Make(Customer),
|
|
16
16
|
)
|
|
17
|
-
module OrderAggregate = Platform.Aggregate.Make(Order,
|
|
17
|
+
module OrderAggregate = Platform.Aggregate.Make(Order, Order_Decision, Order_Mappings)
|
|
18
18
|
|
|
19
19
|
// ReadModels
|
|
20
20
|
module AvailableProductsReadModel = Platform.ReadModel.Make(
|
|
@@ -10,18 +10,18 @@ import * as Customers$OrderingPlugin from "./Customer/ReadModel/Customers.res.mj
|
|
|
10
10
|
import * as CustomerId$OrderingPlugin from "./Customer/CustomerId.res.mjs";
|
|
11
11
|
import * as CatalogProduct$OrderingPlugin from "./CatalogProduct/Aggregate/CatalogProduct.res.mjs";
|
|
12
12
|
import * as LifecycleModel$OrderingPlugin from "./LifecycleModel.res.mjs";
|
|
13
|
-
import * as
|
|
13
|
+
import * as Order_Decision$OrderingPlugin from "./Order/Aggregate/Order_Decision.res.mjs";
|
|
14
14
|
import * as Order_Mappings$OrderingPlugin from "./Order/Aggregate/Order_Mappings.res.mjs";
|
|
15
15
|
import * as NoEventMappings$ReventlessInfra from "@reventlessdev/reventless-infra/src/types/NoEventMappings.res.mjs";
|
|
16
16
|
import * as AvailableProducts$OrderingPlugin from "./CatalogProduct/ReadModel/AvailableProducts.res.mjs";
|
|
17
|
-
import * as
|
|
17
|
+
import * as Customer_Decision$OrderingPlugin from "./Customer/Aggregate/Customer_Decision.res.mjs";
|
|
18
18
|
import * as OrderNotifications$OrderingPlugin from "./Task/OrderNotifications.res.mjs";
|
|
19
19
|
import * as Orders_Projections$OrderingPlugin from "./Order/ReadModel/Orders_Projections.res.mjs";
|
|
20
20
|
import * as Products_Extension$OrderingPlugin from "./Extension/Products_Extension.res.mjs";
|
|
21
21
|
import * as Orders_ExtensionPoint$OrderingSpec from "@reventlessdev/online-shop-aggregates-ordering-spec/src/Orders_ExtensionPoint.res.mjs";
|
|
22
22
|
import * as Products_ExtensionPoint$CatalogSpec from "@reventlessdev/online-shop-aggregates-catalog-spec/src/Products_ExtensionPoint.res.mjs";
|
|
23
23
|
import * as Customers_Projections$OrderingPlugin from "./Customer/ReadModel/Customers_Projections.res.mjs";
|
|
24
|
-
import * as
|
|
24
|
+
import * as CatalogProduct_Decision$OrderingPlugin from "./CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
|
|
25
25
|
import * as Orders_ExtensionPointMapping$OrderingPlugin from "./ExtensionPoint/Orders_ExtensionPointMapping.res.mjs";
|
|
26
26
|
import * as AvailableProducts_Projections$OrderingPlugin from "./CatalogProduct/ReadModel/AvailableProducts_Projections.res.mjs";
|
|
27
27
|
|
|
@@ -37,11 +37,11 @@ function Make(Platform) {
|
|
|
37
37
|
commandTransition: CatalogProduct$OrderingPlugin.commandTransition,
|
|
38
38
|
traits: CatalogProduct$OrderingPlugin.traits
|
|
39
39
|
})({
|
|
40
|
-
initialState:
|
|
41
|
-
evolve:
|
|
42
|
-
decide:
|
|
40
|
+
initialState: CatalogProduct_Decision$OrderingPlugin.initialState,
|
|
41
|
+
evolve: CatalogProduct_Decision$OrderingPlugin.evolve,
|
|
42
|
+
decide: CatalogProduct_Decision$OrderingPlugin.decide,
|
|
43
43
|
snapshot: undefined,
|
|
44
|
-
moduleUrl:
|
|
44
|
+
moduleUrl: CatalogProduct_Decision$OrderingPlugin.moduleUrl
|
|
45
45
|
})(NoEventMappings$ReventlessInfra.Make({
|
|
46
46
|
name: CatalogProduct$OrderingPlugin.name,
|
|
47
47
|
Id: ProductId$CatalogSpec,
|
|
@@ -58,11 +58,11 @@ function Make(Platform) {
|
|
|
58
58
|
commandTransition: Customer$OrderingPlugin.commandTransition,
|
|
59
59
|
traits: Customer$OrderingPlugin.traits
|
|
60
60
|
})({
|
|
61
|
-
initialState:
|
|
62
|
-
evolve:
|
|
63
|
-
decide:
|
|
61
|
+
initialState: Customer_Decision$OrderingPlugin.initialState,
|
|
62
|
+
evolve: Customer_Decision$OrderingPlugin.evolve,
|
|
63
|
+
decide: Customer_Decision$OrderingPlugin.decide,
|
|
64
64
|
snapshot: undefined,
|
|
65
|
-
moduleUrl:
|
|
65
|
+
moduleUrl: Customer_Decision$OrderingPlugin.moduleUrl
|
|
66
66
|
})(NoEventMappings$ReventlessInfra.Make({
|
|
67
67
|
name: Customer$OrderingPlugin.name,
|
|
68
68
|
Id: CustomerId$OrderingPlugin,
|
|
@@ -79,11 +79,11 @@ function Make(Platform) {
|
|
|
79
79
|
commandTransition: Order$OrderingPlugin.commandTransition,
|
|
80
80
|
traits: Order$OrderingPlugin.traits
|
|
81
81
|
})({
|
|
82
|
-
initialState:
|
|
83
|
-
evolve:
|
|
84
|
-
decide:
|
|
82
|
+
initialState: Order_Decision$OrderingPlugin.initialState,
|
|
83
|
+
evolve: Order_Decision$OrderingPlugin.evolve,
|
|
84
|
+
decide: Order_Decision$OrderingPlugin.decide,
|
|
85
85
|
snapshot: undefined,
|
|
86
|
-
moduleUrl:
|
|
86
|
+
moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
|
|
87
87
|
})({
|
|
88
88
|
moduleUrl: Order_Mappings$OrderingPlugin.moduleUrl,
|
|
89
89
|
mappings: Order_Mappings$OrderingPlugin.mappings,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as CatalogProduct$OrderingPlugin from "../../../src/CatalogProduct/Aggregate/CatalogProduct.res.mjs";
|
|
5
5
|
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as CatalogProduct_Decision$OrderingPlugin from "../../../src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
|
|
9
9
|
name: CatalogProduct$OrderingPlugin.name,
|
|
10
10
|
commandSchema: CatalogProduct$OrderingPlugin.commandSchema,
|
|
11
11
|
eventSchema: CatalogProduct$OrderingPlugin.eventSchema,
|
|
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
|
|
|
19
19
|
errorSchema: CatalogProduct$OrderingPlugin.errorSchema,
|
|
20
20
|
authorizationOf: CatalogProduct$OrderingPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
|
-
initialState:
|
|
23
|
-
evolve:
|
|
24
|
-
decide:
|
|
22
|
+
initialState: CatalogProduct_Decision$OrderingPlugin.initialState,
|
|
23
|
+
evolve: CatalogProduct_Decision$OrderingPlugin.evolve,
|
|
24
|
+
decide: CatalogProduct_Decision$OrderingPlugin.decide,
|
|
25
25
|
snapshot: undefined,
|
|
26
|
-
moduleUrl:
|
|
26
|
+
moduleUrl: CatalogProduct_Decision$OrderingPlugin.moduleUrl
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
let describe = include.describe;
|
|
@@ -38,7 +38,7 @@ let thenEvent = include.thenEvent;
|
|
|
38
38
|
|
|
39
39
|
let thenNoEvent = include.thenNoEvent;
|
|
40
40
|
|
|
41
|
-
describe("CatalogProduct
|
|
41
|
+
describe("CatalogProduct Decision", () => {
|
|
42
42
|
test("Sync on new aggregate produces Synced", () => thenEvent(whenCmd(givenEvents([]), {
|
|
43
43
|
TAG: "Sync",
|
|
44
44
|
name: Ordering_Examples$OrderingPlugin.laptop,
|
|
@@ -92,7 +92,7 @@ let thenEventsWithError = include.thenEventsWithError;
|
|
|
92
92
|
|
|
93
93
|
let thenError = include.thenError;
|
|
94
94
|
|
|
95
|
-
let
|
|
95
|
+
let thenForbidden = include.thenForbidden;
|
|
96
96
|
|
|
97
97
|
export {
|
|
98
98
|
Spec,
|
|
@@ -110,6 +110,6 @@ export {
|
|
|
110
110
|
thenCompareEvents,
|
|
111
111
|
thenEventsWithError,
|
|
112
112
|
thenError,
|
|
113
|
-
|
|
113
|
+
thenForbidden,
|
|
114
114
|
}
|
|
115
115
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Customer$OrderingPlugin from "../../../src/Customer/Aggregate/Customer.res.mjs";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
5
|
+
import * as Customer_Decision$OrderingPlugin from "../../../src/Customer/Aggregate/Customer_Decision.res.mjs";
|
|
6
6
|
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
|
|
9
9
|
name: Customer$OrderingPlugin.name,
|
|
10
10
|
commandSchema: Customer$OrderingPlugin.commandSchema,
|
|
11
11
|
eventSchema: Customer$OrderingPlugin.eventSchema,
|
|
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
|
|
|
19
19
|
errorSchema: Customer$OrderingPlugin.errorSchema,
|
|
20
20
|
authorizationOf: Customer$OrderingPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
|
-
initialState:
|
|
23
|
-
evolve:
|
|
24
|
-
decide:
|
|
22
|
+
initialState: Customer_Decision$OrderingPlugin.initialState,
|
|
23
|
+
evolve: Customer_Decision$OrderingPlugin.evolve,
|
|
24
|
+
decide: Customer_Decision$OrderingPlugin.decide,
|
|
25
25
|
snapshot: undefined,
|
|
26
|
-
moduleUrl:
|
|
26
|
+
moduleUrl: Customer_Decision$OrderingPlugin.moduleUrl
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
let describe = include.describe;
|
|
@@ -40,7 +40,7 @@ let thenNoEvent = include.thenNoEvent;
|
|
|
40
40
|
|
|
41
41
|
let thenError = include.thenError;
|
|
42
42
|
|
|
43
|
-
describe("Customer
|
|
43
|
+
describe("Customer Decision", () => {
|
|
44
44
|
test("Register on new aggregate produces Registered", () => thenEvent(whenCmd(givenEvents([]), {
|
|
45
45
|
TAG: "Register",
|
|
46
46
|
email: Ordering_Examples$OrderingPlugin.aliceEmail,
|
|
@@ -160,7 +160,7 @@ let thenCompareEvents = include.thenCompareEvents;
|
|
|
160
160
|
|
|
161
161
|
let thenEventsWithError = include.thenEventsWithError;
|
|
162
162
|
|
|
163
|
-
let
|
|
163
|
+
let thenForbidden = include.thenForbidden;
|
|
164
164
|
|
|
165
165
|
export {
|
|
166
166
|
Spec,
|
|
@@ -178,6 +178,6 @@ export {
|
|
|
178
178
|
thenCompareEvents,
|
|
179
179
|
thenEventsWithError,
|
|
180
180
|
thenError,
|
|
181
|
-
|
|
181
|
+
thenForbidden,
|
|
182
182
|
}
|
|
183
183
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// `Mapping_GWT` exercises Order's self-mapping (auto-ship on placement).
|
|
2
|
-
// Bare `@@reventless.gwt` would derive the
|
|
2
|
+
// Bare `@@reventless.gwt` would derive the Decision DSL from the Aggregate
|
|
3
3
|
// folder; the cross-pattern Mapping DSL is wired explicitly instead.
|
|
4
4
|
//
|
|
5
5
|
// Self-mappings need the target's per-id history pre-seeded with the
|
|
6
6
|
// source-emitted event, since Mapping_GWT models source and target as
|
|
7
7
|
// independent aggregates even when they're the same one in production.
|
|
8
8
|
|
|
9
|
-
module OrderSource = ReventlessGwt.Mapping_GWT.
|
|
10
|
-
module OrderTarget = ReventlessGwt.Mapping_GWT.
|
|
9
|
+
module OrderSource = ReventlessGwt.Mapping_GWT.FromDecision(Order, Order_Decision)
|
|
10
|
+
module OrderTarget = ReventlessGwt.Mapping_GWT.FromDecision(Order, Order_Decision)
|
|
11
11
|
|
|
12
12
|
module AutoShipGwtMapping = {
|
|
13
13
|
module Source = OrderSource
|
|
@@ -5,10 +5,10 @@ import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-aggregates-ca
|
|
|
5
5
|
import * as OrderId$OrderingPlugin from "../../../src/Order/OrderId.res.mjs";
|
|
6
6
|
import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
|
|
7
7
|
import * as Mapping_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Mapping_GWT.res.mjs";
|
|
8
|
-
import * as
|
|
8
|
+
import * as Order_Decision$OrderingPlugin from "../../../src/Order/Aggregate/Order_Decision.res.mjs";
|
|
9
9
|
import * as Order_Mappings$OrderingPlugin from "../../../src/Order/Aggregate/Order_Mappings.res.mjs";
|
|
10
10
|
|
|
11
|
-
let OrderSource = Mapping_GWT$ReventlessGwt.
|
|
11
|
+
let OrderSource = Mapping_GWT$ReventlessGwt.FromDecision({
|
|
12
12
|
Id: OrderId$OrderingPlugin,
|
|
13
13
|
name: Order$OrderingPlugin.name,
|
|
14
14
|
eventSchema: Order$OrderingPlugin.eventSchema,
|
|
@@ -30,14 +30,14 @@ let OrderSource = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
30
30
|
commandTransition: Order$OrderingPlugin.commandTransition,
|
|
31
31
|
traits: Order$OrderingPlugin.traits
|
|
32
32
|
},
|
|
33
|
-
initialState:
|
|
34
|
-
evolve:
|
|
35
|
-
decide:
|
|
33
|
+
initialState: Order_Decision$OrderingPlugin.initialState,
|
|
34
|
+
evolve: Order_Decision$OrderingPlugin.evolve,
|
|
35
|
+
decide: Order_Decision$OrderingPlugin.decide,
|
|
36
36
|
snapshot: undefined,
|
|
37
|
-
moduleUrl:
|
|
37
|
+
moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
let OrderTarget = Mapping_GWT$ReventlessGwt.
|
|
40
|
+
let OrderTarget = Mapping_GWT$ReventlessGwt.FromDecision({
|
|
41
41
|
Id: OrderId$OrderingPlugin,
|
|
42
42
|
name: Order$OrderingPlugin.name,
|
|
43
43
|
eventSchema: Order$OrderingPlugin.eventSchema,
|
|
@@ -59,11 +59,11 @@ let OrderTarget = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
59
59
|
commandTransition: Order$OrderingPlugin.commandTransition,
|
|
60
60
|
traits: Order$OrderingPlugin.traits
|
|
61
61
|
},
|
|
62
|
-
initialState:
|
|
63
|
-
evolve:
|
|
64
|
-
decide:
|
|
62
|
+
initialState: Order_Decision$OrderingPlugin.initialState,
|
|
63
|
+
evolve: Order_Decision$OrderingPlugin.evolve,
|
|
64
|
+
decide: Order_Decision$OrderingPlugin.decide,
|
|
65
65
|
snapshot: undefined,
|
|
66
|
-
moduleUrl:
|
|
66
|
+
moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
let map = Order_Mappings$OrderingPlugin.AutoShipMapping.map;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ let cust1 = CustomerId.make("cust-1")
|
|
|
7
7
|
let prod1 = CatalogSpec.ProductId.make("prod-1")
|
|
8
8
|
let prod2 = CatalogSpec.ProductId.make("prod-2")
|
|
9
9
|
|
|
10
|
-
describe("Order
|
|
10
|
+
describe("Order Decision", () => {
|
|
11
11
|
// scenario-id: 4f723805-10e2-4b72-b40a-6cf71e91c375
|
|
12
12
|
test("Place on new aggregate produces Placed", () =>
|
|
13
13
|
givenEvents([])
|