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 90ec9b2 commit 27447b4
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 0 deletions.
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,
)
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,
)
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,
)
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,
)
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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import kotlinx.serialization.json.*
*
* @param facetOrdering
* @param redirect
* @param widgets
*/
@Serializable
public data class RenderingContent(

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

@SerialName(value = "redirect") val redirect: RedirectURL? = null,

@SerialName(value = "widgets") val widgets: Widgets? = null,
)
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,
)
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,
)
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,
)
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,
)
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,
)
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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import kotlinx.serialization.json.*
*
* @param facetOrdering
* @param redirect
* @param widgets
*/
@Serializable
public data class RenderingContent(

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

@SerialName(value = "redirect") val redirect: RedirectURL? = null,

@SerialName(value = "widgets") val widgets: Widgets? = null,
)
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,
)

0 comments on commit 27447b4

Please sign in to comment.