UNPKG

@linode/validation

Version:

Yup validation schemas for use with the Linode APIv4

45 lines 1.62 kB
export declare const createDatabaseSchema: import("yup").ObjectSchema<{ label: string; engine: string; region: string; type: string; cluster_size: number; replication_type: import("yup").Maybe<string | undefined>; replication_commit_type: import("yup").Maybe<string | undefined>; }, import("yup").AnyObject, { label: undefined; engine: undefined; region: undefined; type: undefined; cluster_size: undefined; replication_type: undefined; replication_commit_type: 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; }, "">; /** * 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