UNPKG

@starsched/sdk

Version:

ABA clinic control and management service API SDK

25 lines (24 loc) 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CompaniesPlan = void 0; class CompaniesPlan { httpClient; constructor(httpClient) { this.httpClient = httpClient; } async get(input, options) { const { company_id } = input; const response = await this.httpClient.get(`/v1/companies/${company_id}/plan`, { ...options }); if (!response.ok) { return { data: null, error: response.body }; } return { data: response.body, error: null }; } } exports.CompaniesPlan = CompaniesPlan;