Skip to content

Commit 0cbfa10

Browse files
dependabot[bot]andrii-balitskyiseambot
authored
feat: bump @seamapi/types 1.344.3 and */nextlove-sdk-generator to 1.15.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]>
1 parent aff7d90 commit 0cbfa10

24 files changed

+13291
-174
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
6.0.x
4444
- name: Setup CSharpier
4545
shell: bash
46-
run: dotnet tool install csharpier -g
46+
run: dotnet tool install csharpier -g --version 0.29.2
4747
- name: Install dependencies
4848
if: inputs.install_dependencies == 'true'
4949
shell: bash

output/csharp/src/Seam/Api/EncodersAcs.cs

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,143 @@ await EncodeCredentialAsync(
144144
);
145145
}
146146

147+
[DataContract(Name = "listRequest_request")]
148+
public class ListRequest
149+
{
150+
[JsonConstructorAttribute]
151+
protected ListRequest() { }
152+
153+
public ListRequest(
154+
string? acsSystemId = default,
155+
float? limit = default,
156+
List<string>? acsSystemIds = default,
157+
List<string>? acsEncoderIds = default
158+
)
159+
{
160+
AcsSystemId = acsSystemId;
161+
Limit = limit;
162+
AcsSystemIds = acsSystemIds;
163+
AcsEncoderIds = acsEncoderIds;
164+
}
165+
166+
[DataMember(Name = "acs_system_id", IsRequired = false, EmitDefaultValue = false)]
167+
public string? AcsSystemId { get; set; }
168+
169+
[DataMember(Name = "limit", IsRequired = false, EmitDefaultValue = false)]
170+
public float? Limit { get; set; }
171+
172+
[DataMember(Name = "acs_system_ids", IsRequired = false, EmitDefaultValue = false)]
173+
public List<string>? AcsSystemIds { get; set; }
174+
175+
[DataMember(Name = "acs_encoder_ids", IsRequired = false, EmitDefaultValue = false)]
176+
public List<string>? AcsEncoderIds { get; set; }
177+
178+
public override string ToString()
179+
{
180+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
181+
182+
StringWriter stringWriter = new StringWriter(
183+
new StringBuilder(256),
184+
System.Globalization.CultureInfo.InvariantCulture
185+
);
186+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
187+
{
188+
jsonTextWriter.IndentChar = ' ';
189+
jsonTextWriter.Indentation = 2;
190+
jsonTextWriter.Formatting = Formatting.Indented;
191+
jsonSerializer.Serialize(jsonTextWriter, this, null);
192+
}
193+
194+
return stringWriter.ToString();
195+
}
196+
}
197+
198+
[DataContract(Name = "listResponse_response")]
199+
public class ListResponse
200+
{
201+
[JsonConstructorAttribute]
202+
protected ListResponse() { }
203+
204+
public ListResponse(List<AcsEncoder> acsEncoders = default)
205+
{
206+
AcsEncoders = acsEncoders;
207+
}
208+
209+
[DataMember(Name = "acs_encoders", IsRequired = false, EmitDefaultValue = false)]
210+
public List<AcsEncoder> AcsEncoders { get; set; }
211+
212+
public override string ToString()
213+
{
214+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
215+
216+
StringWriter stringWriter = new StringWriter(
217+
new StringBuilder(256),
218+
System.Globalization.CultureInfo.InvariantCulture
219+
);
220+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
221+
{
222+
jsonTextWriter.IndentChar = ' ';
223+
jsonTextWriter.Indentation = 2;
224+
jsonTextWriter.Formatting = Formatting.Indented;
225+
jsonSerializer.Serialize(jsonTextWriter, this, null);
226+
}
227+
228+
return stringWriter.ToString();
229+
}
230+
}
231+
232+
public List<AcsEncoder> List(ListRequest request)
233+
{
234+
var requestOptions = new RequestOptions();
235+
requestOptions.Data = request;
236+
return _seam.Post<ListResponse>("/acs/encoders/list", requestOptions).Data.AcsEncoders;
237+
}
238+
239+
public List<AcsEncoder> List(
240+
string? acsSystemId = default,
241+
float? limit = default,
242+
List<string>? acsSystemIds = default,
243+
List<string>? acsEncoderIds = default
244+
)
245+
{
246+
return List(
247+
new ListRequest(
248+
acsSystemId: acsSystemId,
249+
limit: limit,
250+
acsSystemIds: acsSystemIds,
251+
acsEncoderIds: acsEncoderIds
252+
)
253+
);
254+
}
255+
256+
public async Task<List<AcsEncoder>> ListAsync(ListRequest request)
257+
{
258+
var requestOptions = new RequestOptions();
259+
requestOptions.Data = request;
260+
return (await _seam.PostAsync<ListResponse>("/acs/encoders/list", requestOptions))
261+
.Data
262+
.AcsEncoders;
263+
}
264+
265+
public async Task<List<AcsEncoder>> ListAsync(
266+
string? acsSystemId = default,
267+
float? limit = default,
268+
List<string>? acsSystemIds = default,
269+
List<string>? acsEncoderIds = default
270+
)
271+
{
272+
return (
273+
await ListAsync(
274+
new ListRequest(
275+
acsSystemId: acsSystemId,
276+
limit: limit,
277+
acsSystemIds: acsSystemIds,
278+
acsEncoderIds: acsEncoderIds
279+
)
280+
)
281+
);
282+
}
283+
147284
[DataContract(Name = "scanCredentialRequest_request")]
148285
public class ScanCredentialRequest
149286
{

output/csharp/src/Seam/Api/Events.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,14 @@ public enum EventTypeEnum
395395
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
396396
ThermostatTemperatureReachedSetPoint = 72,
397397

398+
[EnumMember(Value = "thermostat.temperature_changed")]
399+
ThermostatTemperatureChanged = 73,
400+
398401
[EnumMember(Value = "enrollment_automation.deleted")]
399-
EnrollmentAutomationDeleted = 73,
402+
EnrollmentAutomationDeleted = 74,
400403

401404
[EnumMember(Value = "phone.deactivated")]
402-
PhoneDeactivated = 74,
405+
PhoneDeactivated = 75,
403406
}
404407

405408
[JsonConverter(typeof(SafeStringEnumConverter))]
@@ -624,11 +627,14 @@ public enum EventTypesEnum
624627
[EnumMember(Value = "thermostat.temperature_reached_set_point")]
625628
ThermostatTemperatureReachedSetPoint = 72,
626629

630+
[EnumMember(Value = "thermostat.temperature_changed")]
631+
ThermostatTemperatureChanged = 73,
632+
627633
[EnumMember(Value = "enrollment_automation.deleted")]
628-
EnrollmentAutomationDeleted = 73,
634+
EnrollmentAutomationDeleted = 74,
629635

630636
[EnumMember(Value = "phone.deactivated")]
631-
PhoneDeactivated = 74,
637+
PhoneDeactivated = 75,
632638
}
633639

634640
[DataMember(Name = "access_code_id", IsRequired = false, EmitDefaultValue = false)]

0 commit comments

Comments
 (0)