UNPKG

@starsched/sdk

Version:

ABA clinic control and management service API SDK

29 lines 967 B
import type { StarSchedAPIProtocols } from '../../../common/types/common'; import type { HttpClientProtocols } from '../../../http/protocols/client.protocols'; import type { Profile } from './profile'; type GetMyProfileFailure = { code: 'token.not.provided'; message: string; } | { code: 'token.invalid'; message: string; } | { code: 'token.expired'; message: string; } | { code: 'user.not.exists'; message: string; } | { code: 'internal'; message: string; }; export declare namespace GetMyProfile { type Options = Pick<HttpClientProtocols.GetOptions, 'abortSignal'>; type Success = Profile; type ErrorCodes = 'token.not.provided' | 'token.invalid' | 'token.expired' | 'user.not.exists' | 'internal'; type Failure = GetMyProfileFailure; type Output = Success | Failure; type Response = StarSchedAPIProtocols.Response<Success, Failure>; } export {}; //# sourceMappingURL=get-my-profile.protocols.d.ts.map