cad | commons
This commit is contained in:
parent
e5019dc29f
commit
af48a5c670
4
packages/cad/dist/cad/sw-types.d.ts
vendored
4
packages/cad/dist/cad/sw-types.d.ts
vendored
@ -62,13 +62,13 @@ export interface Configuration {
|
||||
"Catalog"?: string;
|
||||
"Configurations"?: string;
|
||||
}
|
||||
export interface Configurations {
|
||||
export interface IConfigurations {
|
||||
[key: string]: Configuration;
|
||||
}
|
||||
export interface IAssemblyData {
|
||||
assembly: IAssembly;
|
||||
root: ITreeNode;
|
||||
Configurations: Configurations;
|
||||
Configurations: IConfigurations;
|
||||
}
|
||||
export declare enum swRayTraceRenderImageFormat {
|
||||
swImageFormat_FlexiblePrecision = 0,
|
||||
|
||||
@ -64,14 +64,14 @@ export interface Configuration {
|
||||
"Configurations"?: string
|
||||
}
|
||||
|
||||
export interface Configurations {
|
||||
export interface IConfigurations {
|
||||
[key:string]: Configuration
|
||||
}
|
||||
|
||||
export interface IAssemblyData {
|
||||
assembly: IAssembly
|
||||
root: ITreeNode
|
||||
Configurations: Configurations
|
||||
Configurations: IConfigurations
|
||||
}
|
||||
|
||||
export enum swRayTraceRenderImageFormat {
|
||||
|
||||
390
packages/commons/dist/component.d.ts
vendored
390
packages/commons/dist/component.d.ts
vendored
@ -65,18 +65,21 @@ export declare const ImageMetaSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -106,6 +109,7 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -140,6 +144,7 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -158,6 +163,7 @@ export declare const AssetImageSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>;
|
||||
export declare const AuthorSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
@ -220,6 +226,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -254,6 +261,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -272,6 +280,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -285,6 +294,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -319,6 +329,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -337,6 +348,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -350,6 +362,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -384,6 +397,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -402,6 +416,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
@ -422,6 +437,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -441,6 +457,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -460,6 +477,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
@ -480,6 +498,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -499,6 +518,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -518,6 +538,7 @@ export declare const AssetsSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}>;
|
||||
export declare const ProductionSchema: z.ZodObject<{
|
||||
@ -555,37 +576,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
||||
cscartId: z.ZodOptional<z.ZodNumber>;
|
||||
vendorId: z.ZodOptional<z.ZodNumber>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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.ZodObject<{
|
||||
name: z.ZodString;
|
||||
@ -625,6 +615,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -659,6 +650,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -677,16 +669,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
edrawings: z.ZodOptional<z.ZodString>;
|
||||
cad: z.ZodDefault<z.ZodArray<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;
|
||||
}>, "many">>;
|
||||
showDimensions: z.ZodOptional<z.ZodBoolean>;
|
||||
showParts: z.ZodOptional<z.ZodBoolean>;
|
||||
slug: z.ZodString;
|
||||
keywords: z.ZodOptional<z.ZodString>;
|
||||
meta_keywords: z.ZodOptional<z.ZodString>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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">>;
|
||||
assets: z.ZodDefault<z.ZodObject<{
|
||||
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -700,6 +745,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -734,6 +780,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -752,6 +799,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -765,6 +813,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -799,6 +848,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -817,6 +867,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -830,6 +881,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -864,6 +916,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -882,6 +935,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
@ -902,6 +956,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -921,6 +976,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -940,6 +996,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
@ -960,6 +1017,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -979,6 +1037,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -998,27 +1057,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
file: z.ZodString;
|
||||
name: z.ZodString;
|
||||
step: z.ZodOptional<z.ZodString>;
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}>, "many">>;
|
||||
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
url: z.ZodString;
|
||||
@ -1045,6 +1086,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
name?: string;
|
||||
url?: string;
|
||||
}>, "many">>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
@ -1090,37 +1132,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
||||
cscartId: z.ZodOptional<z.ZodNumber>;
|
||||
vendorId: z.ZodOptional<z.ZodNumber>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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.ZodObject<{
|
||||
name: z.ZodString;
|
||||
@ -1160,6 +1171,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1194,6 +1206,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1212,16 +1225,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
edrawings: z.ZodOptional<z.ZodString>;
|
||||
cad: z.ZodDefault<z.ZodArray<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;
|
||||
}>, "many">>;
|
||||
showDimensions: z.ZodOptional<z.ZodBoolean>;
|
||||
showParts: z.ZodOptional<z.ZodBoolean>;
|
||||
slug: z.ZodString;
|
||||
keywords: z.ZodOptional<z.ZodString>;
|
||||
meta_keywords: z.ZodOptional<z.ZodString>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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">>;
|
||||
assets: z.ZodDefault<z.ZodObject<{
|
||||
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1235,6 +1301,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1269,6 +1336,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1287,6 +1355,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1300,6 +1369,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1334,6 +1404,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1352,6 +1423,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1365,6 +1437,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1399,6 +1472,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1417,6 +1491,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
@ -1437,6 +1512,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -1456,6 +1532,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -1475,6 +1552,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
@ -1495,6 +1573,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -1514,6 +1593,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -1533,27 +1613,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
file: z.ZodString;
|
||||
name: z.ZodString;
|
||||
step: z.ZodOptional<z.ZodString>;
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}>, "many">>;
|
||||
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
url: z.ZodString;
|
||||
@ -1580,6 +1642,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
name?: string;
|
||||
url?: string;
|
||||
}>, "many">>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
@ -1625,37 +1688,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
||||
cscartId: z.ZodOptional<z.ZodNumber>;
|
||||
vendorId: z.ZodOptional<z.ZodNumber>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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.ZodObject<{
|
||||
name: z.ZodString;
|
||||
@ -1695,6 +1727,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1729,6 +1762,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1747,16 +1781,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>>;
|
||||
name: z.ZodString;
|
||||
flags: z.ZodOptional<z.ZodNumber>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
edrawings: z.ZodOptional<z.ZodString>;
|
||||
cad: z.ZodDefault<z.ZodArray<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;
|
||||
}>, "many">>;
|
||||
showDimensions: z.ZodOptional<z.ZodBoolean>;
|
||||
showParts: z.ZodOptional<z.ZodBoolean>;
|
||||
slug: z.ZodString;
|
||||
keywords: z.ZodOptional<z.ZodString>;
|
||||
meta_keywords: z.ZodOptional<z.ZodString>;
|
||||
version: z.ZodOptional<z.ZodString>;
|
||||
versions: z.ZodOptional<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;
|
||||
}>>;
|
||||
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">>;
|
||||
assets: z.ZodDefault<z.ZodObject<{
|
||||
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1770,6 +1857,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1804,6 +1892,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1822,6 +1911,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1835,6 +1925,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1869,6 +1960,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1887,6 +1979,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
@ -1900,6 +1993,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
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;
|
||||
@ -1934,6 +2028,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}, {
|
||||
exif?: {
|
||||
file?: any;
|
||||
@ -1952,6 +2047,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
gallery?: {
|
||||
@ -1972,6 +2068,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -1991,6 +2088,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -2010,6 +2108,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}, {
|
||||
gallery?: {
|
||||
@ -2030,6 +2129,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
renderings?: {
|
||||
exif?: {
|
||||
@ -2049,6 +2149,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
components?: {
|
||||
exif?: {
|
||||
@ -2068,27 +2169,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
description?: string;
|
||||
alt?: string;
|
||||
title?: string;
|
||||
order?: number;
|
||||
}[];
|
||||
}>>;
|
||||
cad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
file: z.ZodString;
|
||||
name: z.ZodString;
|
||||
step: z.ZodOptional<z.ZodString>;
|
||||
model: z.ZodOptional<z.ZodString>;
|
||||
html: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}, {
|
||||
file?: string;
|
||||
name?: string;
|
||||
step?: string;
|
||||
model?: string;
|
||||
html?: string;
|
||||
}>, "many">>;
|
||||
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
url: z.ZodString;
|
||||
@ -2115,6 +2198,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
|
||||
name?: string;
|
||||
url?: string;
|
||||
}>, "many">>;
|
||||
download: z.ZodOptional<z.ZodBoolean>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
23
packages/commons/dist/component.js
vendored
23
packages/commons/dist/component.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,4 @@
|
||||
import * as path from 'path'
|
||||
import * as fs from 'fs'
|
||||
import { z } from "zod"
|
||||
import normalizeUrl from 'normalize-url'
|
||||
|
||||
@ -32,6 +31,7 @@ export const ImageMetaSchema = z.object({
|
||||
export const CADMetaSchema = z.object({
|
||||
file: z.string(),
|
||||
name: z.string(),
|
||||
configuration: z.string(), // solidworks map
|
||||
step: z.string().optional(),
|
||||
model: z.string().optional(),
|
||||
html: z.string().optional(),
|
||||
@ -55,6 +55,7 @@ export const AssetImageSchema = z.object({
|
||||
title: z.string().optional(),
|
||||
height: z.number().optional(),
|
||||
width: z.number().optional(),
|
||||
order: z.number().optional(),
|
||||
exif:ExifSchema.optional(),
|
||||
})
|
||||
|
||||
@ -102,10 +103,6 @@ export const ComponentConfigSchema = z.object({
|
||||
vendorId: z.number().optional(),
|
||||
|
||||
//internal
|
||||
version: z.string().optional(),
|
||||
versions:VersionSchema.optional(),
|
||||
status: z.string().optional(),
|
||||
authors: z.array(AuthorSchema).optional(),
|
||||
|
||||
// references
|
||||
replaced_by: z.string().optional(),
|
||||
@ -116,25 +113,33 @@ export const ComponentConfigSchema = z.object({
|
||||
name: z.string(),
|
||||
flags: z.number().optional(),
|
||||
|
||||
// public
|
||||
download: z.boolean().optional(),
|
||||
|
||||
// cad
|
||||
edrawings: z.string().optional(),
|
||||
cad: z.array(CADMetaSchema).default([]),
|
||||
|
||||
|
||||
// settings
|
||||
showDimensions: z.boolean().optional(),
|
||||
showParts: z.boolean().optional(),
|
||||
slug: z.string(),
|
||||
|
||||
// meta
|
||||
slug: z.string(),
|
||||
keywords: z.string().optional(),
|
||||
meta_keywords: z.string().optional(),
|
||||
version: z.string().optional(),
|
||||
versions:VersionSchema.optional(),
|
||||
status: z.string().optional(),
|
||||
authors: z.array(AuthorSchema).optional(),
|
||||
|
||||
// content
|
||||
assets: AssetsSchema.default({
|
||||
gallery: [],
|
||||
renderings: [],
|
||||
components: []
|
||||
}),
|
||||
cad: z.array(CADMetaSchema).default([]),
|
||||
resources: z.array(ResourceSchema).default([]),
|
||||
tests: z.array(ResourceSchema).default([]),
|
||||
download: z.boolean().optional(),
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
@ -146,7 +151,7 @@ export const ComponentConfigSchema = z.object({
|
||||
category: z.string(),
|
||||
product_dimensions: z.string().optional(),
|
||||
production: ProductionSchema.optional(),
|
||||
score: z.number().optional(),
|
||||
score: z.number().optional()
|
||||
}).passthrough();
|
||||
|
||||
export type IComponentConfig = z.infer<typeof ComponentConfigSchema>
|
||||
|
||||
2639
pnpm-lock.yaml
2639
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,7 @@
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"stripInternal": true,
|
||||
"outDir": "./dist"
|
||||
"outDir": "./dist",
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user