Skip to content

Commit

Permalink
fix(specs): correct type for banners [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3939

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent 1c2c3e0 commit b120cd2
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 44 deletions.
2 changes: 0 additions & 2 deletions packages/algoliasearch/builds/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import type {
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down Expand Up @@ -111,7 +110,6 @@ export {
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down
2 changes: 1 addition & 1 deletion packages/algoliasearch/lite/model/bannerImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
* image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;
urls?: Array<BannerImageUrl>;

title?: string;
};
10 changes: 0 additions & 10 deletions packages/algoliasearch/lite/model/banners.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/algoliasearch/lite/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 5 additions & 2 deletions packages/algoliasearch/lite/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -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<Banner>;
};
2 changes: 1 addition & 1 deletion packages/client-search/model/bannerImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
* image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;
urls?: Array<BannerImageUrl>;

title?: string;
};
10 changes: 0 additions & 10 deletions packages/client-search/model/banners.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/client-search/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 5 additions & 2 deletions packages/client-search/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -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<Banner>;
};
2 changes: 1 addition & 1 deletion packages/recommend/model/bannerImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
* image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;
urls?: Array<BannerImageUrl>;

title?: string;
};
10 changes: 0 additions & 10 deletions packages/recommend/model/banners.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/recommend/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 5 additions & 2 deletions packages/recommend/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -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<Banner>;
};

0 comments on commit b120cd2

Please sign in to comment.