Skip to content

Commit f6758f9

Browse files
authored
[fix] Screener Job Attachments (#102)
* update attachment name * update version * add back spreader * Force label to be 'Screener Details'
1 parent af6f8fd commit f6758f9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envoy/envoy-integrations-sdk",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "SDK for building Envoy integrations.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/sdk/EnvoyPluginJobAttachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface EnvoyPluginCredentialJobAttachment extends EnvoyPluginTextJobAt
5252
* @category Attachment
5353
*/
5454
export interface EnvoyPluginScreenerJobAttachment extends EnvoyPluginJSONJobAttachment {
55-
label: string;
55+
label: 'Screener Details';
5656
value: ScreenerDetails;
5757
}
5858

src/sdk/EnvoyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default interface EnvoyResponse<Body = unknown> extends Response {
2929
/**
3030
* Marks the job as "failed". The message will be communicated to the Envoy Dashboard user.
3131
*/
32-
sendFailedScreen: (message: string, debugInfo?: unknown, attachments?: EnvoyPluginScreenerJobAttachment) => void;
32+
sendFailedScreen: (message: string, debugInfo?: unknown, ...attachments: Array<EnvoyPluginScreenerJobAttachment>) => void;
3333
}
3434

3535
/**

src/sdk/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function envoyMiddleware(options?: EnvoySignatureVerifierOptions): Reques
8484
envoyResponse.sendFailedScreen = (
8585
message = '',
8686
debugInfo: unknown = {},
87-
attachments?: EnvoyPluginScreenerJobAttachment,
87+
...attachments: Array<EnvoyPluginScreenerJobAttachment>
8888
) => {
8989
envoyResponse.statusCode = HttpStatus.FAILED;
9090
envoyResponse.setHeader('Content-Type', 'application/json');

0 commit comments

Comments
 (0)