Skip to content

Commit 996af2e

Browse files
committed
npm run build
1 parent c9e0b36 commit 996af2e

File tree

10 files changed

+186
-16
lines changed

10 files changed

+186
-16
lines changed

_dist/zod/_bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22
import { z } from "zod";
33
import { license } from "./license.js";
44
import { source } from "./source.js";

_dist/zod/_content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22
import { z } from "zod";
33
import { background } from "./content/background.js";
44
import { condition } from "./content/condition.js";

_dist/zod/_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22
import { z } from "zod";
33
import { license } from "./license.js";
44
import { source } from "./source.js";

_dist/zod/_index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 01:44:10 GMT
1+
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 02:02:47 GMT
22
// .
33
export { contentTemplate } from "./contentTemplate.js";
44
export { license } from "./license.js";

_dist/zod/indexes/homebrewSources.d.ts

Lines changed: 171 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
184184
NSFW?: true | undefined;
185185
} | undefined;
186186
}>>;
187-
}, "released" | "added" | "modified" | "URL">, {
187+
}, "released" | "added" | "modified" | "URL" | "_tags">, {
188188
path: z.ZodString;
189189
fullTitle: z.ZodString;
190190
publisherAuthors: z.ZodString;
@@ -199,6 +199,27 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
199199
fullTitle: string;
200200
publisherAuthors: string;
201201
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
202+
_tags?: {
203+
status?: {
204+
"Missing content"?: true | undefined;
205+
"Missing tags"?: true | undefined;
206+
Invalid?: true | undefined;
207+
} | undefined;
208+
publicationType?: {
209+
Comic?: true | undefined;
210+
"Blog post"?: true | undefined;
211+
} | undefined;
212+
misc?: {
213+
legacyRuleset?: true | undefined;
214+
Official?: true | undefined;
215+
"GM-facing"?: true | undefined;
216+
"PFS-legal"?: true | undefined;
217+
Playtest?: true | undefined;
218+
Ongoing?: true | undefined;
219+
Deprecated?: true | undefined;
220+
NSFW?: true | undefined;
221+
} | undefined;
222+
} | undefined;
202223
sourceURL?: string | undefined;
203224
}, {
204225
path: string;
@@ -209,6 +230,27 @@ export declare const homebrewSourceSummary: z.ZodObject<z.objectUtil.extendShape
209230
fullTitle: string;
210231
publisherAuthors: string;
211232
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
233+
_tags?: {
234+
status?: {
235+
"Missing content"?: true | undefined;
236+
"Missing tags"?: true | undefined;
237+
Invalid?: true | undefined;
238+
} | undefined;
239+
publicationType?: {
240+
Comic?: true | undefined;
241+
"Blog post"?: true | undefined;
242+
} | undefined;
243+
misc?: {
244+
legacyRuleset?: true | undefined;
245+
Official?: true | undefined;
246+
"GM-facing"?: true | undefined;
247+
"PFS-legal"?: true | undefined;
248+
Playtest?: true | undefined;
249+
Ongoing?: true | undefined;
250+
Deprecated?: true | undefined;
251+
NSFW?: true | undefined;
252+
} | undefined;
253+
} | undefined;
212254
sourceURL?: string | undefined;
213255
}>;
214256
export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Pick<{
@@ -396,7 +438,7 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
396438
NSFW?: true | undefined;
397439
} | undefined;
398440
}>>;
399-
}, "released" | "added" | "modified" | "URL">, {
441+
}, "released" | "added" | "modified" | "URL" | "_tags">, {
400442
path: z.ZodString;
401443
fullTitle: z.ZodString;
402444
publisherAuthors: z.ZodString;
@@ -414,6 +456,27 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
414456
fullTitle: string;
415457
publisherAuthors: string;
416458
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
459+
_tags?: {
460+
status?: {
461+
"Missing content"?: true | undefined;
462+
"Missing tags"?: true | undefined;
463+
Invalid?: true | undefined;
464+
} | undefined;
465+
publicationType?: {
466+
Comic?: true | undefined;
467+
"Blog post"?: true | undefined;
468+
} | undefined;
469+
misc?: {
470+
legacyRuleset?: true | undefined;
471+
Official?: true | undefined;
472+
"GM-facing"?: true | undefined;
473+
"PFS-legal"?: true | undefined;
474+
Playtest?: true | undefined;
475+
Ongoing?: true | undefined;
476+
Deprecated?: true | undefined;
477+
NSFW?: true | undefined;
478+
} | undefined;
479+
} | undefined;
417480
sourceURL?: string | undefined;
418481
}, {
419482
path: string;
@@ -425,6 +488,27 @@ export declare const homebrewSources: z.ZodArray<z.ZodObject<z.objectUtil.extend
425488
fullTitle: string;
426489
publisherAuthors: string;
427490
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
491+
_tags?: {
492+
status?: {
493+
"Missing content"?: true | undefined;
494+
"Missing tags"?: true | undefined;
495+
Invalid?: true | undefined;
496+
} | undefined;
497+
publicationType?: {
498+
Comic?: true | undefined;
499+
"Blog post"?: true | undefined;
500+
} | undefined;
501+
misc?: {
502+
legacyRuleset?: true | undefined;
503+
Official?: true | undefined;
504+
"GM-facing"?: true | undefined;
505+
"PFS-legal"?: true | undefined;
506+
Playtest?: true | undefined;
507+
Ongoing?: true | undefined;
508+
Deprecated?: true | undefined;
509+
NSFW?: true | undefined;
510+
} | undefined;
511+
} | undefined;
428512
sourceURL?: string | undefined;
429513
}>, "many">;
430514
export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<z.objectUtil.extendShape<Pick<{
@@ -612,7 +696,7 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
612696
NSFW?: true | undefined;
613697
} | undefined;
614698
}>>;
615-
}, "released" | "added" | "modified" | "URL">, {
699+
}, "released" | "added" | "modified" | "URL" | "_tags">, {
616700
path: z.ZodString;
617701
fullTitle: z.ZodString;
618702
publisherAuthors: z.ZodString;
@@ -627,6 +711,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
627711
fullTitle: string;
628712
publisherAuthors: string;
629713
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
714+
_tags?: {
715+
status?: {
716+
"Missing content"?: true | undefined;
717+
"Missing tags"?: true | undefined;
718+
Invalid?: true | undefined;
719+
} | undefined;
720+
publicationType?: {
721+
Comic?: true | undefined;
722+
"Blog post"?: true | undefined;
723+
} | undefined;
724+
misc?: {
725+
legacyRuleset?: true | undefined;
726+
Official?: true | undefined;
727+
"GM-facing"?: true | undefined;
728+
"PFS-legal"?: true | undefined;
729+
Playtest?: true | undefined;
730+
Ongoing?: true | undefined;
731+
Deprecated?: true | undefined;
732+
NSFW?: true | undefined;
733+
} | undefined;
734+
} | undefined;
630735
sourceURL?: string | undefined;
631736
}, {
632737
path: string;
@@ -637,6 +742,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
637742
fullTitle: string;
638743
publisherAuthors: string;
639744
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
745+
_tags?: {
746+
status?: {
747+
"Missing content"?: true | undefined;
748+
"Missing tags"?: true | undefined;
749+
Invalid?: true | undefined;
750+
} | undefined;
751+
publicationType?: {
752+
Comic?: true | undefined;
753+
"Blog post"?: true | undefined;
754+
} | undefined;
755+
misc?: {
756+
legacyRuleset?: true | undefined;
757+
Official?: true | undefined;
758+
"GM-facing"?: true | undefined;
759+
"PFS-legal"?: true | undefined;
760+
Playtest?: true | undefined;
761+
Ongoing?: true | undefined;
762+
Deprecated?: true | undefined;
763+
NSFW?: true | undefined;
764+
} | undefined;
765+
} | undefined;
640766
sourceURL?: string | undefined;
641767
}>>, Record<string, {
642768
path: string;
@@ -647,6 +773,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
647773
fullTitle: string;
648774
publisherAuthors: string;
649775
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
776+
_tags?: {
777+
status?: {
778+
"Missing content"?: true | undefined;
779+
"Missing tags"?: true | undefined;
780+
Invalid?: true | undefined;
781+
} | undefined;
782+
publicationType?: {
783+
Comic?: true | undefined;
784+
"Blog post"?: true | undefined;
785+
} | undefined;
786+
misc?: {
787+
legacyRuleset?: true | undefined;
788+
Official?: true | undefined;
789+
"GM-facing"?: true | undefined;
790+
"PFS-legal"?: true | undefined;
791+
Playtest?: true | undefined;
792+
Ongoing?: true | undefined;
793+
Deprecated?: true | undefined;
794+
NSFW?: true | undefined;
795+
} | undefined;
796+
} | undefined;
650797
sourceURL?: string | undefined;
651798
}>, Record<string, {
652799
path: string;
@@ -657,5 +804,26 @@ export declare const homebrewSourcesRecord: z.ZodEffects<z.ZodRecord<z.ZodEffect
657804
fullTitle: string;
658805
publisherAuthors: string;
659806
datatypes: ("source" | "background" | "event" | "license" | "sourceGroup" | "condition" | "domain" | "skill" | "familiarAbility" | "relicGift")[];
807+
_tags?: {
808+
status?: {
809+
"Missing content"?: true | undefined;
810+
"Missing tags"?: true | undefined;
811+
Invalid?: true | undefined;
812+
} | undefined;
813+
publicationType?: {
814+
Comic?: true | undefined;
815+
"Blog post"?: true | undefined;
816+
} | undefined;
817+
misc?: {
818+
legacyRuleset?: true | undefined;
819+
Official?: true | undefined;
820+
"GM-facing"?: true | undefined;
821+
"PFS-legal"?: true | undefined;
822+
Playtest?: true | undefined;
823+
Ongoing?: true | undefined;
824+
Deprecated?: true | undefined;
825+
NSFW?: true | undefined;
826+
} | undefined;
827+
} | undefined;
660828
sourceURL?: string | undefined;
661829
}>>;

