Skip to content

Commit 0e18961

Browse files
algolia-botFluf22kai687shortcuts
committed
chore: generated code for commit f4dcddad. [skip ci]
algolia/api-clients-automation@f4dcdda Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: shortcuts <[email protected]> Co-authored-by: algolia-bot <[email protected]>
1 parent 75e1ae0 commit 0e18961

File tree

516 files changed

+8434
-372
lines changed

Some content is hidden

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

516 files changed

+8434
-372
lines changed

AlgoliaSearchClient.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Pod::Spec.new do |s|
1313
s.watchos.deployment_target = '7.0'
1414
s.tvos.deployment_target = '14.0'
1515
s.swift_version = '5.9'
16+
s.resource_bundles = { 'AlgoliaSearchClient' => ['PrivacyInfo.xcprivacy']}
1617

1718
s.subspec 'Core' do |subs|
1819
subs.source_files = 'Sources/Core/**/*.swift'

PrivacyInfo.xcprivacy

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyCollectedDataTypes</key>
6+
<array/>
7+
<key>NSPrivacyAccessedAPITypes</key>
8+
<array/>
9+
<key>NSPrivacyTrackingDomains</key>
10+
<array/>
11+
<key>NSPrivacyTracking</key>
12+
<false/>
13+
</dict>
14+
</plist>

Sources/Abtesting/Models/ABTest.swift

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,37 @@ public struct ABTest: Codable, JSONEncodable {
9898
try container.encode(self.variants, forKey: .variants)
9999
}
100100
}
101+
102+
extension ABTest: Equatable {
103+
public static func ==(lhs: ABTest, rhs: ABTest) -> Bool {
104+
lhs.abTestID == rhs.abTestID &&
105+
lhs.clickSignificance == rhs.clickSignificance &&
106+
lhs.conversionSignificance == rhs.conversionSignificance &&
107+
lhs.addToCartSignificance == rhs.addToCartSignificance &&
108+
lhs.purchaseSignificance == rhs.purchaseSignificance &&
109+
lhs.revenueSignificance == rhs.revenueSignificance &&
110+
lhs.updatedAt == rhs.updatedAt &&
111+
lhs.createdAt == rhs.createdAt &&
112+
lhs.endAt == rhs.endAt &&
113+
lhs.name == rhs.name &&
114+
lhs.status == rhs.status &&
115+
lhs.variants == rhs.variants
116+
}
117+
}
118+
119+
extension ABTest: Hashable {
120+
public func hash(into hasher: inout Hasher) {
121+
hasher.combine(self.abTestID.hashValue)
122+
hasher.combine(self.clickSignificance.hashValue)
123+
hasher.combine(self.conversionSignificance.hashValue)
124+
hasher.combine(self.addToCartSignificance.hashValue)
125+
hasher.combine(self.purchaseSignificance.hashValue)
126+
hasher.combine(self.revenueSignificance.hashValue)
127+
hasher.combine(self.updatedAt.hashValue)
128+
hasher.combine(self.createdAt.hashValue)
129+
hasher.combine(self.endAt.hashValue)
130+
hasher.combine(self.name.hashValue)
131+
hasher.combine(self.status.hashValue)
132+
hasher.combine(self.variants.hashValue)
133+
}
134+
}

Sources/Abtesting/Models/ABTestResponse.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ public struct ABTestResponse: Codable, JSONEncodable {
3737
try container.encode(self.taskID, forKey: .taskID)
3838
}
3939
}
40+
41+
extension ABTestResponse: Equatable {
42+
public static func ==(lhs: ABTestResponse, rhs: ABTestResponse) -> Bool {
43+
lhs.index == rhs.index &&
44+
lhs.abTestID == rhs.abTestID &&
45+
lhs.taskID == rhs.taskID
46+
}
47+
}
48+
49+
extension ABTestResponse: Hashable {
50+
public func hash(into hasher: inout Hasher) {
51+
hasher.combine(self.index.hashValue)
52+
hasher.combine(self.abTestID.hashValue)
53+
hasher.combine(self.taskID.hashValue)
54+
}
55+
}

