@kohost/api-client 3.0.0-beta.84 → 3.0.0-beta.86
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/CredentialSchema.d.ts +2 -1
- package/dist/cjs/schemas/DimmerSchema.d.ts +1 -2
- package/dist/cjs/schemas/ReservationSchema.d.ts +1 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +1 -2
- package/dist/cjs/schemas/SceneSchema.d.ts +1 -1
- package/dist/cjs/schemas/SystemUserSchema.d.ts +1 -0
- package/dist/cjs/schemas/TicketSchema.d.ts +12 -16
- package/dist/cjs/schemas/UserSchema.d.ts +1 -0
- package/dist/cjs/schemas/credential.json +1 -1
- package/dist/cjs/schemas/definitions.json +3 -0
- package/dist/cjs/schemas/dimmer.json +1 -4
- package/dist/cjs/schemas/ticket.json +17 -1
- package/dist/esm/Models.js +21 -6
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +3 -0
- package/dist/esm/utils.js.map +2 -2
- package/package.json +1 -1
|
@@ -109,7 +109,6 @@ export interface Dimmer {
|
|
|
109
109
|
| "discPlayer"
|
|
110
110
|
| "mediaPlayer"
|
|
111
111
|
| "uncontrolledDevice";
|
|
112
|
-
subType?: string | null;
|
|
113
112
|
supportedNotifications?: SupportedNotifications;
|
|
114
113
|
notification?: Notification;
|
|
115
114
|
driver:
|
|
@@ -141,7 +140,7 @@ export interface Dimmer {
|
|
|
141
140
|
| "cloudflare-stream"
|
|
142
141
|
| "insperia-privacy";
|
|
143
142
|
offline?: boolean;
|
|
144
|
-
level: number;
|
|
143
|
+
level: number | null;
|
|
145
144
|
systemId?: string;
|
|
146
145
|
watts?: number;
|
|
147
146
|
[k: string]: unknown;
|
|
@@ -140,7 +140,6 @@ export interface Dimmer {
|
|
|
140
140
|
| "discPlayer"
|
|
141
141
|
| "mediaPlayer"
|
|
142
142
|
| "uncontrolledDevice";
|
|
143
|
-
subType?: string | null;
|
|
144
143
|
supportedNotifications?: SupportedNotifications;
|
|
145
144
|
notification?: Notification;
|
|
146
145
|
driver:
|
|
@@ -172,7 +171,7 @@ export interface Dimmer {
|
|
|
172
171
|
| "cloudflare-stream"
|
|
173
172
|
| "insperia-privacy";
|
|
174
173
|
offline?: boolean;
|
|
175
|
-
level: number;
|
|
174
|
+
level: number | null;
|
|
176
175
|
systemId?: string;
|
|
177
176
|
watts?: number;
|
|
178
177
|
[k: string]: unknown;
|
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export type CreatedAt =
|
|
9
|
-
| string
|
|
10
|
-
| {
|
|
11
|
-
[k: string]: unknown;
|
|
12
|
-
};
|
|
13
8
|
export type Date =
|
|
14
9
|
| string
|
|
15
10
|
| {
|
|
@@ -21,17 +16,18 @@ export type Date =
|
|
|
21
16
|
*/
|
|
22
17
|
export interface Ticket {
|
|
23
18
|
id: string;
|
|
24
|
-
conversation:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
conversation: (
|
|
20
|
+
| {
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
| {
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
)[];
|
|
27
|
+
openedBy?: {
|
|
28
|
+
userId?: string;
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
};
|
|
35
31
|
requester: {
|
|
36
32
|
systemId?: string;
|
|
37
33
|
systemName?: string;
|
|
@@ -14,9 +14,6 @@
|
|
|
14
14
|
"type": {
|
|
15
15
|
"$ref": "definitions.json#/definitions/type"
|
|
16
16
|
},
|
|
17
|
-
"subType": {
|
|
18
|
-
"$ref": "definitions.json#/definitions/subType"
|
|
19
|
-
},
|
|
20
17
|
"supportedNotifications": {
|
|
21
18
|
"$ref": "definitions.json#/definitions/supportedNotifications"
|
|
22
19
|
},
|
|
@@ -30,7 +27,7 @@
|
|
|
30
27
|
"type": "boolean"
|
|
31
28
|
},
|
|
32
29
|
"level": {
|
|
33
|
-
"type": "number",
|
|
30
|
+
"type": ["number", "null"],
|
|
34
31
|
"minimum": 0,
|
|
35
32
|
"maximum": 100
|
|
36
33
|
},
|
|
@@ -47,7 +47,23 @@
|
|
|
47
47
|
"anyOf": [{ "$ref": "mediaFile.json" }, { "type": "null" }]
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"required": ["id", "userId", "timestamp", "body"]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"required": ["id", "systemId", "timestamp", "body"]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
"openedBy": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"userId": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
51
67
|
}
|
|
52
68
|
},
|
|
53
69
|
"requester": {
|
package/dist/esm/Models.js
CHANGED
|
@@ -7671,6 +7671,9 @@ var require_definitions = __commonJS({
|
|
|
7671
7671
|
},
|
|
7672
7672
|
price: {
|
|
7673
7673
|
type: "number"
|
|
7674
|
+
},
|
|
7675
|
+
tax: {
|
|
7676
|
+
type: ["number", "null"]
|
|
7674
7677
|
}
|
|
7675
7678
|
}
|
|
7676
7679
|
}
|
|
@@ -8669,9 +8672,6 @@ var require_dimmer = __commonJS({
|
|
|
8669
8672
|
type: {
|
|
8670
8673
|
$ref: "definitions.json#/definitions/type"
|
|
8671
8674
|
},
|
|
8672
|
-
subType: {
|
|
8673
|
-
$ref: "definitions.json#/definitions/subType"
|
|
8674
|
-
},
|
|
8675
8675
|
supportedNotifications: {
|
|
8676
8676
|
$ref: "definitions.json#/definitions/supportedNotifications"
|
|
8677
8677
|
},
|
|
@@ -8685,7 +8685,7 @@ var require_dimmer = __commonJS({
|
|
|
8685
8685
|
type: "boolean"
|
|
8686
8686
|
},
|
|
8687
8687
|
level: {
|
|
8688
|
-
type: "number",
|
|
8688
|
+
type: ["number", "null"],
|
|
8689
8689
|
minimum: 0,
|
|
8690
8690
|
maximum: 100
|
|
8691
8691
|
},
|
|
@@ -11976,7 +11976,22 @@ var require_ticket = __commonJS({
|
|
|
11976
11976
|
anyOf: [{ $ref: "mediaFile.json" }, { type: "null" }]
|
|
11977
11977
|
}
|
|
11978
11978
|
},
|
|
11979
|
-
|
|
11979
|
+
anyOf: [
|
|
11980
|
+
{
|
|
11981
|
+
required: ["id", "userId", "timestamp", "body"]
|
|
11982
|
+
},
|
|
11983
|
+
{
|
|
11984
|
+
required: ["id", "systemId", "timestamp", "body"]
|
|
11985
|
+
}
|
|
11986
|
+
]
|
|
11987
|
+
}
|
|
11988
|
+
},
|
|
11989
|
+
openedBy: {
|
|
11990
|
+
type: "object",
|
|
11991
|
+
properties: {
|
|
11992
|
+
userId: {
|
|
11993
|
+
type: "string"
|
|
11994
|
+
}
|
|
11980
11995
|
}
|
|
11981
11996
|
},
|
|
11982
11997
|
requester: {
|
|
@@ -14815,7 +14830,7 @@ var require_credential = __commonJS({
|
|
|
14815
14830
|
type: "string"
|
|
14816
14831
|
},
|
|
14817
14832
|
expires: {
|
|
14818
|
-
type: ["string", "object"]
|
|
14833
|
+
type: ["string", "object", "null"]
|
|
14819
14834
|
},
|
|
14820
14835
|
systemId: {
|
|
14821
14836
|
$ref: "definitions.json#/definitions/systemId"
|