Skip to content

Commit 5e53304

Browse files
algolia-botClaraMullermillotpshortcuts
committed
feat(specs): merge composition & composition-full (generated)
algolia/api-clients-automation#5333 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent ba7aa7c commit 5e53304

File tree

87 files changed

+4312
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+4312
-411
lines changed

Sources/Abtesting/AbtestingClientConfiguration.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public struct AbtestingClientConfiguration: BaseConfiguration, Credentials {
2828
readTimeout: TimeInterval = 5,
2929
logLevel: LogLevel = DefaultConfiguration.default.logLevel,
3030
defaultHeaders: [String: String]? = DefaultConfiguration.default.defaultHeaders,
31-
hosts: [RetryableHost]? = nil
31+
hosts: [RetryableHost]? = nil,
32+
compression: CompressionAlgorithm = .none
3233
) throws {
3334
guard !appID.isEmpty else {
3435
throw AlgoliaError.invalidCredentials("appId")
@@ -48,7 +49,7 @@ public struct AbtestingClientConfiguration: BaseConfiguration, Credentials {
4849
"X-Algolia-API-Key": apiKey,
4950
"Content-Type": "application/json",
5051
].merging(defaultHeaders ?? [:]) { _, new in new }
51-
self.compression = .none
52+
self.compression = compression
5253

5354
UserAgentController.append(UserAgent(title: "Abtesting", version: Version.current.description))
5455

Sources/AbtestingV3/AbtestingV3ClientConfiguration.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public struct AbtestingV3ClientConfiguration: BaseConfiguration, Credentials {
2828
readTimeout: TimeInterval = 5,
2929
logLevel: LogLevel = DefaultConfiguration.default.logLevel,
3030
defaultHeaders: [String: String]? = DefaultConfiguration.default.defaultHeaders,
31-
hosts: [RetryableHost]? = nil
31+
hosts: [RetryableHost]? = nil,
32+
compression: CompressionAlgorithm = .none
3233
) throws {
3334
guard !appID.isEmpty else {
3435
throw AlgoliaError.invalidCredentials("appId")
@@ -48,7 +49,7 @@ public struct AbtestingV3ClientConfiguration: BaseConfiguration, Credentials {
4849
"X-Algolia-API-Key": apiKey,
4950
"Content-Type": "application/json",
5051
].merging(defaultHeaders ?? [:]) { _, new in new }
51-
self.compression = .none
52+
self.compression = compression
5253

5354
UserAgentController.append(UserAgent(title: "AbtestingV3", version: Version.current.description))
5455

Sources/Analytics/AnalyticsClientConfiguration.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public struct AnalyticsClientConfiguration: BaseConfiguration, Credentials {
2828
readTimeout: TimeInterval = 5,
2929
logLevel: LogLevel = DefaultConfiguration.default.logLevel,
3030
defaultHeaders: [String: String]? = DefaultConfiguration.default.defaultHeaders,
31-
hosts: [RetryableHost]? = nil
31+
hosts: [RetryableHost]? = nil,
32+
compression: CompressionAlgorithm = .none
3233
) throws {
3334
guard !appID.isEmpty else {
3435
throw AlgoliaError.invalidCredentials("appId")
@@ -48,7 +49,7 @@ public struct AnalyticsClientConfiguration: BaseConfiguration, Credentials {
4849
"X-Algolia-API-Key": apiKey,
4950
"Content-Type": "application/json",
5051
].merging(defaultHeaders ?? [:]) { _, new in new }
51-
self.compression = .none
52+
self.compression = compression
5253

5354
UserAgentController.append(UserAgent(title: "Analytics", version: Version.current.description))
5455

0 commit comments

Comments
 (0)