Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #299 from exoego/remove-deprecated
Browse files Browse the repository at this point in the history
Remove v0.10.0-deprecated members
  • Loading branch information
exoego authored Dec 21, 2021
2 parents f2272d9 + c2b474a commit 7160aa5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 97 deletions.
5 changes: 0 additions & 5 deletions src/main/scala/net/exoego/facade/aws_lambda/cloudfront.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
84 changes: 0 additions & 84 deletions src/main/scala/net/exoego/facade/aws_lambda/cognito_userpool.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 0 additions & 8 deletions src/main/scala/net/exoego/facade/aws_lambda/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7160aa5

Please sign in to comment.