Skip to content

Commit aafa4d5

Browse files
committed
Merge branch 'main' into docs/API-530/remaining-php-doc
2 parents 1117593 + e93a31c commit aafa4d5

File tree

289 files changed

+3531
-2400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+3531
-2400
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ module.exports = {
101101
'no-continue': 0,
102102
'@typescript-eslint/prefer-enum-initializers': 0,
103103

104-
'@typescript-eslint/no-unused-vars': 2,
105104
'unused-imports/no-unused-imports-ts': 2,
105+
'@typescript-eslint/no-unused-vars': 2,
106+
'@typescript-eslint/consistent-indexed-object-style': 2,
106107
'@typescript-eslint/member-ordering': [
107108
'error',
108109
{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ public CompletableFuture<Map<String, String>> getObjectAsync(String indexName, S
17381738
/**
17391739
* Retrieve one or more objects, potentially from different indices, in a single API call.
17401740
*
1741-
* @param getObjectsParams (required)
1741+
* @param getObjectsParams The Algolia object. (required)
17421742
* @param requestOptions The requestOptions to send along with the query, they will be merged with
17431743
* the transporter requestOptions.
17441744
* @return GetObjectsResponse
@@ -1757,7 +1757,7 @@ public GetObjectsResponse getObjects(GetObjectsParams getObjectsParams) throws A
17571757
* (asynchronously) Retrieve one or more objects, potentially from different indices, in a single
17581758
* API call.
17591759
*
1760-
* @param getObjectsParams (required)
1760+
* @param getObjectsParams The Algolia object. (required)
17611761
* @param requestOptions The requestOptions to send along with the query, they will be merged with
17621762
* the transporter requestOptions.
17631763
* @return The awaitable future
@@ -3551,7 +3551,7 @@ public CompletableFuture<UpdatedAtResponse> saveSynonymsAsync(String indexName,
35513551
/**
35523552
* Perform a search operation targeting one or many indices.
35533553
*
3554-
* @param searchMethodParams (required)
3554+
* @param searchMethodParams The `search` requests and strategy. (required)
35553555
* @param requestOptions The requestOptions to send along with the query, they will be merged with
35563556
* the transporter requestOptions.
35573557
* @return SearchResponses
@@ -3569,7 +3569,7 @@ public SearchResponses search(SearchMethodParams searchMethodParams) throws Algo
35693569
/**
35703570
* (asynchronously) Perform a search operation targeting one or many indices.
35713571
*
3572-
* @param searchMethodParams (required)
3572+
* @param searchMethodParams The `search` requests and strategy. (required)
35733573
* @param requestOptions The requestOptions to send along with the query, they will be merged with
35743574
* the transporter requestOptions.
35753575
* @return The awaitable future

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/abtesting/ABTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.algolia.model.abtesting;
22

33
import com.google.gson.annotations.SerializedName;
4-
import java.util.ArrayList;
54
import java.util.List;
65
import java.util.Objects;
76

@@ -30,7 +29,7 @@ public class ABTest {
3029
private String status;
3130

3231
@SerializedName("variants")
33-
private List<Variant> variants = new ArrayList<>();
32+
private List<Variant> variants;
3433

3534
public ABTest setAbTestID(Integer abTestID) {
3635
this.abTestID = abTestID;

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/abtesting/AddABTestsRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.algolia.model.abtesting;
22

33
import com.google.gson.annotations.SerializedName;
4-
import java.util.ArrayList;
54
import java.util.List;
65
import java.util.Objects;
76

@@ -12,7 +11,7 @@ public class AddABTestsRequest {
1211
private String name;
1312

1413
@SerializedName("variant")
15-
private List<AddABTestsVariant> variant = new ArrayList<>();
14+
private List<AddABTestsVariant> variant;
1615

1716
@SerializedName("endAt")
1817
private String endAt;

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/abtesting/ListABTestsResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package com.algolia.model.abtesting;
22

33
import com.google.gson.annotations.SerializedName;
4-
import java.util.ArrayList;
54
import java.util.List;
65
import java.util.Objects;
76

87
/** ListABTestsResponse */
98
public class ListABTestsResponse {
109

1110
@SerializedName("abtests")
12-
private List<ABTest> abtests = new ArrayList<>();
11+
private List<ABTest> abtests;
1312

1413
@SerializedName("count")
1514
private Integer count;
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.google.gson.annotations.SerializedName;
44
import java.util.Objects;
55

6-
/** GetAverageClickPositionResponseDates */
7-
public class GetAverageClickPositionResponseDates {
6+
/** AverageClickEvent */
7+
public class AverageClickEvent {
88

99
@SerializedName("average")
1010
private Double average;
@@ -15,7 +15,7 @@ public class GetAverageClickPositionResponseDates {
1515
@SerializedName("date")
1616
private String date;
1717

18-
public GetAverageClickPositionResponseDates setAverage(Double average) {
18+
public AverageClickEvent setAverage(Double average) {
1919
this.average = average;
2020
return this;
2121
}
@@ -30,7 +30,7 @@ public Double getAverage() {
3030
return average;
3131
}
3232

33-
public GetAverageClickPositionResponseDates setClickCount(Integer clickCount) {
33+
public AverageClickEvent setClickCount(Integer clickCount) {
3434
this.clickCount = clickCount;
3535
return this;
3636
}
@@ -45,7 +45,7 @@ public Integer getClickCount() {
4545
return clickCount;
4646
}
4747

48-
public GetAverageClickPositionResponseDates setDate(String date) {
48+
public AverageClickEvent setDate(String date) {
4949
this.date = date;
5050
return this;
5151
}
@@ -68,11 +68,11 @@ public boolean equals(Object o) {
6868
if (o == null || getClass() != o.getClass()) {
6969
return false;
7070
}
71-
GetAverageClickPositionResponseDates getAverageClickPositionResponseDates = (GetAverageClickPositionResponseDates) o;
71+
AverageClickEvent averageClickEvent = (AverageClickEvent) o;
7272
return (
73-
Objects.equals(this.average, getAverageClickPositionResponseDates.average) &&
74-
Objects.equals(this.clickCount, getAverageClickPositionResponseDates.clickCount) &&
75-
Objects.equals(this.date, getAverageClickPositionResponseDates.date)
73+
Objects.equals(this.average, averageClickEvent.average) &&
74+
Objects.equals(this.clickCount, averageClickEvent.clickCount) &&
75+
Objects.equals(this.date, averageClickEvent.date)
7676
);
7777
}
7878

@@ -84,7 +84,7 @@ public int hashCode() {
8484
@Override
8585
public String toString() {
8686
StringBuilder sb = new StringBuilder();
87-
sb.append("class GetAverageClickPositionResponseDates {\n");
87+
sb.append("class AverageClickEvent {\n");
8888
sb.append(" average: ").append(toIndentedString(average)).append("\n");
8989
sb.append(" clickCount: ").append(toIndentedString(clickCount)).append("\n");
9090
sb.append(" date: ").append(toIndentedString(date)).append("\n");
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
package com.algolia.model.analytics;
22

33
import com.google.gson.annotations.SerializedName;
4-
import java.util.ArrayList;
54
import java.util.List;
65
import java.util.Objects;
76

8-
/** GetClickPositionsResponsePositions */
9-
public class GetClickPositionsResponsePositions {
7+
/** ClickPosition */
8+
public class ClickPosition {
109

1110
@SerializedName("position")
12-
private List<Integer> position = new ArrayList<>();
11+
private List<Integer> position;
1312

1413
@SerializedName("clickCount")
1514
private Integer clickCount;
1615

17-
public GetClickPositionsResponsePositions setPosition(List<Integer> position) {
16+
public ClickPosition setPosition(List<Integer> position) {
1817
this.position = position;
1918
return this;
2019
}
2120

22-
public GetClickPositionsResponsePositions addPosition(Integer positionItem) {
21+
public ClickPosition addPosition(Integer positionItem) {
2322
this.position.add(positionItem);
2423
return this;
2524
}
@@ -36,7 +35,7 @@ public List<Integer> getPosition() {
3635
return position;
3736
}
3837

39-
public GetClickPositionsResponsePositions setClickCount(Integer clickCount) {
38+
public ClickPosition setClickCount(Integer clickCount) {
4039
this.clickCount = clickCount;
4140
return this;
4241
}
@@ -59,11 +58,8 @@ public boolean equals(Object o) {
5958
if (o == null || getClass() != o.getClass()) {
6059
return false;
6160
}
62-
GetClickPositionsResponsePositions getClickPositionsResponsePositions = (GetClickPositionsResponsePositions) o;
63-
return (
64-
Objects.equals(this.position, getClickPositionsResponsePositions.position) &&
65-
Objects.equals(this.clickCount, getClickPositionsResponsePositions.clickCount)
66-
);
61+
ClickPosition clickPosition = (ClickPosition) o;
62+
return Objects.equals(this.position, clickPosition.position) && Objects.equals(this.clickCount, clickPosition.clickCount);
6763
}
6864

6965
@Override
@@ -74,7 +70,7 @@ public int hashCode() {
7470
@Override
7571
public String toString() {
7672
StringBuilder sb = new StringBuilder();
77-
sb.append("class GetClickPositionsResponsePositions {\n");
73+
sb.append("class ClickPosition {\n");
7874
sb.append(" position: ").append(toIndentedString(position)).append("\n");
7975
sb.append(" clickCount: ").append(toIndentedString(clickCount)).append("\n");
8076
sb.append("}");
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.google.gson.annotations.SerializedName;
44
import java.util.Objects;
55

6-
/** GetClickThroughRateResponseDates */
7-
public class GetClickThroughRateResponseDates {
6+
/** ClickThroughRateEvent */
7+
public class ClickThroughRateEvent {
88

99
@SerializedName("rate")
1010
private Double rate;
@@ -18,7 +18,7 @@ public class GetClickThroughRateResponseDates {
1818
@SerializedName("date")
1919
private String date;
2020

21-
public GetClickThroughRateResponseDates setRate(Double rate) {
21+
public ClickThroughRateEvent setRate(Double rate) {
2222
this.rate = rate;
2323
return this;
2424
}
@@ -33,7 +33,7 @@ public Double getRate() {
3333
return rate;
3434
}
3535

36-
public GetClickThroughRateResponseDates setClickCount(Integer clickCount) {
36+
public ClickThroughRateEvent setClickCount(Integer clickCount) {
3737
this.clickCount = clickCount;
3838
return this;
3939
}
@@ -48,7 +48,7 @@ public Integer getClickCount() {
4848
return clickCount;
4949
}
5050

51-
public GetClickThroughRateResponseDates setTrackedSearchCount(Integer trackedSearchCount) {
51+
public ClickThroughRateEvent setTrackedSearchCount(Integer trackedSearchCount) {
5252
this.trackedSearchCount = trackedSearchCount;
5353
return this;
5454
}
@@ -63,7 +63,7 @@ public Integer getTrackedSearchCount() {
6363
return trackedSearchCount;
6464
}
6565

66-
public GetClickThroughRateResponseDates setDate(String date) {
66+
public ClickThroughRateEvent setDate(String date) {
6767
this.date = date;
6868
return this;
6969
}
@@ -86,12 +86,12 @@ public boolean equals(Object o) {
8686
if (o == null || getClass() != o.getClass()) {
8787
return false;
8888
}
89-
GetClickThroughRateResponseDates getClickThroughRateResponseDates = (GetClickThroughRateResponseDates) o;
89+
ClickThroughRateEvent clickThroughRateEvent = (ClickThroughRateEvent) o;
9090
return (
91-
Objects.equals(this.rate, getClickThroughRateResponseDates.rate) &&
92-
Objects.equals(this.clickCount, getClickThroughRateResponseDates.clickCount) &&
93-
Objects.equals(this.trackedSearchCount, getClickThroughRateResponseDates.trackedSearchCount) &&
94-
Objects.equals(this.date, getClickThroughRateResponseDates.date)
91+
Objects.equals(this.rate, clickThroughRateEvent.rate) &&
92+
Objects.equals(this.clickCount, clickThroughRateEvent.clickCount) &&
93+
Objects.equals(this.trackedSearchCount, clickThroughRateEvent.trackedSearchCount) &&
94+
Objects.equals(this.date, clickThroughRateEvent.date)
9595
);
9696
}
9797

@@ -103,7 +103,7 @@ public int hashCode() {
103103
@Override
104104
public String toString() {
105105
StringBuilder sb = new StringBuilder();
106-
sb.append("class GetClickThroughRateResponseDates {\n");
106+
sb.append("class ClickThroughRateEvent {\n");
107107
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
108108
sb.append(" clickCount: ").append(toIndentedString(clickCount)).append("\n");
109109
sb.append(" trackedSearchCount: ").append(toIndentedString(trackedSearchCount)).append("\n");
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.google.gson.annotations.SerializedName;
44
import java.util.Objects;
55

6-
/** GetConversationRateResponseDates */
7-
public class GetConversationRateResponseDates {
6+
/** ConversionRateEvent */
7+
public class ConversionRateEvent {
88

99
@SerializedName("rate")
1010
private Double rate;
@@ -18,7 +18,7 @@ public class GetConversationRateResponseDates {
1818
@SerializedName("date")
1919
private String date;
2020

21-
public GetConversationRateResponseDates setRate(Double rate) {
21+
public ConversionRateEvent setRate(Double rate) {
2222
this.rate = rate;
2323
return this;
2424
}
@@ -33,7 +33,7 @@ public Double getRate() {
3333
return rate;
3434
}
3535

36-
public GetConversationRateResponseDates setTrackedSearchCount(Integer trackedSearchCount) {
36+
public ConversionRateEvent setTrackedSearchCount(Integer trackedSearchCount) {
3737
this.trackedSearchCount = trackedSearchCount;
3838
return this;
3939
}
@@ -48,7 +48,7 @@ public Integer getTrackedSearchCount() {
4848
return trackedSearchCount;
4949
}
5050

51-
public GetConversationRateResponseDates setConversionCount(Integer conversionCount) {
51+
public ConversionRateEvent setConversionCount(Integer conversionCount) {
5252
this.conversionCount = conversionCount;
5353
return this;
5454
}
@@ -63,7 +63,7 @@ public Integer getConversionCount() {
6363
return conversionCount;
6464
}
6565

66-
public GetConversationRateResponseDates setDate(String date) {
66+
public ConversionRateEvent setDate(String date) {
6767
this.date = date;
6868
return this;
6969
}
@@ -86,12 +86,12 @@ public boolean equals(Object o) {
8686
if (o == null || getClass() != o.getClass()) {
8787
return false;
8888
}
89-
GetConversationRateResponseDates getConversationRateResponseDates = (GetConversationRateResponseDates) o;
89+
ConversionRateEvent conversionRateEvent = (ConversionRateEvent) o;
9090
return (
91-
Objects.equals(this.rate, getConversationRateResponseDates.rate) &&
92-
Objects.equals(this.trackedSearchCount, getConversationRateResponseDates.trackedSearchCount) &&
93-
Objects.equals(this.conversionCount, getConversationRateResponseDates.conversionCount) &&
94-
Objects.equals(this.date, getConversationRateResponseDates.date)
91+
Objects.equals(this.rate, conversionRateEvent.rate) &&
92+
Objects.equals(this.trackedSearchCount, conversionRateEvent.trackedSearchCount) &&
93+
Objects.equals(this.conversionCount, conversionRateEvent.conversionCount) &&
94+
Objects.equals(this.date, conversionRateEvent.date)
9595
);
9696
}
9797

@@ -103,7 +103,7 @@ public int hashCode() {
103103
@Override
104104
public String toString() {
105105
StringBuilder sb = new StringBuilder();
106-
sb.append("class GetConversationRateResponseDates {\n");
106+
sb.append("class ConversionRateEvent {\n");
107107
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
108108
sb.append(" trackedSearchCount: ").append(toIndentedString(trackedSearchCount)).append("\n");
109109
sb.append(" conversionCount: ").append(toIndentedString(conversionCount)).append("\n");

0 commit comments

Comments
 (0)