Files
Outpost/OutlineKit/Sources/OutlineKit/Models/OutlineCollection.swift
T
Puranjay Savar Mattas 07fb08cb6b feat(outlinekit): add REST client package for Outline API
Local SPM package wrapping Outline's RPC-style REST API — auth,
documents, collections, and search — behind a protocol boundary
(OutlineAPIClient) so the app never depends on the transport directly.
2026-08-14 00:23:12 +01:00

30 lines
734 B
Swift

import Foundation
public struct OutlineCollection: Codable, Identifiable, Hashable, Sendable {
public let id: String
public let name: String
public let description: String?
public let color: String?
public let icon: String?
public let createdAt: Date
public let updatedAt: Date
public init(
id: String,
name: String,
description: String? = nil,
color: String? = nil,
icon: String? = nil,
createdAt: Date,
updatedAt: Date
) {
self.id = id
self.name = name
self.description = description
self.color = color
self.icon = icon
self.createdAt = createdAt
self.updatedAt = updatedAt
}
}