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 #167 from exoego/formatter-max-column
Browse files Browse the repository at this point in the history
[formatter] Increase maxColumn for my wide monitor
  • Loading branch information
exoego authored Jul 15, 2020
2 parents 1dbd9e5 + d9345a2 commit e7ac645
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 113 deletions.
1 change: 1 addition & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
version = 2.6.3
newlines.afterCurlyLambda = preserve
maxColumn = 120
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/net/exoego/facade/aws_lambda/alb.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/net/exoego/facade/aws_lambda/apigateway.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

Expand All @@ -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
}
Expand All @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7ac645

Please sign in to comment.