mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
56 lines
2.1 KiB
Swift
56 lines
2.1 KiB
Swift
//
|
|
// OverviewView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct OverviewView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Custom is true when the org replaced the shared playbook with one of its own — the difference between \"everyone's checklist\" and \"the one you authored\". */
|
|
public var custom: Bool?
|
|
/** Funnel is the org's analytics lens, present only where the read asked for it — absent means it was not requested, never that the org has no traffic. */
|
|
public var funnel: Funnel?
|
|
/** Progress is how far through the journey the org is. */
|
|
public var progress: ProgressView?
|
|
/** Steps are every enabled step with the org's own state folded in, in authoring order. */
|
|
public var steps: [StepView]?
|
|
/** Title is the playbook's name as it heads the checklist. */
|
|
public var title: String?
|
|
/** Version identifies the playbook this journey came from, so a caller can tell that the checklist itself changed under them. */
|
|
public var version: String?
|
|
|
|
public init(custom: Bool? = nil, funnel: Funnel? = nil, progress: ProgressView? = nil, steps: [StepView]? = nil, title: String? = nil, version: String? = nil) {
|
|
self.custom = custom
|
|
self.funnel = funnel
|
|
self.progress = progress
|
|
self.steps = steps
|
|
self.title = title
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case custom
|
|
case funnel
|
|
case progress
|
|
case steps
|
|
case title
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(custom, forKey: .custom)
|
|
try container.encodeIfPresent(funnel, forKey: .funnel)
|
|
try container.encodeIfPresent(progress, forKey: .progress)
|
|
try container.encodeIfPresent(steps, forKey: .steps)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|