common-types
Advanced tools
Comparing version 1.20.0 to 1.20.1
import { datetime } from "../aliases"; | ||
import { arn } from "../aws"; | ||
declare type Source = "ec2" | "s3" | "codestar"; | ||
export declare type Source = "ec2" | "s3" | "codestar"; | ||
export declare type IAwsEventSource = `aws.${Source}` | string; | ||
@@ -41,2 +41,1 @@ export declare type IAwsEventUrls = `${Source}.amazonaws.com` | string; | ||
} | ||
export {}; |
@@ -95,3 +95,3 @@ import { seconds, sql } from "../aliases"; | ||
}; | ||
eventBridge: { | ||
eventBridge?: { | ||
/** using the default AWS event bus. Example might be "rate(10 minutes)" */ | ||
@@ -98,0 +98,0 @@ schedule: string; |
@@ -7,2 +7,3 @@ import { minutes, scalar } from "../aliases"; | ||
import { IServerlessAuthorizer, IServerlessJwtAuthorizer } from "./serverless-authorizers"; | ||
import { IHttpApiCors } from "./serverless-http-api"; | ||
import { IServerlessIAMRole } from "./serverless-iam"; | ||
@@ -18,3 +19,3 @@ import { IHttpApiLogging, IRestApiLogging, IWebsocketLogging } from "./serverless-logging"; | ||
/** Service wide environment variables */ | ||
environment?: Record<string, scalar>; | ||
environment?: Record<string, scalar> | string; | ||
/** Set the default stage used. Default is "dev". */ | ||
@@ -50,7 +51,7 @@ stage?: "dev" | "test" | "prod" | string; | ||
httpApi: { | ||
id: string; | ||
name: string; | ||
payload: "1.0" | "2.0"; | ||
cors: boolean; | ||
authorizers: Record<string, IServerlessJwtAuthorizer>; | ||
id?: string; | ||
name?: string; | ||
payload?: "1.0" | "2.0"; | ||
cors?: boolean | IHttpApiCors; | ||
authorizers?: Record<string, IServerlessJwtAuthorizer>; | ||
}; | ||
@@ -57,0 +58,0 @@ /** Optional CF stack tags */ |
export interface IServerlessResources { | ||
Resources: IDynamoDbTableResource | Record<string, IServerlessResource>; | ||
extensions: any; | ||
Outputs: Record<string, IServerlessOutput>; | ||
extensions?: any; | ||
Outputs?: Record<string, IServerlessOutput>; | ||
} | ||
@@ -6,0 +6,0 @@ export interface IServerlessResource { |
import { datetime } from "../aliases"; | ||
import { arn } from "../aws"; | ||
declare type Source = "ec2" | "s3" | "codestar"; | ||
export declare type Source = "ec2" | "s3" | "codestar"; | ||
export declare type IAwsEventSource = `aws.${Source}` | string; | ||
@@ -41,2 +41,1 @@ export declare type IAwsEventUrls = `${Source}.amazonaws.com` | string; | ||
} | ||
export {}; |
@@ -95,3 +95,3 @@ import { seconds, sql } from "../aliases"; | ||
}; | ||
eventBridge: { | ||
eventBridge?: { | ||
/** using the default AWS event bus. Example might be "rate(10 minutes)" */ | ||
@@ -98,0 +98,0 @@ schedule: string; |
@@ -7,2 +7,3 @@ import { minutes, scalar } from "../aliases"; | ||
import { IServerlessAuthorizer, IServerlessJwtAuthorizer } from "./serverless-authorizers"; | ||
import { IHttpApiCors } from "./serverless-http-api"; | ||
import { IServerlessIAMRole } from "./serverless-iam"; | ||
@@ -18,3 +19,3 @@ import { IHttpApiLogging, IRestApiLogging, IWebsocketLogging } from "./serverless-logging"; | ||
/** Service wide environment variables */ | ||
environment?: Record<string, scalar>; | ||
environment?: Record<string, scalar> | string; | ||
/** Set the default stage used. Default is "dev". */ | ||
@@ -50,7 +51,7 @@ stage?: "dev" | "test" | "prod" | string; | ||
httpApi: { | ||
id: string; | ||
name: string; | ||
payload: "1.0" | "2.0"; | ||
cors: boolean; | ||
authorizers: Record<string, IServerlessJwtAuthorizer>; | ||
id?: string; | ||
name?: string; | ||
payload?: "1.0" | "2.0"; | ||
cors?: boolean | IHttpApiCors; | ||
authorizers?: Record<string, IServerlessJwtAuthorizer>; | ||
}; | ||
@@ -57,0 +58,0 @@ /** Optional CF stack tags */ |
export interface IServerlessResources { | ||
Resources: IDynamoDbTableResource | Record<string, IServerlessResource>; | ||
extensions: any; | ||
Outputs: Record<string, IServerlessOutput>; | ||
extensions?: any; | ||
Outputs?: Record<string, IServerlessOutput>; | ||
} | ||
@@ -6,0 +6,0 @@ export interface IServerlessResource { |
{ | ||
"name": "common-types", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304382