@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.279 → 3.0.0-alpha.281

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 (170) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/CatalogPlugin.cmi +0 -0
  4. package/lib/bs/CatalogPlugin.cmt +0 -0
  5. package/lib/bs/CatalogPlugin.mlmap +3 -3
  6. package/lib/bs/compiler-info.json +1 -1
  7. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmi +0 -0
  8. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmt +0 -0
  9. package/lib/bs/src/Category/Aggregate/{Category_Behavior-CatalogPlugin.cmi → Category_Decision-CatalogPlugin.cmi} +0 -0
  10. package/lib/{ocaml/Category_Behavior-CatalogPlugin.cmt → bs/src/Category/Aggregate/Category_Decision-CatalogPlugin.cmt} +0 -0
  11. package/lib/{ocaml/Category_Behavior.ast → bs/src/Category/Aggregate/Category_Decision.ast} +0 -0
  12. package/lib/bs/src/Category/Aggregate/{Category_Behavior.res → Category_Decision.res} +2 -2
  13. package/{src/Category/Aggregate/Category_Behavior.res.mjs → lib/bs/src/Category/Aggregate/Category_Decision.res.mjs} +1 -1
  14. package/lib/bs/src/Category/CategoryId-CatalogPlugin.cmi +0 -0
  15. package/lib/bs/src/Category/CategoryId-CatalogPlugin.cmt +0 -0
  16. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmi +0 -0
  17. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmt +0 -0
  18. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmi +0 -0
  19. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmt +0 -0
  20. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  21. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  22. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  23. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  24. package/lib/bs/src/LifecycleModel-CatalogPlugin.cmi +0 -0
  25. package/lib/bs/src/LifecycleModel-CatalogPlugin.cmt +0 -0
  26. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  27. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  28. package/lib/bs/src/Plugin.ast +0 -0
  29. package/lib/bs/src/Plugin.res +3 -3
  30. package/lib/bs/src/Plugin.res.mjs +16 -16
  31. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmi +0 -0
  32. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmt +0 -0
  33. package/lib/bs/src/Product/Aggregate/{Product_Behavior-CatalogPlugin.cmi → Product_Decision-CatalogPlugin.cmi} +0 -0
  34. package/lib/bs/src/Product/Aggregate/{Product_Behavior-CatalogPlugin.cmt → Product_Decision-CatalogPlugin.cmt} +0 -0
  35. package/lib/bs/src/Product/Aggregate/{Product_Behavior.ast → Product_Decision.ast} +0 -0
  36. package/{src/Product/Aggregate/Product_Behavior.res → lib/bs/src/Product/Aggregate/Product_Decision.res} +2 -2
  37. package/lib/bs/src/Product/Aggregate/{Product_Behavior.res.mjs → Product_Decision.res.mjs} +1 -1
  38. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmi +0 -0
  39. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmt +0 -0
  40. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmi +0 -0
  41. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmt +0 -0
  42. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
  43. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
  44. package/lib/{ocaml/ProductDemand_Behavior-CatalogPlugin.cmi → bs/src/ProductDemand/Aggregate/ProductDemand_Decision-CatalogPlugin.cmi} +0 -0
  45. package/lib/{ocaml/ProductDemand_Behavior-CatalogPlugin.cmt → bs/src/ProductDemand/Aggregate/ProductDemand_Decision-CatalogPlugin.cmt} +0 -0
  46. package/lib/bs/src/ProductDemand/Aggregate/{ProductDemand_Behavior.ast → ProductDemand_Decision.ast} +0 -0
  47. package/{src/ProductDemand/Aggregate/ProductDemand_Behavior.res → lib/bs/src/ProductDemand/Aggregate/ProductDemand_Decision.res} +2 -2
  48. package/lib/bs/src/ProductDemand/Aggregate/{ProductDemand_Behavior.res.mjs → ProductDemand_Decision.res.mjs} +1 -1
  49. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmi +0 -0
  50. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmt +0 -0
  51. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  52. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  53. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  54. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  55. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
  56. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
  57. package/lib/bs/tests/Category/Aggregate/Category_GWT.ast +0 -0
  58. package/lib/bs/tests/Category/Aggregate/Category_GWT.res +3 -3
  59. package/lib/bs/tests/Category/Aggregate/Category_GWT.res.mjs +12 -12
  60. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
  61. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
  62. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  63. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  64. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  65. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  66. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
  67. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
  68. package/lib/bs/tests/Product/Aggregate/Product_GWT.ast +0 -0
  69. package/lib/bs/tests/Product/Aggregate/Product_GWT.res +1 -1
  70. package/lib/bs/tests/Product/Aggregate/Product_GWT.res.mjs +11 -11
  71. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
  72. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
  73. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  74. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  75. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT.ast +0 -0
  76. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT.res +1 -1
  77. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT.res.mjs +10 -10
  78. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  79. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  80. package/lib/ocaml/.compiler.log +2 -2
  81. package/lib/ocaml/CatalogPlugin.cmi +0 -0
  82. package/lib/ocaml/CatalogPlugin.cmt +0 -0
  83. package/lib/ocaml/CatalogPlugin.mlmap +3 -3
  84. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  85. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  86. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  87. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  88. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmi +0 -0
  89. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmt +0 -0
  90. package/lib/ocaml/Category-CatalogPlugin.cmi +0 -0
  91. package/lib/ocaml/Category-CatalogPlugin.cmt +0 -0
  92. package/lib/ocaml/CategoryId-CatalogPlugin.cmi +0 -0
  93. package/lib/ocaml/CategoryId-CatalogPlugin.cmt +0 -0
  94. package/lib/ocaml/{Category_Behavior-CatalogPlugin.cmi → Category_Decision-CatalogPlugin.cmi} +0 -0
  95. package/lib/{bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmt → ocaml/Category_Decision-CatalogPlugin.cmt} +0 -0
  96. package/lib/{bs/src/Category/Aggregate/Category_Behavior.ast → ocaml/Category_Decision.ast} +0 -0
  97. package/lib/ocaml/{Category_Behavior.res → Category_Decision.res} +2 -2
  98. package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
  99. package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
  100. package/lib/ocaml/Category_GWT.ast +0 -0
  101. package/lib/ocaml/Category_GWT.res +3 -3
  102. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  103. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  104. package/lib/ocaml/LifecycleModel-CatalogPlugin.cmi +0 -0
  105. package/lib/ocaml/LifecycleModel-CatalogPlugin.cmt +0 -0
  106. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  107. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  108. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  109. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  110. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  111. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  112. package/lib/ocaml/Plugin.ast +0 -0
  113. package/lib/ocaml/Plugin.res +3 -3
  114. package/lib/ocaml/Product-CatalogPlugin.cmi +0 -0
  115. package/lib/ocaml/Product-CatalogPlugin.cmt +0 -0
  116. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  117. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  118. package/lib/{bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi → ocaml/ProductDemand_Decision-CatalogPlugin.cmi} +0 -0
  119. package/lib/{bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt → ocaml/ProductDemand_Decision-CatalogPlugin.cmt} +0 -0
  120. package/lib/ocaml/{ProductDemand_Behavior.ast → ProductDemand_Decision.ast} +0 -0
  121. package/lib/ocaml/{ProductDemand_Behavior.res → ProductDemand_Decision.res} +2 -2
  122. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  123. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  124. package/lib/ocaml/ProductDemand_GWT.ast +0 -0
  125. package/lib/ocaml/ProductDemand_GWT.res +1 -1
  126. package/lib/ocaml/ProductDemands-CatalogPlugin.cmi +0 -0
  127. package/lib/ocaml/ProductDemands-CatalogPlugin.cmt +0 -0
  128. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  129. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  130. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  131. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  132. package/lib/ocaml/{Product_Behavior-CatalogPlugin.cmi → Product_Decision-CatalogPlugin.cmi} +0 -0
  133. package/lib/ocaml/{Product_Behavior-CatalogPlugin.cmt → Product_Decision-CatalogPlugin.cmt} +0 -0
  134. package/lib/ocaml/{Product_Behavior.ast → Product_Decision.ast} +0 -0
  135. package/lib/{bs/src/Product/Aggregate/Product_Behavior.res → ocaml/Product_Decision.res} +2 -2
  136. package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
  137. package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
  138. package/lib/ocaml/Product_GWT.ast +0 -0
  139. package/lib/ocaml/Product_GWT.res +1 -1
  140. package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
  141. package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
  142. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  143. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  144. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  145. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  146. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  147. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  148. package/lib/ocaml/Products_Projections-CatalogPlugin.cmi +0 -0
  149. package/lib/ocaml/Products_Projections-CatalogPlugin.cmt +0 -0
  150. package/package.json +7 -7
  151. package/src/Category/Aggregate/{Category_Behavior.res → Category_Decision.res} +2 -2
  152. package/{lib/bs/src/Category/Aggregate/Category_Behavior.res.mjs → src/Category/Aggregate/Category_Decision.res.mjs} +1 -1
  153. package/src/Plugin.res +3 -3
  154. package/src/Plugin.res.mjs +16 -16
  155. package/{lib/ocaml/Product_Behavior.res → src/Product/Aggregate/Product_Decision.res} +2 -2
  156. package/src/Product/Aggregate/{Product_Behavior.res.mjs → Product_Decision.res.mjs} +1 -1
  157. package/{lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior.res → src/ProductDemand/Aggregate/ProductDemand_Decision.res} +2 -2
  158. package/src/ProductDemand/Aggregate/{ProductDemand_Behavior.res.mjs → ProductDemand_Decision.res.mjs} +1 -1
  159. package/tests/Category/Aggregate/Category_GWT.res +3 -3
  160. package/tests/Category/Aggregate/Category_GWT.res.mjs +12 -12
  161. package/tests/Product/Aggregate/Product_GWT.res +1 -1
  162. package/tests/Product/Aggregate/Product_GWT.res.mjs +11 -11
  163. package/tests/ProductDemand/Aggregate/ProductDemand_GWT.res +1 -1
  164. package/tests/ProductDemand/Aggregate/ProductDemand_GWT.res.mjs +10 -10
  165. /package/lib/bs/src/Category/Aggregate/{Category_Behavior-CatalogPlugin.cmj → Category_Decision-CatalogPlugin.cmj} +0 -0
  166. /package/lib/bs/src/Product/Aggregate/{Product_Behavior-CatalogPlugin.cmj → Product_Decision-CatalogPlugin.cmj} +0 -0
  167. /package/lib/bs/src/ProductDemand/Aggregate/{ProductDemand_Behavior-CatalogPlugin.cmj → ProductDemand_Decision-CatalogPlugin.cmj} +0 -0
  168. /package/lib/ocaml/{Category_Behavior-CatalogPlugin.cmj → Category_Decision-CatalogPlugin.cmj} +0 -0
  169. /package/lib/ocaml/{ProductDemand_Behavior-CatalogPlugin.cmj → ProductDemand_Decision-CatalogPlugin.cmj} +0 -0
  170. /package/lib/ocaml/{Product_Behavior-CatalogPlugin.cmj → Product_Decision-CatalogPlugin.cmj} +0 -0
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
+ # 3.0.0-alpha.281 (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
+
20
+ # 3.0.0-alpha.280 (2026-10-19)
21
+
22
+ **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
23
+
24
+
25
+
26
+
27
+
6
28
  # 3.0.0-alpha.279 (2026-10-17)
