mono/packages/commons/dist/component.d.ts
2025-03-16 14:12:30 +01:00

948 lines
23 KiB
TypeScript

import { z } from "zod";
export declare const get: (src: any, root: any, type: any) => IComponentNode[];
export declare const UrlSchema: z.ZodEffects<z.ZodString, string, string>;
export declare const ExifSchema: z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>;
export declare const ImageMetaSchema: z.ZodObject<{
format: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
space: z.ZodString;
channels: z.ZodNumber;
depth: z.ZodString;
density: z.ZodNumber;
chromaSubsampling: z.ZodString;
isProgressive: z.ZodBoolean;
resolutionUnit: z.ZodString;
hasProfile: z.ZodBoolean;
hasAlpha: z.ZodBoolean;
orientation: z.ZodNumber;
exif: z.ZodAny;
}, "strip", z.ZodTypeAny, {
exif?: any;
format?: string;
width?: number;
height?: number;
space?: string;
channels?: number;
depth?: string;
density?: number;
chromaSubsampling?: string;
isProgressive?: boolean;
resolutionUnit?: string;
hasProfile?: boolean;
hasAlpha?: boolean;
orientation?: number;
}, {
exif?: any;
format?: string;
width?: number;
height?: number;
space?: string;
channels?: number;
depth?: string;
density?: number;
chromaSubsampling?: string;
isProgressive?: boolean;
resolutionUnit?: string;
hasProfile?: boolean;
hasAlpha?: boolean;
orientation?: number;
}>;
export declare const CADMetaSchema: z.ZodObject<{
file: z.ZodString;
name: z.ZodString;
configuration: z.ZodString;
step: z.ZodOptional<z.ZodString>;
model: z.ZodOptional<z.ZodString>;
html: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string;
name?: string;
configuration?: string;
step?: string;
model?: string;
html?: string;
}, {
file?: string;
name?: string;
configuration?: string;
step?: string;
model?: string;
html?: string;
}>;
export declare const ShippingSchema: z.ZodObject<{
price: z.ZodOptional<z.ZodNumber>;
transit: z.ZodOptional<z.ZodNumber>;
handling: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
price?: number;
transit?: number;
handling?: number;
}, {
price?: number;
transit?: number;
handling?: number;
}>;
export declare const ManufacturingSchema: z.ZodObject<{
lead_time: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
lead_time?: number;
}, {
lead_time?: number;
}>;
export declare const ResourceSchema: z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
type: z.ZodString;
}, "strip", z.ZodTypeAny, {
type?: string;
name?: string;
url?: string;
}, {
type?: string;
name?: string;
url?: string;
}>;
export declare const AssetImageSchema: z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>;
export declare const GalleryConfig: z.ZodObject<{
glob: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
glob?: string[];
}, {
glob?: string[];
}>;
export declare const GalleryConfigsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
glob: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
glob?: string[];
}, {
glob?: string[];
}>>;
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>;
resources: z.ZodOptional<z.ZodString>;
readme: z.ZodOptional<z.ZodString>;
shared: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
resources?: string;
readme?: string;
shared?: string;
}, {
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
resources?: string;
readme?: string;
shared?: string;
}>;
export declare const VersionSchema: z.ZodObject<{
version: z.ZodOptional<z.ZodString>;
up: z.ZodOptional<z.ZodString>;
down: z.ZodOptional<z.ZodString>;
family: z.ZodOptional<z.ZodString>;
sheet: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
version?: string;
up?: string;
down?: string;
family?: string;
sheet?: string;
}, {
version?: string;
up?: string;
down?: string;
family?: string;
sheet?: string;
}>;
export declare const AssetsSchema: z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
configurations: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
showcase: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
samples: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
url: z.ZodString;
thumb: z.ZodOptional<z.ZodString>;
responsive: z.ZodOptional<z.ZodString>;
meta: z.ZodOptional<z.ZodAny>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
description: z.ZodOptional<z.ZodString>;
alt: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny;
jfif: z.ZodAny;
exif: z.ZodAny;
gps: z.ZodAny;
}, "strip", z.ZodTypeAny, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}, {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
}, {
gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
responsive?: string;
meta?: any;
keywords?: string[];
description?: string;
alt?: string;
title?: string;
order?: number;
}[];
}>;
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: any;
export type IComponentConfig = z.infer<typeof ComponentConfigSchema>;
export type ICADNodeSchema = z.infer<typeof CADMetaSchema>;
export interface IComponentNode {
rel: string;
path: string;
config: IComponentConfig;
}