@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
|
@@ -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,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1792571245529)
|
|
2
|
+
#Done(1792571253101)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmi → Customer_Decision-OrderingPlugin.cmi}
RENAMED
|
Binary file
|
package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmt → Customer_Decision-OrderingPlugin.cmt}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Order_GWT.ast
CHANGED
|
Binary file
|
package/lib/ocaml/Order_GWT.res
CHANGED
|
@@ -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([])
|
|
Binary file
|
|
Binary file
|
|
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
|
|
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
|
package/lib/ocaml/Plugin.ast
CHANGED
|
Binary file
|
package/lib/ocaml/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(
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/online-shop-aggregates-ordering",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.282",
|
|
4
4
|
"description": "Online Shop example — Ordering plugin (Customer & Order aggregates)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"sury": "11.0.0",
|
|
24
|
-
"@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.
|
|
24
|
+
"@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.169",
|
|
25
|
+
"@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.169",
|
|
25
26
|
"@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
|
|
26
|
-
"@reventlessdev/reventless-
|
|
27
|
-
"@reventlessdev/reventless-
|
|
28
|
-
"@reventlessdev/reventless-local": "3.0.0-alpha.
|
|
29
|
-
"@reventlessdev/
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.169"
|
|
27
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.249",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.198",
|
|
29
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.292",
|
|
30
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.170"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"rescript": "12.3.1",
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
package/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(
|
package/src/Plugin.res.mjs
CHANGED
|
@@ -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,
|