Skip to content

Commit

Permalink
fix(specs): support synonyms type in camel case [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4031

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Oct 28, 2024
1 parent 9e25b6b commit 57d3aba
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions algoliasearch/ingestion/models/big_query_data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class BigQueryDataType(str, Enum):
"""
allowed enum values
"""
GA4 = "ga4"
GA_4 = "ga4"

GA360 = "ga360"
GA_360 = "ga360"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/ingestion/models/mapping_format_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MappingFormatSchema(str, Enum):
"""
allowed enum values
"""
MAPPINGKIT_SLASH_V1 = "mappingkit/v1"
MAPPINGKIT_V_1 = "mappingkit/v1"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/fbt_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FbtModel(str, Enum):
"""
allowed enum values
"""
BOUGHT_MINUS_TOGETHER = "bought-together"
BOUGHT_TOGETHER = "bought-together"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/looking_similar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LookingSimilarModel(str, Enum):
"""
allowed enum values
"""
LOOKING_MINUS_SIMILAR = "looking-similar"
LOOKING_SIMILAR = "looking-similar"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
8 changes: 4 additions & 4 deletions algoliasearch/recommend/models/recommend_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class RecommendModels(str, Enum):
"""
allowed enum values
"""
RELATED_MINUS_PRODUCTS = "related-products"
RELATED_PRODUCTS = "related-products"

BOUGHT_MINUS_TOGETHER = "bought-together"
BOUGHT_TOGETHER = "bought-together"

TRENDING_MINUS_FACETS = "trending-facets"
TRENDING_FACETS = "trending-facets"

TRENDING_MINUS_ITEMS = "trending-items"
TRENDING_ITEMS = "trending-items"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RecommendedForYouModel(str, Enum):
"""
allowed enum values
"""
RECOMMENDED_MINUS_FOR_MINUS_YOU = "recommended-for-you"
RECOMMENDED_FOR_YOU = "recommended-for-you"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/related_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RelatedModel(str, Enum):
"""
allowed enum values
"""
RELATED_MINUS_PRODUCTS = "related-products"
RELATED_PRODUCTS = "related-products"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/supported_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class SupportedLanguage(str, Enum):

PT = "pt"

PT_MINUS_BR = "pt-br"
PT_BR = "pt-br"

QU = "qu"

Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/trending_facets_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TrendingFacetsModel(str, Enum):
"""
allowed enum values
"""
TRENDING_MINUS_FACETS = "trending-facets"
TRENDING_FACETS = "trending-facets"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/trending_items_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TrendingItemsModel(str, Enum):
"""
allowed enum values
"""
TRENDING_MINUS_ITEMS = "trending-items"
TRENDING_ITEMS = "trending-items"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/search/models/supported_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class SupportedLanguage(str, Enum):

PT = "pt"

PT_MINUS_BR = "pt-br"
PT_BR = "pt-br"

QU = "qu"

Expand Down
10 changes: 8 additions & 2 deletions algoliasearch/search/models/synonym_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,18 @@ class SynonymType(str, Enum):

ONEWAYSYNONYM = "onewaysynonym"

ALTCORRECTION1 = "altcorrection1"
ALTCORRECTION_1 = "altcorrection1"

ALTCORRECTION2 = "altcorrection2"
ALTCORRECTION_2 = "altcorrection2"

PLACEHOLDER = "placeholder"

ONE_WAY_SYNONYM = "oneWaySynonym"

ALTCORRECTION1 = "altCorrection1"

ALTCORRECTION2 = "altCorrection2"

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of SynonymType from a JSON string"""
Expand Down

0 comments on commit 57d3aba

Please sign in to comment.