@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.167 → 3.0.0-alpha.169

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmi +0 -0
  5. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmt +0 -0
  6. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmi +0 -0
  7. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmt +0 -0
  8. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmi +0 -0
  9. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmt +0 -0
  10. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmi +0 -0
  11. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmt +0 -0
  12. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  13. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  14. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  15. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  16. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  17. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  18. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmi +0 -0
  19. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmt +0 -0
  20. package/lib/bs/src/Product/Aggregate/Product.ast +0 -0
  21. package/lib/bs/src/Product/Aggregate/Product.res +7 -2
  22. package/lib/bs/src/Product/Aggregate/Product.res.mjs +2 -2
  23. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmi +0 -0
  24. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmt +0 -0
  25. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmi +0 -0
  26. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmt +0 -0
  27. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmi +0 -0
  28. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmt +0 -0
  29. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
  30. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
  31. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  32. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  33. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmi +0 -0
  34. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmt +0 -0
  35. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  36. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  37. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  38. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  39. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
  40. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
  41. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
  42. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
  43. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  44. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  45. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  46. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  47. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
  48. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
  49. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
  50. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
  51. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  52. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  53. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  54. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  55. package/lib/ocaml/.compiler.log +2 -2
  56. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  57. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  58. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  59. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  60. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmi +0 -0
  61. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmt +0 -0
  62. package/lib/ocaml/Category-CatalogPlugin.cmi +0 -0
  63. package/lib/ocaml/Category-CatalogPlugin.cmt +0 -0
  64. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmi +0 -0
  65. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmt +0 -0
  66. package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
  67. package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
  68. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  69. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  70. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  71. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  72. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  73. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  74. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  75. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  76. package/lib/ocaml/Product-CatalogPlugin.cmi +0 -0
  77. package/lib/ocaml/Product-CatalogPlugin.cmt +0 -0
  78. package/lib/ocaml/Product.ast +0 -0
  79. package/lib/ocaml/Product.res +7 -2
  80. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  81. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  82. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  83. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  84. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  85. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  86. package/lib/ocaml/ProductDemands-CatalogPlugin.cmi +0 -0
  87. package/lib/ocaml/ProductDemands-CatalogPlugin.cmt +0 -0
  88. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  89. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  90. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  91. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  92. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmi +0 -0
  93. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmt +0 -0
  94. package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
  95. package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
  96. package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
  97. package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
  98. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  99. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  100. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  101. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  102. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  103. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  104. package/lib/ocaml/Products_Projections-CatalogPlugin.cmi +0 -0
  105. package/lib/ocaml/Products_Projections-CatalogPlugin.cmt +0 -0
  106. package/package.json +8 -7
  107. package/src/Product/Aggregate/Product.res +7 -2
  108. package/src/Product/Aggregate/Product.res.mjs +2 -2
  109. package/src/capabilities.json +18 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.169 (2026-07-30)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.168 (2026-07-30)
