UNPKG

@starsched/sdk

Version:

ABA clinic control and management service API SDK

24 lines (23 loc) 586 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Profiles = void 0; class Profiles { httpClient; constructor(httpClient) { this.httpClient = httpClient; } async getMyProfile(options) { const response = await this.httpClient.get('/v1/profiles/me', options); if (!response.ok) { return { data: null, error: response.body }; } return { data: response.body, error: null }; } } exports.Profiles = Profiles;