Fix FAQFull: Use isDraft boolean for draft filtering, fix Kontakt ID override

This commit is contained in:
MichalC
2026-09-16 12:31:19 +02:00
parent 437e1e4823
commit 9043301da6
140 changed files with 23337 additions and 724 deletions
+68 -1
View File
@@ -360,6 +360,8 @@ export interface Page {
| {
title: string;
description: string;
linkText?: string | null;
linkUrl?: string | null;
id?: string | null;
}[]
| null;
@@ -432,15 +434,39 @@ export interface Page {
title: string;
questions?:
| {
category?: string | null;
question: string;
answer: string;
id?: string | null;
}[]
| null;
ctaText?: string | null;
ctaUrl?: string | null;
id?: string | null;
blockName?: string | null;
blockType: 'faqTeaser';
}
| {
title: string;
subtitle?: string | null;
questions?:
| {
category: string;
/**
* Zaznacz, jeśli treść nie jest jeszcze gotowa do publikacji (pytanie nie pojawi się na stronie ani w SEO)
*/
isDraft?: boolean | null;
question: string;
answer: string;
id?: string | null;
}[]
| null;
ctaText?: string | null;
ctaUrl?: string | null;
id?: string | null;
blockName?: string | null;
blockType: 'faqFull';
}
| {
eyebrow?: string | null;
title: string;
@@ -451,7 +477,21 @@ export interface Page {
blockType: 'finalCta';
}
| {
text?: string | null;
text?: {
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;
id?: string | null;
blockName?: string | null;
blockType: 'TextSection';
@@ -804,6 +844,8 @@ export interface PagesSelect<T extends boolean = true> {
| {
title?: T;
description?: T;
linkText?: T;
linkUrl?: T;
id?: T;
};
id?: T;
@@ -883,10 +925,32 @@ export interface PagesSelect<T extends boolean = true> {
questions?:
| T
| {
category?: T;
question?: T;
answer?: T;
id?: T;
};
ctaText?: T;
ctaUrl?: T;
id?: T;
blockName?: T;
};
faqFull?:
| T
| {
title?: T;
subtitle?: T;
questions?:
| T
| {
category?: T;
isDraft?: T;
question?: T;
answer?: T;
id?: T;
};
ctaText?: T;
ctaUrl?: T;
id?: T;
blockName?: T;
};
@@ -975,6 +1039,9 @@ export interface Company {
phone?: string | null;
email?: string | null;
hours?: string | null;
/**
* Numer WhatsApp do kontaktu. Wpisz z numerem kierunkowym bez + (np. 48123456789).
*/
whatsappNumber?: string | null;
updatedAt?: string | null;
createdAt?: string | null;