Skip to content

Commit

Permalink
chore: generated code for commit 517eef8.
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
algolia-bot and Fluf22 committed Mar 18, 2024
1 parent 517eef8 commit 15bc15e
Show file tree
Hide file tree
Showing 579 changed files with 4,649 additions and 4,135 deletions.
50 changes: 45 additions & 5 deletions clients/algoliasearch-client-swift/AlgoliaSearchClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,55 @@ Pod::Spec.new do |s|
s.name = 'AlgoliaSearchClient'
s.module_name = 'AlgoliaSearchClient'
s.version = '9.0.0-alpha.10'
s.source = { :git => 'https://github.com/algolia/algoliasearch-client-swift.git', :branch => 'next' }
s.source = { :git => 'https://github.com/algolia/algoliasearch-client-swift.git', :tag => '9.0.0-alpha.10' }
s.authors = { 'Algolia' => 'contact@algolia.com' }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/algolia/algoliasearch-client-swift/tree/next'
s.summary = 'Algolia Search API Client written in Swift.'
s.documentation_url = 'https://www.algolia.com/doc/api-client/getting-started/what-is-the-api-client/swift/'
s.source_files = 'Sources/**/*.swift'
s.platforms = { :ios => '13.0', :osx => '10.15', :watchos => '6.0', :tvos => '13.0' }
s.ios.deployment_target = '14.0'
s.osx.deployment_target = '11.0'
s.watchos.deployment_target = '7.0'
s.tvos.deployment_target = '14.0'
s.swift_version = '5.9'
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
s.dependency 'apple-swift-log', '~> 1.4'

s.subspec 'Core' do |subs|
subs.source_files = 'Sources/Core/**/*.swift'
end
s.subspec 'Abtesting' do |subs|
subs.source_files = 'Sources/Abtesting/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Analytics' do |subs|
subs.source_files = 'Sources/Analytics/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Ingestion' do |subs|
subs.source_files = 'Sources/Ingestion/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Insights' do |subs|
subs.source_files = 'Sources/Insights/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Monitoring' do |subs|
subs.source_files = 'Sources/Monitoring/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Personalization' do |subs|
subs.source_files = 'Sources/Personalization/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'QuerySuggestions' do |subs|
subs.source_files = 'Sources/QuerySuggestions/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Recommend' do |subs|
subs.source_files = 'Sources/Recommend/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
s.subspec 'Search' do |subs|
subs.source_files = 'Sources/Search/**/*.swift'
subs.dependency 'AlgoliaSearchClient/Core'
end
end
64 changes: 37 additions & 27 deletions clients/algoliasearch-client-swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,42 @@ var targets: [Target] = []
var products: [Product] = []

#if os(Linux)
extraPackageDependencies.append(
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.2.0")
)
extraTargetDependencies.append(
.product(name: "Crypto", package: "swift-crypto")
)
let macOSVersion: SupportedPlatform.MacOSVersion = .v10_15
#else
let macOSVersion: SupportedPlatform.MacOSVersion = .v11
#endif

extraTargetDependencies.append(contentsOf: [
.product(name: "AnyCodable", package: "AnyCodable"),
.product(name: "Logging", package: "swift-log"),
])
#if os(Linux)
extraPackageDependencies.append(contentsOf: [
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.2.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
])
extraTargetDependencies.append(contentsOf: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "Logging", package: "swift-log"),
])
#endif

