@kohost/api-client 5.0.7 → 5.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.
Files changed (95) hide show
  1. package/dist/cjs/{index-CjXs7rFc.d.cts → index-DGdGZN91.d.cts} +1 -10
  2. package/dist/cjs/index.d.cts +4 -10
  3. package/dist/cjs/models/index.cjs +0 -9
  4. package/dist/cjs/models/index.cjs.map +1 -1
  5. package/dist/cjs/models/index.d.cts +3 -9
  6. package/dist/cjs/models/property.cjs +0 -2
  7. package/dist/cjs/models/property.cjs.map +1 -1
  8. package/dist/cjs/models/space.cjs +0 -7
  9. package/dist/cjs/models/space.cjs.map +1 -1
  10. package/dist/cjs/models/user.cjs +0 -1
  11. package/dist/cjs/models/user.cjs.map +1 -1
  12. package/dist/cjs/schemas/index.cjs +0 -13
  13. package/dist/cjs/schemas/index.cjs.map +1 -1
  14. package/dist/cjs/schemas/index.d.cts +0 -3
  15. package/dist/cjs/schemas/property.cjs +1 -39
  16. package/dist/cjs/schemas/property.cjs.map +1 -1
  17. package/dist/cjs/schemas/property.d.cts +1 -39
  18. package/dist/cjs/schemas/space.cjs +0 -26
  19. package/dist/cjs/schemas/space.cjs.map +1 -1
  20. package/dist/cjs/schemas/space.d.cts +0 -26
  21. package/dist/cjs/schemas/ticket.cjs +0 -1
  22. package/dist/cjs/schemas/ticket.cjs.map +1 -1
  23. package/dist/cjs/schemas/ticket.d.cts +1 -1
  24. package/dist/cjs/schemas/user.cjs +0 -3
  25. package/dist/cjs/schemas/user.cjs.map +1 -1
  26. package/dist/cjs/schemas/user.d.cts +0 -3
  27. package/dist/cjs/validate.cjs +0 -15
  28. package/dist/cjs/validate.cjs.map +1 -1
  29. package/dist/cjs/validate.d.cts +1 -61
  30. package/dist/esm/{index-BLHzohDV.d.ts → index-BmUDCO4d.d.ts} +1 -10
  31. package/dist/esm/index.d.ts +4 -10
  32. package/dist/esm/models/index.d.ts +3 -9
  33. package/dist/esm/models/index.js +0 -6
  34. package/dist/esm/models/index.js.map +1 -1
  35. package/dist/esm/models/property.js +0 -2
  36. package/dist/esm/models/property.js.map +1 -1
  37. package/dist/esm/models/space.js +0 -7
  38. package/dist/esm/models/space.js.map +1 -1
  39. package/dist/esm/models/user.js +0 -1
  40. package/dist/esm/models/user.js.map +1 -1
  41. package/dist/esm/schemas/index.d.ts +0 -3
  42. package/dist/esm/schemas/index.js +2 -10
  43. package/dist/esm/schemas/index.js.map +1 -1
  44. package/dist/esm/schemas/property.d.ts +1 -39
  45. package/dist/esm/schemas/property.js +1 -39
  46. package/dist/esm/schemas/property.js.map +1 -1
  47. package/dist/esm/schemas/space.d.ts +0 -26
  48. package/dist/esm/schemas/space.js +0 -26
  49. package/dist/esm/schemas/space.js.map +1 -1
  50. package/dist/esm/schemas/ticket.d.ts +1 -1
  51. package/dist/esm/schemas/ticket.js +0 -1
  52. package/dist/esm/schemas/ticket.js.map +1 -1
  53. package/dist/esm/schemas/user.d.ts +0 -3
  54. package/dist/esm/schemas/user.js +0 -3
  55. package/dist/esm/schemas/user.js.map +1 -1
  56. package/dist/esm/validate.d.ts +155 -215
  57. package/dist/esm/validate.js +0 -12
  58. package/dist/esm/validate.js.map +1 -1
  59. package/package.json +1 -1
  60. package/dist/cjs/models/deviceRouter.cjs +0 -52
  61. package/dist/cjs/models/deviceRouter.cjs.map +0 -1
  62. package/dist/cjs/models/deviceRouter.d.cts +0 -23
  63. package/dist/cjs/models/room.cjs +0 -169
  64. package/dist/cjs/models/room.cjs.map +0 -1
  65. package/dist/cjs/models/room.d.cts +0 -48
  66. package/dist/cjs/models/scene.cjs +0 -54
  67. package/dist/cjs/models/scene.cjs.map +0 -1
  68. package/dist/cjs/models/scene.d.cts +0 -23
  69. package/dist/cjs/schemas/deviceRouter.cjs +0 -57
  70. package/dist/cjs/schemas/deviceRouter.cjs.map +0 -1
  71. package/dist/cjs/schemas/deviceRouter.d.cts +0 -46
  72. package/dist/cjs/schemas/room.cjs +0 -317
  73. package/dist/cjs/schemas/room.cjs.map +0 -1
  74. package/dist/cjs/schemas/room.d.cts +0 -223
  75. package/dist/cjs/schemas/scene.cjs +0 -174
  76. package/dist/cjs/schemas/scene.cjs.map +0 -1
  77. package/dist/cjs/schemas/scene.d.cts +0 -163
  78. package/dist/esm/models/deviceRouter.d.ts +0 -23
  79. package/dist/esm/models/deviceRouter.js +0 -32
  80. package/dist/esm/models/deviceRouter.js.map +0 -1
  81. package/dist/esm/models/room.d.ts +0 -48
  82. package/dist/esm/models/room.js +0 -147
  83. package/dist/esm/models/room.js.map +0 -1
  84. package/dist/esm/models/scene.d.ts +0 -23
  85. package/dist/esm/models/scene.js +0 -32
  86. package/dist/esm/models/scene.js.map +0 -1
  87. package/dist/esm/schemas/deviceRouter.d.ts +0 -46
  88. package/dist/esm/schemas/deviceRouter.js +0 -34
  89. package/dist/esm/schemas/deviceRouter.js.map +0 -1
  90. package/dist/esm/schemas/room.d.ts +0 -223
  91. package/dist/esm/schemas/room.js +0 -292
  92. package/dist/esm/schemas/room.js.map +0 -1
  93. package/dist/esm/schemas/scene.d.ts +0 -163
  94. package/dist/esm/schemas/scene.js +0 -151
  95. package/dist/esm/schemas/scene.js.map +0 -1
@@ -7,7 +7,6 @@ import { Category, CategoryData } from './models/category.js';
7
7
  import { Courtesy, CourtesyData } from './models/courtesy.js';
8
8
  import { Credential, CredentialData } from './models/credential.js';
9
9
  import { Department, DepartmentData } from './models/department.js';
10
- import { DeviceRouter, DeviceRouterData } from './models/deviceRouter.js';
11
10
  import { Dimmer, DimmerData } from './models/dimmer.js';
12
11
  import { DiscoveredDevice, DiscoveredDeviceData } from './models/discoveredDevice.js';
13
12
  import { EmailMessage, EmailMessageData } from './models/emailMessage.js';
@@ -31,8 +30,6 @@ import { Policy, PolicyData } from './models/policy.js';
31
30
  import { Product, ProductData } from './models/product.js';
32
31
  import { Property, PropertyData } from './models/property.js';
33
32
  import { Reservation, ReservationData } from './models/reservation.js';
34
- import { Room, RoomData } from './models/room.js';
35
- import { Scene, SceneData } from './models/scene.js';
36
33
  import { Server, ServerData } from './models/server.js';
37
34
  import { Session, SessionData } from './models/session.js';
38
35
  import { ShortLink, ShortLinkData } from './models/shortLink.js';
