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

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.
@@ -16,14 +16,16 @@ export type Date =
16
16
  */
17
17
  export interface Announcement {
18
18
  id?: string;
19
+ type?: "announcement";
19
20
  /**
20
21
  * @minItems 1
21
22
  */
22
23
  users?: [string, ...string[]];
24
+ group?: string;
23
25
  body?: string;
24
26
  media?: MediaFile;
25
27
  sentBy?: string;
26
- tag?: string;
28
+ tags?: string[];
27
29
  createdAt?: Date;
28
30
  updatedAt?: Date;
29
31
  }
@@ -28,7 +28,7 @@ export interface SMSMessage {
28
28
  | "receiving"
29
29
  | "received"
30
30
  | "read";
31
- body: string;
31
+ body?: string;
32
32
  driver?: string;
33
33
  appData?: {
34
34
  [k: string]: unknown;
@@ -16,6 +16,7 @@ export type Date =
16
16
  */
17
17
  export interface Ticket {
18
18
  id: string;
19
+ type?: "ticket";
19
20
  conversation: (
20
21
  | {
21
22
  [k: string]: unknown;
@@ -6,6 +6,11 @@
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "id": { "$ref": "definitions.json#/definitions/id" },
9
+ "type": {
10
+ "type": "string",
11
+ "enum": ["announcement"],
12
+ "default": "announcement"
13
+ },
9
14
  "users": {
10
15
  "type": "array",
11
16
  "items": {
@@ -13,6 +18,9 @@
13
18
  },
14
19
  "minItems": 1
15
20
  },
21
+ "group": {
22
+ "type": "string"
23
+ },
16
24
  "body": {
17
25
  "type": "string"
18
26
  },
@@ -22,8 +30,11 @@
22
30
  "sentBy": {
23
31
  "type": "string"
24
32
  },
25
- "tag": {
26
- "type": "string"
33
+ "tags": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string"
37
+ }
27
38
  },
28
39
  "createdAt": {
29
40
  "$ref": "definitions.json#/definitions/date"
@@ -3,7 +3,7 @@
3
3
  "$id": "smsMessage.json",
4
4
  "title": "SMS Message",
5
5
  "type": "object",
6
- "required": ["to", "from", "body", "status"],
6
+ "required": ["to", "from", "status"],
7
7
  "properties": {
8
8
  "id": {
9
9
  "$ref": "definitions.json#/definitions/id"
@@ -8,6 +8,11 @@
8
8
  "id": {
9
9
  "$ref": "definitions.json#/definitions/id"
10
10
  },
11
+ "type": {
12
+ "type": "string",
13
+ "enum": ["ticket"],
14
+ "default": "ticket"
15
+ },
11
16
  "conversation": {
12
17
  "type": "array",
13
18
  "default": [],
@@ -11235,6 +11235,11 @@ var require_ticket = __commonJS({
11235
11235
  id: {
11236
11236
  $ref: "definitions.json#/definitions/id"
11237
11237
  },
11238
+ type: {
11239
+ type: "string",
11240
+ enum: ["ticket"],
11241
+ default: "ticket"
11242
+ },
11238
11243
  conversation: {
11239
11244
  type: "array",
11240
11245
  default: [],
@@ -12391,7 +12396,7 @@ var require_smsMessage = __commonJS({
12391
12396
  $id: "smsMessage.json",
12392
12397
  title: "SMS Message",
12393
12398
  type: "object",
12394
- required: ["to", "from", "body", "status"],
12399
+ required: ["to", "from", "status"],
12395
12400
  properties: {
12396
12401
  id: {
12397
12402
  $ref: "definitions.json#/definitions/id"
@@ -12612,6 +12617,11 @@ var require_announcement = __commonJS({
12612
12617
  type: "object",
12613
12618
  properties: {
12614
12619
  id: { $ref: "definitions.json#/definitions/id" },
12620
+ type: {
12621
+ type: "string",
12622
+ enum: ["announcement"],
12623
+ default: "announcement"
12624
+ },
12615
12625
  users: {
12616
12626
  type: "array",
12617
12627
  items: {
@@ -12619,6 +12629,9 @@ var require_announcement = __commonJS({
12619
12629
  },
12620
12630
  minItems: 1
12621
12631
  },
12632
+ group: {
12633
+ type: "string"
12634
+ },
12622
12635
  body: {
12623
12636
  type: "string"
12624
12637
  },
@@ -12628,8 +12641,11 @@ var require_announcement = __commonJS({
12628
12641
  sentBy: {
12629
12642
  type: "string"
12630
12643
  },
12631
- tag: {
12632
- type: "string"
12644
+ tags: {
12645
+ type: "array",
12646
+ items: {
12647
+ type: "string"
12648
+ }
12633
12649
  },
12634
12650
  createdAt: {
12635
12651
  $ref: "definitions.json#/definitions/date"