payload-types.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * This file was automatically generated by Payload.
  5. * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
  6. * and re-run `payload generate:types` to regenerate this file.
  7. */
  8. /**
  9. * Supported timezones in IANA format.
  10. *
  11. * This interface was referenced by `Config`'s JSON-Schema
  12. * via the `definition` "supportedTimezones".
  13. */
  14. export type SupportedTimezones =
  15. | 'Pacific/Midway'
  16. | 'Pacific/Niue'
  17. | 'Pacific/Honolulu'
  18. | 'Pacific/Rarotonga'
  19. | 'America/Anchorage'
  20. | 'Pacific/Gambier'
  21. | 'America/Los_Angeles'
  22. | 'America/Tijuana'
  23. | 'America/Denver'
  24. | 'America/Phoenix'
  25. | 'America/Chicago'
  26. | 'America/Guatemala'
  27. | 'America/New_York'
  28. | 'America/Bogota'
  29. | 'America/Caracas'
  30. | 'America/Santiago'
  31. | 'America/Buenos_Aires'
  32. | 'America/Sao_Paulo'
  33. | 'Atlantic/South_Georgia'
  34. | 'Atlantic/Azores'
  35. | 'Atlantic/Cape_Verde'
  36. | 'Europe/London'
  37. | 'Europe/Berlin'
  38. | 'Africa/Lagos'
  39. | 'Europe/Athens'
  40. | 'Africa/Cairo'
  41. | 'Europe/Moscow'
  42. | 'Asia/Riyadh'
  43. | 'Asia/Dubai'
  44. | 'Asia/Baku'
  45. | 'Asia/Karachi'
  46. | 'Asia/Tashkent'
  47. | 'Asia/Calcutta'
  48. | 'Asia/Dhaka'
  49. | 'Asia/Almaty'
  50. | 'Asia/Jakarta'
  51. | 'Asia/Bangkok'
  52. | 'Asia/Shanghai'
  53. | 'Asia/Singapore'
  54. | 'Asia/Tokyo'
  55. | 'Asia/Seoul'
  56. | 'Australia/Brisbane'
  57. | 'Australia/Sydney'
  58. | 'Pacific/Guam'
  59. | 'Pacific/Noumea'
  60. | 'Pacific/Auckland'
  61. | 'Pacific/Fiji';
  62. export interface Config {
  63. auth: {
  64. users: UserAuthOperations;
  65. };
  66. blocks: {};
  67. collections: {
  68. users: User;
  69. media: Media;
  70. authors: Author;
  71. posts: Post;
  72. clients: Client;
  73. careers: Career;
  74. gallery: Gallery;
  75. 'payload-kv': PayloadKv;
  76. 'payload-locked-documents': PayloadLockedDocument;
  77. 'payload-preferences': PayloadPreference;
  78. 'payload-migrations': PayloadMigration;
  79. };
  80. collectionsJoins: {};
  81. collectionsSelect: {
  82. users: UsersSelect<false> | UsersSelect<true>;
  83. media: MediaSelect<false> | MediaSelect<true>;
  84. authors: AuthorsSelect<false> | AuthorsSelect<true>;
  85. posts: PostsSelect<false> | PostsSelect<true>;
  86. clients: ClientsSelect<false> | ClientsSelect<true>;
  87. careers: CareersSelect<false> | CareersSelect<true>;
  88. gallery: GallerySelect<false> | GallerySelect<true>;
  89. 'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
  90. 'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
  91. 'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
  92. 'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
  93. };
  94. db: {
  95. defaultIDType: number;
  96. };
  97. fallbackLocale: null;
  98. globals: {};
  99. globalsSelect: {};
  100. locale: null;
  101. user: User & {
  102. collection: 'users';
  103. };
  104. jobs: {
  105. tasks: unknown;
  106. workflows: unknown;
  107. };
  108. }
  109. export interface UserAuthOperations {
  110. forgotPassword: {
  111. email: string;
  112. password: string;
  113. };
  114. login: {
  115. email: string;
  116. password: string;
  117. };
  118. registerFirstUser: {
  119. email: string;
  120. password: string;
  121. };
  122. unlock: {
  123. email: string;
  124. password: string;
  125. };
  126. }
  127. /**
  128. * This interface was referenced by `Config`'s JSON-Schema
  129. * via the `definition` "users".
  130. */
  131. export interface User {
  132. id: number;
  133. updatedAt: string;
  134. createdAt: string;
  135. email: string;
  136. resetPasswordToken?: string | null;
  137. resetPasswordExpiration?: string | null;
  138. salt?: string | null;
  139. hash?: string | null;
  140. loginAttempts?: number | null;
  141. lockUntil?: string | null;
  142. sessions?:
  143. | {
  144. id: string;
  145. createdAt?: string | null;
  146. expiresAt: string;
  147. }[]
  148. | null;
  149. password?: string | null;
  150. }
  151. /**
  152. * This interface was referenced by `Config`'s JSON-Schema
  153. * via the `definition` "media".
  154. */
  155. export interface Media {
  156. id: number;
  157. alt: string;
  158. updatedAt: string;
  159. createdAt: string;
  160. url?: string | null;
  161. thumbnailURL?: string | null;
  162. filename?: string | null;
  163. mimeType?: string | null;
  164. filesize?: number | null;
  165. width?: number | null;
  166. height?: number | null;
  167. focalX?: number | null;
  168. focalY?: number | null;
  169. }
  170. /**
  171. * This interface was referenced by `Config`'s JSON-Schema
  172. * via the `definition` "authors".
  173. */
  174. export interface Author {
  175. id: number;
  176. name: string;
  177. image: number | Media;
  178. description: string;
  179. socialMediaLink?: string | null;
  180. updatedAt: string;
  181. createdAt: string;
  182. }
  183. /**
  184. * This interface was referenced by `Config`'s JSON-Schema
  185. * via the `definition` "posts".
  186. */
  187. export interface Post {
  188. id: number;
  189. type: 'news' | 'blog';
  190. category: string;
  191. title: string;
  192. /**
  193. * When enabled, the slug will auto-generate from the title field on save and autosave.
  194. */
  195. generateSlug?: boolean | null;
  196. slug: string;
  197. image: number | Media;
  198. excerpt: string;
  199. publishedDate: string;
  200. content: {
  201. root: {
  202. type: string;
  203. children: {
  204. type: any;
  205. version: number;
  206. [k: string]: unknown;
  207. }[];
  208. direction: ('ltr' | 'rtl') | null;
  209. format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
  210. indent: number;
  211. version: number;
  212. };
  213. [k: string]: unknown;
  214. };
  215. author: number | Author;
  216. updatedAt: string;
  217. createdAt: string;
  218. }
  219. /**
  220. * This interface was referenced by `Config`'s JSON-Schema
  221. * via the `definition` "clients".
  222. */
  223. export interface Client {
  224. id: number;
  225. name: string;
  226. href: string;
  227. logo: number | Media;
  228. category: 'Banking & Finance' | 'Enterprise & Industrial' | 'Government';
  229. imageHeight?: number | null;
  230. updatedAt: string;
  231. createdAt: string;
  232. }
  233. /**
  234. * This interface was referenced by `Config`'s JSON-Schema
  235. * via the `definition` "careers".
  236. */
  237. export interface Career {
  238. id: number;
  239. title: string;
  240. /**
  241. * When enabled, the slug will auto-generate from the title field on save and autosave.
  242. */
  243. generateSlug?: boolean | null;
  244. slug: string;
  245. image?: (number | null) | Media;
  246. requirements?:
  247. | {
  248. item: string;
  249. id?: string | null;
  250. }[]
  251. | null;
  252. mainJobDescription?:
  253. | {
  254. item: string;
  255. id?: string | null;
  256. }[]
  257. | null;
  258. isUrgentlyHiring?: boolean | null;
  259. jobCategory:
  260. | 'Technology & Engineering'
  261. | 'Marketing, Sales & Communication'
  262. | 'Finance & Accounting'
  263. | 'Human Resources & General Affairs'
  264. | 'Creative & Design'
  265. | 'Operations & Customer Success';
  266. updatedAt: string;
  267. createdAt: string;
  268. }
  269. /**
  270. * This interface was referenced by `Config`'s JSON-Schema
  271. * via the `definition` "gallery".
  272. */
  273. export interface Gallery {
  274. id: number;
  275. image: number | Media;
  276. caption: string;
  277. updatedAt: string;
  278. createdAt: string;
  279. }
  280. /**
  281. * This interface was referenced by `Config`'s JSON-Schema
  282. * via the `definition` "payload-kv".
  283. */
  284. export interface PayloadKv {
  285. id: number;
  286. key: string;
  287. data:
  288. | {
  289. [k: string]: unknown;
  290. }
  291. | unknown[]
  292. | string
  293. | number
  294. | boolean
  295. | null;
  296. }
  297. /**
  298. * This interface was referenced by `Config`'s JSON-Schema
  299. * via the `definition` "payload-locked-documents".
  300. */
  301. export interface PayloadLockedDocument {
  302. id: number;
  303. document?:
  304. | ({
  305. relationTo: 'users';
  306. value: number | User;
  307. } | null)
  308. | ({
  309. relationTo: 'media';
  310. value: number | Media;
  311. } | null)
  312. | ({
  313. relationTo: 'authors';
  314. value: number | Author;
  315. } | null)
  316. | ({
  317. relationTo: 'posts';
  318. value: number | Post;
  319. } | null)
  320. | ({
  321. relationTo: 'clients';
  322. value: number | Client;
  323. } | null)
  324. | ({
  325. relationTo: 'careers';
  326. value: number | Career;
  327. } | null)
  328. | ({
  329. relationTo: 'gallery';
  330. value: number | Gallery;
  331. } | null);
  332. globalSlug?: string | null;
  333. user: {
  334. relationTo: 'users';
  335. value: number | User;
  336. };
  337. updatedAt: string;
  338. createdAt: string;
  339. }
  340. /**
  341. * This interface was referenced by `Config`'s JSON-Schema
  342. * via the `definition` "payload-preferences".
  343. */
  344. export interface PayloadPreference {
  345. id: number;
  346. user: {
  347. relationTo: 'users';
  348. value: number | User;
  349. };
  350. key?: string | null;
  351. value?:
  352. | {
  353. [k: string]: unknown;
  354. }
  355. | unknown[]
  356. | string
  357. | number
  358. | boolean
  359. | null;
  360. updatedAt: string;
  361. createdAt: string;
  362. }
  363. /**
  364. * This interface was referenced by `Config`'s JSON-Schema
  365. * via the `definition` "payload-migrations".
  366. */
  367. export interface PayloadMigration {
  368. id: number;
  369. name?: string | null;
  370. batch?: number | null;
  371. updatedAt: string;
  372. createdAt: string;
  373. }
  374. /**
  375. * This interface was referenced by `Config`'s JSON-Schema
  376. * via the `definition` "users_select".
  377. */
  378. export interface UsersSelect<T extends boolean = true> {
  379. updatedAt?: T;
  380. createdAt?: T;
  381. email?: T;
  382. resetPasswordToken?: T;
  383. resetPasswordExpiration?: T;
  384. salt?: T;
  385. hash?: T;
  386. loginAttempts?: T;
  387. lockUntil?: T;
  388. sessions?:
  389. | T
  390. | {
  391. id?: T;
  392. createdAt?: T;
  393. expiresAt?: T;
  394. };
  395. }
  396. /**
  397. * This interface was referenced by `Config`'s JSON-Schema
  398. * via the `definition` "media_select".
  399. */
  400. export interface MediaSelect<T extends boolean = true> {
  401. alt?: T;
  402. updatedAt?: T;
  403. createdAt?: T;
  404. url?: T;
  405. thumbnailURL?: T;
  406. filename?: T;
  407. mimeType?: T;
  408. filesize?: T;
  409. width?: T;
  410. height?: T;
  411. focalX?: T;
  412. focalY?: T;
  413. }
  414. /**
  415. * This interface was referenced by `Config`'s JSON-Schema
  416. * via the `definition` "authors_select".
  417. */
  418. export interface AuthorsSelect<T extends boolean = true> {
  419. name?: T;
  420. image?: T;
  421. description?: T;
  422. socialMediaLink?: T;
  423. updatedAt?: T;
  424. createdAt?: T;
  425. }
  426. /**
  427. * This interface was referenced by `Config`'s JSON-Schema
  428. * via the `definition` "posts_select".
  429. */
  430. export interface PostsSelect<T extends boolean = true> {
  431. type?: T;
  432. category?: T;
  433. title?: T;
  434. generateSlug?: T;
  435. slug?: T;
  436. image?: T;
  437. excerpt?: T;
  438. publishedDate?: T;
  439. content?: T;
  440. author?: T;
  441. updatedAt?: T;
  442. createdAt?: T;
  443. }
  444. /**
  445. * This interface was referenced by `Config`'s JSON-Schema
  446. * via the `definition` "clients_select".
  447. */
  448. export interface ClientsSelect<T extends boolean = true> {
  449. name?: T;
  450. href?: T;
  451. logo?: T;
  452. category?: T;
  453. imageHeight?: T;
  454. updatedAt?: T;
  455. createdAt?: T;
  456. }
  457. /**
  458. * This interface was referenced by `Config`'s JSON-Schema
  459. * via the `definition` "careers_select".
  460. */
  461. export interface CareersSelect<T extends boolean = true> {
  462. title?: T;
  463. generateSlug?: T;
  464. slug?: T;
  465. image?: T;
  466. requirements?:
  467. | T
  468. | {
  469. item?: T;
  470. id?: T;
  471. };
  472. mainJobDescription?:
  473. | T
  474. | {
  475. item?: T;
  476. id?: T;
  477. };
  478. isUrgentlyHiring?: T;
  479. jobCategory?: T;
  480. updatedAt?: T;
  481. createdAt?: T;
  482. }
  483. /**
  484. * This interface was referenced by `Config`'s JSON-Schema
  485. * via the `definition` "gallery_select".
  486. */
  487. export interface GallerySelect<T extends boolean = true> {
  488. image?: T;
  489. caption?: T;
  490. updatedAt?: T;
  491. createdAt?: T;
  492. }
  493. /**
  494. * This interface was referenced by `Config`'s JSON-Schema
  495. * via the `definition` "payload-kv_select".
  496. */
  497. export interface PayloadKvSelect<T extends boolean = true> {
  498. key?: T;
  499. data?: T;
  500. }
  501. /**
  502. * This interface was referenced by `Config`'s JSON-Schema
  503. * via the `definition` "payload-locked-documents_select".
  504. */
  505. export interface PayloadLockedDocumentsSelect<T extends boolean = true> {
  506. document?: T;
  507. globalSlug?: T;
  508. user?: T;
  509. updatedAt?: T;
  510. createdAt?: T;
  511. }
  512. /**
  513. * This interface was referenced by `Config`'s JSON-Schema
  514. * via the `definition` "payload-preferences_select".
  515. */
  516. export interface PayloadPreferencesSelect<T extends boolean = true> {
  517. user?: T;
  518. key?: T;
  519. value?: T;
  520. updatedAt?: T;
  521. createdAt?: T;
  522. }
  523. /**
  524. * This interface was referenced by `Config`'s JSON-Schema
  525. * via the `definition` "payload-migrations_select".
  526. */
  527. export interface PayloadMigrationsSelect<T extends boolean = true> {
  528. name?: T;
  529. batch?: T;
  530. updatedAt?: T;
  531. createdAt?: T;
  532. }
  533. /**
  534. * This interface was referenced by `Config`'s JSON-Schema
  535. * via the `definition` "auth".
  536. */
  537. export interface Auth {
  538. [k: string]: unknown;
  539. }
  540. declare module 'payload' {
  541. export interface GeneratedTypes extends Config {}
  542. }