@reventlessdev/reventless-gwt 1.0.0-alpha.238 → 1.0.0-alpha.240

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 (37) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +6 -6
  3. package/src/Automation_GWT.res +130 -0
  4. package/src/Automation_GWT.res.mjs +193 -0
  5. package/src/Behavior_GWT.res +6 -6
  6. package/src/Behavior_GWT.res.mjs +5 -5
  7. package/src/Capabilities_Fake.res +157 -0
  8. package/src/Capabilities_Fake.res.mjs +254 -0
  9. package/src/Flow_GWT.res +112 -1
  10. package/src/Flow_GWT.res.mjs +165 -11
  11. package/src/InboundTranslation_GWT.res +112 -0
  12. package/src/InboundTranslation_GWT.res.mjs +190 -1
  13. package/src/OutboundTranslation_GWT.res +207 -4
  14. package/src/OutboundTranslation_GWT.res.mjs +257 -1
  15. package/src/StateChange/ExternalAddCategorySlice.res +1 -1
  16. package/src/StateChange/ExternalAddCategorySlice.res.mjs +2 -2
  17. package/src/StateChange/WithFixtures.res +1 -1
  18. package/src/StateChange/WithFixtures.res.mjs +2 -2
  19. package/src/StateChange/WithManualOpen.res +1 -1
  20. package/src/StateChange/WithManualOpen.res.mjs +2 -2
  21. package/tests/AutomationFromSliceGwtTest.res +145 -0
  22. package/tests/AutomationFromSliceGwtTest.res.mjs +353 -0
  23. package/tests/AutomationGwtTest.res.mjs +2 -2
  24. package/tests/DelegateGwtTest.res +5 -5
  25. package/tests/DelegateGwtTest.res.mjs +27 -27
  26. package/tests/FlowAggregateGwtTest.res.mjs +4 -4
  27. package/tests/FlowCrossPluginGwtTest.res +4 -4
  28. package/tests/FlowCrossPluginGwtTest.res.mjs +22 -22
  29. package/tests/FlowGwtTest.res.mjs +6 -6
  30. package/tests/InboundFromSliceGwtTest.res +63 -0
  31. package/tests/InboundFromSliceGwtTest.res.mjs +164 -0
  32. package/tests/InboundTranslationGwtTest.res.mjs +2 -7
  33. package/tests/MappingGwtTest.res.mjs +12 -12
  34. package/tests/OutboundFromSliceGwtTest.res +124 -0
  35. package/tests/OutboundFromSliceGwtTest.res.mjs +268 -0
  36. package/tests/StateChangeSliceAuthorizeGwtTest.res.mjs +20 -16
  37. package/tests/StateChangeSliceGwtTest.res.mjs +6 -6
