liveperson-functions-client
Version:
JavaScript client for LivePerson Functions.
18 lines (17 loc) • 659 B
TypeScript
import { InvocationDomain } from './apiSpec';
import { HTTP_METHOD } from './getUrlOptions';
import { AuthorizationHeaderOptions } from './authorizationHeaderOptions';
import { Headers } from './headers';
export interface FetchOptions {
readonly url: string;
readonly body?: unknown;
readonly headers?: Headers;
readonly method?: (typeof HTTP_METHOD)[keyof typeof HTTP_METHOD];
}
export interface DoFetchOptions extends AuthorizationHeaderOptions {
readonly body?: InvocationDomain;
readonly headers?: Record<string, string>;
readonly requestId: string;
readonly failOnErrorStatusCode?: boolean;
readonly domain: string;
}