Skip to content

Commit ec84ac9

Browse files
dependabot[bot]seambotandrii-balitskyi
authored
feat(deps-dev): bump @seamapi/nextlove-sdk-generator from 1.15.8 to 1.16.0 (#104)
* feat(deps-dev): bump @seamapi/nextlove-sdk-generator Bumps [@seamapi/nextlove-sdk-generator](https://github.com/seamapi/nextlove-sdk-generator) from 1.15.8 to 1.16.0. - [Commits](https://github.com/seamapi/nextlove-sdk-generator/commits) --- updated-dependencies: - dependency-name: "@seamapi/nextlove-sdk-generator" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * ci: Generate code * Bump sdk generator to 1.16.1 * ci: Generate code * Delete old no more needed tests --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <[email protected]> Co-authored-by: Andrii Balitskyi <[email protected]> Co-authored-by: Andrii Balitskyi <[email protected]>
1 parent 8e81c77 commit ec84ac9

File tree

7 files changed

+6
-358
lines changed

7 files changed

+6
-358
lines changed

output/csharp/src/Seam.Test/Client/SeamTests.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -89,42 +89,6 @@ public void Test()
8989
Assert.Throws<SeamException>(() => seam.AccessCodes.Get(accessCodeId: "nonexistent"));
9090
}
9191

92-
[Fact]
93-
public void TestDelete()
94-
{
95-
var device = seam
96-
.Devices.List()
97-
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);
98-
99-
Assert.NotNull(device);
100-
101-
seam.Devices.Delete(deviceId: device.DeviceId);
102-
103-
var device2 = seam
104-
.Devices.List()
105-
.First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock);
106-
107-
Assert.NotEqual(device.DeviceId, device2.DeviceId);
108-
}
109-
110-
[Fact]
111-
public async void TestDeleteAsync()
112-
{
113-
var device = (await seam.Devices.ListAsync()).First(d =>
114-
d.DeviceType == Device.DeviceTypeEnum.AugustLock
115-
);
116-
117-
Assert.NotNull(device);
118-
119-
await seam.Devices.DeleteAsync(deviceId: device.DeviceId);
120-
121-
var device2 = (await seam.Devices.ListAsync()).First(d =>
122-
d.DeviceType == Device.DeviceTypeEnum.AugustLock
123-
);
124-
125-
Assert.NotEqual(device.DeviceId, device2.DeviceId);
126-
}
127-
12892
[Fact]
12993
public void TestUnknownEnumValue()
13094
{

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

Lines changed: 0 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -522,166 +522,6 @@ await CreateAsync(
522522
);
523523
}
524524

