@reventlessdev/online-shop-aggregates-ordering 3.0.0-alpha.214 → 3.0.0-alpha.215

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 (104) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmi +0 -0
  5. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmt +0 -0
  6. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmi +0 -0
  7. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
  8. package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmi +0 -0
  9. package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmt +0 -0
  10. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  11. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  12. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  13. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  14. package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmi +0 -0
  15. package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmt +0 -0
  16. package/lib/bs/src/Order/Aggregate/Order.ast +0 -0
  17. package/lib/bs/src/Order/Aggregate/Order.res +3 -3
  18. package/lib/bs/src/Order/Aggregate/Order.res.mjs +16 -1
  19. package/lib/bs/src/Order/Aggregate/Order_Behavior-OrderingPlugin.cmi +0 -0
  20. package/lib/bs/src/Order/Aggregate/Order_Behavior-OrderingPlugin.cmt +0 -0
  21. package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmi +0 -0
  22. package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmt +0 -0
  23. package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/src/Order/SideEffect/Order_EmailNotification-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/src/Order/SideEffect/Order_EmailNotification-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  34. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  35. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmi +0 -0
  36. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmt +0 -0
  37. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmi +0 -0
  38. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmt +0 -0
  39. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  40. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  41. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  42. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  43. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  44. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  45. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmi +0 -0
  46. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmt +0 -0
  47. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmi +0 -0
  48. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmt +0 -0
  49. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmi +0 -0
  50. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmt +0 -0
  51. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  52. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  53. package/lib/ocaml/.compiler.log +2 -2
  54. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  55. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  56. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  57. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  58. package/lib/ocaml/AvailableProducts_Projections-OrderingPlugin.cmi +0 -0
  59. package/lib/ocaml/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
  60. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  61. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  62. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmi +0 -0
  63. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmt +0 -0
  64. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  65. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  66. package/lib/ocaml/Customers_Projections-OrderingPlugin.cmi +0 -0
  67. package/lib/ocaml/Customers_Projections-OrderingPlugin.cmt +0 -0
  68. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmi +0 -0
  69. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmt +0 -0
  70. package/lib/ocaml/Order-OrderingPlugin.cmi +0 -0
  71. package/lib/ocaml/Order-OrderingPlugin.cmt +0 -0
  72. package/lib/ocaml/Order.ast +0 -0
  73. package/lib/ocaml/Order.res +3 -3
  74. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  75. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  76. package/lib/ocaml/OrderNotifications-OrderingPlugin.cmi +0 -0
  77. package/lib/ocaml/OrderNotifications-OrderingPlugin.cmt +0 -0
  78. package/lib/ocaml/Order_Behavior-OrderingPlugin.cmi +0 -0
  79. package/lib/ocaml/Order_Behavior-OrderingPlugin.cmt +0 -0
  80. package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmi +0 -0
  81. package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmt +0 -0
  82. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  83. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  84. package/lib/ocaml/Order_GWT-OrderingPlugin.cmi +0 -0
  85. package/lib/ocaml/Order_GWT-OrderingPlugin.cmt +0 -0
  86. package/lib/ocaml/Order_Mappings-OrderingPlugin.cmi +0 -0
  87. package/lib/ocaml/Order_Mappings-OrderingPlugin.cmt +0 -0
  88. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  89. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  90. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  91. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  92. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  93. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  94. package/lib/ocaml/Orders_Projections-OrderingPlugin.cmi +0 -0
  95. package/lib/ocaml/Orders_Projections-OrderingPlugin.cmt +0 -0
  96. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  97. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  98. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  99. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  100. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  101. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  102. package/package.json +8 -8
  103. package/src/Order/Aggregate/Order.res +3 -3
  104. package/src/Order/Aggregate/Order.res.mjs +16 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
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.215 (2026-08-16)
7
+
8
+ ### Features
9
+
10
+ * **ppx:** declare a command's lifecycle edge once, as [@transition](https://github.com/transition) ([dd35130](https://github.com/ReventlessDev/reventless-core/commit/dd3513014f14b71879ee21263c6755d3c3d95096))
11
+
12
+
6
13
  # 3.0.0-alpha.214 (2026-08-16)
7
14
 
8
15
  ### Features
@@ -1,2 +1,2 @@
1
- #Start(1786876606967)
2
- #Done(1786876612717)
1
+ #Start(1786902389877)
2
+ #Done(1786902395231)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "75e3a59c95cc953608fd3dd6ea6ed68141bba4414a20a52f114261b8a48385fa",
5
5
  "rescript_config_hash": "4c884bf958b93b21c77764e35498f269b81377cfcc324135f1ab7a1cc5b569cb",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1786876612727"
7
+ "generated_at": "1786902395243"
8
8
  }
@@ -6,9 +6,9 @@
6
6
  @schema
7
7
  type command =
8
8
  | Place({customerId: string, @ref("AvailableProducts") @noDcbTag productIds: array<string>})
