@the-smithy/hearth-schema 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -613,6 +613,15 @@ declare const blockDataSchemas: {
613
613
  collectionId: z.ZodOptional<z.ZodString>;
614
614
  categoryId: z.ZodOptional<z.ZodString>;
615
615
  }, z.core.$strip>;
616
+ /** Events that have ended, most recent first: a talk archive, past events. */
617
+ readonly pastEvents: z.ZodObject<{
618
+ eyebrow: z.ZodOptional<z.ZodString>;
619
+ heading: z.ZodOptional<z.ZodString>;
620
+ intro: z.ZodOptional<z.ZodString>;
621
+ limit: z.ZodDefault<z.ZodNumber>;
622
+ collectionId: z.ZodOptional<z.ZodString>;
623
+ categoryId: z.ZodOptional<z.ZodString>;
624
+ }, z.core.$strip>;
616
625
  readonly eventSpotlight: z.ZodObject<{
617
626
  eventSlug: z.ZodOptional<z.ZodString>;
618
627
  categoryId: z.ZodOptional<z.ZodString>;
@@ -680,7 +689,7 @@ declare const blockTypes: BlockType[];
680
689
  declare const blockFeature: Partial<Record<BlockType, "events" | "giving">>;
681
690
  declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
682
691
  id: z.ZodString;
683
- type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
692
+ type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
684
693
  data: z.ZodObject<{
685
694
  eyebrow: z.ZodOptional<z.ZodString>;
686
695
  heading: z.ZodString;
@@ -966,6 +975,13 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
966
975
  limit: z.ZodDefault<z.ZodNumber>;
967
976
  collectionId: z.ZodOptional<z.ZodString>;
968
977
  categoryId: z.ZodOptional<z.ZodString>;
978
+ }, z.core.$strip> | z.ZodObject<{
979
+ eyebrow: z.ZodOptional<z.ZodString>;
980
+ heading: z.ZodOptional<z.ZodString>;
981
+ intro: z.ZodOptional<z.ZodString>;
982
+ limit: z.ZodDefault<z.ZodNumber>;
983
+ collectionId: z.ZodOptional<z.ZodString>;
984
+ categoryId: z.ZodOptional<z.ZodString>;
969
985
  }, z.core.$strip> | z.ZodObject<{
970
986
  eventSlug: z.ZodOptional<z.ZodString>;
971
987
  categoryId: z.ZodOptional<z.ZodString>;
@@ -1010,7 +1026,7 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
1026
  }, z.core.$strip>;
1011
1027
  }, z.core.$strip>, ...z.ZodObject<{
1012
1028
  id: z.ZodString;
1013
- type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1029
+ type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1014
1030
  data: z.ZodObject<{
1015
1031
  eyebrow: z.ZodOptional<z.ZodString>;
1016
1032
  heading: z.ZodString;
@@ -1296,6 +1312,13 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1296
1312
  limit: z.ZodDefault<z.ZodNumber>;
1297
1313
  collectionId: z.ZodOptional<z.ZodString>;
1298
1314
  categoryId: z.ZodOptional<z.ZodString>;
1315
+ }, z.core.$strip> | z.ZodObject<{
1316
+ eyebrow: z.ZodOptional<z.ZodString>;
1317
+ heading: z.ZodOptional<z.ZodString>;
1318
+ intro: z.ZodOptional<z.ZodString>;
1319
+ limit: z.ZodDefault<z.ZodNumber>;
1320
+ collectionId: z.ZodOptional<z.ZodString>;
1321
+ categoryId: z.ZodOptional<z.ZodString>;
1299
1322
  }, z.core.$strip> | z.ZodObject<{
1300
1323
  eventSlug: z.ZodOptional<z.ZodString>;
1301
1324
  categoryId: z.ZodOptional<z.ZodString>;
@@ -1383,7 +1406,7 @@ declare const pageContentSchema: z.ZodObject<{
1383
1406
  }, z.core.$strip>>;
1384
1407
  blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1385
1408
  id: z.ZodString;
1386
- type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1409
+ type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1387
1410
  data: z.ZodObject<{
1388
1411
  eyebrow: z.ZodOptional<z.ZodString>;
1389
1412
  heading: z.ZodString;
@@ -1669,6 +1692,13 @@ declare const pageContentSchema: z.ZodObject<{
1669
1692
  limit: z.ZodDefault<z.ZodNumber>;
1670
1693
  collectionId: z.ZodOptional<z.ZodString>;
1671
1694
  categoryId: z.ZodOptional<z.ZodString>;
1695
+ }, z.core.$strip> | z.ZodObject<{
1696
+ eyebrow: z.ZodOptional<z.ZodString>;
1697
+ heading: z.ZodOptional<z.ZodString>;
1698
+ intro: z.ZodOptional<z.ZodString>;
1699
+ limit: z.ZodDefault<z.ZodNumber>;
1700
+ collectionId: z.ZodOptional<z.ZodString>;
1701
+ categoryId: z.ZodOptional<z.ZodString>;
1672
1702
  }, z.core.$strip> | z.ZodObject<{
1673
1703
  eventSlug: z.ZodOptional<z.ZodString>;
1674
1704
  categoryId: z.ZodOptional<z.ZodString>;
@@ -1713,7 +1743,7 @@ declare const pageContentSchema: z.ZodObject<{
1713
1743
  }, z.core.$strip>;
1714
1744
  }, z.core.$strip>, ...z.ZodObject<{
1715
1745
  id: z.ZodString;
1716
- type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1746
+ type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1717
1747
  data: z.ZodObject<{
1718
1748
  eyebrow: z.ZodOptional<z.ZodString>;
1719
1749
  heading: z.ZodString;
@@ -1999,6 +2029,13 @@ declare const pageContentSchema: z.ZodObject<{
1999
2029
  limit: z.ZodDefault<z.ZodNumber>;
2000
2030
  collectionId: z.ZodOptional<z.ZodString>;
2001
2031
  categoryId: z.ZodOptional<z.ZodString>;
2032
+ }, z.core.$strip> | z.ZodObject<{
2033
+ eyebrow: z.ZodOptional<z.ZodString>;
2034
+ heading: z.ZodOptional<z.ZodString>;
2035
+ intro: z.ZodOptional<z.ZodString>;
2036
+ limit: z.ZodDefault<z.ZodNumber>;
2037
+ collectionId: z.ZodOptional<z.ZodString>;
2038
+ categoryId: z.ZodOptional<z.ZodString>;
2002
2039
  }, z.core.$strip> | z.ZodObject<{
2003
2040
  eventSlug: z.ZodOptional<z.ZodString>;
2004
2041
  categoryId: z.ZodOptional<z.ZodString>;
@@ -2479,7 +2516,7 @@ type Resolved<T extends BlockType> = T extends "hero" ? {
2479
2516
  alt: string;
2480
2517
  } | null;
2481
2518
  };
2482
- } : T extends "upcomingEvents" ? {
2519
+ } : T extends "upcomingEvents" | "pastEvents" ? {
2483
2520
  id: string;
2484
2521
  type: T;
2485
2522
  data: BlockData<T> & {
package/dist/index.js CHANGED
@@ -306,6 +306,17 @@ var blockDataSchemas = {
306
306
  /** Only events in this category (e.g. "Featured"). */
307
307
  categoryId: z.string().uuid().optional()
308
308
  }),
309
+ /** Events that have ended, most recent first: a talk archive, past events. */
310
+ pastEvents: z.object({
311
+ eyebrow: z.string().optional(),
312
+ heading: z.string().optional(),
313
+ intro: z.string().optional(),
314
+ limit: z.number().int().min(1).max(24).default(6),
315
+ /** Only events in this event collection (e.g. "Talks"); omit for every event. */
316
+ collectionId: z.string().uuid().optional(),
317
+ /** Only events in this category. */
318
+ categoryId: z.string().uuid().optional()
319
+ }),
309
320
  eventSpotlight: z.object({
310
321
  /** Event slug; omit to show the next upcoming event. */
311
322
  eventSlug: z.string().optional(),
@@ -368,6 +379,7 @@ var blockDataSchemas = {
368
379
  var blockTypes = Object.keys(blockDataSchemas);
369
380
  var blockFeature = {
370
381
  upcomingEvents: "events",
382
+ pastEvents: "events",
371
383
  eventSpotlight: "events",
372
384
  fundraiserSpotlight: "giving",
373
385
  fundraiserGrid: "giving",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-smithy/hearth-schema",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Content schemas and API types shared by Hearth and its SDK.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",