// ABI Hash: 60de3cf09fbb613276271630f1d893acdc8d7fe51ab35a1041afac8bb038ed0c import Foundation @_exported import FactoryKit @_exported import CacheKit @_exported import ServerKit @_exported import StreamlineFoundation /// A protocol that guarantees a SwiftData model can be exported to Willie's Web Cannon specification. public protocol WebExportable { func toWebProduct() -> WebProduct { fatalError() } } public struct WebVariant: Codable, Sendable, Hashable { public let variantId: String = "" public let label: String = "" public let priceCents: Int = 0 public let stockQty: Int = 0 enum CodingKeys: String, CodingKey { case variantId = "variant_id" case label case priceCents = "price_cents" case stockQty = "stock_qty" } public init(variantId: String, label: String, priceCents: Int, stockQty: Int) { fatalError() } } public struct WebExportPayload: Codable, Sendable, Hashable { public let mediaBasePath: String = "" public let products: [WebProduct] = [] enum CodingKeys: String, CodingKey { case mediaBasePath = "media_base_path" case products } public init(mediaBasePath: String, products: [WebProduct]) { fatalError() } } public struct WebProduct: Codable, Sendable, Hashable { public let sku: String = "" public let name: String = "" public let shortDesc: String = "" public let longDesc: String = "" public let productType: String = "" public let brand: String = "" public let basePriceCents: Int = 0 public let stockQty: Int = 0 public let isFeatured: Bool = false public let isNewArrival: Bool = false public let isBestSeller: Bool = false public let seoTitle: String = "" public let seoKeywords: String = "" public let seoMetaDesc: String = "" public let weightLbs: Double = 0.0 public let size: String? = nil public let inventoryTracking: String = "" public let isUniqueOneOff: Bool = false public let categorySlugs: [String] = [] public let images: [String] = [] public let aiHelperContext: String? = nil public let tags: [String] = [] public let tabs: [WebProductTab] = [] public let variants: [WebVariant] = [] enum CodingKeys: String, CodingKey { case sku case name case shortDesc = "short_desc" case longDesc = "long_desc" case productType = "product_type" case brand case basePriceCents = "base_price_cents" case stockQty = "stock_qty" case isFeatured = "is_featured" case isNewArrival = "is_new_arrival" case isBestSeller = "is_best_seller" case seoTitle = "seo_title" case seoKeywords = "seo_keywords" case seoMetaDesc = "seo_meta_desc" case weightLbs = "weight_lbs" case size case inventoryTracking = "inventory_tracking" case isUniqueOneOff = "is_unique_one_off" case categorySlugs = "category_slugs" case images case aiHelperContext = "ai_helper_context" case tags case tabs case variants } public init( sku: String, name: String, shortDesc: String, longDesc: String, productType: String, brand: String, basePriceCents: Int, stockQty: Int = 1, isFeatured: Bool = false, isNewArrival: Bool = false, isBestSeller: Bool = false, seoTitle: String, seoKeywords: String, seoMetaDesc: String, weightLbs: Double, size: String? = nil, inventoryTracking: String, isUniqueOneOff: Bool, categorySlugs: [String], images: [String], aiHelperContext: String? = nil, tags: [String] = [], tabs: [WebProductTab] = [], variants: [WebVariant] ) { fatalError() } } public struct WebProductTab: Identifiable, Hashable, Codable, Sendable { public let id: UUID = UUID() public let title: String = "" public let content: String = "" enum CodingKeys: String, CodingKey { case id case title case content } public init( id: UUID = UUID(), title: String, content: String ) { fatalError() } public init(from decoder: Decoder) throws { fatalError() } public func encode(to encoder: Encoder) throws { fatalError() } } public struct WebContentBlock: Codable, Sendable, Hashable { public let title: String = "" public let fullText: String = "" public let shortText: String = "" enum CodingKeys: String, CodingKey { case title case fullText = "full_text" case shortText = "short_text" } public init( title: String, fullText: String, shortText: String ) { fatalError() } } public struct WebCategory: Codable, Sendable, Hashable { public let slug: String = "" public let name: String = "" public let description: String = "" public let isFeatured: Bool = false public let image: String? = nil public let productCount: Int = 0 public let subcategories: [WebCategory] = [] public let featuredSku: String? = nil public let showWhenEmpty: Bool = false public let emptyBadgeText: String? = nil public let emptyImage: String? = nil enum CodingKeys: String, CodingKey { case slug case name case description case shortDesc = "short_desc" case isFeatured = "is_featured" case image case productCount = "product_count" case subcategories case featuredSku = "featured_sku" case showWhenEmpty = "show_when_empty" case emptyBadgeText = "empty_badge_text" case emptyImage = "empty_image" } public init( slug: String, name: String, description: String, isFeatured: Bool = false, image: String? = nil, productCount: Int, subcategories: [WebCategory] = [], featuredSku: String? = nil, showWhenEmpty: Bool = false, emptyBadgeText: String? = nil, emptyImage: String? = nil ) { fatalError() } public init(from decoder: Decoder) throws { fatalError() } public func encode(to encoder: Encoder) throws { fatalError() } } public struct WebStoreInfo: Codable, Sendable, Hashable { public let storeName: String = "" public let emails: [String: String] = [:] public let phones: [String: String] = [:] public let address: String = "" public let hours: String = "" public let facebook: String = "" public let instagram: String = "" public let tiktok: String = "" public let copyrightYear: String = "" public let termsURL: String = "" public let privacyURL: String = "" public let contentBlocks: [String: WebContentBlock] = [:] enum CodingKeys: String, CodingKey { case storeName = "store_name" case emails case phones case address case hours case facebook case instagram case tiktok case copyrightYear = "copyright_year" case termsURL = "terms_url" case privacyURL = "privacy_url" case contentBlocks = "content_blocks" } public init( storeName: String = "The Groovy Panda", emails: [String: String], phones: [String: String], address: String, hours: String, facebook: String, instagram: String, tiktok: String, copyrightYear: String, termsURL: String, privacyURL: String, contentBlocks: [String: WebContentBlock] = [:] ) { fatalError() } }