Skip to content

Commit feeb7d9

Browse files
algolia-botFluf22
andcommitted
chore: generated code for commit b89aa0ff. [skip ci]
algolia/api-clients-automation@b89aa0f Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent acd1ede commit feeb7d9

File tree

553 files changed

+4554
-3061
lines changed

Some content is hidden

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

553 files changed

+4554
-3061
lines changed

.openapi-generator/FILES

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
11
AlgoliaSearchClient.podspec
22
Package.swift
33
Sources/Core/Helpers/Version.swift
4-
Sources/Search/Configuration.swift
54
Sources/Search/Models/Acl.swift
65
Sources/Search/Models/Action.swift
76
Sources/Search/Models/AddApiKeyResponse.swift
8-
Sources/Search/Models/AdvancedSyntaxFeatures.swift
9-
Sources/Search/Models/AlternativesAsExact.swift
10-
Sources/Search/Models/Anchoring.swift
117
Sources/Search/Models/ApiKey.swift
128
Sources/Search/Models/ApiKeyOperation.swift
13-
Sources/Search/Models/AroundPrecision.swift
14-
Sources/Search/Models/AroundPrecisionFromValueInner.swift
15-
Sources/Search/Models/AroundRadius.swift
16-
Sources/Search/Models/AroundRadiusAll.swift
179
Sources/Search/Models/AssignUserIdParams.swift
1810
Sources/Search/Models/AttributeToUpdate.swift
19-
Sources/Search/Models/AutomaticFacetFilter.swift
20-
Sources/Search/Models/AutomaticFacetFilters.swift
2111
Sources/Search/Models/BaseGetApiKeyResponse.swift
2212
Sources/Search/Models/BaseIndexSettings.swift
23-
Sources/Search/Models/BaseSearchParams.swift
24-
Sources/Search/Models/BaseSearchParamsWithoutQuery.swift
25-
Sources/Search/Models/BaseSearchResponse.swift
2613
Sources/Search/Models/BatchAssignUserIdsParams.swift
2714
Sources/Search/Models/BatchDictionaryEntriesParams.swift
2815
Sources/Search/Models/BatchDictionaryEntriesRequest.swift
@@ -35,35 +22,18 @@ Sources/Search/Models/BrowseParamsObject.swift
3522
Sources/Search/Models/BrowseResponse.swift
3623
Sources/Search/Models/BuiltInOperation.swift
3724
Sources/Search/Models/BuiltInOperationType.swift
38-
Sources/Search/Models/Condition.swift
39-
Sources/Search/Models/Consequence.swift
40-
Sources/Search/Models/ConsequenceHide.swift
41-
Sources/Search/Models/ConsequenceParams.swift
42-
Sources/Search/Models/ConsequenceQuery.swift
43-
Sources/Search/Models/ConsequenceQueryObject.swift
4425
Sources/Search/Models/CreatedAtResponse.swift
4526
Sources/Search/Models/Cursor.swift
4627
Sources/Search/Models/DeleteApiKeyResponse.swift
4728
Sources/Search/Models/DeleteByParams.swift
4829
Sources/Search/Models/DeleteSourceResponse.swift
49-
Sources/Search/Models/DeletedAtResponse.swift
5030
Sources/Search/Models/DictionaryAction.swift
5131
Sources/Search/Models/DictionaryEntry.swift
5232
Sources/Search/Models/DictionaryEntryState.swift
5333
Sources/Search/Models/DictionaryLanguage.swift
5434
Sources/Search/Models/DictionarySettingsParams.swift
5535
Sources/Search/Models/DictionaryType.swift
56-
Sources/Search/Models/Distinct.swift
57-
Sources/Search/Models/Edit.swift
58-
Sources/Search/Models/EditType.swift
59-
Sources/Search/Models/ErrorBase.swift
60-
Sources/Search/Models/ExactOnSingleWordQuery.swift
61-
Sources/Search/Models/Exhaustive.swift
62-
Sources/Search/Models/FacetFilters.swift
6336
Sources/Search/Models/FacetHits.swift
64-
Sources/Search/Models/FacetOrdering.swift
65-
Sources/Search/Models/Facets.swift
66-
Sources/Search/Models/FacetsStats.swift
6737
Sources/Search/Models/FetchedIndex.swift
6838
Sources/Search/Models/GetApiKeyResponse.swift
6939
Sources/Search/Models/GetDictionarySettingsResponse.swift
@@ -74,98 +44,128 @@ Sources/Search/Models/GetObjectsResponse.swift
7444
Sources/Search/Models/GetTaskResponse.swift
7545
Sources/Search/Models/GetTopUserIdsResponse.swift
7646
Sources/Search/Models/HasPendingMappingsResponse.swift
77-
Sources/Search/Models/HighlightResult.swift
78-
Sources/Search/Models/HighlightResultOption.swift
7947
Sources/Search/Models/Hit.swift
80-
Sources/Search/Models/IgnorePlurals.swift
8148
Sources/Search/Models/IndexSettings.swift
82-
Sources/Search/Models/IndexSettingsAsSearchParams.swift
83-
Sources/Search/Models/Languages.swift
8449
Sources/Search/Models/ListApiKeysResponse.swift
8550
Sources/Search/Models/ListClustersResponse.swift
8651
Sources/Search/Models/ListIndicesResponse.swift
8752
Sources/Search/Models/ListUserIdsResponse.swift
8853
Sources/Search/Models/Log.swift
8954
Sources/Search/Models/LogQuery.swift
9055
Sources/Search/Models/LogType.swift
91-
Sources/Search/Models/MatchLevel.swift
92-
Sources/Search/Models/MatchedGeoLocation.swift
93-
Sources/Search/Models/MixedSearchFilters.swift
94-
Sources/Search/Models/Mode.swift
9556
Sources/Search/Models/MultipleBatchRequest.swift
9657
Sources/Search/Models/MultipleBatchResponse.swift
97-
Sources/Search/Models/NumericFilters.swift
9858
Sources/Search/Models/OperationIndexParams.swift
9959
Sources/Search/Models/OperationType.swift
100-
Sources/Search/Models/OptionalFilters.swift
101-
Sources/Search/Models/Params.swift
102-
Sources/Search/Models/Personalization.swift
103-
Sources/Search/Models/Promote.swift
104-
Sources/Search/Models/PromoteObjectID.swift
105-
Sources/Search/Models/PromoteObjectIDs.swift
106-
Sources/Search/Models/QueryType.swift
107-
Sources/Search/Models/RankingInfo.swift
108-
Sources/Search/Models/ReRankingApplyFilter.swift
109-
Sources/Search/Models/Redirect.swift
110-
Sources/Search/Models/RedirectRuleIndexMetadata.swift
111-
Sources/Search/Models/RedirectRuleIndexMetadataData.swift
112-
Sources/Search/Models/RemoveStopWords.swift
11360
Sources/Search/Models/RemoveUserIdResponse.swift
114-
Sources/Search/Models/RemoveWordsIfNoResults.swift
115-
Sources/Search/Models/RenderingContent.swift
11661
Sources/Search/Models/ReplaceSourceResponse.swift
11762
Sources/Search/Models/Rule.swift
11863
Sources/Search/Models/SaveObjectResponse.swift
11964
Sources/Search/Models/SaveSynonymResponse.swift
12065
Sources/Search/Models/ScopeType.swift
66+
Sources/Search/Models/SearchAdvancedSyntaxFeatures.swift
67+
Sources/Search/Models/SearchAlternativesAsExact.swift
68+
Sources/Search/Models/SearchAnchoring.swift
69+
Sources/Search/Models/SearchAroundPrecision.swift
70+
Sources/Search/Models/SearchAroundPrecisionFromValueInner.swift
71+
Sources/Search/Models/SearchAroundRadius.swift
72+
Sources/Search/Models/SearchAroundRadiusAll.swift
73+
Sources/Search/Models/SearchAutomaticFacetFilter.swift
74+
Sources/Search/Models/SearchAutomaticFacetFilters.swift
75+
Sources/Search/Models/SearchBaseSearchParams.swift
76+
Sources/Search/Models/SearchBaseSearchParamsWithoutQuery.swift
77+
Sources/Search/Models/SearchBaseSearchResponse.swift
78+
Sources/Search/Models/SearchCondition.swift
79+
Sources/Search/Models/SearchConsequence.swift
80+
Sources/Search/Models/SearchConsequenceHide.swift
81+
Sources/Search/Models/SearchConsequenceParams.swift
82+
Sources/Search/Models/SearchConsequenceQuery.swift
83+
Sources/Search/Models/SearchConsequenceQueryObject.swift
84+
Sources/Search/Models/SearchDeletedAtResponse.swift
12185
Sources/Search/Models/SearchDictionaryEntriesParams.swift
12286
Sources/Search/Models/SearchDictionaryEntriesResponse.swift
87+
Sources/Search/Models/SearchDistinct.swift
88+
Sources/Search/Models/SearchEdit.swift
89+
Sources/Search/Models/SearchEditType.swift
90+
Sources/Search/Models/SearchErrorBase.swift
91+
Sources/Search/Models/SearchExactOnSingleWordQuery.swift
92+
Sources/Search/Models/SearchExhaustive.swift
93+
Sources/Search/Models/SearchFacetFilters.swift
94+
Sources/Search/Models/SearchFacetOrdering.swift
95+
Sources/Search/Models/SearchFacets.swift
96+
Sources/Search/Models/SearchFacetsStats.swift
12397
Sources/Search/Models/SearchForFacetValuesRequest.swift
12498
Sources/Search/Models/SearchForFacetValuesResponse.swift
12599
Sources/Search/Models/SearchForFacets.swift
126100
Sources/Search/Models/SearchForFacetsOptions.swift
127101
Sources/Search/Models/SearchForHits.swift
128102
Sources/Search/Models/SearchForHitsOptions.swift
103+
Sources/Search/Models/SearchHighlightResult.swift
104+
Sources/Search/Models/SearchHighlightResultOption.swift
129105
Sources/Search/Models/SearchHits.swift
106+
Sources/Search/Models/SearchIgnorePlurals.swift
107+
Sources/Search/Models/SearchIndexSettingsAsSearchParams.swift
108+
Sources/Search/Models/SearchLanguages.swift
109+
Sources/Search/Models/SearchMatchLevel.swift
110+
Sources/Search/Models/SearchMatchedGeoLocation.swift
130111
Sources/Search/Models/SearchMethodParams.swift
112+
Sources/Search/Models/SearchMixedSearchFilters.swift
113+
Sources/Search/Models/SearchMode.swift
114+
Sources/Search/Models/SearchNumericFilters.swift
115+
Sources/Search/Models/SearchOptionalFilters.swift
131116
Sources/Search/Models/SearchParams.swift
132-
Sources/Search/Models/SearchParamsObject.swift
133-
Sources/Search/Models/SearchParamsQuery.swift
134117
Sources/Search/Models/SearchParamsString.swift
118+
Sources/Search/Models/SearchPersonalization.swift
119+
Sources/Search/Models/SearchPromote.swift
120+
Sources/Search/Models/SearchPromoteObjectID.swift
121+
Sources/Search/Models/SearchPromoteObjectIDs.swift
135122
Sources/Search/Models/SearchQuery.swift
123+
Sources/Search/Models/SearchQueryType.swift
124+
Sources/Search/Models/SearchRankingInfo.swift
125+
Sources/Search/Models/SearchReRankingApplyFilter.swift
126+
Sources/Search/Models/SearchRedirect.swift
127+
Sources/Search/Models/SearchRedirectRuleIndexMetadata.swift
128+
Sources/Search/Models/SearchRedirectRuleIndexMetadataData.swift
129+
Sources/Search/Models/SearchRemoveStopWords.swift
130+
Sources/Search/Models/SearchRemoveWordsIfNoResults.swift
131+
Sources/Search/Models/SearchRenderingContent.swift
136132
Sources/Search/Models/SearchResponse.swift
137133
Sources/Search/Models/SearchResponses.swift
138134
Sources/Search/Models/SearchResult.swift
139135
Sources/Search/Models/SearchRulesParams.swift
140136
Sources/Search/Models/SearchRulesResponse.swift
137+
Sources/Search/Models/SearchSearchParams.swift
138+
Sources/Search/Models/SearchSearchParamsObject.swift
139+
Sources/Search/Models/SearchSearchParamsQuery.swift
140+
Sources/Search/Models/SearchSemanticSearch.swift
141+
Sources/Search/Models/SearchSnippetResult.swift
142+
Sources/Search/Models/SearchSnippetResultOption.swift
143+
Sources/Search/Models/SearchSortRemainingBy.swift
144+
Sources/Search/Models/SearchSource.swift
141145
Sources/Search/Models/SearchStrategy.swift
142146
Sources/Search/Models/SearchSynonymsParams.swift
143147
Sources/Search/Models/SearchSynonymsResponse.swift
148+
Sources/Search/Models/SearchTagFilters.swift
149+
Sources/Search/Models/SearchTaskStatus.swift
144150
Sources/Search/Models/SearchTypeDefault.swift
145151
Sources/Search/Models/SearchTypeFacet.swift
152+
Sources/Search/Models/SearchTypoTolerance.swift
153+
Sources/Search/Models/SearchTypoToleranceEnum.swift
146154
Sources/Search/Models/SearchUserIdsParams.swift
147155
Sources/Search/Models/SearchUserIdsResponse.swift
156+
Sources/Search/Models/SearchValue.swift
148157
Sources/Search/Models/SecuredAPIKeyRestrictions.swift
149-
Sources/Search/Models/SemanticSearch.swift
150-
Sources/Search/Models/SnippetResult.swift
151-
Sources/Search/Models/SnippetResultOption.swift
152-
Sources/Search/Models/SortRemainingBy.swift
153-
Sources/Search/Models/Source.swift
154158
Sources/Search/Models/StandardEntries.swift
155159
Sources/Search/Models/SupportedLanguage.swift
156160
Sources/Search/Models/SynonymHit.swift
157161
Sources/Search/Models/SynonymType.swift
158-
Sources/Search/Models/TagFilters.swift
159-
Sources/Search/Models/TaskStatus.swift
160162
Sources/Search/Models/TimeRange.swift
161-
Sources/Search/Models/TypoTolerance.swift
162-
Sources/Search/Models/TypoToleranceEnum.swift
163163
Sources/Search/Models/UpdateApiKeyResponse.swift
164164
Sources/Search/Models/UpdatedAtResponse.swift
165165
Sources/Search/Models/UpdatedAtWithObjectIdResponse.swift
166166
Sources/Search/Models/UpdatedRuleResponse.swift
167167
Sources/Search/Models/UserHighlightResult.swift
168168
Sources/Search/Models/UserHit.swift
169169
Sources/Search/Models/UserId.swift
170-
Sources/Search/Models/Value.swift
171170
Sources/Search/SearchClient.swift
171+
Sources/Search/SearchClientConfiguration.swift

