@allthings/cloud-toolkit 2.3.0-dev.6 → 2.3.0-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import ClientError from './errors/clientError';
2
2
  import ServerError from './errors/serverError';
3
- import { Alagarr, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceRequest, IInterfaceResponse } from './types';
4
- export { Alagarr, ClientError, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceRequest, IInterfaceResponse, ServerError, };
3
+ import { Alagarr, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceResponse } from './types';
4
+ export { Alagarr, ClientError, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceResponse, ServerError, };
5
5
  declare const alagarr: (handler?: HandlerFunction, options?: IInterfaceAlagarrOptions) => Alagarr;
6
6
  export default alagarr;
@@ -1,6 +1,6 @@
1
- import AWSLambda from 'aws-lambda';
2
- export type Alagarr = (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, callback: AWSLambda.Callback) => void;
3
- export type HandlerFunction = (request: any, response: any, context?: AWSLambda.Context) => string | object | void | Promise<string | object | void>;
1
+ import { APIGatewayEvent, Callback, Context } from 'aws-lambda';
2
+ export type Alagarr = (event: APIGatewayEvent, context: Context, callback: Callback) => void;
3
+ export type HandlerFunction = (request: any, response: any, context?: Context) => string | object | void | Promise<string | object | void>;
4
4
  export type Logger = (request: any, response: any) => boolean;
5
5
  export type ErrorHandler = (request: IInterfaceRequest, response: IInterfaceResponse, error: any) => void;
6
6
  export interface IInterfaceAlagarrOptions {
@@ -30,9 +30,9 @@ export interface IInterfaceHeaders {
30
30
  export interface IInterfaceQueryParameters {
31
31
  readonly [name: string]: string;
32
32
  }
33
- export interface IInterfaceRequest extends AWSLambda.APIGatewayEvent {
33
+ export interface IInterfaceRequest extends APIGatewayEvent {
34
34
  readonly body: any;
35
- readonly context: AWSLambda.Context;
35
+ readonly context: Context;
36
36
  readonly cookies: IInterfaceCookie;
37
37
  readonly headers: IInterfaceHeaders;
38
38
  readonly hostname?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/cloud-toolkit",
3
- "version": "2.3.0-dev.6",
3
+ "version": "2.3.0-dev.8",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [
@@ -56,7 +56,6 @@
56
56
  "@aws-sdk/client-sqs": "3.799.0",
57
57
  "@aws-sdk/client-ssm": "3.799.0",
58
58
  "@aws-sdk/lib-dynamodb": "3.799.0",
59
- "aws-lambda": "1.0.7",
60
59
  "bottleneck": "2.19.5",
61
60
  "cross-fetch": "4.1.0",
62
61
  "nodemailer": "6.10.1",