@kohost/api-client 3.0.0-beta.41 → 3.0.0-beta.43

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.
@@ -7478,6 +7478,7 @@ var require_common = __commonJS({
7478
7478
  "lg",
7479
7479
  "lirc",
7480
7480
  "mews",
7481
+ "paxton",
7481
7482
  "pelican-wireless",
7482
7483
  "rebrandly",
7483
7484
  "salto",
@@ -7485,7 +7486,9 @@ var require_common = __commonJS({
7485
7486
  "se",
7486
7487
  "sendgrid",
7487
7488
  "stay-n-touch",
7488
- "twilio"
7489
+ "twilio",
7490
+ "cloudflare-images",
7491
+ "cloudflare-stream"
7489
7492
  ]
7490
7493
  }
7491
7494
  }
@@ -8268,6 +8271,9 @@ var require_lock = __commonJS({
8268
8271
  type: {
8269
8272
  $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
8270
8273
  },
8274
+ offline: {
8275
+ type: "boolean"
8276
+ },
8271
8277
  supportedNotifications: {
8272
8278
  $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
8273
8279
  },
@@ -9301,7 +9307,7 @@ var require_camera = __commonJS({
9301
9307
  driver: {
9302
9308
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
9303
9309
  },
9304
- streams: {
9310
+ liveStreams: {
9305
9311
  type: "object",
9306
9312
  additionalProperties: false,
9307
9313
  properties: {
@@ -9450,6 +9456,9 @@ var require_mediaSource = __commonJS({
9450
9456
  "uncontrolledDevice"
9451
9457
  ]
9452
9458
  },
9459
+ name: {
9460
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/name"
9461
+ },
9453
9462
  driver: {
9454
9463
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
9455
9464
  },
@@ -10907,13 +10916,14 @@ var require_reservation = __commonJS({
10907
10916
  properties: {
10908
10917
  date: {
10909
10918
  type: "string",
10910
- format: "date"
10919
+ format: "date-time"
10911
10920
  },
10912
10921
  amount: {
10913
10922
  type: "number"
10914
10923
  },
10915
10924
  type: {
10916
- type: "string"
10925
+ type: "string",
10926
+ enum: ["service", "product"]
10917
10927
  }
10918
10928
  }
10919
10929
  }
@@ -13739,7 +13749,7 @@ var require_product = __commonJS({
13739
13749
  $id: "https://api.kohost.io/schemas/v3/product.json",
13740
13750
  title: "Product",
13741
13751
  type: "object",
13742
- required: ["name", "price", "currency", "driver"],
13752
+ required: ["name", "price", "driver"],
13743
13753
  properties: {
13744
13754
  id: {
13745
13755
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
@@ -13759,15 +13769,12 @@ var require_product = __commonJS({
13759
13769
  price: {
13760
13770
  type: "number"
13761
13771
  },
13762
- currency: {
13763
- type: "string",
13764
- description: "ISO 4217 format",
13765
- minLength: 3,
13766
- maxLength: 3
13767
- },
13768
13772
  image: {
13769
13773
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/file"
13770
13774
  },
13775
+ category: {
13776
+ type: "string"
13777
+ },
13771
13778
  imageUrl: {
13772
13779
  format: "uri",
13773
13780
  pattern: "^https?://"
@@ -14287,6 +14294,9 @@ var require_smsMessage = __commonJS({
14287
14294
  driver: {
14288
14295
  type: "string"
14289
14296
  },
14297
+ appData: {
14298
+ type: "object"
14299
+ },
14290
14300
  createdAt: {
14291
14301
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/date"
14292
14302
  },
@@ -14330,6 +14340,112 @@ var require_smsMessage2 = __commonJS({
14330
14340
  }
14331
14341
  });
14332
14342
 
14343
+ // src/schemas/emailMessage.json
14344
+ var require_emailMessage = __commonJS({
14345
+ "src/schemas/emailMessage.json"(exports, module) {
14346
+ module.exports = {
14347
+ $schema: "http://json-schema.org/draft-07/schema",
14348
+ $id: "https://api.kohost.io/schemas/v3/emailMessage.json",
14349
+ title: "Email Message",
14350
+ type: "object",
14351
+ required: ["to", "from", "status", "subject"],
14352
+ properties: {
14353
+ id: {
14354
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
14355
+ },
14356
+ type: {
14357
+ type: "string",
14358
+ default: "emailMessage"
14359
+ },
14360
+ to: {
14361
+ type: "string",
14362
+ pattern: "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
14363
+ },
14364
+ from: {
14365
+ type: "string",
14366
+ pattern: ".*<[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+>.*",
14367
+ description: "Must be in the format of 'Sender <email@example.com>"
14368
+ },
14369
+ subject: {
14370
+ type: "string"
14371
+ },
14372
+ status: {
14373
+ type: "string",
14374
+ enum: [
14375
+ "queued",
14376
+ "sending",
14377
+ "sent",
14378
+ "deferred",
14379
+ "delivered",
14380
+ "undelivered",
14381
+ "bounced",
14382
+ "blocked",
14383
+ "receiving",
14384
+ "received",
14385
+ "opened",
14386
+ "clicked",
14387
+ "unsubscribed",
14388
+ "spamReport"
14389
+ ]
14390
+ },
14391
+ statusMessage: {
14392
+ type: "string"
14393
+ },
14394
+ html: {
14395
+ type: "string"
14396
+ },
14397
+ text: {
14398
+ type: "string"
14399
+ },
14400
+ driver: {
14401
+ type: "string"
14402
+ },
14403
+ appData: {
14404
+ type: "object"
14405
+ },
14406
+ createdAt: {
14407
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/date"
14408
+ },
14409
+ updatedAt: {
14410
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/date"
14411
+ },
14412
+ systemData: {
14413
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
14414
+ }
14415
+ }
14416
+ };
14417
+ }
14418
+ });
14419
+
14420
+ // src/Models/emailMessage.js
14421
+ var require_emailMessage2 = __commonJS({
14422
+ "src/Models/emailMessage.js"(exports, module) {
14423
+ var schemas = require_schema();
14424
+ var schema = require_emailMessage();
14425
+ var Kohost = require_kohost();
14426
+ schemas.add(schema);
14427
+ var validator = schemas.compile(schema);
14428
+ var EmailMessage = class extends Kohost {
14429
+ constructor(data) {
14430
+ super(data);
14431
+ }
14432
+ };
14433
+ __name(EmailMessage, "EmailMessage");
14434
+ Object.defineProperty(EmailMessage.prototype, "schema", {
14435
+ value: schema
14436
+ });
14437
+ Object.defineProperty(EmailMessage.prototype, "validator", {
14438
+ get: function() {
14439
+ return validator;
14440
+ }
14441
+ });
14442
+ Object.defineProperty(EmailMessage, "validProperties", {
14443
+ value: Object.keys(schema.properties)
14444
+ });
14445
+ module.exports = EmailMessage;
14446
+ }
14447
+ });
14448
+
14333
14449
  // src/schemas/property.json
14334
14450
  var require_property = __commonJS({
14335
14451
  "src/schemas/property.json"(exports, module) {
@@ -14499,7 +14615,21 @@ var require_property = __commonJS({
14499
14615
  type: "object",
14500
14616
  properties: {
14501
14617
  RoomControl: {},
14502
- CheckIn: {},
14618
+ CheckIn: {
14619
+ properties: {
14620
+ payment: {},
14621
+ identification: {},
14622
+ earlyCheckIn: {
14623
+ properties: {
14624
+ dynamic: {
14625
+ type: "boolean",
14626
+ default: false
14627
+ }
14628
+ }
14629
+ },
14630
+ roomUpgrades: {}
14631
+ }
14632
+ },
14503
14633
  CheckOut: {},
14504
14634
  Concierge: {},
14505
14635
  DigitalKey: {
@@ -14686,6 +14816,7 @@ var require_Models = __commonJS({
14686
14816
  var EnergyReportShard = require_energyReportShard2();
14687
14817
  var EnergyReport = require_energyReport2();
14688
14818
  var SMSMessage = require_smsMessage2();
14819
+ var EmailMessage = require_emailMessage2();
14689
14820
  var Property = require_property2();
14690
14821
  var Organization = require_organization2();
14691
14822
  module.exports = {
@@ -14718,6 +14849,7 @@ var require_Models = __commonJS({
14718
14849
  EnergyReportShard,
14719
14850
  EnergyReport,
14720
14851
  SMSMessage,
14852
+ EmailMessage,
14721
14853
  MediaFile
14722
14854
  };
14723
14855
  }