UNPKG

@linode/validation

Version:

Yup validation schemas for use with the Linode APIv4

67 lines 2.12 kB
export declare const createDatabaseSchema: import("yup").ObjectSchema<{ label: string; engine: string; region: string; type: string; cluster_size: number; }, import("yup").AnyObject, { label: undefined; engine: undefined; region: undefined; type: undefined; cluster_size: undefined; }, "">; export declare const getDynamicDatabaseSchema: (isVPCSelected: boolean) => import("yup").ObjectSchema<{ label: string; engine: string; region: string; type: string; cluster_size: number; }, import("yup").AnyObject, { label: undefined; engine: undefined; region: undefined; type: undefined; cluster_size: undefined; }, "">; export declare const updateDatabaseSchema: import("yup").ObjectSchema<{ label: import("yup").Maybe<string | undefined>; allow_list: import("yup").Maybe<(string | undefined)[] | undefined>; updates: { frequency?: string | undefined; duration?: number | undefined; hour_of_day?: number | undefined; day_of_week?: number | undefined; week_of_month?: number | null | undefined; } | null | undefined; type: import("yup").Maybe<string | undefined>; }, import("yup").AnyObject, { label: undefined; allow_list: ""; updates: { frequency: undefined; duration: undefined; hour_of_day: undefined; day_of_week: undefined; week_of_month: undefined; }; type: undefined; }, "">; export declare const updatePrivateNetworkSchema: import("yup").ObjectSchema<{ private_network: { vpc_id: number; subnet_id: number; public_access: boolean; }; }, import("yup").AnyObject, { private_network: { vpc_id: undefined; subnet_id: undefined; public_access: false; }; }, "">; /** * Main function that creates a Yup validation schema dynamically based on API configurations. */ export declare const createDynamicAdvancedConfigSchema: (allConfigurations: any[]) => import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">; //# sourceMappingURL=databases.schema.d.ts.map