From 41dbba7ad309f3f5b1e4d54883aeddd3ed0a3a07 Mon Sep 17 00:00:00 2001 From: juancarbonel Date: Thu, 6 Jun 2019 14:27:34 -0400 Subject: [PATCH] Add PreSignUp_ExternalProvider as triggersource for aws-lambda (#35968) --- types/aws-lambda/aws-lambda-tests.ts | 1 + types/aws-lambda/index.d.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts index 4ed6620062..4da38ff8e0 100644 --- a/types/aws-lambda/aws-lambda-tests.ts +++ b/types/aws-lambda/aws-lambda-tests.ts @@ -413,6 +413,7 @@ authResponse = { // CognitoUserPoolEvent num = cognitoUserPoolEvent.version; cognitoUserPoolEvent.triggerSource === "PreSignUp_SignUp"; +cognitoUserPoolEvent.triggerSource === "PreSignUp_ExternalProvider"; cognitoUserPoolEvent.triggerSource === "PostConfirmation_ConfirmSignUp"; cognitoUserPoolEvent.triggerSource === "PreAuthentication_Authentication"; cognitoUserPoolEvent.triggerSource === "PostAuthentication_Authentication"; diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 7b051a17a1..1a17141c7a 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -28,6 +28,7 @@ // Loïk Gaonac'h // Roberto Zen // Grzegorz Redlicki +// Juan Carbonel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -258,6 +259,7 @@ export interface CognitoUserPoolTriggerEvent { version: number; triggerSource: | "PreSignUp_SignUp" + | "PreSignUp_ExternalProvider" | "PostConfirmation_ConfirmSignUp" | "PreAuthentication_Authentication" | "PostAuthentication_Authentication"