@kohost/api-client 4.15.4 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/models/issue.cjs +0 -1
  2. package/dist/cjs/models/issue.cjs.map +1 -1
  3. package/dist/cjs/models/property.cjs +0 -1
  4. package/dist/cjs/models/property.cjs.map +1 -1
  5. package/dist/cjs/models/ticket.cjs +3 -5
  6. package/dist/cjs/models/ticket.cjs.map +1 -1
  7. package/dist/cjs/schemas/issue.cjs +0 -3
  8. package/dist/cjs/schemas/issue.cjs.map +1 -1
  9. package/dist/cjs/schemas/issue.d.cts +0 -3
  10. package/dist/cjs/schemas/property.cjs +0 -6
  11. package/dist/cjs/schemas/property.cjs.map +1 -1
  12. package/dist/cjs/schemas/property.d.cts +0 -6
  13. package/dist/cjs/schemas/ticket.cjs +33 -229
  14. package/dist/cjs/schemas/ticket.cjs.map +1 -1
  15. package/dist/cjs/schemas/ticket.d.cts +31 -238
  16. package/dist/cjs/schemas/user.cjs +0 -4
  17. package/dist/cjs/schemas/user.cjs.map +1 -1
  18. package/dist/cjs/schemas/user.d.cts +0 -4
  19. package/dist/cjs/validate.d.cts +9 -0
  20. package/dist/esm/models/issue.js +0 -1
  21. package/dist/esm/models/issue.js.map +1 -1
  22. package/dist/esm/models/property.js +0 -1
  23. package/dist/esm/models/property.js.map +1 -1
  24. package/dist/esm/models/ticket.js +3 -5
  25. package/dist/esm/models/ticket.js.map +1 -1
  26. package/dist/esm/schemas/issue.d.ts +0 -3
  27. package/dist/esm/schemas/issue.js +0 -3
  28. package/dist/esm/schemas/issue.js.map +1 -1
  29. package/dist/esm/schemas/property.d.ts +0 -6
  30. package/dist/esm/schemas/property.js +0 -6
  31. package/dist/esm/schemas/property.js.map +1 -1
  32. package/dist/esm/schemas/ticket.d.ts +31 -238
  33. package/dist/esm/schemas/ticket.js +33 -229
  34. package/dist/esm/schemas/ticket.js.map +1 -1
  35. package/dist/esm/schemas/user.d.ts +0 -4
  36. package/dist/esm/schemas/user.js +0 -4
  37. package/dist/esm/schemas/user.js.map +1 -1
  38. package/dist/esm/validate.d.ts +9 -0
  39. package/package.json +1 -1
@@ -34,7 +34,6 @@ class Issue extends import_entity.Entity {
34
34
  this.type = data.type;
35
35
  this.name = data.name;
36
36
  if (data.description !== void 0) this.description = data.description;
37
- if (data.department !== void 0) this.department = data.department;
38
37
  if (data.departmentId !== void 0) this.departmentId = data.departmentId;
39
38
  if (data.autoAssign !== void 0) this.autoAssign = data.autoAssign;
40
39
  if (data.notify !== void 0) this.notify = data.notify;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/issue.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIssue as validate } from \"../validate.js\";\nimport { issueSchema, type IssueSchema } from \"../schemas/issue.js\";\n\n/**\n * Data type for Issue constructor - exported for backwards compatibility\n */\nexport type IssueData = IssueSchema;\n\n/**\n * An issue associated with ticketing and concierge.\n */\nexport interface Issue extends IssueSchema {}\nexport class Issue extends Entity {\n declare schema: typeof issueSchema;\n declare validator: typeof validate;\n\n constructor(data: IssueSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n if (data.department !== undefined) this.department = data.department;\n if (data.departmentId !== undefined) this.departmentId = data.departmentId;\n if (data.autoAssign !== undefined) this.autoAssign = data.autoAssign;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.systemKey !== undefined) this.systemKey = data.systemKey;\n if (data.autoCreateTicket !== undefined)\n this.autoCreateTicket = data.autoCreateTicket;\n if (data.excludedResources !== undefined)\n this.excludedResources = data.excludedResources;\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(Issue.prototype, \"schema\", {\n value: issueSchema,\n});\n\nObject.defineProperty(Issue.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,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,sBAAsB;AAC7B,WAAK,oBAAoB,KAAK;AAChC,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"]}
