diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs b/clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs
index 7e1d309760..ca2dc7efc3 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs
@@ -52,7 +52,7 @@ public partial interface ISearchClient
AddApiKeyResponse AddApiKey(ApiKey apiKey, RequestOptions options = null, CancellationToken cancellationToken = default);
///
- /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
///
///
/// Required API Key ACLs:
@@ -69,7 +69,7 @@ public partial interface ISearchClient
Task AddOrUpdateObjectAsync(string indexName, string objectID, object body, RequestOptions options = null, CancellationToken cancellationToken = default);
///
- /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). (Synchronous version)
+ /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). (Synchronous version)
///
///
/// Required API Key ACLs:
@@ -1448,7 +1448,7 @@ public partial interface ISearchClient
AddApiKeyResponse RestoreApiKey(string key, RequestOptions options = null, CancellationToken cancellationToken = default);
///
- /// Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ /// Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
///
///
/// Required API Key ACLs:
@@ -1464,7 +1464,7 @@ public partial interface ISearchClient
Task SaveObjectAsync(string indexName, object body, RequestOptions options = null, CancellationToken cancellationToken = default);
///
- /// Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia). (Synchronous version)
+ /// Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia). (Synchronous version)
///
///
/// Required API Key ACLs:
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart
index 942d282236..05a3ee8390 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart
@@ -128,7 +128,7 @@ final class SearchClient implements ApiClient {
);
}
- /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ /// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
///
/// Required API Key ACLs:
/// - addObject
@@ -1711,7 +1711,7 @@ final class SearchClient implements ApiClient {
);
}
- /// Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ /// Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
///
/// Required API Key ACLs:
/// - addObject
diff --git a/clients/algoliasearch-client-go/algolia/search/api_search.go b/clients/algoliasearch-client-go/algolia/search/api_search.go
index bb3c0e6157..068823a2e1 100644
--- a/clients/algoliasearch-client-go/algolia/search/api_search.go
+++ b/clients/algoliasearch-client-go/algolia/search/api_search.go
@@ -445,6 +445,7 @@ AddOrUpdateObject calls the API and returns the raw response from it.
Otherwise, a new record is added to the index.
+If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject).
To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead.
To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
@@ -505,6 +506,7 @@ AddOrUpdateObject casts the HTTP response body to a defined struct.
If a record with the specified object ID exists, the existing record is replaced.
Otherwise, a new record is added to the index.
+If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject).
To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead.
To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
@@ -6356,7 +6358,7 @@ func (c *APIClient) NewApiSaveObjectRequest(indexName string, body map[string]an
/*
SaveObject calls the API and returns the raw response from it.
- Adds a record to an index or replace it.
+ Adds a record to an index or replaces it.
- If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index.
- If a record with the specified object ID exists, the existing record is replaced.
@@ -6417,7 +6419,7 @@ func (c *APIClient) SaveObjectWithHTTPInfo(r ApiSaveObjectRequest, opts ...Reque
/*
SaveObject casts the HTTP response body to a defined struct.
-Adds a record to an index or replace it.
+Adds a record to an index or replaces it.
- If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index.
- If a record with the specified object ID exists, the existing record is replaced.
diff --git a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java
index 2b2dd032d0..a62c241f52 100644
--- a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java
+++ b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java
@@ -118,9 +118,11 @@ public CompletableFuture addApiKeyAsync(@Nonnull ApiKey apiKe
/**
* If a record with the specified object ID exists, the existing record is replaced. Otherwise, a
- * new record is added to the index. To update _some_ attributes of an existing record, use the
- * [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or
- * replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ * new record is added to the index. If you want to use auto-generated object IDs, use the
+ * [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an
+ * existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject)
+ * instead. To add, update, or replace multiple records, use the [`batch`
+ * operation](#tag/Records/operation/batch).
*
* @param indexName Name of the index on which to perform the operation. (required)
* @param objectID Unique record identifier. (required)
@@ -141,9 +143,11 @@ public UpdatedAtWithObjectIdResponse addOrUpdateObject(
/**
* If a record with the specified object ID exists, the existing record is replaced. Otherwise, a
- * new record is added to the index. To update _some_ attributes of an existing record, use the
- * [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or
- * replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ * new record is added to the index. If you want to use auto-generated object IDs, use the
+ * [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an
+ * existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject)
+ * instead. To add, update, or replace multiple records, use the [`batch`
+ * operation](#tag/Records/operation/batch).
*
* @param indexName Name of the index on which to perform the operation. (required)
* @param objectID Unique record identifier. (required)
@@ -158,10 +162,11 @@ public UpdatedAtWithObjectIdResponse addOrUpdateObject(@Nonnull String indexName
/**
* (asynchronously) If a record with the specified object ID exists, the existing record is
- * replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an
- * existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject)
- * instead. To add, update, or replace multiple records, use the [`batch`
- * operation](#tag/Records/operation/batch).
+ * replaced. Otherwise, a new record is added to the index. If you want to use auto-generated
+ * object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update
+ * _some_ attributes of an existing record, use the [`partial`
+ * operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace
+ * multiple records, use the [`batch` operation](#tag/Records/operation/batch).
*
* @param indexName Name of the index on which to perform the operation. (required)
* @param objectID Unique record identifier. (required)
@@ -193,10 +198,11 @@ public CompletableFuture addOrUpdateObjectAsync(
/**
* (asynchronously) If a record with the specified object ID exists, the existing record is
- * replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an
- * existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject)
- * instead. To add, update, or replace multiple records, use the [`batch`
- * operation](#tag/Records/operation/batch).
+ * replaced. Otherwise, a new record is added to the index. If you want to use auto-generated
+ * object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update
+ * _some_ attributes of an existing record, use the [`partial`
+ * operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace
+ * multiple records, use the [`batch` operation](#tag/Records/operation/batch).
*
* @param indexName Name of the index on which to perform the operation. (required)
* @param objectID Unique record identifier. (required)
@@ -4120,7 +4126,7 @@ public CompletableFuture restoreApiKeyAsync(@Nonnull String k
}
/**
- * Adds a record to an index or replace it. - If the record doesn't have an object ID, a new
+ * Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new
* record with an auto-generated object ID is added to your index. - If a record with the
* specified object ID exists, the existing record is replaced. - If a record with the specified
* object ID doesn't exist, a new record is added to your index. - If you add a record to an index
@@ -4143,7 +4149,7 @@ public SaveObjectResponse saveObject(@Nonnull String indexName, @Nonnull Object
}
/**
- * Adds a record to an index or replace it. - If the record doesn't have an object ID, a new
+ * Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new
* record with an auto-generated object ID is added to your index. - If a record with the
* specified object ID exists, the existing record is replaced. - If a record with the specified
* object ID doesn't exist, a new record is added to your index. - If you add a record to an index
@@ -4163,7 +4169,7 @@ public SaveObjectResponse saveObject(@Nonnull String indexName, @Nonnull Object
}
/**
- * (asynchronously) Adds a record to an index or replace it. - If the record doesn't have an
+ * (asynchronously) Adds a record to an index or replaces it. - If the record doesn't have an
* object ID, a new record with an auto-generated object ID is added to your index. - If a record
* with the specified object ID exists, the existing record is replaced. - If a record with the
* specified object ID doesn't exist, a new record is added to your index. - If you add a record
@@ -4194,7 +4200,7 @@ public CompletableFuture saveObjectAsync(
}
/**
- * (asynchronously) Adds a record to an index or replace it. - If the record doesn't have an
+ * (asynchronously) Adds a record to an index or replaces it. - If the record doesn't have an
* object ID, a new record with an auto-generated object ID is added to your index. - If a record
* with the specified object ID exists, the existing record is replaced. - If a record with the
* specified object ID doesn't exist, a new record is added to your index. - If you add a record
diff --git a/clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts b/clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts
index c985baeabf..c4dc9275e4 100644
--- a/clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts
@@ -767,7 +767,7 @@ export function createSearchClient({
},
/**
- * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
*
* Required API Key ACLs:
* - addObject
@@ -2289,7 +2289,7 @@ export function createSearchClient({
},
/**
- * Adds a record to an index or replace it. - If the record doesn\'t have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn\'t exist, a new record is added to your index. - If you add a record to an index that doesn\'t exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ * Adds a record to an index or replaces it. - If the record doesn\'t have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn\'t exist, a new record is added to your index. - If you add a record to an index that doesn\'t exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
*
* Required API Key ACLs:
* - addObject
diff --git a/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt b/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt
index e506c6838c..622cd91541 100644
--- a/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt
+++ b/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt
@@ -53,7 +53,7 @@ public class SearchClient(
}
/**
- * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
*
* Required API Key ACLs:
* - addObject
@@ -1045,7 +1045,7 @@ public class SearchClient(
}
/**
- * Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ * Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
*
* Required API Key ACLs:
* - addObject
diff --git a/clients/algoliasearch-client-php/lib/Api/SearchClient.php b/clients/algoliasearch-client-php/lib/Api/SearchClient.php
index 6fe6d974f2..9107dd9802 100644
--- a/clients/algoliasearch-client-php/lib/Api/SearchClient.php
+++ b/clients/algoliasearch-client-php/lib/Api/SearchClient.php
@@ -177,7 +177,7 @@ public function addApiKey($apiKey, $requestOptions = [])
}
/**
- * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
*
* Required API Key ACLs:
* - addObject
@@ -1987,7 +1987,7 @@ public function restoreApiKey($key, $requestOptions = [])
}
/**
- * Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ * Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
*
* Required API Key ACLs:
* - addObject
diff --git a/clients/algoliasearch-client-python/algoliasearch/search/client.py b/clients/algoliasearch-client-python/algoliasearch/search/client.py
index d80e0ddff0..328bf2c163 100644
--- a/clients/algoliasearch-client-python/algoliasearch/search/client.py
+++ b/clients/algoliasearch-client-python/algoliasearch/search/client.py
@@ -744,7 +744,7 @@ async def add_or_update_object_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
- If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
Required API Key ACLs:
- addObject
@@ -806,7 +806,7 @@ async def add_or_update_object(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> UpdatedAtWithObjectIdResponse:
"""
- If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
Required API Key ACLs:
- addObject
@@ -3899,7 +3899,7 @@ async def save_object_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
- Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
Required API Key ACLs:
- addObject
@@ -3951,7 +3951,7 @@ async def save_object(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> SaveObjectResponse:
"""
- Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
Required API Key ACLs:
- addObject
@@ -5770,7 +5770,7 @@ def add_or_update_object_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
- If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
Required API Key ACLs:
- addObject
@@ -5832,7 +5832,7 @@ def add_or_update_object(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> UpdatedAtWithObjectIdResponse:
"""
- If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
Required API Key ACLs:
- addObject
@@ -8903,7 +8903,7 @@ def save_object_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
- Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
Required API Key ACLs:
- addObject
@@ -8955,7 +8955,7 @@ def save_object(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> SaveObjectResponse:
"""
- Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
Required API Key ACLs:
- addObject
diff --git a/clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb b/clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb
index 7401ada98c..4439b9da8a 100644
--- a/clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb
+++ b/clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb
@@ -95,7 +95,7 @@ def add_api_key(api_key, request_options = {})
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
end
- # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
#
# Required API Key ACLs:
# - addObject
@@ -140,7 +140,7 @@ def add_or_update_object_with_http_info(index_name, object_id, body, request_opt
@api_client.call_api(:PUT, path, new_options)
end
- # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
+ # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
#
# Required API Key ACLs:
# - addObject
@@ -2255,7 +2255,7 @@ def restore_api_key(key, request_options = {})
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
end
- # Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ # Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
#
# Required API Key ACLs:
# - addObject
@@ -2292,7 +2292,7 @@ def save_object_with_http_info(index_name, body, request_options = {})
@api_client.call_api(:POST, path, new_options)
end
- # Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
+ # Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
#
# Required API Key ACLs:
# - addObject
diff --git a/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/api/SearchClient.scala b/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/api/SearchClient.scala
index d25c07d041..5a60ff041c 100644
--- a/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/api/SearchClient.scala
+++ b/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/api/SearchClient.scala
@@ -168,9 +168,10 @@ class SearchClient(
}
/** If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added
- * to the index. To update _some_ attributes of an existing record, use the [`partial`
- * operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use
- * the [`batch` operation](#tag/Records/operation/batch).
+ * to the index. If you want to use auto-generated object IDs, use the [`saveObject`
+ * operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the
+ * [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple
+ * records, use the [`batch` operation](#tag/Records/operation/batch).
*
* Required API Key ACLs:
* - addObject
@@ -1331,7 +1332,7 @@ class SearchClient(
execute[AddApiKeyResponse](request, requestOptions)
}
- /** Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an
+ /** Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an
* auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing
* record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index.
* \- If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of
diff --git a/clients/algoliasearch-client-swift/Sources/Search/SearchClient.swift b/clients/algoliasearch-client-swift/Sources/Search/SearchClient.swift
index 757bd68b61..b919f21666 100644
--- a/clients/algoliasearch-client-swift/Sources/Search/SearchClient.swift
+++ b/clients/algoliasearch-client-swift/Sources/Search/SearchClient.swift
@@ -103,9 +103,10 @@ open class SearchClient {
}
// If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is
- // added to the index. To update _some_ attributes of an existing record, use the [`partial`
- // operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use
- // the [`batch` operation](#tag/Records/operation/batch).
+ // added to the index. If you want to use auto-generated object IDs, use the [`saveObject`
+ // operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the
+ // [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple
+ // records, use the [`batch` operation](#tag/Records/operation/batch).
// Required API Key ACLs:
// - addObject
//
@@ -2942,7 +2943,7 @@ open class SearchClient {
return body
}
- // Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an
+ // Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an
// auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing
// record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your
// index.
diff --git a/specs/bundled/search.doc.yml b/specs/bundled/search.doc.yml
index d6936a876b..d5c3997f8b 100644
--- a/specs/bundled/search.doc.yml
+++ b/specs/bundled/search.doc.yml
@@ -2546,7 +2546,7 @@ paths:
x-acl:
- addObject
description: >
- Adds a record to an index or replace it.
+ Adds a record to an index or replaces it.
- If the record doesn't have an object ID, a new record with an
@@ -2571,7 +2571,7 @@ paths:
This operation is subject to [indexing rate
limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
- summary: Add or replace a record
+ summary: Add a new record (with auto-generated object ID)
parameters:
- $ref: '#/components/parameters/IndexName'
requestBody:
@@ -3466,6 +3466,9 @@ paths:
Otherwise, a new record is added to the index.
+ If you want to use auto-generated object IDs, use the [`saveObject`
+ operation](#tag/Records/operation/saveObject).
+
To update _some_ attributes of an existing record, use the [`partial`
operation](#tag/Records/operation/partialUpdateObject) instead.
diff --git a/specs/bundled/search.yml b/specs/bundled/search.yml
index f666cfcc11..c1416e7fc5 100644
--- a/specs/bundled/search.yml
+++ b/specs/bundled/search.yml
@@ -637,7 +637,7 @@ paths:
x-acl:
- addObject
description: >
- Adds a record to an index or replace it.
+ Adds a record to an index or replaces it.
- If the record doesn't have an object ID, a new record with an
@@ -662,7 +662,7 @@ paths:
This operation is subject to [indexing rate
limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
- summary: Add or replace a record
+ summary: Add a new record (with auto-generated object ID)
parameters:
- $ref: '#/components/parameters/IndexName'
requestBody:
@@ -809,6 +809,9 @@ paths:
Otherwise, a new record is added to the index.
+ If you want to use auto-generated object IDs, use the [`saveObject`
+ operation](#tag/Records/operation/saveObject).
+
To update _some_ attributes of an existing record, use the [`partial`
operation](#tag/Records/operation/partialUpdateObject) instead.
diff --git a/tests/output/csharp/src/generated/e2e/Insights.test.cs b/tests/output/csharp/src/generated/e2e/Insights.test.cs
index 16e4b1099c..5c23d47d9b 100644
--- a/tests/output/csharp/src/generated/e2e/Insights.test.cs
+++ b/tests/output/csharp/src/generated/e2e/Insights.test.cs
@@ -63,7 +63,7 @@ public async Task PushEventsTest1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
- Timestamp = 1733529600000L,
+ Timestamp = 1733788800000L,
ObjectIDs = new List { "9780545139700", "9780439784542" },
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
}
@@ -76,7 +76,7 @@ public async Task PushEventsTest1()
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
- Timestamp = 1733529600000L,
+ Timestamp = 1733788800000L,
ObjectIDs = new List { "9780545139700", "9780439784542" },
}
),
diff --git a/tests/output/csharp/src/generated/requests/Insights.test.cs b/tests/output/csharp/src/generated/requests/Insights.test.cs
index eb0919c7b5..654c225c14 100644
--- a/tests/output/csharp/src/generated/requests/Insights.test.cs
+++ b/tests/output/csharp/src/generated/requests/Insights.test.cs
@@ -580,7 +580,7 @@ await client.PushEventsAsync(
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
- Timestamp = 1733529600000L,
+ Timestamp = 1733788800000L,
ObjectIDs = new List { "9780545139700", "9780439784542" },
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
}
@@ -593,7 +593,7 @@ await client.PushEventsAsync(
Index = "products",
UserToken = "user-123456",
AuthenticatedUserToken = "user-123456",
- Timestamp = 1733529600000L,
+ Timestamp = 1733788800000L,
ObjectIDs = new List { "9780545139700", "9780439784542" },
}
),
@@ -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\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
+ "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
req.Body,
new JsonDiffConfig(false)
);
diff --git a/tests/output/dart/test/requests/insights_test.dart b/tests/output/dart/test/requests/insights_test.dart
index c719f0acd9..3600eb7953 100644
--- a/tests/output/dart/test/requests/insights_test.dart
+++ b/tests/output/dart/test/requests/insights_test.dart
@@ -635,7 +635,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: [
"9780545139700",
"9780439784542",
@@ -648,7 +648,7 @@ void main() {
index: "products",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: [
"9780545139700",
"9780439784542",
@@ -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":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}""");
+ """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}""");
},
),
);
diff --git a/tests/output/go/tests/e2e/insights_test.go b/tests/output/go/tests/e2e/insights_test.go
index 1ce4c452a3..02192cb08b 100644
--- a/tests/output/go/tests/e2e/insights_test.go
+++ b/tests/output/go/tests/e2e/insights_test.go
@@ -38,9 +38,9 @@ func TestInsightsE2E_PushEvents(t *testing.T) {
insights.NewEmptyInsightsEvents().SetEvents(
[]insights.EventsItems{*insights.ConvertedObjectIDsAfterSearchAsEventsItems(
- insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733529600000).SetObjectIDs(
+ insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733788800000).SetObjectIDs(
[]string{"9780545139700", "9780439784542"}).SetQueryID("43b15df305339e827f0ac0bdc5ebcaa7")), *insights.ViewedObjectIDsAsEventsItems(
- insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733529600000).SetObjectIDs(
+ insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733788800000).SetObjectIDs(
[]string{"9780545139700", "9780439784542"}))}),
))
require.NoError(t, err)
diff --git a/tests/output/go/tests/requests/insights_test.go b/tests/output/go/tests/requests/insights_test.go
index 53d468dc70..472a4e9639 100644
--- a/tests/output/go/tests/requests/insights_test.go
+++ b/tests/output/go/tests/requests/insights_test.go
@@ -433,9 +433,9 @@ func TestInsights_PushEvents(t *testing.T) {
insights.NewEmptyInsightsEvents().SetEvents(
[]insights.EventsItems{*insights.ConvertedObjectIDsAfterSearchAsEventsItems(
- insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733529600000).SetObjectIDs(
+ insights.NewEmptyConvertedObjectIDsAfterSearch().SetEventType(insights.ConversionEvent("conversion")).SetEventName("Product Purchased").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733788800000).SetObjectIDs(
[]string{"9780545139700", "9780439784542"}).SetQueryID("43b15df305339e827f0ac0bdc5ebcaa7")), *insights.ViewedObjectIDsAsEventsItems(
- insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733529600000).SetObjectIDs(
+ insights.NewEmptyViewedObjectIDs().SetEventType(insights.ViewEvent("view")).SetEventName("Product Detail Page Viewed").SetIndex("products").SetUserToken("user-123456").SetAuthenticatedUserToken("user-123456").SetTimestamp(1733788800000).SetObjectIDs(
[]string{"9780545139700", "9780439784542"}))}),
))
require.NoError(t, err)
@@ -444,7 +444,7 @@ func TestInsights_PushEvents(t *testing.T) {
require.Equal(t, "POST", echo.Method)
ja := jsonassert.New(t)
- ja.Assertf(*echo.Body, `{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}`)
+ ja.Assertf(*echo.Body, `{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}`)
})
t.Run("ConvertedObjectIDsAfterSearch", func(t *testing.T) {
_, err := client.PushEvents(client.NewApiPushEventsRequest(
diff --git a/tests/output/java/src/test/java/com/algolia/e2e/Insights.test.java b/tests/output/java/src/test/java/com/algolia/e2e/Insights.test.java
index 1095d07eeb..bbe68a9a29 100644
--- a/tests/output/java/src/test/java/com/algolia/e2e/Insights.test.java
+++ b/tests/output/java/src/test/java/com/algolia/e2e/Insights.test.java
@@ -50,7 +50,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
- .setTimestamp(1733529600000L)
+ .setTimestamp(1733788800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
new ViewedObjectIDs()
@@ -59,7 +59,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
- .setTimestamp(1733529600000L)
+ .setTimestamp(1733788800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
diff --git a/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java b/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java
index a61f95f75f..2d179eae7c 100644
--- a/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java
+++ b/tests/output/java/src/test/java/com/algolia/requests/Insights.test.java
@@ -720,7 +720,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
- .setTimestamp(1733529600000L)
+ .setTimestamp(1733788800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
new ViewedObjectIDs()
@@ -729,7 +729,7 @@ void pushEventsTest1() {
.setIndex("products")
.setUserToken("user-123456")
.setAuthenticatedUserToken("user-123456")
- .setTimestamp(1733529600000L)
+ .setTimestamp(1733788800000L)
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
)
)
@@ -741,9 +741,9 @@ void pushEventsTest1() {
assertDoesNotThrow(() ->
JSONAssert.assertEquals(
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product" +
- " Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" +
+ " Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product" +
" Detail Page" +
- " Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
+ " Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}",
req.body,
JSONCompareMode.STRICT
)
diff --git a/tests/output/javascript/src/e2e/insights.test.ts b/tests/output/javascript/src/e2e/insights.test.ts
index 87d430cb02..8ac50e4237 100644
--- a/tests/output/javascript/src/e2e/insights.test.ts
+++ b/tests/output/javascript/src/e2e/insights.test.ts
@@ -30,7 +30,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
@@ -40,7 +40,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
diff --git a/tests/output/javascript/src/requests/insights.test.ts b/tests/output/javascript/src/requests/insights.test.ts
index 87b9944a54..900c79ec69 100644
--- a/tests/output/javascript/src/requests/insights.test.ts
+++ b/tests/output/javascript/src/requests/insights.test.ts
@@ -311,7 +311,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
@@ -321,7 +321,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
@@ -337,7 +337,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
},
@@ -347,7 +347,7 @@ describe('pushEvents', () => {
index: 'products',
userToken: 'user-123456',
authenticatedUserToken: 'user-123456',
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
objectIDs: ['9780545139700', '9780439784542'],
},
],
diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/e2e/InsightsTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/e2e/InsightsTest.kt
index 378e41b241..0ee1745580 100644
--- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/e2e/InsightsTest.kt
+++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/e2e/InsightsTest.kt
@@ -41,7 +41,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
- timestamp = 1733529600000L,
+ timestamp = 1733788800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
),
@@ -51,7 +51,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
- timestamp = 1733529600000L,
+ timestamp = 1733788800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
),
),
diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt
index 576b776f62..b91e7fa0de 100644
--- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt
+++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/InsightsTest.kt
@@ -529,7 +529,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
- timestamp = 1733529600000L,
+ timestamp = 1733788800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
),
@@ -539,7 +539,7 @@ class InsightsTest {
index = "products",
userToken = "user-123456",
authenticatedUserToken = "user-123456",
- timestamp = 1733529600000L,
+ timestamp = 1733788800000L,
objectIDs = listOf("9780545139700", "9780439784542"),
),
),
@@ -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":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
+ assertJsonBody("""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}""", it.body)
},
)
}
diff --git a/tests/output/php/src/e2e/InsightsTest.php b/tests/output/php/src/e2e/InsightsTest.php
index 23fa6f4e47..fb5678f0ad 100644
--- a/tests/output/php/src/e2e/InsightsTest.php
+++ b/tests/output/php/src/e2e/InsightsTest.php
@@ -35,7 +35,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
- 'timestamp' => 1733529600000,
+ 'timestamp' => 1733788800000,
'objectIDs' => [
'9780545139700',
@@ -49,7 +49,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
- 'timestamp' => 1733529600000,
+ 'timestamp' => 1733788800000,
'objectIDs' => [
'9780545139700',
diff --git a/tests/output/php/src/requests/InsightsTest.php b/tests/output/php/src/requests/InsightsTest.php
index 08e397359c..77dfafe652 100644
--- a/tests/output/php/src/requests/InsightsTest.php
+++ b/tests/output/php/src/requests/InsightsTest.php
@@ -527,7 +527,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
- 'timestamp' => 1733529600000,
+ 'timestamp' => 1733788800000,
'objectIDs' => [
'9780545139700',
@@ -541,7 +541,7 @@ public function testPushEvents1(): void
'index' => 'products',
'userToken' => 'user-123456',
'authenticatedUserToken' => 'user-123456',
- 'timestamp' => 1733529600000,
+ 'timestamp' => 1733788800000,
'objectIDs' => [
'9780545139700',
@@ -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":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}'),
+ 'body' => json_decode('{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}'),
],
]);
}
diff --git a/tests/output/python/tests/e2e/insights_test.py b/tests/output/python/tests/e2e/insights_test.py
index a43ebc6107..4acd7e10c5 100644
--- a/tests/output/python/tests/e2e/insights_test.py
+++ b/tests/output/python/tests/e2e/insights_test.py
@@ -36,7 +36,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -49,7 +49,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -71,7 +71,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -84,7 +84,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -127,7 +127,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -140,7 +140,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -162,7 +162,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -175,7 +175,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
diff --git a/tests/output/python/tests/requests/insights_test.py b/tests/output/python/tests/requests/insights_test.py
index 19d704badc..fdb8afc121 100644
--- a/tests/output/python/tests/requests/insights_test.py
+++ b/tests/output/python/tests/requests/insights_test.py
@@ -463,7 +463,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -476,7 +476,7 @@ async def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -491,7 +491,7 @@ async def test_push_events_1(self):
assert _req.query_parameters.items() == {}.items()
assert _req.headers.items() >= {}.items()
assert loads(_req.data) == loads(
- """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}"""
+ """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}"""
)
async def test_push_events_2(self):
@@ -1060,7 +1060,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -1073,7 +1073,7 @@ def test_push_events_1(self):
"index": "products",
"userToken": "user-123456",
"authenticatedUserToken": "user-123456",
- "timestamp": 1733529600000,
+ "timestamp": 1733788800000,
"objectIDs": [
"9780545139700",
"9780439784542",
@@ -1088,7 +1088,7 @@ def test_push_events_1(self):
assert _req.query_parameters.items() == {}.items()
assert _req.headers.items() >= {}.items()
assert loads(_req.data) == loads(
- """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}"""
+ """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}"""
)
def test_push_events_2(self):
diff --git a/tests/output/ruby/test/e2e/insights_test.rb b/tests/output/ruby/test/e2e/insights_test.rb
index ce20b8e168..48feaee3bf 100644
--- a/tests/output/ruby/test/e2e/insights_test.rb
+++ b/tests/output/ruby/test/e2e/insights_test.rb
@@ -27,7 +27,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
@@ -37,7 +37,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"]
)
]
@@ -54,7 +54,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
@@ -64,7 +64,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"]
)
]
diff --git a/tests/output/ruby/test/requests/insights_test.rb b/tests/output/ruby/test/requests/insights_test.rb
index 9c7138a1de..9cbab94ea4 100644
--- a/tests/output/ruby/test/requests/insights_test.rb
+++ b/tests/output/ruby/test/requests/insights_test.rb
@@ -337,7 +337,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
@@ -347,7 +347,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
- timestamp: 1733529600000,
+ timestamp: 1733788800000,
object_ids: ["9780545139700", "9780439784542"]
)
]
@@ -360,7 +360,7 @@ def test_push_events1
assert(({}.to_a - req.headers.to_a).empty?, req.headers.to_s)
assert_equal(
JSON.parse(
- "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
+ "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
),
JSON.parse(req.body)
)
diff --git a/tests/output/scala/src/test/scala/algoliasearch/e2e/InsightsTest.scala b/tests/output/scala/src/test/scala/algoliasearch/e2e/InsightsTest.scala
index 1026912056..4f8ac4b7e4 100644
--- a/tests/output/scala/src/test/scala/algoliasearch/e2e/InsightsTest.scala
+++ b/tests/output/scala/src/test/scala/algoliasearch/e2e/InsightsTest.scala
@@ -49,7 +49,7 @@ class InsightsTestE2E extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
- timestamp = Some(1733529600000L),
+ timestamp = Some(1733788800000L),
objectIDs = Seq("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
),
@@ -59,7 +59,7 @@ class InsightsTestE2E extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
- timestamp = Some(1733529600000L),
+ timestamp = Some(1733788800000L),
objectIDs = Seq("9780545139700", "9780439784542")
)
)
diff --git a/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala b/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala
index a64fae1440..171c7091da 100644
--- a/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala
+++ b/tests/output/scala/src/test/scala/algoliasearch/requests/InsightsTest.scala
@@ -574,7 +574,7 @@ class InsightsTest extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
- timestamp = Some(1733529600000L),
+ timestamp = Some(1733788800000L),
objectIDs = Seq("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
),
@@ -584,7 +584,7 @@ class InsightsTest extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
- timestamp = Some(1733529600000L),
+ timestamp = Some(1733788800000L),
objectIDs = Seq("9780545139700", "9780439784542")
)
)
@@ -597,7 +597,7 @@ class InsightsTest extends AnyFunSuite {
assert(res.path == "/1/events")
assert(res.method == "POST")
val expectedBody = parse(
- """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733529600000,"objectIDs":["9780545139700","9780439784542"]}]}"""
+ """{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1733788800000,"objectIDs":["9780545139700","9780439784542"]}]}"""
)
val actualBody = parse(res.body.get)
assert(actualBody == expectedBody)
diff --git a/tests/output/swift/Tests/e2e/InsightsTests.swift b/tests/output/swift/Tests/e2e/InsightsTests.swift
index fb5d5b95df..4eb1d00235 100644
--- a/tests/output/swift/Tests/e2e/InsightsTests.swift
+++ b/tests/output/swift/Tests/e2e/InsightsTests.swift
@@ -65,7 +65,7 @@ final class InsightsClientRequestsTestsE2E: XCTestCase {
queryID: "43b15df305339e827f0ac0bdc5ebcaa7",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: Int64(1_733_529_600_000)
+ timestamp: Int64(1_733_788_800_000)
)),
EventsItems.viewedObjectIDs(ViewedObjectIDs(
eventName: "Product Detail Page Viewed",
@@ -74,7 +74,7 @@ final class InsightsClientRequestsTestsE2E: XCTestCase {
objectIDs: ["9780545139700", "9780439784542"],
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: Int64(1_733_529_600_000)
+ timestamp: Int64(1_733_788_800_000)
)),
]))
let responseBody = try XCTUnwrap(response.body)
diff --git a/tests/output/swift/Tests/requests/InsightsTests.swift b/tests/output/swift/Tests/requests/InsightsTests.swift
index c26f83fd71..c4b6433d33 100644
--- a/tests/output/swift/Tests/requests/InsightsTests.swift
+++ b/tests/output/swift/Tests/requests/InsightsTests.swift
@@ -785,7 +785,7 @@ final class InsightsClientRequestsTests: XCTestCase {
queryID: "43b15df305339e827f0ac0bdc5ebcaa7",
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: Int64(1_733_529_600_000)
+ timestamp: Int64(1_733_788_800_000)
)),
EventsItems.viewedObjectIDs(ViewedObjectIDs(
eventName: "Product Detail Page Viewed",
@@ -794,7 +794,7 @@ final class InsightsClientRequestsTests: XCTestCase {
objectIDs: ["9780545139700", "9780439784542"],
userToken: "user-123456",
authenticatedUserToken: "user-123456",
- timestamp: Int64(1_733_529_600_000)
+ timestamp: Int64(1_733_788_800_000)
)),
]))
let responseBodyData = try XCTUnwrap(response.bodyData)
@@ -804,7 +804,7 @@ final class InsightsClientRequestsTests: XCTestCase {
let echoResponseBodyJSON = try XCTUnwrap(echoResponseBodyData.jsonString)
let expectedBodyData =
- "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733529600000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
+ "{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1733788800000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
.data(using: .utf8)
let expectedBodyJSON = try XCTUnwrap(expectedBodyData?.jsonString)