@reventlessdev/online-shop-aggregates-ordering 3.0.0-alpha.257 → 3.0.0-alpha.259

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 (69) 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/LifecycleModel-OrderingPlugin.cmt +0 -0
  5. package/lib/bs/src/LifecycleModel.ast +0 -0
  6. package/lib/bs/src/LifecycleModel.res +14 -0
  7. package/lib/bs/src/LifecycleModel.res.mjs +14 -0
  8. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  9. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  10. package/lib/bs/src/Plugin.ast +0 -0
  11. package/lib/bs/src/Plugin.res +1 -0
  12. package/lib/bs/src/Plugin.res.mjs +4 -1
  13. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  14. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  15. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  16. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  17. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmi +0 -0
  18. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmt +0 -0
  19. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmi +0 -0
  20. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmt +0 -0
  21. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  22. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  23. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  34. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  35. package/lib/ocaml/.compiler.log +2 -2
  36. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  37. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  38. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  39. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  40. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmi +0 -0
  41. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmt +0 -0
  42. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  43. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  44. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmi +0 -0
  45. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmt +0 -0
  46. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
  47. package/lib/ocaml/LifecycleModel.ast +0 -0
  48. package/lib/ocaml/LifecycleModel.res +14 -0
  49. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  50. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  51. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  52. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  53. package/lib/ocaml/Order_GWT-OrderingPlugin.cmi +0 -0
  54. package/lib/ocaml/Order_GWT-OrderingPlugin.cmt +0 -0
  55. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  56. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  57. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  58. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  59. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  60. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  61. package/lib/ocaml/Plugin.ast +0 -0
  62. package/lib/ocaml/Plugin.res +1 -0
  63. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  64. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  65. package/package.json +7 -7
  66. package/src/LifecycleModel.res +14 -0
  67. package/src/LifecycleModel.res.mjs +14 -0
  68. package/src/Plugin.res +1 -0
  69. package/src/Plugin.res.mjs +4 -1
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.259 (2026-09-27)
7
+
8
+ ### Features
9
+
10
+ * **core,spec:** an identity the plugin declares is information, not a dangling reference ([30d7917](https://github.com/ReventlessDev/reventless-core/commit/30d7917669ff062439f9c65e5274ab63a2e20de0))
11
+ * **ppx,spec:** a view with no lifecycle field places a creating command by its scenarios ([acfc7fe](https://github.com/ReventlessDev/reventless-core/commit/acfc7feeb4d23d40cddaade7ae177fcd627b3d48))
12
+
13
+
14
+ # 3.0.0-alpha.258 (2026-09-25)
15
+
16
+ **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-ordering
17
+
18
+
19
+
20
+
21
+
6
22
  # 3.0.0-alpha.257 (2026-09-25)
7
23
 
8
24
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-ordering
@@ -1,2 +1,2 @@
1
- #Start(1790322718443)
2
- #Done(1790322723652)
1
+ #Start(1790550461089)
2
+ #Done(1790550467050)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "4c884bf958b93b21c77764e35498f269b81377cfcc324135f1ab7a1cc5b569cb",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1790322723661"
7
+ "generated_at": "1790550467060"
8
8
  }
Binary file
@@ -7,6 +7,20 @@
7
7
  // annotation where it is silent.
8
8
 
9
9
  let model: array<Reventless.Plugin.derivedEdge> = [
10
+ {
11
+ component: "CatalogProduct",
12
+ command: "Sync",
13
+ level: Reventless.Plugin.Collection,
14
+ allowedStates: [],
15
+ targets: [],
16
+ },
17
+ {
18
+ component: "Customer",
19
+ command: "Register",
20
+ level: Reventless.Plugin.Collection,
21
+ allowedStates: [],
22
+ targets: [],
23
+ },
10
24
  {
11
25
  component: "Order",
12
26
  command: "Cancel",
@@ -2,6 +2,20 @@
2
2
 
3
3
 
4
4
  let model = [
5
+ {
6
+ component: "CatalogProduct",
7
+ command: "Sync",
8
+ level: "Collection",
9
+ allowedStates: [],
10
+ targets: []
11
+ },
12
+ {
13
+ component: "Customer",
14
+ command: "Register",
15
+ level: "Collection",
16
+ allowedStates: [],
17
+ targets: []
18
+ },
5
19
  {
6
20
  component: "Order",
7
21
  command: "Cancel",
Binary file
@@ -56,6 +56,7 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
56
56
  ("Orders", "Order"),
57
57
  ]),
58
58
  ~lifecycleModel=LifecycleModel.model,
59
+ ~identities=[CustomerId.key, OrderId.key],
59
60
  )
60
61
 
61
62
  let make = () =>
@@ -241,7 +241,10 @@ function Make(Platform) {
241
241
  "Orders",
242
242
  "Order"
243
243
  ]
244
- ]), LifecycleModel$OrderingPlugin.model);
244
+ ]), LifecycleModel$OrderingPlugin.model, [
245
+ CustomerId$OrderingPlugin.key,
246
+ OrderId$OrderingPlugin.key
247
+ ]);
245
248
  let make = () => Platform.Plugin.make("Ordering", 5, [Orders_ExtensionPoint], [Products_Extension], [
246
249
  CatalogProductAggregate,
247
250
  CustomerAggregate,
@@ -1,2 +1,2 @@
1
- #Start(1790322718443)
2
- #Done(1790322723652)
1
+ #Start(1790550461089)
2
+ #Done(1790550467050)
Binary file
@@ -7,6 +7,20 @@
7
7
  // annotation where it is silent.
8
8
 
9
9
  let model: array<Reventless.Plugin.derivedEdge> = [
10
+ {
11
+ component: "CatalogProduct",
12
+ command: "Sync",
13
+ level: Reventless.Plugin.Collection,
14
+ allowedStates: [],
15
+ targets: [],
16
+ },
17
+ {
18
+ component: "Customer",
19
+ command: "Register",
20
+ level: Reventless.Plugin.Collection,
21
+ allowedStates: [],
22
+ targets: [],
23
+ },
10
24
  {
11
25
  component: "Order",
12
26
  command: "Cancel",
Binary file
Binary file
Binary file
@@ -56,6 +56,7 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
56
56
  ("Orders", "Order"),
57
57
  ]),
58
58
  ~lifecycleModel=LifecycleModel.model,
59
+ ~identities=[CustomerId.key, OrderId.key],
59
60
  )
60
61
 
61
62
  let make = () =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-aggregates-ordering",
3
- "version": "3.0.0-alpha.257",
3
+ "version": "3.0.0-alpha.259",
4
4
  "description": "Online Shop example — Ordering plugin (Customer & Order 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",
24
- "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.148",
25
- "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.148",
24
+ "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.149",
26
25
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
27
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.224",
28
- "@reventlessdev/reventless-infra": "3.0.0-alpha.177",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.267",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.149"
26
+ "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.149",
27
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.226",
28
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.178",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.269",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.150"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.1",
@@ -7,6 +7,20 @@
7
7
  // annotation where it is silent.
8
8
 
9
9
  let model: array<Reventless.Plugin.derivedEdge> = [
10
+ {
11
+ component: "CatalogProduct",
12
+ command: "Sync",
13
+ level: Reventless.Plugin.Collection,
14
+ allowedStates: [],
15
+ targets: [],
16
+ },
17
+ {
18
+ component: "Customer",
19
+ command: "Register",
20
+ level: Reventless.Plugin.Collection,
21
+ allowedStates: [],
22
+ targets: [],
23
+ },
10
24
  {
11
25
  component: "Order",
12
26
  command: "Cancel",
@@ -2,6 +2,20 @@
2
2
 
3
3
 
4
4
  let model = [
5
+ {
6
+ component: "CatalogProduct",
7
+ command: "Sync",
8
+ level: "Collection",
9
+ allowedStates: [],
10
+ targets: []
11
+ },
12
+ {
13
+ component: "Customer",
14
+ command: "Register",
15
+ level: "Collection",
16
+ allowedStates: [],
17
+ targets: []
18
+ },
5
19
  {
6
20
  component: "Order",
7
21
  command: "Cancel",
package/src/Plugin.res CHANGED
@@ -56,6 +56,7 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
56
56
  ("Orders", "Order"),
57
57
  ]),
58
58
  ~lifecycleModel=LifecycleModel.model,
59
+ ~identities=[CustomerId.key, OrderId.key],
59
60
  )
60
61
 
61
62
  let make = () =>
@@ -241,7 +241,10 @@ function Make(Platform) {
241
241
  "Orders",
242
242
  "Order"
243
243
  ]
244
- ]), LifecycleModel$OrderingPlugin.model);
244
+ ]), LifecycleModel$OrderingPlugin.model, [
245
+ CustomerId$OrderingPlugin.key,
246
+ OrderId$OrderingPlugin.key
247
+ ]);
245
248
  let make = () => Platform.Plugin.make("Ordering", 5, [Orders_ExtensionPoint], [Products_Extension], [
246
249
  CatalogProductAggregate,
247
250
  CustomerAggregate,