Notes/src/services/request_interface.ts

21 lines
368 B
TypeScript
Raw Normal View History

2024-02-18 13:10:51 +02:00
export interface CookieJar {
header?: string;
}
export interface ExecOpts {
2024-04-13 17:30:48 +03:00
proxy: string | null;
2024-02-18 13:10:51 +02:00
method: string;
url: string;
paging?: {
pageCount: number;
pageIndex: number;
requestId: string;
};
cookieJar?: CookieJar;
auth?: {
password?: string;
2025-01-09 18:07:02 +02:00
};
2024-02-18 13:10:51 +02:00
timeout: number;
2024-04-03 23:18:39 +03:00
body?: string | {};
}