@reventlessdev/reventless-gwt 1.0.0-alpha.197 → 1.0.0-alpha.198

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 CHANGED
@@ -3,6 +3,14 @@
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.198 (2026-08-27)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/reventless-gwt
9
+
10
+
11
+
12
+
13
+
6
14
  # 1.0.0-alpha.197 (2026-08-23)
7
15
 
8
16
  **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.197",
3
+ "version": "1.0.0-alpha.198",
4
4
  "description": "Given-When-Then DSLs and test harness for Reventless slice testing",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -16,15 +16,15 @@
16
16
  "sury": "11.0.0-rc.2",
17
17
  "@reventlessdev/rescript-effect": "0.1.0-alpha.32",
18
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
19
  "@reventlessdev/rescript-node": "2.0.0-alpha.8",
22
- "@reventlessdev/reventless-spec": "3.0.0-alpha.123"
20
+ "@reventlessdev/reventless-core": "3.0.0-alpha.251",
21
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.152",
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.124"
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.73"
27
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.74"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "rescript": "12.3.0"
@@ -103,12 +103,27 @@ let mapOutgoingEvent = (_id, event, _meta, _queryEngine) => {
103
103
  }];
104
104
  };
105
105
 
106
+ let publishedEvents = [
107
+ {
108
+ name: "ProductBecameAvailable",
109
+ fromEventTypes: ["ProductAdded"]
110
+ },
111
+ {
112
+ name: "ProductPriceChanged",
113
+ fromEventTypes: ["ProductPriceChanged"]
114
+ }
115
+ ];
116
+
117
+ let acceptedCommands = [];
118
+
106
119
  let ProductsEpMapping = {
107
120
  ExtensionPoint: undefined,
108
121
  Delegate: undefined,
109
122
  moduleUrl: moduleUrl$1,
110
123
  mapIncomingCommand: mapIncomingCommand,
111
- mapOutgoingEvent: mapOutgoingEvent
124
+ mapOutgoingEvent: mapOutgoingEvent,
125
+ publishedEvents: publishedEvents,
126
+ acceptedCommands: acceptedCommands
112
127
  };
113
128
 
114
129
  let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
@@ -130,7 +145,9 @@ let ProductsEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
130
145
  },
131
146
  moduleUrl: moduleUrl$1,
132
147
  mapIncomingCommand: mapIncomingCommand,
133
- mapOutgoingEvent: mapOutgoingEvent
148
+ mapOutgoingEvent: mapOutgoingEvent,
149
+ publishedEvents: publishedEvents,
150
+ acceptedCommands: acceptedCommands
134
151
  });
135
152
 
136
153
  ProductsEpGwt.describe("Products ExtensionPoint mapping (FromExtensionPoint)", () => {
@@ -256,12 +273,27 @@ let mapOutgoingEvent$1 = (_id, event, _meta, _queryEngine) => {
256
273
  }));
257
274
  };
258
275
 
276
+ let publishedEvents$1 = [
277
+ {
278
+ name: "ItemOrdered",
279
+ fromEventTypes: ["OrderPlaced"]
280
+ },
281
+ {
282
+ name: "ItemOrderCancelled",
283
+ fromEventTypes: ["OrderCancelled"]
284
+ }
285
+ ];
286
+
287
+ let acceptedCommands$1 = [];
288
+
259
289
  let OrdersEpMapping = {
260
290
  ExtensionPoint: undefined,
261
291
  Delegate: undefined,
262
292
  moduleUrl: moduleUrl$3,
263
293
  mapIncomingCommand: mapIncomingCommand$1,
264
- mapOutgoingEvent: mapOutgoingEvent$1
294
+ mapOutgoingEvent: mapOutgoingEvent$1,
295
+ publishedEvents: publishedEvents$1,
296
+ acceptedCommands: acceptedCommands$1
265
297
  };
266
298
 
267
299
  let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
