From b120cd206b840b5b4dbfb04c17f1ae5123487375 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 10 Oct 2024 10:47:59 +0000 Subject: [PATCH] fix(specs): correct type for banners [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/3939 Co-authored-by: algolia-bot --- packages/algoliasearch/builds/models.ts | 2 -- packages/algoliasearch/lite/model/bannerImage.ts | 2 +- packages/algoliasearch/lite/model/banners.ts | 10 ---------- packages/algoliasearch/lite/model/index.ts | 1 - packages/algoliasearch/lite/model/widgets.ts | 7 +++++-- packages/client-search/model/bannerImage.ts | 2 +- packages/client-search/model/banners.ts | 10 ---------- packages/client-search/model/index.ts | 1 - packages/client-search/model/widgets.ts | 7 +++++-- packages/recommend/model/bannerImage.ts | 2 +- packages/recommend/model/banners.ts | 10 ---------- packages/recommend/model/index.ts | 1 - packages/recommend/model/widgets.ts | 7 +++++-- 13 files changed, 18 insertions(+), 44 deletions(-) delete mode 100644 packages/algoliasearch/lite/model/banners.ts delete mode 100644 packages/client-search/model/banners.ts delete mode 100644 packages/recommend/model/banners.ts diff --git a/packages/algoliasearch/builds/models.ts b/packages/algoliasearch/builds/models.ts index f720bc95a..201e705ba 100644 --- a/packages/algoliasearch/builds/models.ts +++ b/packages/algoliasearch/builds/models.ts @@ -16,7 +16,6 @@ import type { BannerImage, BannerImageUrl, BannerLink, - Banners, BaseIndexSettings, BaseSearchParams, BaseSearchParamsWithoutQuery, @@ -111,7 +110,6 @@ export { BannerImage, BannerImageUrl, BannerLink, - Banners, BaseIndexSettings, BaseSearchParams, BaseSearchParamsWithoutQuery, diff --git a/packages/algoliasearch/lite/model/bannerImage.ts b/packages/algoliasearch/lite/model/bannerImage.ts index 72c4687fe..9be9f3878 100644 --- a/packages/algoliasearch/lite/model/bannerImage.ts +++ b/packages/algoliasearch/lite/model/bannerImage.ts @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl'; * image of a search banner. */ export type BannerImage = { - urls?: BannerImageUrl; + urls?: Array; title?: string; }; diff --git a/packages/algoliasearch/lite/model/banners.ts b/packages/algoliasearch/lite/model/banners.ts deleted file mode 100644 index eea9e5bc8..000000000 --- a/packages/algoliasearch/lite/model/banners.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -import type { Banner } from './banner'; - -/** - * banners defined in the merchandising studio for the given search. - */ -export type Banners = { - banners?: Banner; -}; diff --git a/packages/algoliasearch/lite/model/index.ts b/packages/algoliasearch/lite/model/index.ts index 09e0c1180..e67ddd63e 100644 --- a/packages/algoliasearch/lite/model/index.ts +++ b/packages/algoliasearch/lite/model/index.ts @@ -13,7 +13,6 @@ export * from './banner'; export * from './bannerImage'; export * from './bannerImageUrl'; export * from './bannerLink'; -export * from './banners'; export * from './baseGetApiKeyResponse'; export * from './baseIndexSettings'; export * from './baseRecommendIndexSettings'; diff --git a/packages/algoliasearch/lite/model/widgets.ts b/packages/algoliasearch/lite/model/widgets.ts index 788ff522e..0f50c381b 100644 --- a/packages/algoliasearch/lite/model/widgets.ts +++ b/packages/algoliasearch/lite/model/widgets.ts @@ -1,10 +1,13 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { Banners } from './banners'; +import type { Banner } from './banner'; /** * widgets returned from any rules that are applied to the current search. */ export type Widgets = { - banners?: Banners; + /** + * banners defined in the merchandising studio for the given search. + */ + banners?: Array; }; diff --git a/packages/client-search/model/bannerImage.ts b/packages/client-search/model/bannerImage.ts index 72c4687fe..9be9f3878 100644 --- a/packages/client-search/model/bannerImage.ts +++ b/packages/client-search/model/bannerImage.ts @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl'; * image of a search banner. */ export type BannerImage = { - urls?: BannerImageUrl; + urls?: Array; title?: string; }; diff --git a/packages/client-search/model/banners.ts b/packages/client-search/model/banners.ts deleted file mode 100644 index eea9e5bc8..000000000 --- a/packages/client-search/model/banners.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -import type { Banner } from './banner'; - -/** - * banners defined in the merchandising studio for the given search. - */ -export type Banners = { - banners?: Banner; -}; diff --git a/packages/client-search/model/index.ts b/packages/client-search/model/index.ts index c8de1a30d..13e821cb3 100644 --- a/packages/client-search/model/index.ts +++ b/packages/client-search/model/index.ts @@ -19,7 +19,6 @@ export * from './banner'; export * from './bannerImage'; export * from './bannerImageUrl'; export * from './bannerLink'; -export * from './banners'; export * from './baseGetApiKeyResponse'; export * from './baseIndexSettings'; export * from './baseSearchParams'; diff --git a/packages/client-search/model/widgets.ts b/packages/client-search/model/widgets.ts index 788ff522e..0f50c381b 100644 --- a/packages/client-search/model/widgets.ts +++ b/packages/client-search/model/widgets.ts @@ -1,10 +1,13 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { Banners } from './banners'; +import type { Banner } from './banner'; /** * widgets returned from any rules that are applied to the current search. */ export type Widgets = { - banners?: Banners; + /** + * banners defined in the merchandising studio for the given search. + */ + banners?: Array; }; diff --git a/packages/recommend/model/bannerImage.ts b/packages/recommend/model/bannerImage.ts index 72c4687fe..9be9f3878 100644 --- a/packages/recommend/model/bannerImage.ts +++ b/packages/recommend/model/bannerImage.ts @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl'; * image of a search banner. */ export type BannerImage = { - urls?: BannerImageUrl; + urls?: Array; title?: string; }; diff --git a/packages/recommend/model/banners.ts b/packages/recommend/model/banners.ts deleted file mode 100644 index eea9e5bc8..000000000 --- a/packages/recommend/model/banners.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -import type { Banner } from './banner'; - -/** - * banners defined in the merchandising studio for the given search. - */ -export type Banners = { - banners?: Banner; -}; diff --git a/packages/recommend/model/index.ts b/packages/recommend/model/index.ts index 577b72dd7..6dc010ab5 100644 --- a/packages/recommend/model/index.ts +++ b/packages/recommend/model/index.ts @@ -10,7 +10,6 @@ export * from './banner'; export * from './bannerImage'; export * from './bannerImageUrl'; export * from './bannerLink'; -export * from './banners'; export * from './baseIndexSettings'; export * from './baseRecommendIndexSettings'; export * from './baseRecommendRequest'; diff --git a/packages/recommend/model/widgets.ts b/packages/recommend/model/widgets.ts index 788ff522e..0f50c381b 100644 --- a/packages/recommend/model/widgets.ts +++ b/packages/recommend/model/widgets.ts @@ -1,10 +1,13 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. -import type { Banners } from './banners'; +import type { Banner } from './banner'; /** * widgets returned from any rules that are applied to the current search. */ export type Widgets = { - banners?: Banners; + /** + * banners defined in the merchandising studio for the given search. + */ + banners?: Array; };