FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708
This commit is contained in:
43
node_modules/svix/dist/request.d.ts
generated
vendored
Normal file
43
node_modules/svix/dist/request.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { type XOR } from "./util";
|
||||
export declare const LIB_VERSION = "1.90.0";
|
||||
export declare enum HttpMethod {
|
||||
GET = "GET",
|
||||
HEAD = "HEAD",
|
||||
POST = "POST",
|
||||
PUT = "PUT",
|
||||
DELETE = "DELETE",
|
||||
CONNECT = "CONNECT",
|
||||
OPTIONS = "OPTIONS",
|
||||
TRACE = "TRACE",
|
||||
PATCH = "PATCH"
|
||||
}
|
||||
export type SvixRequestContext = {
|
||||
baseUrl: string;
|
||||
token: string;
|
||||
timeout?: number;
|
||||
fetch?: typeof fetch;
|
||||
} & XOR<{
|
||||
retryScheduleInMs?: number[];
|
||||
}, {
|
||||
numRetries?: number;
|
||||
}>;
|
||||
type QueryParameter = string | boolean | number | Date | string[] | null | undefined;
|
||||
export declare class SvixRequest {
|
||||
private readonly method;
|
||||
private path;
|
||||
constructor(method: HttpMethod, path: string);
|
||||
private body?;
|
||||
private queryParams;
|
||||
private headerParams;
|
||||
setPathParam(name: string, value: string): void;
|
||||
setQueryParams(params: {
|
||||
[name: string]: QueryParameter;
|
||||
}): void;
|
||||
setQueryParam(name: string, value: QueryParameter): void;
|
||||
setHeaderParam(name: string, value?: string): void;
|
||||
setBody(value: any): void;
|
||||
send<R>(ctx: SvixRequestContext, parseResponseBody: (jsonObject: any) => R): Promise<R>;
|
||||
sendNoResponseBody(ctx: SvixRequestContext): Promise<void>;
|
||||
private sendInner;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user