15
+
16
+ ### Features
17
+
18
+ * **spec,core,local:** emit capabilities.json from the plugin build ([57a3276](https://github.com/ReventlessDev/reventless-core/commit/57a3276a6b02af93490a8b460e3aa158b7e0e0f8))
19
+ * **spec,core:** derive the platform capability list — inference and generation (stage 3) ([8ab4d25](https://github.com/ReventlessDev/reventless-core/commit/8ab4d2504bd717487fbc87a0f5a053024c8258f9))
20
+
21
+
6
22
  # 3.0.0-alpha.167 (2026-07-29)
7
23
 
8
24
  ### Features
@@ -1,2 +1,2 @@
1
- #Start(1785350544294)
2
- #Done(1785350549499)
1
+ #Start(1785406695810)
2
+ #Done(1785406701136)
@@ -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": "1785350549512"
7
+ "generated_at": "1785406701150"
8
8
  }
Binary file
Binary file
@@ -24,11 +24,16 @@ type command =
24
24
 
25
25
  @schema
26
26
  type event =
27
- | Added({name: string, description: string, price: float, imageUrl: string})
27
+ | Added({
28
+ name: string,
29
+ description: string,
30
+ price: float,
31
+ @storageRef("productImages") imageUrl: string,
32
+ })
28
33
  | NameUpdated({name: string})
29
34
  | DescriptionUpdated({description: string})
30
35
  | PriceUpdated({price: float})
31
- | ImageUpdated({imageUrl: string})
36
+ | ImageUpdated({@storageRef("productImages") imageUrl: string})
32
37
 
33
38
  @schema
34
39
  type error =
@@ -35,7 +35,7 @@ let eventSchema = S.union([
35
35
  name: s.m(S.string),
36
36
  description: s.m(S.string),
37
37
  price: s.m(S.float),
38
- imageUrl: s.m(S.string)
38
+ imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
39
39
  })),
40
40
  S.schema(s => ({
41
41
  TAG: "NameUpdated",
@@ -51,7 +51,7 @@ let eventSchema = S.union([
51
51
  })),
52
52
  S.schema(s => ({
53
53
  TAG: "ImageUpdated",
54
- imageUrl: s.m(S.string)
54
+ imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
55
55
  }))
56
56
  ]);
57
57
 
@@ -1,2 +1,2 @@
1
- #Start(1785350544294)
2
- #Done(1785350549499)
1
+ #Start(1785406695810)
2
+ #Done(1785406701136)
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -24,11 +24,16 @@ type command =
24
24
 
25
25
  @schema
26
26
  type event =
27
- | Added({name: string, description: string, price: float, imageUrl: string})
27
+ | Added({
28
+ name: string,
29
+ description: string,
30
+ price: float,
31
+ @storageRef("productImages") imageUrl: string,
32
+ })
28
33
  | NameUpdated({name: string})
29
34
  | DescriptionUpdated({description: string})
30
35
  | PriceUpdated({price: float})
31
- | ImageUpdated({imageUrl: string})
36
+ | ImageUpdated({@storageRef("productImages") imageUrl: string})
32
37
 
33
38
  @schema
34
39
  type error =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-aggregates-catalog",
3
- "version": "3.0.0-alpha.167",
3
+ "version": "3.0.0-alpha.169",
4
4
  "description": "Online Shop example — Catalog plugin (Product & Category aggregates)",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "^11.0.0-alpha.4",
24
- "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.82",
25
- "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.82",
26
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.138",
27
- "@reventlessdev/reventless-infra": "3.0.0-alpha.109",
28
- "@reventlessdev/reventless-local": "3.0.0-alpha.179",
24
+ "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.84",
29
25
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.17",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.84"
26
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.140",
27
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.111",
28
+ "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.84",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.181",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.86"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.0",
@@ -44,6 +44,7 @@
44
44
  "generate": "generate-plugin src/",
45
45
  "prebuild": "pnpm run generate",
46
46
  "build": "rescript build",
47
+ "postbuild": "emit-capabilities src/",
47
48
  "start": "rescript watch",
48
49
  "clean": "rescript clean",
49
50
  "rebuild": "pnpm run clean && pnpm run build",
@@ -24,11 +24,16 @@ type command =
24
24
 
25
25
  @schema
26
26
  type event =
27
- | Added({name: string, description: string, price: float, imageUrl: string})
27
+ | Added({
28
+ name: string,
29
+ description: string,
30
+ price: float,
31
+ @storageRef("productImages") imageUrl: string,
32
+ })
28
33
  | NameUpdated({name: string})
29
34
  | DescriptionUpdated({description: string})
30
35
  | PriceUpdated({price: float})
31
- | ImageUpdated({imageUrl: string})
36
+ | ImageUpdated({@storageRef("productImages") imageUrl: string})
32
37
 
33
38
  @schema
34
39
  type error =
@@ -35,7 +35,7 @@ let eventSchema = S.union([
35
35
  name: s.m(S.string),
36
36
  description: s.m(S.string),
37
37
  price: s.m(S.float),
38
- imageUrl: s.m(S.string)
38
+ imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
39
39
  })),
40
40
  S.schema(s => ({
41
41
  TAG: "NameUpdated",
@@ -51,7 +51,7 @@ let eventSchema = S.union([
51
51
  })),
52
52
  S.schema(s => ({
53
53
  TAG: "ImageUpdated",
54
- imageUrl: s.m(S.string)
54
+ imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
55
55
  }))
56
56
  ]);
57
57
 
@@ -0,0 +1,18 @@
1
+ {
2
+ "capabilities": [
3
+ {
4
+ "kind": "ObjectStore",
5
+ "key": "Catalog.productImages",
6
+ "declaredBy": [
7
+ {
8
+ "component": "Product",
9
+ "field": "imageUrl"
10
+ },
11
+ {
12
+ "component": "Products",
13
+ "field": "imageUrl"
14
+ }
15
+ ]
16
+ }
17
+ ]
18
+ }