@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.
@@ -46,7 +46,8 @@ export interface Credential {
46
46
  | string
47
47
  | {
48
48
  [k: string]: unknown;
49
- };
49
+ }
50
+ | null;
50
51
  systemId?: string;
51
52
  [k: string]: unknown;
52
53
  }
@@ -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;
@@ -10,6 +10,7 @@ export type Revenue = {
10
10
  name?: string;
11
11
  date?: string;
12
12
  price?: number;
13
+ tax?: number | null;
13
14
  [k: string]: unknown;
14
15
  }[];
15
16
  export type UpdatedAt =
@@ -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;
@@ -19,7 +19,7 @@ export interface Scene {
19
19
  }[];
20
20
  dimmers?: {
21
21
  id?: string;
22
- level?: number;
22
+ level?: number | null;
23
23
  [k: string]: unknown;
24
24
  }[];
25
25
  windowCoverings?: {
@@ -23,6 +23,7 @@ export type Revenue = {
23
23
  name?: string;
24
24
  date?: string;
25
25
  price?: number;
26
+ tax?: number | null;
26
27
  [k: string]: unknown;
27
28
  }[];
28
29
  export type CreatedAt =
@@ -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
- id: string;
26
- userId: string;
27
- userName?: string;
28
- systemId?: string;
29
- systemName?: string;
30
- timestamp: CreatedAt;
31
- body: string;
32
- readBy?: string[];
33
- media?: MediaFile | null;
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;
@@ -23,6 +23,7 @@ export type Revenue = {
23
23
  name?: string;
24
24
  date?: string;
25
25
  price?: number;
26
+ tax?: number | null;
26
27
  [k: string]: unknown;
27
28
  }[];
28
29
  export type UpdatedAt =
@@ -35,7 +35,7 @@
35
35
  "type": "string"
36
36
  },
37
37
  "expires": {
38
- "type": ["string", "object"]
38
+ "type": ["string", "object", "null"]
39
39
  },
40
40
  "systemId": {
41
41
  "$ref": "definitions.json#/definitions/systemId"
@@ -212,6 +212,9 @@
212
212
  },
213
213
  "price": {
214
214
  "type": "number"
215
+ },
216
+ "tax": {
217
+ "type": ["number", "null"]
215
218
  }
216
219
  }
217
220
  }
@@ -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
- "required": ["userId", "id", "timestamp", "body"]
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": {
@@ -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
- required: ["userId", "id", "timestamp", "body"]
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"