From fac09c786590cc9d9c94a2ba2b1fef2702ffac2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:25:09 +0000 Subject: [PATCH 1/2] 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.327.0 to 1.329.0 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.327.0...v1.329.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27d1ba8..2cf6c44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "SEE LICENSE IN LICENSE.txt", "devDependencies": { "@seamapi/nextlove-sdk-generator": "^1.15.3", - "@seamapi/types": "^1.327.0", + "@seamapi/types": "^1.329.0", "@types/node": "^18.19.11", "ava": "^5.0.1", "axios": "^1.5.0", @@ -1219,9 +1219,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.327.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.327.0.tgz", - "integrity": "sha512-dq35pIwxWGZKtZyh1kRQTMddpM8mb4aFvBOvbjdE3f/BexXP9TMGOxLqXir4TBHdJzjp7P0395wKBAWiF2Pwng==", + "version": "1.329.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.329.0.tgz", + "integrity": "sha512-Jl25X7VWg+KilxxyqA4SvT7p4IUZyqqUMA+/mpps/Ef5XSnEWMN9atgECK98N0hg2AWPS8fZ7hguaHdrvbdB1w==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 043bcf7..e54551c 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ }, "devDependencies": { "@seamapi/nextlove-sdk-generator": "^1.15.3", - "@seamapi/types": "^1.327.0", + "@seamapi/types": "^1.329.0", "@types/node": "^18.19.11", "ava": "^5.0.1", "axios": "^1.5.0", From ce2ebb98650f5104c95ac712fed0309a65e26e79 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 9 Jan 2025 23:25:44 +0000 Subject: [PATCH 2/2] ci: Generate code --- output/csharp/src/Seam/Api/Events.cs | 58 +++++++++-------- output/csharp/src/Seam/Model/AcsEntrance.cs | 9 +-- output/csharp/src/Seam/Model/Event.cs | 72 +++++++++++++++++++++ output/csharp/src/Seam/Seam.csproj | 2 +- 4 files changed, 106 insertions(+), 35 deletions(-) diff --git a/output/csharp/src/Seam/Api/Events.cs b/output/csharp/src/Seam/Api/Events.cs index 49d3047..17c99f4 100644 --- a/output/csharp/src/Seam/Api/Events.cs +++ b/output/csharp/src/Seam/Api/Events.cs @@ -359,44 +359,47 @@ public enum EventTypeEnum [EnumMember(Value = "acs_credential.issued")] AcsCredentialIssued = 60, + [EnumMember(Value = "acs_credential.reissued")] + AcsCredentialReissued = 61, + [EnumMember(Value = "acs_encoder.added")] - AcsEncoderAdded = 61, + AcsEncoderAdded = 62, [EnumMember(Value = "acs_encoder.removed")] - AcsEncoderRemoved = 62, + AcsEncoderRemoved = 63, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 63, + EnrollmentAutomationDeleted = 64, [EnumMember(Value = "client_session.deleted")] - ClientSessionDeleted = 64, + ClientSessionDeleted = 65, [EnumMember(Value = "action_attempt.lock_door.succeeded")] - ActionAttemptLockDoorSucceeded = 65, + ActionAttemptLockDoorSucceeded = 66, [EnumMember(Value = "action_attempt.lock_door.failed")] - ActionAttemptLockDoorFailed = 66, + ActionAttemptLockDoorFailed = 67, [EnumMember(Value = "action_attempt.unlock_door.succeeded")] - ActionAttemptUnlockDoorSucceeded = 67, + ActionAttemptUnlockDoorSucceeded = 68, [EnumMember(Value = "action_attempt.unlock_door.failed")] - ActionAttemptUnlockDoorFailed = 68, + ActionAttemptUnlockDoorFailed = 69, [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 69, + ThermostatClimatePresetActivated = 70, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 70, + ThermostatManuallyAdjusted = 71, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 71, + ThermostatTemperatureThresholdExceeded = 72, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 72, + ThermostatTemperatureThresholdNoLongerExceeded = 73, [EnumMember(Value = "thermostat.temperature_reached_set_point")] - ThermostatTemperatureReachedSetPoint = 73, + ThermostatTemperatureReachedSetPoint = 74, } [JsonConverter(typeof(SafeStringEnumConverter))] @@ -585,44 +588,47 @@ public enum EventTypesEnum [EnumMember(Value = "acs_credential.issued")] AcsCredentialIssued = 60, + [EnumMember(Value = "acs_credential.reissued")] + AcsCredentialReissued = 61, + [EnumMember(Value = "acs_encoder.added")] - AcsEncoderAdded = 61, + AcsEncoderAdded = 62, [EnumMember(Value = "acs_encoder.removed")] - AcsEncoderRemoved = 62, + AcsEncoderRemoved = 63, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 63, + EnrollmentAutomationDeleted = 64, [EnumMember(Value = "client_session.deleted")] - ClientSessionDeleted = 64, + ClientSessionDeleted = 65, [EnumMember(Value = "action_attempt.lock_door.succeeded")] - ActionAttemptLockDoorSucceeded = 65, + ActionAttemptLockDoorSucceeded = 66, [EnumMember(Value = "action_attempt.lock_door.failed")] - ActionAttemptLockDoorFailed = 66, + ActionAttemptLockDoorFailed = 67, [EnumMember(Value = "action_attempt.unlock_door.succeeded")] - ActionAttemptUnlockDoorSucceeded = 67, + ActionAttemptUnlockDoorSucceeded = 68, [EnumMember(Value = "action_attempt.unlock_door.failed")] - ActionAttemptUnlockDoorFailed = 68, + ActionAttemptUnlockDoorFailed = 69, [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 69, + ThermostatClimatePresetActivated = 70, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 70, + ThermostatManuallyAdjusted = 71, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 71, + ThermostatTemperatureThresholdExceeded = 72, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 72, + ThermostatTemperatureThresholdNoLongerExceeded = 73, [EnumMember(Value = "thermostat.temperature_reached_set_point")] - ThermostatTemperatureReachedSetPoint = 73, + ThermostatTemperatureReachedSetPoint = 74, } [DataMember(Name = "access_code_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Model/AcsEntrance.cs b/output/csharp/src/Seam/Model/AcsEntrance.cs index 7bb1436..531731b 100644 --- a/output/csharp/src/Seam/Model/AcsEntrance.cs +++ b/output/csharp/src/Seam/Model/AcsEntrance.cs @@ -183,21 +183,14 @@ public class AcsEntranceDormakabaCommunityMetadata [JsonConstructorAttribute] protected AcsEntranceDormakabaCommunityMetadata() { } - public AcsEntranceDormakabaCommunityMetadata( - string accessPointName = default, - float? commonAreaNumber = default - ) + public AcsEntranceDormakabaCommunityMetadata(string accessPointName = default) { AccessPointName = accessPointName; - CommonAreaNumber = commonAreaNumber; } [DataMember(Name = "access_point_name", IsRequired = true, EmitDefaultValue = false)] public string AccessPointName { get; set; } - [DataMember(Name = "common_area_number", IsRequired = false, EmitDefaultValue = false)] - public float? CommonAreaNumber { get; set; } - public override string ToString() { JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); diff --git a/output/csharp/src/Seam/Model/Event.cs b/output/csharp/src/Seam/Model/Event.cs index 9ccb3df..3408bb7 100644 --- a/output/csharp/src/Seam/Model/Event.cs +++ b/output/csharp/src/Seam/Model/Event.cs @@ -156,6 +156,7 @@ namespace Seam.Model [JsonSubtypes.KnownSubType(typeof(EventAcsEncoderRemoved), "acs_encoder.removed")] [JsonSubtypes.KnownSubType(typeof(EventAcsEncoderAdded), "acs_encoder.added")] [JsonSubtypes.KnownSubType(typeof(EventAcsUserDeleted), "acs_user.deleted")] + [JsonSubtypes.KnownSubType(typeof(EventAcsCredentialReissued), "acs_credential.reissued")] [JsonSubtypes.KnownSubType(typeof(EventAcsCredentialIssued), "acs_credential.issued")] [JsonSubtypes.KnownSubType(typeof(EventAcsCredentialDeleted), "acs_credential.deleted")] [JsonSubtypes.KnownSubType(typeof(EventAcsSystemDisconnected), "acs_system.disconnected")] @@ -1792,6 +1793,77 @@ public override string ToString() } } + [DataContract(Name = "seamModel_eventAcsCredentialReissued_model")] + public class EventAcsCredentialReissued : Event + { + [JsonConstructorAttribute] + protected EventAcsCredentialReissued() { } + + public EventAcsCredentialReissued( + string acsCredentialId = default, + string acsSystemId = default, + string? connectedAccountId = default, + string createdAt = default, + string eventId = default, + string eventType = default, + string occurredAt = default, + string workspaceId = default + ) + { + AcsCredentialId = acsCredentialId; + AcsSystemId = acsSystemId; + ConnectedAccountId = connectedAccountId; + CreatedAt = createdAt; + EventId = eventId; + EventType = eventType; + OccurredAt = occurredAt; + WorkspaceId = workspaceId; + } + + [DataMember(Name = "acs_credential_id", IsRequired = true, EmitDefaultValue = false)] + public string AcsCredentialId { get; set; } + + [DataMember(Name = "acs_system_id", IsRequired = true, EmitDefaultValue = false)] + public string AcsSystemId { get; set; } + + [DataMember(Name = "connected_account_id", IsRequired = false, EmitDefaultValue = false)] + public string? ConnectedAccountId { get; set; } + + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)] + public string CreatedAt { get; set; } + + [DataMember(Name = "event_id", IsRequired = true, EmitDefaultValue = false)] + public string EventId { get; set; } + + [DataMember(Name = "event_type", IsRequired = true, EmitDefaultValue = false)] + public override string EventType { get; } = "acs_credential.reissued"; + + [DataMember(Name = "occurred_at", IsRequired = true, EmitDefaultValue = false)] + public string OccurredAt { get; set; } + + [DataMember(Name = "workspace_id", IsRequired = true, EmitDefaultValue = false)] + public string WorkspaceId { 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 = "seamModel_eventAcsUserDeleted_model")] public class EventAcsUserDeleted : Event { diff --git a/output/csharp/src/Seam/Seam.csproj b/output/csharp/src/Seam/Seam.csproj index c19a189..4347960 100644 --- a/output/csharp/src/Seam/Seam.csproj +++ b/output/csharp/src/Seam/Seam.csproj @@ -7,7 +7,7 @@ Seam - 0.21.0 + 0.22.0 Seam