@digitraffic/common 2025.3.4-1 → 2025.3.4-2
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.
@@ -18,6 +18,8 @@ export declare class DigitrafficIntegration<T extends string> {
|
|
18
18
|
/**
|
19
19
|
* Body is passed as an base64-encoded string, so broken input should't break anything. You should
|
20
20
|
* decode, parse and validate the input in the lambda.
|
21
|
+
*
|
22
|
+
* The encoded body will be passed to handler with name payload!!
|
21
23
|
*/
|
22
24
|
passBody(): this;
|
23
25
|
addPathParameter(...names: T[]): this;
|
@@ -4,7 +4,7 @@ import { DigitrafficIntegrationResponse } from "../../runtime/digitraffic-integr
|
|
4
4
|
const VELOCITY_ALL_PARAMS = `#foreach($paramName in $params.keySet())
|
5
5
|
#set($tmp = $paramMap.put($paramName, $params[$paramName]))
|
6
6
|
#end`;
|
7
|
-
const VELOCITY_PASS_BODY = `#set($tmp = $paramMap.put('
|
7
|
+
const VELOCITY_PASS_BODY = `#set($tmp = $paramMap.put('payload', $util.base64Encode($input.body)))`;
|
8
8
|
export class DigitrafficIntegration {
|
9
9
|
lambda;
|
10
10
|
mediaType;
|
@@ -29,6 +29,8 @@ export class DigitrafficIntegration {
|
|
29
29
|
/**
|
30
30
|
* Body is passed as an base64-encoded string, so broken input should't break anything. You should
|
31
31
|
* decode, parse and validate the input in the lambda.
|
32
|
+
*
|
33
|
+
* The encoded body will be passed to handler with name payload!!
|
32
34
|
*/
|
33
35
|
passBody() {
|
34
36
|
this._passBody = true;
|