import { HttpClient } from '../http/client.js'; import { Environment } from '../http/environment.js'; import { SdkConfig } from '../http/types.js'; /** * Base service class that all API service classes extend. * Provides common functionality including HTTP client management and configuration. */ export class BaseService { /** The HTTP client instance used to make API requests */ public client: HttpClient; constructor(public config: SdkConfig) { this.client = new HttpClient(this.config); } set baseUrl(baseUrl: string) { this.config.baseUrl = baseUrl; } set environment(environment: Environment) { this.config.environment = environment; } set timeoutMs(timeoutMs: number) { this.config.timeoutMs = timeoutMs; } set token(token: string) { this.config.token = token; } }