Skip to content

Commit be2804f

Browse files
committed
fix(clients): escape char in comments (generated)
algolia/api-clients-automation#3973 Co-authored-by: algolia-bot <[email protected]>
1 parent cca119e commit be2804f

File tree

71 files changed

+168
-177
lines changed

Some content is hidden

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

71 files changed

+168
-177
lines changed

Sources/Abtesting/Models/AbtestingStatus.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import Foundation
66
import Core
77
#endif
88

9-
/// A/B test status. - &#x60;active&#x60;. The A/B test is live and search traffic is split between the two variants. -
10-
/// &#x60;stopped&#x60;. You stopped the A/B test. The A/B test data is still available for analysis. -
11-
/// &#x60;expired&#x60;. The A/B test was automatically stopped after reaching its end date. - &#x60;failed&#x60;.
12-
/// Creating the A/B test failed.
9+
/// A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. -
10+
/// `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test
11+
/// was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed.
1312
public enum AbtestingStatus: String, Codable, CaseIterable {
1413
case active
1514
case stopped

Sources/Analytics/Models/Operator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Character that characterizes how the filter is applied. For example, for a facet filter &#x60;facet:value&#x60;,
10-
/// &#x60;:&#x60; is the operator. For a numeric filter &#x60;count&gt;50&#x60;, &#x60;&gt;&#x60; is the operator.
9+
/// Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the
10+
/// operator. For a numeric filter `count>50`, `>` is the operator.
1111
public enum Operator: String, Codable, CaseIterable {
1212
case colon = ":"
1313
case lessThan = "<"

Sources/Analytics/Models/OrderBy.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Attribute by which to order the response items. If the &#x60;clickAnalytics&#x60; parameter is false, only
10-
/// &#x60;searchCount&#x60; is available.
9+
/// Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is
10+
/// available.
1111
public enum OrderBy: String, Codable, CaseIterable {
1212
case searchCount
1313
case clickThroughRate

Sources/Ingestion/Models/AuthenticationType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Type of authentication. This determines the type of credentials required in the &#x60;input&#x60; object.
9+
/// Type of authentication. This determines the type of credentials required in the `input` object.
1010
public enum AuthenticationType: String, Codable, CaseIterable {
1111
case googleServiceAccount
1212
case basic

Sources/Ingestion/Models/DestinationType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Destination type. - &#x60;search&#x60;. Data is stored in an Algolia index. - &#x60;insights&#x60;. Data is
10-
/// recorded as user events in the Insights API.
9+
/// Destination type. - `search`. Data is stored in an Algolia index. - `insights`. Data is recorded as user
10+
/// events in the Insights API.
1111
public enum DestinationType: String, Codable, CaseIterable {
1212
case search
1313
case insights

Sources/Ingestion/Models/OnDemandTriggerType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Task is run manually, with the &#x60;/run&#x60; endpoint.
9+
/// Task is run manually, with the `/run` endpoint.
1010
public enum OnDemandTriggerType: String, Codable, CaseIterable {
1111
case onDemand
1212
}

Sources/Ingestion/Models/RunReasonCode.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// A code for the task run&#39;s outcome. A readable description of the code is included in the &#x60;reason&#x60;
10-
/// response property.
9+
/// A code for the task run's outcome. A readable description of the code is included in the `reason` response property.
1110
public enum RunReasonCode: String, Codable, CaseIterable {
1211
case `internal`
1312
case critical

Sources/Ingestion/Models/ShopifyInput.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Represents the required elements of the task input when using a &#x60;shopify&#x60; source.
9+
/// Represents the required elements of the task input when using a `shopify` source.
1010
public struct ShopifyInput: Codable, JSONEncodable {
1111
public var metafields: [ShopifyMetafield]
1212
public var market: ShopifyMarket

Sources/Ingestion/Models/StreamingInput.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Input for a &#x60;streaming&#x60; task whose source is of type &#x60;ga4BigqueryExport&#x60; and for which extracted
10-
/// data is continuously streamed.
9+
/// Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is
10+
/// continuously streamed.
1111
public struct StreamingInput: Codable, JSONEncodable {
1212
public var mapping: MappingInput
1313

Sources/Ingestion/Models/TaskCreateV1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// API request body for creating a task using the V1 shape, please use methods and types that don&#39;t contain the V1
9+
/// API request body for creating a task using the V1 shape, please use methods and types that don't contain the V1
1010
/// suffix.
1111
@available(*, deprecated, message: "This schema is deprecated.")
1212
public struct TaskCreateV1: Codable, JSONEncodable {

Sources/Ingestion/Models/TaskUpdateV1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// API request body for updating a task using the V1 shape, please use methods and types that don&#39;t contain the V1
9+
/// API request body for updating a task using the V1 shape, please use methods and types that don't contain the V1
1010
/// suffix.
1111
@available(*, deprecated, message: "This schema is deprecated.")
1212
public struct TaskUpdateV1: Codable, JSONEncodable {

Sources/Ingestion/Models/TaskV1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// The V1 task object, please use methods and types that don&#39;t contain the V1 suffix.
9+
/// The V1 task object, please use methods and types that don't contain the V1 suffix.
1010
@available(*, deprecated, message: "This schema is deprecated.")
1111
public struct TaskV1: Codable, JSONEncodable {
1212
/// Universally unique identifier (UUID) of a task.

Sources/Ingestion/Models/TriggerType.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Task trigger, describing when a task should run. - &#x60;onDemand&#x60;. Manually trigger the task with the
10-
/// &#x60;/run&#x60; endpoint. - &#x60;schedule&#x60;. Regularly trigger the task on a &#x60;cron&#x60; schedule. -
11-
/// &#x60;subscription&#x60;. Trigger the task after an event is received, such as, a webhook. -
12-
/// &#x60;streaming&#x60;. Run the task continuously.
9+
/// Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run`
10+
/// endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task
11+
/// after an event is received, such as, a webhook. - `streaming`. Run the task continuously.
1312
public enum TriggerType: String, Codable, CaseIterable {
1413
case onDemand
1514
case schedule

Sources/Insights/Models/AddedToCartObjectIDs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Foundation
77
#endif
88

99
/// Use this event to track when users add items to their shopping cart unrelated to a previous Algolia request. For
10-
/// example, if you don&#39;t use Algolia to build your category pages, use this event. To track add-to-cart events
11-
/// related to Algolia requests, use the \&quot;Added to cart object IDs after search\&quot; event.
10+
/// example, if you don't use Algolia to build your category pages, use this event. To track add-to-cart events related
11+
/// to Algolia requests, use the \"Added to cart object IDs after search\" event.
1212
public struct AddedToCartObjectIDs: Codable, JSONEncodable {
1313
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1414
/// framework.

Sources/Insights/Models/AddedToCartObjectIDsAfterSearch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Use this event to track when users add items to their shopping cart after a previous Algolia request. If you&#39;re
10-
/// building your category pages with Algolia, you&#39;ll also use this event.
9+
/// Use this event to track when users add items to their shopping cart after a previous Algolia request. If you're
10+
/// building your category pages with Algolia, you'll also use this event.
1111
public struct AddedToCartObjectIDsAfterSearch: Codable, JSONEncodable {
1212
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1313
/// framework.

Sources/Insights/Models/ClickedObjectIDs.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Use this event to track when users click items unrelated to a previous Algolia request. For example, if you
10-
/// don&#39;t use Algolia to build your category pages, use this event. To track click events related to Algolia
11-
/// requests, use the \&quot;Clicked object IDs after search\&quot; event.
9+
/// Use this event to track when users click items unrelated to a previous Algolia request. For example, if you don't
10+
/// use Algolia to build your category pages, use this event. To track click events related to Algolia requests, use
11+
/// the \"Clicked object IDs after search\" event.
1212
public struct ClickedObjectIDs: Codable, JSONEncodable {
1313
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1414
/// framework.

Sources/Insights/Models/ClickedObjectIDsAfterSearch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// Click event after an Algolia request. Use this event to track when users click items in the search results. If
10-
/// you&#39;re building your category pages with Algolia, you&#39;ll also use this event.
10+
/// you're building your category pages with Algolia, you'll also use this event.
1111
public struct ClickedObjectIDsAfterSearch: Codable, JSONEncodable {
1212
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1313
/// framework.

Sources/Insights/Models/ConvertedObjectIDs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Foundation
77
#endif
88

99
/// Use this event to track when users convert on items unrelated to a previous Algolia request. For example, if you
10-
/// don&#39;t use Algolia to build your category pages, use this event. To track conversion events related to Algolia
11-
/// requests, use the \&quot;Converted object IDs after search\&quot; event.
10+
/// don't use Algolia to build your category pages, use this event. To track conversion events related to Algolia
11+
/// requests, use the \"Converted object IDs after search\" event.
1212
public struct ConvertedObjectIDs: Codable, JSONEncodable {
1313
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1414
/// framework.

Sources/Insights/Models/ConvertedObjectIDsAfterSearch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Foundation
88

99
/// Use this event to track when users convert after a previous Algolia request. For example, a user clicks on an item
1010
/// in the search results to view the product detail page. Then, the user adds the item to their shopping cart. If
11-
/// you&#39;re building your category pages with Algolia, you&#39;ll also use this event.
11+
/// you're building your category pages with Algolia, you'll also use this event.
1212
public struct ConvertedObjectIDsAfterSearch: Codable, JSONEncodable {
1313
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1414
/// framework.

Sources/Insights/Models/Discount.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Absolute value of the discount for this product, in units of &#x60;currency&#x60;.
9+
/// Absolute value of the discount for this product, in units of `currency`.
1010
public enum Discount: Codable, JSONEncodable, AbstractEncodable {
1111
case double(Double)
1212
case string(String)

Sources/Insights/Models/InsightsValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Total monetary value of this event in units of &#x60;currency&#x60;.
9+
/// Total monetary value of this event in units of `currency`.
1010
public enum InsightsValue: Codable, JSONEncodable, AbstractEncodable {
1111
case double(Double)
1212
case string(String)

Sources/Insights/Models/Price.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Total price of a product, including any discounts, in units of &#x60;currency&#x60;.
9+
/// Total price of a product, including any discounts, in units of `currency`.
1010
public enum Price: Codable, JSONEncodable, AbstractEncodable {
1111
case double(Double)
1212
case string(String)

Sources/Insights/Models/PurchasedObjectIDs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Foundation
77
#endif
88

99
/// Use this event to track when users make a purchase unrelated to a previous Algolia request. For example, if you
10-
/// don&#39;t use Algolia to build your category pages, use this event. To track purchase events related to Algolia
11-
/// requests, use the \&quot;Purchased object IDs after search\&quot; event.
10+
/// don't use Algolia to build your category pages, use this event. To track purchase events related to Algolia
11+
/// requests, use the \"Purchased object IDs after search\" event.
1212
public struct PurchasedObjectIDs: Codable, JSONEncodable {
1313
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1414
/// framework.

Sources/Insights/Models/PurchasedObjectIDsAfterSearch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Use this event to track when users make a purchase after a previous Algolia request. If you&#39;re building your
10-
/// category pages with Algolia, you&#39;ll also use this event.
9+
/// Use this event to track when users make a purchase after a previous Algolia request. If you're building your
10+
/// category pages with Algolia, you'll also use this event.
1111
public struct PurchasedObjectIDsAfterSearch: Codable, JSONEncodable {
1212
/// Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework)
1313
/// framework.

Sources/QuerySuggestions/Models/ModelLogLevel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Type of log entry. - &#x60;SKIP&#x60;. A query is skipped because it doesn&#39;t match the conditions for
10-
/// successful inclusion. For example, when a query doesn&#39;t generate enough search results. - &#x60;INFO&#x60;. An
11-
/// informative log entry. - &#x60;ERROR&#x60;. The Query Suggestions process encountered an error.
9+
/// Type of log entry. - `SKIP`. A query is skipped because it doesn't match the conditions for successful inclusion.
10+
/// For example, when a query doesn't generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The
11+
/// Query Suggestions process encountered an error.
1212
public enum ModelLogLevel: String, Codable, CaseIterable {
1313
case skip = "SKIP"
1414
case info = "INFO"

Sources/Recommend/Models/FbtModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// Frequently bought together model. This model recommends items that have been purchased within 1 day with the item
10-
/// with the ID &#x60;objectID&#x60;.
10+
/// with the ID `objectID`.
1111
public enum FbtModel: String, Codable, CaseIterable {
1212
case boughtTogether = "bought-together"
1313
}

Sources/Recommend/Models/LookingSimilarModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Looking similar model. This model recommends items that look similar to the item with the ID &#x60;objectID&#x60;
10-
/// based on image attributes in your index.
9+
/// Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on
10+
/// image attributes in your index.
1111
public enum LookingSimilarModel: String, Codable, CaseIterable {
1212
case lookingSimilar = "looking-similar"
1313
}

Sources/Recommend/Models/RecommendAroundRadius.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Maximum radius for a search around a central location. This parameter works in combination with the
10-
/// &#x60;aroundLatLng&#x60; and &#x60;aroundLatLngViaIP&#x60; parameters. By default, the search radius is determined
11-
/// automatically from the density of hits around the central location. The search radius is small if there are many
12-
/// hits close to the central coordinates.
9+
/// Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng`
10+
/// and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of
11+
/// hits around the central location. The search radius is small if there are many hits close to the central
12+
/// coordinates.
1313
public enum RecommendAroundRadius: Codable, JSONEncodable, AbstractEncodable {
1414
case int(Int)
1515
case recommendAroundRadiusAll(RecommendAroundRadiusAll)

Sources/Recommend/Models/RecommendAroundRadiusAll.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Return all records with a valid &#x60;_geoloc&#x60; attribute. Don&#39;t filter by distance.
9+
/// Return all records with a valid `_geoloc` attribute. Don't filter by distance.
1010
public enum RecommendAroundRadiusAll: String, Codable, CaseIterable {
1111
case all
1212
}

Sources/Recommend/Models/RecommendDistinct.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import Foundation
77
#endif
88

99
/// Determines how many records of a group are included in the search results. Records with the same value for the
10-
/// &#x60;attributeForDistinct&#x60; attribute are considered a group. The &#x60;distinct&#x60; setting controls how
11-
/// many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
12-
/// The &#x60;distinct&#x60; setting is ignored if &#x60;attributeForDistinct&#x60; is not set.
10+
/// `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the
11+
/// group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
12+
/// The `distinct` setting is ignored if `attributeForDistinct` is not set.
1313
public enum RecommendDistinct: Codable, JSONEncodable, AbstractEncodable {
1414
case bool(Bool)
1515
case int(Int)

Sources/Recommend/Models/RecommendExactOnSingleWordQuery.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import Foundation
77
#endif
88

99
/// Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes)
10-
/// is computed when the search query has only one word. - &#x60;attribute&#x60;. The Exact ranking criterion is 1 if
11-
/// the query word and attribute value are the same. For example, a search for \&quot;road\&quot; will match the value
12-
/// \&quot;road\&quot;, but not \&quot;road trip\&quot;. - &#x60;none&#x60;. The Exact ranking criterion is ignored
13-
/// on single-word searches. - &#x60;word&#x60;. The Exact ranking criterion is 1 if the query word is found in the
14-
/// attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches
15-
/// will be highlighted, partial and prefix matches won&#39;t.
10+
/// is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query
11+
/// word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not
12+
/// \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact
13+
/// ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3
14+
/// characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches
15+
/// won't.
1616
public enum RecommendExactOnSingleWordQuery: String, Codable, CaseIterable {
1717
case attribute
1818
case `none`

0 commit comments

Comments
 (0)