@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.261 → 1.0.0-alpha.263
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 +22 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/LifecycleModel-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel.ast +0 -0
- package/lib/bs/src/LifecycleModel.res +16 -1
- package/lib/bs/src/LifecycleModel.res.mjs +16 -1
- package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.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 +1 -1
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_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/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel.ast +0 -0
- package/lib/ocaml/LifecycleModel.res +16 -1
- 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/Plugin.ast +0 -0
- package/lib/ocaml/Plugin.res +1 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +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/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
- package/package.json +7 -7
- package/src/Category/StateView/Categories.res.mjs +28 -1
- package/src/LifecycleModel.res +16 -1
- package/src/LifecycleModel.res.mjs +16 -1
- package/src/Plugin.res +1 -0
- package/src/Plugin.res.mjs +1 -1
- package/src/Product/StateView/Products.res.mjs +28 -1
- package/src/ProductDemand/StateView/ProductDemand.res.mjs +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.263 (2026-09-28)
|
|
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
|
+
|
|
17
|
+
# 1.0.0-alpha.262 (2026-09-27)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **examples:** recompile the views a declared Key now marks as [@id](https://github.com/id) ([abe9871](https://github.com/ReventlessDev/reventless-core/commit/abe9871c137297a32d027acfba6c0d64ebf5bd10))
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **core,spec:** an identity the plugin declares is information, not a dangling reference ([30d7917](https://github.com/ReventlessDev/reventless-core/commit/30d7917669ff062439f9c65e5274ab63a2e20de0))
|
|
25
|
+
* **ppx,spec:** a view with no lifecycle field places a creating command by its scenarios ([acfc7fe](https://github.com/ReventlessDev/reventless-core/commit/acfc7feeb4d23d40cddaade7ae177fcd627b3d48))
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# 1.0.0-alpha.261 (2026-09-25)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790554755750)
|
|
2
|
+
#Done(1790554758353)
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
"bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
|
|
5
5
|
"rescript_config_hash": "ca6bf04caf4f6b27dbf31b935f934d99c6fe59248cc8b122f9cc48ff2675eb4a",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1790554758370"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -6,4 +6,19 @@
|
|
|
6
6
|
// `@transition` annotation where it says anything, and falls back to the
|
|
7
7
|
// annotation where it is silent.
|
|
8
8
|
|
|
9
|
-
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
9
|
+
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
10
|
+
{
|
|
11
|
+
component: "AddCategory",
|
|
12
|
+
command: "AddCategory",
|
|
13
|
+
level: Reventless.Plugin.Collection,
|
|
14
|
+
allowedStates: [],
|
|
15
|
+
targets: [],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
component: "AddProduct",
|
|
19
|
+
command: "AddProduct",
|
|
20
|
+
level: Reventless.Plugin.Collection,
|
|
21
|
+
allowedStates: [],
|
|
22
|
+
targets: [],
|
|
23
|
+
},
|
|
24
|
+
]
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
let model = [
|
|
4
|
+
let model = [
|
|
5
|
+
{
|
|
6
|
+
component: "AddCategory",
|
|
7
|
+
command: "AddCategory",
|
|
8
|
+
level: "Collection",
|
|
9
|
+
allowedStates: [],
|
|
10
|
+
targets: []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
component: "AddProduct",
|
|
14
|
+
command: "AddProduct",
|
|
15
|
+
level: "Collection",
|
|
16
|
+
allowedStates: [],
|
|
17
|
+
targets: []
|
|
18
|
+
}
|
|
19
|
+
];
|
|
5
20
|
|
|
6
21
|
export {
|
|
7
22
|
model,
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/Plugin.ast
CHANGED
|
Binary file
|
package/lib/bs/src/Plugin.res
CHANGED
|
@@ -447,7 +447,7 @@ function Make(Platform) {
|
|
|
447
447
|
"RenameCategory",
|
|
448
448
|
"Category"
|
|
449
449
|
]
|
|
450
|
-
]), LifecycleModel$CatalogPlugin.model);
|
|
450
|
+
]), LifecycleModel$CatalogPlugin.model, [CategoryId$CatalogPlugin.key]);
|
|
451
451
|
let make = () => Platform.Plugin.make("Catalog", 5, [Products_ExtensionPoint], [Orders_Extension], undefined, [CategoryActivityReadModel], [ImportProductsTask], [
|
|
452
452
|
AddCategorySlice,
|
|
453
453
|
AddProductSlice,
|
|
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(1790554755750)
|
|
2
|
+
#Done(1790554758353)
|
|
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
|
|
@@ -6,4 +6,19 @@
|
|
|
6
6
|
// `@transition` annotation where it says anything, and falls back to the
|
|
7
7
|
// annotation where it is silent.
|
|
8
8
|
|
|
9
|
-
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
9
|
+
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
10
|
+
{
|
|
11
|
+
component: "AddCategory",
|
|
12
|
+
command: "AddCategory",
|
|
13
|
+
level: Reventless.Plugin.Collection,
|
|
14
|
+
allowedStates: [],
|
|
15
|
+
targets: [],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
component: "AddProduct",
|
|
19
|
+
command: "AddProduct",
|
|
20
|
+
level: Reventless.Plugin.Collection,
|
|
21
|
+
allowedStates: [],
|
|
22
|
+
targets: [],
|
|
23
|
+
},
|
|
24
|
+
]
|
|
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-catalog",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.263",
|
|
4
4
|
"description": "Online Shop example — Catalog bounded context (Product & Category) 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.
|
|
24
|
+
"@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.151",
|
|
25
25
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
|
|
26
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.
|
|
27
|
-
"@reventlessdev/
|
|
28
|
-
"@reventlessdev/
|
|
29
|
-
"@reventlessdev/reventless-local": "3.0.0-alpha.
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
26
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.227",
|
|
27
|
+
"@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.151",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.179",
|
|
29
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.270",
|
|
30
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.151"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"rescript": "12.3.1",
|
|
@@ -4,6 +4,7 @@ import * as Sury from "sury";
|
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as CategoryId$CatalogPlugin from "../CategoryId.res.mjs";
|
|
7
|
+
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
7
8
|
|
|
8
9
|
let stateSchema = Sury.$schema(s => ({
|
|
9
10
|
categoryId: s.m(CategoryId$CatalogPlugin.schema),
|
|
@@ -30,6 +31,31 @@ let consumedEventSchema = Sury.union([
|
|
|
30
31
|
|
|
31
32
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
32
33
|
|
|
34
|
+
let makeId = (state => state.categoryId);
|
|
35
|
+
|
|
36
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
37
|
+
ids: ["categoryId"],
|
|
38
|
+
compositeIds: [],
|
|
39
|
+
subIds: [],
|
|
40
|
+
compositeSubIds: [],
|
|
41
|
+
indexes: [],
|
|
42
|
+
hidden: [],
|
|
43
|
+
summary: [],
|
|
44
|
+
internal: [],
|
|
45
|
+
drillTargets: [],
|
|
46
|
+
drillTargetKeys: [],
|
|
47
|
+
collapsed: [],
|
|
48
|
+
scan: [],
|
|
49
|
+
scanSort: [],
|
|
50
|
+
semantic: [],
|
|
51
|
+
metric: [],
|
|
52
|
+
lifecycle: undefined,
|
|
53
|
+
groupBy: undefined,
|
|
54
|
+
visibility: undefined,
|
|
55
|
+
live: undefined,
|
|
56
|
+
retired: undefined
|
|
57
|
+
});
|
|
58
|
+
|
|
33
59
|
let name = "Categories";
|
|
34
60
|
|
|
35
61
|
let Id;
|
|
@@ -48,10 +74,11 @@ export {
|
|
|
48
74
|
name,
|
|
49
75
|
Id,
|
|
50
76
|
Key,
|
|
51
|
-
stateSchema,
|
|
52
77
|
consumedEventSchema,
|
|
53
78
|
config,
|
|
54
79
|
subIdConfig,
|
|
80
|
+
makeId,
|
|
81
|
+
stateSchema$1 as stateSchema,
|
|
55
82
|
moduleUrl,
|
|
56
83
|
authorization,
|
|
57
84
|
visibility,
|
package/src/LifecycleModel.res
CHANGED
|
@@ -6,4 +6,19 @@
|
|
|
6
6
|
// `@transition` annotation where it says anything, and falls back to the
|
|
7
7
|
// annotation where it is silent.
|
|
8
8
|
|
|
9
|
-
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
9
|
+
let model: array<Reventless.Plugin.derivedEdge> = [
|
|
10
|
+
{
|
|
11
|
+
component: "AddCategory",
|
|
12
|
+
command: "AddCategory",
|
|
13
|
+
level: Reventless.Plugin.Collection,
|
|
14
|
+
allowedStates: [],
|
|
15
|
+
targets: [],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
component: "AddProduct",
|
|
19
|
+
command: "AddProduct",
|
|
20
|
+
level: Reventless.Plugin.Collection,
|
|
21
|
+
allowedStates: [],
|
|
22
|
+
targets: [],
|
|
23
|
+
},
|
|
24
|
+
]
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
let model = [
|
|
4
|
+
let model = [
|
|
5
|
+
{
|
|
6
|
+
component: "AddCategory",
|
|
7
|
+
command: "AddCategory",
|
|
8
|
+
level: "Collection",
|
|
9
|
+
allowedStates: [],
|
|
10
|
+
targets: []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
component: "AddProduct",
|
|
14
|
+
command: "AddProduct",
|
|
15
|
+
level: "Collection",
|
|
16
|
+
allowedStates: [],
|
|
17
|
+
targets: []
|
|
18
|
+
}
|
|
19
|
+
];
|
|
5
20
|
|
|
6
21
|
export {
|
|
7
22
|
model,
|
package/src/Plugin.res
CHANGED
package/src/Plugin.res.mjs
CHANGED
|
@@ -447,7 +447,7 @@ function Make(Platform) {
|
|
|
447
447
|
"RenameCategory",
|
|
448
448
|
"Category"
|
|
449
449
|
]
|
|
450
|
-
]), LifecycleModel$CatalogPlugin.model);
|
|
450
|
+
]), LifecycleModel$CatalogPlugin.model, [CategoryId$CatalogPlugin.key]);
|
|
451
451
|
let make = () => Platform.Plugin.make("Catalog", 5, [Products_ExtensionPoint], [Orders_Extension], undefined, [CategoryActivityReadModel], [ImportProductsTask], [
|
|
452
452
|
AddCategorySlice,
|
|
453
453
|
AddProductSlice,
|
|
@@ -4,6 +4,7 @@ import * as Sury from "sury";
|
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
7
|
+
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
7
8
|
|
|
8
9
|
let stateSchema = Sury.$schema(s => ({
|
|
9
10
|
productId: s.m(ProductId$CatalogSpec.schema),
|
|
@@ -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.productId);
|
|
44
|
+
|
|
45
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
46
|
+
ids: ["productId"],
|
|
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 = "Products";
|
|
43
69
|
|
|
44
70
|
let Id;
|
|
@@ -57,10 +83,11 @@ export {
|
|
|
57
83
|
name,
|
|
58
84
|
Id,
|
|
59
85
|
Key,
|
|
60
|
-
stateSchema,
|
|
61
86
|
consumedEventSchema,
|
|
62
87
|
config,
|
|
63
88
|
subIdConfig,
|
|
89
|
+
makeId,
|
|
90
|
+
stateSchema$1 as stateSchema,
|
|
64
91
|
moduleUrl,
|
|
65
92
|
authorization,
|
|
66
93
|
visibility,
|
|
@@ -4,6 +4,7 @@ import * as Sury from "sury";
|
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
7
|
+
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
7
8
|
|
|
8
9
|
let stateSchema = Sury.$schema(s => ({
|
|
9
10
|
productId: s.m(ProductId$CatalogSpec.schema),
|
|
@@ -29,6 +30,31 @@ let consumedEventSchema = Sury.union([
|
|
|
29
30
|
|
|
30
31
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
31
32
|
|
|
33
|
+
let makeId = (state => state.productId);
|
|
34
|
+
|
|
35
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
36
|
+
ids: ["productId"],
|
|
37
|
+
compositeIds: [],
|
|
38
|
+
subIds: [],
|
|
39
|
+
compositeSubIds: [],
|
|
40
|
+
indexes: [],
|
|
41
|
+
hidden: [],
|
|
42
|
+
summary: [],
|
|
43
|
+
internal: [],
|
|
44
|
+
drillTargets: [],
|
|
45
|
+
drillTargetKeys: [],
|
|
46
|
+
collapsed: [],
|
|
47
|
+
scan: [],
|
|
48
|
+
scanSort: [],
|
|
49
|
+
semantic: [],
|
|
50
|
+
metric: [],
|
|
51
|
+
lifecycle: undefined,
|
|
52
|
+
groupBy: undefined,
|
|
53
|
+
visibility: undefined,
|
|
54
|
+
live: undefined,
|
|
55
|
+
retired: undefined
|
|
56
|
+
});
|
|
57
|
+
|
|
32
58
|
let name = "ProductDemand";
|
|
33
59
|
|
|
34
60
|
let Id;
|
|
@@ -47,10 +73,11 @@ export {
|
|
|
47
73
|
name,
|
|
48
74
|
Id,
|
|
49
75
|
Key,
|
|
50
|
-
stateSchema,
|
|
51
76
|
consumedEventSchema,
|
|
52
77
|
config,
|
|
53
78
|
subIdConfig,
|
|
79
|
+
makeId,
|
|
80
|
+
stateSchema$1 as stateSchema,
|
|
54
81
|
moduleUrl,
|
|
55
82
|
authorization,
|
|
56
83
|
visibility,
|