0.3.3 • Published 6 months ago

@types/aws-api-gateway-client v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/aws-api-gateway-client

Summary

This package contains type definitions for aws-api-gateway-client (https://github.com/kndt84/aws-api-gateway-client).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-api-gateway-client.

index.d.ts

// Type definitions for aws-api-gateway-client 0.3
// Project: https://github.com/kndt84/aws-api-gateway-client
// Definitions by: Jussi Kinnula <https://github.com/jussikinnula>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ApiGatewayClientConfig {
    accessKey?: string | undefined;
    secretKey?: string | undefined;
    sessionToken?: string | undefined;
    region?: string | undefined;
    apiKey?: string | undefined;
    invokeUrl: string | undefined;
    service?: string | undefined;
    defaultContentType?: string | undefined;
    defaultAcceptType?: string | undefined;
    systemClockOffset?: number | undefined;
    headers?: Record<string, string | undefined>;
    host?: string | undefined;
}

export interface Response {
    data: unknown;
    status: number;
    statusText: string;
    headers: unknown;
    request?: unknown;
}

export interface ApiGatewayClient {
    invokeApi(
        params: Record<string, unknown>,
        pathTemplate: string,
        method: 'GET' | 'POST' | 'DELETE' | 'UPDATE',
        additionalParams?: {
            headers?: { [key: string]: unknown };
            queryParams?: { [key: string]: string | number | boolean };
            timeout?: number;
        },
        body?: string
    ): Promise<Response>;
}

export const apigClientFactory: {
    newClient(apiGatewayClientConfig: ApiGatewayClientConfig): ApiGatewayClient;
};

export default apigClientFactory;

Additional Details

  • Last updated: Mon, 18 Apr 2022 18:31:16 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jussi Kinnula.

0.3.2

7 months ago

0.3.1

8 months ago

0.3.3

6 months ago

0.3.0

2 years ago