Skip to content

Commit a9aa743

Browse files
feat(deps-dev): bump @seamapi/types from 1.347.0 to 1.351.1 in the seam group (#102)
* feat(deps-dev): bump @seamapi/types in the seam group Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.347.0 to 1.351.1 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](seamapi/types@v1.347.0...v1.351.1) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] <support@github.com> * ci: Generate code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <seambot@getseam.com>
1 parent 3e6a7cf commit a9aa743

File tree

3 files changed

+97
-5
lines changed

3 files changed

+97
-5
lines changed

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

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,98 @@ public async Task DeactivateAsync(string deviceId = default)
7676
await DeactivateAsync(new DeactivateRequest(deviceId: deviceId));
7777
}
7878

79+
[DataContract(Name = "getRequest_request")]
80+
public class GetRequest
81+
{
82+
[JsonConstructorAttribute]
83+
protected GetRequest() { }
84+
85+
public GetRequest(string deviceId = default)
86+
{
87+
DeviceId = deviceId;
88+
}
89+
90+
[DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)]
91+
public string DeviceId { get; set; }
92+
93+
public override string ToString()
94+
{
95+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
96+
97+
StringWriter stringWriter = new StringWriter(
98+
new StringBuilder(256),
99+
System.Globalization.CultureInfo.InvariantCulture
100+
);
101+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
102+
{
103+
jsonTextWriter.IndentChar = ' ';
104+
jsonTextWriter.Indentation = 2;
105+
jsonTextWriter.Formatting = Formatting.Indented;
106+
jsonSerializer.Serialize(jsonTextWriter, this, null);
107+
}
108+
109+
return stringWriter.ToString();
110+
}
111+
}
112+
113+
[DataContract(Name = "getResponse_response")]
114+
public class GetResponse
115+
{
116+
[JsonConstructorAttribute]
117+
protected GetResponse() { }
118+
119+
public GetResponse(Phone phone = default)
120+
{
121+
Phone = phone;
122+
}
123+
124+
[DataMember(Name = "phone", IsRequired = false, EmitDefaultValue = false)]
125+
public Phone Phone { get; set; }
126+
127+
public override string ToString()
128+
{
129+
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
130+
131+
StringWriter stringWriter = new StringWriter(
132+
new StringBuilder(256),
133+
System.Globalization.CultureInfo.InvariantCulture
134+
);
135+
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
136+
{
137+
jsonTextWriter.IndentChar = ' ';
138+
jsonTextWriter.Indentation = 2;
139+
jsonTextWriter.Formatting = Formatting.Indented;
140+
jsonSerializer.Serialize(jsonTextWriter, this, null);
141+
}
142+
143+
return stringWriter.ToString();
144+
}
145+
}
146+
147+
public Phone Get(GetRequest request)
148+
{
149+
var requestOptions = new RequestOptions();
150+
requestOptions.Data = request;
151+
return _seam.Post<GetResponse>("/phones/get", requestOptions).Data.Phone;
152+
}
153+
154+
public Phone Get(string deviceId = default)
155+
{
156+
return Get(new GetRequest(deviceId: deviceId));
157+
}
158+
159+
public async Task<Phone> GetAsync(GetRequest request)
160+
{
161+
var requestOptions = new RequestOptions();
162+
requestOptions.Data = request;
163+
return (await _seam.PostAsync<GetResponse>("/phones/get", requestOptions)).Data.Phone;
164+
}
165+
166+
public async Task<Phone> GetAsync(string deviceId = default)
167+
{
168+
return (await GetAsync(new GetRequest(deviceId: deviceId)));
169+
}
170+
79171
[DataContract(Name = "listRequest_request")]
80172
public class ListRequest
81173
{

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"devDependencies": {
6161
"@seamapi/nextlove-sdk-generator": "^1.15.8",
62-
"@seamapi/types": "^1.347.0",
62+
"@seamapi/types": "^1.351.1",
6363
"@types/node": "^18.19.11",
6464
"ava": "^5.0.1",
6565
"axios": "^1.5.0",

0 commit comments

Comments
 (0)