UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

107 lines (106 loc) • 5.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.options = void 0; const zod_1 = require("zod"); const date_1 = require("./date"); exports.options = zod_1.z.object({ siteurl: zod_1.z.string(), home: zod_1.z.string(), blogname: zod_1.z.string(), blogdescription: zod_1.z.string(), users_can_register: zod_1.z.number().min(0).max(1), admin_email: zod_1.z.email(), start_of_week: zod_1.z.number().min(0).max(1), // You might want to have specific checks if it's always "0" or "1" use_balanceTags: zod_1.z.number().min(0).max(1), use_smilies: zod_1.z.number().min(0).max(1), require_name_email: zod_1.z.number().min(0).max(1), comments_notify: zod_1.z.number().min(0).max(1), posts_per_rss: zod_1.z.number(), rss_use_excerpt: zod_1.z.number().min(0).max(1), mailserver_url: zod_1.z.string(), mailserver_login: zod_1.z.email(), mailserver_pass: zod_1.z.string(), mailserver_port: zod_1.z.number(), default_category: zod_1.z.number(), default_comment_status: zod_1.z.string(), default_ping_status: zod_1.z.string(), default_pingback_flag: zod_1.z.number().min(0).max(1), posts_per_page: zod_1.z.number(), date_format: zod_1.z.string(), time_format: zod_1.z.string(), links_updated_date_format: zod_1.z.string(), comment_moderation: zod_1.z.number().min(0).max(1), moderation_notify: zod_1.z.number().min(0).max(1), permalink_structure: zod_1.z.string(), rewrite_rules: zod_1.z.string(), hack_file: zod_1.z.number().min(0).max(1), blog_charset: zod_1.z.string(), moderation_keys: zod_1.z.string(), active_plugins: zod_1.z.array(zod_1.z.string()), category_base: zod_1.z.string(), ping_sites: zod_1.z.string(), comment_max_links: zod_1.z.number(), gmt_offset: zod_1.z.any(), // You might want to define this more strictly based on how gmtOffset is defined default_email_category: zod_1.z.number(), recently_edited: zod_1.z.string(), template: zod_1.z.any(), // You might want to define this more strictly based on how template is defined stylesheet: zod_1.z.any(), // You might want to define this more strictly based on how stylesheet is defined comment_registration: zod_1.z.number().min(0).max(1), html_type: zod_1.z.string(), use_trackback: zod_1.z.number().min(0).max(1), default_role: zod_1.z.string(), db_version: zod_1.z.any(), // You might want to define this more strictly based on how WPDBversion is defined uploads_use_yearmonth_folders: zod_1.z.number().min(0).max(1), upload_path: zod_1.z.string(), blog_public: zod_1.z.string(), default_link_category: zod_1.z.number(), show_on_front: zod_1.z.string(), tag_base: zod_1.z.string(), show_avatars: zod_1.z.string(), avatar_rating: zod_1.z.string(), upload_url_path: zod_1.z.string(), thumbnail_size_w: zod_1.z.number(), thumbnail_size_h: zod_1.z.number(), thumbnail_crop: zod_1.z.number().min(0).max(1), medium_size_w: zod_1.z.number(), medium_size_h: zod_1.z.number(), avatar_default: zod_1.z.string(), large_size_w: zod_1.z.number(), large_size_h: zod_1.z.number(), image_default_link_type: zod_1.z.string(), image_default_size: zod_1.z.string(), image_default_align: zod_1.z.string(), close_comments_for_old_posts: zod_1.z.number().min(0).max(1), close_comments_days_old: zod_1.z.number(), thread_comments: zod_1.z.number().min(0).max(1), thread_comments_depth: zod_1.z.number(), page_comments: zod_1.z.number().min(0).max(1), comments_per_page: zod_1.z.number(), default_comments_page: zod_1.z.string(), comment_order: zod_1.z.string(), sticky_posts: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of sticky_posts widget_categories: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of widget_categories widget_text: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of widget_text widget_rss: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of widget_rss uninstall_plugins: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of uninstall_plugins timezone_string: zod_1.z.any(), // You might want to define this more strictly based on how timezoneString is defined page_for_posts: zod_1.z.number(), page_on_front: zod_1.z.number(), default_post_format: zod_1.z.number(), link_manager_enabled: zod_1.z.number().min(0).max(1), finished_splitting_shared_terms: zod_1.z.number().min(0).max(1), site_icon: zod_1.z.number(), medium_large_size_w: zod_1.z.number(), medium_large_size_h: zod_1.z.number(), wp_page_for_privacy_policy: zod_1.z.number(), show_comments_cookies_opt_in: zod_1.z.number().min(0).max(1), admin_email_lifespan: date_1.mySQLDateWithZeroDefaultDate, disallowed_keys: zod_1.z.string(), comment_previously_approved: zod_1.z.number().min(0).max(1), auto_plugin_theme_update_emails: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of auto_plugin_theme_update_emails auto_update_core_dev: zod_1.z.string(), auto_update_core_minor: zod_1.z.string(), auto_update_core_major: zod_1.z.string(), wp_force_deactivated_plugins: zod_1.z.array(zod_1.z.any()), // Define this based on the structure of wp_force_deactivated_plugins wp_attachment_pages_enabled: zod_1.z.number().min(0).max(1), });