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 16, 2024
1 parent c9e0b36 commit 996af2e
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 16 deletions.
2 changes: 1 addition & 1 deletion _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 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
Expand Down
2 changes: 1 addition & 1 deletion _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 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
import { z } from "zod";
import { background } from "./content/background.js";
import { condition } from "./content/condition.js";
Expand Down
2 changes: 1 addition & 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 Thu, 16 May 2024 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
import { z } from "zod";
import { license } from "./license.js";
import { source } from "./source.js";
Expand Down
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 Thu, 16 May 2024 01:44:10 GMT
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 02:02:47 GMT
// .
export { contentTemplate } from "./contentTemplate.js";
export { license } from "./license.js";
Expand Down
174 changes: 171 additions & 3 deletions _dist/zod/indexes/homebrewSources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
NSFW?: true | undefined;
} | undefined;
}>>;
}, "released" | "added" | "modified" | "URL">, {
}, "released" | "added" | "modified" | "URL" | "_tags">, {
path: z.ZodString;
fullTitle: z.ZodString;
publisherAuthors: z.ZodString;
Expand All @@ -199,6 +199,27 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}, {
path: string;
Expand All @@ -209,6 +230,27 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}>;
export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Pick<{
Expand Down Expand Up @@ -396,7 +438,7 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
NSFW?: true | undefined;
} | undefined;
}>>;
}, "released" | "added" | "modified" | "URL">, {
}, "released" | "added" | "modified" | "URL" | "_tags">, {
path: z.ZodString;
fullTitle: z.ZodString;
publisherAuthors: z.ZodString;
Expand All @@ -414,6 +456,27 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}, {
path: string;
Expand All @@ -425,6 +488,27 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}>, "many">;
export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<z.objectUtil.extendShape<Pick<{
Expand Down Expand Up @@ -612,7 +696,7 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
NSFW?: true | undefined;
} | undefined;
}>>;
}, "released" | "added" | "modified" | "URL">, {
}, "released" | "added" | "modified" | "URL" | "_tags">, {
path: z.ZodString;
fullTitle: z.ZodString;
publisherAuthors: z.ZodString;
Expand All @@ -627,6 +711,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}, {
path: string;
Expand All @@ -637,6 +742,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}>>, Record<string, {
path: string;
Expand All @@ -647,6 +773,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}>, Record<string, {
path: string;
Expand All @@ -657,5 +804,26 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
fullTitle: string;
publisherAuthors: string;
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
_tags?: {
status?: {
"Missing content"?: true | undefined;
"Missing tags"?: true | undefined;
Invalid?: true | undefined;
} | undefined;
publicationType?: {
Comic?: true | undefined;
"Blog post"?: true | undefined;
} | undefined;
misc?: {
legacyRuleset?: true | undefined;
Official?: true | undefined;
"GM-facing"?: true | undefined;
"PFS-legal"?: true | undefined;
Playtest?: true | undefined;
Ongoing?: true | undefined;
Deprecated?: true | undefined;
NSFW?: true | undefined;
} | undefined;
} | undefined;
sourceURL?: string | undefined;
}>>;
12 changes: 7 additions & 5 deletions _dist/zod/indexes/homebrewSources.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { ID } from "../content/common/ID.js";
import { datatypes } from "./datatypes.js";
import { nonEmpty } from "../utils/nonEmpty.js";
export const homebrewSourceSummary = sourceData
.pick({ URL: true, released: true, added: true, modified: true })
.pick({ URL: true, released: true, added: true, modified: true, _tags: true })
.extend({
path: z
.string()
.describe("A relative Unix path from the top-level `pf2ools-data` directory to the source's file.")
.regex(/bundles\/bySource\/homebrew\/.+\.json/, "Must be a valid relative Unix path"),
.regex(/^bundles\/bySource\/homebrew\/.+\.json$/, "Must be a valid relative Unix path"),
fullTitle: z
.string()
.describe("The source's `title.full` property, which corresponds to the source's complete, proper name")
Expand All @@ -23,11 +23,13 @@ export const homebrewSourceSummary = sourceData
.string()
.url()
.optional()
.describe("The root URL of the homebrew source's website, which prepends the `path` property to form a full URL to the source's file. If absent, `pf2ools-app` will assume the URL to be the same as that of the index this is being read from."),
});
.describe("The root URL of the homebrew source's website, which prepends the `path` property to form a full URL to the source's file. If absent, the Pf2ools App will assume the URL to be the same as that of the index this is being read from."),
})
.describe("A flattened, curated source structure designed to be easy to parse as an index.")
.strict();
export const homebrewSources = z
.array(homebrewSourceSummary.extend({ ID: ID }))
.describe("An array of objects containing some summary data about the homebrew source assigned that ID. This is primarily used by `pf2ools-app`.")
.describe("An array of objects containing some summary data about the homebrew source assigned that ID. This is primarily used by the Pf2ools App.")
.min(1);
export const homebrewSourcesRecord = z
.record(ID, homebrewSourceSummary)
Expand Down
2 changes: 1 addition & 1 deletion zod/_bundle.ts
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 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT

import { z, type AnyZodObject } from "zod";

Expand Down
2 changes: 1 addition & 1 deletion zod/_content.ts
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 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT

import { z } from "zod";

Expand Down
2 changes: 1 addition & 1 deletion zod/_data.ts
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 01:44:09 GMT
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT

import { z } from "zod";

Expand Down
2 changes: 1 addition & 1 deletion zod/_index.ts
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 Thu, 16 May 2024 01:44:10 GMT
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 02:02:47 GMT

// .
export { contentTemplate } from "./contentTemplate.js";
Expand Down

0 comments on commit 996af2e

Please sign in to comment.