7
29
 
8
30
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
@@ -1,2 +1,2 @@
1
- #Start(1792228208748)
2
- #Done(1792228215387)
1
+ #Start(1792571245532)
2
+ #Done(1792571253114)
Binary file
Binary file
@@ -5,7 +5,7 @@ Categories_GWT
5
5
  Categories_Projections
6
6
  Category
7
7
  CategoryId
8
- Category_Behavior
8
+ Category_Decision
9
9
  Category_GWT
10
10
  ImportProducts
11
11
  LifecycleModel
@@ -14,12 +14,12 @@ Orders_Extension_GWT
14
14
  Plugin
15
15
  Product
16
16
  ProductDemand
17
- ProductDemand_Behavior
17
+ ProductDemand_Decision
18
18
  ProductDemand_GWT
19
19
  ProductDemands
20
20
  ProductDemands_GWT
21
21
  ProductDemands_Projections
22
- Product_Behavior
22
+ Product_Decision
23
23
  Product_GWT
24
24
  Products
25
25
  Products_ExtensionPointMapping
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "50d5358a2cbe328e82ae9b442e4615b86dbfe6b2ce05e9eca04a0c78da0e4708",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1792228215396"
7
+ "generated_at": "1792571253118"
8
8
  }
@@ -1,7 +1,7 @@
1
- // Category aggregate behavior.
1
+ // Category aggregate decision.
2
2
  // Implements the state machine for adding, renaming, and archiving categories.
