From 996af2edcc64eb2056521d8b7388d693350a2ab4 Mon Sep 17 00:00:00 2001 From: Spappz <34202141+Spappz@users.noreply.github.com> Date: Thu, 16 May 2024 03:03:10 +0100 Subject: [PATCH] npm run build --- _dist/zod/_bundle.js | 2 +- _dist/zod/_content.js | 2 +- _dist/zod/_data.js | 2 +- _dist/zod/_index.js | 2 +- _dist/zod/indexes/homebrewSources.d.ts | 174 ++++++++++++++++++++++++- _dist/zod/indexes/homebrewSources.js | 12 +- zod/_bundle.ts | 2 +- zod/_content.ts | 2 +- zod/_data.ts | 2 +- zod/_index.ts | 2 +- 10 files changed, 186 insertions(+), 16 deletions(-) diff --git a/_dist/zod/_bundle.js b/_dist/zod/_bundle.js index 8ae350c..1cd2d28 100644 --- a/_dist/zod/_bundle.js +++ b/_dist/zod/_bundle.js @@ -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"; diff --git a/_dist/zod/_content.js b/_dist/zod/_content.js index aa291d1..c06cd09 100644 --- a/_dist/zod/_content.js +++ b/_dist/zod/_content.js @@ -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"; diff --git a/_dist/zod/_data.js b/_dist/zod/_data.js index 5ff01f9..b13f192 100644 --- a/_dist/zod/_data.js +++ b/_dist/zod/_data.js @@ -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"; diff --git a/_dist/zod/_index.js b/_dist/zod/_index.js index 0545f8a..a528301 100644 --- a/_dist/zod/_index.js +++ b/_dist/zod/_index.js @@ -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"; diff --git a/_dist/zod/indexes/homebrewSources.d.ts b/_dist/zod/indexes/homebrewSources.d.ts index 49f546c..f872765 100644 --- a/_dist/zod/indexes/homebrewSources.d.ts +++ b/_dist/zod/indexes/homebrewSources.d.ts @@ -184,7 +184,7 @@ export declare const homebrewSourceSummary: z.ZodObject>; -}, "released" | "added" | "modified" | "URL">, { +}, "released" | "added" | "modified" | "URL" | "_tags">, { path: z.ZodString; fullTitle: z.ZodString; publisherAuthors: z.ZodString; @@ -199,6 +199,27 @@ export declare const homebrewSourceSummary: z.ZodObject; export declare const homebrewSources: z.ZodArray>; -}, "released" | "added" | "modified" | "URL">, { +}, "released" | "added" | "modified" | "URL" | "_tags">, { path: z.ZodString; fullTitle: z.ZodString; publisherAuthors: z.ZodString; @@ -414,6 +456,27 @@ export declare const homebrewSources: z.ZodArray, "many">; export declare const homebrewSourcesRecord: z.ZodEffects, z.ZodObject>; -}, "released" | "added" | "modified" | "URL">, { +}, "released" | "added" | "modified" | "URL" | "_tags">, { path: z.ZodString; fullTitle: z.ZodString; publisherAuthors: z.ZodString; @@ -627,6 +711,27 @@ export declare const homebrewSourcesRecord: z.ZodEffects>, Record, Record>; diff --git a/_dist/zod/indexes/homebrewSources.js b/_dist/zod/indexes/homebrewSources.js index 54b4546..6d1a85e 100644 --- a/_dist/zod/indexes/homebrewSources.js +++ b/_dist/zod/indexes/homebrewSources.js @@ -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") @@ -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) diff --git a/zod/_bundle.ts b/zod/_bundle.ts index f7d8f46..222f92a 100644 --- a/zod/_bundle.ts +++ b/zod/_bundle.ts @@ -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"; diff --git a/zod/_content.ts b/zod/_content.ts index e257de6..ce7efb6 100644 --- a/zod/_content.ts +++ b/zod/_content.ts @@ -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"; diff --git a/zod/_data.ts b/zod/_data.ts index 3c2dd70..1fd10c7 100644 --- a/zod/_data.ts +++ b/zod/_data.ts @@ -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"; diff --git a/zod/_index.ts b/zod/_index.ts index 20dcb04..e026cf1 100644 --- a/zod/_index.ts +++ b/zod/_index.ts @@ -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";