Skip to content

Commit 871b642

Browse files
algolia-botbengreenbankshortcuts
committed
feat(templates): use headers in js advanced perso client (#5083) (generated) [skip ci]
Co-authored-by: Ben Greenbank <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6a90357 commit 871b642

File tree

34 files changed

+100
-100
lines changed

34 files changed

+100
-100
lines changed

clients/algoliasearch-client-javascript/packages/advanced-personalization/builds/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function advancedPersonalizationClient(
5252
logger: createNullLogger(),
5353
requester: createXhrRequester(),
5454
algoliaAgents: [{ segment: 'Browser' }],
55-
authMode: 'WithinQueryParameters',
55+
authMode: 'WithinHeaders',
5656
responsesCache: createMemoryCache(),
5757
requestsCache: createMemoryCache({ serializable: false }),
5858
hostsCache: createFallbackableCache({

docs/bundled/insights-snippets.json

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

docs/snippets/csharp/src/Insights.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public async Task SnippetForInsightsClientPushEvents1()
509509
Index = "products",
510510
UserToken = "user-123456",
511511
AuthenticatedUserToken = "user-123456",
512-
Timestamp = 1751673600000L,
512+
Timestamp = 1751932800000L,
513513
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
514514
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
515515
}
@@ -522,7 +522,7 @@ public async Task SnippetForInsightsClientPushEvents1()
522522
Index = "products",
523523
UserToken = "user-123456",
524524
AuthenticatedUserToken = "user-123456",
525-
Timestamp = 1751673600000L,
525+
Timestamp = 1751932800000L,
526526
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
527527
}
528528
),

docs/snippets/dart/lib/insights.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ void snippetForpushEvents1() async {
566566
index: "products",
567567
userToken: "user-123456",
568568
authenticatedUserToken: "user-123456",
569-
timestamp: 1751673600000,
569+
timestamp: 1751932800000,
570570
objectIDs: [
571571
"9780545139700",
572572
"9780439784542",
@@ -579,7 +579,7 @@ void snippetForpushEvents1() async {
579579
index: "products",
580580
userToken: "user-123456",
581581
authenticatedUserToken: "user-123456",
582-
timestamp: 1751673600000,
582+
timestamp: 1751932800000,
583583
objectIDs: [
584584
"9780545139700",
585585
"9780439784542",

docs/snippets/go/src/insights.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/snippets/java/src/test/java/com/algolia/Insights.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void snippetForPushEvents1() throws Exception {
488488
.setIndex("products")
489489
.setUserToken("user-123456")
490490
.setAuthenticatedUserToken("user-123456")
491-
.setTimestamp(1751673600000L)
491+
.setTimestamp(1751932800000L)
492492
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
493493
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
494494
new ViewedObjectIDs()
@@ -497,7 +497,7 @@ void snippetForPushEvents1() throws Exception {
497497
.setIndex("products")
498498
.setUserToken("user-123456")
499499
.setAuthenticatedUserToken("user-123456")
500-
.setTimestamp(1751673600000L)
500+
.setTimestamp(1751932800000L)
501501
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
502502
)
503503
)

docs/snippets/javascript/src/insights.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export async function snippetForPushEvents1(): Promise<void> {
453453
index: 'products',
454454
userToken: 'user-123456',
455455
authenticatedUserToken: 'user-123456',
456-
timestamp: 1751673600000,
456+
timestamp: 1751932800000,
457457
objectIDs: ['9780545139700', '9780439784542'],
458458
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
459459
},
@@ -463,7 +463,7 @@ export async function snippetForPushEvents1(): Promise<void> {
463463
index: 'products',
464464
userToken: 'user-123456',
465465
authenticatedUserToken: 'user-123456',
466-
timestamp: 1751673600000,
466+
timestamp: 1751932800000,
467467
objectIDs: ['9780545139700', '9780439784542'],
468468
},
469469
],

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 = 1751673600000L,
536+
timestamp = 1751932800000L,
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 = 1751673600000L,
546+
timestamp = 1751932800000L,
547547
objectIDs = listOf("9780545139700", "9780439784542"),
548548
),
549549
),

docs/snippets/php/src/Insights.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function snippetForPushEvents1(): void
589589
'index' => 'products',
590590
'userToken' => 'user-123456',
591591
'authenticatedUserToken' => 'user-123456',
592-
'timestamp' => 1751673600000,
592+
'timestamp' => 1751932800000,
593593
'objectIDs' => [
594594
'9780545139700',
595595

@@ -603,7 +603,7 @@ public function snippetForPushEvents1(): void
603603
'index' => 'products',
604604
'userToken' => 'user-123456',
605605
'authenticatedUserToken' => 'user-123456',
606-
'timestamp' => 1751673600000,
606+
'timestamp' => 1751932800000,
607607
'objectIDs' => [
608608
'9780545139700',
609609

docs/snippets/python/insights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def snippet_for_push_events1():
634634
"index": "products",
635635
"userToken": "user-123456",
636636
"authenticatedUserToken": "user-123456",
637-
"timestamp": 1751673600000,
637+
"timestamp": 1751932800000,
638638
"objectIDs": [
639639
"9780545139700",
640640
"9780439784542",
@@ -647,7 +647,7 @@ def snippet_for_push_events1():
647647
"index": "products",
648648
"userToken": "user-123456",
649649
"authenticatedUserToken": "user-123456",
650-
"timestamp": 1751673600000,
650+
"timestamp": 1751932800000,
651651
"objectIDs": [
652652
"9780545139700",
653653
"9780439784542",

0 commit comments

Comments
 (0)