Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

56 lines
2.3 KiB
Swift

//
// BoardItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct BoardItem: Sendable, Codable, ParameterConvertible, Hashable {
/** DocType is which content type the row came from: Campaign, SocialPost or Asset. The board spans all three at once, so this is what tells them apart. */
public var doctype: String?
/** Name is the document within that type. (doctype, name) is the pair every /v1/content write addresses an item by. */
public var name: String?
/** Project is the brand/site sub-scope within the org. Absent for an item held at org level rather than under one brand. */
public var project: String?
/** Status is the lifecycle state: draft, in_review, approved, queued, published or archived. It decides what a reader may see — the public site pulls exactly \"published\" and nothing else — so it is a visibility fact, not a workflow label. */
public var status: String?
/** Title is the item's headline, read from its type's own title field. Empty for a document that has none. */
public var title: String?
/** UpdatedAt is unix seconds of the document's last write, and the key the board sorts on, newest first. */
public var updatedAt: Int64?
public init(doctype: String? = nil, name: String? = nil, project: String? = nil, status: String? = nil, title: String? = nil, updatedAt: Int64? = nil) {
self.doctype = doctype
self.name = name
self.project = project
self.status = status
self.title = title
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case doctype
case name
case project
case status
case title
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(doctype, forKey: .doctype)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}