Repo hygiene: stop tracking dist, CI, working dev sandbox
- dist/ no longer committed; prepare builds it for git installs and prepublishOnly runs clean + build + unit tests before every publish. - Gitea Actions CI: typecheck, lint, unit tests, build on push/PR. - New scripts: typecheck, test:watch; test:int runs once; lint covers src + test. - dev/: drop the Mongo memory server and template route, opt out of 2FA, add the pages collection the SEO config expects, alias @intecion/ipal-kit/* to src, fix e2e credentials, regenerate types and import map. - Remove stray src/index.tsgrep, dedupe .gitignore, README peer versions 3.90.2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+187
-27
@@ -68,6 +68,7 @@ export interface Config {
|
||||
blocks: {};
|
||||
collections: {
|
||||
users: User;
|
||||
pages: Page;
|
||||
posts: Post;
|
||||
media: Media;
|
||||
'payload-kv': PayloadKv;
|
||||
@@ -78,6 +79,7 @@ export interface Config {
|
||||
collectionsJoins: {};
|
||||
collectionsSelect: {
|
||||
users: UsersSelect<false> | UsersSelect<true>;
|
||||
pages: PagesSelect<false> | PagesSelect<true>;
|
||||
posts: PostsSelect<false> | PostsSelect<true>;
|
||||
media: MediaSelect<false> | MediaSelect<true>;
|
||||
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
||||
@@ -93,11 +95,13 @@ export interface Config {
|
||||
'site-settings': SiteSetting;
|
||||
'site-integrations': SiteIntegration;
|
||||
'cookie-settings': CookieSetting;
|
||||
notifications: Notification;
|
||||
};
|
||||
globalsSelect: {
|
||||
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
|
||||
'site-integrations': SiteIntegrationsSelect<false> | SiteIntegrationsSelect<true>;
|
||||
'cookie-settings': CookieSettingsSelect<false> | CookieSettingsSelect<true>;
|
||||
notifications: NotificationsSelect<false> | NotificationsSelect<true>;
|
||||
};
|
||||
locale: 'pl' | 'en';
|
||||
widgets: {
|
||||
@@ -144,6 +148,7 @@ export interface User {
|
||||
resetPasswordExpiration?: string | null;
|
||||
salt?: string | null;
|
||||
hash?: string | null;
|
||||
resetPasswordRequestedAt?: string | null;
|
||||
loginAttempts?: number | null;
|
||||
lockUntil?: string | null;
|
||||
sessions?:
|
||||
@@ -158,10 +163,11 @@ export interface User {
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts".
|
||||
* via the `definition` "pages".
|
||||
*/
|
||||
export interface Post {
|
||||
export interface Page {
|
||||
id: number;
|
||||
title?: string | null;
|
||||
meta?: {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
@@ -169,6 +175,10 @@ export interface Post {
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (number | null) | Media;
|
||||
/**
|
||||
* Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically.
|
||||
*/
|
||||
titleOverride?: string | null;
|
||||
};
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
@@ -191,6 +201,28 @@ export interface Media {
|
||||
focalX?: number | null;
|
||||
focalY?: number | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts".
|
||||
*/
|
||||
export interface Post {
|
||||
id: number;
|
||||
title?: string | null;
|
||||
meta?: {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
/**
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (number | null) | Media;
|
||||
/**
|
||||
* Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically.
|
||||
*/
|
||||
titleOverride?: string | null;
|
||||
};
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "payload-kv".
|
||||
@@ -219,6 +251,10 @@ export interface PayloadLockedDocument {
|
||||
relationTo: 'users';
|
||||
value: number | User;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'pages';
|
||||
value: number | Page;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'posts';
|
||||
value: number | Post;
|
||||
@@ -282,6 +318,7 @@ export interface UsersSelect<T extends boolean = true> {
|
||||
resetPasswordExpiration?: T;
|
||||
salt?: T;
|
||||
hash?: T;
|
||||
resetPasswordRequestedAt?: T;
|
||||
loginAttempts?: T;
|
||||
lockUntil?: T;
|
||||
sessions?:
|
||||
@@ -294,15 +331,34 @@ export interface UsersSelect<T extends boolean = true> {
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts_select".
|
||||
* via the `definition` "pages_select".
|
||||
*/
|
||||
export interface PostsSelect<T extends boolean = true> {
|
||||
export interface PagesSelect<T extends boolean = true> {
|
||||
title?: T;
|
||||
meta?:
|
||||
| T
|
||||
| {
|
||||
title?: T;
|
||||
description?: T;
|
||||
image?: T;
|
||||
titleOverride?: 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> {
|
||||
title?: T;
|
||||
meta?:
|
||||
| T
|
||||
| {
|
||||
title?: T;
|
||||
description?: T;
|
||||
image?: T;
|
||||
titleOverride?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
@@ -374,6 +430,18 @@ export interface SiteSetting {
|
||||
* Used in page titles and Open Graph metadata.
|
||||
*/
|
||||
siteName: string;
|
||||
/**
|
||||
* Fallback meta description when a page has none. Also used for llms.txt and Open Graph.
|
||||
*/
|
||||
siteDescription?: string | null;
|
||||
/**
|
||||
* Which comes first in browser tabs.
|
||||
*/
|
||||
titleOrder?: ('page-first' | 'site-first') | null;
|
||||
/**
|
||||
* Separates the page title from the site name in browser tabs.
|
||||
*/
|
||||
titleSeparator?: ('|' | '–' | '-' | '·' | '/') | null;
|
||||
/**
|
||||
* Primary site logo.
|
||||
*/
|
||||
@@ -383,7 +451,7 @@ export interface SiteSetting {
|
||||
*/
|
||||
defaultShareImage?: (number | null) | Media;
|
||||
/**
|
||||
* Square source icon (PNG or SVG) for the browser tab. Rendered by the frontend.
|
||||
* Square icon, PNG or SVG, min. 48×48px (Google requires this to show it in search). Rendered via buildIconsMetadata.
|
||||
*/
|
||||
favicon?: (number | null) | Media;
|
||||
/**
|
||||
@@ -404,13 +472,29 @@ export interface SiteSetting {
|
||||
export interface SiteIntegration {
|
||||
id: number;
|
||||
/**
|
||||
* Google Analytics 4 Measurement ID.
|
||||
* Google Analytics 4 Measurement ID. (Google — Consent Mode)
|
||||
*/
|
||||
ga4MeasurementId?: string | null;
|
||||
/**
|
||||
* Google Tag Manager container ID.
|
||||
* Google Tag Manager container ID. (Google — Consent Mode)
|
||||
*/
|
||||
gtmContainerId?: string | null;
|
||||
/**
|
||||
* Meta (Facebook) Pixel ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
metaPixelId?: string | null;
|
||||
/**
|
||||
* Microsoft Clarity project ID (heatmaps). Loads only after ANALYTICS consent.
|
||||
*/
|
||||
clarityProjectId?: string | null;
|
||||
/**
|
||||
* LinkedIn Insight Tag partner ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
linkedInPartnerId?: string | null;
|
||||
/**
|
||||
* TikTok Pixel ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
tiktokPixelId?: string | null;
|
||||
/**
|
||||
* Public site key rendered in the Turnstile widget.
|
||||
*/
|
||||
@@ -419,6 +503,17 @@ export interface SiteIntegration {
|
||||
* Secret key used for server-side verification.
|
||||
*/
|
||||
turnstileSecretKey?: string | null;
|
||||
turnstileStatus?: {
|
||||
state?: ('ok' | 'degraded') | null;
|
||||
code?: string | null;
|
||||
message?: string | null;
|
||||
since?: string | null;
|
||||
checkedAt?: string | null;
|
||||
};
|
||||
/**
|
||||
* How outbound email is sent. "Microsoft Graph" is only available when configured by the administrator (Intecion).
|
||||
*/
|
||||
emailTransport?: ('smtp' | 'graph') | null;
|
||||
smtpHost?: string | null;
|
||||
smtpPort?: number | null;
|
||||
/**
|
||||
@@ -437,22 +532,13 @@ export interface SiteIntegration {
|
||||
* Default "from" display name.
|
||||
*/
|
||||
smtpFromName?: string | null;
|
||||
/**
|
||||
* R2 bucket name.
|
||||
*/
|
||||
r2Bucket?: string | null;
|
||||
/**
|
||||
* R2 S3-compatible endpoint URL.
|
||||
*/
|
||||
r2Endpoint?: string | null;
|
||||
/**
|
||||
* R2 access key ID.
|
||||
*/
|
||||
r2AccessKeyId?: string | null;
|
||||
/**
|
||||
* R2 secret access key.
|
||||
*/
|
||||
r2SecretAccessKey?: string | null;
|
||||
emailStatus?: {
|
||||
state?: ('ok' | 'degraded') | null;
|
||||
code?: string | null;
|
||||
message?: string | null;
|
||||
since?: string | null;
|
||||
checkedAt?: string | null;
|
||||
};
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
@@ -470,6 +556,10 @@ export interface CookieSetting {
|
||||
* Heading for the detailed settings panel.
|
||||
*/
|
||||
settingsTitle?: string | null;
|
||||
/**
|
||||
* Text of the privacy-policy link in the banner, e.g. "Privacy policy". The link target is the page assigned as Privacy Policy in Site Settings → System Pages. Empty → the page title is used.
|
||||
*/
|
||||
privacyLinkLabel?: string | null;
|
||||
/**
|
||||
* Button labels.
|
||||
*/
|
||||
@@ -494,12 +584,42 @@ export interface CookieSetting {
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "notifications".
|
||||
*/
|
||||
export interface Notification {
|
||||
id: number;
|
||||
/**
|
||||
* Messages shown after a form is submitted. Leave a field empty to use the built-in default.
|
||||
*/
|
||||
form?: {
|
||||
success?: string | null;
|
||||
error?: string | null;
|
||||
rateLimited?: string | null;
|
||||
turnstile?: string | null;
|
||||
/**
|
||||
* Shown on a validation error. Use {field} to insert the offending field name.
|
||||
*/
|
||||
validation?: string | null;
|
||||
/**
|
||||
* Shown when the GDPR consent checkbox is left unchecked.
|
||||
*/
|
||||
consent?: string | null;
|
||||
notFound?: string | null;
|
||||
};
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "site-settings_select".
|
||||
*/
|
||||
export interface SiteSettingsSelect<T extends boolean = true> {
|
||||
siteName?: T;
|
||||
siteDescription?: T;
|
||||
titleOrder?: T;
|
||||
titleSeparator?: T;
|
||||
logo?: T;
|
||||
defaultShareImage?: T;
|
||||
favicon?: T;
|
||||
@@ -516,18 +636,37 @@ export interface SiteSettingsSelect<T extends boolean = true> {
|
||||
export interface SiteIntegrationsSelect<T extends boolean = true> {
|
||||
ga4MeasurementId?: T;
|
||||
gtmContainerId?: T;
|
||||
metaPixelId?: T;
|
||||
clarityProjectId?: T;
|
||||
linkedInPartnerId?: T;
|
||||
tiktokPixelId?: T;
|
||||
turnstileSiteKey?: T;
|
||||
turnstileSecretKey?: T;
|
||||
turnstileStatus?:
|
||||
| T
|
||||
| {
|
||||
state?: T;
|
||||
code?: T;
|
||||
message?: T;
|
||||
since?: T;
|
||||
checkedAt?: T;
|
||||
};
|
||||
emailTransport?: T;
|
||||
smtpHost?: T;
|
||||
smtpPort?: T;
|
||||
smtpUser?: T;
|
||||
smtpPassword?: T;
|
||||
smtpFromAddress?: T;
|
||||
smtpFromName?: T;
|
||||
r2Bucket?: T;
|
||||
r2Endpoint?: T;
|
||||
r2AccessKeyId?: T;
|
||||
r2SecretAccessKey?: T;
|
||||
emailStatus?:
|
||||
| T
|
||||
| {
|
||||
state?: T;
|
||||
code?: T;
|
||||
message?: T;
|
||||
since?: T;
|
||||
checkedAt?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
@@ -539,6 +678,7 @@ export interface SiteIntegrationsSelect<T extends boolean = true> {
|
||||
export interface CookieSettingsSelect<T extends boolean = true> {
|
||||
message?: T;
|
||||
settingsTitle?: T;
|
||||
privacyLinkLabel?: T;
|
||||
buttons?:
|
||||
| T
|
||||
| {
|
||||
@@ -560,6 +700,26 @@ export interface CookieSettingsSelect<T extends boolean = true> {
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "notifications_select".
|
||||
*/
|
||||
export interface NotificationsSelect<T extends boolean = true> {
|
||||
form?:
|
||||
| T
|
||||
| {
|
||||
success?: T;
|
||||
error?: T;
|
||||
rateLimited?: T;
|
||||
turnstile?: T;
|
||||
validation?: T;
|
||||
consent?: T;
|
||||
notFound?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "collections_widget".
|
||||
|
||||
Reference in New Issue
Block a user