_dist/zod/indexes/homebrewSources.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { ID } from "../content/common/ID.js";
44
import { datatypes } from "./datatypes.js";
55
import { nonEmpty } from "../utils/nonEmpty.js";
66
export const homebrewSourceSummary = sourceData
7-
.pick({ URL: true, released: true, added: true, modified: true })
7+
.pick({ URL: true, released: true, added: true, modified: true, _tags: true })
88
.extend({
99
path: z
1010
.string()
1111
.describe("A relative Unix path from the top-level `pf2ools-data` directory to the source's file.")
12-
.regex(/bundles\/bySource\/homebrew\/.+\.json/, "Must be a valid relative Unix path"),
12+
.regex(/^bundles\/bySource\/homebrew\/.+\.json$/, "Must be a valid relative Unix path"),
1313
fullTitle: z
1414
.string()
1515
.describe("The source's `title.full` property, which corresponds to the source's complete, proper name")
@@ -23,11 +23,13 @@ export const homebrewSourceSummary = sourceData
2323
.string()
2424
.url()
2525
.optional()
26-
.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."),
27-
});
26+
.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."),
27+
})
28+
.describe("A flattened, curated source structure designed to be easy to parse as an index.")
29+
.strict();
2830
export const homebrewSources = z
2931
.array(homebrewSourceSummary.extend({ ID: ID }))
30-
.describe("An array of objects containing some summary data about the homebrew source assigned that ID. This is primarily used by `pf2ools-app`.")
32+
.describe("An array of objects containing some summary data about the homebrew source assigned that ID. This is primarily used by the Pf2ools App.")
3133
.min(1);
3234
export const homebrewSourcesRecord = z
3335
.record(ID, homebrewSourceSummary)

zod/_bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22

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

zod/_content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22

33
import { z } from "zod";
44

zod/_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 01:44:09 GMT
1+
// This file was generated by scripts/generate-zod-combinedTypes.js at Thu, 16 May 2024 02:02:46 GMT
22

33
import { z } from "zod";
44

zod/_index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 01:44:10 GMT
1+
// This file was generated by scripts/generate-zod-index.js at Thu, 16 May 2024 02:02:47 GMT
22

33
// .
44
export { contentTemplate } from "./contentTemplate.js";

0 commit comments

Comments
 (0)