@starsched/sdk
Version:
ABA clinic control and management service API SDK
88 lines • 2.43 kB
TypeScript
import { StarSchedAPIProtocols } from "../../../common/types/common";
import { HttpClientProtocols } from "../../../http/protocols/client.protocols";
export declare namespace CreateCompanyPatient {
type Input = {
company_id: string;
name: string;
};
type Options = Pick<HttpClientProtocols.GetOptions, "abortSignal">;
type Success = void;
type ErrorCodes = "validation" | "token.not.provided" | "token.invalid" | "token.expired" | "access.denied" | "user.not.exists" | "company.not.exists" | "company.patient.limit.exceeded" | "internal";
type Failure = {
code: "validation";
message: string;
validation: {
field: "company_id";
type: "required";
message: string;
};
} | {
code: "validation";
message: string;
validation: {
field: "company_id";
type: "type";
message: string;
};
} | {
code: "validation";
message: string;
validation: {
field: "company_id";
type: "invalid";
message: string;
};
} | {
code: "validation";
message: string;
validation: {
field: "name";
type: "required";
message: string;
};
} | {
code: "validation";
message: string;
validation: {
field: "name";
type: "type";
message: string;
};
} | {
code: "validation";
message: string;
validation: {
field: "name";
type: "minlength";
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.patient.limit.exceeded";
message: string;
} | {
code: "internal";
message: string;
};
type Output = Success | Failure;
type Response = StarSchedAPIProtocols.Response<Success, Failure>;
}
//# sourceMappingURL=create.protocols.d.ts.map