UNPKG

@starsched/sdk

Version:

ABA clinic control and management service API SDK

124 lines 3.34 kB
import type { StarSchedAPIProtocols } from '../../../common/types/common'; import type { HttpClientProtocols } from '../../../http/protocols/client.protocols'; export declare namespace CreateCompanyInvite { type Input = { company_id: string; email: string; role: 'collaborator' | 'manager'; }; type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>; type Success = undefined; type ErrorCodes = 'validation' | 'token.not.provided' | 'token.invalid' | 'token.expired' | 'access.denied' | 'user.not.exists' | 'company.not.exists' | 'company.member.exists' | 'company.invite.exists' | 'internal'; type Failure = { code: "validation"; message: string; validation: { field: "company_id"; type: "required"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "company_id"; type: "type"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "company_id"; type: "invalid"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "email"; type: "required"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "email"; type: "type"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "email"; type: "invalid"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "role"; type: "required"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "role"; type: "type"; value?: number; message: string; }; } | { code: "validation"; message: string; validation: { field: "role"; type: "invalid"; value?: number; message: string; }; } | { code: "token.not.provided"; message: string; } | { code: "token.invalid"; message: string; } | { code: "token.expired"; message: string; } | { code: "access.denied"; message: string; } | { code: "user.not.exists"; message: string; } | { code: "company.not.exists"; message: string; } | { code: "company.member.exists"; message: string; } | { code: "company.invite.exists"; message: string; } | { code: "internal"; message: string; }; type Output = Success | Failure; type Response = StarSchedAPIProtocols.Response<Success, Failure>; } //# sourceMappingURL=create.protocols.d.ts.map