@kohost/api-client 6.5.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/httpClient.d.ts +8 -12
- package/dist/index-BnWbLEt_.d.ts +22 -0
- package/dist/{index-CwkLEwUB.d.ts → index-DJzBywIl.d.ts} +13 -21
- package/dist/index.d.ts +11 -11
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/deviceNotifications.d.ts +19 -0
- package/dist/lib/deviceNotifications.js +35 -0
- package/dist/lib/deviceNotifications.js.map +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +23 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/policy-resolvers.d.ts +12 -0
- package/dist/lib/policy-resolvers.js +75 -0
- package/dist/lib/policy-resolvers.js.map +1 -0
- package/dist/lib/systemCategories.d.ts +10 -0
- package/dist/lib/systemCategories.js +61 -0
- package/dist/lib/systemCategories.js.map +1 -0
- package/dist/models/alarm.js +1 -0
- package/dist/models/alarm.js.map +1 -1
- package/dist/models/announcement.js +1 -0
- package/dist/models/announcement.js.map +1 -1
- package/dist/models/automation.js +1 -0
- package/dist/models/automation.js.map +1 -1
- package/dist/models/camera.js +1 -0
- package/dist/models/camera.js.map +1 -1
- package/dist/models/category.js +1 -0
- package/dist/models/category.js.map +1 -1
- package/dist/models/courtesy.js +1 -0
- package/dist/models/courtesy.js.map +1 -1
- package/dist/models/credential.js +1 -0
- package/dist/models/credential.js.map +1 -1
- package/dist/models/dimmer.js +1 -0
- package/dist/models/dimmer.js.map +1 -1
- package/dist/models/emailMessage.js +1 -0
- package/dist/models/emailMessage.js.map +1 -1
- package/dist/models/energyReport.js +1 -0
- package/dist/models/energyReport.js.map +1 -1
- package/dist/models/gateway.js +1 -0
- package/dist/models/gateway.js.map +1 -1
- package/dist/models/issue.d.ts +1 -1
- package/dist/models/issue.js +2 -7
- package/dist/models/issue.js.map +1 -1
- package/dist/models/lock.js +1 -0
- package/dist/models/lock.js.map +1 -1
- package/dist/models/log.js +1 -0
- package/dist/models/log.js.map +1 -1
- package/dist/models/mediaFile.js +1 -0
- package/dist/models/mediaFile.js.map +1 -1
- package/dist/models/mediaSource.js +1 -0
- package/dist/models/mediaSource.js.map +1 -1
- package/dist/models/motionSensor.js +1 -0
- package/dist/models/motionSensor.js.map +1 -1
- package/dist/models/notification.js +1 -0
- package/dist/models/notification.js.map +1 -1
- package/dist/models/order.js +1 -0
- package/dist/models/order.js.map +1 -1
- package/dist/models/organization.js +1 -2
- package/dist/models/organization.js.map +1 -1
- package/dist/models/payment.js +1 -0
- package/dist/models/payment.js.map +1 -1
- package/dist/models/policy.js +1 -0
- package/dist/models/policy.js.map +1 -1
- package/dist/models/product.js +1 -0
- package/dist/models/product.js.map +1 -1
- package/dist/models/property.js +1 -1
- package/dist/models/property.js.map +1 -1
- package/dist/models/reservation.js +1 -0
- package/dist/models/reservation.js.map +1 -1
- package/dist/models/shortLink.js +1 -0
- package/dist/models/shortLink.js.map +1 -1
- package/dist/models/smsMessage.js +1 -0
- package/dist/models/smsMessage.js.map +1 -1
- package/dist/models/space.js +1 -0
- package/dist/models/space.js.map +1 -1
- package/dist/models/switch.js +1 -0
- package/dist/models/switch.js.map +1 -1
- package/dist/models/thermostat.js +1 -0
- package/dist/models/thermostat.js.map +1 -1
- package/dist/models/ticket.js +4 -0
- package/dist/models/ticket.js.map +1 -1
- package/dist/models/timeSheet.js +1 -0
- package/dist/models/timeSheet.js.map +1 -1
- package/dist/models/user.js +0 -1
- package/dist/models/user.js.map +1 -1
- package/dist/models/vendor.js +2 -0
- package/dist/models/vendor.js.map +1 -1
- package/dist/models/windowCovering.js +1 -0
- package/dist/models/windowCovering.js.map +1 -1
- package/dist/schemas/alarm.d.ts +4 -0
- package/dist/schemas/alarm.js +4 -0
- package/dist/schemas/alarm.js.map +1 -1
- package/dist/schemas/announcement.d.ts +4 -0
- package/dist/schemas/announcement.js +4 -0
- package/dist/schemas/announcement.js.map +1 -1
- package/dist/schemas/automation.d.ts +4 -0
- package/dist/schemas/automation.js +4 -0
- package/dist/schemas/automation.js.map +1 -1
- package/dist/schemas/camera.d.ts +4 -0
- package/dist/schemas/camera.js +4 -0
- package/dist/schemas/camera.js.map +1 -1
- package/dist/schemas/category.d.ts +4 -0
- package/dist/schemas/category.js +4 -0
- package/dist/schemas/category.js.map +1 -1
- package/dist/schemas/courtesy.d.ts +4 -0
- package/dist/schemas/courtesy.js +4 -0
- package/dist/schemas/courtesy.js.map +1 -1
- package/dist/schemas/credential.d.ts +4 -1
- package/dist/schemas/credential.js +5 -1
- package/dist/schemas/credential.js.map +1 -1
- package/dist/schemas/definitions.d.ts +1 -1
- package/dist/schemas/definitions.js +6 -1
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/dimmer.d.ts +4 -0
- package/dist/schemas/dimmer.js +4 -0
- package/dist/schemas/dimmer.js.map +1 -1
- package/dist/schemas/emailMessage.d.ts +4 -0
- package/dist/schemas/emailMessage.js +4 -0
- package/dist/schemas/emailMessage.js.map +1 -1
- package/dist/schemas/energyReport.d.ts +4 -0
- package/dist/schemas/energyReport.js +4 -0
- package/dist/schemas/energyReport.js.map +1 -1
- package/dist/schemas/gateway.d.ts +4 -0
- package/dist/schemas/gateway.js +4 -0
- package/dist/schemas/gateway.js.map +1 -1
- package/dist/schemas/issue.d.ts +126 -43
- package/dist/schemas/issue.js +88 -44
- package/dist/schemas/issue.js.map +1 -1
- package/dist/schemas/lock.d.ts +4 -0
- package/dist/schemas/lock.js +4 -0
- package/dist/schemas/lock.js.map +1 -1
- package/dist/schemas/log.d.ts +4 -0
- package/dist/schemas/log.js +4 -0
- package/dist/schemas/log.js.map +1 -1
- package/dist/schemas/mediaFile.d.ts +4 -0
- package/dist/schemas/mediaFile.js +4 -0
- package/dist/schemas/mediaFile.js.map +1 -1
- package/dist/schemas/mediaSource.d.ts +4 -0
- package/dist/schemas/mediaSource.js +4 -0
- package/dist/schemas/mediaSource.js.map +1 -1
- package/dist/schemas/motionSensor.d.ts +4 -0
- package/dist/schemas/motionSensor.js +4 -0
- package/dist/schemas/motionSensor.js.map +1 -1
- package/dist/schemas/notification.d.ts +4 -0
- package/dist/schemas/notification.js +4 -0
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/order.d.ts +4 -0
- package/dist/schemas/order.js +4 -0
- package/dist/schemas/order.js.map +1 -1
- package/dist/schemas/organization.d.ts +45 -13
- package/dist/schemas/organization.js +46 -10
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/payment.d.ts +4 -0
- package/dist/schemas/payment.js +4 -0
- package/dist/schemas/payment.js.map +1 -1
- package/dist/schemas/policy.d.ts +4 -0
- package/dist/schemas/policy.js +4 -0
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/product.d.ts +4 -0
- package/dist/schemas/product.js +4 -0
- package/dist/schemas/product.js.map +1 -1
- package/dist/schemas/property.d.ts +13 -11
- package/dist/schemas/property.js +13 -11
- package/dist/schemas/property.js.map +1 -1
- package/dist/schemas/reservation.d.ts +4 -0
- package/dist/schemas/reservation.js +4 -0
- package/dist/schemas/reservation.js.map +1 -1
- package/dist/schemas/shortLink.d.ts +4 -0
- package/dist/schemas/shortLink.js +4 -0
- package/dist/schemas/shortLink.js.map +1 -1
- package/dist/schemas/smsMessage.d.ts +4 -0
- package/dist/schemas/smsMessage.js +4 -0
- package/dist/schemas/smsMessage.js.map +1 -1
- package/dist/schemas/space.d.ts +4 -0
- package/dist/schemas/space.js +4 -0
- package/dist/schemas/space.js.map +1 -1
- package/dist/schemas/switch.d.ts +4 -0
- package/dist/schemas/switch.js +4 -0
- package/dist/schemas/switch.js.map +1 -1
- package/dist/schemas/thermostat.d.ts +4 -0
- package/dist/schemas/thermostat.js +4 -0
- package/dist/schemas/thermostat.js.map +1 -1
- package/dist/schemas/ticket.d.ts +14 -0
- package/dist/schemas/ticket.js +14 -0
- package/dist/schemas/ticket.js.map +1 -1
- package/dist/schemas/timeSheet.d.ts +4 -0
- package/dist/schemas/timeSheet.js +4 -0
- package/dist/schemas/timeSheet.js.map +1 -1
- package/dist/schemas/user.d.ts +0 -3
- package/dist/schemas/user.js +0 -3
- package/dist/schemas/user.js.map +1 -1
- package/dist/schemas/vendor.d.ts +12 -0
- package/dist/schemas/vendor.js +12 -0
- package/dist/schemas/vendor.js.map +1 -1
- package/dist/schemas/windowCovering.d.ts +4 -0
- package/dist/schemas/windowCovering.js +4 -0
- package/dist/schemas/windowCovering.js.map +1 -1
- package/dist/useCases/createApiKey.d.ts +38 -0
- package/dist/useCases/{sendSMS.js → createApiKey.js} +9 -9
- package/dist/useCases/createApiKey.js.map +1 -0
- package/dist/useCases/{describeIntegration.d.ts → getApiKey.d.ts} +10 -10
- package/dist/useCases/{listAnnouncements.js → getApiKey.js} +9 -9
- package/dist/useCases/getApiKey.js.map +1 -0
- package/dist/useCases/index.d.ts +6 -10
- package/dist/useCases/index.js +12 -20
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/{deleteAnnouncement.d.ts → revokeApiKey.d.ts} +10 -10
- package/dist/useCases/{deleteAnnouncement.js → revokeApiKey.js} +9 -9
- package/dist/useCases/revokeApiKey.js.map +1 -0
- package/dist/useCases/{updateAnnouncement.d.ts → rotateApiKey.d.ts} +10 -10
- package/dist/useCases/{updateIntegration.js → rotateApiKey.js} +9 -9
- package/dist/useCases/rotateApiKey.js.map +1 -0
- package/dist/useCases/{updateIntegration.d.ts → updateOrganizationFeatures.d.ts} +6 -6
- package/dist/useCases/{updateAnnouncement.js → updateOrganizationFeatures.js} +8 -8
- package/dist/useCases/updateOrganizationFeatures.js.map +1 -0
- package/dist/useCases/{updatePropertySettings.d.ts → updatePropertyFeatures.d.ts} +6 -6
- package/dist/useCases/{updatePropertySettings.js → updatePropertyFeatures.js} +8 -8
- package/dist/useCases/{updatePropertySettings.js.map → updatePropertyFeatures.js.map} +1 -1
- package/dist/validate.d.ts +160 -160
- package/package.json +26 -18
- package/dist/useCases/createAnnouncement.d.ts +0 -29
- package/dist/useCases/createAnnouncement.js +0 -50
- package/dist/useCases/createAnnouncement.js.map +0 -1
- package/dist/useCases/createIntegration.d.ts +0 -29
- package/dist/useCases/createIntegration.js +0 -50
- package/dist/useCases/createIntegration.js.map +0 -1
- package/dist/useCases/deleteAnnouncement.js.map +0 -1
- package/dist/useCases/describeAnnouncement.d.ts +0 -38
- package/dist/useCases/describeAnnouncement.js +0 -50
- package/dist/useCases/describeAnnouncement.js.map +0 -1
- package/dist/useCases/describeIntegration.js +0 -50
- package/dist/useCases/describeIntegration.js.map +0 -1
- package/dist/useCases/listAnnouncements.d.ts +0 -29
- package/dist/useCases/listAnnouncements.js.map +0 -1
- package/dist/useCases/sendSMS.d.ts +0 -29
- package/dist/useCases/sendSMS.js.map +0 -1
- package/dist/useCases/updateAnnouncement.js.map +0 -1
- package/dist/useCases/updateIntegration.js.map +0 -1
package/dist/schemas/property.js
CHANGED
|
@@ -74,10 +74,10 @@ const propertySchema = {
|
|
|
74
74
|
longitude: {
|
|
75
75
|
type: "number"
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
features: {
|
|
78
78
|
type: "object",
|
|
79
79
|
properties: {
|
|
80
|
-
|
|
80
|
+
SmartBuilding: {
|
|
81
81
|
type: "object",
|
|
82
82
|
properties: {
|
|
83
83
|
enabled: {
|
|
@@ -165,14 +165,6 @@ const propertySchema = {
|
|
|
165
165
|
enum: ["sms", "email"],
|
|
166
166
|
default: "sms",
|
|
167
167
|
description: "Determines how users should be notified of new messages in the concierge system"
|
|
168
|
-
},
|
|
169
|
-
issues: {
|
|
170
|
-
type: "object",
|
|
171
|
-
properties: {
|
|
172
|
-
syncWithPropertyId: {
|
|
173
|
-
type: "string"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
168
|
}
|
|
177
169
|
}
|
|
178
170
|
},
|
|
@@ -243,11 +235,21 @@ const propertySchema = {
|
|
|
243
235
|
}
|
|
244
236
|
},
|
|
245
237
|
additionalProperties: false
|
|
238
|
+
},
|
|
239
|
+
Resources: {
|
|
240
|
+
type: "object",
|
|
241
|
+
properties: {
|
|
242
|
+
enabled: {
|
|
243
|
+
type: "boolean",
|
|
244
|
+
default: true
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
additionalProperties: false
|
|
246
248
|
}
|
|
247
249
|
},
|
|
248
250
|
additionalProperties: false,
|
|
249
251
|
default: {
|
|
250
|
-
|
|
252
|
+
SmartBuilding: {}
|
|
251
253
|
}
|
|
252
254
|
},
|
|
253
255
|
notifications: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"education\", \"commercial\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n appFeatures: {\n type: \"object\",\n properties: {\n RoomControl: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n issues: {\n type: \"object\",\n properties: {\n syncWithPropertyId: {\n type: \"string\",\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeEmergencies: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"medical\",\n \"fire\",\n \"suspiciousPerson\",\n \"other\",\n \"conflict\",\n \"shooter\",\n ],\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n RoomControl: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MA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AAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"education\", \"commercial\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n features: {\n type: \"object\",\n properties: {\n SmartBuilding: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeEmergencies: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"medical\",\n \"fire\",\n \"suspiciousPerson\",\n \"other\",\n \"conflict\",\n \"shooter\",\n ],\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n Resources: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n SmartBuilding: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aAAa;AAAA,EACb,UAAU,CAAC,MAAM,QAAQ,QAAQ,gBAAgB,YAAY,eAAe;AAAA,EAC5E,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,UAAU;AAAA,IACnB;AAAA,IACA,eAAe;AAAA,MACb,MAA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;AAAA,cACN,SAAS;AAAA,YACX;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,eAAe,CAAC;AAAA,MAClB;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,KAAK;AAAA,UACH,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,OAAO;AAAA,UACL,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -11,6 +11,10 @@ declare const reservationSchema: {
|
|
|
11
11
|
readonly id: {
|
|
12
12
|
readonly $ref: "definitions.json#/definitions/id";
|
|
13
13
|
};
|
|
14
|
+
readonly propertyId: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
17
|
+
};
|
|
14
18
|
readonly driver: {
|
|
15
19
|
readonly $ref: "definitions.json#/definitions/driver";
|
|
16
20
|
};
|
|
@@ -8,6 +8,10 @@ const reservationSchema = {
|
|
|
8
8
|
id: {
|
|
9
9
|
$ref: "definitions.json#/definitions/id"
|
|
10
10
|
},
|
|
11
|
+
propertyId: {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
14
|
+
},
|
|
11
15
|
driver: {
|
|
12
16
|
$ref: "definitions.json#/definitions/driver"
|
|
13
17
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/reservation.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const reservationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"reservation.json\",\n title: \"Reservation\",\n type: \"object\",\n required: [\"type\", \"status\", \"checkInDateTime\", \"checkOutDateTime\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n primaryGuest: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"reservation\",\n enum: [\"reservation\"],\n },\n sharedGuests: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n spaceCategory: {\n type: \"string\",\n },\n space: {\n type: [\"string\", \"null\"],\n },\n previousSpace: {\n type: [\"string\", \"null\"],\n default: null,\n description: \"Used when there was a space assigned and it changes\",\n },\n status: {\n type: \"string\",\n enum: [\n \"reserved\",\n \"checkedIn\",\n \"checkedOut\",\n \"cancelled\",\n \"noShow\",\n \"enquired\",\n \"requested\",\n \"optional\",\n ],\n description:\n \" reserved - confirmed by both parties, before check-in\\n checkedIn - checked in\\n checkedOut - checked out\\n cancelled - Cancelled\\n noShow - No show\\n enquired - Confirmed neither by the customer nor enterprise\\n requested - Confirmed by the customer but not the enterprise (waitlist)\\n optional - Confirmed by the enterprise but not the customer (holding)\",\n },\n mobileCheckInSpaceCategoryChanged: {\n type: \"boolean\",\n description: \"spaceCategory has changed from original.\",\n },\n mobileCheckInSpaceChanged: {\n type: \"boolean\",\n },\n mobileCheckInStatus: {\n type: \"string\",\n enum: [\n \"ready\",\n \"blocked\",\n \"preArrivalStepsRequired\",\n \"spaceNotAssigned\",\n \"spaceNotReady\",\n \"checkInTimeNotStarted\",\n ],\n },\n mobileCheckInStatusMessage: {\n type: \"string\",\n },\n confirmationNumber: {\n type: \"string\",\n },\n expectedCheckInDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n description: \"Expected arrival time of guest.\",\n },\n checkInDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n checkOutDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n adultCount: {\n type: \"number\",\n default: 1,\n minimum: 1,\n },\n childCount: {\n type: \"number\",\n default: 0,\n },\n\n spaceCategoryAvailabilites: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n },\n price: {\n type: \"number\",\n },\n unit: {\n type: \"string\",\n enum: [\"night\", \"stay\", \"hour\"],\n },\n isUpgrade: {\n type: \"boolean\",\n },\n },\n },\n },\n revenue: {\n $ref: \"definitions.json#/definitions/revenue\",\n },\n rateSuppressed: {\n type: \"boolean\",\n },\n payment: {\n type: \"string\",\n },\n company: {\n type: \"string\",\n },\n travelAgent: {\n type: \"string\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n metadata: {\n $ref: \"definitions.json#/definitions/metadata\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type ReservationSchema = FromSchema<\n typeof reservationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n 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":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/reservation.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const reservationSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"reservation.json\",\n title: \"Reservation\",\n type: \"object\",\n required: [\"type\", \"status\", \"checkInDateTime\", \"checkOutDateTime\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n primaryGuest: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"reservation\",\n enum: [\"reservation\"],\n },\n sharedGuests: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n spaceCategory: {\n type: \"string\",\n },\n space: {\n type: [\"string\", \"null\"],\n },\n previousSpace: {\n type: [\"string\", \"null\"],\n default: null,\n description: \"Used when there was a space assigned and it changes\",\n },\n status: {\n type: \"string\",\n enum: [\n \"reserved\",\n \"checkedIn\",\n \"checkedOut\",\n \"cancelled\",\n \"noShow\",\n \"enquired\",\n \"requested\",\n \"optional\",\n ],\n description:\n \" reserved - confirmed by both parties, before check-in\\n checkedIn - checked in\\n checkedOut - checked out\\n cancelled - Cancelled\\n noShow - No show\\n enquired - Confirmed neither by the customer nor enterprise\\n requested - Confirmed by the customer but not the enterprise (waitlist)\\n optional - Confirmed by the enterprise but not the customer (holding)\",\n },\n mobileCheckInSpaceCategoryChanged: {\n type: \"boolean\",\n description: \"spaceCategory has changed from original.\",\n },\n mobileCheckInSpaceChanged: {\n type: \"boolean\",\n },\n mobileCheckInStatus: {\n type: \"string\",\n enum: [\n \"ready\",\n \"blocked\",\n \"preArrivalStepsRequired\",\n \"spaceNotAssigned\",\n \"spaceNotReady\",\n \"checkInTimeNotStarted\",\n ],\n },\n mobileCheckInStatusMessage: {\n type: \"string\",\n },\n confirmationNumber: {\n type: \"string\",\n },\n expectedCheckInDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n description: \"Expected arrival time of guest.\",\n },\n checkInDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n checkOutDateTime: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n adultCount: {\n type: \"number\",\n default: 1,\n minimum: 1,\n },\n childCount: {\n type: \"number\",\n default: 0,\n },\n\n spaceCategoryAvailabilites: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n },\n price: {\n type: \"number\",\n },\n unit: {\n type: \"string\",\n enum: [\"night\", \"stay\", \"hour\"],\n },\n isUpgrade: {\n type: \"boolean\",\n },\n },\n },\n },\n revenue: {\n $ref: \"definitions.json#/definitions/revenue\",\n },\n rateSuppressed: {\n type: \"boolean\",\n },\n payment: {\n type: \"string\",\n },\n company: {\n type: \"string\",\n },\n travelAgent: {\n type: \"string\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n metadata: {\n $ref: \"definitions.json#/definitions/metadata\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type ReservationSchema = FromSchema<\n typeof reservationSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,oBAAoB;AAAA,EAC/B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,QAAQ,UAAU,mBAAmB,kBAAkB;AAAA,EAClE,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AA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,MAChB,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,4BAA4B;AAAA,MAC1B,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,UAChC;AAAA,UACA,WAAW;AAAA,YACT,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,gBAAgB;AAAA,MACd,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -12,6 +12,10 @@ declare const shortLinkSchema: {
|
|
|
12
12
|
readonly id: {
|
|
13
13
|
readonly $ref: "definitions.json#/definitions/id";
|
|
14
14
|
};
|
|
15
|
+
readonly propertyId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
18
|
+
};
|
|
15
19
|
readonly type: {
|
|
16
20
|
readonly type: "string";
|
|
17
21
|
readonly default: "shortLink";
|
|
@@ -9,6 +9,10 @@ const shortLinkSchema = {
|
|
|
9
9
|
id: {
|
|
10
10
|
$ref: "definitions.json#/definitions/id"
|
|
11
11
|
},
|
|
12
|
+
propertyId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
15
|
+
},
|
|
12
16
|
type: {
|
|
13
17
|
type: "string",
|
|
14
18
|
default: "shortLink",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/shortLink.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const shortLinkSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"shortLink.json\",\n title: \"Short Link\",\n type: \"object\",\n required: [\"destination\", \"url\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"shortLink\",\n enum: [\"shortLink\"],\n },\n title: {\n type: \"string\",\n },\n destination: {\n type: \"string\",\n format: \"uri\",\n },\n url: {\n type: \"string\",\n format: \"uri\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type ShortLinkSchema = FromSchema<\n typeof shortLinkSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,eAAe,KAAK;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,WAAW;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,KAAK;AAAA,MACH,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/shortLink.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const shortLinkSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"shortLink.json\",\n title: \"Short Link\",\n type: \"object\",\n required: [\"destination\", \"url\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n default: \"shortLink\",\n enum: [\"shortLink\"],\n },\n title: {\n type: \"string\",\n },\n destination: {\n type: \"string\",\n format: \"uri\",\n },\n url: {\n type: \"string\",\n format: \"uri\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type ShortLinkSchema = FromSchema<\n typeof shortLinkSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,eAAe,KAAK;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,WAAW;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,KAAK;AAAA,MACH,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -12,6 +12,10 @@ declare const smsMessageSchema: {
|
|
|
12
12
|
readonly id: {
|
|
13
13
|
readonly $ref: "definitions.json#/definitions/id";
|
|
14
14
|
};
|
|
15
|
+
readonly propertyId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
18
|
+
};
|
|
15
19
|
readonly type: {
|
|
16
20
|
readonly type: "string";
|
|
17
21
|
readonly default: "smsMessage";
|
|
@@ -9,6 +9,10 @@ const smsMessageSchema = {
|
|
|
9
9
|
id: {
|
|
10
10
|
$ref: "definitions.json#/definitions/id"
|
|
11
11
|
},
|
|
12
|
+
propertyId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
15
|
+
},
|
|
12
16
|
type: {
|
|
13
17
|
type: "string",
|
|
14
18
|
default: "smsMessage",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/smsMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const smsMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"smsMessage.json\",\n title: \"Sms Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"smsMessage\",\n enum: [\"smsMessage\", \"whatsappMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n },\n media: {\n type: \"string\",\n format: \"uri\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"accepted\",\n \"sending\",\n \"sent\",\n \"failed\",\n \"delivered\",\n \"undelivered\",\n \"receiving\",\n \"received\",\n \"read\",\n ],\n },\n body: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n appData: {\n type: \"object\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type SmsMessageSchema = FromSchema<\n typeof smsMessageSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM,QAAQ,QAAQ;AAAA,EAC/C,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,cAAc,iBAAiB;AAAA,IACxC;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/smsMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const smsMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"smsMessage.json\",\n title: \"Sms Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n default: \"smsMessage\",\n enum: [\"smsMessage\", \"whatsappMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n },\n media: {\n type: \"string\",\n format: \"uri\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"accepted\",\n \"sending\",\n \"sent\",\n \"failed\",\n \"delivered\",\n \"undelivered\",\n \"receiving\",\n \"received\",\n \"read\",\n ],\n },\n body: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n appData: {\n type: \"object\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type SmsMessageSchema = FromSchema<\n typeof smsMessageSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM,QAAQ,QAAQ;AAAA,EAC/C,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,cAAc,iBAAiB;AAAA,IACxC;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
package/dist/schemas/space.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ declare const spaceSchema: {
|
|
|
22
22
|
readonly id: {
|
|
23
23
|
readonly $ref: "definitions.json#/definitions/id";
|
|
24
24
|
};
|
|
25
|
+
readonly propertyId: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
28
|
+
};
|
|
25
29
|
readonly name: {
|
|
26
30
|
readonly type: "string";
|
|
27
31
|
readonly minLength: 1;
|
package/dist/schemas/space.js
CHANGED
|
@@ -9,6 +9,10 @@ const spaceSchema = {
|
|
|
9
9
|
id: {
|
|
10
10
|
$ref: "definitions.json#/definitions/id"
|
|
11
11
|
},
|
|
12
|
+
propertyId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
15
|
+
},
|
|
12
16
|
name: {
|
|
13
17
|
type: "string",
|
|
14
18
|
minLength: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { switchSchema } from \"./switch\";\nimport type { dimmerSchema } from \"./dimmer\";\nimport type { thermostatSchema } from \"./thermostat\";\nimport type { lockSchema } from \"./lock\";\nimport type { windowCoveringSchema } from \"./windowCovering\";\nimport type { courtesySchema } from \"./courtesy\";\nimport type { cameraSchema } from \"./camera\";\nimport type { mediaSourceSchema } from \"./mediaSource\";\nimport type { motionSensorSchema } from \"./motionSensor\";\nimport type { alarmSchema } from \"./alarm\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"hallway\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n devices: {\n type: \"array\",\n items: {\n discriminator: { propertyName: \"type\" },\n oneOf: [\n { $ref: \"switch.json\" },\n { $ref: \"dimmer.json\" },\n { $ref: \"thermostat.json\" },\n { $ref: \"lock.json\" },\n { $ref: \"windowCovering.json\" },\n { $ref: \"courtesy.json\" },\n { $ref: \"camera.json\" },\n { $ref: \"mediaSource.json\" },\n { $ref: \"motionSensor.json\" },\n { $ref: \"alarm.json\" },\n ],\n },\n default: [],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type SpaceSchema = FromSchema<\n typeof spaceSchema,\n {\n references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAaO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,MACA,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,KAAK;AAAA,MACH,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,eAAe;AAAA,MACjB;AAAA,MACA,YAAY;AAAA,QACV,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,SAAS;AAAA,Q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AAc,OAAO;AAAA,QACtC,OAAO;AAAA,UACL,EAAE,MAAM,cAAc;AAAA,UACtB,EAAE,MAAM,cAAc;AAAA,UACtB,EAAE,MAAM,kBAAkB;AAAA,UAC1B,EAAE,MAAM,YAAY;AAAA,UACpB,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,gBAAgB;AAAA,UACxB,EAAE,MAAM,cAAc;AAAA,UACtB,EAAE,MAAM,mBAAmB;AAAA,UAC3B,EAAE,MAAM,oBAAoB;AAAA,UAC5B,EAAE,MAAM,aAAa;AAAA,QACvB;AAAA,MACF;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { switchSchema } from \"./switch\";\nimport type { dimmerSchema } from \"./dimmer\";\nimport type { thermostatSchema } from \"./thermostat\";\nimport type { lockSchema } from \"./lock\";\nimport type { windowCoveringSchema } from \"./windowCovering\";\nimport type { courtesySchema } from \"./courtesy\";\nimport type { cameraSchema } from \"./camera\";\nimport type { mediaSourceSchema } from \"./mediaSource\";\nimport type { motionSensorSchema } from \"./motionSensor\";\nimport type { alarmSchema } from \"./alarm\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"hallway\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n devices: {\n type: \"array\",\n items: {\n discriminator: { propertyName: \"type\" },\n oneOf: [\n { $ref: \"switch.json\" },\n { $ref: \"dimmer.json\" },\n { $ref: \"thermostat.json\" },\n { $ref: \"lock.json\" },\n { $ref: \"windowCovering.json\" },\n { $ref: \"courtesy.json\" },\n { $ref: \"camera.json\" },\n { $ref: \"mediaSource.json\" },\n { $ref: \"motionSensor.json\" },\n { $ref: \"alarm.json\" },\n ],\n },\n default: [],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type SpaceSchema = FromSchema<\n typeof spaceSchema,\n {\n references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAaO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA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ACF;","names":[]}
|
package/dist/schemas/switch.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ declare const switchSchema: {
|
|
|
12
12
|
readonly id: {
|
|
13
13
|
readonly $ref: "definitions.json#/definitions/id";
|
|
14
14
|
};
|
|
15
|
+
readonly propertyId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
18
|
+
};
|
|
15
19
|
readonly name: {
|
|
16
20
|
readonly type: "string";
|
|
17
21
|
};
|
package/dist/schemas/switch.js
CHANGED
|
@@ -9,6 +9,10 @@ const switchSchema = {
|
|
|
9
9
|
id: {
|
|
10
10
|
$ref: "definitions.json#/definitions/id"
|
|
11
11
|
},
|
|
12
|
+
propertyId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
15
|
+
},
|
|
12
16
|
name: {
|
|
13
17
|
type: "string"
|
|
14
18
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/switch.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const switchSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"switch.json\",\n title: \"Switch\",\n description: \"Any smart switch\",\n type: \"object\",\n required: [\"id\", \"type\", \"state\", \"driver\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n enum: [\"switch\"],\n default: \"switch\",\n readOnly: true,\n },\n discriminator: {\n type: \"string\",\n enum: [\"light\", \"fan\", \"irrigation\"],\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\"\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n state: {\n type: \"string\",\n enum: [\"on\", \"off\"],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n readOnly: true,\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n restoresAt: {\n type: \"string\",\n format: \"date-time\",\n },\n },\n} as const;\n\nexport type SwitchSchema = FromSchema<\n typeof switchSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,SAAS,QAAQ;AAAA,EAC1C,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM,CAAC,SAAS,OAAO,YAAY;AAAA,MACnC,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM,CAAC,MAAM,KAAK;AAAA,IACpB;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/switch.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const switchSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"switch.json\",\n title: \"Switch\",\n description: \"Any smart switch\",\n type: \"object\",\n required: [\"id\", \"type\", \"state\", \"driver\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n enum: [\"switch\"],\n default: \"switch\",\n readOnly: true,\n },\n discriminator: {\n type: \"string\",\n enum: [\"light\", \"fan\", \"irrigation\"],\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\"\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n state: {\n type: \"string\",\n enum: [\"on\", \"off\"],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n readOnly: true,\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n restoresAt: {\n type: \"string\",\n format: \"date-time\",\n },\n },\n} as const;\n\nexport type SwitchSchema = FromSchema<\n typeof switchSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,SAAS,QAAQ;AAAA,EAC1C,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM,CAAC,SAAS,OAAO,YAAY;AAAA,MACnC,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM,CAAC,MAAM,KAAK;AAAA,IACpB;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,EACF;AACF;","names":[]}
|
|
@@ -14,6 +14,10 @@ declare const thermostatSchema: {
|
|
|
14
14
|
readonly $ref: "definitions.json#/definitions/id";
|
|
15
15
|
readonly readOnly: true;
|
|
16
16
|
};
|
|
17
|
+
readonly propertyId: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
20
|
+
};
|
|
17
21
|
readonly name: {
|
|
18
22
|
readonly $ref: "definitions.json#/definitions/name";
|
|
19
23
|
};
|
|
@@ -23,6 +23,10 @@ const thermostatSchema = {
|
|
|
23
23
|
$ref: "definitions.json#/definitions/id",
|
|
24
24
|
readOnly: true
|
|
25
25
|
},
|
|
26
|
+
propertyId: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
29
|
+
},
|
|
26
30
|
name: {
|
|
27
31
|
$ref: "definitions.json#/definitions/name"
|
|
28
32
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n readOnly: true,\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n readOnly: true,\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n readOnly: true,\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n readOnly: true,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n readOnly: true,\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n readOnly: true,\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n readOnly: true,\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n readOnly: true,\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n readOnly: true,\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n readOnly: true,\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n readOnly: true,\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n readOnly: true,\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n default: true,\n },\n // deprecated, use alerts instead\n equipment: {\n type: \"object\",\n properties: {\n status: {\n type: \"string\",\n enum: [\"Ok\", \"Trouble\"],\n },\n message: {\n type: \"string\",\n },\n },\n required: [\"status\"],\n },\n },\n definitions: {\n setpoint: {\n type: \"object\",\n additionalProperties: false,\n required: [\"value\", \"min\", \"max\"],\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n min: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n max: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n} as const;\n\nexport type ThermostatSchema = FromSchema<\n typeof thermostatSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,YAAY;AAAA,MACnB,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A,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,IACX;AAAA;AAAA,IAEA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,YAAY;AAAA,QACV,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,MAAM,CAAC,MAAM,SAAS;AAAA,QACxB;AAAA,QACA,SAAS;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,UAAU,CAAC,QAAQ;AAAA,IACrB;AAAA,EACF;AAAA,EACA,aAAa;AAAA,IACX,UAAU;AAAA,MACR,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,UAAU,CAAC,SAAS,OAAO,KAAK;AAAA,MAChC,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n readOnly: true,\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n readOnly: true,\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n readOnly: true,\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n readOnly: true,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n readOnly: true,\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n readOnly: true,\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n readOnly: true,\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n readOnly: true,\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n readOnly: true,\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n readOnly: true,\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n readOnly: true,\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n readOnly: true,\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n default: true,\n },\n // deprecated, use alerts instead\n equipment: {\n type: \"object\",\n properties: {\n status: {\n type: \"string\",\n enum: [\"Ok\", \"Trouble\"],\n },\n message: {\n type: \"string\",\n },\n },\n required: [\"status\"],\n },\n },\n definitions: {\n setpoint: {\n type: \"object\",\n additionalProperties: false,\n required: [\"value\", \"min\", \"max\"],\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n min: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n max: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n} as const;\n\nexport type ThermostatSchema = FromSchema<\n typeof thermostatSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,YAAY;AAAA,MACnB,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;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AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,IACX;AAAA;AAAA,IAEA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,YAAY;AAAA,QACV,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,MAAM,CAAC,MAAM,SAAS;AAAA,QACxB;AAAA,QACA,SAAS;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,UAAU,CAAC,QAAQ;AAAA,IACrB;AAAA,EACF;AAAA,EACA,aAAa;AAAA,IACX,UAAU;AAAA,MACR,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,UAAU,CAAC,SAAS,OAAO,KAAK;AAAA,MAChC,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/schemas/ticket.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ declare const ticketSchema: {
|
|
|
14
14
|
readonly id: {
|
|
15
15
|
readonly $ref: "definitions.json#/definitions/id";
|
|
16
16
|
};
|
|
17
|
+
readonly propertyId: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
20
|
+
};
|
|
17
21
|
readonly type: {
|
|
18
22
|
readonly type: "string";
|
|
19
23
|
readonly enum: readonly ["ticket"];
|
|
@@ -296,6 +300,12 @@ declare const ticketSchema: {
|
|
|
296
300
|
readonly enum: readonly ["low", "normal", "high", "critical"];
|
|
297
301
|
readonly default: "normal";
|
|
298
302
|
};
|
|
303
|
+
readonly priorityRank: {
|
|
304
|
+
readonly type: "integer";
|
|
305
|
+
readonly minimum: 1;
|
|
306
|
+
readonly maximum: 4;
|
|
307
|
+
readonly description: "Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients.";
|
|
308
|
+
};
|
|
299
309
|
readonly tags: {
|
|
300
310
|
readonly type: "array";
|
|
301
311
|
readonly default: readonly [];
|
|
@@ -326,6 +336,10 @@ declare const ticketSchema: {
|
|
|
326
336
|
readonly solvedAt: {
|
|
327
337
|
readonly $ref: "definitions.json#/definitions/date";
|
|
328
338
|
};
|
|
339
|
+
readonly lastMessageAt: {
|
|
340
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
341
|
+
readonly description: "Server-derived timestamp of the latest conversation message; initialized to createdAt when no message exists. Denormalized to support recency sorting; never set by clients.";
|
|
342
|
+
};
|
|
329
343
|
readonly closedAt: {
|
|
330
344
|
readonly $ref: "definitions.json#/definitions/date";
|
|
331
345
|
};
|
package/dist/schemas/ticket.js
CHANGED
|
@@ -21,6 +21,10 @@ const ticketSchema = {
|
|
|
21
21
|
id: {
|
|
22
22
|
$ref: "definitions.json#/definitions/id"
|
|
23
23
|
},
|
|
24
|
+
propertyId: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "ID of the property this entity belongs to. Optional \u2014 used as a per-document filter inside the org-scoped database."
|
|
27
|
+
},
|
|
24
28
|
type: {
|
|
25
29
|
type: "string",
|
|
26
30
|
enum: ["ticket"],
|
|
@@ -314,6 +318,12 @@ const ticketSchema = {
|
|
|
314
318
|
enum: ["low", "normal", "high", "critical"],
|
|
315
319
|
default: "normal"
|
|
316
320
|
},
|
|
321
|
+
priorityRank: {
|
|
322
|
+
type: "integer",
|
|
323
|
+
minimum: 1,
|
|
324
|
+
maximum: 4,
|
|
325
|
+
description: "Server-derived numeric rank of priority (low=1, normal=2, high=3, critical=4). Denormalized to support priority sorting; never set by clients."
|
|
326
|
+
},
|
|
317
327
|
tags: {
|
|
318
328
|
type: "array",
|
|
319
329
|
default: [],
|
|
@@ -344,6 +354,10 @@ const ticketSchema = {
|
|
|
344
354
|
solvedAt: {
|
|
345
355
|
$ref: "definitions.json#/definitions/date"
|
|
346
356
|
},
|
|
357
|
+
lastMessageAt: {
|
|
358
|
+
$ref: "definitions.json#/definitions/date",
|
|
359
|
+
description: "Server-derived timestamp of the latest conversation message; initialized to createdAt when no message exists. Denormalized to support recency sorting; never set by clients."
|
|
360
|
+
},
|
|
347
361
|
closedAt: {
|
|
348
362
|
$ref: "definitions.json#/definitions/date"
|
|
349
363
|
},
|