zodTheCodegenConfiguration
@the-codegen-project/cli • Docs
Home / zodTheCodegenConfiguration
Variable: zodTheCodegenConfiguration
const zodTheCodegenConfiguration: ZodDiscriminatedUnion<"inputType", [ZodObject<{
$schema: ZodOptional<ZodString>;
generators: ZodArray<ZodUnion<[ZodObject<{
dependencies: ZodDefault<ZodOptional<...>>;
enum: ZodDefault<ZodOptional<...>>;
id: ZodDefault<ZodOptional<...>>;
language: ZodDefault<ZodOptional<...>>;
map: ZodDefault<ZodOptional<...>>;
outputPath: ZodDefault<ZodOptional<...>>;
preset: ZodDefault<ZodLiteral<...>>;
rawPropertyNames: ZodDefault<ZodOptional<...>>;
serializationType: ZodDefault<ZodOptional<...>>;
useForJavaScript: ZodDefault<ZodOptional<...>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}, {
dependencies: ...[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}>, ZodObject<{
dependencies: ZodDefault<ZodOptional<...>>;
id: ZodDefault<ZodOptional<...>>;
language: ZodDefault<ZodOptional<...>>;
outputPath: ZodDefault<ZodString>;
preset: ZodDefault<ZodLiteral<...>>;
serializationType: ZodDefault<ZodOptional<...>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}, {
dependencies: ...[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}>, ZodObject<{
asyncapiGenerateForOperations: ZodDefault<ZodOptional<...>>;
asyncapiReverseOperations: ZodDefault<ZodOptional<...>>;
dependencies: ZodDefault<ZodOptional<...>>;
functionTypeMapping: ZodDefault<ZodOptional<...>>;
id: ZodDefault<ZodOptional<...>>;
kafkaTopicSeparator: ZodDefault<ZodOptional<...>>;
language: ZodDefault<ZodOptional<...>>;
outputPath: ZodDefault<ZodString>;
parameterGeneratorId: ZodDefault<ZodOptional<...>>;
payloadGeneratorId: ZodDefault<ZodOptional<...>>;
preset: ZodDefault<ZodLiteral<...>>;
protocols: ZodDefault<ZodArray<..., ...>>;
}, "strip", ZodTypeAny, {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, ... | ...>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: (... | ... | ... | ...)[];
}, {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: ...[];
functionTypeMapping: Record<..., ...>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ...[];
}>]>, "many">;
inputPath: ZodString;
inputType: ZodLiteral<"asyncapi">;
language: ZodOptional<ZodEnum<["typescript"]>>;
}, "strip", ZodTypeAny, {
$schema: string;
generators: (
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}, {
$schema: string;
generators: (
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ...[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}>]>;