UNPKG

amazon-pa-api5-node-ts

Version:

ProductAdvertisingAPI 5.0 NodeJS SDK rewritten in TypeScript.

27 lines (26 loc) 2.05 kB
/** * Adapted to TypeScript by David A. Ball. (c) 2024. * * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ export declare const createAuthorizationHeaders: (timestamp: number | string | Date, accessKey: string, region: string, service: string, signedHeaders: string, signature: string) => string; export declare const createCanonicalRequest: (method: string, pathname: string, query: Record<string, string | number | boolean>, headers: Record<string, any>, payload: any) => string; export declare const createCanonicalQueryString: (params: Record<string, string | number | boolean>) => string; export declare const createCanonicalHeaders: (headers: Record<string, any>) => string; export declare const createSignedHeaders: (headers: Record<string, any>) => string; export declare const createCredentialScope: (time: number | string | Date, region: string, service: string) => string; export declare const createStringToSign: (time: number | string | Date, region: string, service: string, request: string) => string; export declare const createSignature: (secret: string, time: number | string | Date, region: string, service: string, stringToSign: string) => string; export declare const toAmzDate: (time: number | string | Date) => string; export declare const createAuthorizationHeader: (accessKey: string, secretKey: string, requestHeaders: Record<string, any>, httpMethod: string, path: string, payload: Record<string, any>, region: string, service: string, timestamp: number | string | Date) => string;