diff --git a/lib/seam/resources/space.rb b/lib/seam/resources/space.rb index 5625125..a9285b0 100644 --- a/lib/seam/resources/space.rb +++ b/lib/seam/resources/space.rb @@ -45,6 +45,24 @@ class BeingDeleted < Warnings date_accessor :created_at end + # Indicates that Seam could not apply the noise sensor automation to one or more noise sensors in the space, for example because their settings keep changing back after Seam re-applies it, Seam does not know the sensor's time zone yet, or the sensor is shared with spaces that configure it differently. + class NoiseSensorConfigurationMismatch < Warnings + # IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. + # @return [Array] + attr_accessor :device_ids + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `noise_sensor_configuration_mismatch` + attr_accessor :warning_code + # Date and time at which Seam created the warning. + # @return [Time] + date_accessor :created_at + end + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. # @return [String] attr_accessor :message @@ -52,13 +70,15 @@ class BeingDeleted < Warnings # @return [String] # Known values: # - `being_deleted` + # - `noise_sensor_configuration_mismatch` attr_accessor :warning_code # Date and time at which Seam created the warning. # @return [Time] date_accessor :created_at discriminated_by :warning_code, { - "being_deleted" => BeingDeleted + "being_deleted" => BeingDeleted, + "noise_sensor_configuration_mismatch" => NoiseSensorConfigurationMismatch }.freeze end diff --git a/package-lock.json b/package-lock.json index be3574f..07ffb06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.1", - "@seamapi/types": "1.1137.0", + "@seamapi/types": "1.1142.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -864,9 +864,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1137.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1137.0.tgz", - "integrity": "sha512-AoIq3IlMsWfq8AKmezpcKydBvL6jKl/aBS0YkrrT6H3+qqksfQO1aXzJIOXGiXZ6RcXLAUwH74hs2uyLxlT2Iw==", + "version": "1.1142.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1142.0.tgz", + "integrity": "sha512-9KjUC6yfz2jzICw8M4Fpb0MsIgTl1MQSU3ifixxY7RM7ALeJy5CVSP1PNceTJiacBraZWi6/Ufyvv8GFizP7Tg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 226786a..ec2de3c 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.1", - "@seamapi/types": "1.1137.0", + "@seamapi/types": "1.1142.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"