AlgoliaSearchClient.podspec

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,55 @@ Pod::Spec.new do |s|
22
s.name = 'AlgoliaSearchClient'
33
s.module_name = 'AlgoliaSearchClient'
44
s.version = '9.0.0-alpha.10'
5-
s.source = { :git => 'https://github.com/algolia/algoliasearch-client-swift.git', :branch => 'next' }
5+
s.source = { :git => 'https://github.com/algolia/algoliasearch-client-swift.git', :tag => '9.0.0-alpha.10' }
66
s.authors = { 'Algolia' => '[email protected]' }
77
s.license = { :type => 'MIT', :file => 'LICENSE' }
88
s.homepage = 'https://github.com/algolia/algoliasearch-client-swift/tree/next'
99
s.summary = 'Algolia Search API Client written in Swift.'
1010
s.documentation_url = 'https://www.algolia.com/doc/api-client/getting-started/what-is-the-api-client/swift/'
11-
s.source_files = 'Sources/**/*.swift'
12-
s.platforms = { :ios => '13.0', :osx => '10.15', :watchos => '6.0', :tvos => '13.0' }
11+
s.ios.deployment_target = '14.0'
12+
s.osx.deployment_target = '11.0'
13+
s.watchos.deployment_target = '7.0'
14+
s.tvos.deployment_target = '14.0'
1315
s.swift_version = '5.9'
14-
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
15-
s.dependency 'apple-swift-log', '~> 1.4'
16+
17+
s.subspec 'Core' do |subs|
18+
subs.source_files = 'Sources/Core/**/*.swift'
19+
end
20+
s.subspec 'Abtesting' do |subs|
21+
subs.source_files = 'Sources/Abtesting/**/*.swift'
22+
subs.dependency 'AlgoliaSearchClient/Core'
23+
end
24+
s.subspec 'Analytics' do |subs|
25+
subs.source_files = 'Sources/Analytics/**/*.swift'
26+
subs.dependency 'AlgoliaSearchClient/Core'
27+
end
28+
s.subspec 'Ingestion' do |subs|
29+
subs.source_files = 'Sources/Ingestion/**/*.swift'
30+
subs.dependency 'AlgoliaSearchClient/Core'
31+
end
32+
s.subspec 'Insights' do |subs|
33+
subs.source_files = 'Sources/Insights/**/*.swift'
34+
subs.dependency 'AlgoliaSearchClient/Core'
35+
end
36+
s.subspec 'Monitoring' do |subs|
37+
subs.source_files = 'Sources/Monitoring/**/*.swift'
38+
subs.dependency 'AlgoliaSearchClient/Core'
39+
end
40+
s.subspec 'Personalization' do |subs|
41+
subs.source_files = 'Sources/Personalization/**/*.swift'
42+
subs.dependency 'AlgoliaSearchClient/Core'
43+
end
44+
s.subspec 'QuerySuggestions' do |subs|
45+
subs.source_files = 'Sources/QuerySuggestions/**/*.swift'
46+
subs.dependency 'AlgoliaSearchClient/Core'
47+
end
48+
s.subspec 'Recommend' do |subs|
49+
subs.source_files = 'Sources/Recommend/**/*.swift'
50+
subs.dependency 'AlgoliaSearchClient/Core'
51+
end
52+
s.subspec 'Search' do |subs|
53+
subs.source_files = 'Sources/Search/**/*.swift'
54+
subs.dependency 'AlgoliaSearchClient/Core'
55+
end
1656
end

Cartfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
github "Flight-School/AnyCodable" ~> 0.6
2-
github "apple/swift-log" ~> 1.5
3-
github "1024jp/GzipSwift" ~> 6.0

Package.swift

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,42 @@ var targets: [Target] = []
1010
var products: [Product] = []
1111

1212
#if os(Linux)
13-
extraPackageDependencies.append(
14-
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.2.0")
15-
)
16-
extraTargetDependencies.append(
17-
.product(name: "Crypto", package: "swift-crypto")
18-
)
13+
let macOSVersion: SupportedPlatform.MacOSVersion = .v10_15
14+
#else
15+
let macOSVersion: SupportedPlatform.MacOSVersion = .v11
1916
#endif
2017

21-
extraTargetDependencies.append(contentsOf: [
22-
.product(name: "AnyCodable", package: "AnyCodable"),
23-
.product(name: "Logging", package: "swift-log"),
24-
])
18+
#if os(Linux)
19+
extraPackageDependencies.append(contentsOf: [
20+
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.2.0"),
21+
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
22+
])
23+
extraTargetDependencies.append(contentsOf: [
24+
.product(name: "Crypto", package: "swift-crypto"),
25+
.product(name: "Logging", package: "swift-log"),
26+
])
27+
#endif
2528

26-
targets.append(
27-
.target(
28-
name: "Core",
29-
dependencies: [
30-
.product(name: "Gzip", package: "GzipSwift"),
31-
] + extraTargetDependencies,
32-
path: "Sources/Core"
29+
#if os(Linux)
30+
targets.append(contentsOf: [
31+
.systemLibrary(name: "zlib", pkgConfig: "zlib", providers: [.apt(["zlib1g-dev"])]),
32+
.target(
33+
name: "Core",
34+
dependencies: [
35+
"zlib",
36+
] + extraTargetDependencies,
37+
path: "Sources/Core"
38+
),
39+
])
40+
#else
41+
targets.append(
42+
.target(
43+
name: "Core",
44+
dependencies: extraTargetDependencies,
45+
path: "Sources/Core"
46+
)
3347
)
34-
)
48+
#endif
3549

3650
products.append(
3751
.library(
@@ -72,16 +86,12 @@ products.append(
7286
let package = Package(
7387
name: "AlgoliaSearchClient",
7488
platforms: [
75-
.iOS(.v13),
76-
.macOS(.v10_15),
77-
.tvOS(.v13),
78-
.watchOS(.v6),
89+
.iOS(.v14),
90+
.macOS(macOSVersion),
91+
.tvOS(.v14),
92+
.watchOS(.v7),
7993
],
8094
products: products,
81-
dependencies: [
82-
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.7"),
83-
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
84-
.package(url: "https://github.com/1024jp/GzipSwift", from: "6.0.1"),
85-
] + extraPackageDependencies,
95+
dependencies: extraPackageDependencies,
8696
targets: targets
8797
)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ let package = Package(
7171
Import the Core package and the required client package to your source code files:
7272

7373
```swift
74-
import Core
74+
#if canImport(Core)
75+
import Core
76+
#endif
7577
import Search // or Ingestion, for example
7678
```
7779

0 commit comments

Comments
 (0)