Skip to content

Commit

Permalink
feat(specs): add support for widgets / banners in search for the csha…
Browse files Browse the repository at this point in the history
…rp client (generated)

algolia/api-clients-automation#3870

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Jonas <42573917+Kalmar99@users.noreply.github.com>
Co-authored-by: Jonas Kalmar Rønning <jonaskalmar.ronning@komplett.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
4 people committed Oct 6, 2024
1 parent 8805c6d commit d1a192d
Show file tree
Hide file tree
Showing 25 changed files with 222 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/algoliasearch/builds/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import type {
AroundRadiusAll,
AutomaticFacetFilter,
AutomaticFacetFilters,
Banner,
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down Expand Up @@ -78,6 +83,7 @@ import type {
TypoTolerance,
TypoToleranceEnum,
Value,
Widgets,
} from '@algolia/client-search';
import { apiClientVersion } from '@algolia/client-search';

Expand All @@ -101,6 +107,11 @@ export {
AroundRadiusAll,
AutomaticFacetFilter,
AutomaticFacetFilters,
Banner,
BannerImage,
BannerImageUrl,
BannerLink,
Banners,
BaseIndexSettings,
BaseSearchParams,
BaseSearchParamsWithoutQuery,
Expand Down Expand Up @@ -168,6 +179,7 @@ export {
TypoTolerance,
TypoToleranceEnum,
Value,
Widgets,
};

/**
Expand Down
13 changes: 13 additions & 0 deletions packages/algoliasearch/lite/model/banner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +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 { BannerImage } from './bannerImage';
import type { BannerLink } from './bannerLink';

/**
* A search banner with image and url.
*/
export type Banner = {
image?: BannerImage;

link?: BannerLink;
};
12 changes: 12 additions & 0 deletions packages/algoliasearch/lite/model/bannerImage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 { BannerImageUrl } from './bannerImageUrl';

/**
* Image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;

title?: string;
};
8 changes: 8 additions & 0 deletions packages/algoliasearch/lite/model/bannerImageUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Url for a search banner image.
*/
export type BannerImageUrl = {
url?: string;
};
8 changes: 8 additions & 0 deletions packages/algoliasearch/lite/model/bannerLink.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Link for a banner defined in merchandising studio.
*/
export type BannerLink = {
url?: string;
};
10 changes: 10 additions & 0 deletions packages/algoliasearch/lite/model/banners.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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;
};
6 changes: 6 additions & 0 deletions packages/algoliasearch/lite/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export * from './aroundRadius';
export * from './aroundRadiusAll';
export * from './automaticFacetFilter';
export * from './automaticFacetFilters';
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 Expand Up @@ -119,5 +124,6 @@ export * from './trendingItemsQuery';
export * from './typoTolerance';
export * from './typoToleranceEnum';
export * from './value';
export * from './widgets';
export * from './withPrimary';
export * from './clientMethodProps';
3 changes: 3 additions & 0 deletions packages/algoliasearch/lite/model/renderingContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import type { FacetOrdering } from './facetOrdering';
import type { RedirectURL } from './redirectURL';
import type { Widgets } from './widgets';

/**
* 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.
Expand All @@ -10,4 +11,6 @@ export type RenderingContent = {
facetOrdering?: FacetOrdering;

redirect?: RedirectURL;

widgets?: Widgets;
};
10 changes: 10 additions & 0 deletions packages/algoliasearch/lite/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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';

/**
* Widgets returned from any rules that are applied to the current search.
*/
export type Widgets = {
banners?: Banners;
};
13 changes: 13 additions & 0 deletions packages/client-search/model/banner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +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 { BannerImage } from './bannerImage';
import type { BannerLink } from './bannerLink';

/**
* A search banner with image and url.
*/
export type Banner = {
image?: BannerImage;

link?: BannerLink;
};
12 changes: 12 additions & 0 deletions packages/client-search/model/bannerImage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 { BannerImageUrl } from './bannerImageUrl';

/**
* Image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;

title?: string;
};
8 changes: 8 additions & 0 deletions packages/client-search/model/bannerImageUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Url for a search banner image.
*/
export type BannerImageUrl = {
url?: string;
};
8 changes: 8 additions & 0 deletions packages/client-search/model/bannerLink.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Link for a banner defined in merchandising studio.
*/
export type BannerLink = {
url?: string;
};
10 changes: 10 additions & 0 deletions packages/client-search/model/banners.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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;
};
6 changes: 6 additions & 0 deletions packages/client-search/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export * from './assignUserIdParams';
export * from './attributeToUpdate';
export * from './automaticFacetFilter';
export * from './automaticFacetFilters';
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 Expand Up @@ -173,5 +178,6 @@ export * from './userHighlightResult';
export * from './userHit';
export * from './userId';
export * from './value';
export * from './widgets';
export * from './withPrimary';
export * from './clientMethodProps';
3 changes: 3 additions & 0 deletions packages/client-search/model/renderingContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import type { FacetOrdering } from './facetOrdering';
import type { RedirectURL } from './redirectURL';
import type { Widgets } from './widgets';

/**
* 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.
Expand All @@ -10,4 +11,6 @@ export type RenderingContent = {
facetOrdering?: FacetOrdering;

redirect?: RedirectURL;

widgets?: Widgets;
};
10 changes: 10 additions & 0 deletions packages/client-search/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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';

/**
* Widgets returned from any rules that are applied to the current search.
*/
export type Widgets = {
banners?: Banners;
};
13 changes: 13 additions & 0 deletions packages/recommend/model/banner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +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 { BannerImage } from './bannerImage';
import type { BannerLink } from './bannerLink';

/**
* A search banner with image and url.
*/
export type Banner = {
image?: BannerImage;

link?: BannerLink;
};
12 changes: 12 additions & 0 deletions packages/recommend/model/bannerImage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 { BannerImageUrl } from './bannerImageUrl';

/**
* Image of a search banner.
*/
export type BannerImage = {
urls?: BannerImageUrl;

title?: string;
};
8 changes: 8 additions & 0 deletions packages/recommend/model/bannerImageUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Url for a search banner image.
*/
export type BannerImageUrl = {
url?: string;
};
8 changes: 8 additions & 0 deletions packages/recommend/model/bannerLink.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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.

/**
* Link for a banner defined in merchandising studio.
*/
export type BannerLink = {
url?: string;
};
10 changes: 10 additions & 0 deletions packages/recommend/model/banners.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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;
};
6 changes: 6 additions & 0 deletions packages/recommend/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export * from './aroundPrecision';
export * from './aroundRadius';
export * from './aroundRadiusAll';
export * from './autoFacetFilter';
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 Expand Up @@ -93,4 +98,5 @@ export * from './trendingItemsQuery';
export * from './typoTolerance';
export * from './typoToleranceEnum';
export * from './value';
export * from './widgets';
export * from './clientMethodProps';
3 changes: 3 additions & 0 deletions packages/recommend/model/renderingContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import type { FacetOrdering } from './facetOrdering';
import type { RedirectURL } from './redirectURL';
import type { Widgets } from './widgets';

/**
* 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.
Expand All @@ -10,4 +11,6 @@ export type RenderingContent = {
facetOrdering?: FacetOrdering;

redirect?: RedirectURL;

widgets?: Widgets;
};
10 changes: 10 additions & 0 deletions packages/recommend/model/widgets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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';

/**
* Widgets returned from any rules that are applied to the current search.
*/
export type Widgets = {
banners?: Banners;
};

0 comments on commit d1a192d

Please sign in to comment.