@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.225 → 3.0.0-alpha.227
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 +32 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmj +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Orders_Extension.ast +0 -0
- package/lib/bs/src/Extension/Orders_Extension.res +1 -0
- package/lib/bs/src/Extension/Orders_Extension.res.mjs +15 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping.ast +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping.res.mjs +15 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Plugin.res.mjs +9 -3
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT.res.mjs +3 -1
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +3 -1
- package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmj +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension.ast +0 -0
- package/lib/ocaml/Orders_Extension.res +1 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping.ast +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
- package/package.json +8 -8
- package/src/Extension/Orders_Extension.res +1 -0
- package/src/Extension/Orders_Extension.res.mjs +15 -0
- package/src/ExtensionPoint/Products_ExtensionPointMapping.res.mjs +15 -0
- package/src/Plugin.res.mjs +9 -3
- package/tests/Extension/Orders_Extension_GWT.res.mjs +3 -1
- package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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
|
+
# 3.0.0-alpha.227 (2026-08-27)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **ppx:** follow a let-bound action array merged into an arm's result ([230c72e](https://github.com/ReventlessDev/reventless-core/commit/230c72e25856d8ed20d0860e742b133b2c672d4a))
|
|
11
|
+
* feat(spec)!: reflect the command direction across a port, both halves ([f2fe258](https://github.com/ReventlessDev/reventless-core/commit/f2fe258d195b74f4a61488edee305665341020ea))
|
|
12
|
+
* feat(spec)!: read the port's translation table off the mapping's arms ([956348a](https://github.com/ReventlessDev/reventless-core/commit/956348a9fcb256cfff9db51809bdc27d73360e6c))
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* `ExtensionPointMapping.Mapping` gains `acceptedCommands` and
|
|
17
|
+
`ExtensionMapping.Mapping` gains `issuedCommands`; both are derived, so a
|
|
18
|
+
mapping the ppx can read needs no source change, and one it cannot names itself
|
|
19
|
+
at compile time. Definitions persisted before the two new def fields must be
|
|
20
|
+
re-emitted before a consumer can read them as present — and until then they
|
|
21
|
+
decode as None, which means unknown, not "issues nothing".
|
|
22
|
+
* `ExtensionPointMapping.Mapping` requires `publishedEvents` and
|
|
23
|
+
`ExtensionMapping.Mapping` requires `handledEvents`; the ppx injects both for
|
|
24
|
+
mappings it can read, so app code must build against the matching ppx. Plugin
|
|
25
|
+
definitions persisted before the new fields must be re-emitted before a consumer
|
|
26
|
+
reads them as present.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# 3.0.0-alpha.226 (2026-08-23)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# 3.0.0-alpha.225 (2026-08-23)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1787790324850)
|
|
2
|
+
#Done(1787790329901)
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "75e3a59c95cc953608fd3dd6ea6ed68141bba4414a20a52f114261b8a48385fa",
|
|
5
5
|
"rescript_config_hash": "50d5358a2cbe328e82ae9b442e4615b86dbfe6b2ce05e9eca04a0c78da0e4708",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1787790329905"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -24,11 +24,26 @@ function mapIncomingEvent(_id, event, _meta, _pluginDef, _queryEngine) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
let handledEvents = [
|
|
28
|
+
{
|
|
29
|
+
name: "ItemOrdered",
|
|
30
|
+
toCommandTypes: ["Record"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "ItemOrderCancelled",
|
|
34
|
+
toCommandTypes: ["Revoke"]
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
let issuedCommands = [];
|
|
39
|
+
|
|
27
40
|
let Mapping = {
|
|
28
41
|
ExtensionPoint: undefined,
|
|
29
42
|
Delegate: undefined,
|
|
30
43
|
mapIncomingEvent: mapIncomingEvent,
|
|
31
44
|
mapOutgoingEvent: undefined,
|
|
45
|
+
handledEvents: handledEvents,
|
|
46
|
+
issuedCommands: issuedCommands,
|
|
32
47
|
delegateModuleUrl: ProductDemand$CatalogPlugin.moduleUrl,
|
|
33
48
|
moduleUrl: "@reventlessdev/online-shop-aggregates-catalog/src/Extension/Orders_Extension.res.mjs"
|
|
34
49
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -33,6 +33,19 @@ let mapOutgoingEvent = (id, event, _meta, _queryEngine) => {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
let publishedEvents = [
|
|
37
|
+
{
|
|
38
|
+
name: "ProductBecameAvailable",
|
|
39
|
+
fromEventTypes: ["Added"]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "ProductPriceChanged",
|
|
43
|
+
fromEventTypes: ["PriceUpdated"]
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
let acceptedCommands = [];
|
|
48
|
+
|
|
36
49
|
let name = "Products";
|
|
37
50
|
|
|
38
51
|
let Id;
|
|
@@ -51,5 +64,7 @@ export {
|
|
|
51
64
|
mapIncomingCommand,
|
|
52
65
|
mapOutgoingEvent,
|
|
53
66
|
moduleUrl,
|
|
67
|
+
publishedEvents,
|
|
68
|
+
acceptedCommands,
|
|
54
69
|
}
|
|
55
70
|
/* No side effect */
|
|
Binary file
|
|
Binary file
|
|
@@ -142,7 +142,9 @@ function Make(Platform) {
|
|
|
142
142
|
},
|
|
143
143
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
144
144
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
145
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
145
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
146
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
147
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
146
148
|
});
|
|
147
149
|
let Orders_Extension = Platform.Extension.Make({
|
|
148
150
|
ExtensionPoint: {
|
|
@@ -164,7 +166,9 @@ function Make(Platform) {
|
|
|
164
166
|
moduleUrl: Orders_Extension$CatalogPlugin.Mapping.moduleUrl,
|
|
165
167
|
delegateModuleUrl: Orders_Extension$CatalogPlugin.Mapping.delegateModuleUrl,
|
|
166
168
|
mapIncomingEvent: Orders_Extension$CatalogPlugin.Mapping.mapIncomingEvent,
|
|
167
|
-
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent
|
|
169
|
+
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent,
|
|
170
|
+
handledEvents: Orders_Extension$CatalogPlugin.Mapping.handledEvents,
|
|
171
|
+
issuedCommands: Orders_Extension$CatalogPlugin.Mapping.issuedCommands
|
|
168
172
|
});
|
|
169
173
|
let pluginStructure = Platform.Plugin.makePluginDefinition("Catalog", [
|
|
170
174
|
CategoryAggregate,
|
|
@@ -193,7 +197,9 @@ function Make(Platform) {
|
|
|
193
197
|
},
|
|
194
198
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
195
199
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
196
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
200
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
201
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
202
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
197
203
|
}], Object.fromEntries([
|
|
198
204
|
[
|
|
199
205
|
"Categories",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -26,7 +26,9 @@ let include = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
26
26
|
moduleUrl: Orders_Extension$CatalogPlugin.Mapping.moduleUrl,
|
|
27
27
|
delegateModuleUrl: Orders_Extension$CatalogPlugin.Mapping.delegateModuleUrl,
|
|
28
28
|
mapIncomingEvent: Orders_Extension$CatalogPlugin.Mapping.mapIncomingEvent,
|
|
29
|
-
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent
|
|
29
|
+
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent,
|
|
30
|
+
handledEvents: Orders_Extension$CatalogPlugin.Mapping.handledEvents,
|
|
31
|
+
issuedCommands: Orders_Extension$CatalogPlugin.Mapping.issuedCommands
|
|
30
32
|
});
|
|
31
33
|
|
|
32
34
|
let describe = include.describe;
|
|
Binary file
|
|
Binary file
|
|
@@ -25,7 +25,9 @@ let include = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
25
25
|
},
|
|
26
26
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
27
27
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
28
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
28
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
29
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
30
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
29
31
|
});
|
|
30
32
|
|
|
31
33
|
let describe = include.describe;
|
|
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(1787790324850)
|
|
2
|
+
#Done(1787790329901)
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/online-shop-aggregates-catalog",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.227",
|
|
4
4
|
"description": "Online Shop example — Catalog plugin (Product & Category aggregates)",
|
|
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-aggregates-
|
|
24
|
+
"@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.123",
|
|
25
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.198",
|
|
26
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.152",
|
|
25
27
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
|
|
26
|
-
"@reventlessdev/reventless-
|
|
27
|
-
"@reventlessdev/
|
|
28
|
-
"@reventlessdev/
|
|
29
|
-
"@reventlessdev/reventless-local": "3.0.0-alpha.237",
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.123"
|
|
28
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.239",
|
|
29
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.124",
|
|
30
|
+
"@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.123"
|
|
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.74"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"rescript": "12.3.0"
|
|
@@ -24,11 +24,26 @@ function mapIncomingEvent(_id, event, _meta, _pluginDef, _queryEngine) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
let handledEvents = [
|
|
28
|
+
{
|
|
29
|
+
name: "ItemOrdered",
|
|
30
|
+
toCommandTypes: ["Record"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "ItemOrderCancelled",
|
|
34
|
+
toCommandTypes: ["Revoke"]
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
let issuedCommands = [];
|
|
39
|
+
|
|
27
40
|
let Mapping = {
|
|
28
41
|
ExtensionPoint: undefined,
|
|
29
42
|
Delegate: undefined,
|
|
30
43
|
mapIncomingEvent: mapIncomingEvent,
|
|
31
44
|
mapOutgoingEvent: undefined,
|
|
45
|
+
handledEvents: handledEvents,
|
|
46
|
+
issuedCommands: issuedCommands,
|
|
32
47
|
delegateModuleUrl: ProductDemand$CatalogPlugin.moduleUrl,
|
|
33
48
|
moduleUrl: "@reventlessdev/online-shop-aggregates-catalog/src/Extension/Orders_Extension.res.mjs"
|
|
34
49
|
};
|
|
@@ -33,6 +33,19 @@ let mapOutgoingEvent = (id, event, _meta, _queryEngine) => {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
let publishedEvents = [
|
|
37
|
+
{
|
|
38
|
+
name: "ProductBecameAvailable",
|
|
39
|
+
fromEventTypes: ["Added"]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "ProductPriceChanged",
|
|
43
|
+
fromEventTypes: ["PriceUpdated"]
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
let acceptedCommands = [];
|
|
48
|
+
|
|
36
49
|
let name = "Products";
|
|
37
50
|
|
|
38
51
|
let Id;
|
|
@@ -51,5 +64,7 @@ export {
|
|
|
51
64
|
mapIncomingCommand,
|
|
52
65
|
mapOutgoingEvent,
|
|
53
66
|
moduleUrl,
|
|
67
|
+
publishedEvents,
|
|
68
|
+
acceptedCommands,
|
|
54
69
|
}
|
|
55
70
|
/* No side effect */
|
package/src/Plugin.res.mjs
CHANGED
|
@@ -142,7 +142,9 @@ function Make(Platform) {
|
|
|
142
142
|
},
|
|
143
143
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
144
144
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
145
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
145
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
146
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
147
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
146
148
|
});
|
|
147
149
|
let Orders_Extension = Platform.Extension.Make({
|
|
148
150
|
ExtensionPoint: {
|
|
@@ -164,7 +166,9 @@ function Make(Platform) {
|
|
|
164
166
|
moduleUrl: Orders_Extension$CatalogPlugin.Mapping.moduleUrl,
|
|
165
167
|
delegateModuleUrl: Orders_Extension$CatalogPlugin.Mapping.delegateModuleUrl,
|
|
166
168
|
mapIncomingEvent: Orders_Extension$CatalogPlugin.Mapping.mapIncomingEvent,
|
|
167
|
-
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent
|
|
169
|
+
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent,
|
|
170
|
+
handledEvents: Orders_Extension$CatalogPlugin.Mapping.handledEvents,
|
|
171
|
+
issuedCommands: Orders_Extension$CatalogPlugin.Mapping.issuedCommands
|
|
168
172
|
});
|
|
169
173
|
let pluginStructure = Platform.Plugin.makePluginDefinition("Catalog", [
|
|
170
174
|
CategoryAggregate,
|
|
@@ -193,7 +197,9 @@ function Make(Platform) {
|
|
|
193
197
|
},
|
|
194
198
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
195
199
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
196
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
200
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
201
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
202
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
197
203
|
}], Object.fromEntries([
|
|
198
204
|
[
|
|
199
205
|
"Categories",
|
|
@@ -26,7 +26,9 @@ let include = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
26
26
|
moduleUrl: Orders_Extension$CatalogPlugin.Mapping.moduleUrl,
|
|
27
27
|
delegateModuleUrl: Orders_Extension$CatalogPlugin.Mapping.delegateModuleUrl,
|
|
28
28
|
mapIncomingEvent: Orders_Extension$CatalogPlugin.Mapping.mapIncomingEvent,
|
|
29
|
-
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent
|
|
29
|
+
mapOutgoingEvent: Orders_Extension$CatalogPlugin.Mapping.mapOutgoingEvent,
|
|
30
|
+
handledEvents: Orders_Extension$CatalogPlugin.Mapping.handledEvents,
|
|
31
|
+
issuedCommands: Orders_Extension$CatalogPlugin.Mapping.issuedCommands
|
|
30
32
|
});
|
|
31
33
|
|
|
32
34
|
let describe = include.describe;
|
|
@@ -25,7 +25,9 @@ let include = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
25
25
|
},
|
|
26
26
|
moduleUrl: Products_ExtensionPointMapping$CatalogPlugin.moduleUrl,
|
|
27
27
|
mapIncomingCommand: Products_ExtensionPointMapping$CatalogPlugin.mapIncomingCommand,
|
|
28
|
-
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent
|
|
28
|
+
mapOutgoingEvent: Products_ExtensionPointMapping$CatalogPlugin.mapOutgoingEvent,
|
|
29
|
+
publishedEvents: Products_ExtensionPointMapping$CatalogPlugin.publishedEvents,
|
|
30
|
+
acceptedCommands: Products_ExtensionPointMapping$CatalogPlugin.acceptedCommands
|
|
29
31
|
});
|
|
30
32
|
|
|
31
33
|
let describe = include.describe;
|