chore: clean up test scripts and sync payload CRM collections
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 11s
Build & Deploy / 🧪 QA (push) Failing after 23s
Build & Deploy / 🏗️ Build (push) Failing after 27s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 5s

This commit is contained in:
2026-02-27 18:41:48 +01:00
parent 8907963d57
commit 4b5609a75e
15 changed files with 4301 additions and 106 deletions

View File

@@ -13,53 +13,53 @@
* via the `definition` "supportedTimezones".
*/
export type SupportedTimezones =
| 'Pacific/Midway'
| 'Pacific/Niue'
| 'Pacific/Honolulu'
| 'Pacific/Rarotonga'
| 'America/Anchorage'
| 'Pacific/Gambier'
| 'America/Los_Angeles'
| 'America/Tijuana'
| 'America/Denver'
| 'America/Phoenix'
| 'America/Chicago'
| 'America/Guatemala'
| 'America/New_York'
| 'America/Bogota'
| 'America/Caracas'
| 'America/Santiago'
| 'America/Buenos_Aires'
| 'America/Sao_Paulo'
| 'Atlantic/South_Georgia'
| 'Atlantic/Azores'
| 'Atlantic/Cape_Verde'
| 'Europe/London'
| 'Europe/Berlin'
| 'Africa/Lagos'
| 'Europe/Athens'
| 'Africa/Cairo'
| 'Europe/Moscow'
| 'Asia/Riyadh'
| 'Asia/Dubai'
| 'Asia/Baku'
| 'Asia/Karachi'
| 'Asia/Tashkent'
| 'Asia/Calcutta'
| 'Asia/Dhaka'
| 'Asia/Almaty'
| 'Asia/Jakarta'
| 'Asia/Bangkok'
| 'Asia/Shanghai'
| 'Asia/Singapore'
| 'Asia/Tokyo'
| 'Asia/Seoul'
| 'Australia/Brisbane'
| 'Australia/Sydney'
| 'Pacific/Guam'
| 'Pacific/Noumea'
| 'Pacific/Auckland'
| 'Pacific/Fiji';
| "Pacific/Midway"
| "Pacific/Niue"
| "Pacific/Honolulu"
| "Pacific/Rarotonga"
| "America/Anchorage"
| "Pacific/Gambier"
| "America/Los_Angeles"
| "America/Tijuana"
| "America/Denver"
| "America/Phoenix"
| "America/Chicago"
| "America/Guatemala"
| "America/New_York"
| "America/Bogota"
| "America/Caracas"
| "America/Santiago"
| "America/Buenos_Aires"
| "America/Sao_Paulo"
| "Atlantic/South_Georgia"
| "Atlantic/Azores"
| "Atlantic/Cape_Verde"
| "Europe/London"
| "Europe/Berlin"
| "Africa/Lagos"
| "Europe/Athens"
| "Africa/Cairo"
| "Europe/Moscow"
| "Asia/Riyadh"
| "Asia/Dubai"
| "Asia/Baku"
| "Asia/Karachi"
| "Asia/Tashkent"
| "Asia/Calcutta"
| "Asia/Dhaka"
| "Asia/Almaty"
| "Asia/Jakarta"
| "Asia/Bangkok"
| "Asia/Shanghai"
| "Asia/Singapore"
| "Asia/Tokyo"
| "Asia/Seoul"
| "Australia/Brisbane"
| "Australia/Sydney"
| "Pacific/Guam"
| "Pacific/Noumea"
| "Pacific/Auckland"
| "Pacific/Fiji";
export interface Config {
auth: {
@@ -72,11 +72,14 @@ export interface Config {
posts: Post;
inquiries: Inquiry;
redirects: Redirect;
'context-files': ContextFile;
'payload-kv': PayloadKv;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
"context-files": ContextFile;
"crm-accounts": CrmAccount;
"crm-contacts": CrmContact;
"crm-interactions": CrmInteraction;
"payload-kv": PayloadKv;
"payload-locked-documents": PayloadLockedDocument;
"payload-preferences": PayloadPreference;
"payload-migrations": PayloadMigration;
};
collectionsJoins: {};
collectionsSelect: {
@@ -85,21 +88,32 @@ export interface Config {
posts: PostsSelect<false> | PostsSelect<true>;
inquiries: InquiriesSelect<false> | InquiriesSelect<true>;
redirects: RedirectsSelect<false> | RedirectsSelect<true>;
'context-files': ContextFilesSelect<false> | ContextFilesSelect<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>;
"context-files": ContextFilesSelect<false> | ContextFilesSelect<true>;
"crm-accounts": CrmAccountsSelect<false> | CrmAccountsSelect<true>;
"crm-contacts": CrmContactsSelect<false> | CrmContactsSelect<true>;
"crm-interactions":
| CrmInteractionsSelect<false>
| CrmInteractionsSelect<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: number;
};
fallbackLocale: null;
globals: {
'ai-settings': AiSetting;
"ai-settings": AiSetting;
};
globalsSelect: {
'ai-settings': AiSettingsSelect<false> | AiSettingsSelect<true>;
"ai-settings": AiSettingsSelect<false> | AiSettingsSelect<true>;
};
locale: null;
user: User;
@@ -149,7 +163,7 @@ export interface User {
}[]
| null;
password?: string | null;
collection: 'users';
collection: "users";
}
/**
* This interface was referenced by `Config`'s JSON-Schema
@@ -158,6 +172,7 @@ export interface User {
export interface Media {
id: number;
alt: string;
prefix?: string | null;
updatedAt: string;
createdAt: string;
url?: string | null;
@@ -228,8 +243,8 @@ export interface Post {
version: number;
[k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number;
version: number;
};
@@ -237,7 +252,7 @@ export interface Post {
} | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
_status?: ("draft" | "published") | null;
}
/**
* Contact form leads and inquiries.
@@ -302,6 +317,76 @@ export interface ContextFile {
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-accounts".
*/
export interface CrmAccount {
id: number;
name: string;
/**
* The website of the account, useful for AI analysis.
*/
website?: string | null;
/**
* Change from Lead to Client upon conversion.
*/
status?: ("lead" | "client" | "lost") | null;
leadTemperature?: ("cold" | "warm" | "hot") | null;
assignedTo?: (number | null) | User;
/**
* PDFs and strategy documents generated by AI or attached manually.
*/
reports?: (number | Media)[] | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-contacts".
*/
export interface CrmContact {
id: number;
firstName: string;
lastName: string;
email: string;
phone?: string | null;
linkedIn?: string | null;
role?: string | null;
account?: (number | null) | CrmAccount;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-interactions".
*/
export interface CrmInteraction {
id: number;
type: "email" | "call" | "meeting" | "note";
direction?: ("inbound" | "outbound") | null;
date: string;
contact?: (number | null) | CrmContact;
account?: (number | null) | CrmAccount;
subject: 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;
} | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv".
@@ -327,32 +412,44 @@ export interface PayloadLockedDocument {
id: number;
document?:
| ({
relationTo: 'users';
relationTo: "users";
value: number | User;
} | null)
| ({
relationTo: 'media';
relationTo: "media";
value: number | Media;
} | null)
| ({
relationTo: 'posts';
relationTo: "posts";
value: number | Post;
} | null)
| ({
relationTo: 'inquiries';
relationTo: "inquiries";
value: number | Inquiry;
} | null)
| ({
relationTo: 'redirects';
relationTo: "redirects";
value: number | Redirect;
} | null)
| ({
relationTo: 'context-files';
relationTo: "context-files";
value: number | ContextFile;
} | null)
| ({
relationTo: "crm-accounts";
value: number | CrmAccount;
} | null)
| ({
relationTo: "crm-contacts";
value: number | CrmContact;
} | null)
| ({
relationTo: "crm-interactions";
value: number | CrmInteraction;
} | null);
globalSlug?: string | null;
user: {
relationTo: 'users';
relationTo: "users";
value: number | User;
};
updatedAt: string;
@@ -365,7 +462,7 @@ export interface PayloadLockedDocument {
export interface PayloadPreference {
id: number;
user: {
relationTo: 'users';
relationTo: "users";
value: number | User;
};
key?: string | null;
@@ -420,6 +517,7 @@ export interface UsersSelect<T extends boolean = true> {
*/
export interface MediaSelect<T extends boolean = true> {
alt?: T;
prefix?: T;
updatedAt?: T;
createdAt?: T;
url?: T;
@@ -522,6 +620,50 @@ export interface ContextFilesSelect<T extends boolean = true> {
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-accounts_select".
*/
export interface CrmAccountsSelect<T extends boolean = true> {
name?: T;
website?: T;
status?: T;
leadTemperature?: T;
assignedTo?: T;
reports?: T;
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-contacts_select".
*/
export interface CrmContactsSelect<T extends boolean = true> {
firstName?: T;
lastName?: T;
email?: T;
phone?: T;
linkedIn?: T;
role?: T;
account?: T;
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "crm-interactions_select".
*/
export interface CrmInteractionsSelect<T extends boolean = true> {
type?: T;
direction?: T;
date?: T;
contact?: T;
account?: T;
subject?: T;
content?: T;
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv_select".
@@ -603,7 +745,6 @@ export interface Auth {
[k: string]: unknown;
}
declare module 'payload' {
declare module "payload" {
export interface GeneratedTypes extends Config {}
}
}