@glidevvr/storage-payload-types-pkg 1.0.10 → 1.0.12

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 +91 -83
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -6,6 +6,74 @@
6
6
  * and re-run `payload generate:types` to regenerate this file.
7
7
  */
8
8
 
9
+ /**
10
+ * This interface was referenced by `Config`'s JSON-Schema
11
+ * via the `definition` "NavItem".
12
+ */
13
+ export type NavItem =
14
+ | {
15
+ link: {
16
+ type?: ('reference' | 'custom') | null;
17
+ newTab?: boolean | null;
18
+ reference?:
19
+ | ({
20
+ relationTo: 'pages';
21
+ value: string | Page;
22
+ } | null)
23
+ | ({
24
+ relationTo: 'posts';
25
+ value: string | Post;
26
+ } | null)
27
+ | ({
28
+ relationTo: 'facilities';
29
+ value: string | Facility;
30
+ } | null)
31
+ | ({
32
+ relationTo: 'markets';
33
+ value: string | Market;
34
+ } | null)
35
+ | ({
36
+ relationTo: 'categories';
37
+ value: string | Category;
38
+ } | null);
39
+ url?: string | null;
40
+ label: string;
41
+ };
42
+ navChildren?:
43
+ | {
44
+ link: {
45
+ type?: ('reference' | 'custom') | null;
46
+ newTab?: boolean | null;
47
+ reference?:
48
+ | ({
49
+ relationTo: 'pages';
50
+ value: string | Page;
51
+ } | null)
52
+ | ({
53
+ relationTo: 'posts';
54
+ value: string | Post;
55
+ } | null)
56
+ | ({
57
+ relationTo: 'facilities';
58
+ value: string | Facility;
59
+ } | null)
60
+ | ({
61
+ relationTo: 'markets';
62
+ value: string | Market;
63
+ } | null)
64
+ | ({
65
+ relationTo: 'categories';
66
+ value: string | Category;
67
+ } | null);
68
+ url?: string | null;
69
+ label: string;
70
+ };
71
+ id?: string | null;
72
+ }[]
73
+ | null;
74
+ id?: string | null;
75
+ }[]
76
+ | null;
9
77
  /**
10
78
  * Supported timezones in IANA format.
11
79
  *
@@ -1230,70 +1298,7 @@ export interface Menu {
1230
1298
  title: string;
1231
1299
  location: 'main_menu' | 'footer_menu_1' | 'footer_menu_2' | 'footer_menu_3' | 'footer_menu_4' | 'none';
1232
1300
  columns?: number | null;
1233
- navItems?:
1234
- | {
1235
- link: {
1236
- type?: ('reference' | 'custom') | null;
1237
- newTab?: boolean | null;
1238
- reference?:
1239
- | ({
1240
- relationTo: 'pages';
1241
- value: string | Page;
1242
- } | null)
1243
- | ({
1244
- relationTo: 'posts';
1245
- value: string | Post;
1246
- } | null)
1247
- | ({
1248
- relationTo: 'facilities';
1249
- value: string | Facility;
1250
- } | null)
1251
- | ({
1252
- relationTo: 'markets';
1253
- value: string | Market;
1254
- } | null)
1255
- | ({
1256
- relationTo: 'categories';
1257
- value: string | Category;
1258
- } | null);
1259
- url?: string | null;
1260
- label: string;
1261
- };
1262
- navChildren?:
1263
- | {
1264
- link: {
1265
- type?: ('reference' | 'custom') | null;
1266
- newTab?: boolean | null;
1267
- reference?:
1268
- | ({
1269
- relationTo: 'pages';
1270
- value: string | Page;
1271
- } | null)
1272
- | ({
1273
- relationTo: 'posts';
1274
- value: string | Post;
1275
- } | null)
1276
- | ({
1277
- relationTo: 'facilities';
1278
- value: string | Facility;
1279
- } | null)
1280
- | ({
1281
- relationTo: 'markets';
1282
- value: string | Market;
1283
- } | null)
1284
- | ({
1285
- relationTo: 'categories';
1286
- value: string | Category;
1287
- } | null);
1288
- url?: string | null;
1289
- label: string;
1290
- };
1291
- id?: string | null;
1292
- }[]
1293
- | null;
1294
- id?: string | null;
1295
- }[]
1296
- | null;
1301
+ navItems?: NavItem;
1297
1302
  createdBy?: string | null;
1298
1303
  updatedBy?: string | null;
1299
1304
  updatedAt: string;
@@ -1874,7 +1879,27 @@ export interface MenusSelect<T extends boolean = true> {
1874
1879
  title?: T;
1875
1880
  location?: T;
1876
1881
  columns?: T;
1877
- navItems?:
1882
+ navItems?: T | NavItemSelect<T>;
1883
+ createdBy?: T;
1884
+ updatedBy?: T;
1885
+ updatedAt?: T;
1886
+ createdAt?: T;
1887
+ }
1888
+ /**
1889
+ * This interface was referenced by `Config`'s JSON-Schema
1890
+ * via the `definition` "NavItem_select".
1891
+ */
1892
+ export interface NavItemSelect<T extends boolean = true> {
1893
+ link?:
1894
+ | T
1895
+ | {
1896
+ type?: T;
1897
+ newTab?: T;
1898
+ reference?: T;
1899
+ url?: T;
1900
+ label?: T;
1901
+ };
1902
+ navChildren?:
1878
1903
  | T
1879
1904
  | {
1880
1905
  link?:
@@ -1886,26 +1911,9 @@ export interface MenusSelect<T extends boolean = true> {
1886
1911
  url?: T;
1887
1912
  label?: T;
1888
1913
  };
1889
- navChildren?:
1890
- | T
1891
- | {
1892
- link?:
1893
- | T
1894
- | {
1895
- type?: T;
1896
- newTab?: T;
1897
- reference?: T;
1898
- url?: T;
1899
- label?: T;
1900
- };
1901
- id?: T;
1902
- };
1903
1914
  id?: T;
1904
1915
  };
1905
- createdBy?: T;
1906
- updatedBy?: T;
1907
- updatedAt?: T;
1908
- createdAt?: T;
1916
+ id?: T;
1909
1917
  }
1910
1918
  /**
1911
1919
  * This interface was referenced by `Config`'s JSON-Schema