@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.215 → 3.0.0-alpha.217

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 (155) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmi +0 -0
  5. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmj +0 -0
  6. package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmt +0 -0
  7. package/lib/bs/src/Category/Aggregate/Category.ast +0 -0
  8. package/lib/bs/src/Category/Aggregate/Category.res.mjs +17 -17
  9. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmi +0 -0
  10. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmj +0 -0
  11. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmt +0 -0
  12. package/lib/bs/src/Category/Aggregate/Category_Behavior.ast +0 -0
  13. package/lib/bs/src/Category/Aggregate/Category_Behavior.res.mjs +6 -6
  14. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmi +0 -0
  15. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmj +0 -0
  16. package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmt +0 -0
  17. package/lib/bs/src/Category/ReadModel/Categories.ast +0 -0
  18. package/lib/bs/src/Category/ReadModel/Categories.res.mjs +4 -4
  19. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmi +0 -0
  20. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmt +0 -0
  21. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  22. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  23. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  24. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  25. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  26. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  27. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmi +0 -0
  28. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmj +0 -0
  29. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmt +0 -0
  30. package/lib/bs/src/Product/Aggregate/Product.ast +0 -0
  31. package/lib/bs/src/Product/Aggregate/Product.res.mjs +28 -28
  32. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmi +0 -0
  33. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmj +0 -0
  34. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmt +0 -0
  35. package/lib/bs/src/Product/Aggregate/Product_Behavior.ast +0 -0
  36. package/lib/bs/src/Product/Aggregate/Product_Behavior.res.mjs +8 -8
  37. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmi +0 -0
  38. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmj +0 -0
  39. package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmt +0 -0
  40. package/lib/bs/src/Product/ReadModel/Products.ast +0 -0
  41. package/lib/bs/src/Product/ReadModel/Products.res.mjs +5 -5
  42. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmi +0 -0
  43. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmt +0 -0
  44. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
  45. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmj +0 -0
  46. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
  47. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.ast +0 -0
  48. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.res.mjs +13 -13
  49. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  50. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmj +0 -0
  51. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  52. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior.ast +0 -0
  53. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior.res.mjs +5 -5
  54. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmi +0 -0
  55. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmj +0 -0
  56. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmt +0 -0
  57. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands.ast +0 -0
  58. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands.res.mjs +4 -4
  59. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  60. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  61. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  62. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  63. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
  64. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
  65. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
  66. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
  67. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  68. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  69. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  70. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  71. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
  72. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
  73. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
  74. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
  75. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  76. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  77. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  78. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  79. package/lib/ocaml/.compiler.log +2 -2
  80. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  81. package/lib/ocaml/Categories-CatalogPlugin.cmj +0 -0
  82. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  83. package/lib/ocaml/Categories.ast +0 -0
  84. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  85. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  86. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmi +0 -0
  87. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmt +0 -0
  88. package/lib/ocaml/Category-CatalogPlugin.cmi +0 -0
  89. package/lib/ocaml/Category-CatalogPlugin.cmj +0 -0
  90. package/lib/ocaml/Category-CatalogPlugin.cmt +0 -0
  91. package/lib/ocaml/Category.ast +0 -0
  92. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmi +0 -0
  93. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmj +0 -0
  94. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmt +0 -0
  95. package/lib/ocaml/Category_Behavior.ast +0 -0
  96. package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
  97. package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
  98. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  99. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  100. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  101. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  102. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  103. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  104. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  105. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  106. package/lib/ocaml/Product-CatalogPlugin.cmi +0 -0
  107. package/lib/ocaml/Product-CatalogPlugin.cmj +0 -0
  108. package/lib/ocaml/Product-CatalogPlugin.cmt +0 -0
  109. package/lib/ocaml/Product.ast +0 -0
  110. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  111. package/lib/ocaml/ProductDemand-CatalogPlugin.cmj +0 -0
  112. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  113. package/lib/ocaml/ProductDemand.ast +0 -0
  114. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  115. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmj +0 -0
  116. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  117. package/lib/ocaml/ProductDemand_Behavior.ast +0 -0
  118. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  119. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  120. package/lib/ocaml/ProductDemands-CatalogPlugin.cmi +0 -0
  121. package/lib/ocaml/ProductDemands-CatalogPlugin.cmj +0 -0
  122. package/lib/ocaml/ProductDemands-CatalogPlugin.cmt +0 -0
  123. package/lib/ocaml/ProductDemands.ast +0 -0
  124. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  125. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  126. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  127. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  128. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmi +0 -0
  129. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmj +0 -0
  130. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmt +0 -0
  131. package/lib/ocaml/Product_Behavior.ast +0 -0
  132. package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
  133. package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
  134. package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
  135. package/lib/ocaml/Products-CatalogPlugin.cmj +0 -0
  136. package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
  137. package/lib/ocaml/Products.ast +0 -0
  138. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  139. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  140. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  141. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  142. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  143. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  144. package/lib/ocaml/Products_Projections-CatalogPlugin.cmi +0 -0
  145. package/lib/ocaml/Products_Projections-CatalogPlugin.cmt +0 -0
  146. package/package.json +10 -10
  147. package/src/Category/Aggregate/Category.res.mjs +17 -17
  148. package/src/Category/Aggregate/Category_Behavior.res.mjs +6 -6
  149. package/src/Category/ReadModel/Categories.res.mjs +4 -4
  150. package/src/Product/Aggregate/Product.res.mjs +28 -28
  151. package/src/Product/Aggregate/Product_Behavior.res.mjs +8 -8
  152. package/src/Product/ReadModel/Products.res.mjs +5 -5
  153. package/src/ProductDemand/Aggregate/ProductDemand.res.mjs +13 -13
  154. package/src/ProductDemand/Aggregate/ProductDemand_Behavior.res.mjs +5 -5
  155. package/src/ProductDemand/ReadModel/ProductDemands.res.mjs +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.217 (2026-08-19)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.216 (2026-08-18)