@@ -64,8 +61,6 @@ declare const index_Credential: typeof Credential;
64
61
  declare const index_CredentialData: typeof CredentialData;
65
62
  declare const index_Department: typeof Department;
66
63
  declare const index_DepartmentData: typeof DepartmentData;
67
- declare const index_DeviceRouter: typeof DeviceRouter;
68
- declare const index_DeviceRouterData: typeof DeviceRouterData;
69
64
  declare const index_Dimmer: typeof Dimmer;
70
65
  declare const index_DimmerData: typeof DimmerData;
71
66
  declare const index_DiscoveredDevice: typeof DiscoveredDevice;
@@ -113,10 +108,6 @@ declare const index_Property: typeof Property;
113
108
  declare const index_PropertyData: typeof PropertyData;
114
109
  declare const index_Reservation: typeof Reservation;
115
110
  declare const index_ReservationData: typeof ReservationData;
116
- declare const index_Room: typeof Room;
117
- declare const index_RoomData: typeof RoomData;
118
- declare const index_Scene: typeof Scene;
119
- declare const index_SceneData: typeof SceneData;
120
111
  declare const index_Server: typeof Server;
121
112
  declare const index_ServerData: typeof ServerData;
122
113
  declare const index_Session: typeof Session;
@@ -146,7 +137,7 @@ declare const index_VendorData: typeof VendorData;
146
137
  declare const index_WindowCovering: typeof WindowCovering;
147
138
  declare const index_WindowCoveringData: typeof WindowCoveringData;
148
139
  declare namespace index {
149
- export { index_Alarm as Alarm, index_AlarmData as AlarmData, index_Announcement as Announcement, index_AnnouncementData as AnnouncementData, index_Automation as Automation, index_AutomationData as AutomationData, index_Camera as Camera, index_CameraData as CameraData, index_Category as Category, index_CategoryData as CategoryData, index_Courtesy as Courtesy, index_CourtesyData as CourtesyData, index_Credential as Credential, index_CredentialData as CredentialData, index_Department as Department, index_DepartmentData as DepartmentData, index_DeviceRouter as DeviceRouter, index_DeviceRouterData as DeviceRouterData, index_Dimmer as Dimmer, index_DimmerData as DimmerData, index_DiscoveredDevice as DiscoveredDevice, index_DiscoveredDeviceData as DiscoveredDeviceData, index_EmailMessage as EmailMessage, index_EmailMessageData as EmailMessageData, index_EnergyReport as EnergyReport, index_EnergyReportData as EnergyReportData, index_EnergyReportShard as EnergyReportShard, index_EnergyReportShardData as EnergyReportShardData, index_Entity as Entity, index_Gateway as Gateway, index_GatewayData as GatewayData, index_Group as Group, index_GroupData as GroupData, index_Identification as Identification, index_IdentificationData as IdentificationData, index_Integration as Integration, index_IntegrationData as IntegrationData, index_Issue as Issue, index_IssueData as IssueData, index_Lock as Lock, index_LockData as LockData, index_Log as Log, index_LogData as LogData, index_MediaFile as MediaFile, index_MediaFileData as MediaFileData, index_MediaSource as MediaSource, index_MediaSourceData as MediaSourceData, index_MotionSensor as MotionSensor, index_MotionSensorData as MotionSensorData, index_Notification as Notification, index_NotificationData as NotificationData, index_Order as Order, index_OrderData as OrderData, index_Organization as Organization, index_OrganizationData as OrganizationData, index_Payment as Payment, index_PaymentData as PaymentData, index_Policy as Policy, index_PolicyData as PolicyData, index_Product as Product, index_ProductData as ProductData, index_Property as Property, index_PropertyData as PropertyData, index_Reservation as Reservation, index_ReservationData as ReservationData, index_Room as Room, index_RoomData as RoomData, index_Scene as Scene, index_SceneData as SceneData, index_Server as Server, index_ServerData as ServerData, index_Session as Session, index_SessionData as SessionData, index_ShortLink as ShortLink, index_ShortLinkData as ShortLinkData, index_SmsMessage as SmsMessage, index_SmsMessageData as SmsMessageData, index_Space as Space, index_SpaceData as SpaceData, index_Switch as Switch, index_SwitchData as SwitchData, index_System as System, index_SystemData as SystemData, index_SystemUser as SystemUser, index_SystemUserData as SystemUserData, index_Thermostat as Thermostat, index_ThermostatData as ThermostatData, index_Ticket as Ticket, index_TicketData as TicketData, index_TimeSheet as TimeSheet, index_TimeSheetData as TimeSheetData, index_User as User, index_UserData as UserData, index_Vendor as Vendor, index_VendorData as VendorData, index_WindowCovering as WindowCovering, index_WindowCoveringData as WindowCoveringData };
140
+ export { index_Alarm as Alarm, index_AlarmData as AlarmData, index_Announcement as Announcement, index_AnnouncementData as AnnouncementData, index_Automation as Automation, index_AutomationData as AutomationData, index_Camera as Camera, index_CameraData as CameraData, index_Category as Category, index_CategoryData as CategoryData, index_Courtesy as Courtesy, index_CourtesyData as CourtesyData, index_Credential as Credential, index_CredentialData as CredentialData, index_Department as Department, index_DepartmentData as DepartmentData, index_Dimmer as Dimmer, index_DimmerData as DimmerData, index_DiscoveredDevice as DiscoveredDevice, index_DiscoveredDeviceData as DiscoveredDeviceData, index_EmailMessage as EmailMessage, index_EmailMessageData as EmailMessageData, index_EnergyReport as EnergyReport, index_EnergyReportData as EnergyReportData, index_EnergyReportShard as EnergyReportShard, index_EnergyReportShardData as EnergyReportShardData, index_Entity as Entity, index_Gateway as Gateway, index_GatewayData as GatewayData, index_Group as Group, index_GroupData as GroupData, index_Identification as Identification, index_IdentificationData as IdentificationData, index_Integration as Integration, index_IntegrationData as IntegrationData, index_Issue as Issue, index_IssueData as IssueData, index_Lock as Lock, index_LockData as LockData, index_Log as Log, index_LogData as LogData, index_MediaFile as MediaFile, index_MediaFileData as MediaFileData, index_MediaSource as MediaSource, index_MediaSourceData as MediaSourceData, index_MotionSensor as MotionSensor, index_MotionSensorData as MotionSensorData, index_Notification as Notification, index_NotificationData as NotificationData, index_Order as Order, index_OrderData as OrderData, index_Organization as Organization, index_OrganizationData as OrganizationData, index_Payment as Payment, index_PaymentData as PaymentData, index_Policy as Policy, index_PolicyData as PolicyData, index_Product as Product, index_ProductData as ProductData, index_Property as Property, index_PropertyData as PropertyData, index_Reservation as Reservation, index_ReservationData as ReservationData, index_Server as Server, index_ServerData as ServerData, index_Session as Session, index_SessionData as SessionData, index_ShortLink as ShortLink, index_ShortLinkData as ShortLinkData, index_SmsMessage as SmsMessage, index_SmsMessageData as SmsMessageData, index_Space as Space, index_SpaceData as SpaceData, index_Switch as Switch, index_SwitchData as SwitchData, index_System as System, index_SystemData as SystemData, index_SystemUser as SystemUser, index_SystemUserData as SystemUserData, index_Thermostat as Thermostat, index_ThermostatData as ThermostatData, index_Ticket as Ticket, index_TicketData as TicketData, index_TimeSheet as TimeSheet, index_TimeSheetData as TimeSheetData, index_User as User, index_UserData as UserData, index_Vendor as Vendor, index_VendorData as VendorData, index_WindowCovering as WindowCovering, index_WindowCoveringData as WindowCoveringData };
150
141
  }
