schema
Type Aliases
Section titled “Type Aliases”StudioCMSDevAppsConfig
Section titled “StudioCMSDevAppsConfig”type StudioCMSDevAppsConfig = { appsConfig: { libSQLViewer: { enabled: boolean; endpoint: string; }; wpImporter: { enabled: boolean; endpoint: string; }; }; endpoint: string; verbose: boolean;};Defined in: studiocms/packages/@studiocms/devapps/src/schema/index.ts:108^
Represents the configuration type for StudioCMS development applications.
This type is derived from the output of the StudioCMSDevAppsSchema.
Type Declaration
Section titled “Type Declaration”appsConfig
Section titled “appsConfig”appsConfig: { libSQLViewer: { enabled: boolean; endpoint: string; }; wpImporter: { enabled: boolean; endpoint: string; };} = AppsConfigSchema;appsConfig.libSQLViewer
Section titled “appsConfig.libSQLViewer”libSQLViewer: { enabled: boolean; endpoint: string;} = libSQL;appsConfig.libSQLViewer.enabled
Section titled “appsConfig.libSQLViewer.enabled”enabled: boolean;appsConfig.libSQLViewer.endpoint
Section titled “appsConfig.libSQLViewer.endpoint”endpoint: string;appsConfig.wpImporter
Section titled “appsConfig.wpImporter”wpImporter: { enabled: boolean; endpoint: string;} = wpAPI;appsConfig.wpImporter.enabled
Section titled “appsConfig.wpImporter.enabled”enabled: boolean;appsConfig.wpImporter.endpoint
Section titled “appsConfig.wpImporter.endpoint”endpoint: string;endpoint
Section titled “endpoint”endpoint: string;verbose
Section titled “verbose”verbose: boolean;StudioCMSDevAppsOptions
Section titled “StudioCMSDevAppsOptions”type StudioCMSDevAppsOptions = typeof StudioCMSDevAppsSchema._input;Defined in: studiocms/packages/@studiocms/devapps/src/schema/index.ts:102^
Represents the options for StudioCMS development applications.
This type is derived from the _input property of the StudioCMSDevAppsSchema object.
Variables
Section titled “Variables”AppsConfigSchema
Section titled “AppsConfigSchema”const AppsConfigSchema: ZodEffects<ZodDefault<ZodOptional<ZodObject<{ libSQLViewer: ZodUnion<[ZodBoolean, ZodObject<{ endpoint: ZodDefault<ZodOptional<...>>; }, "strip", ZodTypeAny, { endpoint: string; }, { endpoint?: string; }>]>; wpImporter: ZodUnion<[ZodBoolean, ZodObject<{ endpoint: ZodDefault<ZodOptional<...>>; }, "strip", ZodTypeAny, { endpoint: string; }, { endpoint?: string; }>]>;}, "strip", ZodTypeAny, { libSQLViewer: | boolean | { endpoint: string; }; wpImporter: | boolean | { endpoint: string; };}, { libSQLViewer: | boolean | { endpoint?: string; }; wpImporter: | boolean | { endpoint?: string; };}>>>, { libSQLViewer: { enabled: boolean; endpoint: string; }; wpImporter: { enabled: boolean; endpoint: string; };}, | undefined | { libSQLViewer: | boolean | { endpoint?: string; }; 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
libSQLViewerproperty. - StudioCMS WP API Importer App: Controlled by the
wpImporterproperty.
The schema provides default values and transformation logic to ensure the configuration is in the expected format.
Returns
Section titled “Returns”An object with the transformed configuration:
libSQLViewer- An object with anenabledproperty indicating the app’s status.wpImporter- An object withenabledandendpointproperties for the app’s configuration.
StudioCMSDevAppsSchema
Section titled “StudioCMSDevAppsSchema”const StudioCMSDevAppsSchema: ZodDefault<StudioCMSDevAppsConfig>;Defined in: studiocms/packages/@studiocms/devapps/src/schema/index.ts:88^
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.