Skip to content

Commit b8af896

Browse files
authored
Merge branch 'main' into fix/another-test
2 parents 0b25b0d + 2f3ea2e commit b8af896

File tree

64 files changed

+1289
-452
lines changed

Some content is hidden

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

64 files changed

+1289
-452
lines changed

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,21 @@ public partial class TimeRange
1919
/// <summary>
2020
/// Initializes a new instance of the TimeRange class.
2121
/// </summary>
22-
[JsonConstructor]
2322
public TimeRange() { }
2423

25-
/// <summary>
26-
/// Initializes a new instance of the TimeRange class.
27-
/// </summary>
28-
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29-
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30-
public TimeRange(long from, long until)
31-
{
32-
From = from;
33-
Until = until;
34-
}
35-
3624
/// <summary>
3725
/// When the rule should start to be active, in Unix epoch time.
3826
/// </summary>
3927
/// <value>When the rule should start to be active, in Unix epoch time.</value>
4028
[JsonPropertyName("from")]
41-
public long From { get; set; }
29+
public long? From { get; set; }
4230

4331
/// <summary>
4432
/// When the rule should stop to be active, in Unix epoch time.
4533
/// </summary>
4634
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4735
[JsonPropertyName("until")]
48-
public long Until { get; set; }
36+
public long? Until { get; set; }
4937

5038
/// <summary>
5139
/// Returns the string presentation of the object

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,21 @@ public partial class TimeRange
1919
/// <summary>
2020
/// Initializes a new instance of the TimeRange class.
2121
/// </summary>
22-
[JsonConstructor]
2322
public TimeRange() { }
2423

25-
/// <summary>
26-
/// Initializes a new instance of the TimeRange class.
27-
/// </summary>
28-
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
29-
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
30-
public TimeRange(long from, long until)
31-
{
32-
From = from;
33-
Until = until;
34-
}
35-
3624
/// <summary>
3725
/// When the rule should start to be active, in Unix epoch time.
3826
/// </summary>
3927
/// <value>When the rule should start to be active, in Unix epoch time.</value>
4028
[JsonPropertyName("from")]
41-
public long From { get; set; }
29+
public long? From { get; set; }
4230

4331
/// <summary>
4432
/// When the rule should stop to be active, in Unix epoch time.
4533
/// </summary>
4634
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4735
[JsonPropertyName("until")]
48-
public long Until { get; set; }
36+
public long? Until { get; set; }
4937

5038
/// <summary>
5139
/// Returns the string presentation of the object

clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/time_range.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ part 'time_range.g.dart';
99
final class TimeRange {
1010
/// Returns a new [TimeRange] instance.
1111
const TimeRange({
12-
required this.from,
13-
required this.until,
12+
this.from,
13+
this.until,
1414
});
1515

1616
/// When the rule should start to be active, in Unix epoch time.
1717
@JsonKey(name: r'from')
18-
final int from;
18+
final int? from;
1919

2020
/// When the rule should stop to be active, in Unix epoch time.
2121
@JsonKey(name: r'until')
22-
final int until;
22+
final int? until;
2323

2424
@override
2525
bool operator ==(Object other) =>

clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/time_range.g.dart

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

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/time_range.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ part 'time_range.g.dart';
99
final class TimeRange {
1010
/// Returns a new [TimeRange] instance.
1111
const TimeRange({
12-
required this.from,
13-
required this.until,
12+
this.from,
13+
this.until,
1414
});
1515

1616
/// When the rule should start to be active, in Unix epoch time.
1717
@JsonKey(name: r'from')
18-
final int from;
18+
final int? from;
1919

2020
/// When the rule should stop to be active, in Unix epoch time.
2121
@JsonKey(name: r'until')
22-
final int until;
22+
final int? until;
2323

2424
@override
2525
bool operator ==(Object other) =>

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/time_range.g.dart

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

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

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

0 commit comments

Comments
 (0)