@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.271 → 3.0.0-alpha.273

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 (119) hide show
  1. package/CHANGELOG.md +19 -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 +3 -3
  9. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmi +0 -0
  10. package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmt +0 -0
  11. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmi +0 -0
  12. package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmt +0 -0
  13. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  14. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  15. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  16. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  17. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  18. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  19. package/lib/bs/src/Plugin.res.mjs +6 -6
  20. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmi +0 -0
  21. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmj +0 -0
  22. package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmt +0 -0
  23. package/lib/bs/src/Product/Aggregate/Product.ast +0 -0
  24. package/lib/bs/src/Product/Aggregate/Product.res.mjs +2 -2
  25. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmi +0 -0
  26. package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmt +0 -0
  27. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmi +0 -0
  28. package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmt +0 -0
  29. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
  30. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmj +0 -0
  31. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
  32. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.ast +0 -0
  33. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.res.mjs +2 -2
  34. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  35. package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  36. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  37. package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  38. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  39. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  40. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
  41. package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
  42. package/lib/bs/tests/Category/Aggregate/Category_GWT.res.mjs +2 -2
  43. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
  44. package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
  45. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  46. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  47. package/lib/bs/tests/Extension/Orders_Extension_GWT.res.mjs +1 -1
  48. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  49. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  50. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +1 -1
  51. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
  52. package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
  53. package/lib/bs/tests/Product/Aggregate/Product_GWT.res.mjs +2 -2
  54. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
  55. package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
  56. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  57. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  58. package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT.res.mjs +2 -2
  59. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  60. package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  61. package/lib/ocaml/.compiler.log +2 -2
  62. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  63. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  64. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmi +0 -0
  65. package/lib/ocaml/Categories_Projections-CatalogPlugin.cmt +0 -0
  66. package/lib/ocaml/Category-CatalogPlugin.cmi +0 -0
  67. package/lib/ocaml/Category-CatalogPlugin.cmj +0 -0
  68. package/lib/ocaml/Category-CatalogPlugin.cmt +0 -0
  69. package/lib/ocaml/Category.ast +0 -0
  70. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmi +0 -0
  71. package/lib/ocaml/Category_Behavior-CatalogPlugin.cmt +0 -0
  72. package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
  73. package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
  74. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  75. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  76. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  77. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  78. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  79. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  80. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  81. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  82. package/lib/ocaml/Product-CatalogPlugin.cmi +0 -0
  83. package/lib/ocaml/Product-CatalogPlugin.cmj +0 -0
  84. package/lib/ocaml/Product-CatalogPlugin.cmt +0 -0
  85. package/lib/ocaml/Product.ast +0 -0
  86. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  87. package/lib/ocaml/ProductDemand-CatalogPlugin.cmj +0 -0
  88. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  89. package/lib/ocaml/ProductDemand.ast +0 -0
  90. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  91. package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  92. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  93. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  94. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
  95. package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
  96. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
  97. package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
  98. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmi +0 -0
  99. package/lib/ocaml/Product_Behavior-CatalogPlugin.cmt +0 -0
  100. package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
  101. package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
  102. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  103. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  104. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  105. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  106. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  107. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  108. package/lib/ocaml/Products_Projections-CatalogPlugin.cmi +0 -0
  109. package/lib/ocaml/Products_Projections-CatalogPlugin.cmt +0 -0
  110. package/package.json +8 -8
  111. package/src/Category/Aggregate/Category.res.mjs +3 -3
  112. package/src/Plugin.res.mjs +6 -6
  113. package/src/Product/Aggregate/Product.res.mjs +2 -2
  114. package/src/ProductDemand/Aggregate/ProductDemand.res.mjs +2 -2
  115. package/tests/Category/Aggregate/Category_GWT.res.mjs +2 -2
  116. package/tests/Extension/Orders_Extension_GWT.res.mjs +1 -1
  117. package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +1 -1
  118. package/tests/Product/Aggregate/Product_GWT.res.mjs +2 -2
  119. package/tests/ProductDemand/Aggregate/ProductDemand_GWT.res.mjs +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.273 (2026-10-12)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.272 (2026-10-10)
