cad | commons

This commit is contained in:
Code 2025-02-11 00:53:02 +01:00
parent e5019dc29f
commit af48a5c670
7 changed files with 2884 additions and 210 deletions

View File

@ -62,13 +62,13 @@ export interface Configuration {
"Catalog"?: string; "Catalog"?: string;
"Configurations"?: string; "Configurations"?: string;
} }
export interface Configurations { export interface IConfigurations {
[key: string]: Configuration; [key: string]: Configuration;
} }
export interface IAssemblyData { export interface IAssemblyData {
assembly: IAssembly; assembly: IAssembly;
root: ITreeNode; root: ITreeNode;
Configurations: Configurations; Configurations: IConfigurations;
} }
export declare enum swRayTraceRenderImageFormat { export declare enum swRayTraceRenderImageFormat {
swImageFormat_FlexiblePrecision = 0, swImageFormat_FlexiblePrecision = 0,

View File

@ -64,14 +64,14 @@ export interface Configuration {
"Configurations"?: string "Configurations"?: string
} }
export interface Configurations { export interface IConfigurations {
[key:string]: Configuration [key:string]: Configuration
} }
export interface IAssemblyData { export interface IAssemblyData {
assembly: IAssembly assembly: IAssembly
root: ITreeNode root: ITreeNode
Configurations: Configurations Configurations: IConfigurations
} }
export enum swRayTraceRenderImageFormat { export enum swRayTraceRenderImageFormat {

View File

@ -65,18 +65,21 @@ export declare const ImageMetaSchema: z.ZodObject<{
export declare const CADMetaSchema: z.ZodObject<{ export declare const CADMetaSchema: z.ZodObject<{
file: z.ZodString; file: z.ZodString;
name: z.ZodString; name: z.ZodString;
configuration: z.ZodString;
step: z.ZodOptional<z.ZodString>; step: z.ZodOptional<z.ZodString>;
model: z.ZodOptional<z.ZodString>; model: z.ZodOptional<z.ZodString>;
html: z.ZodOptional<z.ZodString>; html: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
file?: string; file?: string;
name?: string; name?: string;
configuration?: string;
step?: string; step?: string;
model?: string; model?: string;
html?: string; html?: string;
}, { }, {
file?: string; file?: string;
name?: string; name?: string;
configuration?: string;
step?: string; step?: string;
model?: string; model?: string;
html?: string; html?: string;
@ -106,6 +109,7 @@ export declare const AssetImageSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -140,6 +144,7 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -158,6 +163,7 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>; }>;
export declare const AuthorSchema: z.ZodObject<{ export declare const AuthorSchema: z.ZodObject<{
name: z.ZodString; name: z.ZodString;
@ -220,6 +226,7 @@ export declare const AssetsSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -254,6 +261,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -272,6 +280,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{ renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -285,6 +294,7 @@ export declare const AssetsSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -319,6 +329,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -337,6 +348,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -350,6 +362,7 @@ export declare const AssetsSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -384,6 +397,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -402,6 +416,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
gallery?: { gallery?: {
@ -422,6 +437,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -441,6 +457,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -460,6 +477,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
}, { }, {
gallery?: { gallery?: {
@ -480,6 +498,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -499,6 +518,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -518,6 +538,7 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
}>; }>;
export declare const ProductionSchema: z.ZodObject<{ export declare const ProductionSchema: z.ZodObject<{
@ -555,37 +576,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
cscartId: z.ZodOptional<z.ZodNumber>; cscartId: z.ZodOptional<z.ZodNumber>;
vendorId: 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>; replaced_by: z.ZodOptional<z.ZodString>;
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
@ -625,6 +615,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -659,6 +650,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -677,16 +669,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>>; }>>;
name: z.ZodString; name: z.ZodString;
flags: z.ZodOptional<z.ZodNumber>; flags: z.ZodOptional<z.ZodNumber>;
download: z.ZodOptional<z.ZodBoolean>;
edrawings: z.ZodOptional<z.ZodString>; 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>; showDimensions: z.ZodOptional<z.ZodBoolean>;
showParts: z.ZodOptional<z.ZodBoolean>; showParts: z.ZodOptional<z.ZodBoolean>;
slug: z.ZodString; slug: z.ZodString;
keywords: z.ZodOptional<z.ZodString>; keywords: z.ZodOptional<z.ZodString>;
meta_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<{ assets: z.ZodDefault<z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{ gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -700,6 +745,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -734,6 +780,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -752,6 +799,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{ renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -765,6 +813,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -799,6 +848,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -817,6 +867,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -830,6 +881,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -864,6 +916,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -882,6 +935,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
gallery?: { gallery?: {
@ -902,6 +956,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -921,6 +976,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -940,6 +996,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
}, { }, {
gallery?: { gallery?: {
@ -960,6 +1017,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -979,6 +1037,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -998,27 +1057,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: 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<{ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
url: z.ZodString; url: z.ZodString;
@ -1045,6 +1086,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
name?: string; name?: string;
url?: string; url?: string;
}>, "many">>; }>, "many">>;
download: z.ZodOptional<z.ZodBoolean>;
/** /**
* @deprecated * @deprecated
*/ */
@ -1090,37 +1132,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
cscartId: z.ZodOptional<z.ZodNumber>; cscartId: z.ZodOptional<z.ZodNumber>;
vendorId: 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>; replaced_by: z.ZodOptional<z.ZodString>;
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
@ -1160,6 +1171,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1194,6 +1206,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1212,16 +1225,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>>; }>>;
name: z.ZodString; name: z.ZodString;
flags: z.ZodOptional<z.ZodNumber>; flags: z.ZodOptional<z.ZodNumber>;
download: z.ZodOptional<z.ZodBoolean>;
edrawings: z.ZodOptional<z.ZodString>; 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>; showDimensions: z.ZodOptional<z.ZodBoolean>;
showParts: z.ZodOptional<z.ZodBoolean>; showParts: z.ZodOptional<z.ZodBoolean>;
slug: z.ZodString; slug: z.ZodString;
keywords: z.ZodOptional<z.ZodString>; keywords: z.ZodOptional<z.ZodString>;
meta_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<{ assets: z.ZodDefault<z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{ gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1235,6 +1301,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1269,6 +1336,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1287,6 +1355,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{ renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1300,6 +1369,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1334,6 +1404,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1352,6 +1423,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1365,6 +1437,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1399,6 +1472,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1417,6 +1491,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
gallery?: { gallery?: {
@ -1437,6 +1512,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -1456,6 +1532,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -1475,6 +1552,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
}, { }, {
gallery?: { gallery?: {
@ -1495,6 +1573,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -1514,6 +1593,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -1533,27 +1613,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: 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<{ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
url: z.ZodString; url: z.ZodString;
@ -1580,6 +1642,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
name?: string; name?: string;
url?: string; url?: string;
}>, "many">>; }>, "many">>;
download: z.ZodOptional<z.ZodBoolean>;
/** /**
* @deprecated * @deprecated
*/ */
@ -1625,37 +1688,6 @@ export declare const ComponentConfigSchema: z.ZodObject<{
cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; cscartCats: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
cscartId: z.ZodOptional<z.ZodNumber>; cscartId: z.ZodOptional<z.ZodNumber>;
vendorId: 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>; replaced_by: z.ZodOptional<z.ZodString>;
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
@ -1695,6 +1727,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1729,6 +1762,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1747,16 +1781,69 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>>; }>>;
name: z.ZodString; name: z.ZodString;
flags: z.ZodOptional<z.ZodNumber>; flags: z.ZodOptional<z.ZodNumber>;
download: z.ZodOptional<z.ZodBoolean>;
edrawings: z.ZodOptional<z.ZodString>; 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>; showDimensions: z.ZodOptional<z.ZodBoolean>;
showParts: z.ZodOptional<z.ZodBoolean>; showParts: z.ZodOptional<z.ZodBoolean>;
slug: z.ZodString; slug: z.ZodString;
keywords: z.ZodOptional<z.ZodString>; keywords: z.ZodOptional<z.ZodString>;
meta_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<{ assets: z.ZodDefault<z.ZodObject<{
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{ gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1770,6 +1857,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1804,6 +1892,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1822,6 +1911,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{ renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1835,6 +1925,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1869,6 +1960,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1887,6 +1979,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -1900,6 +1993,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>;
height: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>;
width: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>;
order: z.ZodOptional<z.ZodNumber>;
exif: z.ZodOptional<z.ZodObject<{ exif: z.ZodOptional<z.ZodObject<{
file: z.ZodAny; file: z.ZodAny;
jfif: z.ZodAny; jfif: z.ZodAny;
@ -1934,6 +2028,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}, { }, {
exif?: { exif?: {
file?: any; file?: any;
@ -1952,6 +2047,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}>, "many">>; }>, "many">>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
gallery?: { gallery?: {
@ -1972,6 +2068,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -1991,6 +2088,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -2010,6 +2108,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
}, { }, {
gallery?: { gallery?: {
@ -2030,6 +2129,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
renderings?: { renderings?: {
exif?: { exif?: {
@ -2049,6 +2149,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
order?: number;
}[]; }[];
components?: { components?: {
exif?: { exif?: {
@ -2068,27 +2169,9 @@ export declare const ComponentConfigSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: 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<{ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString; name: z.ZodString;
url: z.ZodString; url: z.ZodString;
@ -2115,6 +2198,7 @@ export declare const ComponentConfigSchema: z.ZodObject<{
name?: string; name?: string;
url?: string; url?: string;
}>, "many">>; }>, "many">>;
download: z.ZodOptional<z.ZodBoolean>;
/** /**
* @deprecated * @deprecated
*/ */

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,4 @@
import * as path from 'path' import * as path from 'path'
import * as fs from 'fs'
import { z } from "zod" import { z } from "zod"
import normalizeUrl from 'normalize-url' import normalizeUrl from 'normalize-url'
@ -32,6 +31,7 @@ export const ImageMetaSchema = z.object({
export const CADMetaSchema = z.object({ export const CADMetaSchema = z.object({
file: z.string(), file: z.string(),
name: z.string(), name: z.string(),
configuration: z.string(), // solidworks map
step: z.string().optional(), step: z.string().optional(),
model: z.string().optional(), model: z.string().optional(),
html: z.string().optional(), html: z.string().optional(),
@ -55,6 +55,7 @@ export const AssetImageSchema = z.object({
title: z.string().optional(), title: z.string().optional(),
height: z.number().optional(), height: z.number().optional(),
width: z.number().optional(), width: z.number().optional(),
order: z.number().optional(),
exif:ExifSchema.optional(), exif:ExifSchema.optional(),
}) })
@ -102,10 +103,6 @@ export const ComponentConfigSchema = z.object({
vendorId: z.number().optional(), vendorId: z.number().optional(),
//internal //internal
version: z.string().optional(),
versions:VersionSchema.optional(),
status: z.string().optional(),
authors: z.array(AuthorSchema).optional(),
// references // references
replaced_by: z.string().optional(), replaced_by: z.string().optional(),
@ -116,25 +113,33 @@ export const ComponentConfigSchema = z.object({
name: z.string(), name: z.string(),
flags: z.number().optional(), flags: z.number().optional(),
// public // cad
download: z.boolean().optional(),
edrawings: z.string().optional(), edrawings: z.string().optional(),
cad: z.array(CADMetaSchema).default([]),
// settings
showDimensions: z.boolean().optional(), showDimensions: z.boolean().optional(),
showParts: z.boolean().optional(), showParts: z.boolean().optional(),
slug: z.string(),
// meta
slug: z.string(),
keywords: z.string().optional(), keywords: z.string().optional(),
meta_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({ assets: AssetsSchema.default({
gallery: [], gallery: [],
renderings: [], renderings: [],
components: [] components: []
}), }),
cad: z.array(CADMetaSchema).default([]),
resources: z.array(ResourceSchema).default([]), resources: z.array(ResourceSchema).default([]),
tests: z.array(ResourceSchema).default([]), tests: z.array(ResourceSchema).default([]),
download: z.boolean().optional(),
/** /**
* @deprecated * @deprecated
@ -146,7 +151,7 @@ export const ComponentConfigSchema = z.object({
category: z.string(), category: z.string(),
product_dimensions: z.string().optional(), product_dimensions: z.string().optional(),
production: ProductionSchema.optional(), production: ProductionSchema.optional(),
score: z.number().optional(), score: z.number().optional()
}).passthrough(); }).passthrough();
export type IComponentConfig = z.infer<typeof ComponentConfigSchema> export type IComponentConfig = z.infer<typeof ComponentConfigSchema>

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"stripInternal": true, "stripInternal": true,
"outDir": "./dist" "outDir": "./dist",
"allowSyntheticDefaultImports": true
} }
} }