@reventlessdev/reventless-gwt 1.0.0-alpha.197 → 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 +15 -0
- package/package.json +6 -6
- package/tests/AutomationGwtTest.res.mjs +9 -1
- package/tests/DelegateGwtTest.res +10 -0
- package/tests/DelegateGwtTest.res.mjs +223 -31
- package/tests/FlowAggregateGwtTest.res.mjs +18 -2
- package/tests/FlowCrossPluginGwtTest.res +8 -0
- package/tests/FlowCrossPluginGwtTest.res.mjs +132 -16
- 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,21 @@
|
|
|
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
|
+
|
|
13
|
+
# 1.0.0-alpha.198 (2026-08-27)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
# 1.0.0-alpha.197 (2026-08-23)
|
|
7
22
|
|
|
8
23
|
**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
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.250",
|
|
20
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.151",
|
|
21
18
|
"@reventlessdev/rescript-node": "2.0.0-alpha.8",
|
|
22
|
-
"@reventlessdev/
|
|
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";
|
|
@@ -103,12 +119,27 @@ let mapOutgoingEvent = (_id, event, _meta, _queryEngine) => {
|
|
|
103
119
|
}];
|
|
104
120
|
};
|
|
105
121
|
|
|
122
|
+
let publishedEvents = [
|
|
123
|
+
{
|
|
124
|
+
name: "ProductBecameAvailable",
|
|
125
|
+
fromEventTypes: ["ProductAdded"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "ProductPriceChanged",
|
|
129
|
+
fromEventTypes: ["ProductPriceChanged"]
|
|
130
|
+
}
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
let acceptedCommands = [];
|
|
134
|
+
|
|
106
135
|
let ProductsEpMapping = {
|
|
107
136
|
ExtensionPoint: undefined,
|
|
108
137
|
Delegate: undefined,
|
|
109
138
|
moduleUrl: moduleUrl$1,
|
|
110
139
|
mapIncomingCommand: mapIncomingCommand,
|
|
111
|
-
mapOutgoingEvent: mapOutgoingEvent
|
|
140
|
+
mapOutgoingEvent: mapOutgoingEvent,
|
|
141
|
+
publishedEvents: publishedEvents,
|
|
142
|
+
acceptedCommands: acceptedCommands
|
|
112
143
|
};
|
|
113
144
|
|
|
114
145
|
let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
@@ -126,11 +157,15 @@ let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
126
157
|
errorSchema: errorSchema,
|
|
127
158
|
commandSchema: commandSchema$1,
|
|
128
159
|
moduleUrl: moduleUrl,
|
|
129
|
-
commandAuthorization: commandAuthorization$1
|
|
160
|
+
commandAuthorization: commandAuthorization$1,
|
|
161
|
+
commandTransition: commandTransition$1,
|
|
162
|
+
traits: traits$1
|
|
130
163
|
},
|
|
131
164
|
moduleUrl: moduleUrl$1,
|
|
132
165
|
mapIncomingCommand: mapIncomingCommand,
|
|
133
|
-
mapOutgoingEvent: mapOutgoingEvent
|
|
166
|
+
mapOutgoingEvent: mapOutgoingEvent,
|
|
167
|
+
publishedEvents: publishedEvents,
|
|
168
|
+
acceptedCommands: acceptedCommands
|
|
134
169
|
});
|
|
135
170
|
|
|
136
171
|
ProductsEpGwt.describe("Products ExtensionPoint mapping (FromExtensionPoint)", () => {
|
|
@@ -178,13 +213,21 @@ function commandAuthorization$2(param) {
|
|
|
178
213
|
return "AllowAuthenticated";
|
|
179
214
|
}
|
|
180
215
|
|
|
216
|
+
function commandTransition$2(param) {
|
|
217
|
+
return "Unrestricted";
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
let traits$2 = [];
|
|
221
|
+
|
|
181
222
|
let OrdersEpSpec = {
|
|
182
223
|
name: "Ordering.Orders",
|
|
183
224
|
moduleUrl: "",
|
|
184
225
|
commandSchema: commandSchema$2,
|
|
185
226
|
eventSchema: eventSchema$2,
|
|
186
227
|
directiveSchema: directiveSchema$1,
|
|
187
|
-
commandAuthorization: commandAuthorization$2
|
|
228
|
+
commandAuthorization: commandAuthorization$2,
|
|
229
|
+
commandTransition: commandTransition$2,
|
|
230
|
+
traits: traits$2
|
|
188
231
|
};
|
|
189
232
|
|
|
190
233
|
let name$1 = "Order";
|
|
@@ -213,6 +256,12 @@ function commandAuthorization$3(param) {
|
|
|
213
256
|
return "AllowAuthenticated";
|
|
214
257
|
}
|
|
215
258
|
|
|
259
|
+
function commandTransition$3(param) {
|
|
260
|
+
return "Unrestricted";
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let traits$3 = [];
|
|
264
|
+
|
|
216
265
|
let OrderDelegate = {
|
|
217
266
|
Id: undefined,
|
|
218
267
|
name: name$1,
|
|
@@ -220,7 +269,9 @@ let OrderDelegate = {
|
|
|
220
269
|
eventSchema: eventSchema$3,
|
|
221
270
|
errorSchema: errorSchema$1,
|
|
222
271
|
moduleUrl: moduleUrl$2,
|
|
223
|
-
commandAuthorization: commandAuthorization$3
|
|
272
|
+
commandAuthorization: commandAuthorization$3,
|
|
273
|
+
commandTransition: commandTransition$3,
|
|
274
|
+
traits: traits$3
|
|
224
275
|
};
|
|
225
276
|
|
|
226
277
|
let moduleUrl$3 = "test:DelegateGwtTest:OrdersEpMapping";
|
|
@@ -256,12 +307,27 @@ let mapOutgoingEvent$1 = (_id, event, _meta, _queryEngine) => {
|
|
|
256
307
|
}));
|
|
257
308
|
};
|
|
258
309
|
|
|
310
|
+
let publishedEvents$1 = [
|
|
311
|
+
{
|
|
312
|
+
name: "ItemOrdered",
|
|
313
|
+
fromEventTypes: ["OrderPlaced"]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "ItemOrderCancelled",
|
|
317
|
+
fromEventTypes: ["OrderCancelled"]
|
|
318
|
+
}
|
|
319
|
+
];
|
|
320
|
+
|
|
321
|
+
let acceptedCommands$1 = [];
|
|
322
|
+
|
|
259
323
|
let OrdersEpMapping = {
|
|
260
324
|
ExtensionPoint: undefined,
|
|
261
325
|
Delegate: undefined,
|
|
262
326
|
moduleUrl: moduleUrl$3,
|
|
263
327
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
264
|
-
mapOutgoingEvent: mapOutgoingEvent$1
|
|
328
|
+
mapOutgoingEvent: mapOutgoingEvent$1,
|
|
329
|
+
publishedEvents: publishedEvents$1,
|
|
330
|
+
acceptedCommands: acceptedCommands$1
|
|
265
331
|
};
|
|
266
332
|
|
|
267
333
|
let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
@@ -279,11 +345,15 @@ let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
279
345
|
errorSchema: errorSchema$1,
|
|
280
346
|
commandSchema: commandSchema$3,
|
|
281
347
|
moduleUrl: moduleUrl$2,
|
|
282
|
-
commandAuthorization: commandAuthorization$3
|
|
348
|
+
commandAuthorization: commandAuthorization$3,
|
|
349
|
+
commandTransition: commandTransition$3,
|
|
350
|
+
traits: traits$3
|
|
283
351
|
},
|
|
284
352
|
moduleUrl: moduleUrl$3,
|
|
285
353
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
286
|
-
mapOutgoingEvent: mapOutgoingEvent$1
|
|
354
|
+
mapOutgoingEvent: mapOutgoingEvent$1,
|
|
355
|
+
publishedEvents: publishedEvents$1,
|
|
356
|
+
acceptedCommands: acceptedCommands$1
|
|
287
357
|
});
|
|
288
358
|
|
|
289
359
|
OrdersEpGwt.describe("Orders ExtensionPoint mapping — fan-out", () => {
|
|
@@ -349,6 +419,12 @@ function commandAuthorization$4(param) {
|
|
|
349
419
|
return "AllowAuthenticated";
|
|
350
420
|
}
|
|
351
421
|
|
|
422
|
+
function commandTransition$4(param) {
|
|
423
|
+
return "Unrestricted";
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
let traits$4 = [];
|
|
427
|
+
|
|
352
428
|
let SyncDelegate = {
|
|
353
429
|
Id: undefined,
|
|
354
430
|
name: name$2,
|
|
@@ -356,7 +432,9 @@ let SyncDelegate = {
|
|
|
356
432
|
eventSchema: eventSchema$4,
|
|
357
433
|
errorSchema: errorSchema$2,
|
|
358
434
|
moduleUrl: moduleUrl$4,
|
|
359
|
-
commandAuthorization: commandAuthorization$4
|
|
435
|
+
commandAuthorization: commandAuthorization$4,
|
|
436
|
+
commandTransition: commandTransition$4,
|
|
437
|
+
traits: traits$4
|
|
360
438
|
};
|
|
361
439
|
|
|
362
440
|
let moduleUrl$5 = "";
|
|
@@ -386,13 +464,28 @@ function mapIncomingEvent(_id, event, _meta, _pluginDef, _queryEngine) {
|
|
|
386
464
|
}
|
|
387
465
|
}
|
|
388
466
|
|
|
467
|
+
let handledEvents = [
|
|
468
|
+
{
|
|
469
|
+
name: "ProductBecameAvailable",
|
|
470
|
+
toCommandTypes: ["SyncNewProduct"]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "ProductPriceChanged",
|
|
474
|
+
toCommandTypes: ["ChangeSyncedPrice"]
|
|
475
|
+
}
|
|
476
|
+
];
|
|
477
|
+
|
|
478
|
+
let issuedCommands = [];
|
|
479
|
+
|
|
389
480
|
let ProductsExtMapping = {
|
|
390
481
|
ExtensionPoint: undefined,
|
|
391
482
|
Delegate: undefined,
|
|
392
483
|
moduleUrl: moduleUrl$5,
|
|
393
484
|
delegateModuleUrl: delegateModuleUrl,
|
|
394
485
|
mapIncomingEvent: mapIncomingEvent,
|
|
395
|
-
mapOutgoingEvent: undefined
|
|
486
|
+
mapOutgoingEvent: undefined,
|
|
487
|
+
handledEvents: handledEvents,
|
|
488
|
+
issuedCommands: issuedCommands
|
|
396
489
|
};
|
|
397
490
|
|
|
398
491
|
let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
@@ -410,12 +503,16 @@ let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
410
503
|
errorSchema: errorSchema$2,
|
|
411
504
|
commandSchema: commandSchema$4,
|
|
412
505
|
moduleUrl: moduleUrl$4,
|
|
413
|
-
commandAuthorization: commandAuthorization$4
|
|
506
|
+
commandAuthorization: commandAuthorization$4,
|
|
507
|
+
commandTransition: commandTransition$4,
|
|
508
|
+
traits: traits$4
|
|
414
509
|
},
|
|
415
510
|
moduleUrl: moduleUrl$5,
|
|
416
511
|
delegateModuleUrl: delegateModuleUrl,
|
|
417
512
|
mapIncomingEvent: mapIncomingEvent,
|
|
418
|
-
mapOutgoingEvent: undefined
|
|
513
|
+
mapOutgoingEvent: undefined,
|
|
514
|
+
handledEvents: handledEvents,
|
|
515
|
+
issuedCommands: issuedCommands
|
|
419
516
|
});
|
|
420
517
|
|
|
421
518
|
ProductsExtGwt.describe("Products Extension delegate (FromExtension)", () => {
|
|
@@ -455,13 +552,21 @@ function commandAuthorization$5(param) {
|
|
|
455
552
|
return "AllowAuthenticated";
|
|
456
553
|
}
|
|
457
554
|
|
|
555
|
+
function commandTransition$5(param) {
|
|
556
|
+
return "Unrestricted";
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
let traits$5 = [];
|
|
560
|
+
|
|
458
561
|
let InventoryEpSpec = {
|
|
459
562
|
name: "Catalog.Inventory",
|
|
460
563
|
moduleUrl: "",
|
|
461
564
|
commandSchema: commandSchema$5,
|
|
462
565
|
eventSchema: eventSchema$5,
|
|
463
566
|
directiveSchema: directiveSchema$2,
|
|
464
|
-
commandAuthorization: commandAuthorization$5
|
|
567
|
+
commandAuthorization: commandAuthorization$5,
|
|
568
|
+
commandTransition: commandTransition$5,
|
|
569
|
+
traits: traits$5
|
|
465
570
|
};
|
|
466
571
|
|
|
467
572
|
let name$3 = "Stock";
|
|
@@ -482,6 +587,12 @@ function commandAuthorization$6(param) {
|
|
|
482
587
|
return "AllowAuthenticated";
|
|
483
588
|
}
|
|
484
589
|
|
|
590
|
+
function commandTransition$6(param) {
|
|
591
|
+
return "Unrestricted";
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let traits$6 = [];
|
|
595
|
+
|
|
485
596
|
let StockDelegate = {
|
|
486
597
|
Id: undefined,
|
|
487
598
|
name: name$3,
|
|
@@ -489,7 +600,9 @@ let StockDelegate = {
|
|
|
489
600
|
eventSchema: eventSchema$6,
|
|
490
601
|
errorSchema: errorSchema$3,
|
|
491
602
|
moduleUrl: moduleUrl$6,
|
|
492
|
-
commandAuthorization: commandAuthorization$6
|
|
603
|
+
commandAuthorization: commandAuthorization$6,
|
|
604
|
+
commandTransition: commandTransition$6,
|
|
605
|
+
traits: traits$6
|
|
493
606
|
};
|
|
494
607
|
|
|
495
608
|
let moduleUrl$7 = "test:DelegateGwtTest:InventoryEpMapping";
|
|
@@ -506,12 +619,21 @@ function mapIncomingCommand$2(id, command, _meta) {
|
|
|
506
619
|
}];
|
|
507
620
|
}
|
|
508
621
|
|
|
622
|
+
let publishedEvents$2 = [];
|
|
623
|
+
|
|
624
|
+
let acceptedCommands$2 = [{
|
|
625
|
+
name: "Restock",
|
|
626
|
+
toCommandTypes: ["Restock"]
|
|
627
|
+
}];
|
|
628
|
+
|
|
509
629
|
let InventoryEpMapping = {
|
|
510
630
|
ExtensionPoint: undefined,
|
|
511
631
|
Delegate: undefined,
|
|
512
632
|
moduleUrl: moduleUrl$7,
|
|
513
633
|
mapIncomingCommand: mapIncomingCommand$2,
|
|
514
|
-
mapOutgoingEvent: undefined
|
|
634
|
+
mapOutgoingEvent: undefined,
|
|
635
|
+
publishedEvents: publishedEvents$2,
|
|
636
|
+
acceptedCommands: acceptedCommands$2
|
|
515
637
|
};
|
|
516
638
|
|
|
517
639
|
let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
@@ -529,11 +651,15 @@ let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
529
651
|
errorSchema: errorSchema$3,
|
|
530
652
|
commandSchema: commandSchema$6,
|
|
531
653
|
moduleUrl: moduleUrl$6,
|
|
532
|
-
commandAuthorization: commandAuthorization$6
|
|
654
|
+
commandAuthorization: commandAuthorization$6,
|
|
655
|
+
commandTransition: commandTransition$6,
|
|
656
|
+
traits: traits$6
|
|
533
657
|
},
|
|
534
658
|
moduleUrl: moduleUrl$7,
|
|
535
659
|
mapIncomingCommand: mapIncomingCommand$2,
|
|
536
|
-
mapOutgoingEvent: undefined
|
|
660
|
+
mapOutgoingEvent: undefined,
|
|
661
|
+
publishedEvents: publishedEvents$2,
|
|
662
|
+
acceptedCommands: acceptedCommands$2
|
|
537
663
|
});
|
|
538
664
|
|
|
539
665
|
InventoryEpGwt.describe("Inventory ExtensionPoint mapping — incoming command", () => InventoryEpGwt.test("Restock protocol command routes to the Stock delegate", undefined, () => InventoryEpGwt.thenPublishesCommand(InventoryEpGwt.whenIncomingCommand({
|
|
@@ -559,13 +685,21 @@ function commandAuthorization$7(param) {
|
|
|
559
685
|
return "AllowAuthenticated";
|
|
560
686
|
}
|
|
561
687
|
|
|
688
|
+
function commandTransition$7(param) {
|
|
689
|
+
return "Unrestricted";
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
let traits$7 = [];
|
|
693
|
+
|
|
562
694
|
let FeedbackEpSpec = {
|
|
563
695
|
name: "Ordering.Feedback",
|
|
564
696
|
moduleUrl: "",
|
|
565
697
|
commandSchema: commandSchema$7,
|
|
566
698
|
eventSchema: eventSchema$7,
|
|
567
699
|
directiveSchema: directiveSchema$3,
|
|
568
|
-
commandAuthorization: commandAuthorization$7
|
|
700
|
+
commandAuthorization: commandAuthorization$7,
|
|
701
|
+
commandTransition: commandTransition$7,
|
|
702
|
+
traits: traits$7
|
|
569
703
|
};
|
|
570
704
|
|
|
571
705
|
let name$4 = "SyncedProduct";
|
|
@@ -585,6 +719,12 @@ function commandAuthorization$8(param) {
|
|
|
585
719
|
return "AllowAuthenticated";
|
|
586
720
|
}
|
|
587
721
|
|
|
722
|
+
function commandTransition$8(param) {
|
|
723
|
+
return "Unrestricted";
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
let traits$8 = [];
|
|
727
|
+
|
|
588
728
|
let SyncedDelegate = {
|
|
589
729
|
Id: undefined,
|
|
590
730
|
name: name$4,
|
|
@@ -592,7 +732,9 @@ let SyncedDelegate = {
|
|
|
592
732
|
eventSchema: eventSchema$8,
|
|
593
733
|
errorSchema: errorSchema$4,
|
|
594
734
|
moduleUrl: moduleUrl$8,
|
|
595
|
-
commandAuthorization: commandAuthorization$8
|
|
735
|
+
commandAuthorization: commandAuthorization$8,
|
|
736
|
+
commandTransition: commandTransition$8,
|
|
737
|
+
traits: traits$8
|
|
596
738
|
};
|
|
597
739
|
|
|
598
740
|
let moduleUrl$9 = "";
|
|
@@ -612,13 +754,22 @@ let mapOutgoingEvent$2 = (id, event, _meta, _pluginDef) => [{
|
|
|
612
754
|
}
|
|
613
755
|
}];
|
|
614
756
|
|
|
757
|
+
let handledEvents$1 = [];
|
|
758
|
+
|
|
759
|
+
let issuedCommands$1 = [{
|
|
760
|
+
name: "AckProduct",
|
|
761
|
+
fromEventTypes: ["ProductSynced"]
|
|
762
|
+
}];
|
|
763
|
+
|
|
615
764
|
let FeedbackExtMapping = {
|
|
616
765
|
ExtensionPoint: undefined,
|
|
617
766
|
Delegate: undefined,
|
|
618
767
|
moduleUrl: moduleUrl$9,
|
|
619
768
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
620
769
|
mapIncomingEvent: mapIncomingEvent$1,
|
|
621
|
-
mapOutgoingEvent: mapOutgoingEvent$2
|
|
770
|
+
mapOutgoingEvent: mapOutgoingEvent$2,
|
|
771
|
+
handledEvents: handledEvents$1,
|
|
772
|
+
issuedCommands: issuedCommands$1
|
|
622
773
|
};
|
|
623
774
|
|
|
624
775
|
let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
@@ -636,12 +787,16 @@ let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
636
787
|
errorSchema: errorSchema$4,
|
|
637
788
|
commandSchema: commandSchema$8,
|
|
638
789
|
moduleUrl: moduleUrl$8,
|
|
639
|
-
commandAuthorization: commandAuthorization$8
|
|
790
|
+
commandAuthorization: commandAuthorization$8,
|
|
791
|
+
commandTransition: commandTransition$8,
|
|
792
|
+
traits: traits$8
|
|
640
793
|
},
|
|
641
794
|
moduleUrl: moduleUrl$9,
|
|
642
795
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
643
796
|
mapIncomingEvent: mapIncomingEvent$1,
|
|
644
|
-
mapOutgoingEvent: mapOutgoingEvent$2
|
|
797
|
+
mapOutgoingEvent: mapOutgoingEvent$2,
|
|
798
|
+
handledEvents: handledEvents$1,
|
|
799
|
+
issuedCommands: issuedCommands$1
|
|
645
800
|
});
|
|
646
801
|
|
|
647
802
|
FeedbackExtGwt.describe("Feedback Extension delegate — outgoing command", () => FeedbackExtGwt.test("ProductSynced publishes the AckProduct protocol command", undefined, () => FeedbackExtGwt.thenPublishesExtensionPointCommand(FeedbackExtGwt.whenDelegateEvent({
|
|
@@ -671,13 +826,21 @@ function commandAuthorization$9(param) {
|
|
|
671
826
|
return "AllowAuthenticated";
|
|
672
827
|
}
|
|
673
828
|
|
|
829
|
+
function commandTransition$9(param) {
|
|
830
|
+
return "Unrestricted";
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
let traits$9 = [];
|
|
834
|
+
|
|
674
835
|
let NotifyEpSpec = {
|
|
675
836
|
name: "Catalog.Notify",
|
|
676
837
|
moduleUrl: "",
|
|
677
838
|
commandSchema: commandSchema$9,
|
|
678
839
|
eventSchema: eventSchema$9,
|
|
679
840
|
directiveSchema: directiveSchema$4,
|
|
680
|
-
commandAuthorization: commandAuthorization$9
|
|
841
|
+
commandAuthorization: commandAuthorization$9,
|
|
842
|
+
commandTransition: commandTransition$9,
|
|
843
|
+
traits: traits$9
|
|
681
844
|
};
|
|
682
845
|
|
|
683
846
|
let moduleUrl$10 = "test:DelegateGwtTest:NotifyEpMapping";
|
|
@@ -723,13 +886,25 @@ let mapOutgoingEvent$3 = (_id, event, _meta, _queryEngine) => {
|
|
|
723
886
|
}];
|
|
724
887
|
};
|
|
725
888
|
|
|
889
|
+
let publishedEvents$3 = [{
|
|
890
|
+
name: "Pinged",
|
|
891
|
+
fromEventTypes: [
|
|
892
|
+
"ProductAdded",
|
|
893
|
+
"ProductPriceChanged"
|
|
894
|
+
]
|
|
895
|
+
}];
|
|
896
|
+
|
|
897
|
+
let acceptedCommands$3 = [];
|
|
898
|
+
|
|
726
899
|
let NotifyEpMapping = {
|
|
727
900
|
ExtensionPoint: undefined,
|
|
728
901
|
Delegate: undefined,
|
|
729
902
|
moduleUrl: moduleUrl$10,
|
|
730
903
|
handleDirective: handleDirective,
|
|
731
904
|
mapIncomingCommand: mapIncomingCommand$3,
|
|
732
|
-
mapOutgoingEvent: mapOutgoingEvent$3
|
|
905
|
+
mapOutgoingEvent: mapOutgoingEvent$3,
|
|
906
|
+
publishedEvents: publishedEvents$3,
|
|
907
|
+
acceptedCommands: acceptedCommands$3
|
|
733
908
|
};
|
|
734
909
|
|
|
735
910
|
let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
@@ -747,11 +922,15 @@ let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
|
|
|
747
922
|
errorSchema: errorSchema,
|
|
748
923
|
commandSchema: commandSchema$1,
|
|
749
924
|
moduleUrl: moduleUrl,
|
|
750
|
-
commandAuthorization: commandAuthorization$1
|
|
925
|
+
commandAuthorization: commandAuthorization$1,
|
|
926
|
+
commandTransition: commandTransition$1,
|
|
927
|
+
traits: traits$1
|
|
751
928
|
},
|
|
752
929
|
moduleUrl: moduleUrl$10,
|
|
753
930
|
mapIncomingCommand: mapIncomingCommand$3,
|
|
754
|
-
mapOutgoingEvent: mapOutgoingEvent$3
|
|
931
|
+
mapOutgoingEvent: mapOutgoingEvent$3,
|
|
932
|
+
publishedEvents: publishedEvents$3,
|
|
933
|
+
acceptedCommands: acceptedCommands$3
|
|
755
934
|
});
|
|
756
935
|
|
|
757
936
|
NotifyEpGwt.describe("Notify ExtensionPoint mapping — directives", () => {
|
|
@@ -806,6 +985,13 @@ function mapIncomingEvent$2(_id, event, _meta, _pluginDef, _queryEngine) {
|
|
|
806
985
|
];
|
|
807
986
|
}
|
|
808
987
|
|
|
988
|
+
let handledEvents$2 = [{
|
|
989
|
+
name: "Pinged",
|
|
990
|
+
toCommandTypes: ["ChangeSyncedPrice"]
|
|
991
|
+
}];
|
|
992
|
+
|
|
993
|
+
let issuedCommands$2 = [];
|
|
994
|
+
|
|
809
995
|
let NotifyExtMapping = {
|
|
810
996
|
ExtensionPoint: undefined,
|
|
811
997
|
Delegate: undefined,
|
|
@@ -813,7 +999,9 @@ let NotifyExtMapping = {
|
|
|
813
999
|
delegateModuleUrl: delegateModuleUrl$2,
|
|
814
1000
|
handleDirective: handleDirective$1,
|
|
815
1001
|
mapIncomingEvent: mapIncomingEvent$2,
|
|
816
|
-
mapOutgoingEvent: undefined
|
|
1002
|
+
mapOutgoingEvent: undefined,
|
|
1003
|
+
handledEvents: handledEvents$2,
|
|
1004
|
+
issuedCommands: issuedCommands$2
|
|
817
1005
|
};
|
|
818
1006
|
|
|
819
1007
|
let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
@@ -831,12 +1019,16 @@ let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
|
|
|
831
1019
|
errorSchema: errorSchema$2,
|
|
832
1020
|
commandSchema: commandSchema$4,
|
|
833
1021
|
moduleUrl: moduleUrl$4,
|
|
834
|
-
commandAuthorization: commandAuthorization$4
|
|
1022
|
+
commandAuthorization: commandAuthorization$4,
|
|
1023
|
+
commandTransition: commandTransition$4,
|
|
1024
|
+
traits: traits$4
|
|
835
1025
|
},
|
|
836
1026
|
moduleUrl: moduleUrl$11,
|
|
837
1027
|
delegateModuleUrl: delegateModuleUrl$2,
|
|
838
1028
|
mapIncomingEvent: mapIncomingEvent$2,
|
|
839
|
-
mapOutgoingEvent: undefined
|
|
1029
|
+
mapOutgoingEvent: undefined,
|
|
1030
|
+
handledEvents: handledEvents$2,
|
|
1031
|
+
issuedCommands: issuedCommands$2
|
|
840
1032
|
});
|
|
841
1033
|
|
|
842
1034
|
NotifyExtGwt.describe("Notify Extension delegate — directives", () => {
|
|
@@ -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";
|
|
@@ -149,12 +173,21 @@ let mapOutgoingEvent = (_id, event, _meta, _q) => {
|
|
|
149
173
|
}];
|
|
150
174
|
};
|
|
151
175
|
|
|
176
|
+
let publishedEvents = [{
|
|
177
|
+
name: "ProductBecameAvailable",
|
|
178
|
+
fromEventTypes: ["ProductAdded"]
|
|
179
|
+
}];
|
|
180
|
+
|
|
181
|
+
let acceptedCommands = [];
|
|
182
|
+
|
|
152
183
|
let ProductsEpMapping = {
|
|
153
184
|
ExtensionPoint: undefined,
|
|
154
185
|
Delegate: undefined,
|
|
155
186
|
moduleUrl: moduleUrl$1,
|
|
156
187
|
mapIncomingCommand: mapIncomingCommand,
|
|
157
|
-
mapOutgoingEvent: mapOutgoingEvent
|
|
188
|
+
mapOutgoingEvent: mapOutgoingEvent,
|
|
189
|
+
publishedEvents: publishedEvents,
|
|
190
|
+
acceptedCommands: acceptedCommands
|
|
158
191
|
};
|
|
159
192
|
|
|
160
193
|
let commandSchema$3 = Sury.literal("NoCommand");
|
|
@@ -171,13 +204,21 @@ function commandAuthorization$3(param) {
|
|
|
171
204
|
return "AllowAuthenticated";
|
|
172
205
|
}
|
|
173
206
|
|
|
207
|
+
function commandTransition$3(param) {
|
|
208
|
+
return "Unrestricted";
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
let traits$3 = [];
|
|
212
|
+
|
|
174
213
|
let OrdersEpSpec = {
|
|
175
214
|
name: "Ordering.Orders",
|
|
176
215
|
moduleUrl: "",
|
|
177
216
|
commandSchema: commandSchema$3,
|
|
178
217
|
eventSchema: eventSchema$3,
|
|
179
218
|
directiveSchema: directiveSchema$1,
|
|
180
|
-
commandAuthorization: commandAuthorization$3
|
|
219
|
+
commandAuthorization: commandAuthorization$3,
|
|
220
|
+
commandTransition: commandTransition$3,
|
|
221
|
+
traits: traits$3
|
|
181
222
|
};
|
|
182
223
|
|
|
183
224
|
let name$1 = "Order";
|
|
@@ -198,6 +239,12 @@ function commandAuthorization$4(param) {
|
|
|
198
239
|
return "AllowAuthenticated";
|
|
199
240
|
}
|
|
200
241
|
|
|
242
|
+
function commandTransition$4(param) {
|
|
243
|
+
return "Unrestricted";
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
let traits$4 = [];
|
|
247
|
+
|
|
201
248
|
let OrderDelegate = {
|
|
202
249
|
Id: undefined,
|
|
203
250
|
name: name$1,
|
|
@@ -205,7 +252,9 @@ let OrderDelegate = {
|
|
|
205
252
|
eventSchema: eventSchema$4,
|
|
206
253
|
errorSchema: errorSchema$2,
|
|
207
254
|
moduleUrl: moduleUrl$2,
|
|
208
|
-
commandAuthorization: commandAuthorization$4
|
|
255
|
+
commandAuthorization: commandAuthorization$4,
|
|
256
|
+
commandTransition: commandTransition$4,
|
|
257
|
+
traits: traits$4
|
|
209
258
|
};
|
|
210
259
|
|
|
211
260
|
let moduleUrl$3 = "test:FlowCrossPluginGwtTest:OrdersEpMapping";
|
|
@@ -227,12 +276,21 @@ let mapOutgoingEvent$1 = (_id, event, _meta, _q) => {
|
|
|
227
276
|
}));
|
|
228
277
|
};
|
|
229
278
|
|
|
279
|
+
let publishedEvents$1 = [{
|
|
280
|
+
name: "ItemOrdered",
|
|
281
|
+
fromEventTypes: ["OrderPlaced"]
|
|
282
|
+
}];
|
|
283
|
+
|
|
284
|
+
let acceptedCommands$1 = [];
|
|
285
|
+
|
|
230
286
|
let OrdersEpMapping = {
|
|
231
287
|
ExtensionPoint: undefined,
|
|
232
288
|
Delegate: undefined,
|
|
233
289
|
moduleUrl: moduleUrl$3,
|
|
234
290
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
235
|
-
mapOutgoingEvent: mapOutgoingEvent$1
|
|
291
|
+
mapOutgoingEvent: mapOutgoingEvent$1,
|
|
292
|
+
publishedEvents: publishedEvents$1,
|
|
293
|
+
acceptedCommands: acceptedCommands$1
|
|
236
294
|
};
|
|
237
295
|
|
|
238
296
|
let name$2 = "RecordDemand";
|
|
@@ -263,6 +321,12 @@ function commandAuthorization$5(param) {
|
|
|
263
321
|
return "AllowAuthenticated";
|
|
264
322
|
}
|
|
265
323
|
|
|
324
|
+
function commandTransition$5(param) {
|
|
325
|
+
return "Unrestricted";
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
let traits$5 = [];
|
|
329
|
+
|
|
266
330
|
let RecordDemandSlice = {
|
|
267
331
|
Id: undefined,
|
|
268
332
|
name: name$2,
|
|
@@ -272,6 +336,8 @@ let RecordDemandSlice = {
|
|
|
272
336
|
eventSchema: eventSchema$5,
|
|
273
337
|
moduleUrl: moduleUrl$4,
|
|
274
338
|
commandAuthorization: commandAuthorization$5,
|
|
339
|
+
commandTransition: commandTransition$5,
|
|
340
|
+
traits: traits$5,
|
|
275
341
|
readConsistency: "EscalateOnRetry"
|
|
276
342
|
};
|
|
277
343
|
|
|
@@ -318,13 +384,22 @@ function mapIncomingEvent(_id, event, _meta, _pd, _q) {
|
|
|
318
384
|
}];
|
|
319
385
|
}
|
|
320
386
|
|
|
387
|
+
let handledEvents = [{
|
|
388
|
+
name: "ItemOrdered",
|
|
389
|
+
toCommandTypes: ["RecordDemand"]
|
|
390
|
+
}];
|
|
391
|
+
|
|
392
|
+
let issuedCommands = [];
|
|
393
|
+
|
|
321
394
|
let OrdersExtMapping = {
|
|
322
395
|
ExtensionPoint: undefined,
|
|
323
396
|
Delegate: undefined,
|
|
324
397
|
moduleUrl: moduleUrl$5,
|
|
325
398
|
delegateModuleUrl: delegateModuleUrl,
|
|
326
399
|
mapIncomingEvent: mapIncomingEvent,
|
|
327
|
-
mapOutgoingEvent: undefined
|
|
400
|
+
mapOutgoingEvent: undefined,
|
|
401
|
+
handledEvents: handledEvents,
|
|
402
|
+
issuedCommands: issuedCommands
|
|
328
403
|
};
|
|
329
404
|
|
|
330
405
|
let name$3 = "SyncProduct";
|
|
@@ -356,6 +431,12 @@ function commandAuthorization$6(param) {
|
|
|
356
431
|
return "AllowAuthenticated";
|
|
357
432
|
}
|
|
358
433
|
|
|
434
|
+
function commandTransition$6(param) {
|
|
435
|
+
return "Unrestricted";
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
let traits$6 = [];
|
|
439
|
+
|
|
359
440
|
let SyncProductSlice = {
|
|
360
441
|
Id: undefined,
|
|
361
442
|
name: name$3,
|
|
@@ -365,6 +446,8 @@ let SyncProductSlice = {
|
|
|
365
446
|
eventSchema: eventSchema$6,
|
|
366
447
|
moduleUrl: moduleUrl$6,
|
|
367
448
|
commandAuthorization: commandAuthorization$6,
|
|
449
|
+
commandTransition: commandTransition$6,
|
|
450
|
+
traits: traits$6,
|
|
368
451
|
readConsistency: "EscalateOnRetry"
|
|
369
452
|
};
|
|
370
453
|
|
|
@@ -413,13 +496,22 @@ function mapIncomingEvent$1(_id, event, _meta, _pd, _q) {
|
|
|
413
496
|
}];
|
|
414
497
|
}
|
|
415
498
|
|
|
499
|
+
let handledEvents$1 = [{
|
|
500
|
+
name: "ProductBecameAvailable",
|
|
501
|
+
toCommandTypes: ["SyncProduct"]
|
|
502
|
+
}];
|
|
503
|
+
|
|
504
|
+
let issuedCommands$1 = [];
|
|
505
|
+
|
|
416
506
|
let ProductsExtMapping = {
|
|
417
507
|
ExtensionPoint: undefined,
|
|
418
508
|
Delegate: undefined,
|
|
419
509
|
moduleUrl: moduleUrl$7,
|
|
420
510
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
421
511
|
mapIncomingEvent: mapIncomingEvent$1,
|
|
422
|
-
mapOutgoingEvent: undefined
|
|
512
|
+
mapOutgoingEvent: undefined,
|
|
513
|
+
handledEvents: handledEvents$1,
|
|
514
|
+
issuedCommands: issuedCommands$1
|
|
423
515
|
};
|
|
424
516
|
|
|
425
517
|
let consumedEventSchema$3 = Sury.union([
|
|
@@ -457,6 +549,12 @@ function commandAuthorization$7(param) {
|
|
|
457
549
|
return "AllowAuthenticated";
|
|
458
550
|
}
|
|
459
551
|
|
|
552
|
+
function commandTransition$7(param) {
|
|
553
|
+
return "Unrestricted";
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
let traits$7 = [];
|
|
557
|
+
|
|
460
558
|
let PlaceOrderSlice = {
|
|
461
559
|
name: "PlaceOrder",
|
|
462
560
|
consumedEventSchema: consumedEventSchema$3,
|
|
@@ -464,6 +562,8 @@ let PlaceOrderSlice = {
|
|
|
464
562
|
errorSchema: errorSchema$5,
|
|
465
563
|
eventSchema: eventSchema$7,
|
|
466
564
|
commandAuthorization: commandAuthorization$7,
|
|
565
|
+
commandTransition: commandTransition$7,
|
|
566
|
+
traits: traits$7,
|
|
467
567
|
readConsistency: "EscalateOnRetry"
|
|
468
568
|
};
|
|
469
569
|
|
|
@@ -548,11 +648,15 @@ let ProductsEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
|
|
|
548
648
|
errorSchema: errorSchema$1,
|
|
549
649
|
commandSchema: commandSchema$2,
|
|
550
650
|
moduleUrl: moduleUrl,
|
|
551
|
-
commandAuthorization: commandAuthorization$2
|
|
651
|
+
commandAuthorization: commandAuthorization$2,
|
|
652
|
+
commandTransition: commandTransition$2,
|
|
653
|
+
traits: traits$2
|
|
552
654
|
},
|
|
553
655
|
moduleUrl: moduleUrl$1,
|
|
554
656
|
mapIncomingCommand: mapIncomingCommand,
|
|
555
|
-
mapOutgoingEvent: mapOutgoingEvent
|
|
657
|
+
mapOutgoingEvent: mapOutgoingEvent,
|
|
658
|
+
publishedEvents: publishedEvents,
|
|
659
|
+
acceptedCommands: acceptedCommands
|
|
556
660
|
});
|
|
557
661
|
|
|
558
662
|
let ProductsExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
@@ -570,12 +674,16 @@ let ProductsExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
|
570
674
|
errorSchema: errorSchema$4,
|
|
571
675
|
commandSchema: commandSchema$6,
|
|
572
676
|
moduleUrl: moduleUrl$6,
|
|
573
|
-
commandAuthorization: commandAuthorization$6
|
|
677
|
+
commandAuthorization: commandAuthorization$6,
|
|
678
|
+
commandTransition: commandTransition$6,
|
|
679
|
+
traits: traits$6
|
|
574
680
|
},
|
|
575
681
|
moduleUrl: moduleUrl$7,
|
|
576
682
|
delegateModuleUrl: delegateModuleUrl$1,
|
|
577
683
|
mapIncomingEvent: mapIncomingEvent$1,
|
|
578
|
-
mapOutgoingEvent: undefined
|
|
684
|
+
mapOutgoingEvent: undefined,
|
|
685
|
+
handledEvents: handledEvents$1,
|
|
686
|
+
issuedCommands: issuedCommands$1
|
|
579
687
|
});
|
|
580
688
|
|
|
581
689
|
let Sync = Flow_GWT$ReventlessGwt.CommandStep({
|
|
@@ -611,11 +719,15 @@ let OrdersEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
|
|
|
611
719
|
errorSchema: errorSchema$2,
|
|
612
720
|
commandSchema: commandSchema$4,
|
|
613
721
|
moduleUrl: moduleUrl$2,
|
|
614
|
-
commandAuthorization: commandAuthorization$4
|
|
722
|
+
commandAuthorization: commandAuthorization$4,
|
|
723
|
+
commandTransition: commandTransition$4,
|
|
724
|
+
traits: traits$4
|
|
615
725
|
},
|
|
616
726
|
moduleUrl: moduleUrl$3,
|
|
617
727
|
mapIncomingCommand: mapIncomingCommand$1,
|
|
618
|
-
mapOutgoingEvent: mapOutgoingEvent$1
|
|
728
|
+
mapOutgoingEvent: mapOutgoingEvent$1,
|
|
729
|
+
publishedEvents: publishedEvents$1,
|
|
730
|
+
acceptedCommands: acceptedCommands$1
|
|
619
731
|
});
|
|
620
732
|
|
|
621
733
|
let OrdersExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
@@ -633,12 +745,16 @@ let OrdersExt = Flow_GWT$ReventlessGwt.ExtensionStep({
|
|
|
633
745
|
errorSchema: errorSchema$3,
|
|
634
746
|
commandSchema: commandSchema$5,
|
|
635
747
|
moduleUrl: moduleUrl$4,
|
|
636
|
-
commandAuthorization: commandAuthorization$5
|
|
748
|
+
commandAuthorization: commandAuthorization$5,
|
|
749
|
+
commandTransition: commandTransition$5,
|
|
750
|
+
traits: traits$5
|
|
637
751
|
},
|
|
638
752
|
moduleUrl: moduleUrl$5,
|
|
639
753
|
delegateModuleUrl: delegateModuleUrl,
|
|
640
754
|
mapIncomingEvent: mapIncomingEvent,
|
|
641
|
-
mapOutgoingEvent: undefined
|
|
755
|
+
mapOutgoingEvent: undefined,
|
|
756
|
+
handledEvents: handledEvents,
|
|
757
|
+
issuedCommands: issuedCommands
|
|
642
758
|
});
|
|
643
759
|
|
|
644
760
|
let Demand = Flow_GWT$ReventlessGwt.CommandStep({
|
|
@@ -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
|
|