Skip to content

Commit 27447b4

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 90ec9b2 commit 27447b4

File tree

14 files changed

+210
-0
lines changed

14 files changed

+210
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* a search banner with image and url.
9+
*
10+
* @param image
11+
* @param link
12+
*/
13+
@Serializable
14+
public data class Banner(
15+
16+
@SerialName(value = "image") val image: BannerImage? = null,
17+
18+
@SerialName(value = "link") val link: BannerLink? = null,
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* image of a search banner.
9+
*
10+
* @param urls
11+
* @param title
12+
*/
13+
@Serializable
14+
public data class BannerImage(
15+
16+
@SerialName(value = "urls") val urls: BannerImageUrl? = null,
17+
18+
@SerialName(value = "title") val title: String? = null,
19+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* url for a search banner image.
9+
*
10+
* @param url
11+
*/
12+
@Serializable
13+
public data class BannerImageUrl(
14+
15+
@SerialName(value = "url") val url: String? = null,
16+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* link for a banner defined in merchandising studio.
9+
*
10+
* @param url
11+
*/
12+
@Serializable
13+
public data class BannerLink(
14+
15+
@SerialName(value = "url") val url: String? = null,
16+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* banners defined in the merchandising studio for the given search.
9+
*
10+
* @param banners
11+
*/
12+
@Serializable
13+
public data class Banners(
14+
15+
@SerialName(value = "banners") val banners: Banner? = null,
16+
)

client/src/commonMain/kotlin/com/algolia/client/model/recommend/RenderingContent.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ import kotlinx.serialization.json.*
99
*
1010
* @param facetOrdering
1111
* @param redirect
12+
* @param widgets
1213
*/
1314
@Serializable
1415
public data class RenderingContent(
1516

1617
@SerialName(value = "facetOrdering") val facetOrdering: FacetOrdering? = null,
1718

1819
@SerialName(value = "redirect") val redirect: RedirectURL? = null,
20+
21+
@SerialName(value = "widgets") val widgets: Widgets? = null,
1922
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.recommend
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* widgets returned from any rules that are applied to the current search.
9+
*
10+
* @param banners
11+
*/
12+
@Serializable
13+
public data class Widgets(
14+
15+
@SerialName(value = "banners") val banners: Banners? = null,
16+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* a search banner with image and url.
9+
*
10+
* @param image
11+
* @param link
12+
*/
13+
@Serializable
14+
public data class Banner(
15+
16+
@SerialName(value = "image") val image: BannerImage? = null,
17+
18+
@SerialName(value = "link") val link: BannerLink? = null,
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* image of a search banner.
9+
*
10+
* @param urls
11+
* @param title
12+
*/
13+
@Serializable
14+
public data class BannerImage(
15+
16+
@SerialName(value = "urls") val urls: BannerImageUrl? = null,
17+
18+
@SerialName(value = "title") val title: String? = null,
19+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* url for a search banner image.
9+
*
10+
* @param url
11+
*/
12+
@Serializable
13+
public data class BannerImageUrl(
14+
15+
@SerialName(value = "url") val url: String? = null,
16+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* link for a banner defined in merchandising studio.
9+
*
10+
* @param url
11+
*/
12+
@Serializable
13+
public data class BannerLink(
14+
15+
@SerialName(value = "url") val url: String? = null,
16+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* banners defined in the merchandising studio for the given search.
9+
*
10+
* @param banners
11+
*/
12+
@Serializable
13+
public data class Banners(
14+
15+
@SerialName(value = "banners") val banners: Banner? = null,
16+
)

client/src/commonMain/kotlin/com/algolia/client/model/search/RenderingContent.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ import kotlinx.serialization.json.*
99
*
1010
* @param facetOrdering
1111
* @param redirect
12+
* @param widgets
1213
*/
1314
@Serializable
1415
public data class RenderingContent(
1516

1617
@SerialName(value = "facetOrdering") val facetOrdering: FacetOrdering? = null,
1718

1819
@SerialName(value = "redirect") val redirect: RedirectURL? = null,
20+
21+
@SerialName(value = "widgets") val widgets: Widgets? = null,
1922
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
package com.algolia.client.model.search
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* widgets returned from any rules that are applied to the current search.
9+
*
10+
* @param banners
11+
*/
12+
@Serializable
13+
public data class Widgets(
14+
15+
@SerialName(value = "banners") val banners: Banners? = null,
16+
)

0 commit comments

Comments
 (0)