@reventlessdev/online-shop-aggregates-ordering 3.0.0-alpha.281 → 3.0.0-alpha.282

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 (205) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/OrderingPlugin.cmi +0 -0
  4. package/lib/bs/OrderingPlugin.cmt +0 -0
  5. package/lib/bs/OrderingPlugin.mlmap +3 -3
  6. package/lib/bs/compiler-info.json +1 -1
  7. package/lib/bs/src/CatalogProduct/Aggregate/CatalogProduct-OrderingPlugin.cmi +0 -0
  8. package/lib/bs/src/CatalogProduct/Aggregate/CatalogProduct-OrderingPlugin.cmt +0 -0
  9. package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior-OrderingPlugin.cmi → CatalogProduct_Decision-OrderingPlugin.cmi} +0 -0
  10. package/lib/{ocaml/CatalogProduct_Behavior-OrderingPlugin.cmt → bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision-OrderingPlugin.cmt} +0 -0
  11. package/lib/{ocaml/CatalogProduct_Behavior.ast → bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision.ast} +0 -0
  12. package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior.res → CatalogProduct_Decision.res} +2 -2
  13. package/{src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs → lib/bs/src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs} +1 -1
  14. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmi +0 -0
  15. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts-OrderingPlugin.cmt +0 -0
  16. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmi +0 -0
  17. package/lib/bs/src/CatalogProduct/ReadModel/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
  18. package/lib/bs/src/Customer/Aggregate/Customer-OrderingPlugin.cmi +0 -0
  19. package/lib/bs/src/Customer/Aggregate/Customer-OrderingPlugin.cmt +0 -0
  20. package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmi → Customer_Decision-OrderingPlugin.cmi} +0 -0
  21. package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmt → Customer_Decision-OrderingPlugin.cmt} +0 -0
  22. package/lib/bs/src/Customer/Aggregate/{Customer_Behavior.ast → Customer_Decision.ast} +0 -0
  23. package/{src/Customer/Aggregate/Customer_Behavior.res → lib/bs/src/Customer/Aggregate/Customer_Decision.res} +2 -2
  24. package/{src/Customer/Aggregate/Customer_Behavior.res.mjs → lib/bs/src/Customer/Aggregate/Customer_Decision.res.mjs} +1 -1
  25. package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/src/Customer/CustomerId-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/src/Customer/ReadModel/Customers-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/src/Customer/ReadModel/Customers-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/src/Customer/ReadModel/Customers_Projections-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  34. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  35. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
  36. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
  37. package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmi +0 -0
  38. package/lib/bs/src/Order/Aggregate/Order-OrderingPlugin.cmt +0 -0
  39. package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmi → Order_Decision-OrderingPlugin.cmi} +0 -0
  40. package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmt → Order_Decision-OrderingPlugin.cmt} +0 -0
  41. package/lib/{ocaml/Order_Behavior.ast → bs/src/Order/Aggregate/Order_Decision.ast} +0 -0
  42. package/lib/{ocaml/Order_Behavior.res → bs/src/Order/Aggregate/Order_Decision.res} +2 -2
  43. package/lib/bs/src/Order/Aggregate/{Order_Behavior.res.mjs → Order_Decision.res.mjs} +1 -1
  44. package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmi +0 -0
  45. package/lib/bs/src/Order/Aggregate/Order_Mappings-OrderingPlugin.cmt +0 -0
  46. package/lib/bs/src/Order/OrderId-OrderingPlugin.cmi +0 -0
  47. package/lib/bs/src/Order/OrderId-OrderingPlugin.cmt +0 -0
  48. package/lib/bs/src/Order/ReadModel/Orders-OrderingPlugin.cmi +0 -0
  49. package/lib/bs/src/Order/ReadModel/Orders-OrderingPlugin.cmt +0 -0
  50. package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmi +0 -0
  51. package/lib/bs/src/Order/ReadModel/Orders_Projections-OrderingPlugin.cmt +0 -0
  52. package/lib/bs/src/Order/SideEffect/Order_EmailNotification-OrderingPlugin.cmi +0 -0
  53. package/lib/bs/src/Order/SideEffect/Order_EmailNotification-OrderingPlugin.cmt +0 -0
  54. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  55. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  56. package/lib/bs/src/Plugin.ast +0 -0
  57. package/lib/bs/src/Plugin.res +3 -3
  58. package/lib/bs/src/Plugin.res.mjs +15 -15
  59. package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmi +0 -0
  60. package/lib/bs/src/Task/OrderNotifications-OrderingPlugin.cmt +0 -0
  61. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  62. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  63. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.ast +0 -0
  64. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res +1 -1
  65. package/lib/bs/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res.mjs +10 -10
  66. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  67. package/lib/bs/tests/CatalogProduct/ReadModel/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  68. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmi +0 -0
  69. package/lib/bs/tests/Customer/Aggregate/Customer_GWT-OrderingPlugin.cmt +0 -0
  70. package/lib/bs/tests/Customer/Aggregate/Customer_GWT.ast +0 -0
  71. package/lib/bs/tests/Customer/Aggregate/Customer_GWT.res +1 -1
  72. package/lib/bs/tests/Customer/Aggregate/Customer_GWT.res.mjs +10 -10
  73. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmi +0 -0
  74. package/lib/bs/tests/Customer/ReadModel/Customers_GWT-OrderingPlugin.cmt +0 -0
  75. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  76. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  77. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  78. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  79. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  80. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  81. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.ast +0 -0
  82. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.res +3 -3
  83. package/lib/bs/tests/Order/Aggregate/OrderMappings_GWT.res.mjs +11 -11
  84. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmi +0 -0
  85. package/lib/bs/tests/Order/Aggregate/Order_GWT-OrderingPlugin.cmt +0 -0
  86. package/lib/bs/tests/Order/Aggregate/Order_GWT.ast +0 -0
  87. package/lib/bs/tests/Order/Aggregate/Order_GWT.res +1 -1
  88. package/lib/bs/tests/Order/Aggregate/Order_GWT.res.mjs +10 -10
  89. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmi +0 -0
  90. package/lib/bs/tests/Order/ReadModel/Orders_GWT-OrderingPlugin.cmt +0 -0
  91. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmi +0 -0
  92. package/lib/bs/tests/Order/SideEffect/EmailService_Mock-OrderingPlugin.cmt +0 -0
  93. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  94. package/lib/bs/tests/Order/SideEffect/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  95. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmi +0 -0
  96. package/lib/bs/tests/Ordering_Examples-OrderingPlugin.cmt +0 -0
  97. package/lib/ocaml/.compiler.log +2 -2
  98. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  99. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  100. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  101. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  102. package/lib/ocaml/AvailableProducts_Projections-OrderingPlugin.cmi +0 -0
  103. package/lib/ocaml/AvailableProducts_Projections-OrderingPlugin.cmt +0 -0
  104. package/lib/ocaml/CatalogProduct-OrderingPlugin.cmi +0 -0
  105. package/lib/ocaml/CatalogProduct-OrderingPlugin.cmt +0 -0
  106. package/lib/ocaml/{CatalogProduct_Behavior-OrderingPlugin.cmi → CatalogProduct_Decision-OrderingPlugin.cmi} +0 -0
  107. package/lib/{bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior-OrderingPlugin.cmt → ocaml/CatalogProduct_Decision-OrderingPlugin.cmt} +0 -0
  108. package/lib/{bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior.ast → ocaml/CatalogProduct_Decision.ast} +0 -0
  109. package/{src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res → lib/ocaml/CatalogProduct_Decision.res} +2 -2
  110. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  111. package/lib/ocaml/CatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  112. package/lib/ocaml/CatalogProduct_GWT.ast +0 -0
  113. package/lib/ocaml/CatalogProduct_GWT.res +1 -1
  114. package/lib/ocaml/Customer-OrderingPlugin.cmi +0 -0
  115. package/lib/ocaml/Customer-OrderingPlugin.cmt +0 -0
  116. package/lib/ocaml/CustomerId-OrderingPlugin.cmi +0 -0
  117. package/lib/ocaml/CustomerId-OrderingPlugin.cmt +0 -0
  118. package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmi → Customer_Decision-OrderingPlugin.cmi} +0 -0
  119. package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmt → Customer_Decision-OrderingPlugin.cmt} +0 -0
  120. package/lib/ocaml/{Customer_Behavior.ast → Customer_Decision.ast} +0 -0
  121. package/lib/{bs/src/Customer/Aggregate/Customer_Behavior.res → ocaml/Customer_Decision.res} +2 -2
  122. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmi +0 -0
  123. package/lib/ocaml/Customer_GWT-OrderingPlugin.cmt +0 -0
  124. package/lib/ocaml/Customer_GWT.ast +0 -0
  125. package/lib/ocaml/Customer_GWT.res +1 -1
  126. package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
  127. package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
  128. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  129. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  130. package/lib/ocaml/Customers_Projections-OrderingPlugin.cmi +0 -0
  131. package/lib/ocaml/Customers_Projections-OrderingPlugin.cmt +0 -0
  132. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmi +0 -0
  133. package/lib/ocaml/EmailService_Mock-OrderingPlugin.cmt +0 -0
  134. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
  135. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
  136. package/lib/ocaml/Order-OrderingPlugin.cmi +0 -0
  137. package/lib/ocaml/Order-OrderingPlugin.cmt +0 -0
  138. package/lib/ocaml/OrderId-OrderingPlugin.cmi +0 -0
  139. package/lib/ocaml/OrderId-OrderingPlugin.cmt +0 -0
  140. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmi +0 -0
  141. package/lib/ocaml/OrderMappings_GWT-OrderingPlugin.cmt +0 -0
  142. package/lib/ocaml/OrderMappings_GWT.ast +0 -0
  143. package/lib/ocaml/OrderMappings_GWT.res +3 -3
  144. package/lib/ocaml/OrderNotifications-OrderingPlugin.cmi +0 -0
  145. package/lib/ocaml/OrderNotifications-OrderingPlugin.cmt +0 -0
  146. package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmi → Order_Decision-OrderingPlugin.cmi} +0 -0
  147. package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmt → Order_Decision-OrderingPlugin.cmt} +0 -0
  148. package/lib/{bs/src/Order/Aggregate/Order_Behavior.ast → ocaml/Order_Decision.ast} +0 -0
  149. package/{src/Order/Aggregate/Order_Behavior.res → lib/ocaml/Order_Decision.res} +2 -2
  150. package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmi +0 -0
  151. package/lib/ocaml/Order_EmailNotification-OrderingPlugin.cmt +0 -0
  152. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmi +0 -0
  153. package/lib/ocaml/Order_EmailNotification_GWT-OrderingPlugin.cmt +0 -0
  154. package/lib/ocaml/Order_GWT-OrderingPlugin.cmi +0 -0
  155. package/lib/ocaml/Order_GWT-OrderingPlugin.cmt +0 -0
  156. package/lib/ocaml/Order_GWT.ast +0 -0
  157. package/lib/ocaml/Order_GWT.res +1 -1
  158. package/lib/ocaml/Order_Mappings-OrderingPlugin.cmi +0 -0
  159. package/lib/ocaml/Order_Mappings-OrderingPlugin.cmt +0 -0
  160. package/lib/ocaml/OrderingPlugin.cmi +0 -0
  161. package/lib/ocaml/OrderingPlugin.cmt +0 -0
  162. package/lib/ocaml/OrderingPlugin.mlmap +3 -3
  163. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmi +0 -0
  164. package/lib/ocaml/Ordering_Examples-OrderingPlugin.cmt +0 -0
  165. package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
  166. package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
  167. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  168. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  169. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  170. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  171. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  172. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  173. package/lib/ocaml/Orders_Projections-OrderingPlugin.cmi +0 -0
  174. package/lib/ocaml/Orders_Projections-OrderingPlugin.cmt +0 -0
  175. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  176. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  177. package/lib/ocaml/Plugin.ast +0 -0
  178. package/lib/ocaml/Plugin.res +3 -3
  179. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  180. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  181. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  182. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  183. package/package.json +7 -7
  184. package/{lib/ocaml/CatalogProduct_Behavior.res → src/CatalogProduct/Aggregate/CatalogProduct_Decision.res} +2 -2
  185. package/{lib/bs/src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs → src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs} +1 -1
  186. package/{lib/ocaml/Customer_Behavior.res → src/Customer/Aggregate/Customer_Decision.res} +2 -2
  187. package/{lib/bs/src/Customer/Aggregate/Customer_Behavior.res.mjs → src/Customer/Aggregate/Customer_Decision.res.mjs} +1 -1
  188. package/{lib/bs/src/Order/Aggregate/Order_Behavior.res → src/Order/Aggregate/Order_Decision.res} +2 -2
  189. package/src/Order/Aggregate/{Order_Behavior.res.mjs → Order_Decision.res.mjs} +1 -1
  190. package/src/Plugin.res +3 -3
  191. package/src/Plugin.res.mjs +15 -15
  192. package/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res +1 -1
  193. package/tests/CatalogProduct/Aggregate/CatalogProduct_GWT.res.mjs +10 -10
  194. package/tests/Customer/Aggregate/Customer_GWT.res +1 -1
  195. package/tests/Customer/Aggregate/Customer_GWT.res.mjs +10 -10
  196. package/tests/Order/Aggregate/OrderMappings_GWT.res +3 -3
  197. package/tests/Order/Aggregate/OrderMappings_GWT.res.mjs +11 -11
  198. package/tests/Order/Aggregate/Order_GWT.res +1 -1
  199. package/tests/Order/Aggregate/Order_GWT.res.mjs +10 -10
  200. /package/lib/bs/src/CatalogProduct/Aggregate/{CatalogProduct_Behavior-OrderingPlugin.cmj → CatalogProduct_Decision-OrderingPlugin.cmj} +0 -0
  201. /package/lib/bs/src/Customer/Aggregate/{Customer_Behavior-OrderingPlugin.cmj → Customer_Decision-OrderingPlugin.cmj} +0 -0
  202. /package/lib/bs/src/Order/Aggregate/{Order_Behavior-OrderingPlugin.cmj → Order_Decision-OrderingPlugin.cmj} +0 -0
  203. /package/lib/ocaml/{CatalogProduct_Behavior-OrderingPlugin.cmj → CatalogProduct_Decision-OrderingPlugin.cmj} +0 -0
  204. /package/lib/ocaml/{Customer_Behavior-OrderingPlugin.cmj → Customer_Decision-OrderingPlugin.cmj} +0 -0
  205. /package/lib/ocaml/{Order_Behavior-OrderingPlugin.cmj → Order_Decision-OrderingPlugin.cmj} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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.282 (2026-10-21)
