Skip to content

Commit 7ce84bf

Browse files
algolia-botFluf22millotp
committed
fix(specs): update time range number types [skip-bc] (#4023) (generated) [skip ci]
Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 22f49f1 commit 7ce84bf

File tree

23 files changed

+80
-72
lines changed

23 files changed

+80
-72
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/TimeRange.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public TimeRange() { }
2626
/// </summary>
2727
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
2828
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
29-
public TimeRange(int from, int until)
29+
public TimeRange(long from, long until)
3030
{
3131
From = from;
3232
Until = until;
@@ -37,14 +37,14 @@ public TimeRange(int from, int until)
3737
/// </summary>
3838
/// <value>When the rule should start to be active, in Unix epoch time.</value>
3939
[JsonPropertyName("from")]
40-
public int From { get; set; }
40+
public long From { get; set; }
4141

4242
/// <summary>
4343
/// When the rule should stop to be active, in Unix epoch time.
4444
/// </summary>
4545
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4646
[JsonPropertyName("until")]
47-
public int Until { get; set; }
47+
public long Until { get; set; }
4848

4949
/// <summary>
5050
/// Returns the string presentation of the object

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/TimeRange.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public TimeRange() { }
2626
/// </summary>
2727
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
2828
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
29-
public TimeRange(int from, int until)
29+
public TimeRange(long from, long until)
3030
{
3131
From = from;
3232
Until = until;
@@ -37,14 +37,14 @@ public TimeRange(int from, int until)
3737
/// </summary>
3838
/// <value>When the rule should start to be active, in Unix epoch time.</value>
3939
[JsonPropertyName("from")]
40-
public int From { get; set; }
40+
public long From { get; set; }
4141

4242
/// <summary>
4343
/// When the rule should stop to be active, in Unix epoch time.
4444
/// </summary>
4545
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4646
[JsonPropertyName("until")]
47-
public int Until { get; set; }
47+
public long Until { get; set; }
4848

4949
/// <summary>
5050
/// Returns the string presentation of the object

clients/algoliasearch-client-go/algolia/recommend/model_time_range.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/search/model_time_range.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
public class TimeRange {
1212

1313
@JsonProperty("from")
14-
private Integer from;
14+
private Long from;
1515

1616
@JsonProperty("until")
17-
private Integer until;
17+
private Long until;
1818

19-
public TimeRange setFrom(Integer from) {
19+
public TimeRange setFrom(Long from) {
2020
this.from = from;
2121
return this;
2222
}
2323

2424
/** When the rule should start to be active, in Unix epoch time. */
2525
@javax.annotation.Nonnull
26-
public Integer getFrom() {
26+
public Long getFrom() {
2727
return from;
2828
}
2929

30-
public TimeRange setUntil(Integer until) {
30+
public TimeRange setUntil(Long until) {
3131
this.until = until;
3232
return this;
3333
}
3434

3535
/** When the rule should stop to be active, in Unix epoch time. */
3636
@javax.annotation.Nonnull
37-
public Integer getUntil() {
37+
public Long getUntil() {
3838
return until;
3939
}
4040

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/search/TimeRange.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
public class TimeRange {
1212

1313
@JsonProperty("from")
14-
private Integer from;
14+
private Long from;
1515

1616
@JsonProperty("until")
17-
private Integer until;
17+
private Long until;
1818

19-
public TimeRange setFrom(Integer from) {
19+
public TimeRange setFrom(Long from) {
2020
this.from = from;
2121
return this;
2222
}
2323

2424
/** When the rule should start to be active, in Unix epoch time. */
2525
@javax.annotation.Nonnull
26-
public Integer getFrom() {
26+
public Long getFrom() {
2727
return from;
2828
}
2929

30-
public TimeRange setUntil(Integer until) {
30+
public TimeRange setUntil(Long until) {
3131
this.until = until;
3232
return this;
3333
}
3434

3535
/** When the rule should stop to be active, in Unix epoch time. */
3636
@javax.annotation.Nonnull
37-
public Integer getUntil() {
37+
public Long getUntil() {
3838
return until;
3939
}
4040

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/recommend/TimeRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Int,
17+
@SerialName(value = "from") val from: Long,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Int,
20+
@SerialName(value = "until") val until: Long,
2121
)

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/search/TimeRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Int,
17+
@SerialName(value = "from") val from: Long,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Int,
20+
@SerialName(value = "until") val until: Long,
2121
)

clients/algoliasearch-client-php/lib/Model/Recommend/TimeRange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class TimeRange extends AbstractModel implements ModelInterface, \ArrayAccess, \
3030
* @var string[]
3131
*/
3232
protected static $modelFormats = [
33-
'from' => null,
34-
'until' => null,
33+
'from' => 'int64',
34+
'until' => 'int64',
3535
];
3636

3737
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class TimeRange extends AbstractModel implements ModelInterface, \ArrayAccess, \
3030
* @var string[]
3131
*/
3232
protected static $modelFormats = [
33-
'from' => null,
34-
'until' => null,
33+
'from' => 'int64',
34+
'until' => 'int64',
3535
];
3636

3737
/**

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/recommend/TimeRange.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ package algoliasearch.recommend
3737
* When the rule should stop to be active, in Unix epoch time.
3838
*/
3939
case class TimeRange(
40-
from: Int,
41-
until: Int
40+
from: Long,
41+
until: Long
4242
)

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/search/TimeRange.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ package algoliasearch.search
4141
* When the rule should stop to be active, in Unix epoch time.
4242
*/
4343
case class TimeRange(
44-
from: Int,
45-
until: Int
44+
from: Long,
45+
until: Long
4646
)

clients/algoliasearch-client-swift/Sources/Recommend/Models/RecommendTimeRange.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import Foundation
88

99
public struct RecommendTimeRange: Codable, JSONEncodable {
1010
/// When the rule should start to be active, in Unix epoch time.
11-
public var from: Int
11+
public var from: Int64
1212
/// When the rule should stop to be active, in Unix epoch time.
13-
public var until: Int
13+
public var until: Int64
1414

15-
public init(from: Int, until: Int) {
15+
public init(from: Int64, until: Int64) {
1616
self.from = from
1717
self.until = until
1818
}

clients/algoliasearch-client-swift/Sources/Search/Models/SearchTimeRange.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import Foundation
88

99
public struct SearchTimeRange: Codable, JSONEncodable {
1010
/// When the rule should start to be active, in Unix epoch time.
11-
public var from: Int
11+
public var from: Int64
1212
/// When the rule should stop to be active, in Unix epoch time.
13-
public var until: Int
13+
public var until: Int64
1414

15-
public init(from: Int, until: Int) {
15+
public init(from: Int64, until: Int64) {
1616
self.from = from
1717
self.until = until
1818
}

specs/bundled/recommend.doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5814,9 +5814,11 @@ components:
58145814
properties:
58155815
from:
58165816
type: integer
5817+
format: int64
58175818
description: When the rule should start to be active, in Unix epoch time.
58185819
until:
58195820
type: integer
5821+
format: int64
58205822
description: When the rule should stop to be active, in Unix epoch time.
58215823
required:
58225824
- from

specs/bundled/recommend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,9 +3720,11 @@ components:
37203720
properties:
37213721
from:
37223722
type: integer
3723+
format: int64
37233724
description: When the rule should start to be active, in Unix epoch time.
37243725
until:
37253726
type: integer
3727+
format: int64
37263728
description: When the rule should stop to be active, in Unix epoch time.
37273729
required:
37283730
- from

0 commit comments

Comments
 (0)