Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working, accurate, bySource schema #16

Merged
merged 7 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,344 changes: 3,332 additions & 12 deletions _dist/zod/_data.d.ts

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion _dist/zod/_data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by scripts/generate-zod-combinedTypes.js at Sun, 11 Feb 2024 03:24:02 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Sun, 11 Feb 2024 14:24:29 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
Expand All @@ -24,3 +24,16 @@ export const data = z.discriminatedUnion("type", [
relicGift,
skill,
]);
export const schemaIndex = {
license: license.array().min(1).optional(),
source: source.array().min(1).optional(),
sourceGroup: sourceGroup.array().min(1).optional(),
background: background.array().min(1).optional(),
condition: condition.array().min(1).optional(),
divineIntercession: divineIntercession.array().min(1).optional(),
domain: domain.array().min(1).optional(),
event: event.array().min(1).optional(),
familiarAbility: familiarAbility.array().min(1).optional(),
relicGift: relicGift.array().min(1).optional(),
skill: skill.array().min(1).optional(),
};
2 changes: 1 addition & 1 deletion _dist/zod/_index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by scripts/generate-zod-index.js at Sun, 11 Feb 2024 03:24:03 GMT
// This file was generated by scripts/generate-zod-index.js at Sun, 11 Feb 2024 14:24:30 GMT
// .
export { content } from "./content.js";
export { license } from "./license.js";
Expand Down
24 changes: 12 additions & 12 deletions _dist/zod/_statblock.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
}>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
Expand Down Expand Up @@ -1033,7 +1034,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
type: z.ZodLiteral<"divineIntercession">;
data: z.ZodEffects<z.ZodObject<{
preamble: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
Expand Down Expand Up @@ -1208,6 +1208,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1224,7 +1225,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}, {
type: "divineIntercession";
data: {
Expand Down Expand Up @@ -1259,6 +1259,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1275,7 +1276,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}>, z.ZodObject<{
source: z.ZodObject<{
ID: z.ZodEffects<z.ZodString, string, string>;
Expand All @@ -1300,6 +1300,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
}>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
Expand Down Expand Up @@ -1402,7 +1403,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
type: z.ZodLiteral<"domain">;
data: z.ZodObject<{
preamble: z.ZodOptional<z.ZodString>;
Expand Down Expand Up @@ -1537,6 +1537,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1553,7 +1554,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}, {
type: "domain";
data: {
Expand Down Expand Up @@ -1588,6 +1588,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1604,7 +1605,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}>, z.ZodObject<{
source: z.ZodObject<{
ID: z.ZodEffects<z.ZodString, string, string>;
Expand All @@ -1629,6 +1629,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
}>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
Expand Down Expand Up @@ -1731,7 +1732,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
type: z.ZodLiteral<"event">;
data: z.ZodObject<{
level: z.ZodNumber;
Expand Down Expand Up @@ -1842,6 +1842,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1858,7 +1859,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}, {
type: "event";
data: {
Expand Down Expand Up @@ -1886,6 +1886,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -1902,7 +1903,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}>, z.ZodObject<{
source: z.ZodObject<{
ID: z.ZodEffects<z.ZodString, string, string>;
Expand Down Expand Up @@ -2661,6 +2661,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
}>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
Expand Down Expand Up @@ -2763,7 +2764,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
tags: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
type: z.ZodLiteral<"skill">;
data: z.ZodObject<{
entries: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
Expand Down Expand Up @@ -2798,6 +2798,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -2814,7 +2815,6 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}, {
type: "skill";
data: {
Expand All @@ -2831,6 +2831,7 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
aliases?: string[] | undefined;
specifier?: string | undefined;
};
tags?: {} | undefined;
reference?: {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
Expand All @@ -2847,5 +2848,4 @@ export declare const statblock: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
} | undefined;
tags?: {} | undefined;
}>]>;
2 changes: 1 addition & 1 deletion _dist/zod/_statblock.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by scripts/generate-zod-combinedTypes.js at Sun, 11 Feb 2024 03:24:02 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Sun, 11 Feb 2024 14:24:29 GMT
import { z } from "zod";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
Expand Down
Loading