151
142
 
152
143
  export { index as i };
@@ -3,7 +3,7 @@ export { KohostHTTPClient as Client } from './httpClient.js';
3
3
  export { i as Commands } from './index-PDa8BHjL.js';
4
4
  export { i as Errors } from './index-7k9xaBaL.js';
5
5
  export { i as Events } from './index-B1__8mca.js';
6
- export { i as Models } from './index-BLHzohDV.js';
6
+ export { i as Models } from './index-BmUDCO4d.js';
7
7
  export { i as UseCases } from './index-CwkLEwUB.js';
8
8
  import 'node:buffer';
9
9
  import './useCases/createPwaHandoffToken.js';
@@ -231,8 +231,6 @@ import './models/credential.js';
231
231
  import './schemas/credential.js';
232
232
  import './models/department.js';
233
233
  import './schemas/department.js';
234
- import './models/deviceRouter.js';
235
- import './schemas/deviceRouter.js';
236
234
  import './models/dimmer.js';
237
235
  import './schemas/dimmer.js';
238
236
  import './models/discoveredDevice.js';
@@ -280,13 +278,6 @@ import './models/property.js';
280
278
  import './schemas/property.js';
281
279
  import './models/reservation.js';
282
280
  import './schemas/reservation.js';
283
- import './models/room.js';
284
- import './schemas/room.js';
285
- import './schemas/switch.js';
286
- import './schemas/thermostat.js';
287
- import './schemas/windowCovering.js';
288
- import './models/scene.js';
289
- import './schemas/scene.js';
290
281
  import './models/server.js';
291
282
  import './schemas/server.js';
292
283
  import './models/session.js';
@@ -297,6 +288,9 @@ import './models/smsMessage.js';
297
288
  import './schemas/smsMessage.js';
298
289
  import './models/space.js';
299
290
  import './schemas/space.js';
291
+ import './schemas/switch.js';
292
+ import './schemas/thermostat.js';
293
+ import './schemas/windowCovering.js';
300
294
  import './models/switch.js';
301
295
  import './models/system.js';
302
296
  import './schemas/system.js';
@@ -7,7 +7,6 @@ export { Category, CategoryData } from './category.js';
7
7
  export { Courtesy, CourtesyData } from './courtesy.js';
8
8
  export { Credential, CredentialData } from './credential.js';
9
9
  export { Department, DepartmentData } from './department.js';
10
- export { DeviceRouter, DeviceRouterData } from './deviceRouter.js';
11
10
  export { Dimmer, DimmerData } from './dimmer.js';
12
11
  export { DiscoveredDevice, DiscoveredDeviceData } from './discoveredDevice.js';
13
12
  export { EmailMessage, EmailMessageData } from './emailMessage.js';
@@ -31,8 +30,6 @@ export { Policy, PolicyData } from './policy.js';
31
30
  export { Product, ProductData } from './product.js';
32
31
  export { Property, PropertyData } from './property.js';
33
32
  export { Reservation, ReservationData } from './reservation.js';
34
- export { Room, RoomData } from './room.js';
35
- export { Scene, SceneData } from './scene.js';
36
33
  export { Server, ServerData } from './server.js';
37
34
  export { Session, SessionData } from './session.js';
38
35
  export { ShortLink, ShortLinkData } from './shortLink.js';
@@ -59,7 +56,6 @@ import '../schemas/category.js';
59
56
  import '../schemas/courtesy.js';
60
57
  import '../schemas/credential.js';
61
58
  import '../schemas/department.js';
62
- import '../schemas/deviceRouter.js';
63
59
  import '../schemas/dimmer.js';
64
60
  import '../schemas/discoveredDevice.js';
65
61
  import '../schemas/emailMessage.js';
@@ -84,16 +80,14 @@ import '../schemas/policy.js';
84
80
  import '../schemas/product.js';
85
81
  import '../schemas/property.js';
86
82
  import '../schemas/reservation.js';
87
- import '../schemas/room.js';
88
- import '../schemas/switch.js';
89
- import '../schemas/thermostat.js';
90
- import '../schemas/windowCovering.js';
91
- import '../schemas/scene.js';
92
83
  import '../schemas/server.js';
93
84
  import '../schemas/session.js';
94
85
  import '../schemas/shortLink.js';
95
86
  import '../schemas/smsMessage.js';
96
87
  import '../schemas/space.js';
88
+ import '../schemas/switch.js';
89
+ import '../schemas/thermostat.js';
90
+ import '../schemas/windowCovering.js';
97
91
  import '../schemas/system.js';
98
92
  import '../schemas/systemUser.js';
99
93
  import '../schemas/timeSheet.js';
@@ -7,7 +7,6 @@ import { Category } from "./category.js";
7
7
  import { Courtesy } from "./courtesy.js";
8
8
  import { Credential } from "./credential.js";
9
9
  import { Department } from "./department.js";
10
- import { DeviceRouter } from "./deviceRouter.js";
11
10
  import { Dimmer } from "./dimmer.js";
