@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.275 → 1.0.0-alpha.277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  5. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  6. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  7. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmj +0 -0
  8. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  9. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation.ast +0 -0
  10. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation.res.mjs +1 -1
  11. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  12. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  13. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  14. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  15. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  16. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  17. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  18. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  19. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  20. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  21. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  22. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  23. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  26. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  27. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  28. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  29. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  30. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  32. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  33. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +12 -3
  34. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  35. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  36. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  37. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  38. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  39. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  40. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  41. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  42. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  43. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  44. package/lib/ocaml/.compiler.log +2 -2
  45. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  46. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmj +0 -0
  47. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  48. package/lib/ocaml/AutoShipOrder_Automation.ast +0 -0
  49. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  50. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  51. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  52. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  53. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  54. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  55. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  56. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  57. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  58. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  59. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  60. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  61. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  62. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  63. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  64. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  65. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  66. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  67. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  68. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  69. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  70. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  71. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  72. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  73. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  74. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  75. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  76. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  77. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  78. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  79. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  80. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  81. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  82. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  83. package/package.json +7 -7
  84. package/src/Order/Automation/AutoShipOrder_Automation.res.mjs +1 -1
  85. package/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +12 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.277 (2026-10-15)
7
+
8
+ * feat!: an automation's process takes ~now, and collect the event's recorded time ([8c8f3f5](https://github.com/ReventlessDev/reventless-core/commit/8c8f3f570474b1658b605b726077debc7d6a1dc7))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ * a process the PPX does not see — in an Automation module
13
+ written by hand, or a SliceSpec given to the deprecated Automation_GWT.Make
14
+ or Flow_GWT.AutomationStep — must take ~now.
15
+
16
+
17
+
18
+ # 1.0.0-alpha.276 (2026-10-14)
19
+
20
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
21
+
22
+
23
+
24
+
25
+
6
26
  # 1.0.0-alpha.275 (2026-10-12)
7
27
 
8
28
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
@@ -1,2 +1,2 @@
1
- #Start(1791811458716)
2
- #Done(1791811461292)
1
+ #Start(1792107705272)
2
+ #Done(1792107707938)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "2b45634c4ef9d26c69e2cd8282eb5d077ce9cf087ded0065001d0f0d889e241c",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1791811461301"
7
+ "generated_at": "1792107707952"
8
8
  }
@@ -76,7 +76,7 @@ let FromOrderingDcb = AutomationSlice$Reventless.Mapping.Make({
76
76
 
77
77
  let mappings = [FromOrderingDcb];
78
78
 
79
- function process(id, item) {
79
+ function process(id, item, param) {
80
80
  return [
81
81
  id,
82
82
  {
@@ -48,7 +48,7 @@ describe("AutoShipOrder AutomationSlice", () => {
48
48
  test("collect: OrderPlaced creates a pending TODO", () => thenTodos(whenCollect(givenEvent({
49
49
  TAG: "OrderPlaced",
50
50
  orderId: Ordering_Examples$OrderingPlugin.o1
51
- }), undefined, undefined), [[
51
+ }), undefined, undefined, undefined), [[
52
52
  "o1",
53
53
  {
54
54
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -57,7 +57,7 @@ describe("AutoShipOrder AutomationSlice", () => {
57
57
  test("collect: OrderShipped is ignored (no TODO)", () => thenTodos(whenCollect(givenEvent({
58
58
  TAG: "OrderShipped",
59
59
  orderId: Ordering_Examples$OrderingPlugin.o1
60
- }), undefined, undefined), []));
60
+ }), undefined, undefined, undefined), []));
61
61
  test("resolve: OrderShipped marks the TODO done", () => thenResolved(whenResolve(givenEvent({
62
62
  TAG: "OrderShipped",
63
63
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -68,7 +68,7 @@ describe("AutoShipOrder AutomationSlice", () => {
68
68
  })), undefined));
69
69
  test("process: pending TODO emits ShipOrder for the same id", () => thenCommand(whenProcess(givenTodo("o1", {
70
70
  orderId: Ordering_Examples$OrderingPlugin.o1
71
- })), "o1", {
71
+ }), undefined), "o1", {
72
72
  TAG: "ShipOrder",
73
73
  orderId: Ordering_Examples$OrderingPlugin.o1
74
74
  }));
@@ -78,6 +78,8 @@ let Route = include.Route;
78
78
 
79
79
  let testContext = include.testContext;
80
80
 
81
+ let withRecordedAt = include.withRecordedAt;
82
+
81
83
  let encTodos = include.encTodos;
82
84
 
83
85
  let encPair = include.encPair;
@@ -88,6 +90,10 @@ let thenNoCommand = include.thenNoCommand;
88
90
 
89
91
  let givenEvents = include.givenEvents;
90
92
 
93
+ let atTime = include.atTime;
94
+
95
+ let latestRecorded = include.latestRecorded;
96
+
91
97
  let routeAll = include.routeAll;
92
98
 
93
99
  let sweep = include.sweep;
@@ -107,6 +113,7 @@ export {
107
113
  describe,
108
114
  test,
109
115
  testContext,
116
+ withRecordedAt,
110
117
  encTodos,
111
118
  encPair,
112
119
  thenTodos,
@@ -118,6 +125,8 @@ export {
118
125
  thenCommand,
119
126
  thenNoCommand,
120
127
  givenEvents,
128
+ atTime,
129
+ latestRecorded,
121
130
  routeAll,
122
131
  sweep,
123
132
  whenSweep,
@@ -1,2 +1,2 @@
1
- #Start(1791811458716)
2
- #Done(1791811461292)
1
+ #Start(1792107705272)
2
+ #Done(1792107707938)
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-dcb-ordering",
3
- "version": "1.0.0-alpha.275",
3
+ "version": "1.0.0-alpha.277",
4
4
  "description": "Online Shop example — Ordering bounded context (Customer & Order) using the DCB pattern",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "11.0.0",
24
- "@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.163",
25
- "@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.163",
24
+ "@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.164",
26
25
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.23",
27
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.241",
28
- "@reventlessdev/reventless-infra": "3.0.0-alpha.191",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.284",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.163"
26
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.243",
27
+ "@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.164",
28
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.192",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.286",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.164"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.1",
@@ -76,7 +76,7 @@ let FromOrderingDcb = AutomationSlice$Reventless.Mapping.Make({
76
76
 
77
77
  let mappings = [FromOrderingDcb];
78
78
 
79
- function process(id, item) {
79
+ function process(id, item, param) {
80
80
  return [
81
81
  id,
82
82
  {
@@ -48,7 +48,7 @@ describe("AutoShipOrder AutomationSlice", () => {
48
48
  test("collect: OrderPlaced creates a pending TODO", () => thenTodos(whenCollect(givenEvent({
49
49
  TAG: "OrderPlaced",
50
50
  orderId: Ordering_Examples$OrderingPlugin.o1
51
- }), undefined, undefined), [[
51
+ }), undefined, undefined, undefined), [[
52
52
  "o1",
53
53
  {
54
54
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -57,7 +57,7 @@ describe("AutoShipOrder AutomationSlice", () => {
57
57
  test("collect: OrderShipped is ignored (no TODO)", () => thenTodos(whenCollect(givenEvent({
58
58
  TAG: "OrderShipped",
59
59
  orderId: Ordering_Examples$OrderingPlugin.o1
60
- }), undefined, undefined), []));
60
+ }), undefined, undefined, undefined), []));
61
61
  test("resolve: OrderShipped marks the TODO done", () => thenResolved(whenResolve(givenEvent({
62
62
  TAG: "OrderShipped",
63
63
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -68,7 +68,7 @@ describe("AutoShipOrder AutomationSlice", () => {
68
68
  })), undefined));
69
69
  test("process: pending TODO emits ShipOrder for the same id", () => thenCommand(whenProcess(givenTodo("o1", {
70
70
  orderId: Ordering_Examples$OrderingPlugin.o1
71
- })), "o1", {
71
+ }), undefined), "o1", {
72
72
  TAG: "ShipOrder",
73
73
  orderId: Ordering_Examples$OrderingPlugin.o1
74
74
  }));
@@ -78,6 +78,8 @@ let Route = include.Route;
78
78
 
79
79
  let testContext = include.testContext;
80
80
 
81
+ let withRecordedAt = include.withRecordedAt;
82
+
81
83
  let encTodos = include.encTodos;
82
84
 
83
85
  let encPair = include.encPair;
@@ -88,6 +90,10 @@ let thenNoCommand = include.thenNoCommand;
88
90
 
89
91
  let givenEvents = include.givenEvents;
90
92
 
93
+ let atTime = include.atTime;
94
+
95
+ let latestRecorded = include.latestRecorded;
96
+
91
97
  let routeAll = include.routeAll;
92
98
 
93
99
  let sweep = include.sweep;
@@ -107,6 +113,7 @@ export {
107
113
  describe,
108
114
  test,
109
115
  testContext,
116
+ withRecordedAt,
110
117
  encTodos,
111
118
  encPair,
112
119
  thenTodos,
@@ -118,6 +125,8 @@ export {
118
125
  thenCommand,
119
126
  thenNoCommand,
120
127
  givenEvents,
128
+ atTime,
129
+ latestRecorded,
121
130
  routeAll,
122
131
  sweep,
123
132
  whenSweep,