@glidevvr/storage-payload-types-pkg 1.0.1 → 1.0.3

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/README.md ADDED
@@ -0,0 +1,53 @@
1
+ [![N|Solid](https://cdn.golocalinteractive.com/wp-content/uploads/2025/03/cropped-Untitled-design-16-32x32.png)](https://golocalinteractive.com)
2
+ # @glidevvr/storage-payload-types-pkg
3
+
4
+ Provides the latest payload-types.ts generated from a Payload CMS instance.
5
+
6
+ This package is designed for use with Next.js Storage Themes built on top of Payload CMS and serves as a type-safe contract between your CMS backend and frontend consumers.
7
+
8
+ # ✨ Features
9
+
10
+ - ✅ Automatically updated types on every new Payload CMS deployment
11
+
12
+ - ✅ Written in TypeScript
13
+
14
+ - ✅ No dependencies
15
+
16
+ - ✅ Easy to consume in any Next.js app
17
+
18
+ ## 📦 Installation
19
+ ```bash
20
+ npm install @glidevvr/storage-payload-types-pkg
21
+ ```
22
+
23
+ ## 📘 Usage
24
+
25
+ Once installed, simply import the types into your Next.js app:
26
+ ```bash
27
+ // Example usage:
28
+ import { Media, Page } from '@glidevvr/storage-payload-types-pkg';
29
+ ```
30
+ The specific exports depend on how the Payload CMS config is structured and what types are included in the payload-types.ts file.
31
+
32
+ ## 🔄 Auto-updates
33
+
34
+ This package is automatically updated via CI through the BitBucket pipeline when the Payload CMS schema changes after a successful build on the gli-payload-multitenant master branch. You’ll always get the latest types with a simple version bump.
35
+
36
+ ## 📁 File Contents
37
+
38
+ payload-types.ts – Generated using payload generate:types
39
+
40
+ ## 🛠️ Requirements
41
+
42
+ This package assumes you are using:
43
+
44
+ Payload CMS v3.0+
45
+
46
+ Next.js (or another modern TypeScript-based frontend)
47
+
48
+ ## 📄 License
49
+
50
+ ISC © Go Local Interactive
51
+
52
+ ## Change Log
53
+ 1.0.3 - Add README.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -161,8 +161,10 @@ export interface Page {
161
161
  | FormBlock
162
162
  | HomeTestimonialBlock
163
163
  | RentalStepsBlock
164
+ | StoragResourcesBlock
164
165
  | FeaturesGridBlock
165
166
  | HomeHero
167
+ | HorizontalRuleBlock
166
168
  )[];
167
169
  meta?: {
168
170
  title?: string | null;
@@ -1030,6 +1032,92 @@ export interface RentalStepsBlock {
1030
1032
  blockName?: string | null;
1031
1033
  blockType: 'rental-steps';
1032
1034
  }
1035
+ /**
1036
+ * This interface was referenced by `Config`'s JSON-Schema
1037
+ * via the `definition` "StoragResourcesBlock".
1038
+ */
1039
+ export interface StoragResourcesBlock {
1040
+ heading?: string | null;
1041
+ description?: {
1042
+ root: {
1043
+ type: string;
1044
+ children: {
1045
+ type: string;
1046
+ version: number;
1047
+ [k: string]: unknown;
1048
+ }[];
1049
+ direction: ('ltr' | 'rtl') | null;
1050
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1051
+ indent: number;
1052
+ version: number;
1053
+ };
1054
+ [k: string]: unknown;
1055
+ } | null;
1056
+ buttonLink?: {
1057
+ type?: ('reference' | 'custom') | null;
1058
+ newTab?: boolean | null;
1059
+ reference?:
1060
+ | ({
1061
+ relationTo: 'pages';
1062
+ value: string | Page;
1063
+ } | null)
1064
+ | ({
1065
+ relationTo: 'posts';
1066
+ value: string | Post;
1067
+ } | null)
1068
+ | ({
1069
+ relationTo: 'facilities';
1070
+ value: string | Facility;
1071
+ } | null)
1072
+ | ({
1073
+ relationTo: 'markets';
1074
+ value: string | Market;
1075
+ } | null)
1076
+ | ({
1077
+ relationTo: 'categories';
1078
+ value: string | Category;
1079
+ } | null);
1080
+ url?: string | null;
1081
+ label?: string | null;
1082
+ };
1083
+ storageResources?:
1084
+ | {
1085
+ resourceIcon?: string | null;
1086
+ resourceTitle?: string | null;
1087
+ resourceLink: {
1088
+ type?: ('reference' | 'custom') | null;
1089
+ newTab?: boolean | null;
1090
+ reference?:
1091
+ | ({
1092
+ relationTo: 'pages';
1093
+ value: string | Page;
1094
+ } | null)
1095
+ | ({
1096
+ relationTo: 'posts';
1097
+ value: string | Post;
1098
+ } | null)
1099
+ | ({
1100
+ relationTo: 'facilities';
1101
+ value: string | Facility;
1102
+ } | null)
1103
+ | ({
1104
+ relationTo: 'markets';
1105
+ value: string | Market;
1106
+ } | null)
1107
+ | ({
1108
+ relationTo: 'categories';
1109
+ value: string | Category;
1110
+ } | null);
1111
+ url?: string | null;
1112
+ label: string;
1113
+ };
1114
+ id?: string | null;
1115
+ }[]
1116
+ | null;
1117
+ id?: string | null;
1118
+ blockName?: string | null;
1119
+ blockType: 'storage-resources';
1120
+ }
1033
1121
  /**
1034
1122
  * This interface was referenced by `Config`'s JSON-Schema
1035
1123
  * via the `definition` "FeaturesGridBlock".
@@ -1120,6 +1208,15 @@ export interface HomeHero {
1120
1208
  blockName?: string | null;
1121
1209
  blockType: 'homeHero';
1122
1210
  }
1211
+ /**
1212
+ * This interface was referenced by `Config`'s JSON-Schema
1213
+ * via the `definition` "HorizontalRuleBlock".
1214
+ */
1215
+ export interface HorizontalRuleBlock {
1216
+ id?: string | null;
1217
+ blockName?: string | null;
1218
+ blockType: 'horizontal-rule';
1219
+ }
1123
1220
  /**
1124
1221
  * This interface was referenced by `Config`'s JSON-Schema
1125
1222
  * via the `definition` "menus".
@@ -1377,8 +1474,10 @@ export interface PagesSelect<T extends boolean = true> {
1377
1474
  formBlock?: T | FormBlockSelect<T>;
1378
1475
  homeTestimonial?: T | HomeTestimonialBlockSelect<T>;
1379
1476
  'rental-steps'?: T | RentalStepsBlockSelect<T>;
1477
+ 'storage-resources'?: T | StoragResourcesBlockSelect<T>;
1380
1478
  'features-grid'?: T | FeaturesGridBlockSelect<T>;
1381
1479
  homeHero?: T | HomeHeroSelect<T>;
1480
+ 'horizontal-rule'?: T | HorizontalRuleBlockSelect<T>;
1382
1481
  };
1383
1482
  meta?:
1384
1483
  | T
@@ -1513,6 +1612,41 @@ export interface RentalStepsBlockSelect<T extends boolean = true> {
1513
1612
  id?: T;
1514
1613
  blockName?: T;
1515
1614
  }
1615
+ /**
1616
+ * This interface was referenced by `Config`'s JSON-Schema
1617
+ * via the `definition` "StoragResourcesBlock_select".
1618
+ */
1619
+ export interface StoragResourcesBlockSelect<T extends boolean = true> {
1620
+ heading?: T;
1621
+ description?: T;
1622
+ buttonLink?:
1623
+ | T
1624
+ | {
1625
+ type?: T;
1626
+ newTab?: T;
1627
+ reference?: T;
1628
+ url?: T;
1629
+ label?: T;
1630
+ };
1631
+ storageResources?:
1632
+ | T
1633
+ | {
1634
+ resourceIcon?: T;
1635
+ resourceTitle?: T;
1636
+ resourceLink?:
1637
+ | T
1638
+ | {
1639
+ type?: T;
1640
+ newTab?: T;
1641
+ reference?: T;
1642
+ url?: T;
1643
+ label?: T;
1644
+ };
1645
+ id?: T;
1646
+ };
1647
+ id?: T;
1648
+ blockName?: T;
1649
+ }
1516
1650
  /**
1517
1651
  * This interface was referenced by `Config`'s JSON-Schema
1518
1652
  * via the `definition` "FeaturesGridBlock_select".
@@ -1555,6 +1689,14 @@ export interface HomeHeroSelect<T extends boolean = true> {
1555
1689
  id?: T;
1556
1690
  blockName?: T;
1557
1691
  }
1692
+ /**
1693
+ * This interface was referenced by `Config`'s JSON-Schema
1694
+ * via the `definition` "HorizontalRuleBlock_select".
1695
+ */
1696
+ export interface HorizontalRuleBlockSelect<T extends boolean = true> {
1697
+ id?: T;
1698
+ blockName?: T;
1699
+ }
1558
1700
  /**
1559
1701
  * This interface was referenced by `Config`'s JSON-Schema
1560
1702
  * via the `definition` "media_select".