|
|
@@ -69,6 +69,10 @@ export interface Config {
|
|
|
collections: {
|
|
|
users: User;
|
|
|
media: Media;
|
|
|
+ authors: Author;
|
|
|
+ posts: Post;
|
|
|
+ clients: Client;
|
|
|
+ careers: Career;
|
|
|
'payload-kv': PayloadKv;
|
|
|
'payload-locked-documents': PayloadLockedDocument;
|
|
|
'payload-preferences': PayloadPreference;
|
|
|
@@ -78,13 +82,17 @@ export interface Config {
|
|
|
collectionsSelect: {
|
|
|
users: UsersSelect<false> | UsersSelect<true>;
|
|
|
media: MediaSelect<false> | MediaSelect<true>;
|
|
|
+ authors: AuthorsSelect<false> | AuthorsSelect<true>;
|
|
|
+ posts: PostsSelect<false> | PostsSelect<true>;
|
|
|
+ clients: ClientsSelect<false> | ClientsSelect<true>;
|
|
|
+ careers: CareersSelect<false> | CareersSelect<true>;
|
|
|
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
|
|
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
|
|
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
|
|
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
|
|
};
|
|
|
db: {
|
|
|
- defaultIDType: string;
|
|
|
+ defaultIDType: number;
|
|
|
};
|
|
|
fallbackLocale: null;
|
|
|
globals: {};
|
|
|
@@ -121,7 +129,7 @@ export interface UserAuthOperations {
|
|
|
* via the `definition` "users".
|
|
|
*/
|
|
|
export interface User {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
updatedAt: string;
|
|
|
createdAt: string;
|
|
|
email: string;
|
|
|
@@ -145,7 +153,7 @@ export interface User {
|
|
|
* via the `definition` "media".
|
|
|
*/
|
|
|
export interface Media {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
alt: string;
|
|
|
updatedAt: string;
|
|
|
createdAt: string;
|
|
|
@@ -159,12 +167,111 @@ export interface Media {
|
|
|
focalX?: number | null;
|
|
|
focalY?: number | null;
|
|
|
}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "authors".
|
|
|
+ */
|
|
|
+export interface Author {
|
|
|
+ id: number;
|
|
|
+ name: string;
|
|
|
+ image: number | Media;
|
|
|
+ description: string;
|
|
|
+ socialMediaLink?: string | null;
|
|
|
+ updatedAt: string;
|
|
|
+ createdAt: string;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "posts".
|
|
|
+ */
|
|
|
+export interface Post {
|
|
|
+ id: number;
|
|
|
+ type: 'news' | 'blog';
|
|
|
+ category: string;
|
|
|
+ title: string;
|
|
|
+ /**
|
|
|
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
|
+ */
|
|
|
+ generateSlug?: boolean | null;
|
|
|
+ slug: string;
|
|
|
+ image: number | Media;
|
|
|
+ excerpt: string;
|
|
|
+ publishedDate: string;
|
|
|
+ content: {
|
|
|
+ root: {
|
|
|
+ type: string;
|
|
|
+ children: {
|
|
|
+ type: any;
|
|
|
+ version: number;
|
|
|
+ [k: string]: unknown;
|
|
|
+ }[];
|
|
|
+ direction: ('ltr' | 'rtl') | null;
|
|
|
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
|
+ indent: number;
|
|
|
+ version: number;
|
|
|
+ };
|
|
|
+ [k: string]: unknown;
|
|
|
+ };
|
|
|
+ author: number | Author;
|
|
|
+ updatedAt: string;
|
|
|
+ createdAt: string;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "clients".
|
|
|
+ */
|
|
|
+export interface Client {
|
|
|
+ id: number;
|
|
|
+ name: string;
|
|
|
+ href: string;
|
|
|
+ logo: number | Media;
|
|
|
+ category: 'Banking & Finance' | 'Enterprise & Industrial' | 'Government';
|
|
|
+ imageHeight?: number | null;
|
|
|
+ updatedAt: string;
|
|
|
+ createdAt: string;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "careers".
|
|
|
+ */
|
|
|
+export interface Career {
|
|
|
+ id: number;
|
|
|
+ title: string;
|
|
|
+ /**
|
|
|
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
|
+ */
|
|
|
+ generateSlug?: boolean | null;
|
|
|
+ slug: string;
|
|
|
+ image?: (number | null) | Media;
|
|
|
+ requirements?:
|
|
|
+ | {
|
|
|
+ item: string;
|
|
|
+ id?: string | null;
|
|
|
+ }[]
|
|
|
+ | null;
|
|
|
+ mainJobDescription?:
|
|
|
+ | {
|
|
|
+ item: string;
|
|
|
+ id?: string | null;
|
|
|
+ }[]
|
|
|
+ | null;
|
|
|
+ isUrgentlyHiring?: boolean | null;
|
|
|
+ jobCategory:
|
|
|
+ | 'Technology & Engineering'
|
|
|
+ | 'Marketing, Sales & Communication'
|
|
|
+ | 'Finance & Accounting'
|
|
|
+ | 'Human Resources & General Affairs'
|
|
|
+ | 'Creative & Design'
|
|
|
+ | 'Operations & Customer Success';
|
|
|
+ updatedAt: string;
|
|
|
+ createdAt: string;
|
|
|
+}
|
|
|
/**
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
* via the `definition` "payload-kv".
|
|
|
*/
|
|
|
export interface PayloadKv {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
key: string;
|
|
|
data:
|
|
|
| {
|
|
|
@@ -181,20 +288,36 @@ export interface PayloadKv {
|
|
|
* via the `definition` "payload-locked-documents".
|
|
|
*/
|
|
|
export interface PayloadLockedDocument {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
document?:
|
|
|
| ({
|
|
|
relationTo: 'users';
|
|
|
- value: string | User;
|
|
|
+ value: number | User;
|
|
|
} | null)
|
|
|
| ({
|
|
|
relationTo: 'media';
|
|
|
- value: string | Media;
|
|
|
+ value: number | Media;
|
|
|
+ } | null)
|
|
|
+ | ({
|
|
|
+ relationTo: 'authors';
|
|
|
+ value: number | Author;
|
|
|
+ } | null)
|
|
|
+ | ({
|
|
|
+ relationTo: 'posts';
|
|
|
+ value: number | Post;
|
|
|
+ } | null)
|
|
|
+ | ({
|
|
|
+ relationTo: 'clients';
|
|
|
+ value: number | Client;
|
|
|
+ } | null)
|
|
|
+ | ({
|
|
|
+ relationTo: 'careers';
|
|
|
+ value: number | Career;
|
|
|
} | null);
|
|
|
globalSlug?: string | null;
|
|
|
user: {
|
|
|
relationTo: 'users';
|
|
|
- value: string | User;
|
|
|
+ value: number | User;
|
|
|
};
|
|
|
updatedAt: string;
|
|
|
createdAt: string;
|
|
|
@@ -204,10 +327,10 @@ export interface PayloadLockedDocument {
|
|
|
* via the `definition` "payload-preferences".
|
|
|
*/
|
|
|
export interface PayloadPreference {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
user: {
|
|
|
relationTo: 'users';
|
|
|
- value: string | User;
|
|
|
+ value: number | User;
|
|
|
};
|
|
|
key?: string | null;
|
|
|
value?:
|
|
|
@@ -227,7 +350,7 @@ export interface PayloadPreference {
|
|
|
* via the `definition` "payload-migrations".
|
|
|
*/
|
|
|
export interface PayloadMigration {
|
|
|
- id: string;
|
|
|
+ id: number;
|
|
|
name?: string | null;
|
|
|
batch?: number | null;
|
|
|
updatedAt: string;
|
|
|
@@ -273,6 +396,75 @@ export interface MediaSelect<T extends boolean = true> {
|
|
|
focalX?: T;
|
|
|
focalY?: T;
|
|
|
}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "authors_select".
|
|
|
+ */
|
|
|
+export interface AuthorsSelect<T extends boolean = true> {
|
|
|
+ name?: T;
|
|
|
+ image?: T;
|
|
|
+ description?: T;
|
|
|
+ socialMediaLink?: T;
|
|
|
+ updatedAt?: T;
|
|
|
+ createdAt?: T;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "posts_select".
|
|
|
+ */
|
|
|
+export interface PostsSelect<T extends boolean = true> {
|
|
|
+ type?: T;
|
|
|
+ category?: T;
|
|
|
+ title?: T;
|
|
|
+ generateSlug?: T;
|
|
|
+ slug?: T;
|
|
|
+ image?: T;
|
|
|
+ excerpt?: T;
|
|
|
+ publishedDate?: T;
|
|
|
+ content?: T;
|
|
|
+ author?: T;
|
|
|
+ updatedAt?: T;
|
|
|
+ createdAt?: T;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "clients_select".
|
|
|
+ */
|
|
|
+export interface ClientsSelect<T extends boolean = true> {
|
|
|
+ name?: T;
|
|
|
+ href?: T;
|
|
|
+ logo?: T;
|
|
|
+ category?: T;
|
|
|
+ imageHeight?: T;
|
|
|
+ updatedAt?: T;
|
|
|
+ createdAt?: T;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * This interface was referenced by `Config`'s JSON-Schema
|
|
|
+ * via the `definition` "careers_select".
|
|
|
+ */
|
|
|
+export interface CareersSelect<T extends boolean = true> {
|
|
|
+ title?: T;
|
|
|
+ generateSlug?: T;
|
|
|
+ slug?: T;
|
|
|
+ image?: T;
|
|
|
+ requirements?:
|
|
|
+ | T
|
|
|
+ | {
|
|
|
+ item?: T;
|
|
|
+ id?: T;
|
|
|
+ };
|
|
|
+ mainJobDescription?:
|
|
|
+ | T
|
|
|
+ | {
|
|
|
+ item?: T;
|
|
|
+ id?: T;
|
|
|
+ };
|
|
|
+ isUrgentlyHiring?: T;
|
|
|
+ jobCategory?: T;
|
|
|
+ updatedAt?: T;
|
|
|
+ createdAt?: T;
|
|
|
+}
|
|
|
/**
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
* via the `definition` "payload-kv_select".
|