9
- | @allowedStates([Orders.Placed]) Ship
10
- | @allowedStates([Orders.Placed]) Cancel
11
- | @allowedStates([Orders.Cancelled]) Refund({reason: string})
9
+ | @transition(([Orders.Placed]) => Orders.Shipped) Ship
10
+ | @transition(([Orders.Placed]) => Orders.Cancelled) Cancel
11
+ | @transition(([Orders.Cancelled]) => Orders.Refunded) Refund({reason: string})
12
12
 
13
13
  @schema
14
14
  type event =
@@ -59,6 +59,21 @@ let commandSchema$1 = Api$ReventlessInfra.markAllowedStates(commandSchema, [
59
59
  ]
60
60
  ]);
61
61
 
62
+ let commandSchema$2 = Api$ReventlessInfra.markTargetState(commandSchema$1, [
63
+ [
64
+ "Ship",
65
+ "Shipped"
66
+ ],
67
+ [
68
+ "Cancel",
69
+ "Cancelled"
70
+ ],
71
+ [
72
+ "Refund",
73
+ "Refunded"
74
+ ]
75
+ ]);
76
+
62
77
  function commandAuthorization(param) {
63
78
  return "AllowAuthenticated";
64
79
  }
@@ -74,7 +89,7 @@ export {
74
89
  Id,
75
90
  eventSchema,
76
91
  errorSchema,
77
- commandSchema$1 as commandSchema,
92
+ commandSchema$2 as commandSchema,
78
93
  moduleUrl,
79
94
  commandAuthorization,
80
95
  }
@@ -1,2 +1,2 @@
1
- #Start(1786876606967)
2
- #Done(1786876612717)
1
+ #Start(1786902389877)
2
+ #Done(1786902395231)
Binary file
Binary file
Binary file
@@ -6,9 +6,9 @@
6
6
  @schema
7
7
  type command =
8
8
  | Place({customerId: string, @ref("AvailableProducts") @noDcbTag productIds: array<string>})
9
- | @allowedStates([Orders.Placed]) Ship
10
- | @allowedStates([Orders.Placed]) Cancel
11
- | @allowedStates([Orders.Cancelled]) Refund({reason: string})
9
+ | @transition(([Orders.Placed]) => Orders.Shipped) Ship
10
+ | @transition(([Orders.Placed]) => Orders.Cancelled) Cancel
11
+ | @transition(([Orders.Cancelled]) => Orders.Refunded) Refund({reason: string})
12
12
 
13
13
  @schema
14
14
  type event =
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-aggregates-ordering",
3
- "version": "3.0.0-alpha.214",
3
+ "version": "3.0.0-alpha.215",
4
4
  "description": "Online Shop example — Ordering plugin (Customer & Order 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-alpha.4",
24
- "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.114",
25
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.184",
24
+ "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.115",
25
+ "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.115",
26
26
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
27
- "@reventlessdev/reventless-infra": "3.0.0-alpha.143",
28
- "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.114",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.225",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.115"
27
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.185",
28
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.144",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.226",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.116"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.0",
34
34
  "sury-ppx": "11.0.0-alpha.2",
35
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.67"
35
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.68"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "rescript": "12.3.0"
@@ -6,9 +6,9 @@
6
6
  @schema
7
7
  type command =
8
8
  | Place({customerId: string, @ref("AvailableProducts") @noDcbTag productIds: array<string>})
9
- | @allowedStates([Orders.Placed]) Ship
10
- | @allowedStates([Orders.Placed]) Cancel
11
- | @allowedStates([Orders.Cancelled]) Refund({reason: string})
9
+ | @transition(([Orders.Placed]) => Orders.Shipped) Ship
10
+ | @transition(([Orders.Placed]) => Orders.Cancelled) Cancel
11
+ | @transition(([Orders.Cancelled]) => Orders.Refunded) Refund({reason: string})
12
12
 
13
13
  @schema
14
14
  type event =
@@ -59,6 +59,21 @@ let commandSchema$1 = Api$ReventlessInfra.markAllowedStates(commandSchema, [
59
59
  ]
60
60
  ]);
61
61
 
62
+ let commandSchema$2 = Api$ReventlessInfra.markTargetState(commandSchema$1, [
63
+ [
64
+ "Ship",
65
+ "Shipped"
66
+ ],
67
+ [
68
+ "Cancel",
69
+ "Cancelled"
70
+ ],
71
+ [
72
+ "Refund",
73
+ "Refunded"
74
+ ]
75
+ ]);
76
+
62
77
  function commandAuthorization(param) {
63
78
  return "AllowAuthenticated";
64
79
  }
@@ -74,7 +89,7 @@ export {
74
89
  Id,
75
90
  eventSchema,
76
91
  errorSchema,
77
- commandSchema$1 as commandSchema,
92
+ commandSchema$2 as commandSchema,
78
93
  moduleUrl,
79
94
  commandAuthorization,
80
95
  }