@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
|
@@ -66,20 +66,29 @@ const systemUserSchema = {
|
|
|
66
66
|
type: "string"
|
|
67
67
|
},
|
|
68
68
|
gender: {
|
|
69
|
-
type: "string",
|
|
70
|
-
enum: ["male", "female"]
|
|
69
|
+
type: ["string", "null"],
|
|
70
|
+
enum: ["male", "female", null]
|
|
71
71
|
},
|
|
72
72
|
roles: {
|
|
73
73
|
type: "array",
|
|
74
74
|
items: {
|
|
75
75
|
type: "string",
|
|
76
76
|
enum: [
|
|
77
|
+
"Administrator",
|
|
78
|
+
"Caretaker",
|
|
79
|
+
"Colleague",
|
|
80
|
+
"Friend",
|
|
81
|
+
"Guardian",
|
|
77
82
|
"Guest",
|
|
78
|
-
"User",
|
|
79
|
-
"Manager",
|
|
80
83
|
"Maintenance",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
84
|
+
"Manager",
|
|
85
|
+
"Neighbor",
|
|
86
|
+
"Parent",
|
|
87
|
+
"Relative",
|
|
88
|
+
"Staff",
|
|
89
|
+
"Student",
|
|
90
|
+
"SuperAdmin",
|
|
91
|
+
"User"
|
|
83
92
|
]
|
|
84
93
|
}
|
|
85
94
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/systemUser.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const systemUserSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"systemUser.json\",\n title: \"System User\",\n description:\n \"A system user is a user that originated from an external 3rd party system.\",\n type: \"object\",\n required: [\"id\", \"firstName\", \"lastName\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"systemUser\",\n enum: [\"systemUser\"],\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n firstName: {\n type: \"string\",\n },\n lastName: {\n type: \"string\",\n },\n phone: {\n type: [\"string\", \"null\"],\n pattern: \"^\\\\+[0-9]{1,14}$\",\n },\n email: {\n type: [\"string\", \"null\"],\n format: \"email\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n photo: {\n type: \"string\",\n },\n jobTitle: {\n type: \"string\",\n },\n dob: {\n type: \"string\",\n },\n gender: {\n type: \"string\",\n enum: [\"male\", \"female\"],\n },\n roles: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"Guest\",\n \"
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/systemUser.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const systemUserSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"systemUser.json\",\n title: \"System User\",\n description:\n \"A system user is a user that originated from an external 3rd party system.\",\n type: \"object\",\n required: [\"id\", \"firstName\", \"lastName\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"systemUser\",\n enum: [\"systemUser\"],\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n firstName: {\n type: \"string\",\n },\n lastName: {\n type: \"string\",\n },\n phone: {\n type: [\"string\", \"null\"],\n pattern: \"^\\\\+[0-9]{1,14}$\",\n },\n email: {\n type: [\"string\", \"null\"],\n format: \"email\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n photo: {\n type: \"string\",\n },\n jobTitle: {\n type: \"string\",\n },\n dob: {\n type: \"string\",\n },\n gender: {\n type: [\"string\", \"null\"],\n enum: [\"male\", \"female\", null],\n },\n roles: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"Administrator\",\n \"Caretaker\",\n \"Colleague\",\n \"Friend\",\n \"Guardian\",\n \"Guest\",\n \"Maintenance\",\n \"Manager\",\n \"Neighbor\",\n \"Parent\",\n \"Relative\",\n \"Staff\",\n \"Student\",\n \"SuperAdmin\",\n \"User\",\n ],\n },\n },\n nationality: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n notes: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n files: {\n type: \"array\",\n items: {\n $ref: \"mediaFile.json#\",\n },\n },\n identifications: {\n type: \"array\",\n items: {\n $ref: \"identification.json#\",\n },\n },\n payments: {\n type: \"array\",\n items: {\n $ref: \"payment.json#\",\n },\n },\n revenue: {\n $ref: \"definitions.json#/definitions/revenue\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type SystemUserSchema = FromSchema<\n typeof systemUserSchema,\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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,MAAM;AAAA,MACN,WAAW;AAAA,MACX,WAAW;AAAA,IACb;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -47,14 +47,14 @@ declare const systemUserSchema: {
|
|
|
47
47
|
readonly type: "string";
|
|
48
48
|
};
|
|
49
49
|
readonly gender: {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly enum: readonly ["male", "female"];
|
|
50
|
+
readonly type: readonly ["string", "null"];
|
|
51
|
+
readonly enum: readonly ["male", "female", null];
|
|
52
52
|
};
|
|
53
53
|
readonly roles: {
|
|
54
54
|
readonly type: "array";
|
|
55
55
|
readonly items: {
|
|
56
56
|
readonly type: "string";
|
|
57
|
-
readonly enum: readonly ["Guest", "
|
|
57
|
+
readonly enum: readonly ["Administrator", "Caretaker", "Colleague", "Friend", "Guardian", "Guest", "Maintenance", "Manager", "Neighbor", "Parent", "Relative", "Staff", "Student", "SuperAdmin", "User"];
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
readonly nationality: {
|
|
@@ -56,6 +56,10 @@ const ticketSchema = {
|
|
|
56
56
|
type: "string",
|
|
57
57
|
description: "The ID of the issue that this ticket is associated with."
|
|
58
58
|
},
|
|
59
|
+
parentAutomationId: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "The ID of the automation that created this ticket."
|
|
62
|
+
},
|
|
59
63
|
conversation: {
|
|
60
64
|
type: "array",
|
|
61
65
|
default: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"openedBy\",\n \"assignedTo\",\n \"status\",\n \"priority\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\", \"author\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"tipped\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n \"nudged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n isInternal: {\n type: \"boolean\",\n description: \"Whether the message is internal to the assignedTo and collaborators. Internal messages are not visible to the requester.\",\n default: false,\n },\n author: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n },\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n requester: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n },\n },\n assignedTo: {\n type: [\"object\", \"null\"],\n default: null,\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\", \"critical\"],\n default: \"normal\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n autoCloseAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\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;AAIO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,QAA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IACX;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,MAAM,CAAC,OAAO,UAAU,QAAQ,UAAU;AAAA,MAC1C,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,MACV,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"openedBy\",\n \"assignedTo\",\n \"status\",\n \"priority\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n parentAutomationId: {\n type: \"string\",\n description: \"The ID of the automation that created this ticket.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\", \"author\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"tipped\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n \"nudged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n isInternal: {\n type: \"boolean\",\n description: \"Whether the message is internal to the assignedTo and collaborators. Internal messages are not visible to the requester.\",\n default: false,\n },\n author: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n },\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n requester: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n },\n },\n assignedTo: {\n type: [\"object\", \"null\"],\n default: null,\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"name\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\", \"critical\"],\n default: \"normal\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n autoCloseAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\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;AAIO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,oBAAoB;AAAA,MAClB,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,MACV,aAAa;AAAA,MACb,OAAO;AAAA,QACL,MAAM;AAAA,QACN,sBAAsB;AAAA,QACtB,UAAU,CAAC,MAAM,iBAAiB,aAAa,QAAQ,QAAQ;AAAA,QAC/D,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,eAAe;AAAA,YACb,MAAM;AAAA,YACN,MAAM;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,SAAS;AAAA,YACT,aAAa;AAAA,UAC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AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -27,6 +27,10 @@ declare const ticketSchema: {
|
|
|
27
27
|
readonly type: "string";
|
|
28
28
|
readonly description: "The ID of the issue that this ticket is associated with.";
|
|
29
29
|
};
|
|
30
|
+
readonly parentAutomationId: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly description: "The ID of the automation that created this ticket.";
|
|
33
|
+
};
|
|
30
34
|
readonly conversation: {
|
|
31
35
|
readonly type: "array";
|
|
32
36
|
readonly default: readonly [];
|
package/dist/cjs/validate.cjs
CHANGED
|
@@ -42,6 +42,7 @@ __export(validate_exports, {
|
|
|
42
42
|
validateEnergyReport: () => validateEnergyReport,
|
|
43
43
|
validateEnergyReportShard: () => validateEnergyReportShard,
|
|
44
44
|
validateGateway: () => validateGateway,
|
|
45
|
+
validateGroup: () => validateGroup,
|
|
45
46
|
validateIdentification: () => validateIdentification,
|
|
46
47
|
validateIssue: () => validateIssue,
|
|
47
48
|
validateLock: () => validateLock,
|
|
@@ -93,6 +94,7 @@ var import_emailMessage = require("./schemas/emailMessage.cjs");
|
|
|
93
94
|
var import_energyReport = require("./schemas/energyReport.cjs");
|
|
94
95
|
var import_energyReportShard = require("./schemas/energyReportShard.cjs");
|
|
95
96
|
var import_gateway = require("./schemas/gateway.cjs");
|
|
97
|
+
var import_group = require("./schemas/group.cjs");
|
|
96
98
|
var import_identification = require("./schemas/identification.cjs");
|
|
97
99
|
var import_issue = require("./schemas/issue.cjs");
|
|
98
100
|
var import_lock = require("./schemas/lock.cjs");
|
|
@@ -141,6 +143,7 @@ const schemas = [
|
|
|
141
143
|
import_energyReport.energyReportSchema,
|
|
142
144
|
import_energyReportShard.energyReportShardSchema,
|
|
143
145
|
import_gateway.gatewaySchema,
|
|
146
|
+
import_group.groupSchema,
|
|
144
147
|
import_identification.identificationSchema,
|
|
145
148
|
import_issue.issueSchema,
|
|
146
149
|
import_lock.lockSchema,
|
|
@@ -198,6 +201,7 @@ const validateEmailMessage = ajv.compile(import_emailMessage.emailMessageSchema)
|
|
|
198
201
|
const validateEnergyReport = ajv.compile(import_energyReport.energyReportSchema);
|
|
199
202
|
const validateEnergyReportShard = ajv.compile(import_energyReportShard.energyReportShardSchema);
|
|
200
203
|
const validateGateway = ajv.compile(import_gateway.gatewaySchema);
|
|
204
|
+
const validateGroup = ajv.compile(import_group.groupSchema);
|
|
201
205
|
const validateIdentification = ajv.compile(import_identification.identificationSchema);
|
|
202
206
|
const validateIssue = ajv.compile(import_issue.issueSchema);
|
|
203
207
|
const validateLock = ajv.compile(import_lock.lockSchema);
|
|
@@ -246,6 +250,7 @@ const validateWindowCovering = ajv.compile(import_windowCovering.windowCoveringS
|
|
|
246
250
|
validateEnergyReport,
|
|
247
251
|
validateEnergyReportShard,
|
|
248
252
|
validateGateway,
|
|
253
|
+
validateGroup,
|
|
249
254
|
validateIdentification,
|
|
250
255
|
validateIssue,
|
|
251
256
|
validateLock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/validate.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\nimport { Ajv } from \"ajv\";\nimport addFormats from \"ajv-formats\";\n\nimport { definitionsSchema as defs } from \"./schemas/definitions.js\";\nimport { alarmSchema } from \"./schemas/alarm.js\";\nimport { announcementSchema } from \"./schemas/announcement.js\";\nimport { automationSchema } from \"./schemas/automation.js\";\nimport { cameraSchema } from \"./schemas/camera.js\";\nimport { categorySchema } from \"./schemas/category.js\";\nimport { courtesySchema } from \"./schemas/courtesy.js\";\nimport { credentialSchema } from \"./schemas/credential.js\";\nimport { departmentSchema } from \"./schemas/department.js\";\nimport { deviceRouterSchema } from \"./schemas/deviceRouter.js\";\nimport { dimmerSchema } from \"./schemas/dimmer.js\";\nimport { discoveredDeviceSchema } from \"./schemas/discoveredDevice.js\";\nimport { emailMessageSchema } from \"./schemas/emailMessage.js\";\nimport { energyReportSchema } from \"./schemas/energyReport.js\";\nimport { energyReportShardSchema } from \"./schemas/energyReportShard.js\";\nimport { gatewaySchema } from \"./schemas/gateway.js\";\nimport { identificationSchema } from \"./schemas/identification.js\";\nimport { issueSchema } from \"./schemas/issue.js\";\nimport { lockSchema } from \"./schemas/lock.js\";\nimport { logSchema } from \"./schemas/log.js\";\nimport { mediaFileSchema } from \"./schemas/mediaFile.js\";\nimport { mediaSourceSchema } from \"./schemas/mediaSource.js\";\nimport { motionSensorSchema } from \"./schemas/motionSensor.js\";\nimport { notificationSchema } from \"./schemas/notification.js\";\nimport { orderSchema } from \"./schemas/order.js\";\nimport { organizationSchema } from \"./schemas/organization.js\";\nimport { paymentSchema } from \"./schemas/payment.js\";\nimport { policySchema } from \"./schemas/policy.js\";\nimport { productSchema } from \"./schemas/product.js\";\nimport { propertySchema } from \"./schemas/property.js\";\nimport { reservationSchema } from \"./schemas/reservation.js\";\nimport { roomSchema } from \"./schemas/room.js\";\nimport { sceneSchema } from \"./schemas/scene.js\";\nimport { serverSchema } from \"./schemas/server.js\";\nimport { sessionSchema } from \"./schemas/session.js\";\nimport { shortLinkSchema } from \"./schemas/shortLink.js\";\nimport { smsMessageSchema } from \"./schemas/smsMessage.js\";\nimport { spaceSchema } from \"./schemas/space.js\";\nimport { switchSchema } from \"./schemas/switch.js\";\nimport { systemSchema } from \"./schemas/system.js\";\nimport { systemUserSchema } from \"./schemas/systemUser.js\";\nimport { thermostatSchema } from \"./schemas/thermostat.js\";\nimport { ticketSchema } from \"./schemas/ticket.js\";\nimport { timeSheetSchema } from \"./schemas/timeSheet.js\";\nimport { userSchema } from \"./schemas/user.js\";\nimport { vendorSchema } from \"./schemas/vendor.js\";\nimport { windowCoveringSchema } from \"./schemas/windowCovering.js\";\n\nconst schemas = [\n defs,\n alarmSchema,\n announcementSchema,\n automationSchema,\n cameraSchema,\n categorySchema,\n courtesySchema,\n credentialSchema,\n departmentSchema,\n deviceRouterSchema,\n dimmerSchema,\n discoveredDeviceSchema,\n emailMessageSchema,\n energyReportSchema,\n energyReportShardSchema,\n gatewaySchema,\n identificationSchema,\n issueSchema,\n lockSchema,\n logSchema,\n mediaFileSchema,\n mediaSourceSchema,\n motionSensorSchema,\n notificationSchema,\n orderSchema,\n organizationSchema,\n paymentSchema,\n policySchema,\n productSchema,\n propertySchema,\n reservationSchema,\n roomSchema,\n sceneSchema,\n serverSchema,\n sessionSchema,\n shortLinkSchema,\n smsMessageSchema,\n spaceSchema,\n switchSchema,\n systemSchema,\n systemUserSchema,\n thermostatSchema,\n ticketSchema,\n timeSheetSchema,\n userSchema,\n vendorSchema,\n windowCoveringSchema,\n];\n\nconst ajv = new Ajv({\n allErrors: true,\n useDefaults: true,\n strict: false,\n allowMatchingProperties: true,\n allowUnionTypes: true,\n strictRequired: false,\n schemas: schemas,\n});\n\naddFormats(ajv);\n\nexport const validateAlarm = ajv.compile(alarmSchema);\nexport const validateAnnouncement = ajv.compile(announcementSchema);\nexport const validateAutomation = ajv.compile(automationSchema);\nexport const validateCamera = ajv.compile(cameraSchema);\nexport const validateCategory = ajv.compile(categorySchema);\nexport const validateCourtesy = ajv.compile(courtesySchema);\nexport const validateCredential = ajv.compile(credentialSchema);\nexport const validateDepartment = ajv.compile(departmentSchema);\nexport const validateDeviceRouter = ajv.compile(deviceRouterSchema);\nexport const validateDimmer = ajv.compile(dimmerSchema);\nexport const validateDiscoveredDevice = ajv.compile(discoveredDeviceSchema);\nexport const validateEmailMessage = ajv.compile(emailMessageSchema);\nexport const validateEnergyReport = ajv.compile(energyReportSchema);\nexport const validateEnergyReportShard = ajv.compile(energyReportShardSchema);\nexport const validateGateway = ajv.compile(gatewaySchema);\nexport const validateIdentification = ajv.compile(identificationSchema);\nexport const validateIssue = ajv.compile(issueSchema);\nexport const validateLock = ajv.compile(lockSchema);\nexport const validateLog = ajv.compile(logSchema);\nexport const validateMediaFile = ajv.compile(mediaFileSchema);\nexport const validateMediaSource = ajv.compile(mediaSourceSchema);\nexport const validateMotionSensor = ajv.compile(motionSensorSchema);\nexport const validateNotification = ajv.compile(notificationSchema);\nexport const validateOrder = ajv.compile(orderSchema);\nexport const validateOrganization = ajv.compile(organizationSchema);\nexport const validatePayment = ajv.compile(paymentSchema);\nexport const validatePolicy = ajv.compile(policySchema);\nexport const validateProduct = ajv.compile(productSchema);\nexport const validateProperty = ajv.compile(propertySchema);\nexport const validateReservation = ajv.compile(reservationSchema);\nexport const validateRoom = ajv.compile(roomSchema);\nexport const validateScene = ajv.compile(sceneSchema);\nexport const validateServer = ajv.compile(serverSchema);\nexport const validateSession = ajv.compile(sessionSchema);\nexport const validateShortLink = ajv.compile(shortLinkSchema);\nexport const validateSmsMessage = ajv.compile(smsMessageSchema);\nexport const validateSpace = ajv.compile(spaceSchema);\nexport const validateSwitch = ajv.compile(switchSchema);\nexport const validateSystem = ajv.compile(systemSchema);\nexport const validateSystemUser = ajv.compile(systemUserSchema);\nexport const validateThermostat = ajv.compile(thermostatSchema);\nexport const validateTicket = ajv.compile(ticketSchema);\nexport const validateTimeSheet = ajv.compile(timeSheetSchema);\nexport const validateUser = ajv.compile(userSchema);\nexport const validateVendor = ajv.compile(vendorSchema);\nexport const validateWindowCovering = ajv.compile(windowCoveringSchema);\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;AACA,iBAAoB;AACpB,yBAAuB;AAEvB,yBAA0C;AAC1C,mBAA4B;AAC5B,0BAAmC;AACnC,wBAAiC;AACjC,oBAA6B;AAC7B,sBAA+B;AAC/B,sBAA+B;AAC/B,wBAA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C/C,MAAM,kBAAkB,IAAI,QAAQ,4BAAa;AACjD,MAAM,mBAAmB,IAAI,QAAQ,8BAAc;AACnD,MAAM,sBAAsB,IAAI,QAAQ,oCAAiB;AACzD,MAAM,eAAe,IAAI,QAAQ,sBAAU;AAC3C,MAAM,gBAAgB,IAAI,QAAQ,wBAAW;AAC7C,MAAM,iBAAiB,IAAI,QAAQ,0BAAY;AAC/C,MAAM,kBAAkB,IAAI,QAAQ,4BAAa;AACjD,MAAM,oBAAoB,IAAI,QAAQ,gCAAe;AACrD,MAAM,qBAAqB,IAAI,QAAQ,kCAAgB;AACvD,MAAM,gBAAgB,IAAI,QAAQ,wBAAW;AAC7C,MAAM,iBAAiB,IAAI,QAAQ,0BAAY;AAC/C,MAAM,iBAAiB,IAAI,QAAQ,0BAAY;AAC/C,MAAM,qBAAqB,IAAI,QAAQ,kCAAgB;AACvD,MAAM,qBAAqB,IAAI,QAAQ,kCAAgB;AACvD,MAAM,iBAAiB,IAAI,QAAQ,0BAAY;AAC/C,MAAM,oBAAoB,IAAI,QAAQ,gCAAe;AACrD,MAAM,eAAe,IAAI,QAAQ,sBAAU;AAC3C,MAAM,iBAAiB,IAAI,QAAQ,0BAAY;AAC/C,MAAM,yBAAyB,IAAI,QAAQ,0CAAoB;","names":["defs","addFormats"]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/validate.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\nimport { Ajv } from \"ajv\";\nimport addFormats from \"ajv-formats\";\n\nimport { definitionsSchema as defs } from \"./schemas/definitions.js\";\nimport { alarmSchema } from \"./schemas/alarm.js\";\nimport { announcementSchema } from \"./schemas/announcement.js\";\nimport { automationSchema } from \"./schemas/automation.js\";\nimport { cameraSchema } from \"./schemas/camera.js\";\nimport { categorySchema } from \"./schemas/category.js\";\nimport { courtesySchema } from \"./schemas/courtesy.js\";\nimport { credentialSchema } from \"./schemas/credential.js\";\nimport { departmentSchema } from \"./schemas/department.js\";\nimport { deviceRouterSchema } from \"./schemas/deviceRouter.js\";\nimport { dimmerSchema } from \"./schemas/dimmer.js\";\nimport { discoveredDeviceSchema } from \"./schemas/discoveredDevice.js\";\nimport { emailMessageSchema } from \"./schemas/emailMessage.js\";\nimport { energyReportSchema } from \"./schemas/energyReport.js\";\nimport { energyReportShardSchema } from \"./schemas/energyReportShard.js\";\nimport { gatewaySchema } from \"./schemas/gateway.js\";\nimport { groupSchema } from \"./schemas/group.js\";\nimport { identificationSchema } from \"./schemas/identification.js\";\nimport { issueSchema } from \"./schemas/issue.js\";\nimport { lockSchema } from \"./schemas/lock.js\";\nimport { logSchema } from \"./schemas/log.js\";\nimport { mediaFileSchema } from \"./schemas/mediaFile.js\";\nimport { mediaSourceSchema } from \"./schemas/mediaSource.js\";\nimport { motionSensorSchema } from \"./schemas/motionSensor.js\";\nimport { notificationSchema } from \"./schemas/notification.js\";\nimport { orderSchema } from \"./schemas/order.js\";\nimport { organizationSchema } from \"./schemas/organization.js\";\nimport { paymentSchema } from \"./schemas/payment.js\";\nimport { policySchema } from \"./schemas/policy.js\";\nimport { productSchema } from \"./schemas/product.js\";\nimport { propertySchema } from \"./schemas/property.js\";\nimport { reservationSchema } from \"./schemas/reservation.js\";\nimport { roomSchema } from \"./schemas/room.js\";\nimport { sceneSchema } from \"./schemas/scene.js\";\nimport { serverSchema } from \"./schemas/server.js\";\nimport { sessionSchema } from \"./schemas/session.js\";\nimport { shortLinkSchema } from \"./schemas/shortLink.js\";\nimport { smsMessageSchema } from \"./schemas/smsMessage.js\";\nimport { spaceSchema } from \"./schemas/space.js\";\nimport { switchSchema } from \"./schemas/switch.js\";\nimport { systemSchema } from \"./schemas/system.js\";\nimport { systemUserSchema } from \"./schemas/systemUser.js\";\nimport { thermostatSchema } from \"./schemas/thermostat.js\";\nimport { ticketSchema } from \"./schemas/ticket.js\";\nimport { timeSheetSchema } from \"./schemas/timeSheet.js\";\nimport { userSchema } from \"./schemas/user.js\";\nimport { vendorSchema } from \"./schemas/vendor.js\";\nimport { windowCoveringSchema } from \"./schemas/windowCovering.js\";\n\nconst schemas = [\n defs,\n alarmSchema,\n announcementSchema,\n automationSchema,\n cameraSchema,\n categorySchema,\n courtesySchema,\n credentialSchema,\n departmentSchema,\n deviceRouterSchema,\n dimmerSchema,\n discoveredDeviceSchema,\n emailMessageSchema,\n energyReportSchema,\n energyReportShardSchema,\n gatewaySchema,\n groupSchema,\n identificationSchema,\n issueSchema,\n lockSchema,\n logSchema,\n mediaFileSchema,\n mediaSourceSchema,\n motionSensorSchema,\n notificationSchema,\n orderSchema,\n organizationSchema,\n paymentSchema,\n policySchema,\n productSchema,\n propertySchema,\n reservationSchema,\n roomSchema,\n sceneSchema,\n serverSchema,\n sessionSchema,\n shortLinkSchema,\n smsMessageSchema,\n spaceSchema,\n switchSchema,\n systemSchema,\n systemUserSchema,\n thermostatSchema,\n ticketSchema,\n timeSheetSchema,\n userSchema,\n vendorSchema,\n windowCoveringSchema,\n];\n\nconst ajv = new Ajv({\n allErrors: true,\n useDefaults: true,\n strict: false,\n allowMatchingProperties: true,\n allowUnionTypes: true,\n strictRequired: false,\n schemas: schemas,\n});\n\naddFormats(ajv);\n\nexport const validateAlarm = ajv.compile(alarmSchema);\nexport const validateAnnouncement = ajv.compile(announcementSchema);\nexport const validateAutomation = ajv.compile(automationSchema);\nexport const validateCamera = ajv.compile(cameraSchema);\nexport const validateCategory = ajv.compile(categorySchema);\nexport const validateCourtesy = ajv.compile(courtesySchema);\nexport const validateCredential = ajv.compile(credentialSchema);\nexport const validateDepartment = ajv.compile(departmentSchema);\nexport const validateDeviceRouter = ajv.compile(deviceRouterSchema);\nexport const validateDimmer = ajv.compile(dimmerSchema);\nexport const validateDiscoveredDevice = ajv.compile(discoveredDeviceSchema);\nexport const validateEmailMessage = ajv.compile(emailMessageSchema);\nexport const validateEnergyReport = ajv.compile(energyReportSchema);\nexport const validateEnergyReportShard = ajv.compile(energyReportShardSchema);\nexport const validateGateway = ajv.compile(gatewaySchema);\nexport const validateGroup = ajv.compile(groupSchema);\nexport const validateIdentification = ajv.compile(identificationSchema);\nexport const validateIssue = ajv.compile(issueSchema);\nexport const validateLock = ajv.compile(lockSchema);\nexport const validateLog = ajv.compile(logSchema);\nexport const validateMediaFile = ajv.compile(mediaFileSchema);\nexport const validateMediaSource = ajv.compile(mediaSourceSchema);\nexport const validateMotionSensor = ajv.compile(motionSensorSchema);\nexport const validateNotification = ajv.compile(notificationSchema);\nexport const validateOrder = ajv.compile(orderSchema);\nexport const validateOrganization = ajv.compile(organizationSchema);\nexport const validatePayment = ajv.compile(paymentSchema);\nexport const validatePolicy = ajv.compile(policySchema);\nexport const validateProduct = ajv.compile(productSchema);\nexport const validateProperty = ajv.compile(propertySchema);\nexport const validateReservation = ajv.compile(reservationSchema);\nexport const validateRoom = ajv.compile(roomSchema);\nexport const validateScene = ajv.compile(sceneSchema);\nexport const validateServer = ajv.compile(serverSchema);\nexport const validateSession = ajv.compile(sessionSchema);\nexport const validateShortLink = ajv.compile(shortLinkSchema);\nexport const validateSmsMessage = ajv.compile(smsMessageSchema);\nexport const validateSpace = ajv.compile(spaceSchema);\nexport const validateSwitch = ajv.compile(switchSchema);\nexport const validateSystem = ajv.compile(systemSchema);\nexport const validateSystemUser = ajv.compile(systemUserSchema);\nexport const validateThermostat = ajv.compile(thermostatSchema);\nexport const validateTicket = ajv.compile(ticketSchema);\nexport const validateTimeSheet = ajv.compile(timeSheetSchema);\nexport const validateUser = ajv.compile(userSchema);\nexport const validateVendor = ajv.compile(vendorSchema);\nexport const validateWindowCovering = ajv.compile(windowCoveringSchema);\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;AAA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|
|
239
239
|
}>;
|
|
240
|
+
declare const validateGroup: ajv.ValidateFunction<{
|
|
241
|
+
id: any;
|
|
242
|
+
type: any;
|
|
243
|
+
name: any;
|
|
244
|
+
kind: any;
|
|
245
|
+
} & {
|
|
246
|
+
id: any;
|
|
247
|
+
} & {
|
|
248
|
+
type: any;
|
|
249
|
+
} & {
|
|
250
|
+
name: any;
|
|
251
|
+
} & {
|
|
252
|
+
kind: any;
|
|
253
|
+
}>;
|
|
240
254
|
declare const validateIdentification: ajv.ValidateFunction<{
|
|
241
255
|
number: any;
|
|
242
256
|
} & {
|
|
@@ -710,4 +724,4 @@ declare const validateWindowCovering: ajv.ValidateFunction<{
|
|
|
710
724
|
driver: any;
|
|
711
725
|
}>;
|
|
712
726
|
|
|
713
|
-
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment, validateDeviceRouter, validateDimmer, validateDiscoveredDevice, validateEmailMessage, validateEnergyReport, validateEnergyReportShard, validateGateway, validateIdentification, validateIssue, validateLock, validateLog, validateMediaFile, validateMediaSource, validateMotionSensor, validateNotification, validateOrder, validateOrganization, validatePayment, validatePolicy, validateProduct, validateProperty, validateReservation, validateRoom, validateScene, validateServer, validateSession, validateShortLink, validateSmsMessage, validateSpace, validateSwitch, validateSystem, validateSystemUser, validateThermostat, validateTicket, validateTimeSheet, validateUser, validateVendor, validateWindowCovering };
|
|
727
|
+
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment, validateDeviceRouter, validateDimmer, validateDiscoveredDevice, validateEmailMessage, validateEnergyReport, validateEnergyReportShard, validateGateway, validateGroup, validateIdentification, validateIssue, validateLock, validateLog, validateMediaFile, validateMediaSource, validateMotionSensor, validateNotification, validateOrder, validateOrganization, validatePayment, validatePolicy, validateProduct, validateProperty, validateReservation, validateRoom, validateScene, validateServer, validateSession, validateShortLink, validateSmsMessage, validateSpace, validateSwitch, validateSystem, validateSystemUser, validateThermostat, validateTicket, validateTimeSheet, validateUser, validateVendor, validateWindowCovering };
|
|
@@ -14,6 +14,7 @@ import { EmailMessage, EmailMessageData } from './models/emailMessage.js';
|
|
|
14
14
|
import { EnergyReport, EnergyReportData } from './models/energyReport.js';
|
|
15
15
|
import { EnergyReportShard, EnergyReportShardData } from './models/energyReportShard.js';
|
|
16
16
|
import { Gateway, GatewayData } from './models/gateway.js';
|
|
17
|
+
import { Group, GroupData } from './models/group.js';
|
|
17
18
|
import { Identification, IdentificationData } from './models/identification.js';
|
|
18
19
|
import { Issue, IssueData } from './models/issue.js';
|
|
19
20
|
import { Lock, LockData } from './models/lock.js';
|
|
@@ -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/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-Cfk0f-lt.js';
|
|
7
7
|
export { i as UseCases } from './index-GPnaIdEY.js';
|
|
8
8
|
import 'node:buffer';
|
|
9
9
|
import './useCases/loginStart.js';
|
|
@@ -308,6 +308,8 @@ import './models/energyReportShard.js';
|
|
|
308
308
|
import './schemas/energyReportShard.js';
|
|
309
309
|
import './models/gateway.js';
|
|
310
310
|
import './schemas/gateway.js';
|
|
311
|
+
import './models/group.js';
|
|
312
|
+
import './schemas/group.js';
|
|
311
313
|
import './models/identification.js';
|
|
312
314
|
import './schemas/identification.js';
|
|
313
315
|
import './models/issue.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Entity } from './entity.js';
|
|
2
|
+
import { validateGroup } from '../validate.js';
|
|
3
|
+
import { GroupSchema, groupSchema } from '../schemas/group.js';
|
|
4
|
+
import 'ajv';
|
|
5
|
+
import '../schemas/definitions.js';
|
|
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 };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Entity } from "./entity.js";
|
|
4
|
+
import { validateGroup as validate } from "../validate.js";
|
|
5
|
+
import { groupSchema } from "../schemas/group.js";
|
|
6
|
+
class Group extends Entity {
|
|
7
|
+
static {
|
|
8
|
+
__name(this, "Group");
|
|
9
|
+
}
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super(data);
|
|
12
|
+
this.id = data.id;
|
|
13
|
+
if (data.systemId !== void 0) this.systemId = data.systemId;
|
|
14
|
+
if (data.driver !== void 0) this.driver = data.driver;
|
|
15
|
+
this.type = data.type;
|
|
16
|
+
this.kind = data.kind;
|
|
17
|
+
this.name = data.name;
|
|
18
|
+
if (data.members !== void 0) this.members = data.members;
|
|
19
|
+
if (data.createdAt !== void 0) this.createdAt = data.createdAt;
|
|
20
|
+
if (data.updatedAt !== void 0) this.updatedAt = data.updatedAt;
|
|
21
|
+
if (data.deletedAt !== void 0) this.deletedAt = data.deletedAt;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(Group.prototype, "schema", {
|
|
25
|
+
value: groupSchema
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(Group.prototype, "validator", {
|
|
28
|
+
get: /* @__PURE__ */ __name(function() {
|
|
29
|
+
return validate;
|
|
30
|
+
}, "get")
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
Group
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=group.js.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":";;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,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;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -14,6 +14,7 @@ export { EmailMessage, EmailMessageData } from './emailMessage.js';
|
|
|
14
14
|
export { EnergyReport, EnergyReportData } from './energyReport.js';
|
|
15
15
|
export { EnergyReportShard, EnergyReportShardData } from './energyReportShard.js';
|
|
16
16
|
export { Gateway, GatewayData } from './gateway.js';
|
|
17
|
+
export { Group, GroupData } from './group.js';
|
|
17
18
|
export { Identification, IdentificationData } from './identification.js';
|
|
18
19
|
export { Issue, IssueData } from './issue.js';
|
|
19
20
|
export { Lock, LockData } from './lock.js';
|
|
@@ -64,6 +65,7 @@ import '../schemas/emailMessage.js';
|
|
|
64
65
|
import '../schemas/energyReport.js';
|
|
65
66
|
import '../schemas/energyReportShard.js';
|
|
66
67
|
import '../schemas/gateway.js';
|
|
68
|
+
import '../schemas/group.js';
|
|
67
69
|
import '../schemas/identification.js';
|
|
68
70
|
import '../schemas/issue.js';
|
|
69
71
|
import '../schemas/ticket.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
EnergyReportShard
|
|
19
19
|
} from "./energyReportShard.js";
|
|
20
20
|
import { Gateway } from "./gateway.js";
|
|
21
|
+
import { Group } from "./group.js";
|
|
21
22
|
import { Identification } from "./identification.js";
|
|
22
23
|
import { Issue } from "./issue.js";
|
|
23
24
|
import { Lock } from "./lock.js";
|
|
@@ -66,6 +67,7 @@ export {
|
|
|
66
67
|
EnergyReportShard,
|
|
67
68
|
Entity,
|
|
68
69
|
Gateway,
|
|
70
|
+
Group,
|
|
69
71
|
Identification,
|
|
70
72
|
Issue,
|
|
71
73
|
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":"AAEA,SAAS,cAAc;AAEvB,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,gBAAmC;AAC5C,SAAS,gBAAmC;AAC5C,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,oBAA2C;AACpD,SAAS,cAA+B;AACxC;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD;AAAA,EACE;AAAA,OAEK;AACP,SAAS,eAAiC;AAC1C,SAAS,sBAA+C;AACxD,SAAS,aAA6B;AACtC,SAAS,YAA2B;AACpC,SAAS,WAAyB;AAClC,SAAS,iBAAqC;AAC9C,SAAS,mBAAyC;AAClD,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,eAAiC;AAC1C,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,gBAAmC;AAC5C,SAAS,mBAAyC;AAClD,SAAS,YAA2B;AACpC,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,iBAAqC;AAC9C,SAAS,kBAAuC;AAChD,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,cAA+B;AACxC,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,iBAAqC;AAC9C,SAAS,YAA2B;AACpC,SAAS,cAA+B;AACxC,SAAS,sBAA+C;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { 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":"AAEA,SAAS,cAAc;AAEvB,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,gBAAmC;AAC5C,SAAS,gBAAmC;AAC5C,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,oBAA2C;AACpD,SAAS,cAA+B;AACxC;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD;AAAA,EACE;AAAA,OAEK;AACP,SAAS,eAAiC;AAC1C,SAAS,aAA6B;AACtC,SAAS,sBAA+C;AACxD,SAAS,aAA6B;AACtC,SAAS,YAA2B;AACpC,SAAS,WAAyB;AAClC,SAAS,iBAAqC;AAC9C,SAAS,mBAAyC;AAClD,SAAS,oBAA2C;AACpD,SAAS,oBAA2C;AACpD,SAAS,aAA6B;AACtC,SAAS,oBAA2C;AACpD,SAAS,eAAiC;AAC1C,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,gBAAmC;AAC5C,SAAS,mBAAyC;AAClD,SAAS,YAA2B;AACpC,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,eAAiC;AAC1C,SAAS,iBAAqC;AAC9C,SAAS,kBAAuC;AAChD,SAAS,aAA6B;AACtC,SAAS,cAA+B;AACxC,SAAS,cAA+B;AACxC,SAAS,kBAAuC;AAChD,SAAS,kBAAuC;AAChD,SAAS,cAA+B;AACxC,SAAS,iBAAqC;AAC9C,SAAS,YAA2B;AACpC,SAAS,cAA+B;AACxC,SAAS,sBAA+C;","names":[]}
|
|
@@ -29,6 +29,7 @@ class Property extends Entity {
|
|
|
29
29
|
if (data.appFeatures !== void 0) this.appFeatures = data.appFeatures;
|
|
30
30
|
if (data.notifications !== void 0)
|
|
31
31
|
this.notifications = data.notifications;
|
|
32
|
+
if (data.deletedAt !== void 0) this.deletedAt = data.deletedAt;
|
|
32
33
|
if (data.credentials !== void 0) this.credentials = data.credentials;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -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":";;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,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;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/property.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateProperty as validate } from \"../validate.js\";\nimport { propertySchema, type PropertySchema } from \"../schemas/property.js\";\n\n/**\n * Data type for Property constructor - exported for backwards compatibility\n */\nexport type PropertyData = PropertySchema;\n\n/**\n * A property is a physical asset or building\n */\nexport interface Property extends PropertySchema {}\nexport class Property extends Entity {\n declare schema: typeof propertySchema;\n declare validator: typeof validate;\n\n constructor(data: PropertySchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n this.discriminator = data.discriminator;\n this.organization = data.organization;\n if (data.testModeEnabled !== undefined)\n this.testModeEnabled = data.testModeEnabled;\n if (data.testMode !== undefined) this.testMode = data.testMode;\n this.timezone = data.timezone;\n if (data.smsNumber !== undefined) this.smsNumber = data.smsNumber;\n if (data.voiceNumber !== undefined) this.voiceNumber = data.voiceNumber;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.checkInTime !== undefined) this.checkInTime = data.checkInTime;\n if (data.checkOutTime !== undefined) this.checkOutTime = data.checkOutTime;\n if (data.address !== undefined) this.address = data.address;\n if (data.latitude !== undefined) this.latitude = data.latitude;\n if (data.longitude !== undefined) this.longitude = data.longitude;\n if (data.appFeatures !== undefined) this.appFeatures = data.appFeatures;\n if (data.notifications !== undefined)\n this.notifications = data.notifications;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n }\n}\n\nObject.defineProperty(Property.prototype, \"schema\", {\n value: propertySchema,\n});\n\nObject.defineProperty(Property.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"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,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,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":[]}
|
|
@@ -13,6 +13,8 @@ class Ticket extends Entity {
|
|
|
13
13
|
if (data.type !== void 0) this.type = data.type;
|
|
14
14
|
if (data.number !== void 0) this.number = data.number;
|
|
15
15
|
if (data.issueId !== void 0) this.issueId = data.issueId;
|
|
16
|
+
if (data.parentAutomationId !== void 0)
|
|
17
|
+
this.parentAutomationId = data.parentAutomationId;
|
|
16
18
|
this.conversation = data.conversation;
|
|
17
19
|
if (data.subject !== void 0) this.subject = data.subject;
|
|
18
20
|
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":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;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;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
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":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;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,K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