|
6 | 6 | * and re-run `payload generate:types` to regenerate this file.
|
7 | 7 | */
|
8 | 8 |
|
| 9 | +/** |
| 10 | + * Supported timezones in IANA format. |
| 11 | + * |
| 12 | + * This interface was referenced by `Config`'s JSON-Schema |
| 13 | + * via the `definition` "supportedTimezones". |
| 14 | + */ |
| 15 | +export type SupportedTimezones = |
| 16 | + | 'Pacific/Midway' |
| 17 | + | 'Pacific/Niue' |
| 18 | + | 'Pacific/Honolulu' |
| 19 | + | 'Pacific/Rarotonga' |
| 20 | + | 'America/Anchorage' |
| 21 | + | 'Pacific/Gambier' |
| 22 | + | 'America/Los_Angeles' |
| 23 | + | 'America/Tijuana' |
| 24 | + | 'America/Denver' |
| 25 | + | 'America/Phoenix' |
| 26 | + | 'America/Chicago' |
| 27 | + | 'America/Guatemala' |
| 28 | + | 'America/New_York' |
| 29 | + | 'America/Bogota' |
| 30 | + | 'America/Caracas' |
| 31 | + | 'America/Santiago' |
| 32 | + | 'America/Buenos_Aires' |
| 33 | + | 'America/Sao_Paulo' |
| 34 | + | 'Atlantic/South_Georgia' |
| 35 | + | 'Atlantic/Azores' |
| 36 | + | 'Atlantic/Cape_Verde' |
| 37 | + | 'Europe/London' |
| 38 | + | 'Europe/Berlin' |
| 39 | + | 'Africa/Lagos' |
| 40 | + | 'Europe/Athens' |
| 41 | + | 'Africa/Cairo' |
| 42 | + | 'Europe/Moscow' |
| 43 | + | 'Asia/Riyadh' |
| 44 | + | 'Asia/Dubai' |
| 45 | + | 'Asia/Baku' |
| 46 | + | 'Asia/Karachi' |
| 47 | + | 'Asia/Tashkent' |
| 48 | + | 'Asia/Calcutta' |
| 49 | + | 'Asia/Dhaka' |
| 50 | + | 'Asia/Almaty' |
| 51 | + | 'Asia/Jakarta' |
| 52 | + | 'Asia/Bangkok' |
| 53 | + | 'Asia/Shanghai' |
| 54 | + | 'Asia/Singapore' |
| 55 | + | 'Asia/Tokyo' |
| 56 | + | 'Asia/Seoul' |
| 57 | + | 'Australia/Sydney' |
| 58 | + | 'Pacific/Guam' |
| 59 | + | 'Pacific/Noumea' |
| 60 | + | 'Pacific/Auckland' |
| 61 | + | 'Pacific/Fiji'; |
| 62 | + |
9 | 63 | export interface Config {
|
10 | 64 | auth: {
|
11 | 65 | users: UserAuthOperations;
|
12 | 66 | };
|
13 | 67 | collections: {
|
14 | 68 | posts: Post;
|
| 69 | + pages: Page; |
| 70 | + 'pages-categories': PagesCategory; |
15 | 71 | users: User;
|
16 | 72 | 'payload-locked-documents': PayloadLockedDocument;
|
17 | 73 | 'payload-preferences': PayloadPreference;
|
18 | 74 | 'payload-migrations': PayloadMigration;
|
19 | 75 | };
|
20 |
| - collectionsJoins: {}; |
| 76 | + collectionsJoins: { |
| 77 | + 'pages-categories': { |
| 78 | + relatedPages: 'pages'; |
| 79 | + }; |
| 80 | + }; |
21 | 81 | collectionsSelect: {
|
22 | 82 | posts: PostsSelect<false> | PostsSelect<true>;
|
| 83 | + pages: PagesSelect<false> | PagesSelect<true>; |
| 84 | + 'pages-categories': PagesCategoriesSelect<false> | PagesCategoriesSelect<true>; |
23 | 85 | users: UsersSelect<false> | UsersSelect<true>;
|
24 | 86 | 'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
25 | 87 | 'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
@@ -68,6 +130,32 @@ export interface UserAuthOperations {
|
68 | 130 | export interface Post {
|
69 | 131 | id: string;
|
70 | 132 | text?: string | null;
|
| 133 | + title?: string | null; |
| 134 | + updatedAt: string; |
| 135 | + createdAt: string; |
| 136 | +} |
| 137 | +/** |
| 138 | + * This interface was referenced by `Config`'s JSON-Schema |
| 139 | + * via the `definition` "pages". |
| 140 | + */ |
| 141 | +export interface Page { |
| 142 | + id: string; |
| 143 | + title?: string | null; |
| 144 | + category?: (string | null) | PagesCategory; |
| 145 | + updatedAt: string; |
| 146 | + createdAt: string; |
| 147 | +} |
| 148 | +/** |
| 149 | + * This interface was referenced by `Config`'s JSON-Schema |
| 150 | + * via the `definition` "pages-categories". |
| 151 | + */ |
| 152 | +export interface PagesCategory { |
| 153 | + id: string; |
| 154 | + title?: string | null; |
| 155 | + relatedPages?: { |
| 156 | + docs?: (string | Page)[] | null; |
| 157 | + hasNextPage?: boolean | null; |
| 158 | + } | null; |
71 | 159 | updatedAt: string;
|
72 | 160 | createdAt: string;
|
73 | 161 | }
|
@@ -99,6 +187,14 @@ export interface PayloadLockedDocument {
|
99 | 187 | relationTo: 'posts';
|
100 | 188 | value: string | Post;
|
101 | 189 | } | null)
|
| 190 | + | ({ |
| 191 | + relationTo: 'pages'; |
| 192 | + value: string | Page; |
| 193 | + } | null) |
| 194 | + | ({ |
| 195 | + relationTo: 'pages-categories'; |
| 196 | + value: string | PagesCategory; |
| 197 | + } | null) |
102 | 198 | | ({
|
103 | 199 | relationTo: 'users';
|
104 | 200 | value: string | User;
|
@@ -151,6 +247,27 @@ export interface PayloadMigration {
|
151 | 247 | */
|
152 | 248 | export interface PostsSelect<T extends boolean = true> {
|
153 | 249 | text?: T;
|
| 250 | + title?: T; |
| 251 | + updatedAt?: T; |
| 252 | + createdAt?: T; |
| 253 | +} |
| 254 | +/** |
| 255 | + * This interface was referenced by `Config`'s JSON-Schema |
| 256 | + * via the `definition` "pages_select". |
| 257 | + */ |
| 258 | +export interface PagesSelect<T extends boolean = true> { |
| 259 | + title?: T; |
| 260 | + category?: T; |
| 261 | + updatedAt?: T; |
| 262 | + createdAt?: T; |
| 263 | +} |
| 264 | +/** |
| 265 | + * This interface was referenced by `Config`'s JSON-Schema |
| 266 | + * via the `definition` "pages-categories_select". |
| 267 | + */ |
| 268 | +export interface PagesCategoriesSelect<T extends boolean = true> { |
| 269 | + title?: T; |
| 270 | + relatedPages?: T; |
154 | 271 | updatedAt?: T;
|
155 | 272 | createdAt?: T;
|
156 | 273 | }
|
|
0 commit comments