15
+
16
+ * feat!: a command's rule is looked up by its name, without a cast ([5f02c40](https://github.com/ReventlessDev/reventless-core/commit/5f02c4081d077bf4a6951d8c9b2b16553a8ca87b))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * a spec that writes `commandAuthorization` by hand writes
21
+ `authorizationOf = (name: string) => …` instead; the PPX refuses the old name.
22
+
23
+
24
+
6
25
  # 3.0.0-alpha.271 (2026-10-10)
7
26
 
8
27
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
@@ -1,2 +1,2 @@
1
- #Start(1791641984904)
2
- #Done(1791641990195)
1
+ #Start(1791811453715)
2
+ #Done(1791811458606)
@@ -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": "1791641990208"
7
+ "generated_at": "1791811458608"
8
8
  }
@@ -32,8 +32,8 @@ let errorSchema = Sury.union([
32
32
  Sury.literal("CategoryAlreadyArchived")
33
33
  ]);
34
34
 
35
- function commandAuthorization(command) {
36
- if (typeof command !== "object") {
35
+ function authorizationOf(name) {
36
+ if (name === "Archive") {
37
37
  return {
38
38
  TAG: "AllowRoles",
39
39
  _0: ["Admin"]
@@ -62,7 +62,7 @@ export {
62
62
  eventSchema,
63
63
  errorSchema,
64
64
  moduleUrl,
65
- commandAuthorization,
65
+ authorizationOf,
66
66
  commandTransition,
67
67
  traits,
68
68
  }
Binary file
Binary file
@@ -31,7 +31,7 @@ function Make(Platform) {
31
31
  errorSchema: Category$CatalogPlugin.errorSchema,
32
32
  commandSchema: Category$CatalogPlugin.commandSchema,
33
33
  moduleUrl: Category$CatalogPlugin.moduleUrl,
34
- commandAuthorization: Category$CatalogPlugin.commandAuthorization,
34
+ authorizationOf: Category$CatalogPlugin.authorizationOf,
35
35
  commandTransition: Category$CatalogPlugin.commandTransition,
36
36
  traits: Category$CatalogPlugin.traits
37
37
  })({
@@ -52,7 +52,7 @@ function Make(Platform) {
52
52
  errorSchema: Product$CatalogPlugin.errorSchema,
53
53
  commandSchema: Product$CatalogPlugin.commandSchema,
54
54
  moduleUrl: Product$CatalogPlugin.moduleUrl,
55
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
55
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
56
56
  commandTransition: Product$CatalogPlugin.commandTransition,
57
57
  traits: Product$CatalogPlugin.traits
58
58
  })({
@@ -73,7 +73,7 @@ function Make(Platform) {
73
73
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
74
74
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
75
75
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
76
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
76
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
77
77
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
78
78
  traits: ProductDemand$CatalogPlugin.traits
79
79
  })({
@@ -146,7 +146,7 @@ function Make(Platform) {
146
146
  errorSchema: Product$CatalogPlugin.errorSchema,
147
147
  commandSchema: Product$CatalogPlugin.commandSchema,
148
148
  moduleUrl: Product$CatalogPlugin.moduleUrl,
149
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
149
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
150
150
  commandTransition: Product$CatalogPlugin.commandTransition,
151
151
  traits: Product$CatalogPlugin.traits
152
152
  },
@@ -171,7 +171,7 @@ function Make(Platform) {
171
171
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
172
172
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
173
173
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
174
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
174
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
175
175
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
176
176
  traits: ProductDemand$CatalogPlugin.traits
177
177
  },
@@ -205,7 +205,7 @@ function Make(Platform) {
205
205
  errorSchema: Product$CatalogPlugin.errorSchema,
206
206
  commandSchema: Product$CatalogPlugin.commandSchema,
207
207
  moduleUrl: Product$CatalogPlugin.moduleUrl,
208
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
208
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
209
209
  commandTransition: Product$CatalogPlugin.commandTransition,
210
210
  traits: Product$CatalogPlugin.traits
211
211
  },
@@ -60,7 +60,7 @@ let errorSchema = Sury.union([
60
60
  Sury.literal("ProductNotFound")
61
61
  ]);
62
62
 
63
- function commandAuthorization(param) {
63
+ function authorizationOf(param) {
64
64
  return "AllowAuthenticated";
65
65
  }
66
66
 
@@ -83,7 +83,7 @@ export {
83
83
  eventSchema,
84
84
  errorSchema,
85
85
  moduleUrl,
86
- commandAuthorization,
86
+ authorizationOf,
87
87
  commandTransition,
88
88
  traits,
89
89
  }
@@ -29,7 +29,7 @@ let errorSchema = Sury.$unit;
29
29
 
30
30
  let commandSchema$1 = Api$ReventlessInfra.markNoApi(commandSchema);
31
31
 
32
- function commandAuthorization(param) {
32
+ function authorizationOf(param) {
33
33
  return "AllowAuthenticated";
34
34
  }
35
35
 
@@ -52,7 +52,7 @@ export {
52
52
  errorSchema,
53
53
  commandSchema$1 as commandSchema,
54
54
  moduleUrl,
55
- commandAuthorization,
55
+ authorizationOf,
56
56
  commandTransition,
57
57
  traits,
58
58
  }
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: Category$CatalogPlugin.commandSchema,
11
11
  eventSchema: Category$CatalogPlugin.eventSchema,
12
12
  errorSchema: Category$CatalogPlugin.errorSchema,
13
- commandAuthorization: Category$CatalogPlugin.commandAuthorization
13
+ authorizationOf: Category$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: Category$CatalogPlugin.name,
17
17
  commandSchema: Category$CatalogPlugin.commandSchema,
18
18
  eventSchema: Category$CatalogPlugin.eventSchema,
19
19
  errorSchema: Category$CatalogPlugin.errorSchema,
20
- commandAuthorization: Category$CatalogPlugin.commandAuthorization
20
+ authorizationOf: Category$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: Category_Behavior$CatalogPlugin.initialState,
23
23
  evolve: Category_Behavior$CatalogPlugin.evolve,
@@ -21,7 +21,7 @@ let include = Delegate_GWT$ReventlessGwt.FromExtension({
21
21
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
22
22
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
23
23
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
24
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
24
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
25
25
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
26
26
  traits: ProductDemand$CatalogPlugin.traits
27
27
  },
@@ -21,7 +21,7 @@ let include = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
21
21
  errorSchema: Product$CatalogPlugin.errorSchema,
22
22
  commandSchema: Product$CatalogPlugin.commandSchema,
23
23
  moduleUrl: Product$CatalogPlugin.moduleUrl,
24
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
24
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
25
25
  commandTransition: Product$CatalogPlugin.commandTransition,
26
26
  traits: Product$CatalogPlugin.traits
27
27
  },
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: Product$CatalogPlugin.commandSchema,
11
11
  eventSchema: Product$CatalogPlugin.eventSchema,
12
12
  errorSchema: Product$CatalogPlugin.errorSchema,
13
- commandAuthorization: Product$CatalogPlugin.commandAuthorization
13
+ authorizationOf: Product$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: Product$CatalogPlugin.name,
17
17
  commandSchema: Product$CatalogPlugin.commandSchema,
18
18
  eventSchema: Product$CatalogPlugin.eventSchema,
19
19
  errorSchema: Product$CatalogPlugin.errorSchema,
20
- commandAuthorization: Product$CatalogPlugin.commandAuthorization
20
+ authorizationOf: Product$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: Product_Behavior$CatalogPlugin.initialState,
23
23
  evolve: Product_Behavior$CatalogPlugin.evolve,
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
11
11
  eventSchema: ProductDemand$CatalogPlugin.eventSchema,
12
12
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
13
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization
13
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: ProductDemand$CatalogPlugin.name,
17
17
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
18
18
  eventSchema: ProductDemand$CatalogPlugin.eventSchema,
19
19
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
20
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization
20
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
23
23
  evolve: ProductDemand_Behavior$CatalogPlugin.evolve,
@@ -1,2 +1,2 @@
1
- #Start(1791641984904)
2
- #Done(1791641990195)
1
+ #Start(1791811453715)
2
+ #Done(1791811458606)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-aggregates-catalog",
3
- "version": "3.0.0-alpha.271",
3
+ "version": "3.0.0-alpha.273",
4
4
  "description": "Online Shop example — Catalog plugin (Product & Category aggregates)",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,18 +21,18 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "11.0.0",
24
- "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.160",
25
- "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.160",
26
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.239",
24
+ "@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.162",
27
25
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.23",
28
- "@reventlessdev/reventless-infra": "3.0.0-alpha.189",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.282",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.161"
26
+ "@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.162",
27
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.241",
28
+ "@reventlessdev/reventless-local": "3.0.0-alpha.284",
29
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.163",
30
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.191"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.1",
34
34
  "sury-ppx": "11.0.0",
35
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.98"
35
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.100"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "rescript": "^12.3.1"
@@ -32,8 +32,8 @@ let errorSchema = Sury.union([
32
32
  Sury.literal("CategoryAlreadyArchived")
33
33
  ]);
34
34
 
35
- function commandAuthorization(command) {
36
- if (typeof command !== "object") {
35
+ function authorizationOf(name) {
36
+ if (name === "Archive") {
37
37
  return {
38
38
  TAG: "AllowRoles",
39
39
  _0: ["Admin"]
@@ -62,7 +62,7 @@ export {
62
62
  eventSchema,
63
63
  errorSchema,
64
64
  moduleUrl,
65
- commandAuthorization,
65
+ authorizationOf,
66
66
  commandTransition,
67
67
  traits,
68
68
  }
@@ -31,7 +31,7 @@ function Make(Platform) {
31
31
  errorSchema: Category$CatalogPlugin.errorSchema,
32
32
  commandSchema: Category$CatalogPlugin.commandSchema,
33
33
  moduleUrl: Category$CatalogPlugin.moduleUrl,
34
- commandAuthorization: Category$CatalogPlugin.commandAuthorization,
34
+ authorizationOf: Category$CatalogPlugin.authorizationOf,
35
35
  commandTransition: Category$CatalogPlugin.commandTransition,
36
36
  traits: Category$CatalogPlugin.traits
37
37
  })({
@@ -52,7 +52,7 @@ function Make(Platform) {
52
52
  errorSchema: Product$CatalogPlugin.errorSchema,
53
53
  commandSchema: Product$CatalogPlugin.commandSchema,
54
54
  moduleUrl: Product$CatalogPlugin.moduleUrl,
55
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
55
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
56
56
  commandTransition: Product$CatalogPlugin.commandTransition,
57
57
  traits: Product$CatalogPlugin.traits
58
58
  })({
@@ -73,7 +73,7 @@ function Make(Platform) {
73
73
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
74
74
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
75
75
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
76
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
76
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
77
77
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
78
78
  traits: ProductDemand$CatalogPlugin.traits
79
79
  })({
@@ -146,7 +146,7 @@ function Make(Platform) {
146
146
  errorSchema: Product$CatalogPlugin.errorSchema,
147
147
  commandSchema: Product$CatalogPlugin.commandSchema,
148
148
  moduleUrl: Product$CatalogPlugin.moduleUrl,
149
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
149
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
150
150
  commandTransition: Product$CatalogPlugin.commandTransition,
151
151
  traits: Product$CatalogPlugin.traits
152
152
  },
@@ -171,7 +171,7 @@ function Make(Platform) {
171
171
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
172
172
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
173
173
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
174
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
174
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
175
175
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
176
176
  traits: ProductDemand$CatalogPlugin.traits
177
177
  },
@@ -205,7 +205,7 @@ function Make(Platform) {
205
205
  errorSchema: Product$CatalogPlugin.errorSchema,
206
206
  commandSchema: Product$CatalogPlugin.commandSchema,
207
207
  moduleUrl: Product$CatalogPlugin.moduleUrl,
208
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
208
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
209
209
  commandTransition: Product$CatalogPlugin.commandTransition,
210
210
  traits: Product$CatalogPlugin.traits
211
211
  },
@@ -60,7 +60,7 @@ let errorSchema = Sury.union([
60
60
  Sury.literal("ProductNotFound")
61
61
  ]);
62
62
 
63
- function commandAuthorization(param) {
63
+ function authorizationOf(param) {
64
64
  return "AllowAuthenticated";
65
65
  }
66
66
 
@@ -83,7 +83,7 @@ export {
83
83
  eventSchema,
84
84
  errorSchema,
85
85
  moduleUrl,
86
- commandAuthorization,
86
+ authorizationOf,
87
87
  commandTransition,
88
88
  traits,
89
89
  }
@@ -29,7 +29,7 @@ let errorSchema = Sury.$unit;
29
29
 
30
30
  let commandSchema$1 = Api$ReventlessInfra.markNoApi(commandSchema);
31
31
 
32
- function commandAuthorization(param) {
32
+ function authorizationOf(param) {
33
33
  return "AllowAuthenticated";
34
34
  }
35
35
 
@@ -52,7 +52,7 @@ export {
52
52
  errorSchema,
53
53
  commandSchema$1 as commandSchema,
54
54
  moduleUrl,
55
- commandAuthorization,
55
+ authorizationOf,
56
56
  commandTransition,
57
57
  traits,
58
58
  }
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: Category$CatalogPlugin.commandSchema,
11
11
  eventSchema: Category$CatalogPlugin.eventSchema,
12
12
  errorSchema: Category$CatalogPlugin.errorSchema,
13
- commandAuthorization: Category$CatalogPlugin.commandAuthorization
13
+ authorizationOf: Category$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: Category$CatalogPlugin.name,
17
17
  commandSchema: Category$CatalogPlugin.commandSchema,
18
18
  eventSchema: Category$CatalogPlugin.eventSchema,
19
19
  errorSchema: Category$CatalogPlugin.errorSchema,
20
- commandAuthorization: Category$CatalogPlugin.commandAuthorization
20
+ authorizationOf: Category$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: Category_Behavior$CatalogPlugin.initialState,
23
23
  evolve: Category_Behavior$CatalogPlugin.evolve,
@@ -21,7 +21,7 @@ let include = Delegate_GWT$ReventlessGwt.FromExtension({
21
21
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
22
22
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
23
23
  moduleUrl: ProductDemand$CatalogPlugin.moduleUrl,
24
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization,
24
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
25
25
  commandTransition: ProductDemand$CatalogPlugin.commandTransition,
26
26
  traits: ProductDemand$CatalogPlugin.traits
27
27
  },
@@ -21,7 +21,7 @@ let include = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
21
21
  errorSchema: Product$CatalogPlugin.errorSchema,
22
22
  commandSchema: Product$CatalogPlugin.commandSchema,
23
23
  moduleUrl: Product$CatalogPlugin.moduleUrl,
24
- commandAuthorization: Product$CatalogPlugin.commandAuthorization,
24
+ authorizationOf: Product$CatalogPlugin.authorizationOf,
25
25
  commandTransition: Product$CatalogPlugin.commandTransition,
26
26
  traits: Product$CatalogPlugin.traits
27
27
  },
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: Product$CatalogPlugin.commandSchema,
11
11
  eventSchema: Product$CatalogPlugin.eventSchema,
12
12
  errorSchema: Product$CatalogPlugin.errorSchema,
13
- commandAuthorization: Product$CatalogPlugin.commandAuthorization
13
+ authorizationOf: Product$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: Product$CatalogPlugin.name,
17
17
  commandSchema: Product$CatalogPlugin.commandSchema,
18
18
  eventSchema: Product$CatalogPlugin.eventSchema,
19
19
  errorSchema: Product$CatalogPlugin.errorSchema,
20
- commandAuthorization: Product$CatalogPlugin.commandAuthorization
20
+ authorizationOf: Product$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: Product_Behavior$CatalogPlugin.initialState,
23
23
  evolve: Product_Behavior$CatalogPlugin.evolve,
@@ -10,14 +10,14 @@ let include = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
10
10
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
11
11
  eventSchema: ProductDemand$CatalogPlugin.eventSchema,
12
12
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
13
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization
13
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
14
14
  })({
15
15
  Spec: {
16
16
  name: ProductDemand$CatalogPlugin.name,
17
17
  commandSchema: ProductDemand$CatalogPlugin.commandSchema,
18
18
  eventSchema: ProductDemand$CatalogPlugin.eventSchema,
19
19
  errorSchema: ProductDemand$CatalogPlugin.errorSchema,
20
- commandAuthorization: ProductDemand$CatalogPlugin.commandAuthorization
20
+ authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
21
21
  },
22
22
  initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
23
23
  evolve: ProductDemand_Behavior$CatalogPlugin.evolve,