Skip to content

Commit ee5a159

Browse files
algolia-botFluf22
andcommitted
chore(deps): update Kotlin version to 2.2.10 (generated)
Co-authored-by: Thomas Raffray <[email protected]>
1 parent 3d1e78f commit ee5a159

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

docs/bundled/insights-snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
},
270270
"pushEvents": {
271271
"pushEvents": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n ClickedObjectIDsAfterSearch(\n eventType = ClickEvent.entries.first { it.value == \"click\" },\n eventName = \"Product Clicked\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1641290601962L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n queryID = \"43b15df305339e827f0ac0bdc5ebcaa7\",\n positions = listOf(7, 6),\n ),\n ),\n ),\n)",
272-
"Many events type": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n ConvertedObjectIDsAfterSearch(\n eventType = ConversionEvent.entries.first { it.value == \"conversion\" },\n eventName = \"Product Purchased\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1755043200000L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n queryID = \"43b15df305339e827f0ac0bdc5ebcaa7\",\n ),\n ViewedObjectIDs(\n eventType = ViewEvent.entries.first { it.value == \"view\" },\n eventName = \"Product Detail Page Viewed\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1755043200000L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n ),\n ),\n ),\n)",
272+
"Many events type": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n ConvertedObjectIDsAfterSearch(\n eventType = ConversionEvent.entries.first { it.value == \"conversion\" },\n eventName = \"Product Purchased\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1756080000000L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n queryID = \"43b15df305339e827f0ac0bdc5ebcaa7\",\n ),\n ViewedObjectIDs(\n eventType = ViewEvent.entries.first { it.value == \"view\" },\n eventName = \"Product Detail Page Viewed\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1756080000000L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n ),\n ),\n ),\n)",
273273
"ConvertedObjectIDsAfterSearch": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n ConvertedObjectIDsAfterSearch(\n eventType = ConversionEvent.entries.first { it.value == \"conversion\" },\n eventName = \"Product Purchased\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1641290601962L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n queryID = \"43b15df305339e827f0ac0bdc5ebcaa7\",\n ),\n ),\n ),\n)",
274274
"ViewedObjectIDs": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n ViewedObjectIDs(\n eventType = ViewEvent.entries.first { it.value == \"view\" },\n eventName = \"Product Detail Page Viewed\",\n index = \"products\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1641290601962L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n ),\n ),\n ),\n)",
275275
"AddedToCartObjectIDs": "var response = client.pushEvents(\n insightsEvents = InsightsEvents(\n events = listOf(\n AddedToCartObjectIDsAfterSearch(\n eventType = ConversionEvent.entries.first { it.value == \"conversion\" },\n eventSubtype = AddToCartEvent.entries.first { it.value == \"addToCart\" },\n eventName = \"Product Added To Cart\",\n index = \"products\",\n queryID = \"43b15df305339e827f0ac0bdc5ebcaa7\",\n userToken = \"user-123456\",\n authenticatedUserToken = \"user-123456\",\n timestamp = 1641290601962L,\n objectIDs = listOf(\"9780545139700\", \"9780439784542\"),\n objectData = listOf(\n ObjectDataAfterSearch(\n price = Price.of(19.99),\n quantity = 10,\n discount = Discount.of(2.5),\n ),\n ObjectDataAfterSearch(\n price = Price.of(\"8$\"),\n quantity = 7,\n discount = Discount.of(\"30%\"),\n ),\n ),\n currency = \"USD\",\n ),\n ),\n ),\n)"

docs/guides/kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import com.diffplug.gradle.spotless.SpotlessExtension
22

33
plugins {
4-
kotlin("jvm") version "2.0.21"
5-
kotlin("plugin.serialization") version "2.0.21"
4+
kotlin("jvm") version "2.2.10"
5+
kotlin("plugin.serialization") version "2.2.10"
66
alias(libs.plugins.spotless)
77
}
88

docs/guides/kotlin/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlin = "2.0.21"
2+
kotlin = "2.2.10"
33
coroutines = "1.7.3"
44
serialization = "1.5.0"
55
ktor = "3.0.0"

docs/snippets/kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import com.diffplug.gradle.spotless.SpotlessExtension
22

33
plugins {
4-
kotlin("jvm") version "2.0.21"
5-
kotlin("plugin.serialization") version "2.0.21"
4+
kotlin("jvm") version "2.2.10"
5+
kotlin("plugin.serialization") version "2.2.10"
66
alias(libs.plugins.spotless)
77
}
88

docs/snippets/kotlin/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlin = "2.0.21"
2+
kotlin = "2.2.10"
33
coroutines = "1.7.3"
44
serialization = "1.5.0"
55
ktor = "3.0.0"

docs/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Insights.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class SnippetInsightsClient {
533533
index = "products",
534534
userToken = "user-123456",
535535
authenticatedUserToken = "user-123456",
536-
timestamp = 1755043200000L,
536+
timestamp = 1756080000000L,
537537
objectIDs = listOf("9780545139700", "9780439784542"),
538538
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
539539
),
@@ -543,7 +543,7 @@ class SnippetInsightsClient {
543543
index = "products",
544544
userToken = "user-123456",
545545
authenticatedUserToken = "user-123456",
546-
timestamp = 1755043200000L,
546+
timestamp = 1756080000000L,
547547
objectIDs = listOf("9780545139700", "9780439784542"),
548548
),
549549
),

tests/output/kotlin/src/commonTest/kotlin/com/algolia/e2e/InsightsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class InsightsTest {
4141
index = "products",
4242
userToken = "user-123456",
4343
authenticatedUserToken = "user-123456",
44-
timestamp = 1755043200000L,
44+
timestamp = 1756080000000L,
4545
objectIDs = listOf("9780545139700", "9780439784542"),
4646
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
4747
),
@@ -51,7 +51,7 @@ class InsightsTest {
5151
index = "products",
5252
userToken = "user-123456",
5353
authenticatedUserToken = "user-123456",
54-
timestamp = 1755043200000L,
54+
timestamp = 1756080000000L,
5555
objectIDs = listOf("9780545139700", "9780439784542"),
5656
),
5757
),

tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class InsightsTest {
529529
index = "products",
530530
userToken = "user-123456",
531531
authenticatedUserToken = "user-123456",
532-
timestamp = 1755043200000L,
532+
timestamp = 1756080000000L,
533533
objectIDs = listOf("9780545139700", "9780439784542"),
534534
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
535535
),
@@ -539,7 +539,7 @@ class InsightsTest {
539539
index = "products",
540540
userToken = "user-123456",
541541
authenticatedUserToken = "user-123456",
542-
timestamp = 1755043200000L,
542+
timestamp = 1756080000000L,
543543
objectIDs = listOf("9780545139700", "9780439784542"),
544544
),
545545
),
@@ -549,7 +549,7 @@ class InsightsTest {
549549
intercept = {
550550
assertEquals("/1/events".toPathSegments(), it.url.pathSegments)
551551
assertEquals(HttpMethod.parse("POST"), it.method)
552-
assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1755043200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1755043200000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
552+
assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1756080000000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1756080000000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
553553
},
554554
)
555555
}

0 commit comments

Comments
 (0)