Skip to content

Commit fa1d55f

Browse files
algolia-botmillotp
andcommitted
fix(specs): add missing recordType collection (generated)
Co-authored-by: Pierre Millot <[email protected]>
1 parent 72a0d20 commit fa1d55f

File tree

12 files changed

+33
-8
lines changed

12 files changed

+33
-8
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/RecordType.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public enum RecordType
2828
/// Enum Variant for value: variant
2929
/// </summary>
3030
[JsonPropertyName("variant")]
31-
Variant = 2
31+
Variant = 2,
32+
33+
/// <summary>
34+
/// Enum Collection for value: collection
35+
/// </summary>
36+
[JsonPropertyName("collection")]
37+
Collection = 3
3238
}
3339

clients/algoliasearch-client-go/algolia/ingestion/model_record_type.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/RecordType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
public enum RecordType {
1111
PRODUCT("product"),
1212

13-
VARIANT("variant");
13+
VARIANT("variant"),
14+
15+
COLLECTION("collection");
1416

1517
private final String value;
1618

clients/algoliasearch-client-javascript/packages/ingestion/model/recordType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* Record type for ecommerce sources.
55
*/
6-
export type RecordType = 'product' | 'variant';
6+
export type RecordType = 'product' | 'variant' | 'collection';

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RecordType.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ public enum class RecordType(public val value: kotlin.String) {
1313
Product("product"),
1414

1515
@SerialName(value = "variant")
16-
Variant("variant");
16+
Variant("variant"),
17+
18+
@SerialName(value = "collection")
19+
Collection("collection");
1720

1821
override fun toString(): kotlin.String = value
1922
}

clients/algoliasearch-client-php/lib/Model/Ingestion/RecordType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class RecordType
2020

2121
public const VARIANT = 'variant';
2222

23+
public const COLLECTION = 'collection';
24+
2325
/**
2426
* Gets allowable values of the enum.
2527
*
@@ -30,6 +32,7 @@ public static function getAllowableEnumValues()
3032
return [
3133
self::PRODUCT,
3234
self::VARIANT,
35+
self::COLLECTION,
3336
];
3437
}
3538
}

clients/algoliasearch-client-python/algoliasearch/ingestion/models/record_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class RecordType(str, Enum):
2828

2929
VARIANT = "variant"
3030

31+
COLLECTION = "collection"
32+
3133
@classmethod
3234
def from_json(cls, json_str: str) -> Self:
3335
"""Create an instance of RecordType from a JSON string"""

clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/record_type.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ module Ingestion
1010
class RecordType
1111
PRODUCT = "product".freeze
1212
VARIANT = "variant".freeze
13+
COLLECTION = "collection".freeze
1314

1415
def self.all_vars
15-
@all_vars ||= [PRODUCT, VARIANT].freeze
16+
@all_vars ||= [PRODUCT, VARIANT, COLLECTION].freeze
1617
end
1718

1819
# Builds the enum from string

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/RecordType.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ object RecordType {
3232
case object Variant extends RecordType {
3333
override def toString = "variant"
3434
}
35-
val values: Seq[RecordType] = Seq(Product, Variant)
35+
case object Collection extends RecordType {
36+
override def toString = "collection"
37+
}
38+
val values: Seq[RecordType] = Seq(Product, Variant, Collection)
3639

3740
def withName(name: String): RecordType = RecordType.values
3841
.find(_.toString == name)

clients/algoliasearch-client-swift/Sources/Ingestion/Models/RecordType.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Foundation
1010
public enum RecordType: String, Codable, CaseIterable {
1111
case product
1212
case variant
13+
case collection
1314
}
1415

1516
extension RecordType: Hashable {}

docs/bundled/ingestion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15948,6 +15948,7 @@ components:
1594815948
enum:
1594915949
- product
1595015950
- variant
15951+
- collection
1595115952
AttributesToExclude:
1595215953
type: array
1595315954
description: >

specs/bundled/ingestion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,6 +2605,7 @@ components:
26052605
enum:
26062606
- product
26072607
- variant
2608+
- collection
26082609
AttributesToExclude:
26092610
type: array
26102611
description: >

0 commit comments

Comments
 (0)