targets.append(
.target(
name: "Core",
dependencies: [
.product(name: "Gzip", package: "GzipSwift"),
] + extraTargetDependencies,
path: "Sources/Core"
#if os(Linux)
targets.append(contentsOf: [
.systemLibrary(name: "zlib", pkgConfig: "zlib", providers: [.apt(["zlib1g-dev"])]),
.target(
name: "Core",
dependencies: [
"zlib",
] + extraTargetDependencies,
path: "Sources/Core"
),
])
#else
targets.append(
.target(
name: "Core",
dependencies: extraTargetDependencies,
path: "Sources/Core"
)
)
)
#endif

products.append(
.library(
Expand Down Expand Up @@ -72,16 +86,12 @@ products.append(
let package = Package(
name: "AlgoliaSearchClient",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
.iOS(.v14),
.macOS(macOSVersion),
.tvOS(.v14),
.watchOS(.v7),
],
products: products,
dependencies: [
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.7"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
.package(url: "https://github.com/1024jp/GzipSwift", from: "6.0.1"),
] + extraPackageDependencies,
dependencies: extraPackageDependencies,
targets: targets
)
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation

typealias Client = AbtestingClient
#if canImport(Core)
import Core
#endif

open class AbtestingClient {
private var configuration: Configuration
private var configuration: AbtestingClientConfiguration
private var transporter: Transporter

var appID: String {
self.configuration.appID
}

public init(configuration: Configuration, transporter: Transporter) {
public init(configuration: AbtestingClientConfiguration, transporter: Transporter) {
self.configuration = configuration
self.transporter = transporter
}

public convenience init(configuration: Configuration) {
public convenience init(configuration: AbtestingClientConfiguration) {
self.init(configuration: configuration, transporter: Transporter(configuration: configuration))
}

public convenience init(appID: String, apiKey: String, region: Region?) throws {
try self.init(configuration: Configuration(appID: appID, apiKey: apiKey, region: region))
try self.init(configuration: AbtestingClientConfiguration(appID: appID, apiKey: apiKey, region: region))
}

/// - parameter addABTestsRequest: (body)
Expand Down Expand Up @@ -122,7 +121,7 @@ open class AbtestingClient {
range: nil
)
let body: AnyCodable? = nil
let queryParameters = parameters
let queryParameters: [String: AnyCodable]? = parameters

let nillableHeaders: [String: Any?]? = nil

Expand Down Expand Up @@ -184,7 +183,7 @@ open class AbtestingClient {
range: nil
)
let body: AnyCodable? = nil
let queryParameters = parameters
let queryParameters: [String: AnyCodable]? = parameters

let nillableHeaders: [String: Any?]? = nil

Expand Down Expand Up @@ -252,7 +251,7 @@ open class AbtestingClient {
range: nil
)
let body = body
let queryParameters = parameters
let queryParameters: [String: AnyCodable]? = parameters

let nillableHeaders: [String: Any?]? = nil

Expand Down Expand Up @@ -320,7 +319,7 @@ open class AbtestingClient {
range: nil
)
let body = body
let queryParameters = parameters
let queryParameters: [String: AnyCodable]? = parameters

let nillableHeaders: [String: Any?]? = nil

Expand Down Expand Up @@ -475,7 +474,7 @@ open class AbtestingClient {
) async throws -> Response<ListABTestsResponse> {
let resourcePath = "/2/abtests"
let body: AnyCodable? = nil
let queryParameters = [
let queryParameters: [String: Any?] = [
"offset": offset?.encodeToJSON(),
"limit": limit?.encodeToJSON(),
"indexPrefix": indexPrefix?.encodeToJSON(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

typealias AbtestingClientConfiguration = Configuration

public struct Configuration: Core.Configuration, Credentials {
public struct AbtestingClientConfiguration: BaseConfiguration, Credentials {
private let authorizedRegions: [Region] = [
Region.de, Region.us,
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct ABTest: Codable, JSONEncodable, Hashable {
/// Unique A/B test ID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct ABTestResponse: Codable, JSONEncodable, Hashable {
/// A/B test index.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct AbTestsVariant: Codable, JSONEncodable, Hashable {
/// A/B test index.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct AbTestsVariantSearchParams: Codable, JSONEncodable, Hashable {
/// A/B test index.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

/// Error.
public struct ErrorBase: Codable, JSONEncodable, Hashable {
public struct AbtestingErrorBase: Codable, JSONEncodable, Hashable {
public var message: String?

public init(message: String? = nil) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct AddABTestsRequest: Codable, JSONEncodable, Hashable {
/// A/B test name.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public enum AddABTestsVariant: Codable, JSONEncodable, AbstractEncodable, Hashable {
case abTestsVariant(AbTestsVariant)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

public struct CurrenciesValue: Codable, JSONEncodable, Hashable {
/// Currency code.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

/// Applies search parameters from [a restricted set of
/// options](https://www.algolia.com/doc/api-reference/api-methods/add-ab-test/#method-param-customsearchparameters).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

/// A/B test filter effects resulting from configuration settings.
public struct FilterEffects: Codable, JSONEncodable, Hashable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import AnyCodable
import Core
import Foundation
#if canImport(Core)
import Core
#endif

/// Empty searches removed from the A/B test as a result of configuration settings.
public struct FilterEffectsEmptySearch: Codable, JSONEncodable, Hashable {
Expand Down
Loading

0 comments on commit 15bc15e

Please sign in to comment.