2022-05-24 16:44:55 +02:00
|
|
|
interface APIParams {
|
|
|
|
offset?: number
|
|
|
|
limit?: number
|
|
|
|
sort?: string | "ASC" | "DESC"
|
|
|
|
filter?: {
|
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
count?: 1
|
|
|
|
}
|
2022-06-09 08:23:39 +02:00
|
|
|
|
|
|
|
interface CollectionEntry {
|
|
|
|
id?: string
|
|
|
|
insertTime?: string
|
|
|
|
updateTime?: string
|
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
|
2021-03-22 15:59:05 +01:00
|
|
|
interface ContentBlock {
|
2022-06-13 13:58:04 +02:00
|
|
|
article: {
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2021-03-22 15:59:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Content {
|
|
|
|
id: string
|
2022-05-30 16:52:12 +02:00
|
|
|
locale: string
|
|
|
|
tags?: string[]
|
2021-03-22 15:59:05 +01:00
|
|
|
path: string
|
2022-06-09 15:06:16 +02:00
|
|
|
name: string
|
2022-06-14 10:30:40 +02:00
|
|
|
blocks?: ContentBlock[]
|
2022-06-15 08:26:06 +02:00
|
|
|
meta: {
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2021-03-22 15:59:05 +01:00
|
|
|
}
|
2022-03-17 11:12:06 +01:00
|
|
|
|
2022-05-24 16:44:55 +02:00
|
|
|
interface GeneralInfo {
|
2022-03-17 11:12:06 +01:00
|
|
|
id: string
|
2022-05-24 16:44:55 +02:00
|
|
|
public: boolean
|
|
|
|
meta: {
|
|
|
|
metaTitle: string
|
|
|
|
metaDescription: string
|
|
|
|
metaTagRobots: string
|
|
|
|
metaKeywords: string
|
|
|
|
}
|
|
|
|
person: {
|
|
|
|
salutation: string
|
|
|
|
firstname: string
|
|
|
|
lastname: string
|
|
|
|
additional: string
|
|
|
|
street: string
|
|
|
|
postcode: number
|
|
|
|
city: string
|
|
|
|
tel: string
|
|
|
|
fax: string
|
|
|
|
mobile: string
|
|
|
|
email: string
|
|
|
|
}
|
|
|
|
media: {
|
|
|
|
favicon: File
|
|
|
|
brand: File
|
|
|
|
mediaFiles: {
|
|
|
|
title: string
|
|
|
|
alternateText: string
|
|
|
|
id: string
|
|
|
|
file: File
|
|
|
|
}[]
|
|
|
|
}
|
|
|
|
copyrightText: string
|
2022-03-17 11:12:06 +01:00
|
|
|
insertTime: string
|
|
|
|
updateTime: string
|
|
|
|
}
|
|
|
|
|
|
|
|
interface TibiArticle {
|
2022-06-14 10:30:40 +02:00
|
|
|
id?: string
|
2022-06-09 14:24:32 +02:00
|
|
|
article: {
|
|
|
|
general: {
|
|
|
|
public: boolean
|
2022-06-15 13:06:43 +02:00
|
|
|
type: string
|
2022-06-09 14:24:32 +02:00
|
|
|
locale: string
|
|
|
|
publish_date: {
|
|
|
|
from: string
|
|
|
|
until: string
|
|
|
|
interval: number
|
|
|
|
}
|
|
|
|
tags: string[]
|
|
|
|
sort: number
|
|
|
|
}
|
|
|
|
content: {
|
|
|
|
slug: string
|
|
|
|
title: string
|
|
|
|
subtitle: string
|
|
|
|
types: {
|
|
|
|
teaser: string
|
|
|
|
details: string
|
|
|
|
media: {
|
|
|
|
files: TibiArticleMediaFile[]
|
|
|
|
}
|
|
|
|
attachments: {
|
|
|
|
files: TibiArticleAttachmentFile[]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
layout: {}
|
|
|
|
link: {}
|
|
|
|
}
|
2022-06-09 08:23:39 +02:00
|
|
|
insertTime?: string
|
|
|
|
updateTime?: string
|
|
|
|
}
|
|
|
|
|
2022-06-09 14:24:32 +02:00
|
|
|
interface TibiArticleMediaFile {
|
|
|
|
title: string
|
|
|
|
id: string
|
|
|
|
file: File
|
|
|
|
}
|
|
|
|
|
|
|
|
interface TibiArticleAttachmentFile {
|
|
|
|
title: string
|
|
|
|
alternateText: string
|
|
|
|
id: string
|
|
|
|
file: File
|
|
|
|
caption: string
|
|
|
|
}
|
|
|
|
|
2022-06-09 08:23:39 +02:00
|
|
|
interface TibiArticleImage {
|
|
|
|
id: string
|
2022-03-17 11:12:06 +01:00
|
|
|
title: string
|
2022-06-09 08:23:39 +02:00
|
|
|
alternateText: string
|
|
|
|
caption: string
|
|
|
|
file: File[]
|
2022-03-17 11:12:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
interface File {
|
|
|
|
lastModified?: number
|
|
|
|
path: string
|
|
|
|
size?: string
|
|
|
|
src: string
|
|
|
|
type: string
|
|
|
|
}
|
2022-05-24 16:44:55 +02:00
|
|
|
|
|
|
|
interface Gallery {
|
|
|
|
id: string
|
|
|
|
title: string
|
|
|
|
variant: string
|
|
|
|
items: {
|
|
|
|
file: File
|
|
|
|
title: string
|
|
|
|
descrition: string
|
|
|
|
alt: string
|
|
|
|
}[]
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Navigation {
|
|
|
|
id: string
|
|
|
|
ident: string
|
|
|
|
locale: string
|
|
|
|
items: NavigationItem[]
|
|
|
|
insertTime: string
|
|
|
|
updateTime: string
|
|
|
|
}
|
|
|
|
|
|
|
|
interface NavigationItem {
|
|
|
|
settings: {
|
|
|
|
title: string
|
|
|
|
page: string
|
|
|
|
items: NavigationItem[]
|
|
|
|
url: {
|
|
|
|
url: string
|
|
|
|
target: string
|
2022-06-16 09:48:18 +02:00
|
|
|
hidden: boolean
|
2022-05-24 16:44:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Locale {
|
|
|
|
key: string
|
2022-05-25 12:10:29 +02:00
|
|
|
title?: string
|
2022-05-24 16:44:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface GeneralImage {
|
|
|
|
file: File[]
|
|
|
|
id: string
|
|
|
|
label: string
|
|
|
|
}
|