@kohost/api-client 4.21.8 → 4.23.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-1GbroB9w.d.cts → index-BUtSE3od.d.cts} +4 -1
- package/dist/cjs/index.d.cts +3 -1
- package/dist/cjs/models/group.cjs +57 -0
- package/dist/cjs/models/group.cjs.map +1 -0
- package/dist/cjs/models/group.d.cts +23 -0
- package/dist/cjs/models/index.cjs +3 -0
- package/dist/cjs/models/index.cjs.map +1 -1
- package/dist/cjs/models/index.d.cts +2 -0
- package/dist/cjs/models/property.cjs +1 -0
- package/dist/cjs/models/property.cjs.map +1 -1
- package/dist/cjs/models/ticket.cjs +2 -0
- package/dist/cjs/models/ticket.cjs.map +1 -1
- package/dist/cjs/schemas/group.cjs +92 -0
- package/dist/cjs/schemas/group.cjs.map +1 -0
- package/dist/cjs/schemas/group.d.cts +81 -0
- package/dist/cjs/schemas/index.cjs +3 -0
- package/dist/cjs/schemas/index.cjs.map +1 -1
- package/dist/cjs/schemas/index.d.cts +1 -0
- package/dist/cjs/schemas/property.cjs +4 -0
- package/dist/cjs/schemas/property.cjs.map +1 -1
- package/dist/cjs/schemas/property.d.cts +4 -0
- package/dist/cjs/schemas/systemUser.cjs +15 -6
- package/dist/cjs/schemas/systemUser.cjs.map +1 -1
- package/dist/cjs/schemas/systemUser.d.cts +3 -3
- package/dist/cjs/schemas/ticket.cjs +4 -0
- package/dist/cjs/schemas/ticket.cjs.map +1 -1
- package/dist/cjs/schemas/ticket.d.cts +4 -0
- package/dist/cjs/validate.cjs +5 -0
- package/dist/cjs/validate.cjs.map +1 -1
- package/dist/cjs/validate.d.cts +15 -1
- package/dist/esm/{index-ftTUK_gn.d.ts → index-Cfk0f-lt.d.ts} +4 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/models/group.d.ts +23 -0
- package/dist/esm/models/group.js +35 -0
- package/dist/esm/models/group.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/property.js +1 -0
- package/dist/esm/models/property.js.map +1 -1
- package/dist/esm/models/ticket.js +2 -0
- package/dist/esm/models/ticket.js.map +1 -1
- package/dist/esm/schemas/group.d.ts +81 -0
- package/dist/esm/schemas/group.js +69 -0
- package/dist/esm/schemas/group.js.map +1 -0
- package/dist/esm/schemas/index.d.ts +1 -0
- package/dist/esm/schemas/index.js +2 -0
- package/dist/esm/schemas/index.js.map +1 -1
- package/dist/esm/schemas/property.d.ts +4 -0
- package/dist/esm/schemas/property.js +4 -0
- package/dist/esm/schemas/property.js.map +1 -1
- package/dist/esm/schemas/systemUser.d.ts +3 -3
- package/dist/esm/schemas/systemUser.js +15 -6
- package/dist/esm/schemas/systemUser.js.map +1 -1
- package/dist/esm/schemas/ticket.d.ts +4 -0
- package/dist/esm/schemas/ticket.js +4 -0
- package/dist/esm/schemas/ticket.js.map +1 -1
- package/dist/esm/validate.d.ts +15 -1
- package/dist/esm/validate.js +4 -0
- package/dist/esm/validate.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ import { EmailMessage, EmailMessageData } from './models/emailMessage.cjs';
|
|
|
14
14
|
import { EnergyReport, EnergyReportData } from './models/energyReport.cjs';
|
|
15
15
|
import { EnergyReportShard, EnergyReportShardData } from './models/energyReportShard.cjs';
|
|
16
16
|
import { Gateway, GatewayData } from './models/gateway.cjs';
|
|
17
|
+
import { Group, GroupData } from './models/group.cjs';
|
|
17
18
|
import { Identification, IdentificationData } from './models/identification.cjs';
|
|
18
19
|
import { Issue, IssueData } from './models/issue.cjs';
|
|
19
20
|
import { Lock, LockData } from './models/lock.cjs';
|
|
@@ -77,6 +78,8 @@ declare const index_EnergyReportShardData: typeof EnergyReportShardData;
|
|
|
77
78
|
declare const index_Entity: typeof Entity;
|
|
78
79
|
declare const index_Gateway: typeof Gateway;
|
|
79
80
|
declare const index_GatewayData: typeof GatewayData;
|
|
81
|
+
declare const index_Group: typeof Group;
|
|
82
|
+
declare const index_GroupData: typeof GroupData;
|
|
80
83
|
declare const index_Identification: typeof Identification;
|
|
81
84
|
declare const index_IdentificationData: typeof IdentificationData;
|
|
82
85
|
declare const index_Issue: typeof Issue;
|
|
@@ -140,7 +143,7 @@ declare const index_VendorData: typeof VendorData;
|
|
|
140
143
|
declare const index_WindowCovering: typeof WindowCovering;
|
|
141
144
|
declare const index_WindowCoveringData: typeof WindowCoveringData;
|
|
142
145
|
declare namespace index {
|
|
143
|
-
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_Identification as Identification, index_IdentificationData as IdentificationData, 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 };
|
|
146
|
+
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_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 };
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
export { index as i };
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { KohostHTTPClient as Client } from './httpClient.cjs';
|
|
|
3
3
|
export { i as Commands } from './index-CH4lP5Qn.cjs';
|
|
4
4
|
export { i as Errors } from './index-DXQ1T_T1.cjs';
|
|
5
5
|
export { i as Events } from './index-CVL51QsV.cjs';
|
|
6
|
-
export { i as Models } from './index-
|
|
6
|
+
export { i as Models } from './index-BUtSE3od.cjs';
|
|
7
7
|
export { i as UseCases } from './index-1ZtkIYkt.cjs';
|
|
8
8
|
import 'node:buffer';
|
|
9
9
|
import './useCases/loginStart.cjs';
|
|
@@ -308,6 +308,8 @@ import './models/energyReportShard.cjs';
|
|
|
308
308
|
import './schemas/energyReportShard.cjs';
|
|
309
309
|
import './models/gateway.cjs';
|
|
310
310
|
import './schemas/gateway.cjs';
|
|
311
|
+
import './models/group.cjs';
|
|
312
|
+
import './schemas/group.cjs';
|
|
311
313
|
import './models/identification.cjs';
|
|
312
314
|
import './schemas/identification.cjs';
|
|
313
315
|
import './models/issue.cjs';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var group_exports = {};
|
|
20
|
+
__export(group_exports, {
|
|
21
|
+
Group: () => Group
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(group_exports);
|
|
24
|
+
var import_entity = require("./entity.cjs");
|
|
25
|
+
var import_validate = require("../validate.cjs");
|
|
26
|
+
var import_group = require("../schemas/group.cjs");
|
|
27
|
+
class Group extends import_entity.Entity {
|
|
28
|
+
static {
|
|
29
|
+
__name(this, "Group");
|
|
30
|
+
}
|
|
31
|
+
constructor(data) {
|
|
32
|
+
super(data);
|
|
33
|
+
this.id = data.id;
|
|
34
|
+
if (data.systemId !== void 0) this.systemId = data.systemId;
|
|
35
|
+
if (data.driver !== void 0) this.driver = data.driver;
|
|
36
|
+
this.type = data.type;
|
|
37
|
+
this.kind = data.kind;
|
|
38
|
+
this.name = data.name;
|
|
39
|
+
if (data.members !== void 0) this.members = data.members;
|
|
40
|
+
if (data.createdAt !== void 0) this.createdAt = data.createdAt;
|
|
41
|
+
if (data.updatedAt !== void 0) this.updatedAt = data.updatedAt;
|
|
42
|
+
if (data.deletedAt !== void 0) this.deletedAt = data.deletedAt;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
Object.defineProperty(Group.prototype, "schema", {
|
|
46
|
+
value: import_group.groupSchema
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(Group.prototype, "validator", {
|
|
49
|
+
get: /* @__PURE__ */ __name(function() {
|
|
50
|
+
return import_validate.validateGroup;
|
|
51
|
+
}, "get")
|
|
52
|
+
});
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
Group
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/group.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateGroup as validate } from \"../validate.js\";\nimport { groupSchema, type GroupSchema } from \"../schemas/group.js\";\n\n/**\n * Data type for Group constructor - exported for backwards compatibility\n */\nexport type GroupData = GroupSchema;\n\n/**\n * A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.\n */\nexport interface Group extends GroupSchema {}\nexport class Group extends Entity {\n declare schema: typeof groupSchema;\n declare validator: typeof validate;\n\n constructor(data: GroupSchema) {\n super(data);\n this.id = data.id;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.driver !== undefined) this.driver = data.driver;\n this.type = data.type;\n this.kind = data.kind;\n this.name = data.name;\n if (data.members !== undefined) this.members = data.members;\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(Group.prototype, \"schema\", {\n value: groupSchema,\n});\n\nObject.defineProperty(Group.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AACvB,sBAA0C;AAC1C,mBAA8C;AAWvC,MAAM,cAAc,qBAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,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,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Entity } from './entity.cjs';
|
|
2
|
+
import { validateGroup } from '../validate.cjs';
|
|
3
|
+
import { GroupSchema, groupSchema } from '../schemas/group.cjs';
|
|
4
|
+
import 'ajv';
|
|
5
|
+
import '../schemas/definitions.cjs';
|
|
6
|
+
import 'json-schema-to-ts';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Data type for Group constructor - exported for backwards compatibility
|
|
10
|
+
*/
|
|
11
|
+
type GroupData = GroupSchema;
|
|
12
|
+
/**
|
|
13
|
+
* A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.
|
|
14
|
+
*/
|
|
15
|
+
interface Group extends GroupSchema {
|
|
16
|
+
}
|
|
17
|
+
declare class Group extends Entity {
|
|
18
|
+
schema: typeof groupSchema;
|
|
19
|
+
validator: typeof validateGroup;
|
|
20
|
+
constructor(data: GroupSchema);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Group, type GroupData };
|
|
@@ -33,6 +33,7 @@ __export(models_exports, {
|
|
|
33
33
|
EnergyReportShard: () => import_energyReportShard.EnergyReportShard,
|
|
34
34
|
Entity: () => import_entity.Entity,
|
|
35
35
|
Gateway: () => import_gateway.Gateway,
|
|
36
|
+
Group: () => import_group.Group,
|
|
36
37
|
Identification: () => import_identification.Identification,
|
|
37
38
|
Issue: () => import_issue.Issue,
|
|
38
39
|
Lock: () => import_lock.Lock,
|
|
@@ -82,6 +83,7 @@ var import_emailMessage = require("./emailMessage.cjs");
|
|
|
82
83
|
var import_energyReport = require("./energyReport.cjs");
|
|
83
84
|
var import_energyReportShard = require("./energyReportShard.cjs");
|
|
84
85
|
var import_gateway = require("./gateway.cjs");
|
|
86
|
+
var import_group = require("./group.cjs");
|
|
85
87
|
var import_identification = require("./identification.cjs");
|
|
86
88
|
var import_issue = require("./issue.cjs");
|
|
87
89
|
var import_lock = require("./lock.cjs");
|
|
@@ -131,6 +133,7 @@ var import_windowCovering = require("./windowCovering.cjs");
|
|
|
131
133
|
EnergyReportShard,
|
|
132
134
|
Entity,
|
|
133
135
|
Gateway,
|
|
136
|
+
Group,
|
|
134
137
|
Identification,
|
|
135
138
|
Issue,
|
|
136
139
|
Lock,
|
|
@@ -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 { Identification, type IdentificationData } from \"./identification.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":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AAEvB,mBAAsC;AACtC,0BAAoD;AACpD,wBAAgD;AAChD,oBAAwC;AACxC,sBAA4C;AAC5C,sBAA4C;AAC5C,wBAAgD;AAChD,wBAAgD;AAChD,0BAAoD;AACpD,oBAAwC;AACxC,8BAGO;AACP,0BAAoD;AACpD,0BAAoD;AACpD,+BAGO;AACP,qBAA0C;AAC1C,4BAAwD;AACxD,mBAAsC;AACtC,kBAAoC;AACpC,iBAAkC;AAClC,uBAA8C;AAC9C,yBAAkD;AAClD,0BAAoD;AACpD,0BAAoD;AACpD,mBAAsC;AACtC,0BAAoD;AACpD,qBAA0C;AAC1C,oBAAwC;AACxC,qBAA0C;AAC1C,sBAA4C;AAC5C,yBAAkD;AAClD,kBAAoC;AACpC,mBAAsC;AACtC,oBAAwC;AACxC,qBAA0C;AAC1C,uBAA8C;AAC9C,wBAAgD;AAChD,mBAAsC;AACtC,oBAAwC;AACxC,oBAAwC;AACxC,wBAAgD;AAChD,wBAAgD;AAChD,oBAAwC;AACxC,uBAA8C;AAC9C,kBAAoC;AACpC,oBAAwC;AACxC,4BAAwD;","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 { 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 { 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":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AAEvB,mBAAsC;AACtC,0BAAoD;AACpD,wBAAgD;AAChD,oBAAwC;AACxC,sBAA4C;AAC5C,sBAA4C;AAC5C,wBAAgD;AAChD,wBAAgD;AAChD,0BAAoD;AACpD,oBAAwC;AACxC,8BAGO;AACP,0BAAoD;AACpD,0BAAoD;AACpD,+BAGO;AACP,qBAA0C;AAC1C,mBAAsC;AACtC,4BAAwD;AACxD,mBAAsC;AACtC,kBAAoC;AACpC,iBAAkC;AAClC,uBAA8C;AAC9C,yBAAkD;AAClD,0BAAoD;AACpD,0BAAoD;AACpD,mBAAsC;AACtC,0BAAoD;AACpD,qBAA0C;AAC1C,oBAAwC;AACxC,qBAA0C;AAC1C,sBAA4C;AAC5C,yBAAkD;AAClD,kBAAoC;AACpC,mBAAsC;AACtC,oBAAwC;AACxC,qBAA0C;AAC1C,uBAA8C;AAC9C,wBAAgD;AAChD,mBAAsC;AACtC,oBAAwC;AACxC,oBAAwC;AACxC,wBAAgD;AAChD,wBAAgD;AAChD,oBAAwC;AACxC,uBAA8C;AAC9C,kBAAoC;AACpC,oBAAwC;AACxC,4BAAwD;","names":[]}
|
|
@@ -14,6 +14,7 @@ export { EmailMessage, EmailMessageData } from './emailMessage.cjs';
|
|
|
14
14
|
export { EnergyReport, EnergyReportData } from './energyReport.cjs';
|
|
15
15
|
export { EnergyReportShard, EnergyReportShardData } from './energyReportShard.cjs';
|
|
16
16
|
export { Gateway, GatewayData } from './gateway.cjs';
|
|
17
|
+
export { Group, GroupData } from './group.cjs';
|
|
17
18
|
export { Identification, IdentificationData } from './identification.cjs';
|
|
18
19
|
export { Issue, IssueData } from './issue.cjs';
|
|
19
20
|
export { Lock, LockData } from './lock.cjs';
|
|
@@ -64,6 +65,7 @@ import '../schemas/emailMessage.cjs';
|
|
|
64
65
|
import '../schemas/energyReport.cjs';
|
|
65
66
|
import '../schemas/energyReportShard.cjs';
|
|
66
67
|
import '../schemas/gateway.cjs';
|
|
68
|
+
import '../schemas/group.cjs';
|
|
67
69
|
import '../schemas/identification.cjs';
|
|
68
70
|
import '../schemas/issue.cjs';
|
|
69
71
|
import '../schemas/ticket.cjs';
|
|
@@ -50,6 +50,7 @@ class Property extends import_entity.Entity {
|
|
|
50
50
|
if (data.appFeatures !== void 0) this.appFeatures = data.appFeatures;
|
|
51
51
|
if (data.notifications !== void 0)
|
|
52
52
|
this.notifications = data.notifications;
|
|
53
|
+
if (data.deletedAt !== void 0) this.deletedAt = data.deletedAt;
|
|
53
54
|
if (data.credentials !== void 0) this.credentials = data.credentials;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
@@ -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.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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AACvB,sBAA6C;AAC7C,sBAAoD;AAW7C,MAAM,iBAAiB,qBAAO;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,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,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,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,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
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(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KAAK,kCAAY;AACf,WAAO,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
@@ -34,6 +34,8 @@ class Ticket extends import_entity.Entity {
|
|
|
34
34
|
if (data.type !== void 0) this.type = data.type;
|
|
35
35
|
if (data.number !== void 0) this.number = data.number;
|
|
36
36
|
if (data.issueId !== void 0) this.issueId = data.issueId;
|
|
37
|
+
if (data.parentAutomationId !== void 0)
|
|
38
|
+
this.parentAutomationId = data.parentAutomationId;
|
|
37
39
|
this.conversation = data.conversation;
|
|
38
40
|
if (data.subject !== void 0) this.subject = data.subject;
|
|
39
41
|
this.openedBy = data.openedBy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AACvB,sBAA2C;AAC3C,oBAAgD;AAWzC,MAAM,eAAe,qBAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,WAAW,KAAK;AACrB,SAAK,YAAY,KAAK;AACtB,SAAK,aAAa,KAAK;AACvB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,SAAK,WAAW,KAAK;AACrB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,YAAY,KAAK;AACtB,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n if (data.parentAutomationId !== undefined)\n this.parentAutomationId = data.parentAutomationId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AACvB,sBAA2C;AAC3C,oBAAgD;AAWzC,MAAM,eAAe,qBAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,uBAAuB;AAC9B,WAAK,qBAAqB,KAAK;AACjC,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,WAAW,KAAK;AACrB,SAAK,YAAY,KAAK;AACtB,SAAK,aAAa,KAAK;AACvB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,SAAK,WAAW,KAAK;AACrB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,YAAY,KAAK;AACtB,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var group_exports = {};
|
|
19
|
+
__export(group_exports, {
|
|
20
|
+
groupSchema: () => groupSchema
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(group_exports);
|
|
23
|
+
const groupSchema = {
|
|
24
|
+
$schema: "http://json-schema.org/draft-07/schema",
|
|
25
|
+
$id: "group.json",
|
|
26
|
+
title: "Group",
|
|
27
|
+
description: "A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.",
|
|
28
|
+
type: "object",
|
|
29
|
+
required: ["id", "type", "kind", "name"],
|
|
30
|
+
additionalProperties: false,
|
|
31
|
+
properties: {
|
|
32
|
+
id: {
|
|
33
|
+
$ref: "definitions.json#/definitions/id"
|
|
34
|
+
},
|
|
35
|
+
systemId: {
|
|
36
|
+
$ref: "definitions.json#/definitions/systemId"
|
|
37
|
+
},
|
|
38
|
+
driver: {
|
|
39
|
+
$ref: "definitions.json#/definitions/driver"
|
|
40
|
+
},
|
|
41
|
+
type: {
|
|
42
|
+
type: "string",
|
|
43
|
+
enum: ["group"],
|
|
44
|
+
default: "group"
|
|
45
|
+
},
|
|
46
|
+
kind: {
|
|
47
|
+
type: "string",
|
|
48
|
+
enum: ["Social", "Department"]
|
|
49
|
+
},
|
|
50
|
+
name: {
|
|
51
|
+
type: "string"
|
|
52
|
+
},
|
|
53
|
+
members: {
|
|
54
|
+
type: "array",
|
|
55
|
+
items: {
|
|
56
|
+
type: "object",
|
|
57
|
+
required: ["id", "type"],
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
properties: {
|
|
60
|
+
id: {
|
|
61
|
+
$ref: "definitions.json#/definitions/id"
|
|
62
|
+
},
|
|
63
|
+
name: {
|
|
64
|
+
type: "string"
|
|
65
|
+
},
|
|
66
|
+
type: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "The type of the member resource."
|
|
69
|
+
},
|
|
70
|
+
role: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "The role of the member within this group."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
createdAt: {
|
|
78
|
+
$ref: "definitions.json#/definitions/date"
|
|
79
|
+
},
|
|
80
|
+
updatedAt: {
|
|
81
|
+
$ref: "definitions.json#/definitions/date"
|
|
82
|
+
},
|
|
83
|
+
deletedAt: {
|
|
84
|
+
$ref: "definitions.json#/definitions/date"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
89
|
+
0 && (module.exports = {
|
|
90
|
+
groupSchema
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/group.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const groupSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"group.json\",\n title: \"Group\",\n description:\n \"A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.\",\n type: \"object\",\n required: [\"id\", \"type\", \"kind\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n type: {\n type: \"string\",\n enum: [\"group\"],\n default: \"group\",\n },\n kind: {\n type: \"string\",\n enum: [\"Social\", \"Department\"],\n },\n name: {\n type: \"string\",\n },\n members: {\n type: \"array\",\n items: {\n type: \"object\",\n required: [\"id\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n description: \"The type of the member resource.\",\n },\n role: {\n type: \"string\",\n description: \"The role of the member within this group.\",\n },\n },\n },\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type GroupSchema = FromSchema<\n typeof groupSchema,\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":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aACE;AAAA,EACF,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,QAAQ,MAAM;AAAA,EACvC,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,OAAO;AAAA,MACd,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,UAAU,YAAY;AAAA,IAC/B;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,UAAU,CAAC,MAAM,MAAM;AAAA,QACvB,sBAAsB;AAAA,QACtB,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,aAAa;AAAA,UACf;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import defs, { ISODateString } from './definitions.cjs';
|
|
2
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
|
|
4
|
+
declare const groupSchema: {
|
|
5
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
6
|
+
readonly $id: "group.json";
|
|
7
|
+
readonly title: "Group";
|
|
8
|
+
readonly description: "A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.";
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly required: readonly ["id", "type", "kind", "name"];
|
|
11
|
+
readonly additionalProperties: false;
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly id: {
|
|
14
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
15
|
+
};
|
|
16
|
+
readonly systemId: {
|
|
17
|
+
readonly $ref: "definitions.json#/definitions/systemId";
|
|
18
|
+
};
|
|
19
|
+
readonly driver: {
|
|
20
|
+
readonly $ref: "definitions.json#/definitions/driver";
|
|
21
|
+
};
|
|
22
|
+
readonly type: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly enum: readonly ["group"];
|
|
25
|
+
readonly default: "group";
|
|
26
|
+
};
|
|
27
|
+
readonly kind: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly enum: readonly ["Social", "Department"];
|
|
30
|
+
};
|
|
31
|
+
readonly name: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
};
|
|
34
|
+
readonly members: {
|
|
35
|
+
readonly type: "array";
|
|
36
|
+
readonly items: {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly required: readonly ["id", "type"];
|
|
39
|
+
readonly additionalProperties: false;
|
|
40
|
+
readonly properties: {
|
|
41
|
+
readonly id: {
|
|
42
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
43
|
+
};
|
|
44
|
+
readonly name: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly type: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly description: "The type of the member resource.";
|
|
50
|
+
};
|
|
51
|
+
readonly role: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly description: "The role of the member within this group.";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly createdAt: {
|
|
59
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
60
|
+
};
|
|
61
|
+
readonly updatedAt: {
|
|
62
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
63
|
+
};
|
|
64
|
+
readonly deletedAt: {
|
|
65
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type GroupSchema = FromSchema<typeof groupSchema, {
|
|
70
|
+
references: [typeof defs];
|
|
71
|
+
deserialize: [
|
|
72
|
+
{
|
|
73
|
+
pattern: {
|
|
74
|
+
format: "date-time";
|
|
75
|
+
};
|
|
76
|
+
output: Date | ISODateString;
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
}>;
|
|
80
|
+
|
|
81
|
+
export { type GroupSchema, groupSchema };
|
|
@@ -32,6 +32,7 @@ __export(schemas_exports, {
|
|
|
32
32
|
energyReportSchema: () => import_energyReport.energyReportSchema,
|
|
33
33
|
energyReportShardSchema: () => import_energyReportShard.energyReportShardSchema,
|
|
34
34
|
gatewaySchema: () => import_gateway.gatewaySchema,
|
|
35
|
+
groupSchema: () => import_group.groupSchema,
|
|
35
36
|
identificationSchema: () => import_identification.identificationSchema,
|
|
36
37
|
issueSchema: () => import_issue.issueSchema,
|
|
37
38
|
lockSchema: () => import_lock.lockSchema,
|
|
@@ -84,6 +85,7 @@ var import_emailMessage = require("./emailMessage.cjs");
|
|
|
84
85
|
var import_energyReport = require("./energyReport.cjs");
|
|
85
86
|
var import_energyReportShard = require("./energyReportShard.cjs");
|
|
86
87
|
var import_gateway = require("./gateway.cjs");
|
|
88
|
+
var import_group = require("./group.cjs");
|
|
87
89
|
var import_identification = require("./identification.cjs");
|
|
88
90
|
var import_issue = require("./issue.cjs");
|
|
89
91
|
var import_lock = require("./lock.cjs");
|
|
@@ -132,6 +134,7 @@ var import_windowCovering = require("./windowCovering.cjs");
|
|
|
132
134
|
energyReportSchema,
|
|
133
135
|
energyReportShardSchema,
|
|
134
136
|
gatewaySchema,
|
|
137
|
+
groupSchema,
|
|
135
138
|
identificationSchema,
|
|
136
139
|
issueSchema,
|
|
137
140
|
lockSchema,
|
|
@@ -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 { identificationSchema, type IdentificationSchema } from \"./identification.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8C;AAC9C,0BAA4D;AAC5D,wBAAwD;AACxD,oBAAgD;AAChD,sBAAoD;AACpD,sBAAoD;AACpD,wBAAwD;AACxD,wBAAwD;AACxD,0BAA4D;AAC5D,oBAAgD;AAChD,8BAAoE;AACpE,0BAA4D;AAC5D,0BAA4D;AAC5D,+BAAsE;AACtE,qBAAkD;AAClD,4BAAgE;AAChE,mBAA8C;AAC9C,kBAA4C;AAC5C,iBAA0C;AAC1C,uBAAmF;AACnF,yBAA0D;AAC1D,0BAA4D;AAC5D,0BAA4D;AAC5D,mBAA8C;AAC9C,0BAA4D;AAC5D,qBAAkD;AAClD,oBAAgD;AAChD,qBAAkD;AAClD,sBAAoD;AACpD,yBAA0D;AAC1D,kBAA4F;AAC5F,mBAA8C;AAC9C,oBAAgD;AAChD,qBAAkD;AAClD,uBAAsD;AACtD,wBAAwD;AACxD,mBAA8C;AAC9C,oBAAgD;AAChD,oBAAgD;AAChD,wBAAwD;AACxD,wBAAwD;AACxD,oBAAgD;AAChD,uBAAsD;AACtD,kBAAoE;AACpE,oBAAgD;AAChD,4BAAgE;","names":[]}
|
|
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 { 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8C;AAC9C,0BAA4D;AAC5D,wBAAwD;AACxD,oBAAgD;AAChD,sBAAoD;AACpD,sBAAoD;AACpD,wBAAwD;AACxD,wBAAwD;AACxD,0BAA4D;AAC5D,oBAAgD;AAChD,8BAAoE;AACpE,0BAA4D;AAC5D,0BAA4D;AAC5D,+BAAsE;AACtE,qBAAkD;AAClD,mBAA8C;AAC9C,4BAAgE;AAChE,mBAA8C;AAC9C,kBAA4C;AAC5C,iBAA0C;AAC1C,uBAAmF;AACnF,yBAA0D;AAC1D,0BAA4D;AAC5D,0BAA4D;AAC5D,mBAA8C;AAC9C,0BAA4D;AAC5D,qBAAkD;AAClD,oBAAgD;AAChD,qBAAkD;AAClD,sBAAoD;AACpD,yBAA0D;AAC1D,kBAA4F;AAC5F,mBAA8C;AAC9C,oBAAgD;AAChD,qBAAkD;AAClD,uBAAsD;AACtD,wBAAwD;AACxD,mBAA8C;AAC9C,oBAAgD;AAChD,oBAAgD;AAChD,wBAAwD;AACxD,wBAAwD;AACxD,oBAAgD;AAChD,uBAAsD;AACtD,kBAAoE;AACpE,oBAAgD;AAChD,4BAAgE;","names":[]}
|
|
@@ -13,6 +13,7 @@ export { EmailMessageSchema, emailMessageSchema } from './emailMessage.cjs';
|
|
|
13
13
|
export { EnergyReportSchema, energyReportSchema } from './energyReport.cjs';
|
|
14
14
|
export { EnergyReportShardSchema, energyReportShardSchema } from './energyReportShard.cjs';
|
|
15
15
|
export { GatewaySchema, gatewaySchema } from './gateway.cjs';
|
|
16
|
+
export { GroupSchema, groupSchema } from './group.cjs';
|
|
16
17
|
export { IdentificationSchema, identificationSchema } from './identification.cjs';
|
|
17
18
|
export { IssueSchema, issueSchema } from './issue.cjs';
|
|
18
19
|
export { LockSchema, lockSchema } from './lock.cjs';
|
|
@@ -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 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":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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,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,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: [\"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 type: [\"string\", \"null\"],\n format: \"date-time\",\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":";;;;;;;;;;;;;;;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,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,CAAC,UAAU,MAAM;AAAA,MACvB,QAAQ;AAAA,IACV;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -326,6 +326,10 @@ declare const propertySchema: {
|
|
|
326
326
|
};
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
|
+
readonly deletedAt: {
|
|
330
|
+
readonly type: readonly ["string", "null"];
|
|
331
|
+
readonly format: "date-time";
|
|
332
|
+
};
|
|
329
333
|
readonly credentials: {
|
|
330
334
|
readonly type: "object";
|
|
331
335
|
readonly additionalProperties: true;
|