@kohost/api-client 5.0.6 → 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.
- package/dist/cjs/{index-CjXs7rFc.d.cts → index-DGdGZN91.d.cts} +1 -10
- package/dist/cjs/index.d.cts +4 -10
- package/dist/cjs/models/index.cjs +0 -9
- package/dist/cjs/models/index.cjs.map +1 -1
- package/dist/cjs/models/index.d.cts +3 -9
- package/dist/cjs/models/property.cjs +0 -2
- package/dist/cjs/models/property.cjs.map +1 -1
- package/dist/cjs/models/space.cjs +0 -7
- package/dist/cjs/models/space.cjs.map +1 -1
- package/dist/cjs/models/user.cjs +0 -1
- package/dist/cjs/models/user.cjs.map +1 -1
- package/dist/cjs/schemas/definitions.cjs +1 -0
- package/dist/cjs/schemas/definitions.cjs.map +1 -1
- package/dist/cjs/schemas/definitions.d.cts +1 -1
- package/dist/cjs/schemas/index.cjs +0 -13
- package/dist/cjs/schemas/index.cjs.map +1 -1
- package/dist/cjs/schemas/index.d.cts +0 -3
- package/dist/cjs/schemas/property.cjs +1 -39
- package/dist/cjs/schemas/property.cjs.map +1 -1
- package/dist/cjs/schemas/property.d.cts +1 -39
- package/dist/cjs/schemas/space.cjs +0 -26
- package/dist/cjs/schemas/space.cjs.map +1 -1
- package/dist/cjs/schemas/space.d.cts +0 -26
- package/dist/cjs/schemas/ticket.cjs +0 -1
- package/dist/cjs/schemas/ticket.cjs.map +1 -1
- package/dist/cjs/schemas/ticket.d.cts +1 -1
- package/dist/cjs/schemas/user.cjs +0 -3
- package/dist/cjs/schemas/user.cjs.map +1 -1
- package/dist/cjs/schemas/user.d.cts +0 -3
- package/dist/cjs/validate.cjs +0 -15
- package/dist/cjs/validate.cjs.map +1 -1
- package/dist/cjs/validate.d.cts +1 -61
- package/dist/esm/{index-BLHzohDV.d.ts → index-BmUDCO4d.d.ts} +1 -10
- package/dist/esm/index.d.ts +4 -10
- package/dist/esm/models/index.d.ts +3 -9
- package/dist/esm/models/index.js +0 -6
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/property.js +0 -2
- package/dist/esm/models/property.js.map +1 -1
- package/dist/esm/models/space.js +0 -7
- package/dist/esm/models/space.js.map +1 -1
- package/dist/esm/models/user.js +0 -1
- package/dist/esm/models/user.js.map +1 -1
- package/dist/esm/schemas/definitions.d.ts +1 -1
- package/dist/esm/schemas/definitions.js +1 -0
- package/dist/esm/schemas/definitions.js.map +1 -1
- package/dist/esm/schemas/index.d.ts +0 -3
- package/dist/esm/schemas/index.js +2 -10
- package/dist/esm/schemas/index.js.map +1 -1
- package/dist/esm/schemas/property.d.ts +1 -39
- package/dist/esm/schemas/property.js +1 -39
- package/dist/esm/schemas/property.js.map +1 -1
- package/dist/esm/schemas/space.d.ts +0 -26
- package/dist/esm/schemas/space.js +0 -26
- package/dist/esm/schemas/space.js.map +1 -1
- package/dist/esm/schemas/ticket.d.ts +1 -1
- package/dist/esm/schemas/ticket.js +0 -1
- package/dist/esm/schemas/ticket.js.map +1 -1
- package/dist/esm/schemas/user.d.ts +0 -3
- package/dist/esm/schemas/user.js +0 -3
- package/dist/esm/schemas/user.js.map +1 -1
- package/dist/esm/validate.d.ts +155 -215
- package/dist/esm/validate.js +0 -12
- package/dist/esm/validate.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/deviceRouter.cjs +0 -52
- package/dist/cjs/models/deviceRouter.cjs.map +0 -1
- package/dist/cjs/models/deviceRouter.d.cts +0 -23
- package/dist/cjs/models/room.cjs +0 -169
- package/dist/cjs/models/room.cjs.map +0 -1
- package/dist/cjs/models/room.d.cts +0 -48
- package/dist/cjs/models/scene.cjs +0 -54
- package/dist/cjs/models/scene.cjs.map +0 -1
- package/dist/cjs/models/scene.d.cts +0 -23
- package/dist/cjs/schemas/deviceRouter.cjs +0 -57
- package/dist/cjs/schemas/deviceRouter.cjs.map +0 -1
- package/dist/cjs/schemas/deviceRouter.d.cts +0 -46
- package/dist/cjs/schemas/room.cjs +0 -317
- package/dist/cjs/schemas/room.cjs.map +0 -1
- package/dist/cjs/schemas/room.d.cts +0 -223
- package/dist/cjs/schemas/scene.cjs +0 -174
- package/dist/cjs/schemas/scene.cjs.map +0 -1
- package/dist/cjs/schemas/scene.d.cts +0 -163
- package/dist/esm/models/deviceRouter.d.ts +0 -23
- package/dist/esm/models/deviceRouter.js +0 -32
- package/dist/esm/models/deviceRouter.js.map +0 -1
- package/dist/esm/models/room.d.ts +0 -48
- package/dist/esm/models/room.js +0 -147
- package/dist/esm/models/room.js.map +0 -1
- package/dist/esm/models/scene.d.ts +0 -23
- package/dist/esm/models/scene.js +0 -32
- package/dist/esm/models/scene.js.map +0 -1
- package/dist/esm/schemas/deviceRouter.d.ts +0 -46
- package/dist/esm/schemas/deviceRouter.js +0 -34
- package/dist/esm/schemas/deviceRouter.js.map +0 -1
- package/dist/esm/schemas/room.d.ts +0 -223
- package/dist/esm/schemas/room.js +0 -292
- package/dist/esm/schemas/room.js.map +0 -1
- package/dist/esm/schemas/scene.d.ts +0 -163
- package/dist/esm/schemas/scene.js +0 -151
- package/dist/esm/schemas/scene.js.map +0 -1
package/dist/cjs/validate.d.cts
CHANGED
|
@@ -106,20 +106,6 @@ declare const validateDepartment: ajv.ValidateFunction<{
|
|
|
106
106
|
} & {
|
|
107
107
|
name: any;
|
|
108
108
|
}>;
|
|
109
|
-
declare const validateDeviceRouter: ajv.ValidateFunction<{
|
|
110
|
-
id: any;
|
|
111
|
-
type: any;
|
|
112
|
-
organizationId: any;
|
|
113
|
-
driver: any;
|
|
114
|
-
} & {
|
|
115
|
-
id: any;
|
|
116
|
-
} & {
|
|
117
|
-
type: any;
|
|
118
|
-
} & {
|
|
119
|
-
organizationId: any;
|
|
120
|
-
} & {
|
|
121
|
-
driver: any;
|
|
122
|
-
}>;
|
|
123
109
|
declare const validateDimmer: ajv.ValidateFunction<{
|
|
124
110
|
id: any;
|
|
125
111
|
type: any;
|
|
@@ -474,52 +460,6 @@ declare const validateReservation: ajv.ValidateFunction<{
|
|
|
474
460
|
} & {
|
|
475
461
|
checkOutDateTime: any;
|
|
476
462
|
}>;
|
|
477
|
-
declare const validateRoom: ajv.ValidateFunction<{
|
|
478
|
-
id: any;
|
|
479
|
-
courtesy: any;
|
|
480
|
-
name: any;
|
|
481
|
-
dimmers: any;
|
|
482
|
-
thermostats: any;
|
|
483
|
-
switches: any;
|
|
484
|
-
windowCoverings: any;
|
|
485
|
-
cameras: any;
|
|
486
|
-
mediaSources: any;
|
|
487
|
-
motionSensors: any;
|
|
488
|
-
alarms: any;
|
|
489
|
-
} & {
|
|
490
|
-
id: any;
|
|
491
|
-
} & {
|
|
492
|
-
courtesy: any;
|
|
493
|
-
} & {
|
|
494
|
-
name: any;
|
|
495
|
-
} & {
|
|
496
|
-
dimmers: any;
|
|
497
|
-
} & {
|
|
498
|
-
thermostats: any;
|
|
499
|
-
} & {
|
|
500
|
-
switches: any;
|
|
501
|
-
} & {
|
|
502
|
-
windowCoverings: any;
|
|
503
|
-
} & {
|
|
504
|
-
cameras: any;
|
|
505
|
-
} & {
|
|
506
|
-
mediaSources: any;
|
|
507
|
-
} & {
|
|
508
|
-
motionSensors: any;
|
|
509
|
-
} & {
|
|
510
|
-
alarms: any;
|
|
511
|
-
}>;
|
|
512
|
-
declare const validateScene: ajv.ValidateFunction<{
|
|
513
|
-
id: any;
|
|
514
|
-
type: any;
|
|
515
|
-
name: any;
|
|
516
|
-
} & {
|
|
517
|
-
id: any;
|
|
518
|
-
} & {
|
|
519
|
-
type: any;
|
|
520
|
-
} & {
|
|
521
|
-
name: any;
|
|
522
|
-
}>;
|
|
523
463
|
declare const validateServer: ajv.ValidateFunction<{
|
|
524
464
|
id: any;
|
|
525
465
|
type: any;
|
|
@@ -738,4 +678,4 @@ declare const validateWindowCovering: ajv.ValidateFunction<{
|
|
|
738
678
|
driver: any;
|
|
739
679
|
}>;
|
|
740
680
|
|
|
741
|
-
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment,
|
|
681
|
+
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment, validateDimmer, validateDiscoveredDevice, validateEmailMessage, validateEnergyReport, validateEnergyReportShard, validateGateway, validateGroup, validateIdentification, validateIntegration, validateIssue, validateLock, validateLog, validateMediaFile, validateMediaSource, validateMotionSensor, validateNotification, validateOrder, validateOrganization, validatePayment, validatePolicy, validateProduct, validateProperty, validateReservation, validateServer, validateSession, validateShortLink, validateSmsMessage, validateSpace, validateSwitch, validateSystem, validateSystemUser, validateThermostat, validateTicket, validateTimeSheet, validateUser, validateVendor, validateWindowCovering };
|
|
@@ -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,
|
|
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 };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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 {
|
|
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.
|
|
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.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":[]}
|
package/dist/esm/models/space.js
CHANGED
|
@@ -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.
|
|
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":[]}
|
package/dist/esm/models/user.js
CHANGED
|
@@ -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.
|
|
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;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,QAAQ,OAAW,MAAK,MAAM,KAAK;AAC5C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,K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AY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -75,7 +75,7 @@ declare const defs: {
|
|
|
75
75
|
readonly driver: {
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly description: "Driver used to communicate with the object.";
|
|
78
|
-
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "napco", "newline", "obix", "one-roster", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "reolink", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "singlewire", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "napco", "newline", "obix", "one-roster", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "reolink", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "singlewire", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "zkteco", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAA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A;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA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ACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","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
|
|
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
|
-
|
|
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 {
|
|
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":[]}
|