@@ -283,7 +315,9 @@ let OrdersEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
283
315
  },
284
316
  moduleUrl: moduleUrl$3,
285
317
  mapIncomingCommand: mapIncomingCommand$1,
286
- mapOutgoingEvent: mapOutgoingEvent$1
318
+ mapOutgoingEvent: mapOutgoingEvent$1,
319
+ publishedEvents: publishedEvents$1,
320
+ acceptedCommands: acceptedCommands$1
287
321
  });
288
322
 
289
323
  OrdersEpGwt.describe("Orders ExtensionPoint mapping — fan-out", () => {
@@ -386,13 +420,28 @@ function mapIncomingEvent(_id, event, _meta, _pluginDef, _queryEngine) {
386
420
  }
387
421
  }
388
422
 
423
+ let handledEvents = [
424
+ {
425
+ name: "ProductBecameAvailable",
426
+ toCommandTypes: ["SyncNewProduct"]
427
+ },
428
+ {
429
+ name: "ProductPriceChanged",
430
+ toCommandTypes: ["ChangeSyncedPrice"]
431
+ }
432
+ ];
433
+
434
+ let issuedCommands = [];
435
+
389
436
  let ProductsExtMapping = {
390
437
  ExtensionPoint: undefined,
391
438
  Delegate: undefined,
392
439
  moduleUrl: moduleUrl$5,
393
440
  delegateModuleUrl: delegateModuleUrl,
394
441
  mapIncomingEvent: mapIncomingEvent,
395
- mapOutgoingEvent: undefined
442
+ mapOutgoingEvent: undefined,
443
+ handledEvents: handledEvents,
444
+ issuedCommands: issuedCommands
396
445
  };
397
446
 
398
447
  let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
@@ -415,7 +464,9 @@ let ProductsExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
415
464
  moduleUrl: moduleUrl$5,
416
465
  delegateModuleUrl: delegateModuleUrl,
417
466
  mapIncomingEvent: mapIncomingEvent,
418
- mapOutgoingEvent: undefined
467
+ mapOutgoingEvent: undefined,
468
+ handledEvents: handledEvents,
469
+ issuedCommands: issuedCommands
419
470
  });
420
471
 
421
472
  ProductsExtGwt.describe("Products Extension delegate (FromExtension)", () => {
@@ -506,12 +557,21 @@ function mapIncomingCommand$2(id, command, _meta) {
506
557
  }];
507
558
  }
508
559
 
560
+ let publishedEvents$2 = [];
561
+
562
+ let acceptedCommands$2 = [{
563
+ name: "Restock",
564
+ toCommandTypes: ["Restock"]
565
+ }];
566
+
509
567
  let InventoryEpMapping = {
510
568
  ExtensionPoint: undefined,
511
569
  Delegate: undefined,
512
570
  moduleUrl: moduleUrl$7,
513
571
  mapIncomingCommand: mapIncomingCommand$2,
514
- mapOutgoingEvent: undefined
572
+ mapOutgoingEvent: undefined,
573
+ publishedEvents: publishedEvents$2,
574
+ acceptedCommands: acceptedCommands$2
515
575
  };
516
576
 
517
577
  let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
@@ -533,7 +593,9 @@ let InventoryEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
533
593
  },
534
594
  moduleUrl: moduleUrl$7,
535
595
  mapIncomingCommand: mapIncomingCommand$2,
536
- mapOutgoingEvent: undefined
596
+ mapOutgoingEvent: undefined,
597
+ publishedEvents: publishedEvents$2,
598
+ acceptedCommands: acceptedCommands$2
537
599
  });
538
600
 
