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.
30 lines
734 B
Swift
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
|
|
}
|
|
}
|