2024-11-18 20:19:20 +01:00

63 lines
1.1 KiB
Swift

import Foundation
struct PageFile {
let isDraft: Bool
let tags: [String]
let createdDate: Date
let startDate: Date
let endDate: Date?
let german: LocalizedPageFile
let english: LocalizedPageFile
}
extension PageFile: Codable {
}
/**
The structure to store the metadata of a localized page
*/
struct LocalizedPageFile {
let url: String
/**
The files (images, videos, other files) used in the page.
*/
let files: Set<String>
/**
The additional files required for the page to function correctly, but which are not stored with the content.
*/
let externalFiles: Set<String>
/**
Specifies additional files which should be copied to the destination when generating the content.
- Note: This property defaults to an empty set.
*/
let requiredFiles: Set<String>
let title: String
let linkPreviewImage: String?
let linkPreviewTitle: String?
let linkPreviewDescription: String?
let lastModifiedDate: Date?
let originalURL: String?
}
extension LocalizedPageFile: Codable {
}