schema
Type Aliases
'Read the “', Type Aliases, '” section'StudioCMSDevAppsConfig
'Read the “', StudioCMSDevAppsConfig, '” section'type StudioCMSDevAppsConfig = { appsConfig: { libSQLViewer: { enabled: boolean; }; wpImporter: { enabled: boolean; endpoint: string; }; }; endpoint: string; verbose: boolean;};
Defined in: studiocms/packages/studiocms_devapps/src/schema/index.ts:103
Represents the configuration type for StudioCMS development applications.
This type is derived from the output of the StudioCMSDevAppsSchema
.
Type declaration
'Read the “', Type declaration, '” section'appsConfig
'Read the “', appsConfig, '” section'appsConfig: { libSQLViewer: { enabled: boolean; }; wpImporter: { enabled: boolean; endpoint: string; }; } = AppsConfigSchema;
appsConfig.libSQLViewer
'Read the “', appsConfig.libSQLViewer, '” section'libSQLViewer: { enabled: boolean; } = libSQL;
appsConfig.libSQLViewer.enabled
'Read the “', appsConfig.libSQLViewer.enabled, '” section'enabled: boolean;
appsConfig.wpImporter
'Read the “', appsConfig.wpImporter, '” section'wpImporter: { enabled: boolean; endpoint: string; } = wpAPI;
appsConfig.wpImporter.enabled
'Read the “', appsConfig.wpImporter.enabled, '” section'enabled: boolean;
appsConfig.wpImporter.endpoint
'Read the “', appsConfig.wpImporter.endpoint, '” section'endpoint: string;
endpoint: string;
verbose: boolean;
StudioCMSDevAppsOptions
'Read the “', StudioCMSDevAppsOptions, '” section'type StudioCMSDevAppsOptions = typeof StudioCMSDevAppsSchema._input;
Defined in: studiocms/packages/studiocms_devapps/src/schema/index.ts:97
Represents the options for StudioCMS development applications.
This type is derived from the _input
property of the StudioCMSDevAppsSchema
object.
Variables
'Read the “', Variables, '” section'AppsConfigSchema
'Read the “', AppsConfigSchema, '” section'const AppsConfigSchema: ZodEffects<ZodDefault<ZodOptional<ZodObject<{ libSQLViewer: ZodDefault<ZodBoolean>; wpImporter: ZodUnion<[ZodBoolean, ZodObject<{ endpoint: ZodDefault<ZodOptional<...>>; }, "strip", ZodTypeAny, { endpoint: string; }, { endpoint: string; }>]>; }, "strip", ZodTypeAny, { libSQLViewer: boolean; wpImporter: | boolean | { endpoint: string; }; }, { libSQLViewer: boolean; wpImporter: | boolean | { endpoint: string; }; }>>>, { libSQLViewer: { enabled: boolean; }; wpImporter: { enabled: boolean; endpoint: string; }; }, | undefined | { libSQLViewer: boolean; wpImporter: | boolean | { endpoint: string; };}>;
Defined in: studiocms/packages/studiocms_devapps/src/schema/index.ts:26
Schema for the configuration of StudioCMS development applications.
This schema defines the configuration options for the following applications:
- Astro DB LibSQL Viewer App: Controlled by the
libSQLViewer
property. - StudioCMS WP API Importer App: Controlled by the
wpImporter
property.
The schema provides default values and transformation logic to ensure the configuration is in the expected format.
An object with the transformed configuration:
libSQLViewer
- An object with anenabled
property indicating the app’s status.wpImporter
- An object withenabled
andendpoint
properties for the app’s configuration.
StudioCMSDevAppsSchema
'Read the “', StudioCMSDevAppsSchema, '” section'const StudioCMSDevAppsSchema: ZodDefault<StudioCMSDevAppsConfig>;
Defined in: studiocms/packages/studiocms_devapps/src/schema/index.ts:83
Schema definition for StudioCMS development applications configuration.
This schema defines the structure of the configuration object for StudioCMS development applications. It includes the following properties:
endpoint
(optional): A string representing the endpoint for the dev apps. Defaults to ‘_studiocms-devapps’.verbose
(optional): A boolean indicating whether verbose logging is enabled. Defaults tofalse
.appsConfig
: The configuration schema for the applications.
The entire schema is optional and defaults to an empty object if not provided.