539
601
  InventoryEpGwt.describe("Inventory ExtensionPoint mapping — incoming command", () => InventoryEpGwt.test("Restock protocol command routes to the Stock delegate", undefined, () => InventoryEpGwt.thenPublishesCommand(InventoryEpGwt.whenIncomingCommand({
@@ -612,13 +674,22 @@ let mapOutgoingEvent$2 = (id, event, _meta, _pluginDef) => [{
612
674
  }
613
675
  }];
614
676
 
677
+ let handledEvents$1 = [];
678
+
679
+ let issuedCommands$1 = [{
680
+ name: "AckProduct",
681
+ fromEventTypes: ["ProductSynced"]
682
+ }];
683
+
615
684
  let FeedbackExtMapping = {
616
685
  ExtensionPoint: undefined,
617
686
  Delegate: undefined,
618
687
  moduleUrl: moduleUrl$9,
619
688
  delegateModuleUrl: delegateModuleUrl$1,
620
689
  mapIncomingEvent: mapIncomingEvent$1,
621
- mapOutgoingEvent: mapOutgoingEvent$2
690
+ mapOutgoingEvent: mapOutgoingEvent$2,
691
+ handledEvents: handledEvents$1,
692
+ issuedCommands: issuedCommands$1
622
693
  };
623
694
 
624
695
  let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
@@ -641,7 +712,9 @@ let FeedbackExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
641
712
  moduleUrl: moduleUrl$9,
642
713
  delegateModuleUrl: delegateModuleUrl$1,
643
714
  mapIncomingEvent: mapIncomingEvent$1,
644
- mapOutgoingEvent: mapOutgoingEvent$2
715
+ mapOutgoingEvent: mapOutgoingEvent$2,
716
+ handledEvents: handledEvents$1,
717
+ issuedCommands: issuedCommands$1
645
718
  });
646
719
 
647
720
  FeedbackExtGwt.describe("Feedback Extension delegate — outgoing command", () => FeedbackExtGwt.test("ProductSynced publishes the AckProduct protocol command", undefined, () => FeedbackExtGwt.thenPublishesExtensionPointCommand(FeedbackExtGwt.whenDelegateEvent({
@@ -723,13 +796,25 @@ let mapOutgoingEvent$3 = (_id, event, _meta, _queryEngine) => {
723
796
  }];
724
797
  };
725
798
 
799
+ let publishedEvents$3 = [{
800
+ name: "Pinged",
801
+ fromEventTypes: [
802
+ "ProductAdded",
803
+ "ProductPriceChanged"
804
+ ]
805
+ }];
806
+
807
+ let acceptedCommands$3 = [];
808
+
726
809
  let NotifyEpMapping = {
727
810
  ExtensionPoint: undefined,
728
811
  Delegate: undefined,
729
812
  moduleUrl: moduleUrl$10,
730
813
  handleDirective: handleDirective,
731
814
  mapIncomingCommand: mapIncomingCommand$3,
732
- mapOutgoingEvent: mapOutgoingEvent$3
815
+ mapOutgoingEvent: mapOutgoingEvent$3,
816
+ publishedEvents: publishedEvents$3,
817
+ acceptedCommands: acceptedCommands$3
733
818
  };
734
819
 
735
820
  let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
@@ -751,7 +836,9 @@ let NotifyEpGwt = Delegate_GWT$ReventlessGwt.FromExtensionPoint({
751
836
  },
752
837
  moduleUrl: moduleUrl$10,
753
838
  mapIncomingCommand: mapIncomingCommand$3,
754
- mapOutgoingEvent: mapOutgoingEvent$3
839
+ mapOutgoingEvent: mapOutgoingEvent$3,
840
+ publishedEvents: publishedEvents$3,
841
+ acceptedCommands: acceptedCommands$3
755
842
  });
756
843
 
757
844
  NotifyEpGwt.describe("Notify ExtensionPoint mapping — directives", () => {
@@ -806,6 +893,13 @@ function mapIncomingEvent$2(_id, event, _meta, _pluginDef, _queryEngine) {
806
893
  ];
807
894
  }
808
895
 
896
+ let handledEvents$2 = [{
897
+ name: "Pinged",
898
+ toCommandTypes: ["ChangeSyncedPrice"]
899
+ }];
900
+
901
+ let issuedCommands$2 = [];
902
+
809
903
  let NotifyExtMapping = {
810
904
  ExtensionPoint: undefined,
811
905
  Delegate: undefined,
@@ -813,7 +907,9 @@ let NotifyExtMapping = {
813
907
  delegateModuleUrl: delegateModuleUrl$2,
814
908
  handleDirective: handleDirective$1,
815
909
  mapIncomingEvent: mapIncomingEvent$2,
816
- mapOutgoingEvent: undefined
910
+ mapOutgoingEvent: undefined,
911
+ handledEvents: handledEvents$2,
912
+ issuedCommands: issuedCommands$2
817
913
  };
818
914
 
819
915
  let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
@@ -836,7 +932,9 @@ let NotifyExtGwt = Delegate_GWT$ReventlessGwt.FromExtension({
836
932
  moduleUrl: moduleUrl$11,
837
933
  delegateModuleUrl: delegateModuleUrl$2,
838
934
  mapIncomingEvent: mapIncomingEvent$2,
839
- mapOutgoingEvent: undefined
935
+ mapOutgoingEvent: undefined,
936
+ handledEvents: handledEvents$2,
937
+ issuedCommands: issuedCommands$2
840
938
  });
841
939
 
842
940
  NotifyExtGwt.describe("Notify Extension delegate — directives", () => {
@@ -149,12 +149,21 @@ let mapOutgoingEvent = (_id, event, _meta, _q) => {
149
149
  }];
150
150
  };
151
151
 
152
+ let publishedEvents = [{
153
+ name: "ProductBecameAvailable",
154
+ fromEventTypes: ["ProductAdded"]
155
+ }];
156
+
157
+ let acceptedCommands = [];
158
+
152
159
  let ProductsEpMapping = {
153
160
  ExtensionPoint: undefined,
154
161
  Delegate: undefined,
155
162
  moduleUrl: moduleUrl$1,
156
163
  mapIncomingCommand: mapIncomingCommand,
157
- mapOutgoingEvent: mapOutgoingEvent
164
+ mapOutgoingEvent: mapOutgoingEvent,
165
+ publishedEvents: publishedEvents,
166
+ acceptedCommands: acceptedCommands
158
167
  };
159
168
 
160
169
  let commandSchema$3 = Sury.literal("NoCommand");
@@ -227,12 +236,21 @@ let mapOutgoingEvent$1 = (_id, event, _meta, _q) => {
227
236
  }));
228
237
  };
229
238
 
239
+ let publishedEvents$1 = [{
240
+ name: "ItemOrdered",
241
+ fromEventTypes: ["OrderPlaced"]
242
+ }];
243
+
244
+ let acceptedCommands$1 = [];
245
+
230
246
  let OrdersEpMapping = {
231
247
  ExtensionPoint: undefined,
232
248
  Delegate: undefined,
233
249
  moduleUrl: moduleUrl$3,
234
250
  mapIncomingCommand: mapIncomingCommand$1,
235
- mapOutgoingEvent: mapOutgoingEvent$1
251
+ mapOutgoingEvent: mapOutgoingEvent$1,
252
+ publishedEvents: publishedEvents$1,
253
+ acceptedCommands: acceptedCommands$1
236
254
  };
237
255
 
238
256
  let name$2 = "RecordDemand";
@@ -318,13 +336,22 @@ function mapIncomingEvent(_id, event, _meta, _pd, _q) {
318
336
  }];
319
337
  }
320
338
 
339
+ let handledEvents = [{
340
+ name: "ItemOrdered",
341
+ toCommandTypes: ["RecordDemand"]
342
+ }];
343
+
344
+ let issuedCommands = [];
345
+
321
346
  let OrdersExtMapping = {
322
347
  ExtensionPoint: undefined,
323
348
  Delegate: undefined,
324
349
  moduleUrl: moduleUrl$5,
325
350
  delegateModuleUrl: delegateModuleUrl,
326
351
  mapIncomingEvent: mapIncomingEvent,
327
- mapOutgoingEvent: undefined
352
+ mapOutgoingEvent: undefined,
353
+ handledEvents: handledEvents,
354
+ issuedCommands: issuedCommands
328
355
  };
329
356
 
330
357
  let name$3 = "SyncProduct";
@@ -413,13 +440,22 @@ function mapIncomingEvent$1(_id, event, _meta, _pd, _q) {
413
440
  }];