12
11
  import {
13
12
  DiscoveredDevice
@@ -35,8 +34,6 @@ import { Policy } from "./policy.js";
35
34
  import { Product } from "./product.js";
36
35
  import { Property } from "./property.js";
37
36
  import { Reservation } from "./reservation.js";
38
- import { Room } from "./room.js";
39
- import { Scene } from "./scene.js";
40
37
  import { Server } from "./server.js";
41
38
  import { Session } from "./session.js";
42
39
  import { ShortLink } from "./shortLink.js";
@@ -60,7 +57,6 @@ export {
60
57
  Courtesy,
61
58
  Credential,
62
59
  Department,
63
- DeviceRouter,
64
60
  Dimmer,
65
61
  DiscoveredDevice,
66
62
  EmailMessage,
@@ -85,8 +81,6 @@ export {
85
81
  Product,
86
82
  Property,
87
83
  Reservation,
88
- Room,
89
- Scene,
90
84
  Server,
91
85
  Session,
92
86
  ShortLink,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { DeviceRouter, type DeviceRouterData } from \"./deviceRouter.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport {\n DiscoveredDevice,\n type DiscoveredDeviceData,\n} from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport {\n EnergyReportShard,\n type EnergyReportShardData,\n} from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Room, type RoomData } from \"./room.js\";\nexport { Scene, type SceneData } from \"./scene.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":"AAEA,SAAS,cAAc;AAEvB,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,gBAAmC;AAC5C,SAAS,gBAAmC;AAC5C,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,oBAA2C;AACpD,SAAS,cAA+B;AACxC;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD;AAAA,EACE;AAAA,OAEK;AACP,SAAS,eAAiC;AAC1C,SAAS,aAA6B;AACtC,SAAS,sBAA+C;AACxD,SAAS,mBAAyC;AAClD,SAAS,aAA6B;AACtC,SAAS,YAA2B;AACpC,SAAS,WAAyB;AAClC,SAAS,iBAAqC;AAC9C,SAAS,mBAAyC;AAClD,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,eAAiC;AAC1C,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,gBAAmC;AAC5C,SAAS,mBAAyC;AAClD,SAAS,YAA2B;AACpC,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,iBAAqC;AAC9C,SAAS,kBAAuC;AAChD,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,cAA+B;AACxC,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,iBAAqC;AAC9C,SAAS,YAA2B;AACpC,SAAS,cAA+B;AACxC,SAAS,sBAA+C;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport {\n DiscoveredDevice,\n type DiscoveredDeviceData,\n} from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport {\n EnergyReportShard,\n type EnergyReportShardData,\n} from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":"AAEA,SAAS,cAAc;AAEvB,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,gBAAmC;AAC5C,SAAS,gBAAmC;AAC5C,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD;AAAA,EACE;AAAA,OAEK;AACP,SAAS,eAAiC;AAC1C,SAAS,aAA6B;AACtC,SAAS,sBAA+C;AACxD,SAAS,mBAAyC;AAClD,SAAS,aAA6B;AACtC,SAAS,YAA2B;AACpC,SAAS,WAAyB;AAClC,SAAS,iBAAqC;AAC9C,SAAS,mBAAyC;AAClD,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,eAAiC;AAC1C,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,gBAAmC;AAC5C,SAAS,mBAAyC;AAClD,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,iBAAqC;AAC9C,SAAS,kBAAuC;AAChD,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,cAA+B;AACxC,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,iBAAqC;AAC9C,SAAS,YAA2B;AACpC,SAAS,cAA+B;AACxC,SAAS,sBAA+C;","names":[]}
@@ -21,8 +21,6 @@ class Property extends Entity {
21
21
  if (data.smsNumber !== void 0) this.smsNumber = data.smsNumber;
22
22
  if (data.voiceNumber !== void 0) this.voiceNumber = data.voiceNumber;
23
23
  if (data.tags !== void 0) this.tags = data.tags;
24
- if (data.checkInTime !== void 0) this.checkInTime = data.checkInTime;
25
- if (data.checkOutTime !== void 0) this.checkOutTime = data.checkOutTime;
26
24
  if (data.address !== void 0) this.address = data.address;
27
25
  if (data.latitude !== void 0) this.latitude = data.latitude;
28
26
  if (data.longitude !== void 0) this.longitude = data.longitude;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/property.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateProperty as validate } from \"../validate.js\";\nimport { propertySchema, type PropertySchema } from \"../schemas/property.js\";\n\n/**\n * Data type for Property constructor - exported for backwards compatibility\n */\nexport type PropertyData = PropertySchema;\n\n/**\n * A property is a physical asset or building\n */\nexport interface Property extends PropertySchema {}\nexport class Property extends Entity {\n declare schema: typeof propertySchema;\n declare validator: typeof validate;\n\n constructor(data: PropertySchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n this.discriminator = data.discriminator;\n this.organization = data.organization;\n if (data.testModeEnabled !== undefined)\n this.testModeEnabled = data.testModeEnabled;\n if (data.testMode !== undefined) this.testMode = data.testMode;\n this.timezone = data.timezone;\n if (data.smsNumber !== undefined) this.smsNumber = data.smsNumber;\n if (data.voiceNumber !== undefined) this.voiceNumber = data.voiceNumber;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.checkInTime !== undefined) this.checkInTime = data.checkInTime;\n if (data.checkOutTime !== undefined) this.checkOutTime = data.checkOutTime;\n if (data.address !== undefined) this.address = data.address;\n if (data.latitude !== undefined) this.latitude = data.latitude;\n if (data.longitude !== undefined) this.longitude = data.longitude;\n if (data.appFeatures !== undefined) this.appFeatures = data.appFeatures;\n if (data.notifications !== undefined)\n this.notifications = data.notifications;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n }\n}\n\nObject.defineProperty(Property.prototype, \"schema\", {\n value: propertySchema,\n});\n\nObject.defineProperty(Property.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"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,"sources":["../../../.generated/models/property.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateProperty as validate } from \"../validate.js\";\nimport { propertySchema, type PropertySchema } from \"../schemas/property.js\";\n\n/**\n * Data type for Property constructor - exported for backwards compatibility\n */\nexport type PropertyData = PropertySchema;\n\n/**\n * A property is a physical asset or building\n */\nexport interface Property extends PropertySchema {}\nexport class Property extends Entity {\n declare schema: typeof propertySchema;\n declare validator: typeof validate;\n\n constructor(data: PropertySchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n this.discriminator = data.discriminator;\n this.organization = data.organization;\n if (data.testModeEnabled !== undefined)\n this.testModeEnabled = data.testModeEnabled;\n if (data.testMode !== undefined) this.testMode = data.testMode;\n this.timezone = data.timezone;\n if (data.smsNumber !== undefined) this.smsNumber = data.smsNumber;\n if (data.voiceNumber !== undefined) this.voiceNumber = data.voiceNumber;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.address !== undefined) this.address = data.address;\n if (data.latitude !== undefined) this.latitude = data.latitude;\n if (data.longitude !== undefined) this.longitude = data.longitude;\n if (data.appFeatures !== undefined) this.appFeatures = data.appFeatures;\n if (data.notifications !== undefined)\n this.notifications = data.notifications;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n }\n}\n\nObject.defineProperty(Property.prototype, \"schema\", {\n value: propertySchema,\n});\n\nObject.defineProperty(Property.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,oBAAoB,gBAAgB;AAC7C,SAAS,sBAA2C;AAW7C,MAAM,iBAAiB,OAAO;AAAA,EAfrC,OAeqC;AAAA;AAAA;AAAA,EAInC,YAAY,MAAsB;AAChC,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,SAAK,gBAAgB,KAAK;AAC1B,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAC9B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,WAAW,KAAK;AACrB,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAAA,EAC9D;AACF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU;AAAA,EAClD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa;AAAA,EACrD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -16,19 +16,12 @@ class Space extends Entity {
16
16
  this.discriminator = data.discriminator;
17
17
  if (data.floor !== void 0) this.floor = data.floor;
18
18
  if (data.driver !== void 0) this.driver = data.driver;
19
- if (data.category !== void 0) this.category = data.category;
20
- if (data.rooms !== void 0) this.rooms = data.rooms;
21
19
  if (data.spaces !== void 0) this.spaces = data.spaces;
22
20
  if (data.occupied !== void 0) this.occupied = data.occupied;
23
21
  if (data.inUse !== void 0) this.inUse = data.inUse;
24
22
  if (data.eco !== void 0) this.eco = data.eco;
25
- if (data.features !== void 0) this.features = data.features;
26
23
  if (data.maximumOccupancy !== void 0)
27
24
  this.maximumOccupancy = data.maximumOccupancy;
28
- if (data.housekeepingStatus !== void 0)
29
- this.housekeepingStatus = data.housekeepingStatus;
30
- if (data.serviceStatus !== void 0)
31
- this.serviceStatus = data.serviceStatus;
32
25
  if (data.devices !== void 0) this.devices = data.devices;
33
26
  if (data.systemId !== void 0) this.systemId = data.systemId;
34
27
  if (data.createdAt !== void 0) this.createdAt = data.createdAt;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/space.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateSpace as validate } from \"../validate.js\";\nimport { spaceSchema, type SpaceSchema } from \"../schemas/space.js\";\n\n/**\n * Data type for Space constructor - exported for backwards compatibility\n */\nexport type SpaceData = SpaceSchema;\n\n/**\n * Space\n */\nexport interface Space extends SpaceSchema {}\nexport class Space extends Entity {\n declare schema: typeof spaceSchema;\n declare validator: typeof validate;\n\n constructor(data: SpaceSchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n if (data.floor !== undefined) this.floor = data.floor;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.category !== undefined) this.category = data.category;\n if (data.rooms !== undefined) this.rooms = data.rooms;\n if (data.spaces !== undefined) this.spaces = data.spaces;\n if (data.occupied !== undefined) this.occupied = data.occupied;\n if (data.inUse !== undefined) this.inUse = data.inUse;\n if (data.eco !== undefined) this.eco = data.eco;\n if (data.features !== undefined) this.features = data.features;\n if (data.maximumOccupancy !== undefined)\n this.maximumOccupancy = data.maximumOccupancy;\n if (data.housekeepingStatus !== undefined)\n this.housekeepingStatus = data.housekeepingStatus;\n if (data.serviceStatus !== undefined)\n this.serviceStatus = data.serviceStatus;\n if (data.devices !== undefined) this.devices = data.devices;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Space.prototype, \"schema\", {\n value: spaceSchema,\n});\n\nObject.defineProperty(Space.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,iBAAiB,gBAAgB;AAC1C,SAAS,mBAAqC;AAWvC,MAAM,cAAc,OAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,QAAQ,OAAW,MAAK,MAAM,KAAK;AAC5C,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,uBAAuB;AAC9B,WAAK,qBAAqB,KAAK;AACjC,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU;AAAA,EAC/C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa;AAAA,EAClD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/models/space.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateSpace as validate } from \"../validate.js\";\nimport { spaceSchema, type SpaceSchema } from \"../schemas/space.js\";\n\n/**\n * Data type for Space constructor - exported for backwards compatibility\n */\nexport type SpaceData = SpaceSchema;\n\n/**\n * Space\n */\nexport interface Space extends SpaceSchema {}\nexport class Space extends Entity {\n declare schema: typeof spaceSchema;\n declare validator: typeof validate;\n\n constructor(data: SpaceSchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n if (data.floor !== undefined) this.floor = data.floor;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.spaces !== undefined) this.spaces = data.spaces;\n if (data.occupied !== undefined) this.occupied = data.occupied;\n if (data.inUse !== undefined) this.inUse = data.inUse;\n if (data.eco !== undefined) this.eco = data.eco;\n if (data.maximumOccupancy !== undefined)\n this.maximumOccupancy = data.maximumOccupancy;\n if (data.devices !== undefined) this.devices = data.devices;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Space.prototype, \"schema\", {\n value: spaceSchema,\n});\n\nObject.defineProperty(Space.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,iBAAiB,gBAAgB;AAC1C,SAAS,mBAAqC;AAWvC,MAAM,cAAc,OAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,QAAQ,OAAW,MAAK,MAAM,KAAK;AAC5C,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU;AAAA,EAC/C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa;AAAA,EAClD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -34,7 +34,6 @@ class User extends Entity {
34
34
  if (data.notes !== void 0) this.notes = data.notes;
35
35
  if (data.files !== void 0) this.files = data.files;
36
36
  if (data.location !== void 0) this.location = data.location;
37
- if (data.spaceName !== void 0) this.spaceName = data.spaceName;
38
37
  if (data.systems !== void 0) this.systems = data.systems;
39
38
  if (data.createdAt !== void 0) this.createdAt = data.createdAt;
40
39
  if (data.updatedAt !== void 0) this.updatedAt = data.updatedAt;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/user.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateUser as validate } from \"../validate.js\";\nimport { userSchema, type UserSchema } from \"../schemas/user.js\";\n\n/**\n * Data type for User constructor - exported for backwards compatibility\n */\nexport type UserData = UserSchema;\n\n/**\n * User\n */\nexport interface User extends UserSchema {}\nexport class User extends Entity {\n declare schema: typeof userSchema;\n declare validator: typeof validate;\n\n constructor(data: UserSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n this.firstName = data.firstName;\n this.lastName = data.lastName;\n if (data.phone !== undefined) this.phone = data.phone;\n if (data.phoneVerified !== undefined)\n this.phoneVerified = data.phoneVerified;\n if (data.email !== undefined) this.email = data.email;\n if (data.emailVerified !== undefined)\n this.emailVerified = data.emailVerified;\n if (data.whatsapp !== undefined) this.whatsapp = data.whatsapp;\n if (data.whatsappVerified !== undefined)\n this.whatsappVerified = data.whatsappVerified;\n if (data.address !== undefined) this.address = data.address;\n if (data.secretKey !== undefined) this.secretKey = data.secretKey;\n if (data.photo !== undefined) this.photo = data.photo;\n if (data.jobTitle !== undefined) this.jobTitle = data.jobTitle;\n if (data.dob !== undefined) this.dob = data.dob;\n if (data.gender !== undefined) this.gender = data.gender;\n if (data.nationality !== undefined) this.nationality = data.nationality;\n if (data.permissions !== undefined) this.permissions = data.permissions;\n if (data.preferences !== undefined) this.preferences = data.preferences;\n if (data.notes !== undefined) this.notes = data.notes;\n if (data.files !== undefined) this.files = data.files;\n if (data.location !== undefined) this.location = data.location;\n if (data.spaceName !== undefined) this.spaceName = data.spaceName;\n if (data.systems !== undefined) this.systems = data.systems;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n get roles() {\n const roles = new Set();\n if (this.permissions) {\n for (const permission of this.permissions) {\n roles.add(permission.role);\n }\n }\n return Array.from(roles);\n }\n\n get isSuperAdmin() {\n return this.roles.includes(\"SuperAdmin\");\n }\n\n get isAdmin() {\n return this.roles.includes(\"Admin\") || this.roles.includes(\"Administrator\");\n }\n\n get isManager() {\n return this.roles.includes(\"Manager\");\n }\n\n get isUser() {\n return this.roles.includes(\"User\");\n }\n}\n\nObject.defineProperty(User.prototype, \"schema\", {\n value: userSchema,\n});\n\nObject.defineProperty(User.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,gBAAgB,gBAAgB;AACzC,SAAS,kBAAmC;AAWrC,MAAM,aAAa,OAAO;AAAA,EAfjC,OAeiC;AAAA;AAAA;AAAA,EAI/B,YAAY,MAAkB;AAC5B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,SAAK,YAAY,KAAK;AACtB,SAAK,WAAW,KAAK;AACrB,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,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EAEA,IAAI,YAAY;AACd,WAAO,KAAK,MAAM,SAAS,SAAS;AAAA,EACtC;AAAA,EAEA,IAAI,SAAS;AACX,WAAO,KAAK,MAAM,SAAS,MAAM;AAAA,EACnC;AACF;AAEA,OAAO,eAAe,KAAK,WAAW,UAAU;AAAA,EAC9C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,KAAK,WAAW,aAAa;AAAA,EACjD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/models/user.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateUser as validate } from \"../validate.js\";\nimport { userSchema, type UserSchema } from \"../schemas/user.js\";\n\n/**\n * Data type for User constructor - exported for backwards compatibility\n */\nexport type UserData = UserSchema;\n\n/**\n * User\n */\nexport interface User extends UserSchema {}\nexport class User extends Entity {\n declare schema: typeof userSchema;\n declare validator: typeof validate;\n\n constructor(data: UserSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n this.firstName = data.firstName;\n this.lastName = data.lastName;\n if (data.phone !== undefined) this.phone = data.phone;\n if (data.phoneVerified !== undefined)\n this.phoneVerified = data.phoneVerified;\n if (data.email !== undefined) this.email = data.email;\n if (data.emailVerified !== undefined)\n this.emailVerified = data.emailVerified;\n if (data.whatsapp !== undefined) this.whatsapp = data.whatsapp;\n if (data.whatsappVerified !== undefined)\n this.whatsappVerified = data.whatsappVerified;\n if (data.address !== undefined) this.address = data.address;\n if (data.secretKey !== undefined) this.secretKey = data.secretKey;\n if (data.photo !== undefined) this.photo = data.photo;\n if (data.jobTitle !== undefined) this.jobTitle = data.jobTitle;\n if (data.dob !== undefined) this.dob = data.dob;\n if (data.gender !== undefined) this.gender = data.gender;\n if (data.nationality !== undefined) this.nationality = data.nationality;\n if (data.permissions !== undefined) this.permissions = data.permissions;\n if (data.preferences !== undefined) this.preferences = data.preferences;\n if (data.notes !== undefined) this.notes = data.notes;\n if (data.files !== undefined) this.files = data.files;\n if (data.location !== undefined) this.location = data.location;\n if (data.systems !== undefined) this.systems = data.systems;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n get roles() {\n const roles = new Set();\n if (this.permissions) {\n for (const permission of this.permissions) {\n roles.add(permission.role);\n }\n }\n return Array.from(roles);\n }\n\n get isSuperAdmin() {\n return this.roles.includes(\"SuperAdmin\");\n }\n\n get isAdmin() {\n return this.roles.includes(\"Admin\") || this.roles.includes(\"Administrator\");\n }\n\n get isManager() {\n return this.roles.includes(\"Manager\");\n }\n\n get isUser() {\n return this.roles.includes(\"User\");\n }\n}\n\nObject.defineProperty(User.prototype, \"schema\", {\n value: userSchema,\n});\n\nObject.defineProperty(User.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,gBAAgB,gBAAgB;AACzC,SAAS,kBAAmC;AAWrC,MAAM,aAAa,OAAO;AAAA,EAfjC,OAeiC;AAAA;AAAA;AAAA,EAI/B,YAAY,MAAkB;AAC5B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,SAAK,YAAY,KAAK;AACtB,SAAK,WAAW,KAAK;AACrB,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,qBAAqB;AAC5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AAM,SAAS,OAAO,KAAK,KAAK,MAAM,SAAS,eAAe;AAAA,EAC5E;AAAA,EAEA,IAAI,YAAY;AACd,WAAO,KAAK,MAAM,SAAS,SAAS;AAAA,EACtC;AAAA,EAEA,IAAI,SAAS;AACX,WAAO,KAAK,MAAM,SAAS,MAAM;AAAA,EACnC;AACF;AAEA,OAAO,eAAe,KAAK,WAAW,UAAU;AAAA,EAC9C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,KAAK,WAAW,aAAa;AAAA,EACjD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -6,7 +6,6 @@ export { CategorySchema, categorySchema } from './category.js';
6
6
  export { CourtesySchema, courtesySchema } from './courtesy.js';
7
7
  export { CredentialSchema, credentialSchema } from './credential.js';
8
8
  export { DepartmentSchema, departmentSchema } from './department.js';
9
- export { DeviceRouterSchema, deviceRouterSchema } from './deviceRouter.js';
10
9
  export { DimmerSchema, dimmerSchema } from './dimmer.js';
11
10
  export { DiscoveredDeviceSchema, discoveredDeviceSchema } from './discoveredDevice.js';
12
11
  export { EmailMessageSchema, emailMessageSchema } from './emailMessage.js';
@@ -30,8 +29,6 @@ export { PolicySchema, policySchema } from './policy.js';
30
29
  export { ProductSchema, productSchema } from './product.js';
31
30
  export { PropertySchema, propertySchema } from './property.js';
32
31
  export { ReservationSchema, reservationSchema } from './reservation.js';
33
- export { RoomSchema, getters as roomGetters, roomSchema, statics as roomStatics } from './room.js';
34
- export { SceneSchema, sceneSchema } from './scene.js';
35
32
  export { ServerSchema, serverSchema } from './server.js';
36
33
  export { SessionSchema, sessionSchema } from './session.js';
37
34
  export { ShortLinkSchema, shortLinkSchema } from './shortLink.js';
@@ -6,7 +6,6 @@ import { categorySchema } from "./category.js";
6
6
  import { courtesySchema } from "./courtesy.js";
7
7
  import { credentialSchema } from "./credential.js";
8
8
  import { departmentSchema } from "./department.js";
9
- import { deviceRouterSchema } from "./deviceRouter.js";
10
9
  import { dimmerSchema } from "./dimmer.js";
11
10
  import { discoveredDeviceSchema } from "./discoveredDevice.js";
12
11
  import { emailMessageSchema } from "./emailMessage.js";
@@ -30,8 +29,6 @@ import { policySchema } from "./policy.js";
30
29
  import { productSchema } from "./product.js";
31
30
  import { propertySchema } from "./property.js";
32
31
  import { reservationSchema } from "./reservation.js";
33
- import { roomSchema, getters, statics } from "./room.js";
34
- import { sceneSchema } from "./scene.js";
35
32
  import { serverSchema } from "./server.js";
36
33
  import { sessionSchema } from "./session.js";
37
34
  import { shortLinkSchema } from "./shortLink.js";
@@ -43,7 +40,7 @@ import { systemUserSchema } from "./systemUser.js";
43
40
  import { thermostatSchema } from "./thermostat.js";
44
41
  import { ticketSchema } from "./ticket.js";
45
42
  import { timeSheetSchema } from "./timeSheet.js";
46
- import { userSchema, getters as getters2 } from "./user.js";
43
+ import { userSchema, getters } from "./user.js";
47
44
  import { vendorSchema } from "./vendor.js";
48
45
  import { windowCoveringSchema } from "./windowCovering.js";
49
46
  export {
@@ -55,7 +52,6 @@ export {
55
52
  courtesySchema,
56
53
  credentialSchema,
57
54
  departmentSchema,
58
- deviceRouterSchema,
59
55
  dimmerSchema,
60
56
  discoveredDeviceSchema,
61
57
  emailMessageSchema,
@@ -80,10 +76,6 @@ export {
80
76
  productSchema,
81
77
  propertySchema,
82
78
  reservationSchema,
83
- getters as roomGetters,
84
- roomSchema,
85
- statics as roomStatics,
86
- sceneSchema,
87
79
  serverSchema,
88
80
  sessionSchema,
89
81
  shortLinkSchema,
@@ -95,7 +87,7 @@ export {
95
87
  thermostatSchema,
96
88
  ticketSchema,
97
89
  timeSheetSchema,
98
- getters2 as userGetters,
90
+ getters as userGetters,
99
91
  userSchema,
100
92
  vendorSchema,
101
93
  windowCoveringSchema
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/schemas/index.ts"],"sourcesContent":["export { alarmSchema, type AlarmSchema } from \"./alarm.js\";\nexport { announcementSchema, type AnnouncementSchema } from \"./announcement.js\";\nexport { automationSchema, type AutomationSchema } from \"./automation.js\";\nexport { cameraSchema, type CameraSchema } from \"./camera.js\";\nexport { categorySchema, type CategorySchema } from \"./category.js\";\nexport { courtesySchema, type CourtesySchema } from \"./courtesy.js\";\nexport { credentialSchema, type CredentialSchema } from \"./credential.js\";\nexport { departmentSchema, type DepartmentSchema } from \"./department.js\";\nexport { deviceRouterSchema, type DeviceRouterSchema } from \"./deviceRouter.js\";\nexport { dimmerSchema, type DimmerSchema } from \"./dimmer.js\";\nexport { discoveredDeviceSchema, type DiscoveredDeviceSchema } from \"./discoveredDevice.js\";\nexport { emailMessageSchema, type EmailMessageSchema } from \"./emailMessage.js\";\nexport { energyReportSchema, type EnergyReportSchema } from \"./energyReport.js\";\nexport { energyReportShardSchema, type EnergyReportShardSchema } from \"./energyReportShard.js\";\nexport { gatewaySchema, type GatewaySchema } from \"./gateway.js\";\nexport { groupSchema, type GroupSchema } from \"./group.js\";\nexport { identificationSchema, type IdentificationSchema } from \"./identification.js\";\nexport { integrationSchema, type IntegrationSchema } from \"./integration.js\";\nexport { issueSchema, type IssueSchema } from \"./issue.js\";\nexport { lockSchema, type LockSchema } from \"./lock.js\";\nexport { logSchema, type LogSchema } from \"./log.js\";\nexport { mediaFileSchema, type MediaFileSchema, methods as mediaFileMethods } from \"./mediaFile.js\";\nexport { mediaSourceSchema, type MediaSourceSchema } from \"./mediaSource.js\";\nexport { motionSensorSchema, type MotionSensorSchema } from \"./motionSensor.js\";\nexport { notificationSchema, type NotificationSchema } from \"./notification.js\";\nexport { orderSchema, type OrderSchema } from \"./order.js\";\nexport { organizationSchema, type OrganizationSchema } from \"./organization.js\";\nexport { paymentSchema, type PaymentSchema } from \"./payment.js\";\nexport { policySchema, type PolicySchema } from \"./policy.js\";\nexport { productSchema, type ProductSchema } from \"./product.js\";\nexport { propertySchema, type PropertySchema } from \"./property.js\";\nexport { reservationSchema, type ReservationSchema } from \"./reservation.js\";\nexport { roomSchema, type RoomSchema, getters as roomGetters, statics as roomStatics } from \"./room.js\";\nexport { sceneSchema, type SceneSchema } from \"./scene.js\";\nexport { serverSchema, type ServerSchema } from \"./server.js\";\nexport { sessionSchema, type SessionSchema } from \"./session.js\";\nexport { shortLinkSchema, type ShortLinkSchema } from \"./shortLink.js\";\nexport { smsMessageSchema, type SmsMessageSchema } from \"./smsMessage.js\";\nexport { spaceSchema, type SpaceSchema } from \"./space.js\";\nexport { switchSchema, type SwitchSchema } from \"./switch.js\";\nexport { systemSchema, type SystemSchema } from \"./system.js\";\nexport { systemUserSchema, type SystemUserSchema } from \"./systemUser.js\";\nexport { thermostatSchema, type ThermostatSchema } from \"./thermostat.js\";\nexport { ticketSchema, type TicketSchema } from \"./ticket.js\";\nexport { timeSheetSchema, type TimeSheetSchema } from \"./timeSheet.js\";\nexport { userSchema, type UserSchema, getters as userGetters } from \"./user.js\";\nexport { vendorSchema, type VendorSchema } from \"./vendor.js\";\nexport { windowCoveringSchema, type WindowCoveringSchema } from \"./windowCovering.js\";\n"],"mappings":"AAAA,SAAS,mBAAqC;AAC9C,SAAS,0BAAmD;AAC5D,SAAS,wBAA+C;AACxD,SAAS,oBAAuC;AAChD,SAAS,sBAA2C;AACpD,SAAS,sBAA2C;AACpD,SAAS,wBAA+C;AACxD,SAAS,wBAA+C;AACxD,SAAS,0BAAmD;AAC5D,SAAS,oBAAuC;AAChD,SAAS,8BAA2D;AACpE,SAAS,0BAAmD;AAC5D,SAAS,0BAAmD;AAC5D,SAAS,+BAA6D;AACtE,SAAS,qBAAyC;AAClD,SAAS,mBAAqC;AAC9C,SAAS,4BAAuD;AAChE,SAAS,yBAAiD;AAC1D,SAAS,mBAAqC;AAC9C,SAAS,kBAAmC;AAC5C,SAAS,iBAAiC;AAC1C,SAAS,iBAAkD,eAAwB;AACnF,SAAS,yBAAiD;AAC1D,SAAS,0BAAmD;AAC5D,SAAS,0BAAmD;AAC5D,SAAS,mBAAqC;AAC9C,SAAS,0BAAmD;AAC5D,SAAS,qBAAyC;AAClD,SAAS,oBAAuC;AAChD,SAAS,qBAAyC;AAClD,SAAS,sBAA2C;AACpD,SAAS,yBAAiD;AAC1D,SAAS,YAAwC,SAAwB,eAAmB;AAC5F,SAAS,mBAAqC;AAC9C,SAAS,oBAAuC;AAChD,SAAS,qBAAyC;AAClD,SAAS,uBAA6C;AACtD,SAAS,wBAA+C;AACxD,SAAS,mBAAqC;AAC9C,SAAS,oBAAuC;AAChD,SAAS,oBAAuC;AAChD,SAAS,wBAA+C;AACxD,SAAS,wBAA+C;AACxD,SAAS,oBAAuC;AAChD,SAAS,uBAA6C;AACtD,SAAS,YAAwC,WAAXA,gBAA8B;AACpE,SAAS,oBAAuC;AAChD,SAAS,4BAAuD;","names":["getters"]}
1
+ {"version":3,"sources":["../../../.generated/schemas/index.ts"],"sourcesContent":["export { alarmSchema, type AlarmSchema } from \"./alarm.js\";\nexport { announcementSchema, type AnnouncementSchema } from \"./announcement.js\";\nexport { automationSchema, type AutomationSchema } from \"./automation.js\";\nexport { cameraSchema, type CameraSchema } from \"./camera.js\";\nexport { categorySchema, type CategorySchema } from \"./category.js\";\nexport { courtesySchema, type CourtesySchema } from \"./courtesy.js\";\nexport { credentialSchema, type CredentialSchema } from \"./credential.js\";\nexport { departmentSchema, type DepartmentSchema } from \"./department.js\";\nexport { dimmerSchema, type DimmerSchema } from \"./dimmer.js\";\nexport { discoveredDeviceSchema, type DiscoveredDeviceSchema } from \"./discoveredDevice.js\";\nexport { emailMessageSchema, type EmailMessageSchema } from \"./emailMessage.js\";\nexport { energyReportSchema, type EnergyReportSchema } from \"./energyReport.js\";\nexport { energyReportShardSchema, type EnergyReportShardSchema } from \"./energyReportShard.js\";\nexport { gatewaySchema, type GatewaySchema } from \"./gateway.js\";\nexport { groupSchema, type GroupSchema } from \"./group.js\";\nexport { identificationSchema, type IdentificationSchema } from \"./identification.js\";\nexport { integrationSchema, type IntegrationSchema } from \"./integration.js\";\nexport { issueSchema, type IssueSchema } from \"./issue.js\";\nexport { lockSchema, type LockSchema } from \"./lock.js\";\nexport { logSchema, type LogSchema } from \"./log.js\";\nexport { mediaFileSchema, type MediaFileSchema, methods as mediaFileMethods } from \"./mediaFile.js\";\nexport { mediaSourceSchema, type MediaSourceSchema } from \"./mediaSource.js\";\nexport { motionSensorSchema, type MotionSensorSchema } from \"./motionSensor.js\";\nexport { notificationSchema, type NotificationSchema } from \"./notification.js\";\nexport { orderSchema, type OrderSchema } from \"./order.js\";\nexport { organizationSchema, type OrganizationSchema } from \"./organization.js\";\nexport { paymentSchema, type PaymentSchema } from \"./payment.js\";\nexport { policySchema, type PolicySchema } from \"./policy.js\";\nexport { productSchema, type ProductSchema } from \"./product.js\";\nexport { propertySchema, type PropertySchema } from \"./property.js\";\nexport { reservationSchema, type ReservationSchema } from \"./reservation.js\";\nexport { serverSchema, type ServerSchema } from \"./server.js\";\nexport { sessionSchema, type SessionSchema } from \"./session.js\";\nexport { shortLinkSchema, type ShortLinkSchema } from \"./shortLink.js\";\nexport { smsMessageSchema, type SmsMessageSchema } from \"./smsMessage.js\";\nexport { spaceSchema, type SpaceSchema } from \"./space.js\";\nexport { switchSchema, type SwitchSchema } from \"./switch.js\";\nexport { systemSchema, type SystemSchema } from \"./system.js\";\nexport { systemUserSchema, type SystemUserSchema } from \"./systemUser.js\";\nexport { thermostatSchema, type ThermostatSchema } from \"./thermostat.js\";\nexport { ticketSchema, type TicketSchema } from \"./ticket.js\";\nexport { timeSheetSchema, type TimeSheetSchema } from \"./timeSheet.js\";\nexport { userSchema, type UserSchema, getters as userGetters } from \"./user.js\";\nexport { vendorSchema, type VendorSchema } from \"./vendor.js\";\nexport { windowCoveringSchema, type WindowCoveringSchema } from \"./windowCovering.js\";\n"],"mappings":"AAAA,SAAS,mBAAqC;AAC9C,SAAS,0BAAmD;AAC5D,SAAS,wBAA+C;AACxD,SAAS,oBAAuC;AAChD,SAAS,sBAA2C;AACpD,SAAS,sBAA2C;AACpD,SAAS,wBAA+C;AACxD,SAAS,wBAA+C;AACxD,SAAS,oBAAuC;AAChD,SAAS,8BAA2D;AACpE,SAAS,0BAAmD;AAC5D,SAAS,0BAAmD;AAC5D,SAAS,+BAA6D;AACtE,SAAS,qBAAyC;AAClD,SAAS,mBAAqC;AAC9C,SAAS,4BAAuD;AAChE,SAAS,yBAAiD;AAC1D,SAAS,mBAAqC;AAC9C,SAAS,kBAAmC;AAC5C,SAAS,iBAAiC;AAC1C,SAAS,iBAAkD,eAAwB;AACnF,SAAS,yBAAiD;AAC1D,SAAS,0BAAmD;AAC5D,SAAS,0BAAmD;AAC5D,SAAS,mBAAqC;AAC9C,SAAS,0BAAmD;AAC5D,SAAS,qBAAyC;AAClD,SAAS,oBAAuC;AAChD,SAAS,qBAAyC;AAClD,SAAS,sBAA2C;AACpD,SAAS,yBAAiD;AAC1D,SAAS,oBAAuC;AAChD,SAAS,qBAAyC;AAClD,SAAS,uBAA6C;AACtD,SAAS,wBAA+C;AACxD,SAAS,mBAAqC;AAC9C,SAAS,oBAAuC;AAChD,SAAS,oBAAuC;AAChD,SAAS,wBAA+C;AACxD,SAAS,wBAA+C;AACxD,SAAS,oBAAuC;AAChD,SAAS,uBAA6C;AACtD,SAAS,YAAwC,eAAmB;AACpE,SAAS,oBAAuC;AAChD,SAAS,4BAAuD;","names":[]}
@@ -22,7 +22,7 @@ declare const propertySchema: {
22
22
  };
23
23
  readonly discriminator: {
24
24
  readonly type: "string";
25
- readonly enum: readonly ["hospitality", "education", "commercial", "storage"];
25
+ readonly enum: readonly ["education", "commercial"];
26
26
  };
27
27
  readonly organization: {
28
28
  readonly type: "string";
@@ -68,12 +68,6 @@ declare const propertySchema: {
68
68
  readonly type: "string";
69
69
  };
70
70
  };
71
- readonly checkInTime: {
72
- readonly type: "string";
73
- };
74
- readonly checkOutTime: {
75
- readonly type: "string";
76
- };
77
71
  readonly address: {
78
72
  readonly $ref: "definitions.json#/definitions/address";
79
73
  };
@@ -93,31 +87,6 @@ declare const propertySchema: {
93
87
  readonly type: "boolean";
94
88
  readonly default: true;
95
89
  };
96
- readonly disabledSystems: {
97
- readonly type: "array";
98
- readonly items: {
99
- readonly type: "string";
100
- readonly enum: readonly ["climate", "lights", "shades", "tv", "doors"];
101
- };
102
- };
103
- readonly excludedDeviceIds: {
104
- readonly type: "array";
105
- readonly items: {
106
- readonly type: "string";
107
- };
108
- readonly default: readonly [];
109
- };
110
- readonly commonAreas: {
111
- readonly type: "object";
112
- readonly properties: {
113
- readonly spaces: {
114
- readonly type: "array";
115
- readonly items: {
116
- readonly type: "string";
117
- };
118
- };
119
- };
120
- };
121
90
  readonly alarmConfig: {
122
91
  readonly type: "object";
123
92
  readonly patternProperties: {
@@ -192,13 +161,6 @@ declare const propertySchema: {
192
161
  readonly type: "boolean";
193
162
  readonly default: true;
194
163
  };
195
- readonly newTicketCCs: {
196
- readonly type: "array";
197
- readonly items: {
198
- readonly type: "string";
199
- };
200
- readonly default: readonly [];
201
- };
202
164
  readonly newMessageChannel: {
203
165
  readonly type: readonly ["string", "null"];
204
166
  readonly enum: readonly ["sms", "email"];
@@ -19,7 +19,7 @@ const propertySchema = {
19
19
  },
20
20
  discriminator: {
21
21
  type: "string",
22
- enum: ["hospitality", "education", "commercial", "storage"]
22
+ enum: ["education", "commercial"]
23
23
  },
24
24
  organization: {
25
25
  type: "string",
@@ -65,12 +65,6 @@ const propertySchema = {
65
65
  type: "string"
66
66
  }
67
67
  },
68
- checkInTime: {
69
- type: "string"
70
- },
71
- checkOutTime: {
72
- type: "string"
73
- },
74
68
  address: {
75
69
  $ref: "definitions.json#/definitions/address"
76
70
  },
@@ -90,31 +84,6 @@ const propertySchema = {
90
84
  type: "boolean",
91
85
  default: true
92
86
  },
93
- disabledSystems: {
94
- type: "array",
95
- items: {
96
- type: "string",
97
- enum: ["climate", "lights", "shades", "tv", "doors"]
98
- }
99
- },
100
- excludedDeviceIds: {
101
- type: "array",
102
- items: {
103
- type: "string"
104
- },
105
- default: []
106
- },
107
- commonAreas: {
108
- type: "object",
109
- properties: {
110
- spaces: {
111
- type: "array",
112
- items: {
113
- type: "string"
114
- }
115
- }
116
- }
117
- },
118
87
  alarmConfig: {
119
88
  type: "object",
120
89
  patternProperties: {
@@ -191,13 +160,6 @@ const propertySchema = {
191
160
  type: "boolean",
192
161
  default: true
193
162
  },
194
- newTicketCCs: {
195
- type: "array",
196
- items: {
197
- type: "string"
198
- },
199
- default: []
200
- },
201
163
  newMessageChannel: {
202
164
  type: ["string", "null"],
203
165
  enum: ["sms", "email"],
@@ -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: [\"hospitality\", \"education\", \"commercial\", \"storage\"],\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 checkInTime: {\n type: \"string\",\n },\n checkOutTime: {\n type: \"string\",\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 disabledSystems: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"climate\", \"lights\", \"shades\", \"tv\", \"doors\"],\n },\n },\n excludedDeviceIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n commonAreas: {\n type: \"object\",\n properties: {\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\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 newTicketCCs: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\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,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,MAAM;AAAA,MACN,MAAM,CAAC,eAAe,aAAa,cAAc,SAAS;AAAA,IAC5D;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,YAAY;AAAA,QACV,oBAAoB;AAAA,UAClB,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,aACE;AAAA,QACJ;AAAA,QACA,0BAA0B;AAAA,UACxB,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,aACE;AAAA,QACJ;AAAA,MACF;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,UAAU,CAAC,oBAAoB,qBAAqB;AAAA,IACtD;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA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,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,aAAa,CAAC;AAAA,MAChB;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":[]}
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,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,MAAM;AAAA,MACN,MAAM,CAAC,aAAa,YAAY;AAAA,IAClC;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,YAAY;AAAA,QACV,oBAAoB;AAAA,UAClB,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,aACE;AAAA,QACJ;AAA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