525-
[DataContract(Name = "createOfflineCodeRequest_request")]
526-
public class CreateOfflineCodeRequest
527-
{
528-
[JsonConstructorAttribute]
529-
protected CreateOfflineCodeRequest() { }
530-
531-
public CreateOfflineCodeRequest(
532-
string acsUserId = default,
533-
string allowedAcsEntranceId = default,
534-
string? endsAt = default,
535-
bool? isOneTimeUse = default,
536-
string? startsAt = default
537-
)
538-
{
539-
AcsUserId = acsUserId;
540-
AllowedAcsEntranceId = allowedAcsEntranceId;
541-
EndsAt = endsAt;
542-
IsOneTimeUse = isOneTimeUse;
543-
StartsAt = startsAt;
544-
}
545-
546-
[DataMember(Name = "acs_user_id", IsRequired = true, EmitDefaultValue = false)]
547-
public string AcsUserId { get; set; }
548-
549-
[DataMember(
550-
Name = "allowed_acs_entrance_id",
551-
IsRequired = true,
552-
EmitDefaultValue = false
553-
)]
554-
public string AllowedAcsEntranceId { get; set; }
555-
556-
[DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)]
557-
public string? EndsAt { get; set; }
558-
559-
[DataMember(Name = "is_one_time_use", IsRequired = false, EmitDefaultValue = false)]
560-
public bool? IsOneTimeUse { get; set; }
561-
562-
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
563-
public string? StartsAt { get; set; }
564-
565-
public override string ToString()
566-
{
567-
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
568-
569-
StringWriter stringWriter = new StringWriter(
570-
new StringBuilder(256),
571-
System.Globalization.CultureInfo.InvariantCulture
572-
);
573-
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
574-
{
575-
jsonTextWriter.IndentChar = ' ';
576-
jsonTextWriter.Indentation = 2;
577-
jsonTextWriter.Formatting = Formatting.Indented;
578-
jsonSerializer.Serialize(jsonTextWriter, this, null);
579-
}
580-
581-
return stringWriter.ToString();
582-
}
583-
}
584-
585-
[DataContract(Name = "createOfflineCodeResponse_response")]
586-
public class CreateOfflineCodeResponse
587-
{
588-
[JsonConstructorAttribute]
589-
protected CreateOfflineCodeResponse() { }
590-
591-
public CreateOfflineCodeResponse(AcsCredential acsCredential = default)
592-
{
593-
AcsCredential = acsCredential;
594-
}
595-
596-
[DataMember(Name = "acs_credential", IsRequired = false, EmitDefaultValue = false)]
597-
public AcsCredential AcsCredential { get; set; }
598-
599-
public override string ToString()
600-
{
601-
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
602-
603-
StringWriter stringWriter = new StringWriter(
604-
new StringBuilder(256),
605-
System.Globalization.CultureInfo.InvariantCulture
606-
);
607-
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
608-
{
609-
jsonTextWriter.IndentChar = ' ';
610-
jsonTextWriter.Indentation = 2;
611-
jsonTextWriter.Formatting = Formatting.Indented;
612-
jsonSerializer.Serialize(jsonTextWriter, this, null);
613-
}
614-
615-
return stringWriter.ToString();
616-
}
617-
}
618-
619-
public AcsCredential CreateOfflineCode(CreateOfflineCodeRequest request)
620-
{
621-
var requestOptions = new RequestOptions();
622-
requestOptions.Data = request;
623-
return _seam
624-
.Post<CreateOfflineCodeResponse>(
625-
"/acs/credentials/create_offline_code",
626-
requestOptions
627-
)
628-
.Data.AcsCredential;
629-
}
630-
631-
public AcsCredential CreateOfflineCode(
632-
string acsUserId = default,
633-
string allowedAcsEntranceId = default,
634-
string? endsAt = default,
635-
bool? isOneTimeUse = default,
636-
string? startsAt = default
637-
)
638-
{
639-
return CreateOfflineCode(
640-
new CreateOfflineCodeRequest(
641-
acsUserId: acsUserId,
642-
allowedAcsEntranceId: allowedAcsEntranceId,
643-
endsAt: endsAt,
644-
isOneTimeUse: isOneTimeUse,
645-
startsAt: startsAt
646-
)
647-
);
648-
}
649-
650-
public async Task<AcsCredential> CreateOfflineCodeAsync(CreateOfflineCodeRequest request)
651-
{
652-
var requestOptions = new RequestOptions();
653-
requestOptions.Data = request;
654-
return (
655-
await _seam.PostAsync<CreateOfflineCodeResponse>(
656-
"/acs/credentials/create_offline_code",
657-
requestOptions
658-
)
659-
)
660-
.Data
661-
.AcsCredential;
662-
}
663-
664-
public async Task<AcsCredential> CreateOfflineCodeAsync(
665-
string acsUserId = default,
666-
string allowedAcsEntranceId = default,
667-
string? endsAt = default,
668-
bool? isOneTimeUse = default,
669-
string? startsAt = default
670-
)
671-
{
672-
return (
673-
await CreateOfflineCodeAsync(
674-
new CreateOfflineCodeRequest(
675-
acsUserId: acsUserId,
676-
allowedAcsEntranceId: allowedAcsEntranceId,
677-
endsAt: endsAt,
678-
isOneTimeUse: isOneTimeUse,
679-
startsAt: startsAt
680-
)
681-
)
682-
);
683-
}
684-
685525
[DataContract(Name = "deleteRequest_request")]
686526
public class DeleteRequest
687527
{

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

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,64 +18,6 @@ public Devices(ISeamClient seam)
1818
_seam = seam;
1919
}
2020

