Skip to content

Commit

Permalink
chore(scripts): set repository for gh commands (#4458) (generated) [s…
Browse files Browse the repository at this point in the history
…kip ci]

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Feb 17, 2025
1 parent 4108277 commit 9036889
Show file tree
Hide file tree
Showing 33 changed files with 99 additions and 99 deletions.
22 changes: 11 additions & 11 deletions docs/bundled/insights-snippets.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/snippets/csharp/src/Insights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public async Task SnippetForInsightsClientPushEvents1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
}
Expand All @@ -522,7 +522,7 @@ public async Task SnippetForInsightsClientPushEvents1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
}
),
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/dart/lib/insights.dart
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void snippetForpushEvents1() async {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand All @@ -579,7 +579,7 @@ void snippetForpushEvents1() async {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/go/src/insights.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/snippets/java/src/test/java/com/algolia/Insights.java
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void snippetForPushEvents1() throws Exception {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1739491200000L)
.setTimestamp(1739750400000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
new ViewedObjectIDs()
Expand All @@ -499,7 +499,7 @@ void snippetForPushEvents1() throws Exception {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1739491200000L)
.setTimestamp(1739750400000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/javascript/src/insights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export async function snippetForPushEvents1(): Promise<void> {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
Expand All @@ -463,7 +463,7 @@ export async function snippetForPushEvents1(): Promise<void> {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class SnippetInsightsClient {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1739491200000L,
timestamp = 1739750400000L,
objectIDs = listOf("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
),
Expand All @@ -543,7 +543,7 @@ class SnippetInsightsClient {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1739491200000L,
timestamp = 1739750400000L,
objectIDs = listOf("9780545139700", "9780439784542"),
),
),
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/php/src/Insights.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public function snippetForPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1739491200000,
'timestamp' => 1739750400000,
'objectIDs' => [
'9780545139700',

Expand All @@ -603,7 +603,7 @@ public function snippetForPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1739491200000,
'timestamp' => 1739750400000,
'objectIDs' => [
'9780545139700',

Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/python/insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def snippet_for_push_events1():
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
"timestamp": 1739491200000,
"timestamp": 1739750400000,
"objectIDs": [
"9780545139700",
"9780439784542",
Expand All @@ -647,7 +647,7 @@ def snippet_for_push_events1():
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
"timestamp": 1739491200000,
"timestamp": 1739750400000,
"objectIDs": [
"9780545139700",
"9780439784542",
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/ruby/insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def snippet_for_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -497,7 +497,7 @@ def snippet_for_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"]
)
]
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/scala/src/main/scala/Insights.scala
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ class SnippetInsightsClient {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1739491200000L),
timestamp = Some(1739750400000L),
objectIDs = Seq("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -630,7 +630,7 @@ class SnippetInsightsClient {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1739491200000L),
timestamp = Some(1739750400000L),
objectIDs = Seq("9780545139700", "9780439784542")
)
)
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/swift/Sources/Insights.swift
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ final class InsightsClientSnippet {
queryID: "43b15df305339e827f0ac0bdc5ebcaa7",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: Int64(1_739_491_200_000)
timestamp: Int64(1_739_750_400_000)
)),
EventsItems.viewedObjectIDs(ViewedObjectIDs(
eventName: "Product Detail Page Viewed",
Expand All @@ -410,7 +410,7 @@ final class InsightsClientSnippet {
objectIDs: ["9780545139700", "9780439784542"],
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: Int64(1_739_491_200_000)
timestamp: Int64(1_739_750_400_000)
)),
]))
// >LOG
Expand Down
4 changes: 2 additions & 2 deletions tests/output/csharp/src/generated/e2e/Insights.test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task PushEventsTest1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
}
Expand All @@ -76,7 +76,7 @@ public async Task PushEventsTest1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
}
),
Expand Down
6 changes: 3 additions & 3 deletions tests/output/csharp/src/generated/requests/Insights.test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ await client.PushEventsAsync(
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
}
Expand All @@ -593,7 +593,7 @@ await client.PushEventsAsync(
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
Timestamp = 1739491200000L,
Timestamp = 1739750400000L,
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
}
),
Expand All @@ -605,7 +605,7 @@ await client.PushEventsAsync(
Assert.Equal("/1/events", req.Path);
Assert.Equal("POST", req.Method.ToString());
JsonAssert.EqualOverrideDefault(
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739491200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739491200000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739750400000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739750400000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
req.Body,
new JsonDiffConfig(false)
);
Expand Down
6 changes: 3 additions & 3 deletions tests/output/dart/test/requests/insights_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand All @@ -638,7 +638,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1739491200000,
timestamp: 1739750400000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand All @@ -651,7 +651,7 @@ void main() {
expectPath(request.path, '/1/events');
expect(request.method, 'post');
expectBody(request.body,
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1739491200000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1739491200000,"objectIDs":["9780545139700","9780439784542"]}]}""");
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1739750400000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1739750400000,"objectIDs":["9780545139700","9780439784542"]}]}""");
},
),
);
Expand Down
4 changes: 2 additions & 2 deletions tests/output/go/tests/e2e/insights_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/output/go/tests/requests/insights_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1739491200000L)
.setTimestamp(1739750400000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
new ViewedObjectIDs()
Expand All @@ -59,7 +59,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1739491200000L)
.setTimestamp(1739750400000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
Expand Down
Loading

0 comments on commit 9036889

Please sign in to comment.