@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.
- package/dist/cjs/schemas/AnnouncementSchema.d.ts +3 -1
- package/dist/cjs/schemas/SmsMessageSchema.d.ts +1 -1
- package/dist/cjs/schemas/TicketSchema.d.ts +1 -0
- package/dist/cjs/schemas/announcement.json +13 -2
- package/dist/cjs/schemas/smsMessage.json +1 -1
- package/dist/cjs/schemas/ticket.json +5 -0
- package/dist/esm/Models.js +19 -3
- package/dist/esm/Models.js.map +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
28
|
+
tags?: string[];
|
|
27
29
|
createdAt?: Date;
|
|
28
30
|
updatedAt?: Date;
|
|
29
31
|
}
|
|
@@ -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
|
-
"
|
|
26
|
-
"type": "
|
|
33
|
+
"tags": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
27
38
|
},
|
|
28
39
|
"createdAt": {
|
|
29
40
|
"$ref": "definitions.json#/definitions/date"
|
package/dist/esm/Models.js
CHANGED
|
@@ -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", "
|
|
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
|
-
|
|
12632
|
-
type: "
|
|
12644
|
+
tags: {
|
|
12645
|
+
type: "array",
|
|
12646
|
+
items: {
|
|
12647
|
+
type: "string"
|
|
12648
|
+
}
|
|
12633
12649
|
},
|
|
12634
12650
|
createdAt: {
|
|
12635
12651
|
$ref: "definitions.json#/definitions/date"
|