@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
162 lines • 4.89 kB
TypeScript
export declare const updateAccountSchema: import("yup").ObjectSchema<{
email: string | undefined;
address_1: string | undefined;
city: string | undefined;
company: string | undefined;
country: string | undefined;
first_name: string | undefined;
last_name: string | undefined;
address_2: string | undefined;
phone: string | undefined;
state: string | undefined;
tax_id: string | undefined;
zip: string | undefined;
}, import("yup").AnyObject, {
email: undefined;
address_1: undefined;
city: undefined;
company: undefined;
country: undefined;
first_name: undefined;
last_name: undefined;
address_2: undefined;
phone: undefined;
state: undefined;
tax_id: undefined;
zip: undefined;
}, "">;
export declare const createOAuthClientSchema: import("yup").ObjectSchema<{
label: string;
redirect_uri: string;
}, import("yup").AnyObject, {
label: undefined;
redirect_uri: undefined;
}, "">;
export declare const updateOAuthClientSchema: import("yup").ObjectSchema<{
label: string | undefined;
redirect_uri: string | undefined;
}, import("yup").AnyObject, {
label: undefined;
redirect_uri: undefined;
}, "">;
export declare const PaymentSchema: import("yup").ObjectSchema<{
usd: string;
}, import("yup").AnyObject, {
usd: undefined;
}, "">;
export declare const CreditCardSchema: import("yup").ObjectSchema<{
card_number: string;
expiry_year: number;
expiry_month: number;
cvv: string;
}, import("yup").AnyObject, {
card_number: undefined;
expiry_year: undefined;
expiry_month: undefined;
cvv: undefined;
}, "">;
export declare const PaymentMethodSchema: import("yup").ObjectSchema<{
type: {} | undefined;
data: {};
is_default: NonNullable<boolean | undefined>;
}, import("yup").AnyObject, {
type: undefined;
data: {};
is_default: undefined;
}, "">;
export declare const userNameErrors: {
lengthError: string;
consecutiveError: string;
charsError: string;
spacesError: string;
nonAsciiError: string;
};
export declare const CreateUserSchema: import("yup").ObjectSchema<{
username: string;
email: string;
restricted: NonNullable<boolean | undefined>;
}, import("yup").AnyObject, {
username: undefined;
email: undefined;
restricted: undefined;
}, "">;
export declare const UpdateUserNameSchema: import("yup").ObjectSchema<{
username: string;
}, import("yup").AnyObject, {
username: undefined;
}, "">;
export declare const UpdateUserEmailSchema: import("yup").ObjectSchema<{
email: string;
}, import("yup").AnyObject, {
email: undefined;
}, "">;
export declare const UpdateUserSchema: import("yup").ObjectSchema<{
username: string | undefined;
email: string | undefined;
restricted: boolean | undefined;
}, import("yup").AnyObject, {
username: undefined;
email: undefined;
restricted: undefined;
}, "">;
export declare const UpdateGrantSchema: import("yup").ObjectSchema<{
global: {};
linode: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
domain: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
nodebalancer: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
image: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
longview: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
stackscript: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
volume: {
permissions?: "read_only" | "read_write" | null | undefined;
id: number;
}[] | undefined;
}, import("yup").AnyObject, {
global: {};
linode: "";
domain: "";
nodebalancer: "";
image: "";
longview: "";
stackscript: "";
volume: "";
}, "">;
export declare const UpdateAccountSettingsSchema: import("yup").ObjectSchema<{
network_helper: boolean | undefined;
backups_enabled: boolean | undefined;
managed: boolean | undefined;
longview_subscription: string | null | undefined;
object_storage: string | undefined;
interfaces_for_new_linodes: string | undefined;
}, import("yup").AnyObject, {
network_helper: undefined;
backups_enabled: undefined;
managed: undefined;
longview_subscription: undefined;
object_storage: undefined;
interfaces_for_new_linodes: undefined;
}, "">;
export declare const PromoCodeSchema: import("yup").ObjectSchema<{
promo_code: string;
}, import("yup").AnyObject, {
promo_code: undefined;
}, "">;
//# sourceMappingURL=account.schema.d.ts.map