@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.231 → 1.0.0-alpha.232
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 +8 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChangeSlice/RegisterCustomer_Behavior-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/Order/AutomationSlice/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/AutomationSlice/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/AutomationSlice/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/AutomationSlice/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder-OrderingPlugin.cmj +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder.ast +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder.res +10 -1
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder.res.mjs +9 -16
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder-OrderingPlugin.cmj +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder.ast +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder.res +10 -1
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder.res.mjs +9 -16
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChangeSlice/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateChangeSlice/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateChangeSlice/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateViewSlice/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateViewSlice/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChangeSlice/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateViewSlice/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateViewSlice/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/AutomationSlice/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/AutomationSlice/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/OutboundTranslationSlice/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/OutboundTranslationSlice/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChangeSlice/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateViewSlice/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateViewSlice/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder.ast +0 -0
- package/lib/ocaml/CancelOrder.res +10 -1
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_GWT-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/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/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/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmj +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder.ast +0 -0
- package/lib/ocaml/ShipOrder.res +10 -1
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/package.json +8 -8
- package/src/Order/StateChangeSlice/CancelOrder.res +10 -1
- package/src/Order/StateChangeSlice/CancelOrder.res.mjs +9 -16
- package/src/Order/StateChangeSlice/ShipOrder.res +10 -1
- package/src/Order/StateChangeSlice/ShipOrder.res.mjs +9 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.0.0-alpha.232 (2026-09-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 1.0.0-alpha.231 (2026-09-01)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1788306939055)
|
|
2
|
+
#Done(1788306941391)
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "75e3a59c95cc953608fd3dd6ea6ed68141bba4414a20a52f114261b8a48385fa",
|
|
5
5
|
"rescript_config_hash": "2b45634c4ef9d26c69e2cd8282eb5d077ce9cf087ded0065001d0f0d889e241c",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1788306941393"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct_Behavior-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateChangeSlice/SyncCatalogProduct_Behavior-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts_Projection-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CatalogProduct/StateViewSlice/AvailableProducts_Projection-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| CancelOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -23,3 +23,12 @@ type event = OrderCancelled({
|
|
|
23
23
|
@partitionTag orderId: string,
|
|
24
24
|
productIds: array<string>,
|
|
25
25
|
})
|
|
26
|
+
|
|
27
|
+
type lifecycleState = Orders.lifecycle
|
|
28
|
+
|
|
29
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
30
|
+
open Reventless.Transition
|
|
31
|
+
switch command {
|
|
32
|
+
| CancelOrder(_) => Moves([Orders.Placed], Orders.Cancelled)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
|
-
import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
|
|
6
5
|
|
|
7
6
|
let consumedEventSchema = Sury.union([
|
|
8
7
|
Sury.$schema(s => ({
|
|
@@ -29,24 +28,18 @@ let eventSchema = Sury.$schema(s => ({
|
|
|
29
28
|
productIds: s.m(Sury.array(DcbTag$Reventless.stringForKey("productId")))
|
|
30
29
|
}));
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"Cancelled"
|
|
40
|
-
]]);
|
|
31
|
+
function commandTransition(command) {
|
|
32
|
+
return {
|
|
33
|
+
TAG: "Moves",
|
|
34
|
+
_0: ["Placed"],
|
|
35
|
+
_1: "Cancelled"
|
|
36
|
+
};
|
|
37
|
+
}
|
|
41
38
|
|
|
42
39
|
function commandAuthorization(param) {
|
|
43
40
|
return "AllowAuthenticated";
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
function commandTransition(param) {
|
|
47
|
-
return "Unrestricted";
|
|
48
|
-
}
|
|
49
|
-
|
|
50
43
|
let traits = [];
|
|
51
44
|
|
|
52
45
|
let name = "CancelOrder";
|
|
@@ -61,13 +54,13 @@ export {
|
|
|
61
54
|
name,
|
|
62
55
|
Id,
|
|
63
56
|
consumedEventSchema,
|
|
57
|
+
commandSchema,
|
|
64
58
|
errorSchema,
|
|
65
59
|
eventSchema,
|
|
66
|
-
|
|
60
|
+
commandTransition,
|
|
67
61
|
moduleUrl,
|
|
68
62
|
commandAuthorization,
|
|
69
63
|
readConsistency,
|
|
70
|
-
commandTransition,
|
|
71
64
|
traits,
|
|
72
65
|
}
|
|
73
66
|
/* consumedEventSchema Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| ShipOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -19,3 +19,12 @@ type error =
|
|
|
19
19
|
|
|
20
20
|
@schema
|
|
21
21
|
type event = OrderShipped({orderId: string})
|
|
22
|
+
|
|
23
|
+
type lifecycleState = Orders.lifecycle
|
|
24
|
+
|
|
25
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
26
|
+
open Reventless.Transition
|
|
27
|
+
switch command {
|
|
28
|
+
| ShipOrder(_) => Moves([Orders.Placed], Orders.Shipped)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
|
-
import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
|
|
6
5
|
|
|
7
6
|
let consumedEventSchema = Sury.union([
|
|
8
7
|
Sury.literal("OrderPlaced"),
|
|
@@ -25,24 +24,18 @@ let eventSchema = Sury.$schema(s => ({
|
|
|
25
24
|
orderId: s.m(DcbTag$Reventless.string)
|
|
26
25
|
}));
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"Shipped"
|
|
36
|
-
]]);
|
|
27
|
+
function commandTransition(command) {
|
|
28
|
+
return {
|
|
29
|
+
TAG: "Moves",
|
|
30
|
+
_0: ["Placed"],
|
|
31
|
+
_1: "Shipped"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
37
34
|
|
|
38
35
|
function commandAuthorization(param) {
|
|
39
36
|
return "AllowAuthenticated";
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
function commandTransition(param) {
|
|
43
|
-
return "Unrestricted";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
39
|
let traits = [];
|
|
47
40
|
|
|
48
41
|
let name = "ShipOrder";
|
|
@@ -57,13 +50,13 @@ export {
|
|
|
57
50
|
name,
|
|
58
51
|
Id,
|
|
59
52
|
consumedEventSchema,
|
|
53
|
+
commandSchema,
|
|
60
54
|
errorSchema,
|
|
61
55
|
eventSchema,
|
|
62
|
-
|
|
56
|
+
commandTransition,
|
|
63
57
|
moduleUrl,
|
|
64
58
|
commandAuthorization,
|
|
65
59
|
readConsistency,
|
|
66
|
-
commandTransition,
|
|
67
60
|
traits,
|
|
68
61
|
}
|
|
69
62
|
/* consumedEventSchema Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bs/tests/CatalogProduct/StateChangeSlice/SyncCatalogProduct_GWT-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/tests/CatalogProduct/StateChangeSlice/SyncCatalogProduct_GWT-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bs/tests/Order/OutboundTranslationSlice/SendOrderConfirmation_GWT-OrderingPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/tests/Order/OutboundTranslationSlice/SendOrderConfirmation_GWT-OrderingPlugin.cmt
CHANGED
|
Binary file
|
|
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(1788306939055)
|
|
2
|
+
#Done(1788306941391)
|
|
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
|
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| CancelOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -23,3 +23,12 @@ type event = OrderCancelled({
|
|
|
23
23
|
@partitionTag orderId: string,
|
|
24
24
|
productIds: array<string>,
|
|
25
25
|
})
|
|
26
|
+
|
|
27
|
+
type lifecycleState = Orders.lifecycle
|
|
28
|
+
|
|
29
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
30
|
+
open Reventless.Transition
|
|
31
|
+
switch command {
|
|
32
|
+
| CancelOrder(_) => Moves([Orders.Placed], Orders.Cancelled)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
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
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/ShipOrder.ast
CHANGED
|
Binary file
|
package/lib/ocaml/ShipOrder.res
CHANGED
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| ShipOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -19,3 +19,12 @@ type error =
|
|
|
19
19
|
|
|
20
20
|
@schema
|
|
21
21
|
type event = OrderShipped({orderId: string})
|
|
22
|
+
|
|
23
|
+
type lifecycleState = Orders.lifecycle
|
|
24
|
+
|
|
25
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
26
|
+
open Reventless.Transition
|
|
27
|
+
switch command {
|
|
28
|
+
| ShipOrder(_) => Moves([Orders.Placed], Orders.Shipped)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/online-shop-dcb-ordering",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.232",
|
|
4
4
|
"description": "Online Shop example — Ordering bounded context (Customer & Order) using the DCB pattern",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"sury": "11.0.0-rc.2",
|
|
24
|
-
"@reventlessdev/online-shop-dcb-
|
|
24
|
+
"@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.126",
|
|
25
|
+
"@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.126",
|
|
25
26
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
|
|
26
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.
|
|
27
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
28
|
-
"@reventlessdev/
|
|
29
|
-
"@reventlessdev/reventless-local": "3.0.0-alpha.
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.125"
|
|
27
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.200",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.154",
|
|
29
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.126",
|
|
30
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.242"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"rescript": "12.3.0",
|
|
34
34
|
"sury-ppx": "11.0.0-rc.2",
|
|
35
|
-
"@reventlessdev/reventless-ppx": "1.0.0-alpha.
|
|
35
|
+
"@reventlessdev/reventless-ppx": "1.0.0-alpha.76"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"rescript": "12.3.0"
|
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| CancelOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -23,3 +23,12 @@ type event = OrderCancelled({
|
|
|
23
23
|
@partitionTag orderId: string,
|
|
24
24
|
productIds: array<string>,
|
|
25
25
|
})
|
|
26
|
+
|
|
27
|
+
type lifecycleState = Orders.lifecycle
|
|
28
|
+
|
|
29
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
30
|
+
open Reventless.Transition
|
|
31
|
+
switch command {
|
|
32
|
+
| CancelOrder(_) => Moves([Orders.Placed], Orders.Cancelled)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
|
-
import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
|
|
6
5
|
|
|
7
6
|
let consumedEventSchema = Sury.union([
|
|
8
7
|
Sury.$schema(s => ({
|
|
@@ -29,24 +28,18 @@ let eventSchema = Sury.$schema(s => ({
|
|
|
29
28
|
productIds: s.m(Sury.array(DcbTag$Reventless.stringForKey("productId")))
|
|
30
29
|
}));
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"Cancelled"
|
|
40
|
-
]]);
|
|
31
|
+
function commandTransition(command) {
|
|
32
|
+
return {
|
|
33
|
+
TAG: "Moves",
|
|
34
|
+
_0: ["Placed"],
|
|
35
|
+
_1: "Cancelled"
|
|
36
|
+
};
|
|
37
|
+
}
|
|
41
38
|
|
|
42
39
|
function commandAuthorization(param) {
|
|
43
40
|
return "AllowAuthenticated";
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
function commandTransition(param) {
|
|
47
|
-
return "Unrestricted";
|
|
48
|
-
}
|
|
49
|
-
|
|
50
43
|
let traits = [];
|
|
51
44
|
|
|
52
45
|
let name = "CancelOrder";
|
|
@@ -61,13 +54,13 @@ export {
|
|
|
61
54
|
name,
|
|
62
55
|
Id,
|
|
63
56
|
consumedEventSchema,
|
|
57
|
+
commandSchema,
|
|
64
58
|
errorSchema,
|
|
65
59
|
eventSchema,
|
|
66
|
-
|
|
60
|
+
commandTransition,
|
|
67
61
|
moduleUrl,
|
|
68
62
|
commandAuthorization,
|
|
69
63
|
readConsistency,
|
|
70
|
-
commandTransition,
|
|
71
64
|
traits,
|
|
72
65
|
}
|
|
73
66
|
/* consumedEventSchema Not a pure module */
|
|
@@ -10,7 +10,7 @@ type consumedEvent =
|
|
|
10
10
|
|
|
11
11
|
@schema
|
|
12
12
|
type command =
|
|
13
|
-
|
|
|
13
|
+
| ShipOrder({orderId: string})
|
|
14
14
|
|
|
15
15
|
@schema
|
|
16
16
|
type error =
|
|
@@ -19,3 +19,12 @@ type error =
|
|
|
19
19
|
|
|
20
20
|
@schema
|
|
21
21
|
type event = OrderShipped({orderId: string})
|
|
22
|
+
|
|
23
|
+
type lifecycleState = Orders.lifecycle
|
|
24
|
+
|
|
25
|
+
let commandTransition = (command: command): Reventless.Transition.t<lifecycleState> => {
|
|
26
|
+
open Reventless.Transition
|
|
27
|
+
switch command {
|
|
28
|
+
| ShipOrder(_) => Moves([Orders.Placed], Orders.Shipped)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
|
-
import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
|
|
6
5
|
|
|
7
6
|
let consumedEventSchema = Sury.union([
|
|
8
7
|
Sury.literal("OrderPlaced"),
|
|
@@ -25,24 +24,18 @@ let eventSchema = Sury.$schema(s => ({
|
|
|
25
24
|
orderId: s.m(DcbTag$Reventless.string)
|
|
26
25
|
}));
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"Shipped"
|
|
36
|
-
]]);
|
|
27
|
+
function commandTransition(command) {
|
|
28
|
+
return {
|
|
29
|
+
TAG: "Moves",
|
|
30
|
+
_0: ["Placed"],
|
|
31
|
+
_1: "Shipped"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
37
34
|
|
|
38
35
|
function commandAuthorization(param) {
|
|
39
36
|
return "AllowAuthenticated";
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
function commandTransition(param) {
|
|
43
|
-
return "Unrestricted";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
39
|
let traits = [];
|
|
47
40
|
|
|
48
41
|
let name = "ShipOrder";
|
|
@@ -57,13 +50,13 @@ export {
|
|
|
57
50
|
name,
|
|
58
51
|
Id,
|
|
59
52
|
consumedEventSchema,
|
|
53
|
+
commandSchema,
|
|
60
54
|
errorSchema,
|
|
61
55
|
eventSchema,
|
|
62
|
-
|
|
56
|
+
commandTransition,
|
|
63
57
|
moduleUrl,
|
|
64
58
|
commandAuthorization,
|
|
65
59
|
readConsistency,
|
|
66
|
-
commandTransition,
|
|
67
60
|
traits,
|
|
68
61
|
}
|
|
69
62
|
/* consumedEventSchema Not a pure module */
|