Skip to content

Commit

Permalink
feat: bump @seamapi/types 1.344.3 and */nextlove-sdk-generator to 1.1…
Browse files Browse the repository at this point in the history
…5.7 (#87)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrii Balitskyi <[email protected]>
Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2025
1 parent aff7d90 commit 0cbfa10
Show file tree
Hide file tree
Showing 24 changed files with 13,291 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
6.0.x
- name: Setup CSharpier
shell: bash
run: dotnet tool install csharpier -g
run: dotnet tool install csharpier -g --version 0.29.2
- name: Install dependencies
if: inputs.install_dependencies == 'true'
shell: bash
Expand Down
137 changes: 137 additions & 0 deletions output/csharp/src/Seam/Api/EncodersAcs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,143 @@ await EncodeCredentialAsync(
);
}

[DataContract(Name = "listRequest_request")]
public class ListRequest
{
[JsonConstructorAttribute]
protected ListRequest() { }

public ListRequest(
string? acsSystemId = default,
float? limit = default,
List<string>? acsSystemIds = default,
List<string>? acsEncoderIds = default
)
{
AcsSystemId = acsSystemId;
Limit = limit;
AcsSystemIds = acsSystemIds;
AcsEncoderIds = acsEncoderIds;
}

[DataMember(Name = "acs_system_id", IsRequired = false, EmitDefaultValue = false)]
public string? AcsSystemId { get; set; }

[DataMember(Name = "limit", IsRequired = false, EmitDefaultValue = false)]
public float? Limit { get; set; }

[DataMember(Name = "acs_system_ids", IsRequired = false, EmitDefaultValue = false)]
public List<string>? AcsSystemIds { get; set; }

[DataMember(Name = "acs_encoder_ids", IsRequired = false, EmitDefaultValue = false)]
public List<string>? AcsEncoderIds { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "listResponse_response")]
public class ListResponse
{
[JsonConstructorAttribute]
protected ListResponse() { }

public ListResponse(List<AcsEncoder> acsEncoders = default)
{
AcsEncoders = acsEncoders;
}

[DataMember(Name = "acs_encoders", IsRequired = false, EmitDefaultValue = false)]
public List<AcsEncoder> AcsEncoders { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

public List<AcsEncoder> List(ListRequest request)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return _seam.Post<ListResponse>("/acs/encoders/list", requestOptions).Data.AcsEncoders;
}

public List<AcsEncoder> List(
string? acsSystemId = default,
float? limit = default,
List<string>? acsSystemIds = default,
List<string>? acsEncoderIds = default
)
{
return List(
new ListRequest(
acsSystemId: acsSystemId,
limit: limit,
acsSystemIds: acsSystemIds,
acsEncoderIds: acsEncoderIds
)
);
}

public async Task<List<AcsEncoder>> ListAsync(ListRequest request)
{
var requestOptions = new RequestOptions();
requestOptions.Data = request;
return (await _seam.PostAsync<ListResponse>("/acs/encoders/list", requestOptions))
.Data
.AcsEncoders;
}

public async Task<List<AcsEncoder>> ListAsync(
string? acsSystemId = default,
float? limit = default,
List<string>? acsSystemIds = default,
List<string>? acsEncoderIds = default
)
{
return (
await ListAsync(
new ListRequest(
acsSystemId: acsSystemId,
limit: limit,
acsSystemIds: acsSystemIds,
acsEncoderIds: acsEncoderIds
)
)
);
}

[DataContract(Name = "scanCredentialRequest_request")]
public class ScanCredentialRequest
{
Expand Down
14 changes: 10 additions & 4 deletions output/csharp/src/Seam/Api/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,14 @@ public enum EventTypeEnum
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
ThermostatTemperatureReachedSetPoint = 72,

[EnumMember(Value = "thermostat.temperature_changed")]
ThermostatTemperatureChanged = 73,

[EnumMember(Value = "enrollment_automation.deleted")]
EnrollmentAutomationDeleted = 73,
EnrollmentAutomationDeleted = 74,

[EnumMember(Value = "phone.deactivated")]
PhoneDeactivated = 74,
PhoneDeactivated = 75,
}

[JsonConverter(typeof(SafeStringEnumConverter))]
Expand Down Expand Up @@ -624,11 +627,14 @@ public enum EventTypesEnum
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
ThermostatTemperatureReachedSetPoint = 72,

[EnumMember(Value = "thermostat.temperature_changed")]
ThermostatTemperatureChanged = 73,

[EnumMember(Value = "enrollment_automation.deleted")]
EnrollmentAutomationDeleted = 73,
EnrollmentAutomationDeleted = 74,

[EnumMember(Value = "phone.deactivated")]
PhoneDeactivated = 74,
PhoneDeactivated = 75,
}

[DataMember(Name = "access_code_id", IsRequired = false, EmitDefaultValue = false)]
Expand Down
Loading

0 comments on commit 0cbfa10

Please sign in to comment.