@kohost/api-client 3.0.0-beta.89 → 3.0.0-beta.90

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.
@@ -12601,75 +12601,82 @@ var require_EmailMessage = __commonJS({
12601
12601
  }
12602
12602
  });
12603
12603
 
12604
- // src/schemas/notification.json
12605
- var require_notification = __commonJS({
12606
- "src/schemas/notification.json"(exports, module) {
12604
+ // src/schemas/announcement.json
12605
+ var require_announcement = __commonJS({
12606
+ "src/schemas/announcement.json"(exports, module) {
12607
12607
  module.exports = {
12608
12608
  $schema: "http://json-schema.org/draft-07/schema",
12609
- $id: "notification.json",
12610
- "title ": "Notification",
12611
- description: "Notification sent to users",
12609
+ $id: "announcement.json",
12610
+ title: "Announcement",
12611
+ description: "Announcement message sent to users",
12612
12612
  type: "object",
12613
12613
  properties: {
12614
12614
  id: { $ref: "definitions.json#/definitions/id" },
12615
- title: {
12616
- type: "string",
12617
- maxLength: 30
12615
+ users: {
12616
+ type: "array",
12617
+ items: {
12618
+ type: "string"
12619
+ },
12620
+ minItems: 1
12618
12621
  },
12619
12622
  body: {
12620
- type: "string",
12621
- maxLength: 85
12623
+ type: "string"
12622
12624
  },
12623
- image: {
12625
+ media: {
12624
12626
  $ref: "mediaFile.json"
12625
12627
  },
12628
+ sentBy: {
12629
+ type: "string"
12630
+ },
12626
12631
  tag: {
12627
12632
  type: "string"
12628
12633
  },
12629
12634
  createdAt: {
12630
12635
  $ref: "definitions.json#/definitions/date"
12636
+ },
12637
+ updatedAt: {
12638
+ $ref: "definitions.json#/definitions/date"
12631
12639
  }
12632
12640
  },
12633
- required: ["title", "body"],
12634
12641
  additionalProperties: false
12635
12642
  };
12636
12643
  }
12637
12644
  });
12638
12645
 
12639
- // src/Models/Notification.js
12640
- var require_Notification = __commonJS({
12641
- "src/Models/Notification.js"(exports, module) {
12646
+ // src/Models/Announcement.js
12647
+ var require_Announcement = __commonJS({
12648
+ "src/Models/Announcement.js"(exports, module) {
12642
12649
  var schemas = require_schema();
12643
- var schema = require_notification();
12650
+ var schema = require_announcement();
12644
12651
  var Kohost = require_Kohost();
12645
12652
  schemas.add(schema);
12646
12653
  var validator = schemas.compile(schema);
12647
- var Notification = class extends Kohost {
12654
+ var Announcement = class extends Kohost {
12648
12655
  static {
12649
- __name(this, "Notification");
12656
+ __name(this, "Announcement");
12650
12657
  }
12651
12658
  /**
12652
- * @typedef {import("../schemas/NotificationSchema").Notification} NotificationType
12653
- * Create a Notification instance.
12659
+ * @typedef {import("../schemas/AnnouncementSchema").Announcement} AnnouncementType
12660
+ * Create a Announcement instance.
12654
12661
  * @constructor
12655
- * @param {NotificationType} property - The property object of type Notification.
12662
+ * @param {AnnouncementType} property - The property object of type Announcement.
12656
12663
  */
12657
- constructor(notification) {
12658
- super(notification);
12664
+ constructor(announcement) {
12665
+ super(announcement);
12659
12666
  }
12660
12667
  };
12661
- Object.defineProperty(Notification.prototype, "schema", {
12668
+ Object.defineProperty(Announcement.prototype, "schema", {
12662
12669
  value: schema
12663
12670
  });
12664
- Object.defineProperty(Notification.prototype, "validator", {
12671
+ Object.defineProperty(Announcement.prototype, "validator", {
12665
12672
  get: function() {
12666
12673
  return validator;
12667
12674
  }
12668
12675
  });
12669
- Object.defineProperty(Notification, "validProperties", {
12676
+ Object.defineProperty(Announcement, "validProperties", {
12670
12677
  value: Object.keys(schema.properties)
12671
12678
  });
12672
- module.exports = Notification;
12679
+ module.exports = Announcement;
12673
12680
  }
12674
12681
  });
12675
12682
 
@@ -13178,7 +13185,7 @@ var require_Models = __commonJS({
13178
13185
  var EnergyReport = require_EnergyReport();
13179
13186
  var SMSMessage = require_SmsMessage();
13180
13187
  var EmailMessage = require_EmailMessage();
13181
- var Notification = require_Notification();
13188
+ var Announcement = require_Announcement();
13182
13189
  var Property = require_Property();
13183
13190
  var Organization = require_Organization();
13184
13191
  module.exports = {
@@ -13214,7 +13221,7 @@ var require_Models = __commonJS({
13214
13221
  SMSMessage,
13215
13222
  EmailMessage,
13216
13223
  Order,
13217
- Notification
13224
+ Announcement
13218
13225
  };
13219
13226
  }
13220
13227
  });