@reventlessdev/reventless-gwt 1.0.0-alpha.198 → 1.0.0-alpha.199
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 +7 -0
- package/package.json +6 -6
- package/tests/AutomationGwtTest.res.mjs +9 -1
- package/tests/DelegateGwtTest.res +10 -0
- package/tests/DelegateGwtTest.res.mjs +111 -17
- package/tests/FlowAggregateGwtTest.res.mjs +18 -2
- package/tests/FlowCrossPluginGwtTest.res +8 -0
- package/tests/FlowCrossPluginGwtTest.res.mjs +80 -8
- package/tests/FlowGwtTest.res.mjs +25 -1
- package/tests/InboundTranslationGwtTest.res.mjs +8 -0
- package/tests/MappingGwtTest.res.mjs +46 -6
- package/tests/StateChangeSliceGwtTest.res.mjs +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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
|
+
# 1.0.0-alpha.199 (2026-09-01)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **spec:** a command declares its lifecycle edge as a value ([40eee9f](https://github.com/ReventlessDev/reventless-core/commit/40eee9f7723dc05e418be680528f01967d074da4))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
# 1.0.0-alpha.198 (2026-08-27)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-gwt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.199",
|
|
4
4
|
"description": "Given-When-Then DSLs and test harness for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"sury": "11.0.0-rc.2",
|
|
17
17
|
"@reventlessdev/rescript-effect": "0.1.0-alpha.32",
|
|
18
|
-
"@reventlessdev/rescript-jest": "1.0.0-alpha.10",
|
|
19
18
|
"@reventlessdev/rescript-node": "2.0.0-alpha.8",
|
|
20
|
-
"@reventlessdev/
|
|
21
|
-
"@reventlessdev/reventless-
|
|
22
|
-
"@reventlessdev/reventless-
|
|
19
|
+
"@reventlessdev/rescript-jest": "1.0.0-alpha.10",
|
|
20
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.252",
|
|
21
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.153",
|
|
22
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.125"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"rescript": "12.3.0",
|
|
26
26
|
"sury-ppx": "11.0.0-rc.2",
|
|
27
|
-
"@reventlessdev/reventless-ppx": "1.0.0-alpha.
|
|
27
|
+
"@reventlessdev/reventless-ppx": "1.0.0-alpha.75"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"rescript": "12.3.0"
|
|
@@ -68,6 +68,12 @@ function commandAuthorization(param) {
|
|
|
68
68
|
return "AllowAuthenticated";
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
function commandTransition(param) {
|
|
72
|
+
return "Unrestricted";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let traits = [];
|
|
76
|
+
|
|
71
77
|
let ShipOrderSlice = {
|
|
72
78
|
name: "ShipOrder",
|
|
73
79
|
consumedEventSchema: consumedEventSchema,
|
|
@@ -77,7 +83,9 @@ let ShipOrderSlice = {
|
|
|
77
83
|
resolve: resolve,
|
|
78
84
|
process: process,
|
|
79
85
|
onExhausted: onExhausted,
|
|
80
|
-
commandAuthorization: commandAuthorization
|
|
86
|
+
commandAuthorization: commandAuthorization,
|
|
87
|
+
commandTransition: commandTransition,
|
|
88
|
+
traits: traits
|
|
81
89
|
};
|
|
82
90
|
|
|
83
91
|
let include = Automation_GWT$ReventlessGwt.Make(ShipOrderSlice);
|
|
@@ -47,6 +47,8 @@ module ProductDelegate = {
|
|
|
47
47
|
|
|
48
48
|
let moduleUrl = ""
|
|
49
49
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
50
|
+
type lifecycleState = unit
|
|
51
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
module ProductsEpMapping = {
|
|
@@ -132,6 +134,8 @@ module OrderDelegate = {
|
|
|
132
134
|
|
|
133
135
|
let moduleUrl = ""
|
|
134
136
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
137
|
+
type lifecycleState = unit
|
|
138
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
module OrdersEpMapping = {
|
|
@@ -199,6 +203,8 @@ module SyncDelegate = {
|
|
|
199
203
|
|
|
200
204
|
let moduleUrl = ""
|
|
201
205
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
206
|
+
type lifecycleState = unit
|
|
207
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
module ProductsExtMapping = {
|
|
@@ -275,6 +281,8 @@ module StockDelegate = {
|
|
|
275
281
|
|
|
276
282
|
let moduleUrl = ""
|
|
277
283
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
284
|
+
type lifecycleState = unit
|
|
285
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
278
286
|
}
|
|
279
287
|
|
|
280
288
|
module InventoryEpMapping = {
|
|
@@ -335,6 +343,8 @@ module SyncedDelegate = {
|
|
|
335
343
|
|
|
336
344
|
let moduleUrl = ""
|
|
337
345
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
346
|
+
type lifecycleState = unit
|
|
347
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
338
348
|
}
|
|
339
349
|
|
|
340
350
|
module FeedbackExtMapping = {
|
|
@@ -26,13 +26,21 @@ function commandAuthorization(param) {
|
|
|
26
26
|
return "AllowAuthenticated";
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
function commandTransition(param) {
|
|
30
|
+
return "Unrestricted";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let traits = [];
|
|
34
|
+
|
|
29
35
|
let ProductsEpSpec = {
|
|
30
36
|
name: "Catalog.Products",
|
|
31
37
|
moduleUrl: "",
|
|
32
38
|
commandSchema: commandSchema,
|
|
33
39
|
eventSchema: eventSchema,
|
|
34
40
|
directiveSchema: directiveSchema,
|
|
35
|
-
commandAuthorization: commandAuthorization
|
|
41
|
+
commandAuthorization: commandAuthorization,
|
|
42
|
+
commandTransition: commandTransition,
|
|
43
|
+
traits: traits
|
|
36
44
|
};
|
|
37
45
|
|
|
38
46
|
let name = "Product";
|
|
@@ -61,6 +69,12 @@ function commandAuthorization$1(param) {
|
|
|
61
69
|
return "AllowAuthenticated";
|
|
62
70
|
}
|
|
63
71
|
|
|
72
|
+
function commandTransition$1(param) {
|
|
73
|
+
return "Unrestricted";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let traits$1 = [];
|
|
77
|
+
|
|
64
78
|
let ProductDelegate = {
|
|
65
79
|
Id: undefined,
|
|
66
80
|
name: name,
|
|
@@ -68,7 +82,9 @@ let ProductDelegate = {
|
|
|
68
82
|
eventSchema: eventSchema$1,
|
|
69
83
|
errorSchema: errorSchema,
|
|
70
84
|
moduleUrl: moduleUrl,
|
|
71
|
-
commandAuthorization: commandAuthorization$1
|
|
85
|
+
commandAuthorization: commandAuthorization$1,
|
|
86
|
+
commandTransition: commandTransition$1,
|
|
87
|
+
traits: traits$1
|
|
72
88
|
};
|
|
73
89
|
|
|
74
90
|
let moduleUrl$1 = "test:DelegateGwtTest:ProductsEpMapping";
|
|
@@ -141,7 +157,9 @@ let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
141
157
|
errorSchema: errorSchema,
|
|
142
158
|
commandSchema: commandSchema$1,
|
|
143
159
|
moduleUrl: moduleUrl,
|
|
144
|
-
commandAuthorization: commandAuthorization$1
|
|
160
|
+
commandAuthorization: commandAuthorization$1,
|
|
161
|
+
commandTransition: commandTransition$1,
|
|
162
|
+
traits: traits$1
|
|
145
163
|
},
|
|
146
164
|
moduleUrl: moduleUrl$1,
|
|
147
165
|
mapIncomingCommand: mapIncomingCommand,
|
|
@@ -195,13 +213,21 @@ function commandAuthorization$2(param) {
|
|
|
195
213
|
return "AllowAuthenticated";
|
|
196
214
|
}
|
|
197
215
|
|
|
216
|
+
function commandTransition$2(param) {
|
|
217
|
+
return "Unrestricted";
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
let traits$2 = [];
|
|
221
|
+
|
|
198
222
|
let OrdersEpSpec = {
|
|
199
223
|
name: "Ordering.Orders",
|
|
200
224
|
moduleUrl: "",
|
|
201
225
|
commandSchema: commandSchema$2,
|
|
202
226
|
eventSchema: eventSchema$2,
|
|
203
227
|
directiveSchema: directiveSchema$1,
|
|
204
|
-
commandAuthorization: commandAuthorization$2
|
|
228
|
+
commandAuthorization: commandAuthorization$2,
|
|
229
|
+
commandTransition: commandTransition$2,
|
|
230
|
+
traits: traits$2
|
|
205
231
|
};
|
|
206
232
|
|
|
207
233
|
let name$1 = "Order";
|
|
@@ -230,6 +256,12 @@ function commandAuthorization$3(param) {
|
|
|
230
256
|
return "AllowAuthenticated";
|
|
231
257
|
}
|
|
232
258
|
|
|
259
|
+
function commandTransition$3(param) {
|
|
260
|
+
return "Unrestricted";
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let traits$3 = [];
|
|
264
|
+
|
|
233
265
|
let OrderDelegate = {
|
|
234
266
|
Id: undefined,
|
|
235
267
|
name: name$1,
|
|
@@ -237,7 +269,9 @@ let OrderDelegate = {
|
|
|
237
269
|
eventSchema: eventSchema$3,
|
|
238
270
|
errorSchema: errorSchema$1,
|
|
239
271
|
moduleUrl: moduleUrl$2,
|
|
240
|
-
commandAuthorization: commandAuthorization$3
|
|
272
|
+
commandAuthorization: commandAuthorization$3,
|
|
273
|
+
commandTransition: commandTransition$3,
|
|
274
|
+
traits: traits$3
|
|
241
275
|
};
|
|
242
276
|
|
|
243
277
|
let moduleUrl$3 = "test:DelegateGwtTest:OrdersEpMapping";
|
|
@@ -311,7 +345,9 @@ let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
311
345
|
errorSchema: errorSchema$1,
|
|
312
346
|
commandSchema: commandSchema$3,
|
|
313
347
|
moduleUrl: moduleUrl$2,
|
|
314
|
-
commandAuthorization: commandAuthorization$3
|
|
348
|
+
commandAuthorization: commandAuthorization$3,
|
|
349
|
+
commandTransition: commandTransition$3,
|
|
350
|
+
traits: traits$3
|
|
315
351
|
},
|
|
316
352
|
moduleUrl: moduleUrl$3,
|
|
317
353
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
@@ -383,6 +419,12 @@ function commandAuthorization$4(param) {
|
|
|
383
419
|
return "AllowAuthenticated";
|
|
384
420
|
}
|
|
385
421
|
|
|
422
|
+
function commandTransition$4(param) {
|
|
423
|
+
return "Unrestricted";
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
let traits$4 = [];
|
|
427
|
+
|
|
386
428
|
let SyncDelegate = {
|
|
387
429
|
Id: undefined,
|
|
388
430
|
name: name$2,
|
|
@@ -390,7 +432,9 @@ let SyncDelegate = {
|
|
|
390
432
|
eventSchema: eventSchema$4,
|
|
391
433
|
errorSchema: errorSchema$2,
|
|
392
434
|
moduleUrl: moduleUrl$4,
|
|
393
|
-
commandAuthorization: commandAuthorization$4
|
|
435
|
+
commandAuthorization: commandAuthorization$4,
|
|
436
|
+
commandTransition: commandTransition$4,
|
|
437
|
+
traits: traits$4
|
|
394
438
|
};
|
|
395
439
|
|
|
396
440
|
let moduleUrl$5 = "";
|
|
@@ -459,7 +503,9 @@ let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
459
503
|
errorSchema: errorSchema$2,
|
|
460
504
|
commandSchema: commandSchema$4,
|
|
461
505
|
moduleUrl: moduleUrl$4,
|
|
462
|
-
commandAuthorization: commandAuthorization$4
|
|
506
|
+
commandAuthorization: commandAuthorization$4,
|
|
507
|
+
commandTransition: commandTransition$4,
|
|
508
|
+
traits: traits$4
|
|
463
509
|
},
|
|
464
510
|
moduleUrl: moduleUrl$5,
|
|
465
511
|
delegateModuleUrl: delegateModuleUrl,
|
|
@@ -506,13 +552,21 @@ function commandAuthorization$5(param) {
|
|
|
506
552
|
return "AllowAuthenticated";
|
|
507
553
|
}
|
|
508
554
|
|
|
555
|
+
function commandTransition$5(param) {
|
|
556
|
+
return "Unrestricted";
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
let traits$5 = [];
|
|
560
|
+
|
|
509
561
|
let InventoryEpSpec = {
|
|
510
562
|
name: "Catalog.Inventory",
|
|
511
563
|
moduleUrl: "",
|
|
512
564
|
commandSchema: commandSchema$5,
|
|
513
565
|
eventSchema: eventSchema$5,
|
|
514
566
|
directiveSchema: directiveSchema$2,
|
|
515
|
-
commandAuthorization: commandAuthorization$5
|
|
567
|
+
commandAuthorization: commandAuthorization$5,
|
|
568
|
+
commandTransition: commandTransition$5,
|
|
569
|
+
traits: traits$5
|
|
516
570
|
};
|
|
517
571
|
|
|
518
572
|
let name$3 = "Stock";
|
|
@@ -533,6 +587,12 @@ function commandAuthorization$6(param) {
|
|
|
533
587
|
return "AllowAuthenticated";
|
|
534
588
|
}
|
|
535
589
|
|
|
590
|
+
function commandTransition$6(param) {
|
|
591
|
+
return "Unrestricted";
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let traits$6 = [];
|
|
595
|
+
|
|
536
596
|
let StockDelegate = {
|
|
537
597
|
Id: undefined,
|
|
538
598
|
name: name$3,
|
|
@@ -540,7 +600,9 @@ let StockDelegate = {
|
|
|
540
600
|
eventSchema: eventSchema$6,
|
|
541
601
|
errorSchema: errorSchema$3,
|
|
542
602
|
moduleUrl: moduleUrl$6,
|
|
543
|
-
commandAuthorization: commandAuthorization$6
|
|
603
|
+
commandAuthorization: commandAuthorization$6,
|
|
604
|
+
commandTransition: commandTransition$6,
|
|
605
|
+
traits: traits$6
|
|
544
606
|
};
|
|
545
607
|
|
|
546
608
|
let moduleUrl$7 = "test:DelegateGwtTest:InventoryEpMapping";
|
|
@@ -589,7 +651,9 @@ let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
589
651
|
errorSchema: errorSchema$3,
|
|
590
652
|
commandSchema: commandSchema$6,
|
|
591
653
|
moduleUrl: moduleUrl$6,
|
|
592
|
-
commandAuthorization: commandAuthorization$6
|
|
654
|
+
commandAuthorization: commandAuthorization$6,
|
|
655
|
+
commandTransition: commandTransition$6,
|
|
656
|
+
traits: traits$6
|
|
593
657
|
},
|
|
594
658
|
moduleUrl: moduleUrl$7,
|
|
595
659
|
mapIncomingCommand: mapIncomingCommand$2,
|
|
@@ -621,13 +685,21 @@ function commandAuthorization$7(param) {
|
|
|
621
685
|
return "AllowAuthenticated";
|
|
622
686
|
}
|
|
623
687
|
|
|
688
|
+
function commandTransition$7(param) {
|
|
689
|
+
return "Unrestricted";
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
let traits$7 = [];
|
|
693
|
+
|
|
624
694
|
let FeedbackEpSpec = {
|
|
625
695
|
name: "Ordering.Feedback",
|
|
626
696
|
moduleUrl: "",
|
|
627
697
|
commandSchema: commandSchema$7,
|
|
628
698
|
eventSchema: eventSchema$7,
|
|
629
699
|
directiveSchema: directiveSchema$3,
|
|
630
|
-
commandAuthorization: commandAuthorization$7
|
|
700
|
+
commandAuthorization: commandAuthorization$7,
|
|
701
|
+
commandTransition: commandTransition$7,
|
|
702
|
+
traits: traits$7
|
|
631
703
|
};
|
|
632
704
|
|
|
633
705
|
let name$4 = "SyncedProduct";
|
|
@@ -647,6 +719,12 @@ function commandAuthorization$8(param) {
|
|
|
647
719
|
return "AllowAuthenticated";
|
|
648
720
|
}
|
|
649
721
|
|
|
722
|
+
function commandTransition$8(param) {
|
|
723
|
+
return "Unrestricted";
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
let traits$8 = [];
|
|
727
|
+
|
|
650
728
|
let SyncedDelegate = {
|
|
651
729
|
Id: undefined,
|
|
652
730
|
name: name$4,
|
|
@@ -654,7 +732,9 @@ let SyncedDelegate = {
|
|
|
654
732
|
eventSchema: eventSchema$8,
|
|
655
733
|
errorSchema: errorSchema$4,
|
|
656
734
|
moduleUrl: moduleUrl$8,
|
|
657
|
-
commandAuthorization: commandAuthorization$8
|
|
735
|
+
commandAuthorization: commandAuthorization$8,
|
|
736
|
+
commandTransition: commandTransition$8,
|
|
737
|
+
traits: traits$8
|
|
658
738
|
};
|
|
659
739
|
|
|
660
740
|
let moduleUrl$9 = "";
|
|
@@ -707,7 +787,9 @@ let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
707
787
|
errorSchema: errorSchema$4,
|
|
708
788
|
commandSchema: commandSchema$8,
|
|
709
789
|
moduleUrl: moduleUrl$8,
|
|
710
|
-
commandAuthorization: commandAuthorization$8
|
|
790
|
+
commandAuthorization: commandAuthorization$8,
|
|
791
|
+
commandTransition: commandTransition$8,
|
|
792
|
+
traits: traits$8
|
|
711
793
|
},
|
|
712
794
|
moduleUrl: moduleUrl$9,
|
|
713
795
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
@@ -744,13 +826,21 @@ function commandAuthorization$9(param) {
|
|
|
744
826
|
return "AllowAuthenticated";
|
|
745
827
|
}
|
|
746
828
|
|
|
829
|
+
function commandTransition$9(param) {
|
|
830
|
+
return "Unrestricted";
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
let traits$9 = [];
|
|
834
|
+
|
|
747
835
|
let NotifyEpSpec = {
|
|
748
836
|
name: "Catalog.Notify",
|
|
749
837
|
moduleUrl: "",
|
|
750
838
|
commandSchema: commandSchema$9,
|
|
751
839
|
eventSchema: eventSchema$9,
|
|
752
840
|
directiveSchema: directiveSchema$4,
|
|
753
|
-
commandAuthorization: commandAuthorization$9
|
|
841
|
+
commandAuthorization: commandAuthorization$9,
|
|
842
|
+
commandTransition: commandTransition$9,
|
|
843
|
+
traits: traits$9
|
|
754
844
|
};
|
|
755
845
|
|
|
756
846
|
let moduleUrl$10 = "test:DelegateGwtTest:NotifyEpMapping";
|
|
@@ -832,7 +922,9 @@ let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
832
922
|
errorSchema: errorSchema,
|
|
833
923
|
commandSchema: commandSchema$1,
|
|
834
924
|
moduleUrl: moduleUrl,
|
|
835
|
-
commandAuthorization: commandAuthorization$1
|
|
925
|
+
commandAuthorization: commandAuthorization$1,
|
|
926
|
+
commandTransition: commandTransition$1,
|
|
927
|
+
traits: traits$1
|
|
836
928
|
},
|
|
837
929
|
moduleUrl: moduleUrl$10,
|
|
838
930
|
mapIncomingCommand: mapIncomingCommand$3,
|
|
@@ -927,7 +1019,9 @@ let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
927
1019
|
errorSchema: errorSchema$2,
|
|
928
1020
|
commandSchema: commandSchema$4,
|
|
929
1021
|
moduleUrl: moduleUrl$4,
|
|
930
|
-
commandAuthorization: commandAuthorization$4
|
|
1022
|
+
commandAuthorization: commandAuthorization$4,
|
|
1023
|
+
commandTransition: commandTransition$4,
|
|
1024
|
+
traits: traits$4
|
|
931
1025
|
},
|
|
932
1026
|
moduleUrl: moduleUrl$11,
|
|
933
1027
|
delegateModuleUrl: delegateModuleUrl$2,
|
|
@@ -21,12 +21,20 @@ function commandAuthorization(param) {
|
|
|
21
21
|
return "AllowAuthenticated";
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
function commandTransition(param) {
|
|
25
|
+
return "Unrestricted";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
let traits = [];
|
|
29
|
+
|
|
24
30
|
let CatalogProductAggregate = {
|
|
25
31
|
name: "CatalogProduct",
|
|
26
32
|
commandSchema: commandSchema,
|
|
27
33
|
eventSchema: eventSchema,
|
|
28
34
|
errorSchema: errorSchema,
|
|
29
|
-
commandAuthorization: commandAuthorization
|
|
35
|
+
commandAuthorization: commandAuthorization,
|
|
36
|
+
commandTransition: commandTransition,
|
|
37
|
+
traits: traits
|
|
30
38
|
};
|
|
31
39
|
|
|
32
40
|
function evolve(_state, event) {
|
|
@@ -89,12 +97,20 @@ function commandAuthorization$1(param) {
|
|
|
89
97
|
return "AllowAuthenticated";
|
|
90
98
|
}
|
|
91
99
|
|
|
100
|
+
function commandTransition$1(param) {
|
|
101
|
+
return "Unrestricted";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let traits$1 = [];
|
|
105
|
+
|
|
92
106
|
let OrderAggregate = {
|
|
93
107
|
name: "Order",
|
|
94
108
|
commandSchema: commandSchema$1,
|
|
95
109
|
eventSchema: eventSchema$1,
|
|
96
110
|
errorSchema: errorSchema$1,
|
|
97
|
-
commandAuthorization: commandAuthorization$1
|
|
111
|
+
commandAuthorization: commandAuthorization$1,
|
|
112
|
+
commandTransition: commandTransition$1,
|
|
113
|
+
traits: traits$1
|
|
98
114
|
};
|
|
99
115
|
|
|
100
116
|
let initialState = {
|
|
@@ -78,6 +78,8 @@ module ProductDelegate = {
|
|
|
78
78
|
@schema type error = NoError
|
|
79
79
|
let moduleUrl = ""
|
|
80
80
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
81
|
+
type lifecycleState = unit
|
|
82
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
module ProductsEpMapping = {
|
|
@@ -112,6 +114,8 @@ module OrderDelegate = {
|
|
|
112
114
|
@schema type error = NoError
|
|
113
115
|
let moduleUrl = ""
|
|
114
116
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
117
|
+
type lifecycleState = unit
|
|
118
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
module OrdersEpMapping = {
|
|
@@ -146,6 +150,8 @@ module RecordDemandSlice = {
|
|
|
146
150
|
DemandRecorded({productId: @s.matches(Reventless.DcbTag.string) string, orderId: string})
|
|
147
151
|
let moduleUrl = ""
|
|
148
152
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
153
|
+
type lifecycleState = unit
|
|
154
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
module RecordDemandBehavior = {
|
|
@@ -195,6 +201,8 @@ module SyncProductSlice = {
|
|
|
195
201
|
ProductSynced({productId: @s.matches(Reventless.DcbTag.string) string, name: string, price: float})
|
|
196
202
|
let moduleUrl = ""
|
|
197
203
|
let commandAuthorization = (_: command): Reventless.Authorization.permission => AllowAuthenticated
|
|
204
|
+
type lifecycleState = unit
|
|
205
|
+
let commandTransition = (_: command): Reventless.Transition.t<lifecycleState> => Unrestricted
|
|
198
206
|
}
|
|
199
207
|
|
|
200
208
|
module SyncProductBehavior = {
|
|
@@ -30,6 +30,12 @@ function commandAuthorization(param) {
|
|
|
30
30
|
return "AllowAuthenticated";
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
function commandTransition(param) {
|
|
34
|
+
return "Unrestricted";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let traits = [];
|
|
38
|
+
|
|
33
39
|
let AddProductSlice = {
|
|
34
40
|
name: "AddProduct",
|
|
35
41
|
consumedEventSchema: consumedEventSchema,
|
|
@@ -37,6 +43,8 @@ let AddProductSlice = {
|
|
|
37
43
|
errorSchema: errorSchema,
|
|
38
44
|
eventSchema: eventSchema,
|
|
39
45
|
commandAuthorization: commandAuthorization,
|
|
46
|
+
commandTransition: commandTransition,
|
|
47
|
+
traits: traits,
|
|
40
48
|
readConsistency: "EscalateOnRetry"
|
|
41
49
|
};
|
|
42
50
|
|
|
@@ -91,13 +99,21 @@ function commandAuthorization$1(param) {
|
|
|
91
99
|
return "AllowAuthenticated";
|
|
92
100
|
}
|
|
93
101
|
|
|
102
|
+
function commandTransition$1(param) {
|
|
103
|
+
return "Unrestricted";
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
let traits$1 = [];
|
|
107
|
+
|
|
94
108
|
let ProductsEpSpec = {
|
|
95
109
|
name: "Catalog.Products",
|
|
96
110
|
moduleUrl: "",
|
|
97
111
|
commandSchema: commandSchema$1,
|
|
98
112
|
eventSchema: eventSchema$1,
|
|
99
113
|
directiveSchema: directiveSchema,
|
|
100
|
-
commandAuthorization: commandAuthorization$1
|
|
114
|
+
commandAuthorization: commandAuthorization$1,
|
|
115
|
+
commandTransition: commandTransition$1,
|
|
116
|
+
traits: traits$1
|
|
101
117
|
};
|
|
102
118
|
|
|
103
119
|
let name = "Product";
|
|
@@ -119,6 +135,12 @@ function commandAuthorization$2(param) {
|
|
|
119
135
|
return "AllowAuthenticated";
|
|
120
136
|
}
|
|
121
137
|
|
|
138
|
+
function commandTransition$2(param) {
|
|
139
|
+
return "Unrestricted";
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
let traits$2 = [];
|
|
143
|
+
|
|
122
144
|
let ProductDelegate = {
|
|
123
145
|
Id: undefined,
|
|
124
146
|
name: name,
|
|
@@ -126,7 +148,9 @@ let ProductDelegate = {
|
|
|
126
148
|
eventSchema: eventSchema$2,
|
|
127
149
|
errorSchema: errorSchema$1,
|
|
128
150
|
moduleUrl: moduleUrl,
|
|
129
|
-
commandAuthorization: commandAuthorization$2
|
|
151
|
+
commandAuthorization: commandAuthorization$2,
|
|
152
|
+
commandTransition: commandTransition$2,
|
|
153
|
+
traits: traits$2
|
|
130
154
|
};
|
|
131
155
|
|
|
132
156
|
let moduleUrl$1 = "test:FlowCrossPluginGwtTest:ProductsEpMapping";
|
|
@@ -180,13 +204,21 @@ function commandAuthorization$3(param) {
|
|
|
180
204
|
return "AllowAuthenticated";
|
|
181
205
|
}
|
|
182
206
|
|
|
207
|
+
function commandTransition$3(param) {
|
|
208
|
+
return "Unrestricted";
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
let traits$3 = [];
|
|
212
|
+
|
|
183
213
|
let OrdersEpSpec = {
|
|
184
214
|
name: "Ordering.Orders",
|
|
185
215
|
moduleUrl: "",
|
|
186
216
|
commandSchema: commandSchema$3,
|
|
187
217
|
eventSchema: eventSchema$3,
|
|
188
218
|
directiveSchema: directiveSchema$1,
|
|
189
|
-
commandAuthorization: commandAuthorization$3
|
|
219
|
+
commandAuthorization: commandAuthorization$3,
|
|
220
|
+
commandTransition: commandTransition$3,
|
|
221
|
+
traits: traits$3
|
|
190
222
|
};
|
|
191
223
|
|
|
192
224
|
let name$1 = "Order";
|
|
@@ -207,6 +239,12 @@ function commandAuthorization$4(param) {
|
|
|
207
239
|
return "AllowAuthenticated";
|
|
208
240
|
}
|
|
209
241
|
|
|
242
|
+
function commandTransition$4(param) {
|
|
243
|
+
return "Unrestricted";
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
let traits$4 = [];
|
|
247
|
+
|
|
210
248
|
let OrderDelegate = {
|
|
211
249
|
Id: undefined,
|
|
212
250
|
name: name$1,
|
|
@@ -214,7 +252,9 @@ let OrderDelegate = {
|
|
|
214
252
|
eventSchema: eventSchema$4,
|
|
215
253
|
errorSchema: errorSchema$2,
|
|
216
254
|
moduleUrl: moduleUrl$2,
|
|
217
|
-
commandAuthorization: commandAuthorization$4
|
|
255
|
+
commandAuthorization: commandAuthorization$4,
|
|
256
|
+
commandTransition: commandTransition$4,
|
|
257
|
+
traits: traits$4
|
|
218
258
|
};
|
|
219
259
|
|
|
220
260
|
let moduleUrl$3 = "test:FlowCrossPluginGwtTest:OrdersEpMapping";
|
|
@@ -281,6 +321,12 @@ function commandAuthorization$5(param) {
|
|
|
281
321
|
return "AllowAuthenticated";
|
|
282
322
|
}
|
|
283
323
|
|
|
324
|
+
function commandTransition$5(param) {
|
|
325
|
+
return "Unrestricted";
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
let traits$5 = [];
|
|
329
|
+
|
|
284
330
|
let RecordDemandSlice = {
|
|
285
331
|
Id: undefined,
|
|
286
332
|
name: name$2,
|
|
@@ -290,6 +336,8 @@ let RecordDemandSlice = {
|
|
|
290
336
|
eventSchema: eventSchema$5,
|
|
291
337
|
moduleUrl: moduleUrl$4,
|
|
292
338
|
commandAuthorization: commandAuthorization$5,
|
|
339
|
+
commandTransition: commandTransition$5,
|
|
340
|
+
traits: traits$5,
|
|
293
341
|
readConsistency: "EscalateOnRetry"
|
|
294
342
|
};
|
|
295
343
|
|
|
@@ -383,6 +431,12 @@ function commandAuthorization$6(param) {
|
|
|
383
431
|
return "AllowAuthenticated";
|
|
384
432
|
}
|
|
385
433
|
|
|
434
|
+
function commandTransition$6(param) {
|
|
435
|
+
return "Unrestricted";
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
let traits$6 = [];
|
|
439
|
+
|
|
386
440
|
let SyncProductSlice = {
|
|
387
441
|
Id: undefined,
|
|
388
442
|
name: name$3,
|
|
@@ -392,6 +446,8 @@ let SyncProductSlice = {
|
|
|
392
446
|
eventSchema: eventSchema$6,
|
|
393
447
|
moduleUrl: moduleUrl$6,
|
|
394
448
|
commandAuthorization: commandAuthorization$6,
|
|
449
|
+
commandTransition: commandTransition$6,
|
|
450
|
+
traits: traits$6,
|
|
395
451
|
readConsistency: "EscalateOnRetry"
|
|
396
452
|
};
|
|
397
453
|
|
|
@@ -493,6 +549,12 @@ function commandAuthorization$7(param) {
|
|
|
493
549
|
return "AllowAuthenticated";
|
|
494
550
|
}
|
|
495
551
|
|
|
552
|
+
function commandTransition$7(param) {
|
|
553
|
+
return "Unrestricted";
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
let traits$7 = [];
|
|
557
|
+
|
|
496
558
|
let PlaceOrderSlice = {
|
|
497
559
|
name: "PlaceOrder",
|
|
498
560
|
consumedEventSchema: consumedEventSchema$3,
|
|
@@ -500,6 +562,8 @@ let PlaceOrderSlice = {
|
|
|
500
562
|
errorSchema: errorSchema$5,
|
|
501
563
|
eventSchema: eventSchema$7,
|
|
502
564
|
commandAuthorization: commandAuthorization$7,
|
|
565
|
+
commandTransition: commandTransition$7,
|
|
566
|
+
traits: traits$7,
|
|
503
567
|
readConsistency: "EscalateOnRetry"
|
|
504
568
|
};
|
|
505
569
|
|
|
@@ -584,7 +648,9 @@ let ProductsEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
|
|
|
584
648
|
errorSchema: errorSchema$1,
|
|
585
649
|
commandSchema: commandSchema$2,
|
|
586
650
|
moduleUrl: moduleUrl,
|
|
587
|
-
commandAuthorization: commandAuthorization$2
|
|
651
|
+
commandAuthorization: commandAuthorization$2,
|
|
652
|
+
commandTransition: commandTransition$2,
|
|
653
|
+
traits: traits$2
|
|
588
654
|
},
|
|
589
655
|
moduleUrl: moduleUrl$1,
|
|
590
656
|
mapIncomingCommand: mapIncomingCommand,
|
|
@@ -608,7 +674,9 @@ let ProductsExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
|
608
674
|
errorSchema: errorSchema$4,
|
|
609
675
|
commandSchema: commandSchema$6,
|
|
610
676
|
moduleUrl: moduleUrl$6,
|
|
611
|
-
commandAuthorization: commandAuthorization$6
|
|
677
|
+
commandAuthorization: commandAuthorization$6,
|
|
678
|
+
commandTransition: commandTransition$6,
|
|
679
|
+
traits: traits$6
|
|
612
680
|
},
|
|
613
681
|
moduleUrl: moduleUrl$7,
|
|
614
682
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
@@ -651,7 +719,9 @@ let OrdersEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
|
|
|
651
719
|
errorSchema: errorSchema$2,
|
|
652
720
|
commandSchema: commandSchema$4,
|
|
653
721
|
moduleUrl: moduleUrl$2,
|
|
654
|
-
commandAuthorization: commandAuthorization$4
|
|
722
|
+
commandAuthorization: commandAuthorization$4,
|
|
723
|
+
commandTransition: commandTransition$4,
|
|
724
|
+
traits: traits$4
|
|
655
725
|
},
|
|
656
726
|
moduleUrl: moduleUrl$3,
|
|
657
727
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
@@ -675,7 +745,9 @@ let OrdersExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
|
675
745
|
errorSchema: errorSchema$3,
|
|
676
746
|
commandSchema: commandSchema$5,
|
|
677
747
|
moduleUrl: moduleUrl$4,
|
|
678
|
-
commandAuthorization: commandAuthorization$5
|
|
748
|
+
commandAuthorization: commandAuthorization$5,
|
|
749
|
+
commandTransition: commandTransition$5,
|
|
750
|
+
traits: traits$5
|
|
679
751
|
},
|
|
680
752
|
moduleUrl: moduleUrl$5,
|
|
681
753
|
delegateModuleUrl: delegateModuleUrl,
|
|
@@ -27,6 +27,12 @@ function commandAuthorization(param) {
|
|
|
27
27
|
return "AllowAuthenticated";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
function commandTransition(param) {
|
|
31
|
+
return "Unrestricted";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let traits = [];
|
|
35
|
+
|
|
30
36
|
let PlaceOrderSlice = {
|
|
31
37
|
name: "PlaceOrder",
|
|
32
38
|
consumedEventSchema: consumedEventSchema,
|
|
@@ -34,6 +40,8 @@ let PlaceOrderSlice = {
|
|
|
34
40
|
errorSchema: errorSchema,
|
|
35
41
|
eventSchema: eventSchema,
|
|
36
42
|
commandAuthorization: commandAuthorization,
|
|
43
|
+
commandTransition: commandTransition,
|
|
44
|
+
traits: traits,
|
|
37
45
|
readConsistency: "EscalateOnRetry"
|
|
38
46
|
};
|
|
39
47
|
|
|
@@ -131,6 +139,12 @@ function commandAuthorization$1(param) {
|
|
|
131
139
|
return "AllowAuthenticated";
|
|
132
140
|
}
|
|
133
141
|
|
|
142
|
+
function commandTransition$1(param) {
|
|
143
|
+
return "Unrestricted";
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let traits$1 = [];
|
|
147
|
+
|
|
134
148
|
let AutoShipSlice = {
|
|
135
149
|
name: "AutoShip",
|
|
136
150
|
consumedEventSchema: consumedEventSchema$1,
|
|
@@ -140,7 +154,9 @@ let AutoShipSlice = {
|
|
|
140
154
|
resolve: resolve,
|
|
141
155
|
process: process,
|
|
142
156
|
onExhausted: onExhausted,
|
|
143
|
-
commandAuthorization: commandAuthorization$1
|
|
157
|
+
commandAuthorization: commandAuthorization$1,
|
|
158
|
+
commandTransition: commandTransition$1,
|
|
159
|
+
traits: traits$1
|
|
144
160
|
};
|
|
145
161
|
|
|
146
162
|
let consumedEventSchema$2 = Sury.union([
|
|
@@ -170,6 +186,12 @@ function commandAuthorization$2(param) {
|
|
|
170
186
|
return "AllowAuthenticated";
|
|
171
187
|
}
|
|
172
188
|
|
|
189
|
+
function commandTransition$2(param) {
|
|
190
|
+
return "Unrestricted";
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
let traits$2 = [];
|
|
194
|
+
|
|
173
195
|
let ShipOrderSlice = {
|
|
174
196
|
name: "ShipOrder",
|
|
175
197
|
consumedEventSchema: consumedEventSchema$2,
|
|
@@ -177,6 +199,8 @@ let ShipOrderSlice = {
|
|
|
177
199
|
errorSchema: errorSchema$1,
|
|
178
200
|
eventSchema: eventSchema$1,
|
|
179
201
|
commandAuthorization: commandAuthorization$2,
|
|
202
|
+
commandTransition: commandTransition$2,
|
|
203
|
+
traits: traits$2,
|
|
180
204
|
readConsistency: "EscalateOnRetry"
|
|
181
205
|
};
|
|
182
206
|
|
|
@@ -41,12 +41,20 @@ function commandAuthorization(param) {
|
|
|
41
41
|
return "AllowAuthenticated";
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
function commandTransition(param) {
|
|
45
|
+
return "Unrestricted";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
let traits = [];
|
|
49
|
+
|
|
44
50
|
let PaymentWebhookSlice = {
|
|
45
51
|
name: "PaymentWebhook",
|
|
46
52
|
externalInputSchema: externalInputSchema,
|
|
47
53
|
commandSchema: commandSchema,
|
|
48
54
|
translate: translate,
|
|
49
55
|
commandAuthorization: commandAuthorization,
|
|
56
|
+
commandTransition: commandTransition,
|
|
57
|
+
traits: traits,
|
|
50
58
|
externalSystem: undefined
|
|
51
59
|
};
|
|
52
60
|
|
|
@@ -27,6 +27,12 @@ function commandAuthorization(param) {
|
|
|
27
27
|
return "AllowAuthenticated";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
function commandTransition(param) {
|
|
31
|
+
return "Unrestricted";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let traits = [];
|
|
35
|
+
|
|
30
36
|
let CategorySpec = {
|
|
31
37
|
Id: undefined,
|
|
32
38
|
name: name,
|
|
@@ -34,7 +40,9 @@ let CategorySpec = {
|
|
|
34
40
|
eventSchema: eventSchema,
|
|
35
41
|
errorSchema: errorSchema,
|
|
36
42
|
moduleUrl: moduleUrl,
|
|
37
|
-
commandAuthorization: commandAuthorization
|
|
43
|
+
commandAuthorization: commandAuthorization,
|
|
44
|
+
commandTransition: commandTransition,
|
|
45
|
+
traits: traits
|
|
38
46
|
};
|
|
39
47
|
|
|
40
48
|
function evolve(_state, event) {
|
|
@@ -94,6 +102,12 @@ function commandAuthorization$1(param) {
|
|
|
94
102
|
return "AllowAuthenticated";
|
|
95
103
|
}
|
|
96
104
|
|
|
105
|
+
function commandTransition$1(param) {
|
|
106
|
+
return "Unrestricted";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let traits$1 = [];
|
|
110
|
+
|
|
97
111
|
let ProductSpec = {
|
|
98
112
|
Id: undefined,
|
|
99
113
|
name: name$1,
|
|
@@ -101,7 +115,9 @@ let ProductSpec = {
|
|
|
101
115
|
eventSchema: eventSchema$1,
|
|
102
116
|
errorSchema: errorSchema$1,
|
|
103
117
|
moduleUrl: moduleUrl$2,
|
|
104
|
-
commandAuthorization: commandAuthorization$1
|
|
118
|
+
commandAuthorization: commandAuthorization$1,
|
|
119
|
+
commandTransition: commandTransition$1,
|
|
120
|
+
traits: traits$1
|
|
105
121
|
};
|
|
106
122
|
|
|
107
123
|
function evolve$1(_state, event) {
|
|
@@ -185,6 +201,12 @@ function commandAuthorization$2(param) {
|
|
|
185
201
|
return "AllowAuthenticated";
|
|
186
202
|
}
|
|
187
203
|
|
|
204
|
+
function commandTransition$2(param) {
|
|
205
|
+
return "Unrestricted";
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
let traits$2 = [];
|
|
209
|
+
|
|
188
210
|
let NotificationSlice_initialState = {
|
|
189
211
|
sent: false
|
|
190
212
|
};
|
|
@@ -199,6 +221,8 @@ let NotificationSlice = {
|
|
|
199
221
|
eventSchema: eventSchema$2,
|
|
200
222
|
decide: decide$2,
|
|
201
223
|
commandAuthorization: commandAuthorization$2,
|
|
224
|
+
commandTransition: commandTransition$2,
|
|
225
|
+
traits: traits$2,
|
|
202
226
|
readConsistency: "EscalateOnRetry"
|
|
203
227
|
};
|
|
204
228
|
|
|
@@ -249,6 +273,12 @@ function commandAuthorization$3(param) {
|
|
|
249
273
|
return "AllowAuthenticated";
|
|
250
274
|
}
|
|
251
275
|
|
|
276
|
+
function commandTransition$3(param) {
|
|
277
|
+
return "Unrestricted";
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
let traits$3 = [];
|
|
281
|
+
|
|
252
282
|
let InventorySlice_initialState = {
|
|
253
283
|
reserved: false
|
|
254
284
|
};
|
|
@@ -263,6 +293,8 @@ let InventorySlice = {
|
|
|
263
293
|
eventSchema: eventSchema$3,
|
|
264
294
|
decide: decide$3,
|
|
265
295
|
commandAuthorization: commandAuthorization$3,
|
|
296
|
+
commandTransition: commandTransition$3,
|
|
297
|
+
traits: traits$3,
|
|
266
298
|
readConsistency: "EscalateOnRetry"
|
|
267
299
|
};
|
|
268
300
|
|
|
@@ -279,7 +311,9 @@ let CategorySource = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
279
311
|
errorSchema: errorSchema,
|
|
280
312
|
commandSchema: commandSchema,
|
|
281
313
|
moduleUrl: moduleUrl,
|
|
282
|
-
commandAuthorization: commandAuthorization
|
|
314
|
+
commandAuthorization: commandAuthorization,
|
|
315
|
+
commandTransition: commandTransition,
|
|
316
|
+
traits: traits
|
|
283
317
|
})({
|
|
284
318
|
Spec: {
|
|
285
319
|
Id: {
|
|
@@ -294,7 +328,9 @@ let CategorySource = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
294
328
|
errorSchema: errorSchema,
|
|
295
329
|
commandSchema: commandSchema,
|
|
296
330
|
moduleUrl: moduleUrl,
|
|
297
|
-
commandAuthorization: commandAuthorization
|
|
331
|
+
commandAuthorization: commandAuthorization,
|
|
332
|
+
commandTransition: commandTransition,
|
|
333
|
+
traits: traits
|
|
298
334
|
},
|
|
299
335
|
initialState: "NotCreated",
|
|
300
336
|
evolve: evolve,
|
|
@@ -316,7 +352,9 @@ let ProductTarget = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
316
352
|
errorSchema: errorSchema$1,
|
|
317
353
|
commandSchema: commandSchema$1,
|
|
318
354
|
moduleUrl: moduleUrl$2,
|
|
319
|
-
commandAuthorization: commandAuthorization$1
|
|
355
|
+
commandAuthorization: commandAuthorization$1,
|
|
356
|
+
commandTransition: commandTransition$1,
|
|
357
|
+
traits: traits$1
|
|
320
358
|
})({
|
|
321
359
|
Spec: {
|
|
322
360
|
Id: {
|
|
@@ -331,7 +369,9 @@ let ProductTarget = Mapping_GWT$ReventlessGwt.FromBehavior({
|
|
|
331
369
|
errorSchema: errorSchema$1,
|
|
332
370
|
commandSchema: commandSchema$1,
|
|
333
371
|
moduleUrl: moduleUrl$2,
|
|
334
|
-
commandAuthorization: commandAuthorization$1
|
|
372
|
+
commandAuthorization: commandAuthorization$1,
|
|
373
|
+
commandTransition: commandTransition$1,
|
|
374
|
+
traits: traits$1
|
|
335
375
|
},
|
|
336
376
|
initialState: "Pristine",
|
|
337
377
|
evolve: evolve$1,
|
|
@@ -28,6 +28,12 @@ function commandAuthorization(param) {
|
|
|
28
28
|
return "AllowAuthenticated";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
function commandTransition(param) {
|
|
32
|
+
return "Unrestricted";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let traits = [];
|
|
36
|
+
|
|
31
37
|
let AddCategorySlice = {
|
|
32
38
|
name: "AddCategory",
|
|
33
39
|
consumedEventSchema: consumedEventSchema,
|
|
@@ -35,6 +41,8 @@ let AddCategorySlice = {
|
|
|
35
41
|
errorSchema: errorSchema,
|
|
36
42
|
eventSchema: eventSchema,
|
|
37
43
|
commandAuthorization: commandAuthorization,
|
|
44
|
+
commandTransition: commandTransition,
|
|
45
|
+
traits: traits,
|
|
38
46
|
readConsistency: "EscalateOnRetry"
|
|
39
47
|
};
|
|
40
48
|
|
|
@@ -169,6 +177,12 @@ function commandAuthorization$1(param) {
|
|
|
169
177
|
return "AllowAuthenticated";
|
|
170
178
|
}
|
|
171
179
|
|
|
180
|
+
function commandTransition$1(param) {
|
|
181
|
+
return "Unrestricted";
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
let traits$1 = [];
|
|
185
|
+
|
|
172
186
|
let MissingTagSlice = {
|
|
173
187
|
name: "MissingTagSlice",
|
|
174
188
|
consumedEventSchema: consumedEventSchema$1,
|
|
@@ -176,6 +190,8 @@ let MissingTagSlice = {
|
|
|
176
190
|
errorSchema: errorSchema$1,
|
|
177
191
|
eventSchema: eventSchema$1,
|
|
178
192
|
commandAuthorization: commandAuthorization$1,
|
|
193
|
+
commandTransition: commandTransition$1,
|
|
194
|
+
traits: traits$1,
|
|
179
195
|
readConsistency: "EscalateOnRetry"
|
|
180
196
|
};
|
|
181
197
|
|