Skip to content

Commit 7802514

Browse files
chore: generated code for commit bb9984d. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent bb9984d commit 7802514

File tree

21 files changed

+275
-170
lines changed

21 files changed

+275
-170
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/AbtestingClient.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private Call deleteABTestValidateBeforeCall(
312312
}
313313

314314
/**
315-
* Deletes the A/B Test and removes all associated metadata & metrics.
315+
* Delete a test.
316316
*
317317
* @param id The A/B test ID. (required)
318318
* @return ABTestResponse
@@ -332,7 +332,7 @@ public ABTestResponse deleteABTest(Integer id)
332332
}
333333

334334
/**
335-
* (asynchronously) Deletes the A/B Test and removes all associated metadata &amp; metrics.
335+
* (asynchronously) Delete a test.
336336
*
337337
* @param id The A/B test ID. (required)
338338
* @param callback The callback to be executed when the API call finishes
@@ -503,8 +503,7 @@ private Call getABTestValidateBeforeCall(
503503
}
504504

505505
/**
506-
* Returns metadata and metrics for A/B test id. Behaves in the same way as GET /2/abtests however
507-
* the endpoint will return 403.
506+
* Returns metadata and metrics for an A/B test.
508507
*
509508
* @param id The A/B test ID. (required)
510509
* @return ABTest
@@ -523,8 +522,7 @@ public ABTest getABTest(Integer id) throws AlgoliaRuntimeException {
523522
}
524523

525524
/**
526-
* (asynchronously) Returns metadata and metrics for A/B test id. Behaves in the same way as GET
527-
* /2/abtests however the endpoint will return 403.
525+
* (asynchronously) Returns metadata and metrics for an A/B test.
528526
*
529527
* @param id The A/B test ID. (required)
530528
* @param callback The callback to be executed when the API call finishes
@@ -590,9 +588,8 @@ private Call listABTestsValidateBeforeCall(
590588
}
591589

592590
/**
593-
* Fetch all existing A/B tests for App that are available for the current API Key. Returns an
594-
* array of metadata and metrics. When no data has been processed, the metrics will be returned as
595-
* null.
591+
* Fetch all existing A/B tests for App that are available for the current API Key. When no data
592+
* has been processed, the metrics will be returned as null.
596593
*
597594
* @param offset Position of the starting record. Used for paging. 0 is the first record.
598595
* (optional, default to 0)
@@ -620,8 +617,7 @@ public ListABTestsResponse listABTests() throws AlgoliaRuntimeException {
620617

621618
/**
622619
* (asynchronously) Fetch all existing A/B tests for App that are available for the current API
623-
* Key. Returns an array of metadata and metrics. When no data has been processed, the metrics
624-
* will be returned as null.
620+
* Key. When no data has been processed, the metrics will be returned as null.
625621
*
626622
* @param offset Position of the starting record. Used for paging. 0 is the first record.
627623
* (optional, default to 0)

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/AnalyticsClient.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ private Call getClickPositionsValidateBeforeCall(
503503
}
504504

505505
/**
506-
* Returns the distribution of clicks per range of positions.
506+
* Returns the distribution of clicks per range of positions. If the groups all have a count of 0,
507+
* it means Algolia didn’t receive any click events for the queries with the clickAnalytics search
508+
* parameter set to true. The count is 0 until Algolia receives at least one click event.
507509
*
508510
* @param index The index name to target. (required)
509511
* @param startDate The lower bound timestamp (a date, a string like \"2006-01-02\") of the period
@@ -547,7 +549,10 @@ public GetClickPositionsResponse getClickPositions(String index)
547549
}
548550

549551
/**
550-
* (asynchronously) Returns the distribution of clicks per range of positions.
552+
* (asynchronously) Returns the distribution of clicks per range of positions. If the groups all
553+
* have a count of 0, it means Algolia didn’t receive any click events for the queries with the
554+
* clickAnalytics search parameter set to true. The count is 0 until Algolia receives at least one
555+
* click event.
551556
*
552557
* @param index The index name to target. (required)
553558
* @param startDate The lower bound timestamp (a date, a string like \"2006-01-02\") of the period

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/InsightsClient.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,14 @@ private Call pushEventsValidateBeforeCall(
432432
}
433433

434434
/**
435-
* This command pushes an array of events.
435+
* This command pushes an array of events. An event is - an action: `eventName` - performed in a
436+
* context: `eventType` - at some point in time provided: `timestamp` - by an end user:
437+
* `userToken` - on something: `index` Notes: - To be accepted, all events sent must be valid. -
438+
* The size of the body must be *less than 2 MB*. - When an event is tied to an Algolia search, it
439+
* must also provide a `queryID`. If that event is a `click`, their absolute `positions` should
440+
* also be passed. - We consider that an `index` provides access to 2 resources: objects and
441+
* filters. An event can only interact with a single resource type, but not necessarily on a
442+
* single item. As such an event will accept an array of `objectIDs` or `filters`.
436443
*
437444
* @param insightEvents (required)
438445
* @return PushEventsResponse
@@ -452,7 +459,16 @@ public PushEventsResponse pushEvents(InsightEvents insightEvents)
452459
}
453460

454461
/**
455-
* (asynchronously) This command pushes an array of events.
462+
* (asynchronously) This command pushes an array of events. An event is - an action:
463+
* &#x60;eventName&#x60; - performed in a context: &#x60;eventType&#x60; - at some point in time
464+
* provided: &#x60;timestamp&#x60; - by an end user: &#x60;userToken&#x60; - on something:
465+
* &#x60;index&#x60; Notes: - To be accepted, all events sent must be valid. - The size of the
466+
* body must be *less than 2 MB*. - When an event is tied to an Algolia search, it must also
467+
* provide a &#x60;queryID&#x60;. If that event is a &#x60;click&#x60;, their absolute
468+
* &#x60;positions&#x60; should also be passed. - We consider that an &#x60;index&#x60; provides
469+
* access to 2 resources: objects and filters. An event can only interact with a single resource
470+
* type, but not necessarily on a single item. As such an event will accept an array of
471+
* &#x60;objectIDs&#x60; or &#x60;filters&#x60;.
456472
*
457473
* @param insightEvents (required)
458474
* @param callback The callback to be executed when the API call finishes

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/analytics/GetClickPositionsResponsePositions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public GetClickPositionsResponsePositions addPositionItem(
2929
}
3030

3131
/**
32-
* Range of positions with the following pattern: Positions from 1 to 10 included are displayed in
33-
* separated groups. Positions from 11 to 20 included are grouped together. Positions from 21 and
34-
* up are grouped together.
32+
* Range of positions with the following pattern: - Positions from 1 to 10 included are displayed
33+
* in separated groups. - Positions from 11 to 20 included are grouped together. - Positions from
34+
* 21 and up are grouped together.
3535
*
3636
* @return position
3737
*/

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/insights/EventType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.google.gson.stream.JsonWriter;
77
import java.io.IOException;
88

