UNPKG

acquia-dam-sdk

Version:
18 lines (16 loc) 604 B
/** Options for {@link ApiClient.sendRequest} */ interface ApiRequestParams { /** The version of the API being used */ apiVersion: ApiVersions; /** The body of the request */ body?: object; /** The HTTP method */ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'; /** The path of the request, excluding the base URL */ path: string; /** The query string parameters sent in the URL */ queryStringParams?: object; } type ApiVersions = '1' | '2'; type ErrorTypes = 'SDK Error' | 'HTTP Error'; export type { ApiRequestParams, ApiVersions, ErrorTypes };