diff --git a/native/swift/Sources/wordpress-api/Exports.swift b/native/swift/Sources/wordpress-api/Exports.swift index 33431753..8674ac0a 100644 --- a/native/swift/Sources/wordpress-api/Exports.swift +++ b/native/swift/Sources/wordpress-api/Exports.swift @@ -120,6 +120,34 @@ public typealias MediaRequestListWithEditContextResponse = WordPressAPIInternal. public typealias MediaRequestListWithViewContextResponse = WordPressAPIInternal.MediaRequestListWithViewContextResponse public typealias MediaRequestListWithEmbedContextResponse = WordPressAPIInternal.MediaRequestListWithEmbedContextResponse +// MARK: - Tags +public typealias TagId = WordPressAPIInternal.TagId +public typealias SparseTag = WordPressAPIInternal.SparseTag +public typealias TagWithEditContext = WordPressAPIInternal.TagWithEditContext +public typealias TagWithViewContext = WordPressAPIInternal.TagWithViewContext +public typealias TagWithEmbedContext = WordPressAPIInternal.TagWithEmbedContext +public typealias TagCreateParams = WordPressAPIInternal.TagCreateParams +public typealias TagUpdateParams = WordPressAPIInternal.TagUpdateParams +public typealias TagListParams = WordPressAPIInternal.TagListParams +public typealias TagsRequestExecutor = WordPressAPIInternal.TagsRequestExecutor +public typealias TagsRequestListWithEditContextResponse = WordPressAPIInternal.TagsRequestListWithEditContextResponse +public typealias TagsRequestListWithViewContextResponse = WordPressAPIInternal.TagsRequestListWithViewContextResponse +public typealias TagsRequestListWithEmbedContextResponse = WordPressAPIInternal.TagsRequestListWithEmbedContextResponse + +// MARK: - Categories +public typealias CategoryId = WordPressAPIInternal.CategoryId +public typealias SparseCategory = WordPressAPIInternal.SparseCategory +public typealias CategoryWithEditContext = WordPressAPIInternal.CategoryWithEditContext +public typealias CategoryWithViewContext = WordPressAPIInternal.CategoryWithViewContext +public typealias CategoryWithEmbedContext = WordPressAPIInternal.CategoryWithEmbedContext +public typealias CategoryCreateParams = WordPressAPIInternal.CategoryCreateParams +public typealias CategoryUpdateParams = WordPressAPIInternal.CategoryUpdateParams +public typealias CategoryListParams = WordPressAPIInternal.CategoryListParams +public typealias CategoriesRequestExecutor = WordPressAPIInternal.CategoriesRequestExecutor +public typealias CategoriesRequestListWithEditContextResponse = WordPressAPIInternal.CategoriesRequestListWithEditContextResponse +public typealias CategoriesRequestListWithViewContextResponse = WordPressAPIInternal.CategoriesRequestListWithViewContextResponse +public typealias CategoriesRequestListWithEmbedContextResponse = WordPressAPIInternal.CategoriesRequestListWithEmbedContextResponse + // MARK: – Site Settings public typealias SparseSiteSettings = WordPressAPIInternal.SparseSiteSettings public typealias SiteSettingsWithEditContext = WordPressAPIInternal.SiteSettingsWithEditContext diff --git a/native/swift/Sources/wordpress-api/WordPressAPI.swift b/native/swift/Sources/wordpress-api/WordPressAPI.swift index 2820f201..de73e6d4 100644 --- a/native/swift/Sources/wordpress-api/WordPressAPI.swift +++ b/native/swift/Sources/wordpress-api/WordPressAPI.swift @@ -129,6 +129,18 @@ public actor WordPressAPI { self.requestBuilder.siteSettings() } + public var taxonomies: TaxonomiesRequestExecutor { + self.requestBuilder.taxonomies() + } + + public var tags: TagsRequestExecutor { + self.requestBuilder.tags() + } + + public var categories: CategoriesRequestExecutor { + self.requestBuilder.categories() + } + #if PROGRESS_REPORTING_ENABLED public func uploadMedia( params: MediaCreateParams,