1
+ {"version":3,"sources":["../../../.generated/models/issue.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIssue as validate } from \"../validate.js\";\nimport { issueSchema, type IssueSchema } from \"../schemas/issue.js\";\n\n/**\n * Data type for Issue constructor - exported for backwards compatibility\n */\nexport type IssueData = IssueSchema;\n\n/**\n * An issue associated with ticketing and concierge.\n */\nexport interface Issue extends IssueSchema {}\nexport class Issue extends Entity {\n declare schema: typeof issueSchema;\n declare validator: typeof validate;\n\n constructor(data: IssueSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n if (data.departmentId !== undefined) this.departmentId = data.departmentId;\n if (data.autoAssign !== undefined) this.autoAssign = data.autoAssign;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.systemKey !== undefined) this.systemKey = data.systemKey;\n if (data.autoCreateTicket !== undefined)\n this.autoCreateTicket = data.autoCreateTicket;\n if (data.excludedResources !== undefined)\n this.excludedResources = data.excludedResources;\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(Issue.prototype, \"schema\", {\n value: issueSchema,\n});\n\nObject.defineProperty(Issue.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,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,sBAAsB;AAC7B,WAAK,oBAAoB,KAAK;AAChC,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"]}
@@ -35,7 +35,6 @@ class Property extends import_entity.Entity {
35
35
  this.type = data.type;
36
36
  this.discriminator = data.discriminator;
37
37
  this.organization = data.organization;
38
- if (data.departments !== void 0) this.departments = data.departments;
39
38
  if (data.testModeEnabled !== void 0)
40
39
  this.testModeEnabled = data.testModeEnabled;
41
40
  if (data.testMode !== void 0) this.testMode = data.testMode;
@@ -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.departments !== undefined) this.departments = data.departments;\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,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,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.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"]}
@@ -36,21 +36,19 @@ class Ticket extends import_entity.Entity {
36
36
  if (data.issueId !== void 0) this.issueId = data.issueId;
37
37
  this.conversation = data.conversation;
38
38
  if (data.subject !== void 0) this.subject = data.subject;
39
- if (data.openedBy !== void 0) this.openedBy = data.openedBy;
39
+ this.openedBy = data.openedBy;
40
40
  this.requester = data.requester;
41
- if (data.assignedTo !== void 0) this.assignedTo = data.assignedTo;
41
+ this.assignedTo = data.assignedTo;
42
42
  if (data.notify !== void 0) this.notify = data.notify;
43
43
  if (data.collaborators !== void 0)
44
44
  this.collaborators = data.collaborators;
45
45
  if (data.location !== void 0) this.location = data.location;
46
46
  this.status = data.status;
47
- if (data.priority !== void 0) this.priority = data.priority;
47
+ this.priority = data.priority;
48
48
  this.tags = data.tags;
49
- if (data.department !== void 0) this.department = data.department;
50
49
  if (data.rating !== void 0) this.rating = data.rating;
51
50
  if (data.ratingComment !== void 0)
52
51
  this.ratingComment = data.ratingComment;
53
- if (data.tipAmount !== void 0) this.tipAmount = data.tipAmount;
54
52
  if (data.autoCloseAt !== void 0) this.autoCloseAt = data.autoCloseAt;
55
53
  if (data.scheduleDate !== void 0) this.scheduleDate = data.scheduleDate;
56
54
  this.createdAt = data.createdAt;
@@ -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 if (data.openedBy !== undefined) this.openedBy = data.openedBy;\n this.requester = data.requester;\n if (data.assignedTo !== undefined) 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 if (data.priority !== undefined) this.priority = data.priority;\n this.tags = data.tags;\n if (data.department !== undefined) this.department = data.department;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.tipAmount !== undefined) this.tipAmount = data.tipAmount;\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;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,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 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"]}
@@ -43,9 +43,6 @@ const issueSchema = {
43
43
  description: {
44
44
  type: "string"
45
45
  },
46
- department: {
47
- type: "string"
48
- },
49
46
  departmentId: {
50
47
  type: "string",
51
48
  description: "The ID of the department that this issue is associated with."
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/schemas/issue.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport { ticketSchema } from \"./ticket\";\n\nexport const issueSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"issue.json\",\n title: \"Issue\",\n description: \"An issue associated with ticketing and concierge.\",\n type: \"object\",\n required: [\"id\", \"type\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"issue\"],\n default: \"issue\",\n },\n name: {\n type: \"string\",\n },\n description: {\n type: \"string\",\n },\n department: {\n type: \"string\",\n },\n departmentId: {\n type: \"string\",\n description:\n \"The ID of the department that this issue is associated with.\",\n },\n autoAssign: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n userId: {\n type: \"string\",\n description: \"The user ID to assign tickets with this issue to.\",\n },\n vendorId: {\n type: \"string\",\n description: \"The vendor ID to assign tickets with this issue to.\",\n },\n priority: {\n $ref: \"ticket.json#/properties/priority\",\n description: \"The priority to assign tickets with this issue to.\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n notify: {\n type: \"array\",\n description: \"A list of entities to notify when this issue is triggered.\",\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 systemKey: {\n type: \"string\",\n },\n autoCreateTicket: {\n type: \"boolean\",\n default: true,\n },\n excludedResources: {\n type: \"array\",\n description:\n \"A list of resources that should not trigger notifications of this issue\",\n items: {\n type: \"string\",\n },\n default: [],\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 IssueSchema = FromSchema<\n typeof issueSchema,\n {\n references: [typeof defs, typeof ticketSchema];\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,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,OAAO;AAAA,MACd,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,aACE;AAAA,IACJ;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,UAAU;AAAA,UACR,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,UAAU;AAAA,UACR,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,CAAC;AAAA,MACV,OAAO;AAAA,QACL,MAAM;AAAA,QACN,UAAU,CAAC,MAAM,eAAe;AAAA,QAChC,sBAAsB;AAAA,QACtB,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,eAAe;AAAA,YACb,MAAM;AAAA,YACN,MAAM,CAAC,MAAM;AAAA,UACf;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,kBAAkB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,aACE;AAAA,MACF,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/schemas/issue.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport { ticketSchema } from \"./ticket\";\n\nexport const issueSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"issue.json\",\n title: \"Issue\",\n description: \"An issue associated with ticketing and concierge.\",\n type: \"object\",\n required: [\"id\", \"type\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"issue\"],\n default: \"issue\",\n },\n name: {\n type: \"string\",\n },\n description: {\n type: \"string\",\n },\n departmentId: {\n type: \"string\",\n description:\n \"The ID of the department that this issue is associated with.\",\n },\n autoAssign: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n userId: {\n type: \"string\",\n description: \"The user ID to assign tickets with this issue to.\",\n },\n vendorId: {\n type: \"string\",\n description: \"The vendor ID to assign tickets with this issue to.\",\n },\n priority: {\n $ref: \"ticket.json#/properties/priority\",\n description: \"The priority to assign tickets with this issue to.\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n notify: {\n type: \"array\",\n description: \"A list of entities to notify when this issue is triggered.\",\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 systemKey: {\n type: \"string\",\n },\n autoCreateTicket: {\n type: \"boolean\",\n default: true,\n },\n excludedResources: {\n type: \"array\",\n description:\n \"A list of resources that should not trigger notifications of this issue\",\n items: {\n type: \"string\",\n },\n default: [],\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 IssueSchema = FromSchema<\n typeof issueSchema,\n {\n references: [typeof defs, typeof ticketSchema];\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,cAAc;AAAA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AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,aACE;AAAA,MACF,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;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":[]}
@@ -26,9 +26,6 @@ declare const issueSchema: {
26
26
  readonly description: {
27
27
  readonly type: "string";
28
28
  };
29
- readonly department: {
30
- readonly type: "string";
31
- };
32
29
  readonly departmentId: {
33
30
  readonly type: "string";
34
31
  readonly description: "The ID of the department that this issue is associated with.";
@@ -47,12 +47,6 @@ const propertySchema = {
47
47
  type: "string",
48
48
  description: "Reference (id) to the organization that owns this property"
49
49
  },
50
- departments: {
51
- type: "array",
52
- items: {
53
- type: "string"
54
- }
55
- },
56
50
  testModeEnabled: {
57
51
  type: "boolean"
58
52
  },
@@ -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 departments: {\n type: \"array\",\n items: {\n type: \"string\",\n },\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,aAAa;AAAA,MACX,MAAM;AAAA,MACN,OAAO;A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AAA,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,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"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,UAClB,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,aACE;AAAA,QACJ;AAAA,QACA,0BAA0B;AAAA,UACxB,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,aACE;AAAA,QACJ;AAAA,MACF;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,UAAU,CAAC,oBAAoB,qBAAqB;AAAA,IACtD;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,MAAM;A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,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,aAAa,CAAC;AAAA,MAChB;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,KAAK;AAAA,UACH,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,OAAO;AAAA,UACL,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
@@ -28,12 +28,6 @@ declare const propertySchema: {
28
28
  readonly type: "string";
29
29
  readonly description: "Reference (id) to the organization that owns this property";
30
30
  };
31
- readonly departments: {
32
- readonly type: "array";
33
- readonly items: {
34
- readonly type: "string";
35
- };
36
- };
37
31
  readonly testModeEnabled: {
38
32
  readonly type: "boolean";
39
33
  };
@@ -30,7 +30,10 @@ const ticketSchema = {
30
30
  "id",
31
31
  "conversation",
32
32
  "requester",
33
+ "openedBy",
34
+ "assignedTo",
33
35
  "status",
36
+ "priority",
34
37
  "tags",
35
38
  "createdAt",
36
39
  "updatedAt"
@@ -60,7 +63,7 @@ const ticketSchema = {
60
63
  items: {
61
64
  type: "object",
62
65
  additionalProperties: false,
63
- required: ["id", "discriminator", "timestamp", "body"],
66
+ required: ["id", "discriminator", "timestamp", "body", "author"],
64
67
  properties: {
65
68
  id: {
66
69
  type: "string",
@@ -85,60 +88,25 @@ const ticketSchema = {
85
88
  default: "message",
86
89
  description: "The discriminator of the message."
87
90
  },
88
- authorId: {
89
- type: "string",
90
- description: "The ID of the author of the message."
91
- },
92
- authorName: {
93
- type: "string",
94
- description: "The name of the author of the message."
95
- },
96
- authorDiscriminator: {
97
- type: "string",
98
- enum: ["user", "vendor", "system"],
99
- description: "The discriminator of the author of the message."
100
- },
101
- /**
102
- * @deprecated - use authorId instead.
103
- */
104
- userId: {
105
- type: "string",
106
- description: "@deprecated - use authorId instead. The ID of the user who sent the message."
107
- },
108
- /**
109
- * @deprecated - use authorName instead.
110
- */
111
- userName: {
112
- type: "string",
113
- description: "@deprecated - use authorName instead. The name of the user who sent the message."
114
- },
115
- /**
116
- * @deprecated - use authorId instead.
117
- */
118
- vendorId: {
119
- type: "string",
120
- description: "@deprecated - use authorId instead. The ID of the vendor who sent the message."
121
- },
122
- /**
123
- * @deprecated - use authorName instead.
124
- */
125
- vendorName: {
126
- type: "string",
127
- description: "@deprecated - use authorName instead. The name of the vendor who sent the message."
128
- },
129
- /**
130
- * @deprecated - use authorId instead.
131
- */
132
- systemId: {
133
- type: "string",
134
- description: "@deprecated - use authorId instead. The ID of the system who sent the message."
135
- },
136
- /**
137
- * @deprecated - use authorName instead.
138
- */
139
- systemName: {
140
- type: "string",
141
- description: "@deprecated - use authorName instead. The name of the system who sent the message."
91
+ author: {
92
+ type: "object",
93
+ additionalProperties: false,
94
+ required: ["id", "discriminator", "name"],
95
+ properties: {
96
+ id: {
97
+ type: "string",
98
+ description: "The ID of the author of the message."
99
+ },
100
+ discriminator: {
101
+ type: "string",
102
+ enum: ["user", "vendor", "system"],
103
+ description: "The discriminator of the author of the message."
104
+ },
105
+ name: {
106
+ type: "string",
107
+ description: "The name of the author of the message."
108
+ }
109
+ }
142
110
  },
143
111
  timestamp: {
144
112
  $ref: "definitions.json#/definitions/date",
@@ -218,6 +186,8 @@ const ticketSchema = {
218
186
  },
219
187
  openedBy: {
220
188
  type: "object",
189
+ additionalProperties: false,
190
+ required: ["id", "discriminator", "name"],
221
191
  properties: {
222
192
  id: {
223
193
  type: "string"
@@ -228,39 +198,13 @@ const ticketSchema = {
228
198
  },
229
199
  name: {
230
200
  type: "string"
231
- },
232
- /**
233
- * @deprecated - use id instead.
234
- */
235
- userId: {
236
- type: "string",
237
- description: "@deprecated - use id instead. The ID of the user who opened the ticket."
238
- },
239
- /**
240
- * @deprecated - use name instead.
241
- */
242
- userName: {
243
- type: "string",
244
- description: "@deprecated - use name instead. The name of the user who opened the ticket."
245
- },
246
- /**
247
- * @deprecated - use id instead.
248
- */
249
- systemId: {
250
- type: "string",
251
- description: "@deprecated - use id instead. The ID of the system who opened the ticket."
252
- },
253
- /**
254
- * @deprecated - use name instead.
255
- */
256
- systemName: {
257
- type: "string",
258
- description: "@deprecated - use name instead. The name of the system who opened the ticket."
259
201
  }
260
202
  }
261
203
  },
262
204
  requester: {
263
205
  type: "object",
206
+ additionalProperties: false,
207
+ required: ["id", "discriminator", "name"],
264
208
  properties: {
265
209
  id: {
266
210
  type: "string",
@@ -282,95 +226,14 @@ const ticketSchema = {
282
226
  { type: "string" }
283
227
  ],
284
228
  description: "The photo of the requester."
285
- },
286
- /**
287
- * @deprecated - use id instead.
288
- */
289
- systemId: {
290
- type: "string",
291
- description: "@deprecated - use id instead. The ID of the system who requested the ticket."
292
- },
293
- /**
294
- * @deprecated - use name instead.
295
- */
296
- systemName: {
297
- type: "string",
298
- description: "@deprecated - use name instead. The name of the system who requested the ticket."
299
- },
300
- /**
301
- * @deprecated - use photo instead.
302
- */
303
- systemPhoto: {
304
- anyOf: [
305
- { $ref: "mediaFile.json" },
306
- { type: "null" },
307
- { type: "string" }
308
- ],
309
- description: "@deprecated - use photo instead. The photo of the system who requested the ticket."
310
- },
311
- /**
312
- * @deprecated - use id instead.
313
- */
314
- userId: {
315
- type: "string",
316
- description: "@deprecated - use id instead. The ID of the user who requested the ticket."
317
- },
318
- /**
319
- * @deprecated - use name instead.
320
- */
321
- userName: {
322
- type: "string",
323
- description: "@deprecated - use name instead. The name of the user who requested the ticket."
324
- },
325
- /**
326
- * @deprecated - use photo instead.
327
- */
328
- userPhoto: {
329
- anyOf: [
330
- { $ref: "mediaFile.json" },
331
- { type: "null" },
332
- { type: "string" }
333
- ],
334
- description: "@deprecated - use photo instead. The photo of the user who requested the ticket."
335
- },
336
- /**
337
- * @deprecated - use id instead.
338
- */
339
- deviceId: {
340
- type: "string"
341
- },
342
- /**
343
- * @deprecated - This will be removed in a future version.
344
- */
345
- roomId: {
346
- type: "string",
347
- description: "@deprecated - This will be removed in a future version. The ID of the room who requested the ticket."
348
- },
349
- /**
350
- * @deprecated - This will be removed in a future version.
351
- */
352
- reservationId: {
353
- type: "string",
354
- description: "@deprecated - This will be removed in a future version. The ID of the reservation who requested the ticket."
355
- },
356
- /**
357
- * @deprecated - This will be removed in a future version.
358
- */
359
- spaceId: {
360
- type: "string",
361
- description: "@deprecated - This will be removed in a future version. The ID of the space who requested the ticket."
362
- },
363
- /**
364
- * @deprecated - This will be removed in a future version.
365
- */
366
- spaceName: {
367
- type: "string",
368
- description: "@deprecated - This will be removed in a future version. The name of the space who requested the ticket."
369
229
  }
370
230
  }
371
231
  },
372
232
  assignedTo: {
373
- type: "object",
233
+ type: ["object", "null"],
234
+ default: null,
235
+ additionalProperties: false,
236
+ required: ["id", "discriminator", "name"],
374
237
  properties: {
375
238
  id: {
376
239
  type: "string",
@@ -392,55 +255,6 @@ const ticketSchema = {
392
255
  { type: "string" }
393
256
  ],
394
257
  description: "The photo of the assigned to."
395
- },
396
- /**
397
- * @deprecated - use id instead.
398
- */
399
- userId: {
400
- type: "string",
401
- description: "@deprecated - use id instead. The ID of the user who assigned the ticket."
402
- },
403
- /**
404
- * @deprecated - use name instead.
405
- */
406
- userName: {
407
- type: "string",
408
- description: "@deprecated - use name instead. The name of the user who assigned the ticket."
409
- },
410
- /**
411
- * @deprecated - use photo instead.
412
- */
413
- userPhoto: {
414
- anyOf: [
415
- { $ref: "mediaFile.json" },
416
- { type: "null" },
417
- { type: "string" }
418
- ]
419
- },
420
- /**
421
- * @deprecated - use id instead.
422
- */
423
- vendorId: {
424
- type: "string",
425
- description: "@deprecated - use id instead. The ID of the vendor who assigned the ticket."
426
- },
427
- /**
428
- * @deprecated - use name instead.
429
- */
430
- vendorName: {
431
- type: "string",
432
- description: "@deprecated - use name instead. The name of the vendor who assigned the ticket."
433
- },
434
- /**
435
- * @deprecated - use photo instead.
436
- */
437
- vendorPhoto: {
438
- anyOf: [
439
- { $ref: "mediaFile.json" },
440
- { type: "null" },
441
- { type: "string" }
442
- ],
443
- description: "@deprecated - use photo instead. The photo of the vendor who assigned the ticket."
444
258
  }
445
259
  }
446
260
  },
@@ -496,7 +310,7 @@ const ticketSchema = {
496
310
  },
497
311
  discriminator: {
498
312
  type: "string",
499
- enum: ["space", "room", "property", "customText"]
313
+ enum: ["space", "property", "customText"]
500
314
  },
501
315
  name: {
502
316
  type: "string"
@@ -510,7 +324,7 @@ const ticketSchema = {
510
324
  },
511
325
  priority: {
512
326
  type: "string",
513
- enum: ["low", "normal", "high"],
327
+ enum: ["low", "normal", "high", "critical"],
514
328
  default: "normal"
515
329
  },
516
330
  tags: {
@@ -520,9 +334,6 @@ const ticketSchema = {
520
334
  type: "string"
521
335
  }
522
336
  },
523
- department: {
524
- type: "string"
525
- },
526
337
  rating: {
527
338
  type: "number",
528
339
  minimum: 0,
@@ -531,13 +342,6 @@ const ticketSchema = {
531
342
  ratingComment: {
532
343
  type: "string"
533
344
  },
534
- /**
535
- * @deprecated - This will be removed in a future version.
536
- */
537
- tipAmount: {
538
- type: "string",
539
- description: "@deprecated - This will be removed in a future version. The amount of the tip."
540
- },
541
345
  autoCloseAt: {
542
346
  $ref: "definitions.json#/definitions/date"
543
347
  },