3
3
 
4
- @@reventless.behavior
4
+ @@reventless.decision
5
5
 
6
6
  @schema
7
7
  type state =
@@ -93,7 +93,7 @@ let Spec;
93
93
 
94
94
  let initialState = "NotCreated";
95
95
 
96
- let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/Category/Aggregate/Category_Behavior.res.mjs";
96
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/Category/Aggregate/Category_Decision.res.mjs";
97
97
 
98
98
  let snapshot;
99
99
 
Binary file
Binary file
Binary file
@@ -6,17 +6,17 @@ module Make = (Platform: ReventlessInfra.Platform.T) => {
6
6
  // Aggregates
7
7
  module CategoryAggregate = Platform.Aggregate.Make(
8
8
  Category,
9
- Category_Behavior,
9
+ Category_Decision,
10
10
  ReventlessInfra.NoEventMappings.Make(Category),
11
11
  )
12
12
  module ProductAggregate = Platform.Aggregate.Make(
13
13
  Product,
14
- Product_Behavior,
14
+ Product_Decision,
15
15
  ReventlessInfra.NoEventMappings.Make(Product),
16
16
  )
17
17
  module ProductDemandAggregate = Platform.Aggregate.Make(
18
18
  ProductDemand,
19
- ProductDemand_Behavior,
19
+ ProductDemand_Decision,
20
20
  ReventlessInfra.NoEventMappings.Make(ProductDemand),
21
21
  )
22
22
 
@@ -12,14 +12,14 @@ import * as ImportProducts$CatalogPlugin from "./Task/ImportProducts.res.mjs";
12
12
  import * as LifecycleModel$CatalogPlugin from "./LifecycleModel.res.mjs";
13
13
  import * as ProductDemands$CatalogPlugin from "./ProductDemand/ReadModel/ProductDemands.res.mjs";
14
14
  import * as Orders_Extension$CatalogPlugin from "./Extension/Orders_Extension.res.mjs";
15
- import * as Product_Behavior$CatalogPlugin from "./Product/Aggregate/Product_Behavior.res.mjs";
16
- import * as Category_Behavior$CatalogPlugin from "./Category/Aggregate/Category_Behavior.res.mjs";
15
+ import * as Product_Decision$CatalogPlugin from "./Product/Aggregate/Product_Decision.res.mjs";
16
+ import * as Category_Decision$CatalogPlugin from "./Category/Aggregate/Category_Decision.res.mjs";
17
17
  import * as NoEventMappings$ReventlessInfra from "@reventlessdev/reventless-infra/src/types/NoEventMappings.res.mjs";
18
18
  import * as Orders_ExtensionPoint$OrderingSpec from "@reventlessdev/online-shop-aggregates-ordering-spec/src/Orders_ExtensionPoint.res.mjs";
19
19
  import * as Products_Projections$CatalogPlugin from "./Product/ReadModel/Products_Projections.res.mjs";
20
20
  import * as Products_ExtensionPoint$CatalogSpec from "@reventlessdev/online-shop-aggregates-catalog-spec/src/Products_ExtensionPoint.res.mjs";
21
21
  import * as Categories_Projections$CatalogPlugin from "./Category/ReadModel/Categories_Projections.res.mjs";
22
- import * as ProductDemand_Behavior$CatalogPlugin from "./ProductDemand/Aggregate/ProductDemand_Behavior.res.mjs";
22
+ import * as ProductDemand_Decision$CatalogPlugin from "./ProductDemand/Aggregate/ProductDemand_Decision.res.mjs";
23
23
  import * as ProductDemands_Projections$CatalogPlugin from "./ProductDemand/ReadModel/ProductDemands_Projections.res.mjs";
24
24
  import * as Products_ExtensionPointMapping$CatalogPlugin from "./ExtensionPoint/Products_ExtensionPointMapping.res.mjs";
25
25
 
@@ -35,11 +35,11 @@ function Make(Platform) {
35
35
  commandTransition: Category$CatalogPlugin.commandTransition,
36
36
  traits: Category$CatalogPlugin.traits
37
37
  })({
38
- initialState: Category_Behavior$CatalogPlugin.initialState,
39
- evolve: Category_Behavior$CatalogPlugin.evolve,
40
- decide: Category_Behavior$CatalogPlugin.decide,
38
+ initialState: Category_Decision$CatalogPlugin.initialState,
39
+ evolve: Category_Decision$CatalogPlugin.evolve,
40
+ decide: Category_Decision$CatalogPlugin.decide,
41
41
  snapshot: undefined,
42
- moduleUrl: Category_Behavior$CatalogPlugin.moduleUrl
42
+ moduleUrl: Category_Decision$CatalogPlugin.moduleUrl
43
43
  })(NoEventMappings$ReventlessInfra.Make({
44
44
  name: Category$CatalogPlugin.name,
45
45
  Id: CategoryId$CatalogPlugin,
@@ -56,11 +56,11 @@ function Make(Platform) {
56
56
  commandTransition: Product$CatalogPlugin.commandTransition,
57
57
  traits: Product$CatalogPlugin.traits
58
58
  })({
59
- initialState: Product_Behavior$CatalogPlugin.initialState,
60
- evolve: Product_Behavior$CatalogPlugin.evolve,
61
- decide: Product_Behavior$CatalogPlugin.decide,
62
- snapshot: Product_Behavior$CatalogPlugin.snapshot,
63
- moduleUrl: Product_Behavior$CatalogPlugin.moduleUrl
59
+ initialState: Product_Decision$CatalogPlugin.initialState,
60
+ evolve: Product_Decision$CatalogPlugin.evolve,
61
+ decide: Product_Decision$CatalogPlugin.decide,
62
+ snapshot: Product_Decision$CatalogPlugin.snapshot,
63
+ moduleUrl: Product_Decision$CatalogPlugin.moduleUrl
64
64
  })(NoEventMappings$ReventlessInfra.Make({
65
65
  name: Product$CatalogPlugin.name,
66
66
  Id: ProductId$CatalogSpec,
@@ -77,11 +77,11 @@ function Make(Platform) {
77
77
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
78
78
  traits: ProductDemand$CatalogPlugin.traits
79
79
  })({
80
- initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
81
- evolve: ProductDemand_Behavior$CatalogPlugin.evolve,
82
- decide: ProductDemand_Behavior$CatalogPlugin.decide,
80
+ initialState: ProductDemand_Decision$CatalogPlugin.initialState,
81
+ evolve: ProductDemand_Decision$CatalogPlugin.evolve,
82
+ decide: ProductDemand_Decision$CatalogPlugin.decide,
83
83
  snapshot: undefined,
84
- moduleUrl: ProductDemand_Behavior$CatalogPlugin.moduleUrl
84
+ moduleUrl: ProductDemand_Decision$CatalogPlugin.moduleUrl
85
85
  })(NoEventMappings$ReventlessInfra.Make({
86
86
  name: ProductDemand$CatalogPlugin.name,
87
87
  Id: ProductId$CatalogSpec,
@@ -1,4 +1,4 @@
1
- // Product aggregate behavior.
1
+ // Product aggregate decision.
2
2
  // Implements the state machine for adding and updating products.
3
3
  //
4
4
  // Snapshotting is enabled (every 50 events): a long-lived product with many
@@ -6,7 +6,7 @@
6
6
  // folding full history. See the "Replay cost and snapshots" section of the
7
7
  // aggregate component docs.
8
8
 
9
- @@reventless.behavior
9
+ @@reventless.decision
10
10
  @@reventless.snapshots(50)
11
11
 
12
12
  @schema
@@ -173,7 +173,7 @@ let Spec;
173
173
 
174
174
  let initialState = "NotCreated";
175
175
 
176
- let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/Product/Aggregate/Product_Behavior.res.mjs";
176
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/Product/Aggregate/Product_Decision.res.mjs";
177
177
 
178
178
  export {
179
179
  Spec,
@@ -1,7 +1,7 @@
1
- // ProductDemand aggregate behavior.
1
+ // ProductDemand aggregate decision.
2
2
  // Idempotently records and revokes order demand per product.
3
3
 
4
- @@reventless.behavior
4
+ @@reventless.decision
5
5
 
6
6
  @schema
7
7
  type state =
@@ -89,7 +89,7 @@ let Spec;
89
89
 
90
90
  let initialState = "NotCreated";
91
91
 
92
- let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/ProductDemand/Aggregate/ProductDemand_Behavior.res.mjs";
92
+ let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/ProductDemand/Aggregate/ProductDemand_Decision.res.mjs";
93
93
 
94
94
  let snapshot;
95
95
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  open Catalog_Examples
4
4
 
5
- describe("Category Behavior", () => {
5
+ describe("Category Decision", () => {
6
6
  // scenario-id: fb4b109a-87b5-4aa3-a8e2-4fca61d0c050
7
7
  test("Add on new aggregate produces Added", () =>
8
8
  givenEvents([])
@@ -74,7 +74,7 @@ describe("Who may Archive", () => {
74
74
  givenEvents([Added({name: electronics})])
75
75
  ->asCaller(Caller.owner(shopper))
76
76
  ->whenCmd(Archive)
77
- ->thenRefused
77
+ ->thenForbidden
78
78
  )
79
79
 
80
80
  // scenario-id: c4c8e733-7e07-4f3c-b3f2-01bc6b52f601
@@ -82,6 +82,6 @@ describe("Who may Archive", () => {
82
82
  givenEvents([Added({name: electronics})])
83
83
  ->asCaller(Caller.anonymous)
84
84
  ->whenCmd(Archive)
85
- ->thenRefused
85
+ ->thenForbidden
86
86
  )
87
87
  })
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Category$CatalogPlugin from "../../../src/Category/Aggregate/Category.res.mjs";
4
- import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
4
+ import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
5
5
  import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
- import * as Category_Behavior$CatalogPlugin from "../../../src/Category/Aggregate/Category_Behavior.res.mjs";
6
+ import * as Category_Decision$CatalogPlugin from "../../../src/Category/Aggregate/Category_Decision.res.mjs";
7
7
 
8
- let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
8
+ let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
9
9
  name: Category$CatalogPlugin.name,
10
10
  commandSchema: Category$CatalogPlugin.commandSchema,
11
11
  eventSchema: Category$CatalogPlugin.eventSchema,
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
19
19
  errorSchema: Category$CatalogPlugin.errorSchema,
20
20
  authorizationOf: Category$CatalogPlugin.authorizationOf
21
21
  },
22
- initialState: Category_Behavior$CatalogPlugin.initialState,
23
- evolve: Category_Behavior$CatalogPlugin.evolve,
24
- decide: Category_Behavior$CatalogPlugin.decide,
22
+ initialState: Category_Decision$CatalogPlugin.initialState,
23
+ evolve: Category_Decision$CatalogPlugin.evolve,
24
+ decide: Category_Decision$CatalogPlugin.decide,
25
25
  snapshot: undefined,
26
- moduleUrl: Category_Behavior$CatalogPlugin.moduleUrl
26
+ moduleUrl: Category_Decision$CatalogPlugin.moduleUrl
27
27
  });
28
28
 
29
29
  let describe = include.describe;
@@ -44,9 +44,9 @@ let thenNoEvent = include.thenNoEvent;
44
44
 
45
45
  let thenError = include.thenError;
46
46
 
47
- let thenRefused = include.thenRefused;
47
+ let thenForbidden = include.thenForbidden;
48
48
 
49
- describe("Category Behavior", () => {
49
+ describe("Category Decision", () => {
50
50
  test("Add on new aggregate produces Added", () => thenEvent(whenCmd(givenEvents([]), {
51
51
  TAG: "Add",
52
52
  name: Catalog_Examples$CatalogPlugin.electronics
@@ -110,11 +110,11 @@ describe("Who may Archive", () => {
110
110
  TAG: "Added",
111
111
  name: Catalog_Examples$CatalogPlugin.electronics
112
112
  }]), Caller.inRoles(["Admin"])), "Archive"), "Archived"));
113
- test("a shopper may not archive a category", () => thenRefused(whenCmd(asCaller(givenEvents([{
113
+ test("a shopper may not archive a category", () => thenForbidden(whenCmd(asCaller(givenEvents([{
114
114
  TAG: "Added",
115
115
  name: Catalog_Examples$CatalogPlugin.electronics
116
116
  }]), Caller.owner(Catalog_Examples$CatalogPlugin.shopper, undefined)), "Archive")));
117
- test("an anonymous caller may not archive a category", () => thenRefused(whenCmd(asCaller(givenEvents([{
117
+ test("an anonymous caller may not archive a category", () => thenForbidden(whenCmd(asCaller(givenEvents([{
118
118
  TAG: "Added",
119
119
  name: Catalog_Examples$CatalogPlugin.electronics
120
120
  }]), Caller.anonymous), "Archive")));
@@ -148,6 +148,6 @@ export {
148
148
  thenCompareEvents,
149
149
  thenEventsWithError,
150
150
  thenError,
151
- thenRefused,
151
+ thenForbidden,
152
152
  }
153
153
  /* include Not a pure module */
@@ -9,7 +9,7 @@ let added = Added({
9
9
  imageUrl: "/productImages/laptop.jpg",
10
10
  })
11
11
 
12
- describe("Product Behavior", () => {
12
+ describe("Product Decision", () => {
13
13
  // scenario-id: 6126c93a-ba4e-4ce0-8d8e-654cf64cd8ba
14
14
  test("Add on new aggregate produces Added", () =>
15
15
  givenEvents([])
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Product$CatalogPlugin from "../../../src/Product/Aggregate/Product.res.mjs";
4
- import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
4
+ import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
5
5
  import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
- import * as Product_Behavior$CatalogPlugin from "../../../src/Product/Aggregate/Product_Behavior.res.mjs";
6
+ import * as Product_Decision$CatalogPlugin from "../../../src/Product/Aggregate/Product_Decision.res.mjs";
7
7
 
8
- let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
8
+ let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
9
9
  name: Product$CatalogPlugin.name,
10
10
  commandSchema: Product$CatalogPlugin.commandSchema,
11
11
  eventSchema: Product$CatalogPlugin.eventSchema,
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
19
19
  errorSchema: Product$CatalogPlugin.errorSchema,
20
20
  authorizationOf: Product$CatalogPlugin.authorizationOf
21
21
  },
22
- initialState: Product_Behavior$CatalogPlugin.initialState,
23
- evolve: Product_Behavior$CatalogPlugin.evolve,
24
- decide: Product_Behavior$CatalogPlugin.decide,
25
- snapshot: Product_Behavior$CatalogPlugin.snapshot,
26
- moduleUrl: Product_Behavior$CatalogPlugin.moduleUrl
22
+ initialState: Product_Decision$CatalogPlugin.initialState,
23
+ evolve: Product_Decision$CatalogPlugin.evolve,
24
+ decide: Product_Decision$CatalogPlugin.decide,
25
+ snapshot: Product_Decision$CatalogPlugin.snapshot,
26
+ moduleUrl: Product_Decision$CatalogPlugin.moduleUrl
27
27
  });
28
28
 
29
29
  let describe = include.describe;
@@ -48,7 +48,7 @@ let added = {
48
48
  imageUrl: "/productImages/laptop.jpg"
49
49
  };
50
50
 
51
- describe("Product Behavior", () => {
51
+ describe("Product Decision", () => {
52
52
  test("Add on new aggregate produces Added", () => thenEvent(whenCmd(givenEvents([]), {
53
53
  TAG: "Add",
54
54
  name: Catalog_Examples$CatalogPlugin.laptop,
@@ -141,7 +141,7 @@ let thenCompareEvents = include.thenCompareEvents;
141
141
 
142
142
  let thenEventsWithError = include.thenEventsWithError;
143
143
 
144
- let thenRefused = include.thenRefused;
144
+ let thenForbidden = include.thenForbidden;
145
145
 
146
146
  export {
147
147
  Spec,
@@ -159,7 +159,7 @@ export {
159
159
  thenCompareEvents,
160
160
  thenEventsWithError,
161
161
  thenError,
162
- thenRefused,
162
+ thenForbidden,
163
163
  added,
164
164
  }
165
165
  /* include Not a pure module */
@@ -2,7 +2,7 @@
2
2
 
3
3
  open Catalog_Examples
4
4
 
5
- describe("ProductDemand Behavior", () => {
5
+ describe("ProductDemand Decision", () => {
6
6
  // scenario-id: bfe0c68e-f135-447f-9036-c339c9769747
7
7
  test("Record on new aggregate produces Recorded", () =>
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 ProductDemand$CatalogPlugin from "../../../src/ProductDemand/Aggregate/ProductDemand.res.mjs";
5
5
  import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
6
- import * as ProductDemand_Behavior$CatalogPlugin from "../../../src/ProductDemand/Aggregate/ProductDemand_Behavior.res.mjs";
6
+ import * as ProductDemand_Decision$CatalogPlugin from "../../../src/ProductDemand/Aggregate/ProductDemand_Decision.res.mjs";
7
7
 
8
- let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
8
+ let include = Decision_GWT$ReventlessGwt.MakeFromAggregate({
9
9
  name: ProductDemand$CatalogPlugin.name,
10
10
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
11
11
  eventSchema: ProductDemand$CatalogPlugin.eventSchema,
@@ -19,11 +19,11 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
19
19
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
20
20
  authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
21
21
  },
22
- initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
23
- evolve: ProductDemand_Behavior$CatalogPlugin.evolve,
24
- decide: ProductDemand_Behavior$CatalogPlugin.decide,
22
+ initialState: ProductDemand_Decision$CatalogPlugin.initialState,
23
+ evolve: ProductDemand_Decision$CatalogPlugin.evolve,
24
+ decide: ProductDemand_Decision$CatalogPlugin.decide,
25
25
  snapshot: undefined,
26
- moduleUrl: ProductDemand_Behavior$CatalogPlugin.moduleUrl
26
+ moduleUrl: ProductDemand_Decision$CatalogPlugin.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("ProductDemand Behavior", () => {
41
+ describe("ProductDemand Decision", () => {
42
42
  test("Record on new aggregate produces Recorded", () => thenEvent(whenCmd(givenEvents([]), {
43
43
  TAG: "Record",
44
44
  orderId: Catalog_Examples$CatalogPlugin.order1
@@ -104,7 +104,7 @@ let thenEventsWithError = include.thenEventsWithError;
104
104
 
105
105
  let thenError = include.thenError;
106
106
 
107
- let thenRefused = include.thenRefused;
107
+ let thenForbidden = include.thenForbidden;
108
108
 
109
109
  export {
110
110
  Spec,
@@ -122,6 +122,6 @@ export {
122
122
  thenCompareEvents,
123
123
  thenEventsWithError,
124
124
  thenError,
125
- thenRefused,
125
+ thenForbidden,
126
126
  }
127
127
  /* include Not a pure module */
@@ -1,2 +1,2 @@
1
- #Start(1792228208748)
2
- #Done(1792228215387)
1
+ #Start(1792571245532)
2
+ #Done(1792571253114)
Binary file
Binary file