@@ -0,0 +1,353 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Sury from "sury";
4
+ import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
5
+ import * as AutomationSlice$Reventless from "@reventlessdev/reventless-spec/src/components/AutomationSlice.res.mjs";
6
+ import * as Automation_GWT$ReventlessGwt from "../src/Automation_GWT.res.mjs";
7
+
8
+ let todoItemSchema = Sury.$schema(s => ({
9
+ orderId: s.m(Sury.string)
10
+ }));
11
+
12
+ let commandSchema = Sury.union([
13
+ Sury.$schema(s => ({
14
+ TAG: "Ship",
15
+ orderId: s.m(Sury.string)
16
+ })),
17
+ Sury.$schema(s => ({
18
+ TAG: "GiveUp",
19
+ orderId: s.m(Sury.string)
20
+ }))
21
+ ]);
22
+
23
+ function authorizationOf(param) {
24
+ return "AllowAuthenticated";
25
+ }
26
+
27
+ function commandTransition(param) {
28
+ return "Undeclared";
29
+ }
30
+
31
+ let traits = [];
32
+
33
+ let ShipPaid = {
34
+ name: "ShipPaid",
35
+ moduleUrl: "",
36
+ todoItemSchema: todoItemSchema,
37
+ commandSchema: commandSchema,
38
+ maxRetries: 3,
39
+ heartbeatInterval: 60,
40
+ targetName: "Order",
41
+ authorizationOf: authorizationOf,
42
+ commandTransition: commandTransition,
43
+ traits: traits
44
+ };
45
+
46
+ let M = AutomationSlice$Reventless.Mappings.Make(ShipPaid);
47
+
48
+ let moduleUrl = "";
49
+
50
+ let name = "Orders";
51
+
52
+ let eventSchema = Sury.union([
53
+ Sury.$schema(s => ({
54
+ TAG: "OrderPlaced",
55
+ orderId: s.m(Sury.string)
56
+ })),
57
+ Sury.$schema(s => ({
58
+ TAG: "OrderCancelled",
59
+ orderId: s.m(Sury.string)
60
+ }))
61
+ ]);
62
+
63
+ let Orders = {
64
+ Id: undefined,
65
+ name: name,
66
+ eventSchema: eventSchema
67
+ };
68
+
69
+ let name$1 = "Payments";
70
+
71
+ let eventSchema$1 = Sury.union([
72
+ Sury.$schema(s => ({
73
+ TAG: "Captured",
74
+ amount: s.m(Sury.int32)
75
+ })),
76
+ Sury.$schema(s => ({
77
+ TAG: "Refunded",
78
+ amount: s.m(Sury.int32)
79
+ }))
80
+ ]);
81
+
82
+ let Payments = {
83
+ Id: undefined,
84
+ name: name$1,
85
+ eventSchema: eventSchema$1
86
+ };
87
+
88
+ function collect(event, param, _ctx) {
89
+ if (event.TAG !== "OrderPlaced") {
90
+ return [];
91
+ }
92
+ let orderId = event.orderId;
93
+ return [[
94
+ orderId,
95
+ {
96
+ orderId: orderId
97
+ }
98
+ ]];
99
+ }
100
+
101
+ function resolve(event) {
102
+ if (event.TAG === "OrderPlaced") {
103
+ return;
104
+ } else {
105
+ return event.orderId;
106
+ }
107
+ }
108
+
109
+ let FromOrders = AutomationSlice$Reventless.Mapping.Make({
110
+ Id: Id$Reventless.$$String,
111
+ name: name,
112
+ eventSchema: eventSchema
113
+ })(ShipPaid)({
114
+ collect: collect,
115
+ resolve: resolve
116
+ });
117
+
118
+ function collect$1(event, sourceId, _ctx) {
119
+ if (event.TAG === "Captured") {
120
+ return [[
121
+ sourceId,
122
+ {
123
+ orderId: sourceId
124
+ }
125
+ ]];
126
+ } else {
127
+ return [];
128
+ }
129
+ }
130
+
131
+ function resolve$1(event) {
132
+
133
+ }
134
+
135
+ let FromPayments = AutomationSlice$Reventless.Mapping.Make({
136
+ Id: Id$Reventless.$$String,
137
+ name: name$1,
138
+ eventSchema: eventSchema$1
139
+ })(ShipPaid)({
140
+ collect: collect$1,
141
+ resolve: resolve$1
142
+ });
143
+
144
+ let mappings = [
145
+ FromOrders,
146
+ FromPayments
147
+ ];
148
+
149
+ function process(id, _item) {
150
+ return [
151
+ id,
152
+ {
153
+ TAG: "Ship",
154
+ orderId: id
155
+ }
156
+ ];
157
+ }
158
+
159
+ function onExhausted(id, _item) {
160
+ return [
161
+ id,
162
+ {
163
+ TAG: "GiveUp",
164
+ orderId: id
165
+ }
166
+ ];
167
+ }
168
+
169
+ let ShipPaid_Automation = {
170
+ M: M,
171
+ moduleUrl: moduleUrl,
172
+ Orders: Orders,
173
+ Payments: Payments,
174
+ FromOrders: FromOrders,
175
+ FromPayments: FromPayments,
176
+ mappings: mappings,
177
+ process: process,
178
+ onExhausted: onExhausted
179
+ };
180
+
181
+ let include = Automation_GWT$ReventlessGwt.FromSlice(ShipPaid)({
182
+ process: process,
183
+ onExhausted: onExhausted,
184
+ moduleUrl: moduleUrl,
185
+ mappings: mappings
186
+ });
187
+
188
+ let describe = include.describe;
189
+
190
+ let test = include.test;
191
+
192
+ let thenTodos = include.thenTodos;
193
+
194
+ let thenResolved = include.thenResolved;
195
+
196
+ let Mapping = include.Mapping;
197
+
198
+ let givenTodo = include.givenTodo;
199
+
200
+ let whenProcess = include.whenProcess;
201
+
202
+ let whenExhausted = include.whenExhausted;
203
+
204
+ let thenCommand = include.thenCommand;
205
+
206
+ let givenEvents = include.givenEvents;
207
+
208
+ let whenSweep = include.whenSweep;
209
+
210
+ let thenCommands = include.thenCommands;
211
+
212
+ let andThenEvents = include.andThenEvents;
213
+
214
+ let thenScenarioTodos = include.thenScenarioTodos;
215
+
216
+ let O = Mapping(FromOrders);
217
+
218
+ let P = Mapping(FromPayments);
219
+
220
+ describe("Automation_GWT.FromSlice", () => {
221
+ test("collect through one mapping", () => thenTodos(O.whenCollect(O.givenEvent({
222
+ TAG: "OrderPlaced",
223
+ orderId: "o1"
224
+ }), undefined, undefined), [[
225
+ "o1",
226
+ {
227
+ orderId: "o1"
228
+ }
229
+ ]]));
230
+ test("collect keys by the source id where the event does not name it", () => thenTodos(P.whenCollect(P.givenEvent({
231
+ TAG: "Captured",
232
+ amount: 5
233
+ }), "o2", undefined), [[
234
+ "o2",
235
+ {
236
+ orderId: "o2"
237
+ }
238
+ ]]));
239
+ test("resolve through one mapping", () => thenResolved(O.whenResolve(O.givenEvent({
240
+ TAG: "OrderCancelled",
241
+ orderId: "o1"
242
+ })), "o1"));
243
+ test("process", () => thenCommand(whenProcess(givenTodo("o1", {
244
+ orderId: "o1"
245
+ })), "o1", {
246
+ TAG: "Ship",
247
+ orderId: "o1"
248
+ }));
249
+ test("exhausted: onExhausted is what the domain hears", () => thenCommand(whenExhausted(givenTodo("o1", {
250
+ orderId: "o1"
251
+ })), "o1", {
252
+ TAG: "GiveUp",
253
+ orderId: "o1"
254
+ }));
255
+ test("sweep: both sources route by name, in event order", () => thenCommands(whenSweep(givenEvents([
256
+ P.event({
257
+ TAG: "Captured",
258
+ amount: 5
259
+ }, "o2"),
260
+ O.event({
261
+ TAG: "OrderPlaced",
262
+ orderId: "o1"
263
+ }, undefined)
264
+ ]), undefined), [
265
+ [
266
+ "o2",
267
+ {
268
+ TAG: "Ship",
269
+ orderId: "o2"
270
+ }
271
+ ],
272
+ [
273
+ "o1",
274
+ {
275
+ TAG: "Ship",
276
+ orderId: "o1"
277
+ }
278
+ ]
279
+ ]));
280
+ test("sweep: a resolve completes only a row that exists", () => thenScenarioTodos(whenSweep(givenEvents([
281
+ O.event({
282
+ TAG: "OrderCancelled",
283
+ orderId: "o1"
284
+ }, undefined),
285
+ O.event({
286
+ TAG: "OrderPlaced",
287
+ orderId: "o1"
288
+ }, undefined),
289
+ O.event({
290
+ TAG: "OrderPlaced",
291
+ orderId: "o3"
292
+ }, undefined),
293
+ O.event({
294
+ TAG: "OrderCancelled",
295
+ orderId: "o3"
296
+ }, undefined)
297
+ ]), undefined), [[
298
+ "o1",
299
+ {
300
+ orderId: "o1"
301
+ }
302
+ ]]));
303
+ test("andThenEvents drains what later events resolve", () => thenScenarioTodos(andThenEvents(whenSweep(givenEvents([O.event({
304
+ TAG: "OrderPlaced",
305
+ orderId: "o1"
306
+ }, undefined)]), undefined), [O.event({
307
+ TAG: "OrderCancelled",
308
+ orderId: "o1"
309
+ }, undefined)], undefined), []));
310
+ });
311
+
312
+ let Route = include.Route;
313
+
314
+ let testContext = include.testContext;
315
+
316
+ let encTodos = include.encTodos;
317
+
318
+ let encPair = include.encPair;
319
+
320
+ let thenNoCommand = include.thenNoCommand;
321
+
322
+ let routeAll = include.routeAll;
323
+
324
+ let sweep = include.sweep;
325
+
326
+ export {
327
+ ShipPaid,
328
+ ShipPaid_Automation,
329
+ Route,
330
+ describe,
331
+ test,
332
+ testContext,
333
+ encTodos,
334
+ encPair,
335
+ thenTodos,
336
+ thenResolved,
337
+ Mapping,
338
+ givenTodo,
339
+ whenProcess,
340
+ whenExhausted,
341
+ thenCommand,
342
+ thenNoCommand,
343
+ givenEvents,
344
+ routeAll,
345
+ sweep,
346
+ whenSweep,
347
+ thenCommands,
348
+ andThenEvents,
349
+ thenScenarioTodos,
350
+ O,
351
+ P,
352
+ }
353
+ /* todoItemSchema Not a pure module */
@@ -64,7 +64,7 @@ function onExhausted(_id, _item) {
64
64
 
65
65
  }
