@reventlessdev/online-shop-hybrid-ordering 1.0.0-alpha.256 → 1.0.0-alpha.257
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 +11 -0
- package/package.json +9 -9
- package/src/CatalogProduct/StateViewStream/AvailableProducts.res.mjs +4 -1
- package/src/LifecycleModel.res +21 -0
- package/src/LifecycleModel.res.mjs +21 -0
- package/src/Order/StateViewStream/Orders.res.mjs +4 -1
- package/src/Plugin.res +1 -0
- package/src/Plugin.res.mjs +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.257 (2026-09-27)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **examples:** recompile the views a declared Key now marks as [@id](https://github.com/id) ([abe9871](https://github.com/ReventlessDev/reventless-core/commit/abe9871c137297a32d027acfba6c0d64ebf5bd10))
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **core,spec:** an identity the plugin declares is information, not a dangling reference ([30d7917](https://github.com/ReventlessDev/reventless-core/commit/30d7917669ff062439f9c65e5274ab63a2e20de0))
|
|
14
|
+
* **ppx,spec:** a view with no lifecycle field places a creating command by its scenarios ([acfc7fe](https://github.com/ReventlessDev/reventless-core/commit/acfc7feeb4d23d40cddaade7ae177fcd627b3d48))
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 1.0.0-alpha.256 (2026-09-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @reventlessdev/online-shop-hybrid-ordering
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/online-shop-hybrid-ordering",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.257",
|
|
4
4
|
"description": "Online Shop Hybrid example — Ordering plugin (Customer aggregate + Order/CatalogProduct DCB)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"sury": "11.0.0",
|
|
24
|
-
"@reventlessdev/online-shop-hybrid-
|
|
25
|
-
"@reventlessdev/online-shop-hybrid-
|
|
26
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.177",
|
|
24
|
+
"@reventlessdev/online-shop-hybrid-ordering-spec": "1.0.0-alpha.146",
|
|
25
|
+
"@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.147",
|
|
27
26
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
|
|
28
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.
|
|
29
|
-
"@reventlessdev/reventless-
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
31
|
-
"@reventlessdev/
|
|
32
|
-
"@reventlessdev/trait-
|
|
27
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.226",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.178",
|
|
29
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.150",
|
|
30
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.269",
|
|
31
|
+
"@reventlessdev/trait-address-geocoding": "1.0.0-alpha.28",
|
|
32
|
+
"@reventlessdev/trait-notification": "1.0.0-alpha.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"rescript": "12.3.1",
|
|
@@ -38,8 +38,10 @@ let stateSchema = Sury.$schema(s => ({
|
|
|
38
38
|
|
|
39
39
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
40
40
|
|
|
41
|
+
let makeId = (state => state.productId);
|
|
42
|
+
|
|
41
43
|
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
42
|
-
ids: [],
|
|
44
|
+
ids: ["productId"],
|
|
43
45
|
compositeIds: [],
|
|
44
46
|
subIds: [],
|
|
45
47
|
compositeSubIds: [],
|
|
@@ -82,6 +84,7 @@ export {
|
|
|
82
84
|
consumedEventSchema,
|
|
83
85
|
config,
|
|
84
86
|
subIdConfig,
|
|
87
|
+
makeId,
|
|
85
88
|
stateSchema$1 as stateSchema,
|
|
86
89
|
moduleUrl,
|
|
87
90
|
authorization,
|
package/src/LifecycleModel.res
CHANGED
|
@@ -70,6 +70,20 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
70
70
|
allowedStates: ["Active"],
|
|
71
71
|
targets: [],
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
component: "EmailVerificationChallenges",
|
|
75
|
+
command: "IssueEmailChallenge",
|
|
76
|
+
level: Reventless.Plugin.Collection,
|
|
77
|
+
allowedStates: [],
|
|
78
|
+
targets: [],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
component: "NotificationSourceClaims",
|
|
82
|
+
command: "ClaimNotificationSource",
|
|
83
|
+
level: Reventless.Plugin.Collection,
|
|
84
|
+
allowedStates: [],
|
|
85
|
+
targets: [],
|
|
86
|
+
},
|
|
73
87
|
{
|
|
74
88
|
component: "PlaceOrder",
|
|
75
89
|
command: "PlaceOrder",
|
|
@@ -84,4 +98,11 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
84
98
|
allowedStates: ["Placed"],
|
|
85
99
|
targets: ["Shipped"],
|
|
86
100
|
},
|
|
101
|
+
{
|
|
102
|
+
component: "SyncCatalogProduct",
|
|
103
|
+
command: "SyncNewProduct",
|
|
104
|
+
level: Reventless.Plugin.Collection,
|
|
105
|
+
allowedStates: [],
|
|
106
|
+
targets: [],
|
|
107
|
+
},
|
|
87
108
|
]
|
|
@@ -65,6 +65,20 @@ let model = [
|
|
|
65
65
|
allowedStates: ["Active"],
|
|
66
66
|
targets: []
|
|
67
67
|
},
|
|
68
|
+
{
|
|
69
|
+
component: "EmailVerificationChallenges",
|
|
70
|
+
command: "IssueEmailChallenge",
|
|
71
|
+
level: "Collection",
|
|
72
|
+
allowedStates: [],
|
|
73
|
+
targets: []
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
component: "NotificationSourceClaims",
|
|
77
|
+
command: "ClaimNotificationSource",
|
|
78
|
+
level: "Collection",
|
|
79
|
+
allowedStates: [],
|
|
80
|
+
targets: []
|
|
81
|
+
},
|
|
68
82
|
{
|
|
69
83
|
component: "PlaceOrder",
|
|
70
84
|
command: "PlaceOrder",
|
|
@@ -78,6 +92,13 @@ let model = [
|
|
|
78
92
|
level: "Instance",
|
|
79
93
|
allowedStates: ["Placed"],
|
|
80
94
|
targets: ["Shipped"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
component: "SyncCatalogProduct",
|
|
98
|
+
command: "SyncNewProduct",
|
|
99
|
+
level: "Collection",
|
|
100
|
+
allowedStates: [],
|
|
101
|
+
targets: []
|
|
81
102
|
}
|
|
82
103
|
];
|
|
83
104
|
|
|
@@ -94,8 +94,10 @@ let config = ReadModel$Reventless.config(undefined, undefined, [{
|
|
|
94
94
|
derived: true
|
|
95
95
|
}]);
|
|
96
96
|
|
|
97
|
+
let makeId = (state => state.orderId);
|
|
98
|
+
|
|
97
99
|
let stateSchema$2 = Sury.$Metadata_set(stateSchema$1, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
98
|
-
ids: [],
|
|
100
|
+
ids: ["orderId"],
|
|
99
101
|
compositeIds: [],
|
|
100
102
|
subIds: [],
|
|
101
103
|
compositeSubIds: [],
|
|
@@ -147,6 +149,7 @@ export {
|
|
|
147
149
|
lifecycleSchema,
|
|
148
150
|
config,
|
|
149
151
|
subIdConfig,
|
|
152
|
+
makeId,
|
|
150
153
|
stateSchema$2 as stateSchema,
|
|
151
154
|
moduleUrl,
|
|
152
155
|
authorization,
|
package/src/Plugin.res
CHANGED
package/src/Plugin.res.mjs
CHANGED
|
@@ -601,7 +601,10 @@ function Make(Platform) {
|
|
|
601
601
|
"VerifyCustomerEmail",
|
|
602
602
|
"Customer"
|
|
603
603
|
]
|
|
604
|
-
]), LifecycleModel$OrderingPlugin.model
|
|
604
|
+
]), LifecycleModel$OrderingPlugin.model, [
|
|
605
|
+
CustomerId$OrderingPlugin.key,
|
|
606
|
+
OrderId$OrderingPlugin.key
|
|
607
|
+
]);
|
|
605
608
|
let make = () => Platform.Plugin.make("Ordering", 5, [Orders_ExtensionPoint], [Products_Extension], [CustomerAggregate], [CustomersReadModel], undefined, [
|
|
606
609
|
CancelOrderSlice,
|
|
607
610
|
EmailVerificationChallengesSlice,
|