Skip to content

Commit

Permalink
feat: generate sdk
Browse files Browse the repository at this point in the history
* generate sdk

* upgrade nextlove sdk generator
  • Loading branch information
mxsdev authored Mar 15, 2024
1 parent ba35949 commit cd4ab49
Show file tree
Hide file tree
Showing 15 changed files with 1,596 additions and 166 deletions.
19 changes: 14 additions & 5 deletions output/csharp/src/Seam/Api/ClientSessions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,15 @@ public ListRequest(
string? clientSessionId = default,
string? userIdentifierKey = default,
string? connectWebviewId = default,
bool? withoutUserIdentifierKey = default
bool? withoutUserIdentifierKey = default,
string? userIdentityId = default
)
{
ClientSessionId = clientSessionId;
UserIdentifierKey = userIdentifierKey;
ConnectWebviewId = connectWebviewId;
WithoutUserIdentifierKey = withoutUserIdentifierKey;
UserIdentityId = userIdentityId;
}

[DataMember(Name = "client_session_id", IsRequired = false, EmitDefaultValue = false)]
Expand All @@ -485,6 +487,9 @@ public ListRequest(
)]
public bool? WithoutUserIdentifierKey { get; set; }

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

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
Expand Down Expand Up @@ -552,15 +557,17 @@ public List<ClientSession> List(
string? clientSessionId = default,
string? userIdentifierKey = default,
string? connectWebviewId = default,
bool? withoutUserIdentifierKey = default
bool? withoutUserIdentifierKey = default,
string? userIdentityId = default
)
{
return List(
new ListRequest(
clientSessionId: clientSessionId,
userIdentifierKey: userIdentifierKey,
connectWebviewId: connectWebviewId,
withoutUserIdentifierKey: withoutUserIdentifierKey
withoutUserIdentifierKey: withoutUserIdentifierKey,
userIdentityId: userIdentityId
)
);
}
Expand All @@ -578,7 +585,8 @@ public async Task<List<ClientSession>> ListAsync(
string? clientSessionId = default,
string? userIdentifierKey = default,
string? connectWebviewId = default,
bool? withoutUserIdentifierKey = default
bool? withoutUserIdentifierKey = default,
string? userIdentityId = default
)
{
return (
Expand All @@ -587,7 +595,8 @@ await ListAsync(
clientSessionId: clientSessionId,
userIdentifierKey: userIdentifierKey,
connectWebviewId: connectWebviewId,
withoutUserIdentifierKey: withoutUserIdentifierKey
withoutUserIdentifierKey: withoutUserIdentifierKey,
userIdentityId: userIdentityId
)
)
);
Expand Down
24 changes: 18 additions & 6 deletions output/csharp/src/Seam/Api/ConnectWebviews.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,20 @@ public enum AcceptedProvidersEnum
[EnumMember(Value = "tedee")]
Tedee = 34,

[EnumMember(Value = "honeywell")]
Honeywell = 35,
[EnumMember(Value = "honeywell_resideo")]
HoneywellResideo = 35,

[EnumMember(Value = "latch")]
Latch = 36,

[EnumMember(Value = "yale_access")]
YaleAccess = 36,
YaleAccess = 37,

[EnumMember(Value = "hid_cm")]
HidCm = 37,
HidCm = 38,

[EnumMember(Value = "google_nest")]
GoogleNest = 38
GoogleNest = 39
}

[JsonConverter(typeof(StringEnumConverter))]
Expand All @@ -188,8 +191,17 @@ public enum ProviderCategoryEnum
[EnumMember(Value = "consumer_smartlocks")]
ConsumerSmartlocks = 1,

[EnumMember(Value = "thermostats")]
Thermostats = 2,

[EnumMember(Value = "noise_sensors")]
NoiseSensors = 3,

[EnumMember(Value = "access_control_systems")]
AccessControlSystems = 4,

[EnumMember(Value = "internal_beta")]
InternalBeta = 2
InternalBeta = 5
}

[DataMember(
Expand Down
23 changes: 16 additions & 7 deletions output/csharp/src/Seam/Api/Devices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ public enum DeviceTypeEnum
[EnumMember(Value = "nest_thermostat")]
NestThermostat = 29,

[EnumMember(Value = "honeywell_thermostat")]
HoneywellThermostat = 30,
[EnumMember(Value = "honeywell_resideo_thermostat")]
HoneywellResideoThermostat = 30,

[EnumMember(Value = "ios_phone")]
IosPhone = 31,
Expand Down Expand Up @@ -343,8 +343,8 @@ public enum DeviceTypesEnum
[EnumMember(Value = "nest_thermostat")]
NestThermostat = 29,

[EnumMember(Value = "honeywell_thermostat")]
HoneywellThermostat = 30,
[EnumMember(Value = "honeywell_resideo_thermostat")]
HoneywellResideoThermostat = 30,

[EnumMember(Value = "ios_phone")]
IosPhone = 31,
Expand Down Expand Up @@ -455,8 +455,8 @@ public enum ManufacturerEnum
[EnumMember(Value = "tedee")]
Tedee = 32,

[EnumMember(Value = "honeywell")]
Honeywell = 33
[EnumMember(Value = "honeywell_resideo")]
HoneywellResideo = 33
}

[DataMember(
Expand Down Expand Up @@ -654,7 +654,16 @@ public enum ProviderCategoryEnum
Stable = 0,

[EnumMember(Value = "consumer_smartlocks")]
ConsumerSmartlocks = 1
ConsumerSmartlocks = 1,

[EnumMember(Value = "thermostats")]
Thermostats = 2,

[EnumMember(Value = "noise_sensors")]
NoiseSensors = 3,

[EnumMember(Value = "access_control_systems")]
AccessControlSystems = 4
}

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

0 comments on commit cd4ab49

Please sign in to comment.