-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add support for widgets / banners in search for the csha…
…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
1 parent
90ec9b2
commit 27447b4
Showing
14 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
client/src/commonMain/kotlin/com/algolia/client/model/recommend/Banner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* a search banner with image and url. | ||
* | ||
* @param image | ||
* @param link | ||
*/ | ||
@Serializable | ||
public data class Banner( | ||
|
||
@SerialName(value = "image") val image: BannerImage? = null, | ||
|
||
@SerialName(value = "link") val link: BannerLink? = null, | ||
) |
19 changes: 19 additions & 0 deletions
19
client/src/commonMain/kotlin/com/algolia/client/model/recommend/BannerImage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* image of a search banner. | ||
* | ||
* @param urls | ||
* @param title | ||
*/ | ||
@Serializable | ||
public data class BannerImage( | ||
|
||
@SerialName(value = "urls") val urls: BannerImageUrl? = null, | ||
|
||
@SerialName(value = "title") val title: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/recommend/BannerImageUrl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* url for a search banner image. | ||
* | ||
* @param url | ||
*/ | ||
@Serializable | ||
public data class BannerImageUrl( | ||
|
||
@SerialName(value = "url") val url: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/recommend/BannerLink.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* link for a banner defined in merchandising studio. | ||
* | ||
* @param url | ||
*/ | ||
@Serializable | ||
public data class BannerLink( | ||
|
||
@SerialName(value = "url") val url: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/recommend/Banners.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* banners defined in the merchandising studio for the given search. | ||
* | ||
* @param banners | ||
*/ | ||
@Serializable | ||
public data class Banners( | ||
|
||
@SerialName(value = "banners") val banners: Banner? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/recommend/Widgets.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* widgets returned from any rules that are applied to the current search. | ||
* | ||
* @param banners | ||
*/ | ||
@Serializable | ||
public data class Widgets( | ||
|
||
@SerialName(value = "banners") val banners: Banners? = null, | ||
) |
19 changes: 19 additions & 0 deletions
19
client/src/commonMain/kotlin/com/algolia/client/model/search/Banner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* a search banner with image and url. | ||
* | ||
* @param image | ||
* @param link | ||
*/ | ||
@Serializable | ||
public data class Banner( | ||
|
||
@SerialName(value = "image") val image: BannerImage? = null, | ||
|
||
@SerialName(value = "link") val link: BannerLink? = null, | ||
) |
19 changes: 19 additions & 0 deletions
19
client/src/commonMain/kotlin/com/algolia/client/model/search/BannerImage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* image of a search banner. | ||
* | ||
* @param urls | ||
* @param title | ||
*/ | ||
@Serializable | ||
public data class BannerImage( | ||
|
||
@SerialName(value = "urls") val urls: BannerImageUrl? = null, | ||
|
||
@SerialName(value = "title") val title: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/search/BannerImageUrl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* url for a search banner image. | ||
* | ||
* @param url | ||
*/ | ||
@Serializable | ||
public data class BannerImageUrl( | ||
|
||
@SerialName(value = "url") val url: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/search/BannerLink.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* link for a banner defined in merchandising studio. | ||
* | ||
* @param url | ||
*/ | ||
@Serializable | ||
public data class BannerLink( | ||
|
||
@SerialName(value = "url") val url: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/search/Banners.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* banners defined in the merchandising studio for the given search. | ||
* | ||
* @param banners | ||
*/ | ||
@Serializable | ||
public data class Banners( | ||
|
||
@SerialName(value = "banners") val banners: Banner? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/search/Widgets.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.search | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* widgets returned from any rules that are applied to the current search. | ||
* | ||
* @param banners | ||
*/ | ||
@Serializable | ||
public data class Widgets( | ||
|
||
@SerialName(value = "banners") val banners: Banners? = null, | ||
) |