@starsched/sdk
Version:
ABA clinic control and management service API SDK
102 lines • 2.71 kB
TypeScript
import type { StarSchedAPIProtocols } from '../../../common/types/common';
import type { HttpClientProtocols } from '../../../http/protocols/client.protocols';
export declare namespace RequestCompanySignUp {
type Input = {
owner_name: string;
owner_email: string;
company_name: string;
};
type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>;
type ErrorCodes = 'validation' | 'user.email.exists' | 'internal';
type Failure = {
code: 'internal';
message: string;
} | {
code: 'user.email.exists';
message: string;
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_name';
type: 'required';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_name';
type: 'type';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_name';
type: 'minlength';
value: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_email';
type: 'required';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_email';
type: 'type';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'owner_email';
type: 'invalid';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'company_name';
type: 'required';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'company_name';
type: 'type';
value?: number;
message: string;
};
} | {
code: 'validation';
message: string;
validation: {
field: 'company_name';
type: 'minlength';
value: number;
message: string;
};
};
type Output = Failure;
type Response = StarSchedAPIProtocols.Response<null, Failure>;
}
//# sourceMappingURL=request-company-sign-up.protocols.d.ts.map