From c2b474a1365431a31a82be55f28e57ba6ca703f3 Mon Sep 17 00:00:00 2001 From: TATSUNO Yasuhiro Date: Tue, 21 Dec 2021 14:29:07 +0900 Subject: [PATCH] Remove deprecated members --- .../exoego/facade/aws_lambda/cloudfront.scala | 5 -- .../facade/aws_lambda/cognito_userpool.scala | 84 ------------------- .../exoego/facade/aws_lambda/package.scala | 8 -- 3 files changed, 97 deletions(-) diff --git a/src/main/scala/net/exoego/facade/aws_lambda/cloudfront.scala b/src/main/scala/net/exoego/facade/aws_lambda/cloudfront.scala index 1cdd69f..cce0ae1 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/cloudfront.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/cloudfront.scala @@ -15,11 +15,6 @@ trait CloudFrontOrigin extends js.Object { } object CloudFrontOrigin { - @deprecated("Use CloudFrontOrigin.ofS3 instead", "0.10.0") - def apply(s3: CloudFrontS3Origin): CloudFrontOrigin = ofS3(s3) - @deprecated("Use CloudFrontOrigin.ofCustom instead", "0.10.0") - def apply(custom: CloudFrontCustomOrigin): CloudFrontOrigin = ofCustom(custom) - def ofS3(s3: CloudFrontS3Origin): CloudFrontOrigin = { val _obj$ = js.Dynamic.literal( "s3" -> s3 diff --git a/src/main/scala/net/exoego/facade/aws_lambda/cognito_userpool.scala b/src/main/scala/net/exoego/facade/aws_lambda/cognito_userpool.scala index da77361..811a1fa 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/cognito_userpool.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/cognito_userpool.scala @@ -44,90 +44,6 @@ trait CognitoUserpoolCallerContext extends js.Object { var clientId: String } -@deprecated("Use specific event types instead", "v0.10.0") -@js.native -trait CognitoUserPoolTriggerEvent extends js.Object with BaseTriggerEvent[String] { - var request: CognitoUserPoolTriggerEvent.Request = js.native - var response: CognitoUserPoolTriggerEvent.Response = js.native -} - -object CognitoUserPoolTriggerEvent { - @deprecated("Use specific event types instead", "v0.10.0") - @js.native - trait Request extends js.Object { - var userAttributes: Request.UserAttributes = js.native - var validationData: js.UndefOr[Request.ValidationData] = js.native - var codeParameter: js.UndefOr[String] = js.native - var linkParameter: js.UndefOr[String] = js.native - var usernameParameter: js.UndefOr[String] = js.native - var newDeviceUsed: js.UndefOr[Boolean] = js.native - var session: js.UndefOr[js.Array[js.Any]] = js.native - var challengeName: js.UndefOr[String] = js.native - var privateChallengeParameters: js.UndefOr[Request.PrivateChallengeParameters] = js.native - var challengeAnswer: js.UndefOr[String] = js.native - var password: js.UndefOr[String] = js.native - var clientMetadata: js.UndefOr[Request.ClientMetadata] = js.native - var userNotFound: js.UndefOr[Boolean] = js.native - } - - object Request { - @deprecated("Use specific event types instead", "v0.10.0") - type UserAttributes = js.Dictionary[String] - @deprecated("Use specific event types instead", "v0.10.0") - type ValidationData = js.Dictionary[String] - @deprecated("Use specific event types instead", "v0.10.0") - type PrivateChallengeParameters = js.Dictionary[String] - @deprecated("Use specific event types instead", "v0.10.0") - type ClientMetadata = js.Dictionary[String] - } - - @deprecated("Use specific event types instead", "v0.10.0") - @js.native - trait Response extends js.Object { - var autoConfirmUser: js.UndefOr[Boolean] = js.native - var autoVerifyPhone: js.UndefOr[Boolean] = js.native - var autoVerifyEmail: js.UndefOr[Boolean] = js.native - var smsMessage: js.UndefOr[String] = js.native - var emailMessage: js.UndefOr[String] = js.native - var emailSubject: js.UndefOr[String] = js.native - var challengeName: js.UndefOr[String] = js.native - var issueTokens: js.UndefOr[Boolean] = js.native - var failAuthentication: js.UndefOr[Boolean] = js.native - var publicChallengeParameters: js.UndefOr[Response.PublicChallengeParameters] = js.native - var privateChallengeParameters: js.UndefOr[Response.PrivateChallengeParameters] = js.native - var challengeMetadata: js.UndefOr[String] = js.native - var answerCorrect: js.UndefOr[Boolean] = js.native - var userAttributes: js.UndefOr[Response.UserAttributes] = js.native - var finalUserStatus: js.UndefOr[String] = js.native - var messageAction: js.UndefOr[String] = js.native - var desiredDeliveryMediums: js.UndefOr[js.Array[String]] = js.native - var forceAliasCreation: js.UndefOr[Boolean] = js.native - var claimsOverrideDetails: js.UndefOr[Response.ClaimsOverrideDetails] = js.native - } - - object Response { - @deprecated("Use specific event types instead", "v0.10.0") - type PublicChallengeParameters = js.Dictionary[String] - @deprecated("Use specific event types instead", "v0.10.0") - type PrivateChallengeParameters = js.Dictionary[String] - @deprecated("Use specific event types instead", "v0.10.0") - type UserAttributes = js.Dictionary[String] - - @deprecated("Use specific event types instead", "v0.10.0") - @js.native - trait ClaimsOverrideDetails extends js.Object { - var claimsToAddOrOverride: js.UndefOr[ClaimsOverrideDetails.ClaimsToAddOrOverride] = js.native - var claimsToSuppress: js.UndefOr[js.Array[String]] = js.native - var groupOverrideDetails: js.UndefOr[Null | js.Any] = js.native - } - - object ClaimsOverrideDetails { - @deprecated("Use specific event types instead", "v0.10.0") - type ClaimsToAddOrOverride = js.Dictionary[String] - } - } -} - @js.native trait CreateAuthChallengeTriggerEventRequest extends js.Object { var userAttributes: js.Dictionary[String] diff --git a/src/main/scala/net/exoego/facade/aws_lambda/package.scala b/src/main/scala/net/exoego/facade/aws_lambda/package.scala index 257d6e1..9670d43 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/package.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/package.scala @@ -127,14 +127,6 @@ package object aws_lambda { type CodePipelineCloudWatchStageHandler = Handler[CodePipelineCloudWatchStageEvent, Unit] type AsyncCodePipelineCloudWatchStageHandler = AsyncHandler[CodePipelineCloudWatchStageEvent, Unit] - // cognitouserpool - @deprecated("Use specific event type instead", "v0.10.0") - type CognitoUserPoolEvent = CognitoUserPoolTriggerEvent - @deprecated("Use specific event type instead", "v0.10.0") - type CognitoUserPoolTriggerHandler = Handler[CognitoUserPoolTriggerEvent, js.Any] - @deprecated("Use specific event type instead", "v0.10.0") - type AsyncCognitoUserPoolTriggerHandler = AsyncHandler[CognitoUserPoolTriggerEvent, js.Any] - type CreateAuthChallengeTriggerHandler = Handler[CreateAuthChallengeTriggerEvent, js.Any] type CustomMessageTriggerHandler = Handler[CustomMessageTriggerEvent[String], js.Any] type DefineAuthChallengeTriggerHandler = Handler[DefineAuthChallengeTriggerEvent, js.Any]