Skip to content

Commit b120cd2

Browse files
committed
fix(specs): correct type for banners [skip-bc] (generated)
algolia/api-clients-automation#3939 Co-authored-by: algolia-bot <[email protected]>
1 parent 1c2c3e0 commit b120cd2

File tree

13 files changed

+18
-44
lines changed

13 files changed

+18
-44
lines changed

packages/algoliasearch/builds/models.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import type {
1616
BannerImage,
1717
BannerImageUrl,
1818
BannerLink,
19-
Banners,
2019
BaseIndexSettings,
2120
BaseSearchParams,
2221
BaseSearchParamsWithoutQuery,
@@ -111,7 +110,6 @@ export {
111110
BannerImage,
112111
BannerImageUrl,
113112
BannerLink,
114-
Banners,
115113
BaseIndexSettings,
116114
BaseSearchParams,
117115
BaseSearchParamsWithoutQuery,

packages/algoliasearch/lite/model/bannerImage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
66
* image of a search banner.
77
*/
88
export type BannerImage = {
9-
urls?: BannerImageUrl;
9+
urls?: Array<BannerImageUrl>;
1010

1111
title?: string;
1212
};

packages/algoliasearch/lite/model/banners.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/algoliasearch/lite/model/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export * from './banner';
1313
export * from './bannerImage';
1414
export * from './bannerImageUrl';
1515
export * from './bannerLink';
16-
export * from './banners';
1716
export * from './baseGetApiKeyResponse';
1817
export * from './baseIndexSettings';
1918
export * from './baseRecommendIndexSettings';
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// 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.
22

3-
import type { Banners } from './banners';
3+
import type { Banner } from './banner';
44

55
/**
66
* widgets returned from any rules that are applied to the current search.
77
*/
88
export type Widgets = {
9-
banners?: Banners;
9+
/**
10+
* banners defined in the merchandising studio for the given search.
11+
*/
12+
banners?: Array<Banner>;
1013
};

packages/client-search/model/bannerImage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
66
* image of a search banner.
77
*/
88
export type BannerImage = {
9-
urls?: BannerImageUrl;
9+
urls?: Array<BannerImageUrl>;
1010

1111
title?: string;
1212
};

packages/client-search/model/banners.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/client-search/model/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export * from './banner';
1919
export * from './bannerImage';
2020
export * from './bannerImageUrl';
2121
export * from './bannerLink';
22-
export * from './banners';
2322
export * from './baseGetApiKeyResponse';
2423
export * from './baseIndexSettings';
2524
export * from './baseSearchParams';
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// 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.
22

3-
import type { Banners } from './banners';
3+
import type { Banner } from './banner';
44

55
/**
66
* widgets returned from any rules that are applied to the current search.
77
*/
88
export type Widgets = {
9-
banners?: Banners;
9+
/**
10+
* banners defined in the merchandising studio for the given search.
11+
*/
12+
banners?: Array<Banner>;
1013
};

packages/recommend/model/bannerImage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { BannerImageUrl } from './bannerImageUrl';
66
* image of a search banner.
77
*/
88
export type BannerImage = {
9-
urls?: BannerImageUrl;
9+
urls?: Array<BannerImageUrl>;
1010

1111
title?: string;
1212
};

packages/recommend/model/banners.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/recommend/model/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export * from './banner';
1010
export * from './bannerImage';
1111
export * from './bannerImageUrl';
1212
export * from './bannerLink';
13-
export * from './banners';
1413
export * from './baseIndexSettings';
1514
export * from './baseRecommendIndexSettings';
1615
export * from './baseRecommendRequest';

packages/recommend/model/widgets.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// 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.
22

3-
import type { Banners } from './banners';
3+
import type { Banner } from './banner';
44

55
/**
66
* widgets returned from any rules that are applied to the current search.
77
*/
88
export type Widgets = {
9-
banners?: Banners;
9+
/**
10+
* banners defined in the merchandising studio for the given search.
11+
*/
12+
banners?: Array<Banner>;
1013
};

0 commit comments

Comments
 (0)