Skip to content

Commit

Permalink
npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
Spappz committed May 28, 2024
1 parent 4354d94 commit 6a901af
Show file tree
Hide file tree
Showing 22 changed files with 742 additions and 41 deletions.
2 changes: 1 addition & 1 deletion _dist/schema/bundle.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _dist/schema/data.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _dist/zod/_bundle.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 Thu, 16 May 2024 02:02:46 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Tue, 28 May 2024 02:24:24 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
Expand All @@ -10,7 +10,7 @@ import { event } from "./content/event.js";
import { familiarAbility } from "./content/familiarAbility.js";
import { relicGift } from "./content/relicGift.js";
import { skill } from "./content/skill.js";
const refineContent = (content) => content.refine((content) => (content.reference ? !!content.data !== !!content.reference.modifications : content.data), "`data` and `reference.modifications` cannot be used simultaneously; choose one method to describe the content.");
const refineContent = (content) => content.refine((content) => (content.reference ? (content.reference.type === "reprint" ? true : !!content.data !== !!content.reference.modifications) : content.data), "Choose one of `data` and `reference.modifications` to describe the content.");
export const bundle = z.object({
license: z.array(license).min(1).optional(),
source: z.array(source).min(1),
Expand Down
224 changes: 217 additions & 7 deletions _dist/zod/_content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -134,6 +134,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"background">;
Expand Down Expand Up @@ -721,7 +751,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -822,6 +852,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"condition">;
Expand Down Expand Up @@ -1053,7 +1113,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -1154,6 +1214,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"domain">;
Expand Down Expand Up @@ -1390,7 +1480,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -1491,6 +1581,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"event">;
Expand Down Expand Up @@ -1696,7 +1816,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -1797,6 +1917,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"familiarAbility">;
Expand Down Expand Up @@ -2034,7 +2184,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -2135,6 +2285,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"relicGift">;
Expand Down Expand Up @@ -2500,7 +2680,7 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
page?: number | undefined;
}>;
data: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
reference: z.ZodOptional<z.ZodObject<{
reference: z.ZodOptional<z.ZodEffects<z.ZodObject<{
type: z.ZodEnum<["reprint", "variant", "replacement", "extension"]>;
target: z.ZodObject<{
name: z.ZodString;
Expand Down Expand Up @@ -2601,6 +2781,36 @@ export declare const content: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.Zo
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}, {
type: "variant" | "reprint" | "replacement" | "extension";
target: {
name: string;
sourceID: string;
specifier?: string | undefined;
};
modifications?: {
type: string;
target: {
property: string;
name?: string | undefined;
};
value?: string | number | boolean | any[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
}[] | undefined;
}>>;
}, {
type: z.ZodLiteral<"skill">;
Expand Down
4 changes: 2 additions & 2 deletions _dist/zod/_content.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 Thu, 16 May 2024 02:02:46 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Tue, 28 May 2024 02:24:24 GMT
import { z } from "zod";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
Expand All @@ -15,4 +15,4 @@ export const content = z.discriminatedUnion("type", [
familiarAbility,
relicGift,
skill,
]).refine((content) => (content.reference ? !!content.data !== !!content.reference.modifications : content.data), "`data` and `reference.modifications` cannot be used simultaneously; choose one method to describe the content.");
]).refine((content) => (content.reference ? (content.reference.type === "reprint" ? true : !!content.data !== !!content.reference.modifications) : content.data), "Choose one of `data` and `reference.modifications` to describe the content.");
Loading

0 comments on commit 6a901af

Please sign in to comment.