Skip to content

Commit

Permalink
chore(eslint): add linter to forbid bigInt [skip-bc] (#4094) (generat…
Browse files Browse the repository at this point in the history
…ed) [skip ci]

Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Nov 12, 2024
1 parent 28dacd6 commit 53c6e8a
Show file tree
Hide file tree
Showing 21 changed files with 66 additions and 66 deletions.
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 = 1730937600000L,
Timestamp = 1731196800000L,
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 = 1730937600000L,
Timestamp = 1731196800000L,
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 = 1730937600000L,
Timestamp = 1731196800000L,
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 = 1730937600000L,
Timestamp = 1731196800000L,
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\":1730937600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1730937600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1731196800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1731196800000,\"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 @@ -635,7 +635,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand All @@ -648,7 +648,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: [
"9780545139700",
"9780439784542",
Expand All @@ -661,7 +661,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":1730937600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1730937600000,"objectIDs":["9780545139700","9780439784542"]}]}""");
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"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(1730937600000L)
.setTimestamp(1731196800000L)
.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(1730937600000L)
.setTimestamp(1731196800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1730937600000L)
.setTimestamp(1731196800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
new ViewedObjectIDs()
Expand All @@ -729,7 +729,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
.setTimestamp(1730937600000L)
.setTimestamp(1731196800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
Expand All @@ -741,9 +741,9 @@ void pushEventsTest1() {
assertDoesNotThrow(() ->
JSONAssert.assertEquals(
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product" +
" Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1730937600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" +
" Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1731196800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" +
" Detail Page" +
" Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1730937600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
" Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1731196800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
req.body,
JSONCompareMode.STRICT
)
Expand Down
4 changes: 2 additions & 2 deletions tests/output/javascript/src/e2e/insights.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
Expand All @@ -40,7 +40,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
Expand Down
8 changes: 4 additions & 4 deletions tests/output/javascript/src/requests/insights.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
Expand All @@ -321,7 +321,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
Expand All @@ -337,7 +337,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
Expand All @@ -347,7 +347,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
timestamp: 1730937600000,
timestamp: 1731196800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1730937600000L,
timestamp = 1731196800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
),
Expand All @@ -51,7 +51,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1730937600000L,
timestamp = 1731196800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1730937600000L,
timestamp = 1731196800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
),
Expand All @@ -539,7 +539,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
timestamp = 1730937600000L,
timestamp = 1731196800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
),
),
Expand All @@ -549,7 +549,7 @@ class InsightsTest {
intercept = {
assertEquals("/1/events".toPathSegments(), it.url.pathSegments)
assertEquals(HttpMethod.parse("POST"), it.method)
assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1730937600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1730937600000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
},
)
}
Expand Down
4 changes: 2 additions & 2 deletions tests/output/php/src/e2e/InsightsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1730937600000,
'timestamp' => 1731196800000,
'objectIDs' => [
'9780545139700',

Expand All @@ -49,7 +49,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1730937600000,
'timestamp' => 1731196800000,
'objectIDs' => [
'9780545139700',

Expand Down
6 changes: 3 additions & 3 deletions tests/output/php/src/requests/InsightsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1730937600000,
'timestamp' => 1731196800000,
'objectIDs' => [
'9780545139700',

Expand All @@ -541,7 +541,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
'timestamp' => 1730937600000,
'timestamp' => 1731196800000,
'objectIDs' => [
'9780545139700',

Expand All @@ -556,7 +556,7 @@ public function testPushEvents1(): void
[
'path' => '/1/events',
'method' => 'POST',
'body' => json_decode('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1730937600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1730937600000,"objectIDs":["9780545139700","9780439784542"]}]}'),
'body' => json_decode('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1731196800000,"objectIDs":["9780545139700","9780439784542"]}]}'),
],
]);
}
Expand Down
Loading

0 comments on commit 53c6e8a

Please sign in to comment.