mono/packages/commons/dist/component.d.ts
2025-01-24 12:29:57 +01:00

280 lines
7.6 KiB
TypeScript

import { z } from "zod";
export declare const AuthorSchema: z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name?: string;
url?: string;
}, {
name?: string;
url?: string;
}>;
export declare const ContentSchema: z.ZodObject<{
body: z.ZodOptional<z.ZodString>;
features: z.ZodOptional<z.ZodString>;
highlights: z.ZodOptional<z.ZodString>;
specs: z.ZodOptional<z.ZodString>;
license: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
}, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
}>;
export declare const AssetsSchema: z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
gallery?: string[];
renderings?: string[];
components?: string[];
}, {
gallery?: string[];
renderings?: string[];
components?: string[];
}>;
export declare const ProductionSchema: z.ZodObject<{
"fusion-folder": z.ZodString;
"nc-folder": z.ZodString;
cam: z.ZodArray<z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name?: string;
url?: string;
}, {
name?: string;
url?: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
}, {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
}>;
export declare const ComponentConfigSchema: z.ZodObject<{
cart_id: z.ZodOptional<z.ZodString>;
code: z.ZodString;
price: z.ZodOptional<z.ZodNumber>;
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
cscartId: z.ZodOptional<z.ZodNumber>;
vendorId: z.ZodOptional<z.ZodNumber>;
version: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
authors: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name?: string;
url?: string;
}, {
name?: string;
url?: string;
}>, "many">>;
replaced_by: z.ZodOptional<z.ZodString>;
alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
flags: z.ZodOptional<z.ZodNumber>;
download: z.ZodOptional<z.ZodBoolean>;
name: z.ZodString;
edrawings: z.ZodOptional<z.ZodString>;
showDimensions: z.ZodOptional<z.ZodBoolean>;
showParts: z.ZodOptional<z.ZodBoolean>;
slug: z.ZodString;
score: z.ZodOptional<z.ZodNumber>;
Preview3d: z.ZodOptional<z.ZodBoolean>;
keywords: z.ZodOptional<z.ZodString>;
meta_keywords: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodObject<{
body: z.ZodOptional<z.ZodString>;
features: z.ZodOptional<z.ZodString>;
highlights: z.ZodOptional<z.ZodString>;
specs: z.ZodOptional<z.ZodString>;
license: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
}, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
}>>;
assets: z.ZodOptional<z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
gallery?: string[];
renderings?: string[];
components?: string[];
}, {
gallery?: string[];
renderings?: string[];
components?: string[];
}>>;
/**
* @deprecated
*/
howto_categories: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
steps: z.ZodOptional<z.ZodAny>;
sourceLanguage: z.ZodOptional<z.ZodString>;
category: z.ZodString;
product_dimensions: z.ZodOptional<z.ZodString>;
production: z.ZodOptional<z.ZodObject<{
"fusion-folder": z.ZodString;
"nc-folder": z.ZodString;
cam: z.ZodArray<z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name?: string;
url?: string;
}, {
name?: string;
url?: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
}, {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
}>>;
}, "strip", z.ZodTypeAny, {
name?: string;
code?: string;
status?: string;
cart_id?: string;
price?: number;
cscartCats?: number[];
cscartId?: number;
vendorId?: number;
version?: string;
authors?: {
name?: string;
url?: string;
}[];
replaced_by?: string;
alternatives?: string[];
flags?: number;
download?: boolean;
edrawings?: string;
showDimensions?: boolean;
showParts?: boolean;
slug?: string;
score?: number;
Preview3d?: boolean;
keywords?: string;
meta_keywords?: string;
content?: {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
};
assets?: {
gallery?: string[];
renderings?: string[];
components?: string[];
};
howto_categories?: string | string[];
steps?: any;
sourceLanguage?: string;
category?: string;
product_dimensions?: string;
production?: {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
};
}, {
name?: string;
code?: string;
status?: string;
cart_id?: string;
price?: number;
cscartCats?: number[];
cscartId?: number;
vendorId?: number;
version?: string;
authors?: {
name?: string;
url?: string;
}[];
replaced_by?: string;
alternatives?: string[];
flags?: number;
download?: boolean;
edrawings?: string;
showDimensions?: boolean;
showParts?: boolean;
slug?: string;
score?: number;
Preview3d?: boolean;
keywords?: string;
meta_keywords?: string;
content?: {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
};
assets?: {
gallery?: string[];
renderings?: string[];
components?: string[];
};
howto_categories?: string | string[];
steps?: any;
sourceLanguage?: string;
category?: string;
product_dimensions?: string;
production?: {
"fusion-folder"?: string;
"nc-folder"?: string;
cam?: {
name?: string;
url?: string;
}[];
};
}>;
export type IComponentConfig = z.infer<typeof ComponentConfigSchema>;
export declare const get: (src: any, root: any, type: any) => {
path: any;
config: any;
}[];