9-
/** An eventType can be a click, a conversion, or a view. */
9+
/** Gets or Sets eventType */
1010
@JsonAdapter(EventType.Adapter.class)
1111
public enum EventType {
1212
CLICK("click"),

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/insights/InsightEvent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public InsightEvent setUserToken(String userToken) {
8787

8888
/**
8989
* A user identifier. Depending if the user is logged-in or not, several strategies can be used
90-
* from a sessionId to a technical identifier.
90+
* from a sessionId to a technical identifier. You should always send pseudonymous or anonymous
91+
* userTokens.
9192
*
9293
* @return userToken
9394
*/

clients/algoliasearch-client-javascript/packages/client-abtesting/src/abtestingClient.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function createAbtestingClient(
6767
/**
6868
* Creates a new A/B test with provided configuration. You can set an A/B test on two different indices with different settings, or on the same index with different search parameters by providing a customSearchParameters setting on one of the variants.
6969
*
70-
* @summary Creates a new A/B test with provided configuration.
70+
* @summary Create a test.
7171
* @param addABTestsRequest - The addABTestsRequest object.
7272
*/
7373
addABTests(
@@ -152,9 +152,9 @@ export function createAbtestingClient(
152152
},
153153

154154
/**
155-
* Deletes the A/B Test and removes all associated metadata & metrics.
155+
* Delete a test.
156156
*
157-
* @summary Deletes the A/B Test.
157+
* @summary Delete a test.
158158
* @param deleteABTest - The deleteABTest object.
159159
* @param deleteABTest.id - The A/B test ID.
160160
*/
@@ -226,9 +226,9 @@ export function createAbtestingClient(
226226
},
227227

228228
/**
229-
* Returns metadata and metrics for A/B test id. Behaves in the same way as GET /2/abtests however the endpoint will return 403.
229+
* Returns metadata and metrics for an A/B test.
230230
*
231-
* @summary Returns metadata and metrics for A/B test id.
231+
* @summary Get a test.
232232
* @param getABTest - The getABTest object.
233233
* @param getABTest.id - The A/B test ID.
234234
*/
@@ -263,9 +263,9 @@ export function createAbtestingClient(
263263
},
264264

265265
/**
266-
* Fetch all existing A/B tests for App that are available for the current API Key. Returns an array of metadata and metrics. When no data has been processed, the metrics will be returned as null.
266+
* Fetch all existing A/B tests for App that are available for the current API Key. When no data has been processed, the metrics will be returned as null.
267267
*
268-
* @summary Fetch all existing A/B tests for App that are available for the current API Key.
268+
* @summary List all tests.
269269
* @param listABTests - The listABTests object.
270270
* @param listABTests.offset - Position of the starting record. Used for paging. 0 is the first record.
271271
* @param listABTests.limit - Number of records to return. Limit is the size of the page.
@@ -378,7 +378,7 @@ export function createAbtestingClient(
378378
/**
379379
* Marks the A/B test as stopped. At this point, the test is over and cannot be restarted. As a result, your application is back to normal: index A will perform as usual, receiving 100% of all search requests. Associated metadata and metrics are still stored.
380380
*
381-
* @summary Marks the A/B test as stopped.
381+
* @summary Stop a test.
382382
* @param stopABTest - The stopABTest object.
383383
* @param stopABTest.id - The A/B test ID.
384384
*/

clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickPositionsResponsePositions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type GetClickPositionsResponsePositions = {
22
/**
3-
* Range of positions with the following pattern: Positions from 1 to 10 included are displayed in separated groups. Positions from 11 to 20 included are grouped together. Positions from 21 and up are grouped together.
3+
* Range of positions with the following pattern: - Positions from 1 to 10 included are displayed in separated groups. - Positions from 11 to 20 included are grouped together. - Positions from 21 and up are grouped together.
44
*/
55
position: number[];
66
/**

0 commit comments

Comments
 (0)