@reventlessdev/reventless-local 3.0.0-alpha.281 → 3.0.0-alpha.283
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 +18 -0
- package/package.json +9 -9
- package/src/Platform.res +5 -4
- package/src/Platform.res.mjs +12 -12
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_GraphQL.res +6 -25
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_GraphQL.res.mjs +4 -20
- package/src/adapter/CommandGenerator/InboundTranslationResolvers_GraphQL.res +34 -38
- package/src/adapter/CommandGenerator/InboundTranslationResolvers_GraphQL.res.mjs +14 -6
- package/src/adapter/PlatformGraphQL_Server.res +1 -1
- package/tests/adapter/CommandAuthorizationTest.res +7 -8
- package/tests/adapter/CommandAuthorizationTest.res.mjs +5 -5
- package/tests/adapter/InboundTranslationMutationTest.res +95 -7
- package/tests/adapter/InboundTranslationMutationTest.res.mjs +97 -9
- package/tests/components/aggregate/AggregateFixtures.res.mjs +3 -3
- package/tests/components/aggregate/AggregateSelfMappingFixtures.res.mjs +3 -3
- package/tests/components/automationslice/AutomationSliceFixtures.res.mjs +4 -4
- package/tests/components/automationslice/AutomationSliceSelfDeadlockFixtures.res.mjs +8 -8
- package/tests/components/automationslice/MixedSourceAutomationSliceFixtures.res.mjs +2 -2
- package/tests/components/commandgenerator/CommandGeneratorFixtures.res.mjs +3 -3
- package/tests/components/commandtopic/CommandTopicFixtures.res.mjs +2 -2
- package/tests/components/commandtopic/CommandTopicStreamFixtures.res.mjs +2 -2
- package/tests/components/dcb/DcbCrossPartitionFixtures.res.mjs +3 -3
- package/tests/components/dcb/DcbFixtures.res.mjs +3 -3
- package/tests/components/extensionpoint/ExtensionPointFixtures.res.mjs +5 -5
- package/tests/components/inboundtranslationslice/InboundTranslationSliceCallbackTest.res +116 -8
- package/tests/components/inboundtranslationslice/InboundTranslationSliceCallbackTest.res.mjs +160 -19
- package/tests/components/inboundtranslationslice/InboundTranslationSliceFixtures.res +58 -0
- package/tests/components/inboundtranslationslice/InboundTranslationSliceFixtures.res.mjs +145 -7
- package/tests/components/outboundtranslationslice/OutboundTranslationSlicePlatformFixtures.res.mjs +3 -3
- package/tests/components/readmodel/DcbReadModelE2EFixtures.res.mjs +3 -3
- package/tests/plugin/PluginBehavior_GWT.res.mjs +2 -2
- package/tests/plugin/UiFragmentRegistry_GWT.res.mjs +1 -1
|
@@ -41,7 +41,7 @@ let commandSchema = Sury.$schema(s => ({
|
|
|
41
41
|
|
|
42
42
|
let errorSchema = Sury.literal("ProductAlreadyExists");
|
|
43
43
|
|
|
44
|
-
function
|
|
44
|
+
function authorizationOf(param) {
|
|
45
45
|
return "AllowAuthenticated";
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@ let AddProductSpec = {
|
|
|
59
59
|
consumedEventSchema: consumedEventSchema,
|
|
60
60
|
errorSchema: errorSchema,
|
|
61
61
|
commandSchema: commandSchema,
|
|
62
|
-
|
|
62
|
+
authorizationOf: authorizationOf,
|
|
63
63
|
commandTransition: commandTransition,
|
|
64
64
|
traits: traits,
|
|
65
65
|
readConsistency: "EscalateOnRetry"
|
|
@@ -195,7 +195,7 @@ let AddProductMaker = StateChangeSlice_Builder$ReventlessLocal.Make({
|
|
|
195
195
|
errorSchema: errorSchema,
|
|
196
196
|
eventSchema: eventSchema,
|
|
197
197
|
commandSchema: commandSchema,
|
|
198
|
-
|
|
198
|
+
authorizationOf: authorizationOf,
|
|
199
199
|
commandTransition: commandTransition,
|
|
200
200
|
traits: traits,
|
|
201
201
|
readConsistency: "EscalateOnRetry"
|
|
@@ -10,14 +10,14 @@ let PluginTest = Behavior_GWT$ReventlessGwt.MakeFromAggregate({
|
|
|
10
10
|
commandSchema: PluginSpec$ReventlessCore.commandSchema,
|
|
11
11
|
eventSchema: PluginSpec$ReventlessCore.eventSchema,
|
|
12
12
|
errorSchema: PluginSpec$ReventlessCore.errorSchema,
|
|
13
|
-
|
|
13
|
+
authorizationOf: PluginSpec$ReventlessCore.authorizationOf
|
|
14
14
|
})({
|
|
15
15
|
Spec: {
|
|
16
16
|
name: PluginSpec$ReventlessCore.name,
|
|
17
17
|
commandSchema: PluginSpec$ReventlessCore.commandSchema,
|
|
18
18
|
eventSchema: PluginSpec$ReventlessCore.eventSchema,
|
|
19
19
|
errorSchema: PluginSpec$ReventlessCore.errorSchema,
|
|
20
|
-
|
|
20
|
+
authorizationOf: PluginSpec$ReventlessCore.authorizationOf
|
|
21
21
|
},
|
|
22
22
|
initialState: PluginBehavior$ReventlessCore.initialState,
|
|
23
23
|
evolve: PluginBehavior$ReventlessCore.evolve,
|
|
@@ -11,7 +11,7 @@ let Test = Behavior_GWT$ReventlessGwt.Make({
|
|
|
11
11
|
commandSchema: UiFragmentRegistry$ReventlessCore.commandSchema,
|
|
12
12
|
errorSchema: UiFragmentRegistry$ReventlessCore.errorSchema,
|
|
13
13
|
eventSchema: UiFragmentRegistry$ReventlessCore.eventSchema,
|
|
14
|
-
|
|
14
|
+
authorizationOf: UiFragmentRegistry$ReventlessCore.authorizationOf
|
|
15
15
|
})({
|
|
16
16
|
initialState: undefined,
|
|
17
17
|
evolve: UiFragmentRegistry_Behavior$ReventlessCore.evolve,
|