15
+
16
+ * feat(sury)!: migrate to sury 11.0.0-rc.1 ([2cf8969](https://github.com/ReventlessDev/reventless-core/commit/2cf8969a222ce1b775563668a4126cb20611966c))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * sury is a direct dependency of the published packages and
21
+ its schema and serialization surface changed; consumers must migrate to
22
+ sury 11.
23
+
24
+
25
+
6
26
  # 3.0.0-alpha.215 (2026-08-18)
7
27
 
8
28
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
@@ -1,2 +1,2 @@
1
- #Start(1787013901765)
2
- #Done(1787013906432)
1
+ #Start(1787124112856)
2
+ #Done(1787124119029)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "75e3a59c95cc953608fd3dd6ea6ed68141bba4414a20a52f114261b8a48385fa",
5
5
  "rescript_config_hash": "50d5358a2cbe328e82ae9b442e4615b86dbfe6b2ce05e9eca04a0c78da0e4708",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1787013906437"
7
+ "generated_at": "1787124119047"
8
8
  }
@@ -1,35 +1,35 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
 
5
- let commandSchema = S.union([
6
- S.schema(s => ({
5
+ let commandSchema = Sury.union([
6
+ Sury.$schema(s => ({
7
7
  TAG: "Add",
8
- name: s.m(S.string)
8
+ name: s.m(Sury.string)
9
9
  })),
10
- S.schema(s => ({
10
+ Sury.$schema(s => ({
11
11
  TAG: "Rename",
12
- name: s.m(S.string)
12
+ name: s.m(Sury.string)
13
13
  })),
14
- S.literal("Archive")
14
+ Sury.literal("Archive")
15
15
  ]);
16
16
 
17
- let eventSchema = S.union([
18
- S.schema(s => ({
17
+ let eventSchema = Sury.union([
18
+ Sury.$schema(s => ({
19
19
  TAG: "Added",
20
- name: s.m(S.string)
20
+ name: s.m(Sury.string)
21
21
  })),
22
- S.schema(s => ({
22
+ Sury.$schema(s => ({
23
23
  TAG: "Renamed",
24
- name: s.m(S.string)
24
+ name: s.m(Sury.string)
25
25
  })),
26
- S.literal("Archived")
26
+ Sury.literal("Archived")
27
27
  ]);
28
28
 
29
- let errorSchema = S.union([
30
- S.literal("CategoryAlreadyExists"),
31
- S.literal("CategoryNotFound"),
32
- S.literal("CategoryAlreadyArchived")
29
+ let errorSchema = Sury.union([
30
+ Sury.literal("CategoryAlreadyExists"),
31
+ Sury.literal("CategoryNotFound"),
32
+ Sury.literal("CategoryAlreadyArchived")
33
33
  ]);
34
34
 
35
35
  function commandAuthorization(command) {
@@ -1,14 +1,14 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
 
5
- let stateSchema = S.union([
6
- S.literal("NotCreated"),
7
- S.schema(s => ({
5
+ let stateSchema = Sury.union([
6
+ Sury.literal("NotCreated"),
7
+ Sury.$schema(s => ({
8
8
  TAG: "Active",
9
- name: s.m(S.string)
9
+ name: s.m(Sury.string)
10
10
  })),
11
- S.literal("Archived")
11
+ Sury.literal("Archived")
12
12
  ]);
13
13
 
14
14
  function evolve(state, event) {
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
  import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
5
5
 
6
- let stateSchema = S.schema(s => ({
7
- name: s.m(S.string),
8
- archived: s.m(S.bool)
6
+ let stateSchema = Sury.$schema(s => ({
7
+ name: s.m(Sury.string),
8
+ archived: s.m(Sury.bool)
9
9
  }));
10
10
 
11
11
  let config = ReadModel$Reventless.config(undefined, undefined, undefined);
Binary file
Binary file
@@ -1,63 +1,63 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
  import * as StorageRef$Reventless from "@reventlessdev/reventless-spec/src/semantic/StorageRef.res.mjs";
5
5
 
6
- let commandSchema = S.union([
7
- S.schema(s => ({
6
+ let commandSchema = Sury.union([
7
+ Sury.$schema(s => ({
8
8
  TAG: "Add",
9
- name: s.m(S.string),
10
- description: s.m(S.string),
11
- price: s.m(S.float),
9
+ name: s.m(Sury.string),
10
+ description: s.m(Sury.string),
11
+ price: s.m(Sury.float),
12
12
  imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
13
13
  })),
14
- S.schema(s => ({
14
+ Sury.$schema(s => ({
15
15
  TAG: "UpdateName",
16
- name: s.m(S.string)
16
+ name: s.m(Sury.string)
17
17
  })),
18
- S.schema(s => ({
18
+ Sury.$schema(s => ({
19
19
  TAG: "UpdateDescription",
20
- description: s.m(S.string)
20
+ description: s.m(Sury.string)
21
21
  })),
22
- S.schema(s => ({
22
+ Sury.$schema(s => ({
23
23
  TAG: "UpdatePrice",
24
- price: s.m(S.float)
24
+ price: s.m(Sury.float)
25
25
  })),
26
- S.schema(s => ({
26
+ Sury.$schema(s => ({
27
27
  TAG: "UpdateImage",
28
28
  imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
29
29
  }))
30
30
  ]);
31
31
 
32
- let eventSchema = S.union([
33
- S.schema(s => ({
32
+ let eventSchema = Sury.union([
33
+ Sury.$schema(s => ({
34
34
  TAG: "Added",
35
- name: s.m(S.string),
36
- description: s.m(S.string),
37
- price: s.m(S.float),
35
+ name: s.m(Sury.string),
36
+ description: s.m(Sury.string),
37
+ price: s.m(Sury.float),
38
38
  imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
39
39
  })),
40
- S.schema(s => ({
40
+ Sury.$schema(s => ({
41
41
  TAG: "NameUpdated",
42
- name: s.m(S.string)
42
+ name: s.m(Sury.string)
43
43
  })),
44
- S.schema(s => ({
44
+ Sury.$schema(s => ({
45
45
  TAG: "DescriptionUpdated",
46
- description: s.m(S.string)
46
+ description: s.m(Sury.string)
47
47
  })),
48
- S.schema(s => ({
48
+ Sury.$schema(s => ({
49
49
  TAG: "PriceUpdated",
50
- price: s.m(S.float)
50
+ price: s.m(Sury.float)
51
51
  })),
52
- S.schema(s => ({
52
+ Sury.$schema(s => ({
53
53
  TAG: "ImageUpdated",
54
54
  imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
55
55
  }))
56
56
  ]);
57
57
 
58
- let errorSchema = S.union([
59
- S.literal("ProductAlreadyExists"),
60
- S.literal("ProductNotFound")
58
+ let errorSchema = Sury.union([
59
+ Sury.literal("ProductAlreadyExists"),
60
+ Sury.literal("ProductNotFound")
61
61
  ]);
62
62
 
63
63
  function commandAuthorization(param) {
@@ -1,15 +1,15 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
 
5
- let stateSchema = S.union([
6
- S.literal("NotCreated"),
7
- S.schema(s => ({
5
+ let stateSchema = Sury.union([
6
+ Sury.literal("NotCreated"),
7
+ Sury.$schema(s => ({
8
8
  TAG: "Created",
9
- name: s.m(S.string),
10
- description: s.m(S.string),
11
- price: s.m(S.float),
12
- imageUrl: s.m(S.string)
9
+ name: s.m(Sury.string),
10
+ description: s.m(Sury.string),
11
+ price: s.m(Sury.float),
12
+ imageUrl: s.m(Sury.string)
13
13
  }))
14
14
  ]);
15
15
 
@@ -1,13 +1,13 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
  import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
5
5
  import * as StorageRef$Reventless from "@reventlessdev/reventless-spec/src/semantic/StorageRef.res.mjs";
6
6
 
7
- let stateSchema = S.schema(s => ({
8
- name: s.m(S.string),
9
- description: s.m(S.string),
10
- price: s.m(S.float),
7
+ let stateSchema = Sury.$schema(s => ({
8
+ name: s.m(Sury.string),
9
+ description: s.m(Sury.string),
10
+ price: s.m(Sury.float),
11
11
  imageUrl: s.m(StorageRef$Reventless.forStore(undefined, "productImages"))
12
12
  }));
13
13
 
@@ -1,30 +1,32 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
  import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
5
5
 
6
- let commandSchema = S.union([
7
- S.schema(s => ({
6
+ let commandSchema = Sury.union([
7
+ Sury.$schema(s => ({
8
8
  TAG: "Record",
9
- orderId: s.m(S.string)
9
+ orderId: s.m(Sury.string)
10
10
  })),
11
- S.schema(s => ({
11
+ Sury.$schema(s => ({
12
12
  TAG: "Revoke",
13
- orderId: s.m(S.string)
13
+ orderId: s.m(Sury.string)
14
14
  }))
15
15
  ]);
16
16
 
17
- let eventSchema = S.union([
18
- S.schema(s => ({
17
+ let eventSchema = Sury.union([
18
+ Sury.$schema(s => ({
19
19
  TAG: "Recorded",
20
- orderId: s.m(S.string)
20
+ orderId: s.m(Sury.string)
21
21
  })),
22
- S.schema(s => ({
22
+ Sury.$schema(s => ({
23
23
  TAG: "Revoked",
24
- orderId: s.m(S.string)
24
+ orderId: s.m(Sury.string)
25
25
  }))
26
26
  ]);
27
27
 
28
+ let errorSchema = Sury.$unit;
29
+
28
30
  let commandSchema$1 = Api$ReventlessInfra.markNoApi(commandSchema);
29
31
 
30
32
  function commandAuthorization(param) {
@@ -35,8 +37,6 @@ let name = "ProductDemand";
35
37
 
36
38
  let Id;
37
39
 
38
- let errorSchema = S.unit;
39
-
40
40
  let moduleUrl = "@reventlessdev/online-shop-aggregates-catalog/src/ProductDemand/Aggregate/ProductDemand.res.mjs";
41
41
 
42
42
  export {
@@ -1,12 +1,12 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
 
5
- let stateSchema = S.union([
6
- S.literal("NotCreated"),
7
- S.schema(s => ({
5
+ let stateSchema = Sury.union([
6
+ Sury.literal("NotCreated"),
7
+ Sury.$schema(s => ({
8
8
  TAG: "Created",
9
- recordedOrderIds: s.m(S.array(S.string))
9
+ recordedOrderIds: s.m(Sury.array(Sury.string))
10
10
  }))
11
11
  ]);
12
12
 
@@ -1,11 +1,11 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
3
+ import * as Sury from "sury";
4
4
  import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
5
5
 
6
- let stateSchema = S.schema(s => ({
7
- name: s.m(S.string),
8
- orderCount: s.m(S.int)
6
+ let stateSchema = Sury.$schema(s => ({
7
+ name: s.m(Sury.string),
8
+ orderCount: s.m(Sury.int)
9
9
  }));
10
10
 
11
11
  let config = ReadModel$Reventless.config(undefined, undefined, undefined);
@@ -1,2 +1,2 @@
1
- #Start(1787013901765)
2
- #Done(1787013906432)
1
+ #Start(1787124112856)
2
+ #Done(1787124119029)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file