Skip to content

Commit d1a192d

Browse files
algolia-botKalmar99Jonas Kalmar Rønningmillotp
committed
feat(specs): add support for widgets / banners in search for the csharp client (generated)
algolia/api-clients-automation#3870 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Jonas <[email protected]> Co-authored-by: Jonas Kalmar Rønning <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 8805c6d commit d1a192d

25 files changed

+222
-0
lines changed

packages/algoliasearch/builds/models.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ import type {
1212
AroundRadiusAll,
1313
AutomaticFacetFilter,
1414
AutomaticFacetFilters,
15+
Banner,
16+
BannerImage,
17+
BannerImageUrl,
18+
BannerLink,
19+
Banners,
1520
BaseIndexSettings,
1621
BaseSearchParams,
1722
BaseSearchParamsWithoutQuery,
@@ -78,6 +83,7 @@ import type {
7883
TypoTolerance,
7984
TypoToleranceEnum,
8085
Value,
86+
Widgets,
8187
} from '@algolia/client-search';
8288
import { apiClientVersion } from '@algolia/client-search';
8389

@@ -101,6 +107,11 @@ export {
101107
AroundRadiusAll,
102108
AutomaticFacetFilter,
103109
AutomaticFacetFilters,
110+
Banner,
111+
BannerImage,
112+
BannerImageUrl,
113+
BannerLink,
114+
Banners,
104115
BaseIndexSettings,
105116
BaseSearchParams,
106117
BaseSearchParamsWithoutQuery,
@@ -168,6 +179,7 @@ export {
168179
TypoTolerance,
169180
TypoToleranceEnum,
170181
Value,
182+
Widgets,
171183
};
172184

173185
/**
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// 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.
2+
3+
import type { BannerImage } from './bannerImage';
4+
import type { BannerLink } from './bannerLink';
5+
6+
/**
7+
* A search banner with image and url.
8+
*/
9+
export type Banner = {
10+
image?: BannerImage;
11+
12+
link?: BannerLink;
13+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// 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.
2+
3+
import type { BannerImageUrl } from './bannerImageUrl';
4+
5+
/**
6+
* Image of a search banner.
7+
*/
8+
export type BannerImage = {
9+
urls?: BannerImageUrl;
10+
11+
title?: string;
12+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// 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.
2+
3+
/**
4+
* Url for a search banner image.
5+
*/
6+
export type BannerImageUrl = {
7+
url?: string;
8+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// 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.
2+
3+
/**
4+
* Link for a banner defined in merchandising studio.
5+
*/
6+
export type BannerLink = {
7+
url?: string;
8+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// 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.
2+
3+
import type { Banner } from './banner';
4+
5+
/**
6+
* Banners defined in the merchandising studio for the given search.
7+
*/
8+
export type Banners = {
9+
banners?: Banner;
10+
};

packages/algoliasearch/lite/model/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export * from './aroundRadius';
99
export * from './aroundRadiusAll';
1010
export * from './automaticFacetFilter';
1111
export * from './automaticFacetFilters';
12+
export * from './banner';
13+
export * from './bannerImage';
14+
export * from './bannerImageUrl';
15+
export * from './bannerLink';
16+
export * from './banners';
1217
export * from './baseGetApiKeyResponse';
1318
export * from './baseIndexSettings';
1419
export * from './baseRecommendIndexSettings';
@@ -119,5 +124,6 @@ export * from './trendingItemsQuery';
119124
export * from './typoTolerance';
120125
export * from './typoToleranceEnum';
121126
export * from './value';
127+
export * from './widgets';
122128
export * from './withPrimary';
123129
export * from './clientMethodProps';

packages/algoliasearch/lite/model/renderingContent.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import type { FacetOrdering } from './facetOrdering';
44
import type { RedirectURL } from './redirectURL';
5+
import type { Widgets } from './widgets';
56

67
/**
78
* Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as, the order of facet names and values without changing your frontend code.
@@ -10,4 +11,6 @@ export type RenderingContent = {
1011
facetOrdering?: FacetOrdering;
1112

1213
redirect?: RedirectURL;
14+
15+
widgets?: Widgets;
1316
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// 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.
2+
3+
import type { Banners } from './banners';
4+
5+
/**
6+
* Widgets returned from any rules that are applied to the current search.
7+
*/
8+
export type Widgets = {
9+
banners?: Banners;
10+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// 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.
2+
3+
import type { BannerImage } from './bannerImage';
4+
import type { BannerLink } from './bannerLink';
5+
6+
/**
7+
* A search banner with image and url.
8+
*/
9+
export type Banner = {
10+
image?: BannerImage;
11+
12+
link?: BannerLink;
13+
};

0 commit comments

Comments
 (0)