@kohost/api-client 3.1.18 → 3.1.20
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 +4 -0
- package/dist/cjs/schemas/CategorySchema.d.ts +5 -1
- package/dist/cjs/schemas/LockSchema.d.ts +1 -1
- package/dist/cjs/schemas/MediaFileSchema.d.ts +4 -0
- package/dist/cjs/schemas/ProductSchema.d.ts +4 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +1 -1
- package/dist/cjs/schemas/SceneSchema.d.ts +9 -0
- package/dist/cjs/schemas/SystemUserSchema.d.ts +4 -0
- package/dist/cjs/schemas/TicketSchema.d.ts +4 -0
- package/dist/cjs/schemas/UserSchema.d.ts +4 -0
- package/dist/cjs/schemas/category.json +1 -1
- package/dist/cjs/schemas/lock.json +1 -1
- package/dist/cjs/schemas/mediaFile.json +4 -0
- package/dist/cjs/schemas/scene.json +17 -0
- package/dist/esm/Models.js +23 -2
- package/dist/esm/Models.js.map +2 -2
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ export interface Category {
|
|
|
49
49
|
description?: string;
|
|
50
50
|
image?: MediaFile;
|
|
51
51
|
rating?: number;
|
|
52
|
-
discriminator: "space" | "product";
|
|
52
|
+
discriminator: "space" | "product" | "mediaFile";
|
|
53
53
|
systemId?: string;
|
|
54
54
|
[k: string]: unknown;
|
|
55
55
|
}
|
|
@@ -61,6 +61,10 @@ export interface MediaFile {
|
|
|
61
61
|
type: string;
|
|
62
62
|
name?: string;
|
|
63
63
|
fileHash?: string;
|
|
64
|
+
/**
|
|
65
|
+
* This is the category id
|
|
66
|
+
*/
|
|
67
|
+
category?: string;
|
|
64
68
|
mimeType?:
|
|
65
69
|
| "image/*"
|
|
66
70
|
| "image/jpeg"
|
|
@@ -153,7 +153,7 @@ export interface Lock {
|
|
|
153
153
|
/**
|
|
154
154
|
* AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
|
|
155
155
|
*/
|
|
156
|
-
mode?: "normal" | "autoLock" | null;
|
|
156
|
+
mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
|
|
157
157
|
batteryLevel?: number;
|
|
158
158
|
systemId?: string;
|
|
159
159
|
watts?: number;
|
|
@@ -490,7 +490,7 @@ export interface Lock {
|
|
|
490
490
|
/**
|
|
491
491
|
* AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
|
|
492
492
|
*/
|
|
493
|
-
mode?: "normal" | "autoLock" | null;
|
|
493
|
+
mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
|
|
494
494
|
batteryLevel?: number;
|
|
495
495
|
systemId?: string;
|
|
496
496
|
watts?: number;
|
|
@@ -42,6 +42,15 @@ export interface Scene {
|
|
|
42
42
|
commands?: string[];
|
|
43
43
|
[k: string]: unknown;
|
|
44
44
|
}[];
|
|
45
|
+
locks?: {
|
|
46
|
+
id?: string;
|
|
47
|
+
state?: "locked" | "unlocked" | null;
|
|
48
|
+
/**
|
|
49
|
+
* AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
|
|
50
|
+
*/
|
|
51
|
+
mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
|
|
52
|
+
[k: string]: unknown;
|
|
53
|
+
}[];
|
|
45
54
|
};
|
|
46
55
|
isDefault?: boolean;
|
|
47
56
|
showOnUi?: boolean;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"mode": {
|
|
34
34
|
"type": ["string", "null"],
|
|
35
|
-
"enum": ["normal", "autoLock", null],
|
|
35
|
+
"enum": ["normal", "autoLock", "emergencyOpen", "emergencyClose", null],
|
|
36
36
|
"description": "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
|
|
37
37
|
"default": "normal"
|
|
38
38
|
},
|
|
@@ -107,6 +107,23 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
},
|
|
111
|
+
"locks": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"id": {
|
|
117
|
+
"$ref": "definitions.json#/definitions/id"
|
|
118
|
+
},
|
|
119
|
+
"state": {
|
|
120
|
+
"$ref": "lock.json#/properties/state"
|
|
121
|
+
},
|
|
122
|
+
"mode": {
|
|
123
|
+
"$ref": "lock.json#/properties/mode"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
110
127
|
}
|
|
111
128
|
},
|
|
112
129
|
"additionalProperties": false
|
package/dist/esm/Models.js
CHANGED
|
@@ -8360,6 +8360,10 @@ var require_mediaFile = __commonJS({
|
|
|
8360
8360
|
fileHash: {
|
|
8361
8361
|
type: "string"
|
|
8362
8362
|
},
|
|
8363
|
+
category: {
|
|
8364
|
+
type: "string",
|
|
8365
|
+
description: "This is the category id"
|
|
8366
|
+
},
|
|
8363
8367
|
mimeType: {
|
|
8364
8368
|
type: "string",
|
|
8365
8369
|
enum: [
|
|
@@ -8813,7 +8817,7 @@ var require_lock = __commonJS({
|
|
|
8813
8817
|
},
|
|
8814
8818
|
mode: {
|
|
8815
8819
|
type: ["string", "null"],
|
|
8816
|
-
enum: ["normal", "autoLock", null],
|
|
8820
|
+
enum: ["normal", "autoLock", "emergencyOpen", "emergencyClose", null],
|
|
8817
8821
|
description: "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
|
|
8818
8822
|
default: "normal"
|
|
8819
8823
|
},
|
|
@@ -10593,6 +10597,23 @@ var require_scene = __commonJS({
|
|
|
10593
10597
|
}
|
|
10594
10598
|
}
|
|
10595
10599
|
}
|
|
10600
|
+
},
|
|
10601
|
+
locks: {
|
|
10602
|
+
type: "array",
|
|
10603
|
+
items: {
|
|
10604
|
+
type: "object",
|
|
10605
|
+
properties: {
|
|
10606
|
+
id: {
|
|
10607
|
+
$ref: "definitions.json#/definitions/id"
|
|
10608
|
+
},
|
|
10609
|
+
state: {
|
|
10610
|
+
$ref: "lock.json#/properties/state"
|
|
10611
|
+
},
|
|
10612
|
+
mode: {
|
|
10613
|
+
$ref: "lock.json#/properties/mode"
|
|
10614
|
+
}
|
|
10615
|
+
}
|
|
10616
|
+
}
|
|
10596
10617
|
}
|
|
10597
10618
|
},
|
|
10598
10619
|
additionalProperties: false
|
|
@@ -11232,7 +11253,7 @@ var require_category = __commonJS({
|
|
|
11232
11253
|
},
|
|
11233
11254
|
discriminator: {
|
|
11234
11255
|
type: "string",
|
|
11235
|
-
enum: ["space", "product"]
|
|
11256
|
+
enum: ["space", "product", "mediaFile"]
|
|
11236
11257
|
},
|
|
11237
11258
|
systemId: {
|
|
11238
11259
|
$ref: "definitions.json#/definitions/systemId"
|