trainingpeaks-sdk
Version:
TypeScript SDK for TrainingPeaks API integration
20 lines • 1.1 kB
TypeScript
import type { HttpClient } from '../../../../adapters/http/index.js';
import type { HttpResponse } from '../../../../application/index.js';
import type { Credentials } from '../../../../domain/index.js';
export declare const LOGIN_API_BASE_URL: string;
export declare const LOGIN_FORM_HEADERS: {
readonly 'accept-language': "en-US,en;q=0.9";
readonly 'cache-control': "max-age=0";
readonly 'content-type': "application/x-www-form-urlencoded";
readonly origin: "null";
readonly priority: "u=0, i";
readonly 'sec-fetch-dest': "document";
readonly 'sec-fetch-mode': "navigate";
readonly 'sec-fetch-site': "same-origin";
readonly 'sec-fetch-user': "?1";
readonly 'upgrade-insecure-requests': "1";
};
export declare const getLoginPage: (httpClient: HttpClient) => Promise<HttpResponse<string>>;
export declare const submitLogin: (httpClient: HttpClient, requestVerificationToken: string, credentials: Credentials) => Promise<HttpResponse<string>>;
export declare const getRequestVerificationToken: (html: string) => string | null;
//# sourceMappingURL=login.api.d.ts.map