Sources/Abtesting/Models/AbTestsVariant.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ public struct AbTestsVariant: Codable, JSONEncodable {
3535
try container.encodeIfPresent(self.description, forKey: .description)
3636
}
3737
}
38+
39+
extension AbTestsVariant: Equatable {
40+
public static func ==(lhs: AbTestsVariant, rhs: AbTestsVariant) -> Bool {
41+
lhs.index == rhs.index &&
42+
lhs.trafficPercentage == rhs.trafficPercentage &&
43+
lhs.description == rhs.description
44+
}
45+
}
46+
47+
extension AbTestsVariant: Hashable {
48+
public func hash(into hasher: inout Hasher) {
49+
hasher.combine(self.index.hashValue)
50+
hasher.combine(self.trafficPercentage.hashValue)
51+
hasher.combine(self.description?.hashValue)
52+
}
53+
}

Sources/Abtesting/Models/AbTestsVariantSearchParams.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,21 @@ public struct AbTestsVariantSearchParams: Codable, JSONEncodable {
3939
try container.encode(self.customSearchParameters, forKey: .customSearchParameters)
4040
}
4141
}
42+
43+
extension AbTestsVariantSearchParams: Equatable {
44+
public static func ==(lhs: AbTestsVariantSearchParams, rhs: AbTestsVariantSearchParams) -> Bool {
45+
lhs.index == rhs.index &&
46+
lhs.trafficPercentage == rhs.trafficPercentage &&
47+
lhs.description == rhs.description &&
48+
lhs.customSearchParameters == rhs.customSearchParameters
49+
}
50+
}
51+
52+
extension AbTestsVariantSearchParams: Hashable {
53+
public func hash(into hasher: inout Hasher) {
54+
hasher.combine(self.index.hashValue)
55+
hasher.combine(self.trafficPercentage.hashValue)
56+
hasher.combine(self.description?.hashValue)
57+
hasher.combine(self.customSearchParameters.hashValue)
58+
}
59+
}

Sources/Abtesting/Models/AbtestingErrorBase.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,17 @@ public struct AbtestingErrorBase: Codable, JSONEncodable {
7070
)
7171
}
7272
}
73+
74+
extension AbtestingErrorBase: Equatable {
75+
public static func ==(lhs: AbtestingErrorBase, rhs: AbtestingErrorBase) -> Bool {
76+
lhs.message == rhs.message
77+
&& lhs.additionalProperties == rhs.additionalProperties
78+
}
79+
}
80+
81+
extension AbtestingErrorBase: Hashable {
82+
public func hash(into hasher: inout Hasher) {
83+
hasher.combine(self.message?.hashValue)
84+
hasher.combine(self.additionalProperties.hashValue)
85+
}
86+
}

Sources/Abtesting/Models/AddABTestsRequest.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ public struct AddABTestsRequest: Codable, JSONEncodable {
3535
try container.encode(self.endAt, forKey: .endAt)
3636
}
3737
}
38+
39+
extension AddABTestsRequest: Equatable {
40+
public static func ==(lhs: AddABTestsRequest, rhs: AddABTestsRequest) -> Bool {
41+
lhs.name == rhs.name &&
42+
lhs.variants == rhs.variants &&
43+
lhs.endAt == rhs.endAt
44+
}
45+
}
46+
47+
extension AddABTestsRequest: Hashable {
48+
public func hash(into hasher: inout Hasher) {
49+
hasher.combine(self.name.hashValue)
50+
hasher.combine(self.variants.hashValue)
51+
hasher.combine(self.endAt.hashValue)
52+
}
53+
}

Sources/Abtesting/Models/AddABTestsVariant.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ public enum AddABTestsVariant: Codable, JSONEncodable, AbstractEncodable {
4646
}
4747
}
4848
}
49+
50+
extension AddABTestsVariant: Equatable {}
51+
extension AddABTestsVariant: Hashable {}

Sources/Abtesting/Models/Currency.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,21 @@ public struct Currency: Codable, JSONEncodable {
4545
try container.encodeIfPresent(self.standardDeviation, forKey: .standardDeviation)
4646
}
4747
}
48+
49+
extension Currency: Equatable {
50+
public static func ==(lhs: Currency, rhs: Currency) -> Bool {
51+
lhs.currency == rhs.currency &&
52+
lhs.revenue == rhs.revenue &&
53+
lhs.mean == rhs.mean &&
54+
lhs.standardDeviation == rhs.standardDeviation
55+
}
56+
}
57+
58+
extension Currency: Hashable {
59+
public func hash(into hasher: inout Hasher) {
60+
hasher.combine(self.currency?.hashValue)
61+
hasher.combine(self.revenue?.hashValue)
62+
hasher.combine(self.mean?.hashValue)
63+
hasher.combine(self.standardDeviation?.hashValue)
64+
}
65+
}

0 commit comments

Comments
 (0)