414
441
  }
415
442
 
443
+ let handledEvents$1 = [{
444
+ name: "ProductBecameAvailable",
445
+ toCommandTypes: ["SyncProduct"]
446
+ }];
447
+
448
+ let issuedCommands$1 = [];
449
+
416
450
  let ProductsExtMapping = {
417
451
  ExtensionPoint: undefined,
418
452
  Delegate: undefined,
419
453
  moduleUrl: moduleUrl$7,
420
454
  delegateModuleUrl: delegateModuleUrl$1,
421
455
  mapIncomingEvent: mapIncomingEvent$1,
422
- mapOutgoingEvent: undefined
456
+ mapOutgoingEvent: undefined,
457
+ handledEvents: handledEvents$1,
458
+ issuedCommands: issuedCommands$1
423
459
  };
424
460
 
425
461
  let consumedEventSchema$3 = Sury.union([
@@ -552,7 +588,9 @@ let ProductsEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
552
588
  },
553
589
  moduleUrl: moduleUrl$1,
554
590
  mapIncomingCommand: mapIncomingCommand,
555
- mapOutgoingEvent: mapOutgoingEvent
591
+ mapOutgoingEvent: mapOutgoingEvent,
592
+ publishedEvents: publishedEvents,
593
+ acceptedCommands: acceptedCommands
556
594
  });
