diff --git a/.scalafmt.conf b/.scalafmt.conf index 5a268b6..c39f292 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,2 +1,3 @@ version = 2.6.3 newlines.afterCurlyLambda = preserve +maxColumn = 120 diff --git a/src/main/scala-2.12/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state_scala212.scala b/src/main/scala-2.12/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state_scala212.scala index e966b94..921c65e 100644 --- a/src/main/scala-2.12/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state_scala212.scala +++ b/src/main/scala-2.12/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state_scala212.scala @@ -3,8 +3,7 @@ package net.exoego.facade.aws_lambda import scala.scalajs.js @js.native -trait CodeBuildCloudWatchStateEvent - extends EventBridgeEvent[String, CodeBuildStateEventDetail] +trait CodeBuildCloudWatchStateEvent extends EventBridgeEvent[String, CodeBuildStateEventDetail] object CodeBuildCloudWatchStateEvent { def apply( diff --git a/src/main/scala/net/exoego/facade/aws_lambda/alb.scala b/src/main/scala/net/exoego/facade/aws_lambda/alb.scala index df0da7d..d9937ac 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/alb.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/alb.scala @@ -28,8 +28,7 @@ trait ALBEvent extends js.Object { var queryStringParameters: js.UndefOr[ALBEvent.QueryStringParameters] = js.native var headers: js.UndefOr[ALBEvent.Headers] = js.native - var multiValueQueryStringParameters - : js.UndefOr[ALBEvent.MultiValueQueryStringParameters] = js.native + var multiValueQueryStringParameters: js.UndefOr[ALBEvent.MultiValueQueryStringParameters] = js.native var multiValueHeaders: js.UndefOr[ALBEvent.MultiValueHeaders] = js.native var body: String | Null = js.native var isBase64Encoded: Boolean = js.native diff --git a/src/main/scala/net/exoego/facade/aws_lambda/apigateway.scala b/src/main/scala/net/exoego/facade/aws_lambda/apigateway.scala index 2e7fbc7..0d71c4f 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/apigateway.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/apigateway.scala @@ -16,8 +16,7 @@ trait APIGatewayEventDefaultAuthorizerContext extends js.Object { def apply(key: String): js.UndefOr[js.Any] = js.native } -trait APIGatewayEventRequestContextWithAuthorizer[TAuthorizerContext] - extends js.Object { +trait APIGatewayEventRequestContextWithAuthorizer[TAuthorizerContext] extends js.Object { var accountId: String var apiId: String var authorizer: TAuthorizerContext diff --git a/src/main/scala/net/exoego/facade/aws_lambda/cloudformationcustomresource.scala b/src/main/scala/net/exoego/facade/aws_lambda/cloudformationcustomresource.scala index b1ae03a..be60a3a 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/cloudformationcustomresource.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/cloudformationcustomresource.scala @@ -13,8 +13,7 @@ trait CloudFormationCustomResourceEventCommon extends js.Object { var RequestId: String = js.native var LogicalResourceId: String = js.native var ResourceType: String = js.native - var ResourceProperties - : CloudFormationCustomResourceEventCommon.ResourceProperties = js.native + var ResourceProperties: CloudFormationCustomResourceEventCommon.ResourceProperties = js.native } object CloudFormationCustomResourceEventCommon { @@ -23,21 +22,16 @@ object CloudFormationCustomResourceEventCommon { @Factory @js.native -trait CloudFormationCustomResourceCreateEvent - extends js.Object - with CloudFormationCustomResourceEventCommon { +trait CloudFormationCustomResourceCreateEvent extends js.Object with CloudFormationCustomResourceEventCommon { var RequestType: String = js.native } @Factory @js.native -trait CloudFormationCustomResourceUpdateEvent - extends js.Object - with CloudFormationCustomResourceEventCommon { +trait CloudFormationCustomResourceUpdateEvent extends js.Object with CloudFormationCustomResourceEventCommon { var RequestType: String = js.native var PhysicalResourceId: String = js.native - var OldResourceProperties - : CloudFormationCustomResourceUpdateEvent.OldResourceProperties = + var OldResourceProperties: CloudFormationCustomResourceUpdateEvent.OldResourceProperties = js.native } @@ -47,9 +41,7 @@ object CloudFormationCustomResourceUpdateEvent { @Factory @js.native -trait CloudFormationCustomResourceDeleteEvent - extends js.Object - with CloudFormationCustomResourceEventCommon { +trait CloudFormationCustomResourceDeleteEvent extends js.Object with CloudFormationCustomResourceEventCommon { var RequestType: String = js.native var PhysicalResourceId: String = js.native } @@ -71,18 +63,14 @@ object CloudFormationCustomResourceResponseCommon { @Factory @js.native -trait CloudFormationCustomResourceSuccessResponse - extends js.Object - with CloudFormationCustomResourceResponseCommon { +trait CloudFormationCustomResourceSuccessResponse extends js.Object with CloudFormationCustomResourceResponseCommon { var Status: String = js.native var Reason: js.UndefOr[String] = js.native } @Factory @js.native -trait CloudFormationCustomResourceFailedResponse - extends js.Object - with CloudFormationCustomResourceResponseCommon { +trait CloudFormationCustomResourceFailedResponse extends js.Object with CloudFormationCustomResourceResponseCommon { var Status: String = js.native var Reason: String = js.native } diff --git a/src/main/scala/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state.scala b/src/main/scala/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state.scala index 40785d1..37b6c6a 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/codebuild_cloudwatch_state.scala @@ -7,100 +7,68 @@ import scala.scalajs.js @js.native sealed trait CodeBuildStateType extends js.Any {} object CodeBuildStateType { - @inline val IN_PROGRESS: CodeBuildStateType = - "IN_PROGRESS".asInstanceOf[CodeBuildStateType] - @inline val SUCCEEDED: CodeBuildStateType = - "SUCCEEDED".asInstanceOf[CodeBuildStateType] - @inline val FAILED: CodeBuildStateType = - "FAILED".asInstanceOf[CodeBuildStateType] - @inline val STOPPED: CodeBuildStateType = - "STOPPED".asInstanceOf[CodeBuildStateType] + @inline val IN_PROGRESS: CodeBuildStateType = "IN_PROGRESS".asInstanceOf[CodeBuildStateType] + @inline val SUCCEEDED: CodeBuildStateType = "SUCCEEDED".asInstanceOf[CodeBuildStateType] + @inline val FAILED: CodeBuildStateType = "FAILED".asInstanceOf[CodeBuildStateType] + @inline val STOPPED: CodeBuildStateType = "STOPPED".asInstanceOf[CodeBuildStateType] } @js.native sealed trait CodeBuildPhaseType extends js.Any {} object CodeBuildPhaseType { - @inline val COMPLETED: CodeBuildPhaseType = - "COMPLETED".asInstanceOf[CodeBuildPhaseType] - @inline val FINALIZING: CodeBuildPhaseType = - "FINALIZING".asInstanceOf[CodeBuildPhaseType] - @inline val UPLOAD_ARTIFACTS: CodeBuildPhaseType = - "UPLOAD_ARTIFACTS".asInstanceOf[CodeBuildPhaseType] - @inline val POST_BUILD: CodeBuildPhaseType = - "POST_BUILD".asInstanceOf[CodeBuildPhaseType] - @inline val BUILD: CodeBuildPhaseType = - "BUILD".asInstanceOf[CodeBuildPhaseType] - @inline val PRE_BUILD: CodeBuildPhaseType = - "PRE_BUILD".asInstanceOf[CodeBuildPhaseType] - @inline val INSTALL: CodeBuildPhaseType = - "INSTALL".asInstanceOf[CodeBuildPhaseType] - @inline val QUEUED: CodeBuildPhaseType = - "QUEUED".asInstanceOf[CodeBuildPhaseType] - @inline val DOWNLOAD_SOURCE: CodeBuildPhaseType = - "DOWNLOAD_SOURCE".asInstanceOf[CodeBuildPhaseType] - @inline val PROVISIONING: CodeBuildPhaseType = - "PROVISIONING".asInstanceOf[CodeBuildPhaseType] - @inline val SUBMITTED: CodeBuildPhaseType = - "SUBMITTED".asInstanceOf[CodeBuildPhaseType] + @inline val COMPLETED: CodeBuildPhaseType = "COMPLETED".asInstanceOf[CodeBuildPhaseType] + @inline val FINALIZING: CodeBuildPhaseType = "FINALIZING".asInstanceOf[CodeBuildPhaseType] + @inline val UPLOAD_ARTIFACTS: CodeBuildPhaseType = "UPLOAD_ARTIFACTS".asInstanceOf[CodeBuildPhaseType] + @inline val POST_BUILD: CodeBuildPhaseType = "POST_BUILD".asInstanceOf[CodeBuildPhaseType] + @inline val BUILD: CodeBuildPhaseType = "BUILD".asInstanceOf[CodeBuildPhaseType] + @inline val PRE_BUILD: CodeBuildPhaseType = "PRE_BUILD".asInstanceOf[CodeBuildPhaseType] + @inline val INSTALL: CodeBuildPhaseType = "INSTALL".asInstanceOf[CodeBuildPhaseType] + @inline val QUEUED: CodeBuildPhaseType = "QUEUED".asInstanceOf[CodeBuildPhaseType] + @inline val DOWNLOAD_SOURCE: CodeBuildPhaseType = "DOWNLOAD_SOURCE".asInstanceOf[CodeBuildPhaseType] + @inline val PROVISIONING: CodeBuildPhaseType = "PROVISIONING".asInstanceOf[CodeBuildPhaseType] + @inline val SUBMITTED: CodeBuildPhaseType = "SUBMITTED".asInstanceOf[CodeBuildPhaseType] } @js.native sealed trait CodeBuildPhaseStatusType extends js.Any {} object CodeBuildPhaseStatusType { - @inline val TIMED_OUT: CodeBuildPhaseStatusType = - "TIMED_OUT".asInstanceOf[CodeBuildPhaseStatusType] - @inline val STOPPED: CodeBuildPhaseStatusType = - "STOPPED".asInstanceOf[CodeBuildPhaseStatusType] - @inline val FAILED: CodeBuildPhaseStatusType = - "FAILED".asInstanceOf[CodeBuildPhaseStatusType] - @inline val SUCCEEDED: CodeBuildPhaseStatusType = - "SUCCEEDED".asInstanceOf[CodeBuildPhaseStatusType] - @inline val FAULT: CodeBuildPhaseStatusType = - "FAULT".asInstanceOf[CodeBuildPhaseStatusType] - @inline val CLIENT_ERROR: CodeBuildPhaseStatusType = - "CLIENT_ERROR".asInstanceOf[CodeBuildPhaseStatusType] + @inline val TIMED_OUT: CodeBuildPhaseStatusType = "TIMED_OUT".asInstanceOf[CodeBuildPhaseStatusType] + @inline val STOPPED: CodeBuildPhaseStatusType = "STOPPED".asInstanceOf[CodeBuildPhaseStatusType] + @inline val FAILED: CodeBuildPhaseStatusType = "FAILED".asInstanceOf[CodeBuildPhaseStatusType] + @inline val SUCCEEDED: CodeBuildPhaseStatusType = "SUCCEEDED".asInstanceOf[CodeBuildPhaseStatusType] + @inline val FAULT: CodeBuildPhaseStatusType = "FAULT".asInstanceOf[CodeBuildPhaseStatusType] + @inline val CLIENT_ERROR: CodeBuildPhaseStatusType = "CLIENT_ERROR".asInstanceOf[CodeBuildPhaseStatusType] } @js.native sealed trait CodeBuildCacheType extends js.Any {} object CodeBuildCacheType { - @inline val NO_CACHE: CodeBuildCacheType = - "NO_CACHE".asInstanceOf[CodeBuildCacheType] - @inline val LOCAL: CodeBuildCacheType = - "LOCAL".asInstanceOf[CodeBuildCacheType] + @inline val NO_CACHE: CodeBuildCacheType = "NO_CACHE".asInstanceOf[CodeBuildCacheType] + @inline val LOCAL: CodeBuildCacheType = "LOCAL".asInstanceOf[CodeBuildCacheType] @inline val S3: CodeBuildCacheType = "S3".asInstanceOf[CodeBuildCacheType] } @js.native sealed trait CodeBuildSourceLocationType extends js.Any {} object CodeBuildSourceLocationType { - @inline val CODECOMMIT: CodeBuildSourceLocationType = - "CODECOMMIT".asInstanceOf[CodeBuildSourceLocationType] - @inline val CODEPIPELINE: CodeBuildSourceLocationType = - "CODEPIPELINE".asInstanceOf[CodeBuildSourceLocationType] - @inline val GITHUB: CodeBuildSourceLocationType = - "GITHUB".asInstanceOf[CodeBuildSourceLocationType] + @inline val CODECOMMIT: CodeBuildSourceLocationType = "CODECOMMIT".asInstanceOf[CodeBuildSourceLocationType] + @inline val CODEPIPELINE: CodeBuildSourceLocationType = "CODEPIPELINE".asInstanceOf[CodeBuildSourceLocationType] + @inline val GITHUB: CodeBuildSourceLocationType = "GITHUB".asInstanceOf[CodeBuildSourceLocationType] @inline val GITHUB_ENTERPRISE: CodeBuildSourceLocationType = "GITHUB_ENTERPRISE".asInstanceOf[CodeBuildSourceLocationType] - @inline val BITBUCKET: CodeBuildSourceLocationType = - "BITBUCKET".asInstanceOf[CodeBuildSourceLocationType] - @inline val S3: CodeBuildSourceLocationType = - "S3".asInstanceOf[CodeBuildSourceLocationType] - @inline val NO_SOURCE: CodeBuildSourceLocationType = - "NO_SOURCE".asInstanceOf[CodeBuildSourceLocationType] + @inline val BITBUCKET: CodeBuildSourceLocationType = "BITBUCKET".asInstanceOf[CodeBuildSourceLocationType] + @inline val S3: CodeBuildSourceLocationType = "S3".asInstanceOf[CodeBuildSourceLocationType] + @inline val NO_SOURCE: CodeBuildSourceLocationType = "NO_SOURCE".asInstanceOf[CodeBuildSourceLocationType] } @js.native sealed trait CodeBuildEnvironmentType extends js.Any {} object CodeBuildEnvironmentType { - @inline val LINUX_CONTAINER: CodeBuildEnvironmentType = - "LINUX_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] + @inline val LINUX_CONTAINER: CodeBuildEnvironmentType = "LINUX_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] @inline val LINUX_GPU_CONTAINER: CodeBuildEnvironmentType = "LINUX_GPU_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] - @inline val WINDOWS_CONTAINER: CodeBuildEnvironmentType = - "WINDOWS_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] - @inline val ARM_CONTAINER: CodeBuildEnvironmentType = - "ARM_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] + @inline val WINDOWS_CONTAINER: CodeBuildEnvironmentType = "WINDOWS_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] + @inline val ARM_CONTAINER: CodeBuildEnvironmentType = "ARM_CONTAINER".asInstanceOf[CodeBuildEnvironmentType] } @js.native @@ -130,8 +98,7 @@ sealed trait CodeBuildEnvironmentVariableType extends js.Any {} object CodeBuildEnvironmentVariableType { @inline val PARAMETER_STORE: CodeBuildEnvironmentVariableType = "PARAMETER_STORE".asInstanceOf[CodeBuildEnvironmentVariableType] - @inline val PLAINTEXT: CodeBuildEnvironmentVariableType = - "PLAINTEXT".asInstanceOf[CodeBuildEnvironmentVariableType] + @inline val PLAINTEXT: CodeBuildEnvironmentVariableType = "PLAINTEXT".asInstanceOf[CodeBuildEnvironmentVariableType] @inline val SECRETS_MANAGER: CodeBuildEnvironmentVariableType = "SECRETS_MANAGER".asInstanceOf[CodeBuildEnvironmentVariableType] } 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 e3499fb..a627bd3 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 @@ -37,8 +37,7 @@ object CognitoUserPoolTriggerEvent { 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 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 @@ -64,10 +63,8 @@ object CognitoUserPoolTriggerEvent { 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 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 @@ -87,8 +84,7 @@ object CognitoUserPoolTriggerEvent { @Factory(false) @js.native trait ClaimsOverrideDetails extends js.Object { - var claimsToAddOrOverride - : js.UndefOr[ClaimsOverrideDetails.ClaimsToAddOrOverride] = js.native + 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 } diff --git a/src/main/scala/net/exoego/facade/aws_lambda/connet-contact-flow.scala b/src/main/scala/net/exoego/facade/aws_lambda/connet-contact-flow.scala index 3bc8428..7555a67 100644 --- a/src/main/scala/net/exoego/facade/aws_lambda/connet-contact-flow.scala +++ b/src/main/scala/net/exoego/facade/aws_lambda/connet-contact-flow.scala @@ -74,26 +74,19 @@ object ConnectContactFlowEvent { sealed trait ConnectContactFlowChannel extends js.Any {} object ConnectContactFlowChannel { - @inline val VOICE: ConnectContactFlowChannel = - "VOICE".asInstanceOf[ConnectContactFlowChannel] - @inline val CHAT: ConnectContactFlowChannel = - "CHAT".asInstanceOf[ConnectContactFlowChannel] + @inline val VOICE: ConnectContactFlowChannel = "VOICE".asInstanceOf[ConnectContactFlowChannel] + @inline val CHAT: ConnectContactFlowChannel = "CHAT".asInstanceOf[ConnectContactFlowChannel] } @js.native sealed trait ConnectContactFlowInitiationMethod extends js.Any {} object ConnectContactFlowInitiationMethod { - @inline val INBOUND: ConnectContactFlowInitiationMethod = - "INBOUND".asInstanceOf[ConnectContactFlowInitiationMethod] - @inline val OUTBOUND: ConnectContactFlowInitiationMethod = - "OUTBOUND".asInstanceOf[ConnectContactFlowInitiationMethod] - @inline val TRANSFER: ConnectContactFlowInitiationMethod = - "TRANSFER".asInstanceOf[ConnectContactFlowInitiationMethod] - @inline val CALLBACK: ConnectContactFlowInitiationMethod = - "CALLBACK".asInstanceOf[ConnectContactFlowInitiationMethod] - @inline val API: ConnectContactFlowInitiationMethod = - "API".asInstanceOf[ConnectContactFlowInitiationMethod] + @inline val INBOUND: ConnectContactFlowInitiationMethod = "INBOUND".asInstanceOf[ConnectContactFlowInitiationMethod] + @inline val OUTBOUND: ConnectContactFlowInitiationMethod = "OUTBOUND".asInstanceOf[ConnectContactFlowInitiationMethod] + @inline val TRANSFER: ConnectContactFlowInitiationMethod = "TRANSFER".asInstanceOf[ConnectContactFlowInitiationMethod] + @inline val CALLBACK: ConnectContactFlowInitiationMethod = "CALLBACK".asInstanceOf[ConnectContactFlowInitiationMethod] + @inline val API: ConnectContactFlowInitiationMethod = "API".asInstanceOf[ConnectContactFlowInitiationMethod] } @Factory