@reventlessdev/reventless-gwt 1.0.0-alpha.245 → 1.0.0-alpha.247

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,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.247 (2026-10-17)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/reventless-gwt
9
+
10
+
11
+
12
+
13
+
14
+ # 1.0.0-alpha.246 (2026-10-16)
15
+
16
+ * feat!(inbound): a translation slice can declare a signed webhook URL ([0ad6994](https://github.com/ReventlessDev/reventless-core/commit/0ad69949fcc91c2756c60ca8cb120dd468841d8b))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * InboundTranslationSlice.Spec requires `endpoint`. Specs under
21
+ @@reventless.spec get it from the PPX (republish reventless-ppx with this
22
+ release); hand-written specs add `let endpoint = None`.
23
+
24
+
25
+
6
26
  # 1.0.0-alpha.245 (2026-10-16)
7
27
 
8
28
  **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.245",
3
+ "version": "1.0.0-alpha.247",
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",
17
17
  "@reventlessdev/rescript-effect": "1.0.0-alpha.0",
18
- "@reventlessdev/rescript-jest": "1.0.0-alpha.12",
19
18
  "@reventlessdev/rescript-node": "2.0.0-alpha.22",
20
- "@reventlessdev/reventless-core": "3.0.0-alpha.297",
21
- "@reventlessdev/reventless-infra": "3.0.0-alpha.194",
22
- "@reventlessdev/reventless-spec": "3.0.0-alpha.166"
19
+ "@reventlessdev/reventless-core": "3.0.0-alpha.299",
20
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.196",
21
+ "@reventlessdev/rescript-jest": "1.0.0-alpha.12",
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.168"
23
23
  },
24
24
  "devDependencies": {
25
25
  "rescript": "12.3.1",
26
26
  "sury-ppx": "11.0.0",
27
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.102"
27
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.103"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "rescript": "^12.3.1"
@@ -14,7 +14,6 @@ module CancelUnshipped = {
14
14
  type command = CancelOrder({orderId: string})
15
15
 
16
16
  let maxRetries = 3
17
- let heartbeatInterval = 60
18
17
  let targetName = "Order"
19
18
  let schedule = None
20
19
  }
@@ -31,7 +31,6 @@ let CancelUnshipped = {
31
31
  todoItemSchema: todoItemSchema,
32
32
  commandSchema: commandSchema,
33
33
  maxRetries: 3,
34
- heartbeatInterval: 60,
35
34
  targetName: "Order",
36
35
  schedule: undefined,
37
36
  authorizationOf: authorizationOf,
@@ -16,7 +16,6 @@ module ShipPaid = {
16
16
  | GiveUp({orderId: string})
17
17
 
18
18
  let maxRetries = 3
19
- let heartbeatInterval = 60
20
19
  let targetName = "Order"
21
20
  let schedule = None
22
21
  }
@@ -36,7 +36,6 @@ let ShipPaid = {
36
36
  todoItemSchema: todoItemSchema,
37
37
  commandSchema: commandSchema,
38
38
  maxRetries: 3,
39
- heartbeatInterval: 60,
40
39
  targetName: "Order",
41
40
  schedule: undefined,
42
41
  authorizationOf: authorizationOf,
@@ -14,7 +14,6 @@ module MarketingDigest = {
14
14
  type command = RequestNotification({recipientId: string, reference: string})
15
15
 
16
16
  let maxRetries = 3
17
- let heartbeatInterval = 60
18
17
  let targetName = "NotificationPreferences"
19
18
  let schedule = None
20
19
  }
@@ -164,7 +163,6 @@ module Reminder = {
164
163
  type command = RemindOrder({orderId: string})
165
164
 
166
165
  let maxRetries = 3
167
- let heartbeatInterval = 60
168
166
  let targetName = "Order"
169
167
  let schedule = None
170
168
  }
@@ -34,7 +34,6 @@ let MarketingDigest = {
34
34
  todoItemSchema: todoItemSchema,
35
35
  commandSchema: commandSchema,
36
36
  maxRetries: 3,
37
- heartbeatInterval: 60,
38
37
  targetName: "NotificationPreferences",
39
38
  schedule: undefined,
40
39
  authorizationOf: authorizationOf,
@@ -419,7 +418,6 @@ let Reminder = {
419
418
  todoItemSchema: todoItemSchema$1,
420
419
  commandSchema: commandSchema$1,
421
420
  maxRetries: 3,
422
- heartbeatInterval: 60,
423
421
  targetName: "Order",
424
422
  schedule: undefined,
425
423
  authorizationOf: authorizationOf$1,
@@ -14,7 +14,6 @@ module DemandReport = {
14
14
  type command = RequestDemandReport({day: float})
15
15
 
16
16
  let maxRetries = 3
17
- let heartbeatInterval = 60
18
17
  let targetName = "ReportSettings"
19
18
  let schedule = Some(Reventless.Schedule.Calendar({calendar: Daily({hour: 6, minute: 0})}))
20
19
  }
@@ -41,7 +41,6 @@ let DemandReport = {
41
41
  todoItemSchema: todoItemSchema,
42
42
  commandSchema: commandSchema,
43
43
  maxRetries: 3,
44
- heartbeatInterval: 60,
45
44
  targetName: "ReportSettings",
46
45
  schedule: DemandReport_schedule,
47
46
  authorizationOf: authorizationOf,
@@ -13,6 +13,7 @@ module PaymentHook = {
13
13
 
14
14
  let targetName = "Order"
15
15
  let externalSystem = Some("Payments")
16
+ let endpoint = None
16
17
  type role = Reventless.Role.name
17
18
  let authorizationOf = _ => Reventless.Authorization.AllowAuthenticated
18
19
  }
@@ -3,6 +3,10 @@
3
3
  import * as Sury from "sury";
4
4
  import * as InboundTranslation_GWT$ReventlessGwt from "../src/InboundTranslation_GWT.res.mjs";
5
5
 
6
+ let name = "PaymentHook";
7
+
8
+ let moduleUrl = "";
9
+
6
10
  let externalInputSchema = Sury.$schema(s => ({
7
11
  orderId: s.m(Sury.string),
8
12
  status: s.m(Sury.string)
@@ -13,26 +17,29 @@ let commandSchema = Sury.$schema(s => ({
13
17
  orderId: s.m(Sury.string)
14
18
  }));
15
19
 
20
+ let targetName = "Order";
21
+
22
+ let externalSystem = "Payments";
23
+
16
24
  function authorizationOf(param) {
17
25
  return "AllowAuthenticated";
18
26
  }
19
27
 
20
28
  let traits = [];
21
29
 
22
- let PaymentHook_externalSystem = "Payments";
23
-
24
30
  let PaymentHook = {
25
- name: "PaymentHook",
26
- moduleUrl: "",
31
+ name: name,
32
+ moduleUrl: moduleUrl,
27
33
  externalInputSchema: externalInputSchema,
28
34
  commandSchema: commandSchema,
29
- targetName: "Order",
30
- externalSystem: PaymentHook_externalSystem,
35
+ targetName: targetName,
36
+ externalSystem: externalSystem,
37
+ endpoint: undefined,
31
38
  authorizationOf: authorizationOf,
32
39
  traits: traits
33
40
  };
34
41
 
35
- let moduleUrl = "";
42
+ let moduleUrl$1 = "";
36
43
 
37
44
  function translate(input) {
38
45
  let other = input.status;
@@ -62,13 +69,22 @@ function translate(input) {
62
69
  }
63
70
 
64
71
  let PaymentHook_Translation = {
65
- moduleUrl: moduleUrl,
72
+ moduleUrl: moduleUrl$1,
66
73
  translate: translate
67
74
  };
68
75
 
69
- let include = InboundTranslation_GWT$ReventlessGwt.FromSlice(PaymentHook)({
76
+ let include = InboundTranslation_GWT$ReventlessGwt.FromSlice({
77
+ name: name,
78
+ moduleUrl: moduleUrl,
79
+ externalInputSchema: externalInputSchema,
80
+ commandSchema: commandSchema,
81
+ targetName: targetName,
82
+ externalSystem: externalSystem,
83
+ authorizationOf: authorizationOf,
84
+ endpoint: undefined
85
+ })({
70
86
  translate: translate,
71
- moduleUrl: moduleUrl
87
+ moduleUrl: moduleUrl$1
72
88
  });
73
89
 
74
90
  let describe = include.describe;
@@ -50,7 +50,8 @@ let PaymentWebhookSlice = {
50
50
  translate: translate,
51
51
  authorizationOf: authorizationOf,
52
52
  traits: traits,
53
- externalSystem: undefined
53
+ externalSystem: undefined,
54
+ endpoint: undefined
54
55
  };
55
56
 
56
57
  let include = InboundTranslation_GWT$ReventlessGwt.Make(PaymentWebhookSlice);
@@ -15,7 +15,6 @@ module Welcome = {
15
15
  type inboundCommand = MarkWelcomed({customerId: string}) | MarkUnreachable({customerId: string})
16
16
 
17
17
  let maxRetries = 2
18
- let heartbeatInterval = 60
19
18
  let targetName = Some("Customer")
20
19
  let sourceNames = []
21
20
  let externalSystem = None
@@ -42,7 +42,6 @@ let Welcome = {
42
42
  outboundItemSchema: outboundItemSchema,
43
43
  inboundCommandSchema: inboundCommandSchema,
44
44
  maxRetries: 2,
45
- heartbeatInterval: 60,
46
45
  targetName: Welcome_targetName,
47
46
  sourceNames: sourceNames,
48
47
  externalSystem: undefined,