557
595
 
558
596
  let ProductsExt = Flow_GWT$ReventlessGwt.ExtensionStep({
@@ -575,7 +613,9 @@ let ProductsExt = Flow_GWT$ReventlessGwt.ExtensionStep({
575
613
  moduleUrl: moduleUrl$7,
576
614
  delegateModuleUrl: delegateModuleUrl$1,
577
615
  mapIncomingEvent: mapIncomingEvent$1,
578
- mapOutgoingEvent: undefined
616
+ mapOutgoingEvent: undefined,
617
+ handledEvents: handledEvents$1,
618
+ issuedCommands: issuedCommands$1
579
619
  });
580
620
 
581
621
  let Sync = Flow_GWT$ReventlessGwt.CommandStep({
@@ -615,7 +655,9 @@ let OrdersEp = Flow_GWT$ReventlessGwt.ExtensionPointStep({
615
655
  },
616
656
  moduleUrl: moduleUrl$3,
617
657
  mapIncomingCommand: mapIncomingCommand$1,
618
- mapOutgoingEvent: mapOutgoingEvent$1
658
+ mapOutgoingEvent: mapOutgoingEvent$1,
659
+ publishedEvents: publishedEvents$1,
660
+ acceptedCommands: acceptedCommands$1
619
661
  });
620
662
 
621
663
  let OrdersExt = Flow_GWT$ReventlessGwt.ExtensionStep({
@@ -638,7 +680,9 @@ let OrdersExt = Flow_GWT$ReventlessGwt.ExtensionStep({
638
680
  moduleUrl: moduleUrl$5,
639
681
  delegateModuleUrl: delegateModuleUrl,
640
682
  mapIncomingEvent: mapIncomingEvent,
641
- mapOutgoingEvent: undefined
683
+ mapOutgoingEvent: undefined,
684
+ handledEvents: handledEvents,
685
+ issuedCommands: issuedCommands
642
686
  });
643
687
 
644
688
  let Demand = Flow_GWT$ReventlessGwt.CommandStep({