66
66
 
67
- function commandAuthorization(param) {
67
+ function authorizationOf(param) {
68
68
  return "AllowAuthenticated";
69
69
  }
70
70
 
@@ -83,7 +83,7 @@ let ShipOrderSlice = {
83
83
  resolve: resolve,
84
84
  process: process,
85
85
  onExhausted: onExhausted,
86
- commandAuthorization: commandAuthorization,
86
+ authorizationOf: authorizationOf,
87
87
  commandTransition: commandTransition,
88
88
  traits: traits
89
89
  };
@@ -46,7 +46,7 @@ module ProductDelegate = {
46
46
 
47
47
  let moduleUrl = ""
48
48
  type role = Reventless.Role.name
49
- let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
49
+ let authorizationOf = (_: string): Reventless.Authorization.rule<role> => AllowAuthenticated
50
50
  type lifecycleState = unit
51
51
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
52
52
  }
@@ -134,7 +134,7 @@ module OrderDelegate = {
134
134
 
135
135
  let moduleUrl = ""
136
136
  type role = Reventless.Role.name
137
- let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
137
+ let authorizationOf = (_: string): Reventless.Authorization.rule<role> => AllowAuthenticated
138
138
  type lifecycleState = unit
139
139
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
140
140
  }
@@ -204,7 +204,7 @@ module SyncDelegate = {
204
204
 
205
205
  let moduleUrl = ""
206
206
  type role = Reventless.Role.name
207
- let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
207
+ let authorizationOf = (_: string): Reventless.Authorization.rule<role> => AllowAuthenticated
208
208
  type lifecycleState = unit
209
209
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
210
210
  }
@@ -283,7 +283,7 @@ module StockDelegate = {
283
283
 
284
284
  let moduleUrl = ""
285
285
  type role = Reventless.Role.name
286
- let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
286
+ let authorizationOf = (_: string): Reventless.Authorization.rule<role> => AllowAuthenticated
287
287
  type lifecycleState = unit
288
288
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
289
289
  }
@@ -346,7 +346,7 @@ module SyncedDelegate = {
346
346
 
347
347
  let moduleUrl = ""
348
348
  type role = Reventless.Role.name
349
- let commandAuthorization = (_: command): Reventless.Authorization.rule<role> => AllowAuthenticated
349
+ let authorizationOf = (_: string): Reventless.Authorization.rule<role> => AllowAuthenticated
350
350
  type lifecycleState = unit
351
351
  let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
352
352
  }
@@ -22,7 +22,7 @@ let eventSchema = Sury.union([
22
22
 
23
23
  let directiveSchema = Sury.literal("NoDirective");
24
24
 
25
- function commandAuthorization(param) {
25
+ function authorizationOf(param) {
26
26
  return "AllowAuthenticated";
27
27
  }
28
28
 
@@ -38,7 +38,7 @@ let ProductsEpSpec = {
38
38
  commandSchema: commandSchema,
39
39
  eventSchema: eventSchema,
40
40
  directiveSchema: directiveSchema,
41
- commandAuthorization: commandAuthorization,
41
+ authorizationOf: authorizationOf,
42
42
  commandTransition: commandTransition,
43
43
  traits: traits
44
44
  };
@@ -65,7 +65,7 @@ let errorSchema = Sury.literal("NoError");
65
65
 
66
66
  let moduleUrl = "";
67
67
 
68
- function commandAuthorization$1(param) {
68
+ function authorizationOf$1(param) {
69
69
  return "AllowAuthenticated";
70
70
  }
71
71
 
@@ -82,7 +82,7 @@ let ProductDelegate = {
82
82
  eventSchema: eventSchema$1,
83
83
  errorSchema: errorSchema,
84
84
  moduleUrl: moduleUrl,
85
- commandAuthorization: commandAuthorization$1,
85
+ authorizationOf: authorizationOf$1,
86
86
  commandTransition: commandTransition$1,
87
87
  traits: traits$1
88
88
  };
@@ -157,7 +157,7 @@ let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
157
157
  errorSchema: errorSchema,
158
158
  commandSchema: commandSchema$1,
159
159
  moduleUrl: moduleUrl,
160
- commandAuthorization: commandAuthorization$1,
160
+ authorizationOf: authorizationOf$1,
161
161
  commandTransition: commandTransition$1,
162
162
  traits: traits$1
163
163
  },
@@ -209,7 +209,7 @@ let eventSchema$2 = Sury.union([
209
209
 
210
210
  let directiveSchema$1 = Sury.literal("NoDirective");
211
211
 
212
- function commandAuthorization$2(param) {
212
+ function authorizationOf$2(param) {
213
213
  return "AllowAuthenticated";
214
214
  }
215
215
 
@@ -225,7 +225,7 @@ let OrdersEpSpec = {
225
225
  commandSchema: commandSchema$2,
226
226
  eventSchema: eventSchema$2,
227
227
  directiveSchema: directiveSchema$1,
228
- commandAuthorization: commandAuthorization$2,
228
+ authorizationOf: authorizationOf$2,
229
229
  commandTransition: commandTransition$2,
230
230
  traits: traits$2
231
231
  };
@@ -252,7 +252,7 @@ let errorSchema$1 = Sury.literal("NoError");
252
252
 
253
253
  let moduleUrl$2 = "";
254
254
 
255
- function commandAuthorization$3(param) {
255
+ function authorizationOf$3(param) {
256
256
  return "AllowAuthenticated";
257
257
  }
258
258
 
@@ -269,7 +269,7 @@ let OrderDelegate = {
269
269
  eventSchema: eventSchema$3,
270
270
  errorSchema: errorSchema$1,
271
271
  moduleUrl: moduleUrl$2,
272
- commandAuthorization: commandAuthorization$3,
272
+ authorizationOf: authorizationOf$3,
273
273
  commandTransition: commandTransition$3,
274
274
  traits: traits$3
275
275
  };
@@ -345,7 +345,7 @@ let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
345
345
  errorSchema: errorSchema$1,
346
346
  commandSchema: commandSchema$3,
347
347
  moduleUrl: moduleUrl$2,
348
- commandAuthorization: commandAuthorization$3,
348
+ authorizationOf: authorizationOf$3,
349
349
  commandTransition: commandTransition$3,
350
350
  traits: traits$3
351
351
  },
@@ -415,7 +415,7 @@ let errorSchema$2 = Sury.literal("NoError");
415
415
 
416
416
  let moduleUrl$4 = "";
417
417
 
418
- function commandAuthorization$4(param) {
418
+ function authorizationOf$4(param) {
419
419
  return "AllowAuthenticated";
420
420
  }
421
421
 
@@ -432,7 +432,7 @@ let SyncDelegate = {
432
432
  eventSchema: eventSchema$4,
433
433
  errorSchema: errorSchema$2,
434
434
  moduleUrl: moduleUrl$4,
435
- commandAuthorization: commandAuthorization$4,
435
+ authorizationOf: authorizationOf$4,
436
436
  commandTransition: commandTransition$4,
437
437
  traits: traits$4
438
438
  };
@@ -503,7 +503,7 @@ let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
503
503
  errorSchema: errorSchema$2,
504
504
  commandSchema: commandSchema$4,
505
505
  moduleUrl: moduleUrl$4,
506
- commandAuthorization: commandAuthorization$4,
506
+ authorizationOf: authorizationOf$4,
507
507
  commandTransition: commandTransition$4,
508
508
  traits: traits$4
509
509
  },
@@ -548,7 +548,7 @@ let eventSchema$5 = Sury.literal("NoEvent");
548
548
 
549
549
  let directiveSchema$2 = Sury.literal("NoDirective");
550
550
 
551
- function commandAuthorization$5(param) {
551
+ function authorizationOf$5(param) {
552
552
  return "AllowAuthenticated";
553
553
  }
554
554
 
@@ -564,7 +564,7 @@ let InventoryEpSpec = {
564
564
  commandSchema: commandSchema$5,
565
565
  eventSchema: eventSchema$5,
566
566
  directiveSchema: directiveSchema$2,
567
- commandAuthorization: commandAuthorization$5,
567
+ authorizationOf: authorizationOf$5,
568
568
  commandTransition: commandTransition$5,
569
569
  traits: traits$5
570
570
  };
@@ -583,7 +583,7 @@ let errorSchema$3 = Sury.literal("NoError");
583
583
 
584
584
  let moduleUrl$6 = "";
585
585
 
586
- function commandAuthorization$6(param) {
586
+ function authorizationOf$6(param) {
587
587
  return "AllowAuthenticated";
588
588
  }
589
589
 
@@ -600,7 +600,7 @@ let StockDelegate = {
600
600
  eventSchema: eventSchema$6,
601
601
  errorSchema: errorSchema$3,
602
602
  moduleUrl: moduleUrl$6,
603
- commandAuthorization: commandAuthorization$6,
603
+ authorizationOf: authorizationOf$6,
604
604
  commandTransition: commandTransition$6,
605
605
  traits: traits$6
606
606
  };
@@ -651,7 +651,7 @@ let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
651
651
  errorSchema: errorSchema$3,
652
652
  commandSchema: commandSchema$6,
653
653
  moduleUrl: moduleUrl$6,
654
- commandAuthorization: commandAuthorization$6,
654
+ authorizationOf: authorizationOf$6,
655
655
  commandTransition: commandTransition$6,
656
656
  traits: traits$6
657
657
  },
@@ -681,7 +681,7 @@ let eventSchema$7 = Sury.literal("NoEvent");
681
681
 
682
682
  let directiveSchema$3 = Sury.literal("NoDirective");
683
683
 
684
- function commandAuthorization$7(param) {
684
+ function authorizationOf$7(param) {
685
685
  return "AllowAuthenticated";
686
686
  }
687
687
 
@@ -697,7 +697,7 @@ let FeedbackEpSpec = {
697
697
  commandSchema: commandSchema$7,
698
698
  eventSchema: eventSchema$7,
699
699
  directiveSchema: directiveSchema$3,
700
- commandAuthorization: commandAuthorization$7,
700
+ authorizationOf: authorizationOf$7,
701
701
  commandTransition: commandTransition$7,
702
702
  traits: traits$7
703
703
  };
@@ -715,7 +715,7 @@ let errorSchema$4 = Sury.literal("NoError");
715
715
 
716
716
  let moduleUrl$8 = "";
717
717
 
718
- function commandAuthorization$8(param) {
718
+ function authorizationOf$8(param) {
719
719
  return "AllowAuthenticated";
720
720
  }
721
721
 
@@ -732,7 +732,7 @@ let SyncedDelegate = {
732
732
  eventSchema: eventSchema$8,
733
733
  errorSchema: errorSchema$4,
734
734
  moduleUrl: moduleUrl$8,
735
- commandAuthorization: commandAuthorization$8,
735
+ authorizationOf: authorizationOf$8,
736
736
  commandTransition: commandTransition$8,
737
737
  traits: traits$8
738
738
  };
@@ -787,7 +787,7 @@ let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
787
787
  errorSchema: errorSchema$4,
788
788
  commandSchema: commandSchema$8,
789
789
  moduleUrl: moduleUrl$8,
790
- commandAuthorization: commandAuthorization$8,
790
+ authorizationOf: authorizationOf$8,
791
791
  commandTransition: commandTransition$8,
792
792
  traits: traits$8
793
793
  },
@@ -822,7 +822,7 @@ let directiveSchema$4 = Sury.union([
822
822
  Sury.literal("FlushCache")
823
823
  ]);
824
824
 
825
- function commandAuthorization$9(param) {
825
+ function authorizationOf$9(param) {
826
826
  return "AllowAuthenticated";
827
827
  }
828
828
 
@@ -838,7 +838,7 @@ let NotifyEpSpec = {
838
838
  commandSchema: commandSchema$9,
839
839
  eventSchema: eventSchema$9,
840
840
  directiveSchema: directiveSchema$4,
841
- commandAuthorization: commandAuthorization$9,
841
+ authorizationOf: authorizationOf$9,
842
842
  commandTransition: commandTransition$9,
843
843
  traits: traits$9
844
844
  };
@@ -922,7 +922,7 @@ let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
922
922
  errorSchema: errorSchema,
923
923
  commandSchema: commandSchema$1,
924
924
  moduleUrl: moduleUrl,
925
- commandAuthorization: commandAuthorization$1,
925
+ authorizationOf: authorizationOf$1,
926
926
  commandTransition: commandTransition$1,
927
927
  traits: traits$1
928
928
  },
@@ -1019,7 +1019,7 @@ let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
1019
1019
  errorSchema: errorSchema$2,
1020
1020
  commandSchema: commandSchema$4,
1021
1021
  moduleUrl: moduleUrl$4,
1022
- commandAuthorization: commandAuthorization$4,
1022
+ authorizationOf: authorizationOf$4,
1023
1023
  commandTransition: commandTransition$4,
1024
1024
  traits: traits$4
1025
1025
  },
@@ -17,7 +17,7 @@ let eventSchema = Sury.$schema(s => ({
17
17
 
18
18
  let errorSchema = Sury.literal("AlreadySynced");
19
19
 
20
- function commandAuthorization(param) {
20
+ function authorizationOf(param) {
21
21
  return "AllowAuthenticated";
22
22
  }
23
23
 
@@ -32,7 +32,7 @@ let CatalogProductAggregate = {
32
32
  commandSchema: commandSchema,
33
33
  eventSchema: eventSchema,
34
34
  errorSchema: errorSchema,
35
- commandAuthorization: commandAuthorization,
35
+ authorizationOf: authorizationOf,
36
36
  commandTransition: commandTransition,
37
37
  traits: traits
38
38
  };
@@ -93,7 +93,7 @@ let errorSchema$1 = Sury.union([
93
93
  Sury.literal("NotPlaced")
94
94
  ]);
95
95
 
96
- function commandAuthorization$1(param) {
96
+ function authorizationOf$1(param) {
97
97
  return "AllowAuthenticated";
98
98
  }
99
99
 
@@ -108,7 +108,7 @@ let OrderAggregate = {
108
108
  commandSchema: commandSchema$1,
109
109
  eventSchema: eventSchema$1,
110
110
  errorSchema: errorSchema$1,
111
- commandAuthorization: commandAuthorization$1,
111
+ authorizationOf: authorizationOf$1,
112
112
  commandTransition: commandTransition$1,
113
113
  traits: traits$1
114
114
  };