@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.259 → 1.0.0-alpha.260
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/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel.ast +0 -0
- package/lib/bs/src/LifecycleModel.res +14 -0
- package/lib/bs/src/LifecycleModel.res.mjs +14 -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 +1 -0
- package/lib/bs/src/Plugin.res.mjs +4 -1
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateView/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/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-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/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_GWT-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_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_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel.ast +0 -0
- package/lib/ocaml/LifecycleModel.res +14 -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_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/Plugin.ast +0 -0
- package/lib/ocaml/Plugin.res +1 -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_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_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_GWT-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 +7 -7
- package/src/CatalogProduct/StateView/AvailableProducts.res.mjs +4 -1
- package/src/Customer/StateView/Customers.res.mjs +28 -1
- package/src/LifecycleModel.res +14 -0
- package/src/LifecycleModel.res.mjs +14 -0
- package/src/Order/StateView/Orders.res.mjs +28 -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.260 (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.259 (2026-09-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790550467183)
|
|
2
|
+
#Done(1790550470184)
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
|
|
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": "1790550470201"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -21,6 +21,13 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
21
21
|
allowedStates: [],
|
|
22
22
|
targets: ["Placed"],
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
component: "RegisterCustomer",
|
|
26
|
+
command: "RegisterCustomer",
|
|
27
|
+
level: Reventless.Plugin.Collection,
|
|
28
|
+
allowedStates: [],
|
|
29
|
+
targets: [],
|
|
30
|
+
},
|
|
24
31
|
{
|
|
25
32
|
component: "ShipOrder",
|
|
26
33
|
command: "ShipOrder",
|
|
@@ -28,4 +35,11 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
28
35
|
allowedStates: ["Placed"],
|
|
29
36
|
targets: ["Shipped"],
|
|
30
37
|
},
|
|
38
|
+
{
|
|
39
|
+
component: "SyncCatalogProduct",
|
|
40
|
+
command: "SyncNewProduct",
|
|
41
|
+
level: Reventless.Plugin.Collection,
|
|
42
|
+
allowedStates: [],
|
|
43
|
+
targets: [],
|
|
44
|
+
},
|
|
31
45
|
]
|
|
@@ -16,12 +16,26 @@ let model = [
|
|
|
16
16
|
allowedStates: [],
|
|
17
17
|
targets: ["Placed"]
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
component: "RegisterCustomer",
|
|
21
|
+
command: "RegisterCustomer",
|
|
22
|
+
level: "Collection",
|
|
23
|
+
allowedStates: [],
|
|
24
|
+
targets: []
|
|
25
|
+
},
|
|
19
26
|
{
|
|
20
27
|
component: "ShipOrder",
|
|
21
28
|
command: "ShipOrder",
|
|
22
29
|
level: "Instance",
|
|
23
30
|
allowedStates: ["Placed"],
|
|
24
31
|
targets: ["Shipped"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
component: "SyncCatalogProduct",
|
|
35
|
+
command: "SyncNewProduct",
|
|
36
|
+
level: "Collection",
|
|
37
|
+
allowedStates: [],
|
|
38
|
+
targets: []
|
|
25
39
|
}
|
|
26
40
|
];
|
|
27
41
|
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/Plugin.ast
CHANGED
|
Binary file
|
package/lib/bs/src/Plugin.res
CHANGED
|
@@ -449,7 +449,10 @@ function Make(Platform) {
|
|
|
449
449
|
"SyncCatalogProduct",
|
|
450
450
|
"CatalogProduct"
|
|
451
451
|
]
|
|
452
|
-
]), LifecycleModel$OrderingPlugin.model
|
|
452
|
+
]), LifecycleModel$OrderingPlugin.model, [
|
|
453
|
+
CustomerId$OrderingPlugin.key,
|
|
454
|
+
OrderId$OrderingPlugin.key
|
|
455
|
+
]);
|
|
453
456
|
let make = () => Platform.Plugin.make("Ordering", 5, [Orders_ExtensionPoint], [Products_Extension], undefined, undefined, undefined, [
|
|
454
457
|
CancelOrderSlice,
|
|
455
458
|
ChangeAddressSlice,
|
|
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/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790550467183)
|
|
2
|
+
#Done(1790550470184)
|
|
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
|
|
@@ -21,6 +21,13 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
21
21
|
allowedStates: [],
|
|
22
22
|
targets: ["Placed"],
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
component: "RegisterCustomer",
|
|
26
|
+
command: "RegisterCustomer",
|
|
27
|
+
level: Reventless.Plugin.Collection,
|
|
28
|
+
allowedStates: [],
|
|
29
|
+
targets: [],
|
|
30
|
+
},
|
|
24
31
|
{
|
|
25
32
|
component: "ShipOrder",
|
|
26
33
|
command: "ShipOrder",
|
|
@@ -28,4 +35,11 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
28
35
|
allowedStates: ["Placed"],
|
|
29
36
|
targets: ["Shipped"],
|
|
30
37
|
},
|
|
38
|
+
{
|
|
39
|
+
component: "SyncCatalogProduct",
|
|
40
|
+
command: "SyncNewProduct",
|
|
41
|
+
level: Reventless.Plugin.Collection,
|
|
42
|
+
allowedStates: [],
|
|
43
|
+
targets: [],
|
|
44
|
+
},
|
|
31
45
|
]
|
|
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
|
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.260",
|
|
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,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"sury": "11.0.0",
|
|
24
|
-
"@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.
|
|
25
|
-
"@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.
|
|
26
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.225",
|
|
27
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.177",
|
|
24
|
+
"@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.150",
|
|
25
|
+
"@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.150",
|
|
28
26
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
|
|
29
|
-
"@reventlessdev/reventless-
|
|
30
|
-
"@reventlessdev/reventless-
|
|
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
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"rescript": "12.3.1",
|
|
@@ -28,8 +28,10 @@ let consumedEventSchema = Sury.union([
|
|
|
28
28
|
|
|
29
29
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
30
30
|
|
|
31
|
+
let makeId = (state => state.productId);
|
|
32
|
+
|
|
31
33
|
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
32
|
-
ids: [],
|
|
34
|
+
ids: ["productId"],
|
|
33
35
|
compositeIds: [],
|
|
34
36
|
subIds: [],
|
|
35
37
|
compositeSubIds: [],
|
|
@@ -72,6 +74,7 @@ export {
|
|
|
72
74
|
consumedEventSchema,
|
|
73
75
|
config,
|
|
74
76
|
subIdConfig,
|
|
77
|
+
makeId,
|
|
75
78
|
stateSchema$1 as stateSchema,
|
|
76
79
|
moduleUrl,
|
|
77
80
|
authorization,
|
|
@@ -5,6 +5,7 @@ import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/component
|
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as DisplayName$Reventless from "@reventlessdev/reventless-spec/src/components/DisplayName.res.mjs";
|
|
7
7
|
import * as CustomerId$OrderingPlugin from "../CustomerId.res.mjs";
|
|
8
|
+
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
8
9
|
|
|
9
10
|
let stateSchema = Sury.$schema(s => ({
|
|
10
11
|
customerId: s.m(CustomerId$OrderingPlugin.schema),
|
|
@@ -44,6 +45,31 @@ let consumedEventSchema = Sury.union([
|
|
|
44
45
|
|
|
45
46
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
46
47
|
|
|
48
|
+
let makeId = (state => state.customerId);
|
|
49
|
+
|
|
50
|
+
let stateSchema$2 = Sury.$Metadata_set(stateSchema$1, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
51
|
+
ids: ["customerId"],
|
|
52
|
+
compositeIds: [],
|
|
53
|
+
subIds: [],
|
|
54
|
+
compositeSubIds: [],
|
|
55
|
+
indexes: [],
|
|
56
|
+
hidden: [],
|
|
57
|
+
summary: [],
|
|
58
|
+
internal: [],
|
|
59
|
+
drillTargets: [],
|
|
60
|
+
drillTargetKeys: [],
|
|
61
|
+
collapsed: [],
|
|
62
|
+
scan: [],
|
|
63
|
+
scanSort: [],
|
|
64
|
+
semantic: [],
|
|
65
|
+
metric: [],
|
|
66
|
+
lifecycle: undefined,
|
|
67
|
+
groupBy: undefined,
|
|
68
|
+
visibility: undefined,
|
|
69
|
+
live: undefined,
|
|
70
|
+
retired: undefined
|
|
71
|
+
});
|
|
72
|
+
|
|
47
73
|
let name = "Customers";
|
|
48
74
|
|
|
49
75
|
let Id;
|
|
@@ -62,10 +88,11 @@ export {
|
|
|
62
88
|
name,
|
|
63
89
|
Id,
|
|
64
90
|
Key,
|
|
65
|
-
stateSchema$1 as stateSchema,
|
|
66
91
|
consumedEventSchema,
|
|
67
92
|
config,
|
|
68
93
|
subIdConfig,
|
|
94
|
+
makeId,
|
|
95
|
+
stateSchema$2 as stateSchema,
|
|
69
96
|
moduleUrl,
|
|
70
97
|
authorization,
|
|
71
98
|
visibility,
|
package/src/LifecycleModel.res
CHANGED
|
@@ -21,6 +21,13 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
21
21
|
allowedStates: [],
|
|
22
22
|
targets: ["Placed"],
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
component: "RegisterCustomer",
|
|
26
|
+
command: "RegisterCustomer",
|
|
27
|
+
level: Reventless.Plugin.Collection,
|
|
28
|
+
allowedStates: [],
|
|
29
|
+
targets: [],
|
|
30
|
+
},
|
|
24
31
|
{
|
|
25
32
|
component: "ShipOrder",
|
|
26
33
|
command: "ShipOrder",
|
|
@@ -28,4 +35,11 @@ let model: array<Reventless.Plugin.derivedEdge> = [
|
|
|
28
35
|
allowedStates: ["Placed"],
|
|
29
36
|
targets: ["Shipped"],
|
|
30
37
|
},
|
|
38
|
+
{
|
|
39
|
+
component: "SyncCatalogProduct",
|
|
40
|
+
command: "SyncNewProduct",
|
|
41
|
+
level: Reventless.Plugin.Collection,
|
|
42
|
+
allowedStates: [],
|
|
43
|
+
targets: [],
|
|
44
|
+
},
|
|
31
45
|
]
|
|
@@ -16,12 +16,26 @@ let model = [
|
|
|
16
16
|
allowedStates: [],
|
|
17
17
|
targets: ["Placed"]
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
component: "RegisterCustomer",
|
|
21
|
+
command: "RegisterCustomer",
|
|
22
|
+
level: "Collection",
|
|
23
|
+
allowedStates: [],
|
|
24
|
+
targets: []
|
|
25
|
+
},
|
|
19
26
|
{
|
|
20
27
|
component: "ShipOrder",
|
|
21
28
|
command: "ShipOrder",
|
|
22
29
|
level: "Instance",
|
|
23
30
|
allowedStates: ["Placed"],
|
|
24
31
|
targets: ["Shipped"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
component: "SyncCatalogProduct",
|
|
35
|
+
command: "SyncNewProduct",
|
|
36
|
+
level: "Collection",
|
|
37
|
+
allowedStates: [],
|
|
38
|
+
targets: []
|
|
25
39
|
}
|
|
26
40
|
];
|
|
27
41
|
|
|
@@ -6,6 +6,7 @@ import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/compon
|
|
|
6
6
|
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
7
7
|
import * as OrderId$OrderingPlugin from "../OrderId.res.mjs";
|
|
8
8
|
import * as CustomerId$OrderingPlugin from "../../Customer/CustomerId.res.mjs";
|
|
9
|
+
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
9
10
|
|
|
10
11
|
let lifecycleSchema = Sury.union([
|
|
11
12
|
Sury.literal("Placed"),
|
|
@@ -39,6 +40,31 @@ let consumedEventSchema = Sury.union([
|
|
|
39
40
|
|
|
40
41
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
41
42
|
|
|
43
|
+
let makeId = (state => state.orderId);
|
|
44
|
+
|
|
45
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
46
|
+
ids: ["orderId"],
|
|
47
|
+
compositeIds: [],
|
|
48
|
+
subIds: [],
|
|
49
|
+
compositeSubIds: [],
|
|
50
|
+
indexes: [],
|
|
51
|
+
hidden: [],
|
|
52
|
+
summary: [],
|
|
53
|
+
internal: [],
|
|
54
|
+
drillTargets: [],
|
|
55
|
+
drillTargetKeys: [],
|
|
56
|
+
collapsed: [],
|
|
57
|
+
scan: [],
|
|
58
|
+
scanSort: [],
|
|
59
|
+
semantic: [],
|
|
60
|
+
metric: [],
|
|
61
|
+
lifecycle: undefined,
|
|
62
|
+
groupBy: undefined,
|
|
63
|
+
visibility: undefined,
|
|
64
|
+
live: undefined,
|
|
65
|
+
retired: undefined
|
|
66
|
+
});
|
|
67
|
+
|
|
42
68
|
let name = "Orders";
|
|
43
69
|
|
|
44
70
|
let Id;
|
|
@@ -58,10 +84,11 @@ export {
|
|
|
58
84
|
Id,
|
|
59
85
|
Key,
|
|
60
86
|
lifecycleSchema,
|
|
61
|
-
stateSchema,
|
|
62
87
|
consumedEventSchema,
|
|
63
88
|
config,
|
|
64
89
|
subIdConfig,
|
|
90
|
+
makeId,
|
|
91
|
+
stateSchema$1 as stateSchema,
|
|
65
92
|
moduleUrl,
|
|
66
93
|
authorization,
|
|
67
94
|
visibility,
|
package/src/Plugin.res
CHANGED
package/src/Plugin.res.mjs
CHANGED
|
@@ -449,7 +449,10 @@ function Make(Platform) {
|
|
|
449
449
|
"SyncCatalogProduct",
|
|
450
450
|
"CatalogProduct"
|
|
451
451
|
]
|
|
452
|
-
]), LifecycleModel$OrderingPlugin.model
|
|
452
|
+
]), LifecycleModel$OrderingPlugin.model, [
|
|
453
|
+
CustomerId$OrderingPlugin.key,
|
|
454
|
+
OrderId$OrderingPlugin.key
|
|
455
|
+
]);
|
|
453
456
|
let make = () => Platform.Plugin.make("Ordering", 5, [Orders_ExtensionPoint], [Products_Extension], undefined, undefined, undefined, [
|
|
454
457
|
CancelOrderSlice,
|
|
455
458
|
ChangeAddressSlice,
|