@reventlessdev/online-shop-aggregates-catalog 3.0.0-alpha.270 → 3.0.0-alpha.272
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.
- package/CHANGELOG.md +19 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmj +0 -0
- package/lib/bs/src/Category/Aggregate/Category-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/Aggregate/Category.ast +0 -0
- package/lib/bs/src/Category/Aggregate/Category.res.mjs +3 -3
- package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/Aggregate/Category_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/ReadModel/Categories-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/ReadModel/Categories_Projections-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Plugin.res.mjs +6 -6
- package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmj +0 -0
- package/lib/bs/src/Product/Aggregate/Product-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/Aggregate/Product.ast +0 -0
- package/lib/bs/src/Product/Aggregate/Product.res.mjs +2 -2
- package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/Aggregate/Product_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/ReadModel/Products-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/ReadModel/Products_Projections-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmj +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.ast +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand.res.mjs +2 -2
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/Aggregate/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/ReadModel/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/Aggregate/Category_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/Aggregate/Category_GWT.res.mjs +2 -2
- package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/ReadModel/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT.res.mjs +1 -1
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +1 -1
- package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/Aggregate/Product_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/Aggregate/Product_GWT.res.mjs +2 -2
- package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/ReadModel/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/Aggregate/ProductDemand_GWT.res.mjs +2 -2
- package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/ReadModel/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories_Projections-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_Projections-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Category-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Category-CatalogPlugin.cmj +0 -0
- package/lib/ocaml/Category-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Category.ast +0 -0
- package/lib/ocaml/Category_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Category_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Category_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Category_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Product-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Product-CatalogPlugin.cmj +0 -0
- package/lib/ocaml/Product-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Product.ast +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmj +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand.ast +0 -0
- package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemands-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemands-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemands_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemands_Projections-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Product_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Product_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Product_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Product_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_Projections-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_Projections-CatalogPlugin.cmt +0 -0
- package/package.json +8 -8
- package/src/Category/Aggregate/Category.res.mjs +3 -3
- package/src/Plugin.res.mjs +6 -6
- package/src/Product/Aggregate/Product.res.mjs +2 -2
- package/src/ProductDemand/Aggregate/ProductDemand.res.mjs +2 -2
- package/tests/Category/Aggregate/Category_GWT.res.mjs +2 -2
- package/tests/Extension/Orders_Extension_GWT.res.mjs +1 -1
- package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +1 -1
- package/tests/Product/Aggregate/Product_GWT.res.mjs +2 -2
- 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.272 (2026-10-10)
|
|
7
|
+
|
|
8
|
+
* feat!: a command's rule is looked up by its name, without a cast ([5f02c40](https://github.com/ReventlessDev/reventless-core/commit/5f02c4081d077bf4a6951d8c9b2b16553a8ca87b))
|
|
9
|
+
|
|
10
|
+
### BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* a spec that writes `commandAuthorization` by hand writes
|
|
13
|
+
`authorizationOf = (name: string) => …` instead; the PPX refuses the old name.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 3.0.0-alpha.271 (2026-10-10)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# 3.0.0-alpha.270 (2026-10-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1791674296767)
|
|
2
|
+
#Done(1791674301122)
|
|
@@ -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": "
|
|
7
|
+
"generated_at": "1791674301128"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -32,8 +32,8 @@ let errorSchema = Sury.union([
|
|
|
32
32
|
Sury.literal("CategoryAlreadyArchived")
|
|
33
33
|
]);
|
|
34
34
|
|
|
35
|
-
function
|
|
36
|
-
if (
|
|
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
|
-
|
|
65
|
+
authorizationOf,
|
|
66
66
|
commandTransition,
|
|
67
67
|
traits,
|
|
68
68
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
208
|
+
authorizationOf: Product$CatalogPlugin.authorizationOf,
|
|
209
209
|
commandTransition: Product$CatalogPlugin.commandTransition,
|
|
210
210
|
traits: Product$CatalogPlugin.traits
|
|
211
211
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -60,7 +60,7 @@ let errorSchema = Sury.union([
|
|
|
60
60
|
Sury.literal("ProductNotFound")
|
|
61
61
|
]);
|
|
62
62
|
|
|
63
|
-
function
|
|
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
|
-
|
|
86
|
+
authorizationOf,
|
|
87
87
|
commandTransition,
|
|
88
88
|
traits,
|
|
89
89
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -29,7 +29,7 @@ let errorSchema = Sury.$unit;
|
|
|
29
29
|
|
|
30
30
|
let commandSchema$1 = Api$ReventlessInfra.markNoApi(commandSchema);
|
|
31
31
|
|
|
32
|
-
function
|
|
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
|
-
|
|
55
|
+
authorizationOf,
|
|
56
56
|
commandTransition,
|
|
57
57
|
traits,
|
|
58
58
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
20
|
+
authorizationOf: Category$CatalogPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
22
|
initialState: Category_Behavior$CatalogPlugin.initialState,
|
|
23
23
|
evolve: Category_Behavior$CatalogPlugin.evolve,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
24
|
+
authorizationOf: ProductDemand$CatalogPlugin.authorizationOf,
|
|
25
25
|
commandTransition: ProductDemand$CatalogPlugin.commandTransition,
|
|
26
26
|
traits: ProductDemand$CatalogPlugin.traits
|
|
27
27
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
24
|
+
authorizationOf: Product$CatalogPlugin.authorizationOf,
|
|
25
25
|
commandTransition: Product$CatalogPlugin.commandTransition,
|
|
26
26
|
traits: Product$CatalogPlugin.traits
|
|
27
27
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
20
|
+
authorizationOf: Product$CatalogPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
22
|
initialState: Product_Behavior$CatalogPlugin.initialState,
|
|
23
23
|
evolve: Product_Behavior$CatalogPlugin.evolve,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
20
|
+
authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
22
|
initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
|
|
23
23
|
evolve: ProductDemand_Behavior$CatalogPlugin.evolve,
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1791674296767)
|
|
2
|
+
#Done(1791674301122)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Category.ast
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Product.ast
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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.
|
|
3
|
+
"version": "3.0.0-alpha.272",
|
|
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-
|
|
24
|
+
"@reventlessdev/online-shop-aggregates-catalog-spec": "3.0.0-alpha.161",
|
|
25
25
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.23",
|
|
26
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.
|
|
27
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
28
|
-
"@reventlessdev/online-shop-aggregates-
|
|
29
|
-
"@reventlessdev/reventless-local": "3.0.0-alpha.
|
|
30
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
26
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.240",
|
|
27
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.190",
|
|
28
|
+
"@reventlessdev/online-shop-aggregates-ordering-spec": "3.0.0-alpha.161",
|
|
29
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.283",
|
|
30
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.162"
|
|
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.
|
|
35
|
+
"@reventlessdev/reventless-ppx": "1.0.0-alpha.99"
|
|
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
|
|
36
|
-
if (
|
|
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
|
-
|
|
65
|
+
authorizationOf,
|
|
66
66
|
commandTransition,
|
|
67
67
|
traits,
|
|
68
68
|
}
|
package/src/Plugin.res.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20
|
+
authorizationOf: ProductDemand$CatalogPlugin.authorizationOf
|
|
21
21
|
},
|
|
22
22
|
initialState: ProductDemand_Behavior$CatalogPlugin.initialState,
|
|
23
23
|
evolve: ProductDemand_Behavior$CatalogPlugin.evolve,
|