7
+
8
+ * feat!: the write-side logic module is called the decision, and a codemod moves an app over ([cb573ff](https://github.com/ReventlessDev/reventless-core/commit/cb573ff5b928c7d7f3e75988dfaa65066f8c95eb))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ * <Spec>_Behavior.res, @@reventless.behavior,
13
+ Reventless.Behavior.T, StateChangeSlice.Behavior, Behavior_GWT and
14
+ thenRefused no longer exist. Run `npx reventless-rename-to-decision` at an
15
+ app's root, then rebuild; comments are not rewritten. The PPX must be the
16
+ matching release.
17
+
18
+
19
+
6
20
  # 3.0.0-alpha.281 (2026-10-19)
7
21
 
8
22
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-ordering
@@ -1,2 +1,2 @@
1
- #Start(1792429501173)
2
- #Done(1792429505853)
1
+ #Start(1792571245529)
2
+ #Done(1792571253101)
Binary file
Binary file
@@ -3,11 +3,11 @@ AvailableProducts
3
3
  AvailableProducts_GWT
4
4
  AvailableProducts_Projections
5
5
  CatalogProduct
6
- CatalogProduct_Behavior
6
+ CatalogProduct_Decision
7
7
  CatalogProduct_GWT
8
8
  Customer
9
9
  CustomerId
10
- Customer_Behavior
10
+ Customer_Decision
11
11
  Customer_GWT
12
12
  Customers
13
13
  Customers_GWT
@@ -19,7 +19,7 @@ Order
19
19
  OrderId
20
20
  OrderMappings_GWT
21
21
  OrderNotifications
22
- Order_Behavior
22
+ Order_Decision
23
23
  Order_EmailNotification
24
24
  Order_EmailNotification_GWT
25
25
  Order_GWT
@@ -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": "1792429505859"
7
+ "generated_at": "1792571253118"
8
8
  }
@@ -1,7 +1,7 @@
1
- // CatalogProduct aggregate behavior.
1
+ // CatalogProduct aggregate decision.
2
2
  // Idempotently syncs Catalog product state into Ordering.
3
3
 
4
- @@reventless.behavior
4
+ @@reventless.decision
5
5
 
6
6
  @schema
7
7
  type state =
@@ -74,7 +74,7 @@ let Spec;
74
74
 
75
75
  let initialState = "NotCreated";
76
76
 
77
- let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs";
77
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
78
78
 
79
79
  let snapshot;
80
80
 
@@ -1,7 +1,7 @@
1
- // Customer aggregate behavior.
1
+ // Customer aggregate decision.
2
2
  // Implements the state machine for registering and managing customers.
3
3
 
4
- @@reventless.behavior
4
+ @@reventless.decision
5
5
 
6
6
  @schema
7
7
  type state =
@@ -130,7 +130,7 @@ let Spec;
130
130
 
131
131
  let initialState = "NotCreated";
132
132
 
133
- let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Customer/Aggregate/Customer_Behavior.res.mjs";
133
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Customer/Aggregate/Customer_Decision.res.mjs";
134
134
 
135
135
  let snapshot;
136
136
 
@@ -1,7 +1,7 @@
1
- // Order aggregate behavior.
1
+ // Order aggregate decision.
2
2
  // Implements the lifecycle for placing, shipping, cancelling, and refunding orders.
3
3
 
4
- @@reventless.behavior
4
+ @@reventless.decision
5
5
 
6
6
  @schema
7
7
  type state =
@@ -174,7 +174,7 @@ let Spec;
174
174
 
175
175
  let initialState = "NotCreated";
176
176
 
177
- let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Order/Aggregate/Order_Behavior.res.mjs";
177
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-ordering/src/Order/Aggregate/Order_Decision.res.mjs";
178
178
 
179
179
  let snapshot;
180
180
 
Binary file
@@ -6,15 +6,15 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
6
6
  // Aggregates
7
7
  module CatalogProductAggregate = Platform.Aggregate.Make(
8
8
  CatalogProduct,
9
- CatalogProduct_Behavior,
9
+ CatalogProduct_Decision,
10
10
  ReventlessInfra.NoEventMappings.Make(CatalogProduct),
11
11
  )
12
12
  module CustomerAggregate = Platform.Aggregate.Make(
13
13
  Customer,
14
- Customer_Behavior,
14
+ Customer_Decision,
15
15
  ReventlessInfra.NoEventMappings.Make(Customer),
16
16
  )
17
- module OrderAggregate = Platform.Aggregate.Make(Order, Order_Behavior, Order_Mappings)
17
+ module OrderAggregate = Platform.Aggregate.Make(Order, Order_Decision, Order_Mappings)
18
18
 
19
19
  // ReadModels
20
20
  module AvailableProductsReadModel = Platform.ReadModel.Make(
@@ -10,18 +10,18 @@ import * as Customers$OrderingPlugin from "./Customer/ReadModel/Customers.res.mj
10
10
  import * as CustomerId$OrderingPlugin from "./Customer/CustomerId.res.mjs";
11
11
  import * as CatalogProduct$OrderingPlugin from "./CatalogProduct/Aggregate/CatalogProduct.res.mjs";
12
12
  import * as LifecycleModel$OrderingPlugin from "./LifecycleModel.res.mjs";
13
- import * as Order_Behavior$OrderingPlugin from "./Order/Aggregate/Order_Behavior.res.mjs";
13
+ import * as Order_Decision$OrderingPlugin from "./Order/Aggregate/Order_Decision.res.mjs";
14
14
  import * as Order_Mappings$OrderingPlugin from "./Order/Aggregate/Order_Mappings.res.mjs";
15
15
  import * as NoEventMappings$ReventlessInfra from "@reventlessdev/reventless-infra/src/types/NoEventMappings.res.mjs";
16
16
  import * as AvailableProducts$OrderingPlugin from "./CatalogProduct/ReadModel/AvailableProducts.res.mjs";
17
- import * as Customer_Behavior$OrderingPlugin from "./Customer/Aggregate/Customer_Behavior.res.mjs";
17
+ import * as Customer_Decision$OrderingPlugin from "./Customer/Aggregate/Customer_Decision.res.mjs";
18
18
  import * as OrderNotifications$OrderingPlugin from "./Task/OrderNotifications.res.mjs";
19
19
  import * as Orders_Projections$OrderingPlugin from "./Order/ReadModel/Orders_Projections.res.mjs";
20
20
  import * as Products_Extension$OrderingPlugin from "./Extension/Products_Extension.res.mjs";
21
21
  import * as Orders_ExtensionPoint$OrderingSpec from "@reventlessdev/online-shop-aggregates-ordering-spec/src/Orders_ExtensionPoint.res.mjs";
22
22
  import * as Products_ExtensionPoint$CatalogSpec from "@reventlessdev/online-shop-aggregates-catalog-spec/src/Products_ExtensionPoint.res.mjs";
23
23
  import * as Customers_Projections$OrderingPlugin from "./Customer/ReadModel/Customers_Projections.res.mjs";
24
- import * as CatalogProduct_Behavior$OrderingPlugin from "./CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs";
24
+ import * as CatalogProduct_Decision$OrderingPlugin from "./CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
25
25
  import * as Orders_ExtensionPointMapping$OrderingPlugin from "./ExtensionPoint/Orders_ExtensionPointMapping.res.mjs";
26
26
  import * as AvailableProducts_Projections$OrderingPlugin from "./CatalogProduct/ReadModel/AvailableProducts_Projections.res.mjs";
27
27
 
@@ -37,11 +37,11 @@ function Make(Platform) {
37
37
  commandTransition: CatalogProduct$OrderingPlugin.commandTransition,
38
38
  traits: CatalogProduct$OrderingPlugin.traits
39
39
  })({
40
- initialState: CatalogProduct_Behavior$OrderingPlugin.initialState,
41
- evolve: CatalogProduct_Behavior$OrderingPlugin.evolve,
42
- decide: CatalogProduct_Behavior$OrderingPlugin.decide,
40
+ initialState: CatalogProduct_Decision$OrderingPlugin.initialState,
41
+ evolve: CatalogProduct_Decision$OrderingPlugin.evolve,
42
+ decide: CatalogProduct_Decision$OrderingPlugin.decide,
43
43
  snapshot: undefined,
44
- moduleUrl: CatalogProduct_Behavior$OrderingPlugin.moduleUrl
44
+ moduleUrl: CatalogProduct_Decision$OrderingPlugin.moduleUrl
45
45
  })(NoEventMappings$ReventlessInfra.Make({
46
46
  name: CatalogProduct$OrderingPlugin.name,
47
47
  Id: ProductId$CatalogSpec,
@@ -58,11 +58,11 @@ function Make(Platform) {
58
58
  commandTransition: Customer$OrderingPlugin.commandTransition,
59
59
  traits: Customer$OrderingPlugin.traits
60
60
  })({
61
- initialState: Customer_Behavior$OrderingPlugin.initialState,
62
- evolve: Customer_Behavior$OrderingPlugin.evolve,
63
- decide: Customer_Behavior$OrderingPlugin.decide,
61
+ initialState: Customer_Decision$OrderingPlugin.initialState,
62
+ evolve: Customer_Decision$OrderingPlugin.evolve,
63
+ decide: Customer_Decision$OrderingPlugin.decide,
64
64
  snapshot: undefined,
65
- moduleUrl: Customer_Behavior$OrderingPlugin.moduleUrl
65
+ moduleUrl: Customer_Decision$OrderingPlugin.moduleUrl
66
66
  })(NoEventMappings$ReventlessInfra.Make({
67
67
  name: Customer$OrderingPlugin.name,
68
68
  Id: CustomerId$OrderingPlugin,
@@ -79,11 +79,11 @@ function Make(Platform) {
79
79
  commandTransition: Order$OrderingPlugin.commandTransition,
80
80
  traits: Order$OrderingPlugin.traits
81
81
  })({
82
- initialState: Order_Behavior$OrderingPlugin.initialState,
83
- evolve: Order_Behavior$OrderingPlugin.evolve,
84
- decide: Order_Behavior$OrderingPlugin.decide,
82
+ initialState: Order_Decision$OrderingPlugin.initialState,
83
+ evolve: Order_Decision$OrderingPlugin.evolve,
84
+ decide: Order_Decision$OrderingPlugin.decide,
85
85
  snapshot: undefined,
86
- moduleUrl: Order_Behavior$OrderingPlugin.moduleUrl
86
+ moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
87
87
  })({
88
88
  moduleUrl: Order_Mappings$OrderingPlugin.moduleUrl,
89
89
  mappings: Order_Mappings$OrderingPlugin.mappings,
@@ -2,7 +2,7 @@
2
2
 
3
3
  open Ordering_Examples
4
4
 
5
- describe("CatalogProduct Behavior", () => {
5
+ describe("CatalogProduct Decision", () => {
6
6
  // scenario-id: e0d3dd62-1687-4920-a1ad-d61733936926
7
7
  test("Sync on new aggregate produces Synced", () =>
8
8
  givenEvents([])
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
3
+ import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
4
4
  import * as CatalogProduct$OrderingPlugin from "../../../src/CatalogProduct/Aggregate/CatalogProduct.res.mjs";
5
5
  import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
6
- import * as CatalogProduct_Behavior$OrderingPlugin from "../../../src/CatalogProduct/Aggregate/CatalogProduct_Behavior.res.mjs";
6
+ import * as CatalogProduct_Decision$OrderingPlugin from "../../../src/CatalogProduct/Aggregate/CatalogProduct_Decision.res.mjs";
7
7
 
8
- let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
8
+ let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
9
9
  name: CatalogProduct$OrderingPlugin.name,
10
10
  commandSchema: CatalogProduct$OrderingPlugin.commandSchema,
11
11
  eventSchema: CatalogProduct$OrderingPlugin.eventSchema,
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
19
19
  errorSchema: CatalogProduct$OrderingPlugin.errorSchema,
20
20
  authorizationOf: CatalogProduct$OrderingPlugin.authorizationOf
21
21
  },
22
- initialState: CatalogProduct_Behavior$OrderingPlugin.initialState,
23
- evolve: CatalogProduct_Behavior$OrderingPlugin.evolve,
24
- decide: CatalogProduct_Behavior$OrderingPlugin.decide,
22
+ initialState: CatalogProduct_Decision$OrderingPlugin.initialState,
23
+ evolve: CatalogProduct_Decision$OrderingPlugin.evolve,
24
+ decide: CatalogProduct_Decision$OrderingPlugin.decide,
25
25
  snapshot: undefined,
26
- moduleUrl: CatalogProduct_Behavior$OrderingPlugin.moduleUrl
26
+ moduleUrl: CatalogProduct_Decision$OrderingPlugin.moduleUrl
27
27
  });
28
28
 
29
29
  let describe = include.describe;
@@ -38,7 +38,7 @@ let thenEvent = include.thenEvent;
38
38
 
39
39
  let thenNoEvent = include.thenNoEvent;
40
40
 
41
- describe("CatalogProduct Behavior", () => {
41
+ describe("CatalogProduct Decision", () => {
42
42
  test("Sync on new aggregate produces Synced", () => thenEvent(whenCmd(givenEvents([]), {
43
43
  TAG: "Sync",
44
44
  name: Ordering_Examples$OrderingPlugin.laptop,
@@ -92,7 +92,7 @@ let thenEventsWithError = include.thenEventsWithError;
92
92
 
93
93
  let thenError = include.thenError;
94
94
 
95
- let thenRefused = include.thenRefused;
95
+ let thenForbidden = include.thenForbidden;
96
96
 
97
97
  export {
98
98
  Spec,
@@ -110,6 +110,6 @@ export {
110
110
  thenCompareEvents,
111
111
  thenEventsWithError,
112
112
  thenError,
113
- thenRefused,
113
+ thenForbidden,
114
114
  }
115
115
  /* include Not a pure module */
@@ -2,7 +2,7 @@
2
2
 
3
3
  open Ordering_Examples
4
4
 
5
- describe("Customer Behavior", () => {
5
+ describe("Customer Decision", () => {
6
6
  // scenario-id: 5936d064-3500-474f-ac41-619765828d32
7
7
  test("Register on new aggregate produces Registered", () =>
8
8
  givenEvents([])
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Customer$OrderingPlugin from "../../../src/Customer/Aggregate/Customer.res.mjs";
4
- import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
5
- import * as Customer_Behavior$OrderingPlugin from "../../../src/Customer/Aggregate/Customer_Behavior.res.mjs";
4
+ import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
5
+ import * as Customer_Decision$OrderingPlugin from "../../../src/Customer/Aggregate/Customer_Decision.res.mjs";
6
6
  import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
7
7
 
8
- let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
8
+ let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
9
9
  name: Customer$OrderingPlugin.name,
10
10
  commandSchema: Customer$OrderingPlugin.commandSchema,
11
11
  eventSchema: Customer$OrderingPlugin.eventSchema,
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
19
19
  errorSchema: Customer$OrderingPlugin.errorSchema,
20
20
  authorizationOf: Customer$OrderingPlugin.authorizationOf
21
21
  },
22
- initialState: Customer_Behavior$OrderingPlugin.initialState,
23
- evolve: Customer_Behavior$OrderingPlugin.evolve,
24
- decide: Customer_Behavior$OrderingPlugin.decide,
22
+ initialState: Customer_Decision$OrderingPlugin.initialState,
23
+ evolve: Customer_Decision$OrderingPlugin.evolve,
24
+ decide: Customer_Decision$OrderingPlugin.decide,
25
25
  snapshot: undefined,
26
- moduleUrl: Customer_Behavior$OrderingPlugin.moduleUrl
26
+ moduleUrl: Customer_Decision$OrderingPlugin.moduleUrl
27
27
  });
28
28
 
29
29
  let describe = include.describe;
@@ -40,7 +40,7 @@ let thenNoEvent = include.thenNoEvent;
40
40
 
41
41
  let thenError = include.thenError;
42
42
 
43
- describe("Customer Behavior", () => {
43
+ describe("Customer Decision", () => {
44
44
  test("Register on new aggregate produces Registered", () => thenEvent(whenCmd(givenEvents([]), {
45
45
  TAG: "Register",
46
46
  email: Ordering_Examples$OrderingPlugin.aliceEmail,
@@ -160,7 +160,7 @@ let thenCompareEvents = include.thenCompareEvents;
160
160
 
161
161
  let thenEventsWithError = include.thenEventsWithError;
162
162
 
163
- let thenRefused = include.thenRefused;
163
+ let thenForbidden = include.thenForbidden;
164
164
 
165
165
  export {
166
166
  Spec,
@@ -178,6 +178,6 @@ export {
178
178
  thenCompareEvents,
179
179
  thenEventsWithError,
180
180
  thenError,
181
- thenRefused,
181
+ thenForbidden,
182
182
  }
183
183
  /* include Not a pure module */
@@ -1,13 +1,13 @@
1
1
  // `Mapping_GWT` exercises Order's self-mapping (auto-ship on placement).
2
- // Bare `@@reventless.gwt` would derive the Behavior DSL from the Aggregate
2
+ // Bare `@@reventless.gwt` would derive the Decision DSL from the Aggregate
3
3
  // folder; the cross-pattern Mapping DSL is wired explicitly instead.
4
4
  //
5
5
  // Self-mappings need the target's per-id history pre-seeded with the
6
6
  // source-emitted event, since Mapping_GWT models source and target as
7
7
  // independent aggregates even when they're the same one in production.
8
8
 
9
- module OrderSource = ReventlessGwt.Mapping_GWT.FromBehavior(Order, Order_Behavior)
10
- module OrderTarget = ReventlessGwt.Mapping_GWT.FromBehavior(Order, Order_Behavior)
9
+ module OrderSource = ReventlessGwt.Mapping_GWT.FromDecision(Order, Order_Decision)
10
+ module OrderTarget = ReventlessGwt.Mapping_GWT.FromDecision(Order, Order_Decision)
11
11
 
12
12
  module AutoShipGwtMapping = {
13
13
  module Source = OrderSource
@@ -5,10 +5,10 @@ import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-aggregates-ca
5
5
  import * as OrderId$OrderingPlugin from "../../../src/Order/OrderId.res.mjs";
6
6
  import * as CustomerId$OrderingPlugin from "../../../src/Customer/CustomerId.res.mjs";
7
7
  import * as Mapping_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Mapping_GWT.res.mjs";
8
- import * as Order_Behavior$OrderingPlugin from "../../../src/Order/Aggregate/Order_Behavior.res.mjs";
8
+ import * as Order_Decision$OrderingPlugin from "../../../src/Order/Aggregate/Order_Decision.res.mjs";
9
9
  import * as Order_Mappings$OrderingPlugin from "../../../src/Order/Aggregate/Order_Mappings.res.mjs";
10
10
 
11
- let OrderSource = Mapping_GWT$ReventlessGwt.FromBehavior({
11
+ let OrderSource = Mapping_GWT$ReventlessGwt.FromDecision({
12
12
  Id: OrderId$OrderingPlugin,
13
13
  name: Order$OrderingPlugin.name,
14
14
  eventSchema: Order$OrderingPlugin.eventSchema,
@@ -30,14 +30,14 @@ let OrderSource = Mapping_GWT$ReventlessGwt.FromBehavior({
30
30
  commandTransition: Order$OrderingPlugin.commandTransition,
31
31
  traits: Order$OrderingPlugin.traits
32
32
  },
33
- initialState: Order_Behavior$OrderingPlugin.initialState,
34
- evolve: Order_Behavior$OrderingPlugin.evolve,
35
- decide: Order_Behavior$OrderingPlugin.decide,
33
+ initialState: Order_Decision$OrderingPlugin.initialState,
34
+ evolve: Order_Decision$OrderingPlugin.evolve,
35
+ decide: Order_Decision$OrderingPlugin.decide,
36
36
  snapshot: undefined,
37
- moduleUrl: Order_Behavior$OrderingPlugin.moduleUrl
37
+ moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
38
38
  });
39
39
 
40
- let OrderTarget = Mapping_GWT$ReventlessGwt.FromBehavior({
40
+ let OrderTarget = Mapping_GWT$ReventlessGwt.FromDecision({
41
41
  Id: OrderId$OrderingPlugin,
42
42
  name: Order$OrderingPlugin.name,
43
43
  eventSchema: Order$OrderingPlugin.eventSchema,
@@ -59,11 +59,11 @@ let OrderTarget = Mapping_GWT$ReventlessGwt.FromBehavior({
59
59
  commandTransition: Order$OrderingPlugin.commandTransition,
60
60
  traits: Order$OrderingPlugin.traits
61
61
  },
62
- initialState: Order_Behavior$OrderingPlugin.initialState,
63
- evolve: Order_Behavior$OrderingPlugin.evolve,
64
- decide: Order_Behavior$OrderingPlugin.decide,
62
+ initialState: Order_Decision$OrderingPlugin.initialState,
63
+ evolve: Order_Decision$OrderingPlugin.evolve,
64
+ decide: Order_Decision$OrderingPlugin.decide,
65
65
  snapshot: undefined,
66
- moduleUrl: Order_Behavior$OrderingPlugin.moduleUrl
66
+ moduleUrl: Order_Decision$OrderingPlugin.moduleUrl
67
67
  });
68
68
 
69
69
  let map = Order_Mappings$OrderingPlugin.AutoShipMapping.map;
@@ -7,7 +7,7 @@ let cust1 = CustomerId.make("cust-1")
7
7
  let prod1 = CatalogSpec.ProductId.make("prod-1")
8
8
  let prod2 = CatalogSpec.ProductId.make("prod-2")
9
9
 
10
- describe("Order Behavior", () => {
10
+ describe("Order Decision", () => {
11
11
  // scenario-id: 4f723805-10e2-4b72-b40a-6cf71e91c375
12
12
  test("Place on new aggregate produces Placed", () =>
13
13
  givenEvents([])