@kohost/api-client 3.8.3 → 3.9.1

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.
@@ -11272,6 +11272,12 @@ var require_ticket = __commonJS({
11272
11272
  userName: {
11273
11273
  type: "string"
11274
11274
  },
11275
+ vendorId: {
11276
+ type: "string"
11277
+ },
11278
+ vendorName: {
11279
+ type: "string"
11280
+ },
11275
11281
  systemId: {
11276
11282
  type: "string"
11277
11283
  },
@@ -11301,6 +11307,9 @@ var require_ticket = __commonJS({
11301
11307
  },
11302
11308
  {
11303
11309
  required: ["id", "systemId", "timestamp", "body"]
11310
+ },
11311
+ {
11312
+ required: ["id", "vendorId", "timestamp", "body"]
11304
11313
  }
11305
11314
  ]
11306
11315
  }
@@ -11377,6 +11386,19 @@ var require_ticket = __commonJS({
11377
11386
  { type: "null" },
11378
11387
  { type: "string" }
11379
11388
  ]
11389
+ },
11390
+ vendorId: {
11391
+ type: "string"
11392
+ },
11393
+ vendorName: {
11394
+ type: "string"
11395
+ },
11396
+ vendorPhoto: {
11397
+ anyOf: [
11398
+ { $ref: "mediaFile.json" },
11399
+ { type: "null" },
11400
+ { type: "string" }
11401
+ ]
11380
11402
  }
11381
11403
  }
11382
11404
  },
@@ -12995,6 +13017,9 @@ var require_issue = __commonJS({
12995
13017
  userId: {
12996
13018
  type: "string"
12997
13019
  },
13020
+ vendorId: {
13021
+ type: "string"
13022
+ },
12998
13023
  priority: {
12999
13024
  $ref: "ticket.json#/properties/priority"
13000
13025
  },
@@ -13005,6 +13030,9 @@ var require_issue = __commonJS({
13005
13030
  }
13006
13031
  }
13007
13032
  }
13033
+ },
13034
+ systemKey: {
13035
+ type: "string"
13008
13036
  }
13009
13037
  },
13010
13038
  required: ["id", "type", "name", "department"]
@@ -13049,6 +13077,89 @@ var require_Issue = __commonJS({
13049
13077
  }
13050
13078
  });
13051
13079
 
13080
+ // src/schemas/vendor.json
13081
+ var require_vendor = __commonJS({
13082
+ "src/schemas/vendor.json"(exports, module) {
13083
+ module.exports = {
13084
+ $schema: "http://json-schema.org/draft-07/schema",
13085
+ $id: "vendor.json",
13086
+ title: "Vendor",
13087
+ type: "object",
13088
+ required: ["name", "email"],
13089
+ properties: {
13090
+ id: {
13091
+ $ref: "definitions.json#/definitions/id"
13092
+ },
13093
+ type: {
13094
+ type: "string",
13095
+ default: "vendor",
13096
+ enum: ["vendor"]
13097
+ },
13098
+ name: {
13099
+ type: "string"
13100
+ },
13101
+ phone: {
13102
+ type: ["string", "null"],
13103
+ pattern: "^\\+[0-9]{1,14}$"
13104
+ },
13105
+ email: {
13106
+ type: ["string", "null"],
13107
+ format: "email"
13108
+ },
13109
+ address: {
13110
+ $ref: "definitions.json#/definitions/address"
13111
+ },
13112
+ photo: {
13113
+ $ref: "mediaFile.json#"
13114
+ },
13115
+ createdAt: {
13116
+ $ref: "definitions.json#/definitions/createdAt"
13117
+ },
13118
+ updatedAt: {
13119
+ $ref: "definitions.json#/definitions/updatedAt"
13120
+ }
13121
+ }
13122
+ };
13123
+ }
13124
+ });
13125
+
13126
+ // src/Models/Vendor.js
13127
+ var require_Vendor = __commonJS({
13128
+ "src/Models/Vendor.js"(exports, module) {
13129
+ var schemas = require_schema();
13130
+ var schema = require_vendor();
13131
+ var Entity = require_Entity();
13132
+ schemas.add(schema);
13133
+ var validator = schemas.compile(schema);
13134
+ var Vendor = class extends Entity {
13135
+ static {
13136
+ __name(this, "Vendor");
13137
+ }
13138
+ /**
13139
+ * @typedef {import("../schemas/VendorSchema").Vendor} VendorType
13140
+ * Create a Product instance.
13141
+ * @constructor
13142
+ * @param {Vendor} vendor - The vendor object of type Vendor.
13143
+ */
13144
+ constructor(vendor) {
13145
+ super(vendor);
13146
+ }
13147
+ };
13148
+ Object.defineProperty(Vendor.prototype, "schema", {
13149
+ value: schema
13150
+ });
13151
+ Object.defineProperty(Vendor.prototype, "validator", {
13152
+ get: /* @__PURE__ */ __name(function() {
13153
+ return validator;
13154
+ }, "get")
13155
+ });
13156
+ Object.defineProperty(Vendor, "validProperties", {
13157
+ value: Object.keys(schema.properties)
13158
+ });
13159
+ module.exports = Vendor;
13160
+ }
13161
+ });
13162
+
13052
13163
  // src/schemas/property.json
13053
13164
  var require_property = __commonJS({
13054
13165
  "src/schemas/property.json"(exports, module) {
@@ -13755,6 +13866,7 @@ var require_Models = __commonJS({
13755
13866
  var Announcement = require_Announcement();
13756
13867
  var TimeSheet = require_TimeSheet();
13757
13868
  var Issue = require_Issue();
13869
+ var Vendor = require_Vendor();
13758
13870
  var Property = require_Property();
13759
13871
  var Organization = require_Organization();
13760
13872
  var Entity = require_Entity();
@@ -13796,7 +13908,8 @@ var require_Models = __commonJS({
13796
13908
  Announcement,
13797
13909
  TimeSheet,
13798
13910
  Policy,
13799
- Issue
13911
+ Issue,
13912
+ Vendor
13800
13913
  };
13801
13914
  }
13802
13915
  });