21-
[DataContract(Name = "deleteRequest_request")]
22-
public class DeleteRequest
23-
{
24-
[JsonConstructorAttribute]
25-
protected DeleteRequest() { }
26-
27-
public DeleteRequest(string deviceId = default)
28-
{
29-
DeviceId = deviceId;
30-
}
31-
32-
[DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)]
33-
public string DeviceId { get; set; }
34-
35-
public override string ToString()
36-
{
37-
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
38-
39-
StringWriter stringWriter = new StringWriter(
40-
new StringBuilder(256),
41-
System.Globalization.CultureInfo.InvariantCulture
42-
);
43-
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
44-
{
45-
jsonTextWriter.IndentChar = ' ';
46-
jsonTextWriter.Indentation = 2;
47-
jsonTextWriter.Formatting = Formatting.Indented;
48-
jsonSerializer.Serialize(jsonTextWriter, this, null);
49-
}
50-
51-
return stringWriter.ToString();
52-
}
53-
}
54-
55-
public void Delete(DeleteRequest request)
56-
{
57-
var requestOptions = new RequestOptions();
58-
requestOptions.Data = request;
59-
_seam.Post<object>("/devices/delete", requestOptions);
60-
}
61-
62-
public void Delete(string deviceId = default)
63-
{
64-
Delete(new DeleteRequest(deviceId: deviceId));
65-
}
66-
67-
public async Task DeleteAsync(DeleteRequest request)
68-
{
69-
var requestOptions = new RequestOptions();
70-
requestOptions.Data = request;
71-
await _seam.PostAsync<object>("/devices/delete", requestOptions);
72-
}
73-
74-
public async Task DeleteAsync(string deviceId = default)
75-
{
76-
await DeleteAsync(new DeleteRequest(deviceId: deviceId));
77-
}
78-
7921
[DataContract(Name = "getRequest_request")]
8022
public class GetRequest
8123
{

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

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -583,104 +583,6 @@ await DeleteClimatePresetAsync(
583583
);
584584
}
585585

586-
[DataContract(Name = "getRequest_request")]
587-
public class GetRequest
588-
{
589-
[JsonConstructorAttribute]
590-
protected GetRequest() { }
591-
592-
public GetRequest(string? deviceId = default, string? name = default)
593-
{
594-
DeviceId = deviceId;
595-
Name = name;
596-
}
597-
598-
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
599-
public string? DeviceId { get; set; }
600-
601-
[DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
602-
public string? Name { get; set; }
603-
604-
public override string ToString()
605-
{
606-
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
607-
608-
StringWriter stringWriter = new StringWriter(
609-
new StringBuilder(256),
610-
System.Globalization.CultureInfo.InvariantCulture
611-
);
612-
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
613-
{
614-
jsonTextWriter.IndentChar = ' ';
615-
jsonTextWriter.Indentation = 2;
616-
jsonTextWriter.Formatting = Formatting.Indented;
617-
jsonSerializer.Serialize(jsonTextWriter, this, null);
618-
}
619-
620-
return stringWriter.ToString();
621-
}
622-
}
623-
624-
[DataContract(Name = "getResponse_response")]
625-
public class GetResponse
626-
{
627-
[JsonConstructorAttribute]
628-
protected GetResponse() { }
629-
630-
public GetResponse(Device thermostat = default)
631-
{
632-
Thermostat = thermostat;
633-
}
634-
635-
[DataMember(Name = "thermostat", IsRequired = false, EmitDefaultValue = false)]
636-
public Device Thermostat { get; set; }
637-
638-
public override string ToString()
639-
{
640-
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
641-
642-
StringWriter stringWriter = new StringWriter(
643-
new StringBuilder(256),
644-
System.Globalization.CultureInfo.InvariantCulture
645-
);
646-
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
647-
{
648-
jsonTextWriter.IndentChar = ' ';
649-
jsonTextWriter.Indentation = 2;
650-
jsonTextWriter.Formatting = Formatting.Indented;
651-
jsonSerializer.Serialize(jsonTextWriter, this, null);
652-
}
653-
654-
return stringWriter.ToString();
655-
}
656-
}
657-
658-
public Device Get(GetRequest request)
659-
{
660-
var requestOptions = new RequestOptions();
661-
requestOptions.Data = request;
662-
return _seam.Post<GetResponse>("/thermostats/get", requestOptions).Data.Thermostat;
663-
}
664-
665-
public Device Get(string? deviceId = default, string? name = default)
666-
{
667-
return Get(new GetRequest(deviceId: deviceId, name: name));
668-
}
669-
670-
public async Task<Device> GetAsync(GetRequest request)
671-
{
672-
var requestOptions = new RequestOptions();
673-
requestOptions.Data = request;
674-
return (await _seam.PostAsync<GetResponse>("/thermostats/get", requestOptions))
675-
.Data
676-
.Thermostat;
677-
}
678-
679-
public async Task<Device> GetAsync(string? deviceId = default, string? name = default)
680-
{
681-
return (await GetAsync(new GetRequest(deviceId: deviceId, name: name)));
682-
}
683-
684586
[DataContract(Name = "heatRequest_request")]
685587
public class HeatRequest
686588
{

output/csharp/src/Seam/Seam.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<PackageId>Seam</PackageId>
99

10-
<PackageVersion>0.28.0</PackageVersion>
10+
<PackageVersion>0.29.0</PackageVersion>
1111

1212
<Authors>Seam</Authors>
1313

0 commit comments

Comments
 (0)