export = PlatformConfig; /** * Represents the configuration for the platform. * * @class */ declare class PlatformConfig { /** @typedef {"TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"} logLevelEnum */ /** * Creates an instance of PlatformConfig. * * @param {Object} config - The platform configuration. * @param {string} config.companyId - The ID of the company. * @param {string} [config.domain='https://api.fynd.com'] - The domain for * API. Write the full domain. Default is `'https://api.fynd.com'` * @param {string} config.apiKey - The API key for authentication. * @param {string} config.apiSecret - The API secret for authentication. * @param {boolean} [config.useAutoRenewTimer=true] - Flag indicating whether * to use the auto-renew timer. Setting `true` will use timer based logic to * refresh the access token. With `false` will issue refresh token just * before any api call when it is expired. Default is `true` * @param {logLevelEnum} [config.logLevel='ERROR'] - The log level. Available * options: TRACE, DEBUG, INFO, WARN, ERROR. Default is `'ERROR'` * @param {object} [options] - Additional options. * @param {boolean} [options.strictResponseCheck=false] - Strict check for * response schema validation. Passing this `true` will check response * against response schema and throw FDKResponseValidationError if it * doesn't match. Default is `false` */ constructor(config: { companyId: string; domain?: string; apiKey: string; apiSecret: string; useAutoRenewTimer?: boolean; logLevel?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"; }, options?: { strictResponseCheck?: boolean; }); companyId: string; domain: string; apiKey: string; apiSecret: string; useAutoRenewTimer: boolean; oauthClient: OauthClient; logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"; extraHeaders: any[]; options: { strictResponseCheck: boolean; }; /** * Sets the log level for the platform. * * @param {logLevelEnum} level - The log level to set. */ setLogLevel(level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"): void; /** * Retrieves the access token from the OAuth client. * * @async * @returns {Promise} - The access token. */ getAccessToken(): Promise; } import OauthClient = require("./OAuthClient");