Skip to content

Commit

Permalink
npm rum build
Browse files Browse the repository at this point in the history
  • Loading branch information
Spappz committed May 16, 2024
1 parent eacc6ec commit 3e3fd8b
Show file tree
Hide file tree
Showing 43 changed files with 6,261 additions and 17,104 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.

9,574 changes: 675 additions & 8,899 deletions _dist/zod/_bundle.d.ts

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions _dist/zod/_bundle.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
// This file was generated by scripts/generate-zod-combinedTypes.js at Sat, 27 Apr 2024 00:53:14 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 00:49:20 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
import { sourceGroup } from "./sourceGroup.js";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
import { divineIntercession } from "./content/divineIntercession.js";
import { domain } from "./content/domain.js";
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.");
export const bundle = z.object({
license: z.array(license).min(1).optional(),
source: z.array(source).min(1),
sourceGroup: z.array(sourceGroup).min(1).optional(),
background: z.array(background).min(1).optional(),
condition: z.array(condition).min(1).optional(),
divineIntercession: z.array(divineIntercession).min(1).optional(),
domain: z.array(domain).min(1).optional(),
event: z.array(event).min(1).optional(),
familiarAbility: z.array(familiarAbility).min(1).optional(),
relicGift: z.array(relicGift).min(1).optional(),
skill: z.array(skill).min(1).optional(),
background: z.array(refineContent(background)).min(1).optional(),
condition: z.array(refineContent(condition)).min(1).optional(),
domain: z.array(refineContent(domain)).min(1).optional(),
event: z.array(refineContent(event)).min(1).optional(),
familiarAbility: z.array(refineContent(familiarAbility)).min(1).optional(),
relicGift: z.array(refineContent(relicGift)).min(1).optional(),
skill: z.array(refineContent(skill)).min(1).optional(),
});
import { nonEmpty } from "./utils/nonEmpty.js";
export const anyBundle = bundle.partial().refine(...nonEmpty);
3,118 changes: 1,749 additions & 1,369 deletions _dist/zod/_content.d.ts

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions _dist/zod/_content.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// This file was generated by scripts/generate-zod-combinedTypes.js at Sat, 27 Apr 2024 00:53:14 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 00:49:20 GMT
import { z } from "zod";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
import { divineIntercession } from "./content/divineIntercession.js";
import { domain } from "./content/domain.js";
import { event } from "./content/event.js";
import { familiarAbility } from "./content/familiarAbility.js";
Expand All @@ -11,10 +10,9 @@ import { skill } from "./content/skill.js";
export const content = z.discriminatedUnion("type", [
background,
condition,
divineIntercession,
domain,
event,
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.");
4,812 changes: 2,596 additions & 2,216 deletions _dist/zod/_data.d.ts

Large diffs are not rendered by default.

26 changes: 4 additions & 22 deletions _dist/zod/_data.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
// This file was generated by scripts/generate-zod-combinedTypes.js at Sat, 27 Apr 2024 00:53:14 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 00:49:20 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
import { sourceGroup } from "./sourceGroup.js";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
import { divineIntercession } from "./content/divineIntercession.js";
import { domain } from "./content/domain.js";
import { event } from "./content/event.js";
import { familiarAbility } from "./content/familiarAbility.js";
import { relicGift } from "./content/relicGift.js";
import { skill } from "./content/skill.js";
export const data = z.discriminatedUnion("type", [
license,
source,
sourceGroup,
background,
condition,
divineIntercession,
domain,
event,
familiarAbility,
relicGift,
skill,
]);
const metaType = z.discriminatedUnion("type", [license, source, sourceGroup]);
import { content } from "./_content.js";
export const data = content.or(metaType);
2 changes: 0 additions & 2 deletions _dist/zod/_index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ export { sourceGroup } from "./sourceGroup.js";
export { bundle } from "./_bundle.js";
export { content } from "./_content.js";
export { data } from "./_data.js";
export { statblock } from "./_statblock.js";
export { background } from "./content/background.js";
export { condition } from "./content/condition.js";
export { divineIntercession } from "./content/divineIntercession.js";
export { domain } from "./content/domain.js";
export { event } from "./content/event.js";
export { familiarAbility } from "./content/familiarAbility.js";
Expand Down
4 changes: 1 addition & 3 deletions _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 Sat, 27 Apr 2024 00:53:15 GMT
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 00:49:21 GMT
// .
export { contentTemplate } from "./contentTemplate.js";
export { license } from "./license.js";
Expand All @@ -7,11 +7,9 @@ export { sourceGroup } from "./sourceGroup.js";
export { bundle } from "./_bundle.js";
export { content } from "./_content.js";
export { data } from "./_data.js";
export { statblock } from "./_statblock.js";
// content
export { background } from "./content/background.js";
export { condition } from "./content/condition.js";
export { divineIntercession } from "./content/divineIntercession.js";
export { domain } from "./content/domain.js";
export { event } from "./content/event.js";
export { familiarAbility } from "./content/familiarAbility.js";
Expand Down
Loading

0 comments on commit 3e3fd8b

Please sign in to comment.