Skip to content

Commit e5272be

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 340b7bd. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 340b7bd commit e5272be

File tree

23 files changed

+66
-74
lines changed

23 files changed

+66
-74
lines changed

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
@@ -3024,15 +3024,15 @@ public CompletableFuture<SynonymHit> getSynonymAsync(
30243024
*/
30253025
public GetTaskResponse getTask(
30263026
String indexName,
3027-
Integer taskID,
3027+
Long taskID,
30283028
RequestOptions requestOptions
30293029
) throws AlgoliaRuntimeException {
30303030
return LaunderThrowable.await(
30313031
getTaskAsync(indexName, taskID, requestOptions)
30323032
);
30333033
}
30343034

3035-
public GetTaskResponse getTask(String indexName, Integer taskID)
3035+
public GetTaskResponse getTask(String indexName, Long taskID)
30363036
throws AlgoliaRuntimeException {
30373037
return this.getTask(indexName, taskID, null);
30383038
}
@@ -3050,7 +3050,7 @@ public GetTaskResponse getTask(String indexName, Integer taskID)
30503050
*/
30513051
public CompletableFuture<GetTaskResponse> getTaskAsync(
30523052
String indexName,
3053-
Integer taskID,
3053+
Long taskID,
30543054
RequestOptions requestOptions
30553055
) throws AlgoliaRuntimeException {
30563056
if (indexName == null) {
@@ -3093,7 +3093,7 @@ public CompletableFuture<GetTaskResponse> getTaskAsync(
30933093

30943094
public CompletableFuture<GetTaskResponse> getTaskAsync(
30953095
String indexName,
3096-
Integer taskID
3096+
Long taskID
30973097
) throws AlgoliaRuntimeException {
30983098
return this.getTaskAsync(indexName, taskID, null);
30993099
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ABTestResponse {
1313
private Integer abTestID;
1414

1515
@SerializedName("taskID")
16-
private Integer taskID;
16+
private Long taskID;
1717

1818
public ABTestResponse setIndex(String index) {
1919
this.index = index;
@@ -45,7 +45,7 @@ public Integer getAbTestID() {
4545
return abTestID;
4646
}
4747

48-
public ABTestResponse setTaskID(Integer taskID) {
48+
public ABTestResponse setTaskID(Long taskID) {
4949
this.taskID = taskID;
5050
return this;
5151
}
@@ -56,7 +56,7 @@ public ABTestResponse setTaskID(Integer taskID) {
5656
* @return taskID
5757
*/
5858
@javax.annotation.Nonnull
59-
public Integer getTaskID() {
59+
public Long getTaskID() {
6060
return taskID;
6161
}
6262

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/BatchResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
public class BatchResponse {
1010

1111
@SerializedName("taskID")
12-
private Integer taskID;
12+
private Long taskID;
1313

1414
@SerializedName("objectIDs")
1515
private List<String> objectIDs = null;
1616

17-
public BatchResponse setTaskID(Integer taskID) {
17+
public BatchResponse setTaskID(Long taskID) {
1818
this.taskID = taskID;
1919
return this;
2020
}
@@ -25,7 +25,7 @@ public BatchResponse setTaskID(Integer taskID) {
2525
* @return taskID
2626
*/
2727
@javax.annotation.Nullable
28-
public Integer getTaskID() {
28+
public Long getTaskID() {
2929
return taskID;
3030
}
3131

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/DeletedAtResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
public class DeletedAtResponse {
88

99
@SerializedName("taskID")
10-
private Integer taskID;
10+
private Long taskID;
1111

1212
@SerializedName("deletedAt")
1313
private String deletedAt;
1414

15-
public DeletedAtResponse setTaskID(Integer taskID) {
15+
public DeletedAtResponse setTaskID(Long taskID) {
1616
this.taskID = taskID;
1717
return this;
1818
}
@@ -23,7 +23,7 @@ public DeletedAtResponse setTaskID(Integer taskID) {
2323
* @return taskID
2424
*/
2525
@javax.annotation.Nonnull
26-
public Integer getTaskID() {
26+
public Long getTaskID() {
2727
return taskID;
2828
}
2929

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/SaveObjectResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class SaveObjectResponse {
1010
private String createdAt;
1111

1212
@SerializedName("taskID")
13-
private Integer taskID;
13+
private Long taskID;
1414

1515
@SerializedName("objectID")
1616
private String objectID;
@@ -30,7 +30,7 @@ public String getCreatedAt() {
3030
return createdAt;
3131
}
3232

33-
public SaveObjectResponse setTaskID(Integer taskID) {
33+
public SaveObjectResponse setTaskID(Long taskID) {
3434
this.taskID = taskID;
3535
return this;
3636
}
@@ -41,7 +41,7 @@ public SaveObjectResponse setTaskID(Integer taskID) {
4141
* @return taskID
4242
*/
4343
@javax.annotation.Nullable
44-
public Integer getTaskID() {
44+
public Long getTaskID() {
4545
return taskID;
4646
}
4747

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/SaveSynonymResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
public class SaveSynonymResponse {
88

99
@SerializedName("taskID")
10-
private Integer taskID;
10+
private Long taskID;
1111

1212
@SerializedName("updatedAt")
1313
private String updatedAt;
1414

1515
@SerializedName("id")
1616
private String id;
1717

18-
public SaveSynonymResponse setTaskID(Integer taskID) {
18+
public SaveSynonymResponse setTaskID(Long taskID) {
1919
this.taskID = taskID;
2020
return this;
2121
}
@@ -26,7 +26,7 @@ public SaveSynonymResponse setTaskID(Integer taskID) {
2626
* @return taskID
2727
*/
2828
@javax.annotation.Nonnull
29-
public Integer getTaskID() {
29+
public Long getTaskID() {
3030
return taskID;
3131
}
3232

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/UpdatedAtResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
public class UpdatedAtResponse {
88

99
@SerializedName("taskID")
10-
private Integer taskID;
10+
private Long taskID;
1111

1212
@SerializedName("updatedAt")
1313
private String updatedAt;
1414

15-
public UpdatedAtResponse setTaskID(Integer taskID) {
15+
public UpdatedAtResponse setTaskID(Long taskID) {
1616
this.taskID = taskID;
1717
return this;
1818
}
@@ -23,7 +23,7 @@ public UpdatedAtResponse setTaskID(Integer taskID) {
2323
* @return taskID
2424
*/
2525
@javax.annotation.Nonnull
26-
public Integer getTaskID() {
26+
public Long getTaskID() {
2727
return taskID;
2828
}
2929

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
public class UpdatedAtWithObjectIdResponse {
88

99
@SerializedName("taskID")
10-
private Integer taskID;
10+
private Long taskID;
1111

1212
@SerializedName("updatedAt")
1313
private String updatedAt;
1414

1515
@SerializedName("objectID")
1616
private String objectID;
1717

18-
public UpdatedAtWithObjectIdResponse setTaskID(Integer taskID) {
18+
public UpdatedAtWithObjectIdResponse setTaskID(Long taskID) {
1919
this.taskID = taskID;
2020
return this;
2121
}
@@ -26,7 +26,7 @@ public UpdatedAtWithObjectIdResponse setTaskID(Integer taskID) {
2626
* @return taskID
2727
*/
2828
@javax.annotation.Nullable
29-
public Integer getTaskID() {
29+
public Long getTaskID() {
3030
return taskID;
3131
}
3232

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/UpdatedRuleResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class UpdatedRuleResponse {
1313
private String updatedAt;
1414

1515
@SerializedName("taskID")
16-
private Integer taskID;
16+
private Long taskID;
1717

1818
public UpdatedRuleResponse setObjectID(String objectID) {
1919
this.objectID = objectID;
@@ -45,7 +45,7 @@ public String getUpdatedAt() {
4545
return updatedAt;
4646
}
4747

48-
public UpdatedRuleResponse setTaskID(Integer taskID) {
48+
public UpdatedRuleResponse setTaskID(Long taskID) {
4949
this.taskID = taskID;
5050
return this;
5151
}
@@ -56,7 +56,7 @@ public UpdatedRuleResponse setTaskID(Integer taskID) {
5656
* @return taskID
5757
*/
5858
@javax.annotation.Nonnull
59-
public Integer getTaskID() {
59+
public Long getTaskID() {
6060
return taskID;
6161
}
6262

clients/algoliasearch-client-php/lib/Api/SearchClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ public function getSynonym($indexName, $objectID, $requestOptions = [])
18991899
* Check the status of a task.
19001900
*
19011901
* @param string $indexName The index in which to perform the request. (required)
1902-
* @param int $taskID Unique identifier of an task. Numeric value (up to 64bits). (required)
1902+
* @param array $taskID Unique identifier of an task. Numeric value (up to 64bits). (required)
19031903
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
19041904
*
19051905
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\Search\GetTaskResponse

clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ABTestResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel implemen
3232
protected static $modelFormats = [
3333
'index' => null,
3434
'abTestID' => null,
35-
'taskID' => null,
35+
'taskID' => 'int64',
3636
];
3737

3838
/**

clients/algoliasearch-client-php/lib/Model/Search/BatchResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BatchResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel implement
2929
* @var string[]
3030
*/
3131
protected static $modelFormats = [
32-
'taskID' => null,
32+
'taskID' => 'int64',
3333
'objectIDs' => null,
3434
];
3535

clients/algoliasearch-client-php/lib/Model/Search/DeletedAtResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DeletedAtResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel imple
3131
* @var string[]
3232
*/
3333
protected static $modelFormats = [
34-
'taskID' => null,
34+
'taskID' => 'int64',
3535
'deletedAt' => null,
3636
];
3737

clients/algoliasearch-client-php/lib/Model/Search/SaveObjectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SaveObjectResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel impl
3131
*/
3232
protected static $modelFormats = [
3333
'createdAt' => null,
34-
'taskID' => null,
34+
'taskID' => 'int64',
3535
'objectID' => null,
3636
];
3737

clients/algoliasearch-client-php/lib/Model/Search/SaveSynonymResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SaveSynonymResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel imp
3030
* @var string[]
3131
*/
3232
protected static $modelFormats = [
33-
'taskID' => null,
33+
'taskID' => 'int64',
3434
'updatedAt' => null,
3535
'id' => null,
3636
];

clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class UpdatedAtResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel imple
3131
* @var string[]
3232
*/
3333
protected static $modelFormats = [
34-
'taskID' => null,
34+
'taskID' => 'int64',
3535
'updatedAt' => null,
3636
];
3737

clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtWithObjectIdResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UpdatedAtWithObjectIdResponse extends \Algolia\AlgoliaSearch\Model\Abstrac
3232
* @var string[]
3333
*/
3434
protected static $modelFormats = [
35-
'taskID' => null,
35+
'taskID' => 'int64',
3636
'updatedAt' => null,
3737
'objectID' => null,
3838
];

clients/algoliasearch-client-php/lib/Model/Search/UpdatedRuleResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UpdatedRuleResponse extends \Algolia\AlgoliaSearch\Model\AbstractModel imp
3232
protected static $modelFormats = [
3333
'objectID' => null,
3434
'updatedAt' => null,
35-
'taskID' => null,
35+
'taskID' => 'int64',
3636
];
3737

3838
/**

specs/bundled/abtesting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ components:
217217
- $ref: '#/components/schemas/abTestsVariantSearchParams'
218218
taskID:
219219
type: integer
220+
format: int64
220221
description: taskID of the task to wait for.
221222
ABTestResponse:
222223
type: object

specs/bundled/algoliasearch-lite.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -716,16 +716,6 @@ components:
716716
oneOf:
717717
- $ref: '#/components/schemas/searchParamsString'
718718
- $ref: '#/components/schemas/searchParamsObject'
719-
abTestID:
720-
type: integer
721-
description: >-
722-
If a search encounters an index that is being A/B tested, abTestID
723-
reports the ongoing A/B test ID.
724-
abTestVariantID:
725-
type: integer
726-
description: >-
727-
If a search encounters an index that is being A/B tested,
728-
abTestVariantID reports the variant ID of the index used.
729719
nbHits:
730720
type: integer
731721
description: Number of hits that the search query matched.
@@ -754,9 +744,15 @@ components:
754744
- params
755745
properties:
756746
abTestID:
757-
$ref: '#/components/schemas/abTestID'
747+
type: integer
748+
description: >-
749+
If a search encounters an index that is being A/B tested, abTestID
750+
reports the ongoing A/B test ID.
758751
abTestVariantID:
759-
$ref: '#/components/schemas/abTestVariantID'
752+
type: integer
753+
description: >-
754+
If a search encounters an index that is being A/B tested,
755+
abTestVariantID reports the variant ID of the index used.
760756
aroundLatLng:
761757
type: string
762758
description: The computed geo location.
@@ -1050,6 +1046,7 @@ components:
10501046
- $ref: '#/components/schemas/baseBrowseResponse'
10511047
taskID:
10521048
type: integer
1049+
format: int64
10531050
description: taskID of the task to wait for.
10541051
deletedAt:
10551052
type: string

0 commit comments

Comments
 (0)