@reventlessdev/reventless-gwt 1.0.0-alpha.245 → 1.0.0-alpha.246
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,18 @@
|
|
|
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.246 (2026-10-16)
|
|
7
|
+
|
|
8
|
+
* feat!(inbound): a translation slice can declare a signed webhook URL ([0ad6994](https://github.com/ReventlessDev/reventless-core/commit/0ad69949fcc91c2756c60ca8cb120dd468841d8b))
|
|
9
|
+
|
|
10
|
+
### BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* InboundTranslationSlice.Spec requires `endpoint`. Specs under
|
|
13
|
+
@@reventless.spec get it from the PPX (republish reventless-ppx with this
|
|
14
|
+
release); hand-written specs add `let endpoint = None`.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# 1.0.0-alpha.245 (2026-10-16)
|
|
7
19
|
|
|
8
20
|
**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.246",
|
|
4
4
|
"description": "Given-When-Then DSLs and test harness for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@reventlessdev/rescript-effect": "1.0.0-alpha.0",
|
|
18
18
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.12",
|
|
19
19
|
"@reventlessdev/rescript-node": "2.0.0-alpha.22",
|
|
20
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.
|
|
21
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
22
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
20
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.298",
|
|
21
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.195",
|
|
22
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.167"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"rescript": "12.3.1",
|
|
@@ -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:
|
|
26
|
-
moduleUrl:
|
|
31
|
+
name: name,
|
|
32
|
+
moduleUrl: moduleUrl,
|
|
27
33
|
externalInputSchema: externalInputSchema,
|
|
28
34
|
commandSchema: commandSchema,
|
|
29
|
-
targetName:
|
|
30
|
-
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(
|
|
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);
|