@reventlessdev/online-shop-aggregates-ordering 3.0.0-alpha.281 → 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 +14 -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
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -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;
|
|
@@ -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([])
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import * as Order$OrderingPlugin from "../../../src/Order/Aggregate/Order.res.mjs";
|
|
4
4
|
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-aggregates-catalog-spec/src/ProductId.res.mjs";
|
|
5
5
|
import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
6
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
7
|
+
import * as Order_Decision$OrderingPlugin from "../../../src/Order/Aggregate/Order_Decision.res.mjs";
|
|
8
8
|
import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
|
|
9
9
|
|
|
10
|
-
let include =
|
|
10
|
+
let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
|
|
11
11
|
name: Order$OrderingPlugin.name,
|
|
12
12
|
commandSchema: Order$OrderingPlugin.commandSchema,
|
|
13
13
|
eventSchema: Order$OrderingPlugin.eventSchema,
|
|
@@ -21,11 +21,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
|
|
|
21
21
|
errorSchema: Order$OrderingPlugin.errorSchema,
|
|
22
22
|
authorizationOf: Order$OrderingPlugin.authorizationOf
|
|
23
23
|
},
|
|
24
|
-
initialState:
|
|
25
|
-
evolve:
|
|
26
|
-
decide:
|
|
24
|
+
initialState: Order_Decision$OrderingPlugin.initialState,
|
|
25
|
+
evolve: Order_Decision$OrderingPlugin.evolve,
|
|
26
|
+
decide: Order_Decision$OrderingPlugin.decide,
|
|
27
27
|
snapshot: undefined,
|
|
28
|
-
moduleUrl:
|
|
28
|
+
moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
let describe = include.describe;
|
|
@@ -48,7 +48,7 @@ let prod1 = ProductId$CatalogSpec.make("prod-1");
|
|
|
48
48
|
|
|
49
49
|
let prod2 = ProductId$CatalogSpec.make("prod-2");
|
|
50
50
|
|
|
51
|
-
describe("Order
|
|
51
|
+
describe("Order Decision", () => {
|
|
52
52
|
test("Place on new aggregate produces Placed", () => thenEvent(whenCmd(givenEvents([]), {
|
|
53
53
|
TAG: "Place",
|
|
54
54
|
customerId: cust1,
|
|
@@ -229,7 +229,7 @@ let thenCompareEvents = include.thenCompareEvents;
|
|
|
229
229
|
|
|
230
230
|
let thenEventsWithError = include.thenEventsWithError;
|
|
231
231
|
|
|
232
|
-
let
|
|
232
|
+
let thenForbidden = include.thenForbidden;
|
|
233
233
|
|
|
234
234
|
export {
|
|
235
235
|
Spec,
|
|
@@ -247,7 +247,7 @@ export {
|
|
|
247
247
|
thenCompareEvents,
|
|
248
248
|
thenEventsWithError,
|
|
249
249
|
thenError,
|
|
250
|
-
|
|
250
|
+
thenForbidden,
|
|
251
251
|
cust1,
|
|
252
252
|
prod1,
|
|
253
253
|
prod2,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmj → Customer_Decision-OrderingPlugin.cmj}
RENAMED
|
File without changes
|
|
File without changes
|