@glidevvr/storage-payload-types-pkg 1.0.23 → 1.0.24

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +48 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -51,7 +51,7 @@ export type NavItem =
51
51
  url?: string | null;
52
52
  label: string;
53
53
  };
54
- navChildren?:
54
+ firstLevelSubmenu?:
55
55
  | {
56
56
  link: {
57
57
  type?: ('reference' | 'custom') | null;
@@ -80,6 +80,38 @@ export type NavItem =
80
80
  url?: string | null;
81
81
  label: string;
82
82
  };
83
+ secondLevelSubmenu?:
84
+ | {
85
+ link: {
86
+ type?: ('reference' | 'custom') | null;
87
+ newTab?: boolean | null;
88
+ reference?:
89
+ | ({
90
+ relationTo: 'pages';
91
+ value: string | Page;
92
+ } | null)
93
+ | ({
94
+ relationTo: 'posts';
95
+ value: string | Post;
96
+ } | null)
97
+ | ({
98
+ relationTo: 'facilities';
99
+ value: string | Facility;
100
+ } | null)
101
+ | ({
102
+ relationTo: 'markets';
103
+ value: string | Market;
104
+ } | null)
105
+ | ({
106
+ relationTo: 'categories';
107
+ value: string | Category;
108
+ } | null);
109
+ url?: string | null;
110
+ label: string;
111
+ };
112
+ id?: string | null;
113
+ }[]
114
+ | null;
83
115
  id?: string | null;
84
116
  }[]
85
117
  | null;
@@ -2261,7 +2293,7 @@ export interface NavItemSelect<T extends boolean = true> {
2261
2293
  url?: T;
2262
2294
  label?: T;
2263
2295
  };
2264
- navChildren?:
2296
+ firstLevelSubmenu?:
2265
2297
  | T
2266
2298
  | {
2267
2299
  link?:
@@ -2273,6 +2305,20 @@ export interface NavItemSelect<T extends boolean = true> {
2273
2305
  url?: T;
2274
2306
  label?: T;
2275
2307
  };
2308
+ secondLevelSubmenu?:
2309
+ | T
2310
+ | {
2311
+ link?:
2312
+ | T
2313
+ | {
2314
+ type?: T;
2315
+ newTab?: T;
2316
+ reference?: T;
2317
+ url?: T;
2318
+ label?: T;
2319
+ };
2320
+ id?: T;
2321
+ };
2276
2322
  id?: T;
2277
2323
  };
2278
2324
  id?: T;