@kohost/api-client 3.7.3 → 3.7.5

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.
@@ -148,6 +148,7 @@ export interface Alarm {
148
148
  | "kohost-k7"
149
149
  | "kohost"
150
150
  | "lg"
151
+ | "lg-webos"
151
152
  | "lapi"
152
153
  | "lirc"
153
154
  | "mews"
@@ -156,6 +157,7 @@ export interface Alarm {
156
157
  | "pelican-wireless"
157
158
  | "power-shades"
158
159
  | "rebrandly"
160
+ | "rtsp"
159
161
  | "salto"
160
162
  | "salto-irn"
161
163
  | "samsung"
@@ -165,6 +167,7 @@ export interface Alarm {
165
167
  | "stay-n-touch"
166
168
  | "storable"
167
169
  | "twilio"
170
+ | "unifi"
168
171
  | "valcom"
169
172
  | "vizio"
170
173
  | "wisenet"
@@ -147,6 +147,7 @@ export interface Camera {
147
147
  | "kohost-k7"
148
148
  | "kohost"
149
149
  | "lg"
150
+ | "lg-webos"
150
151
  | "lapi"
151
152
  | "lirc"
152
153
  | "mews"
@@ -155,6 +156,7 @@ export interface Camera {
155
156
  | "pelican-wireless"
156
157
  | "power-shades"
157
158
  | "rebrandly"
159
+ | "rtsp"
158
160
  | "salto"
159
161
  | "salto-irn"
160
162
  | "samsung"
@@ -164,6 +166,7 @@ export interface Camera {
164
166
  | "stay-n-touch"
165
167
  | "storable"
166
168
  | "twilio"
169
+ | "unifi"
167
170
  | "valcom"
168
171
  | "vizio"
169
172
  | "wisenet"
@@ -32,6 +32,7 @@ export interface Category {
32
32
  | "kohost-k7"
33
33
  | "kohost"
34
34
  | "lg"
35
+ | "lg-webos"
35
36
  | "lapi"
36
37
  | "lirc"
37
38
  | "mews"
@@ -40,6 +41,7 @@ export interface Category {
40
41
  | "pelican-wireless"
41
42
  | "power-shades"
42
43
  | "rebrandly"
44
+ | "rtsp"
43
45
  | "salto"
44
46
  | "salto-irn"
45
47
  | "samsung"
@@ -49,6 +51,7 @@ export interface Category {
49
51
  | "stay-n-touch"
50
52
  | "storable"
51
53
  | "twilio"
54
+ | "unifi"
52
55
  | "valcom"
53
56
  | "vizio"
54
57
  | "wisenet"
@@ -146,6 +146,7 @@ export interface Courtesy {
146
146
  | "kohost-k7"
147
147
  | "kohost"
148
148
  | "lg"
149
+ | "lg-webos"
149
150
  | "lapi"
150
151
  | "lirc"
151
152
  | "mews"
@@ -154,6 +155,7 @@ export interface Courtesy {
154
155
  | "pelican-wireless"
155
156
  | "power-shades"
156
157
  | "rebrandly"
158
+ | "rtsp"
157
159
  | "salto"
158
160
  | "salto-irn"
159
161
  | "samsung"
@@ -163,6 +165,7 @@ export interface Courtesy {
163
165
  | "stay-n-touch"
164
166
  | "storable"
165
167
  | "twilio"
168
+ | "unifi"
166
169
  | "valcom"
167
170
  | "vizio"
168
171
  | "wisenet"
@@ -25,6 +25,7 @@ export interface Credential {
25
25
  | "kohost-k7"
26
26
  | "kohost"
27
27
  | "lg"
28
+ | "lg-webos"
28
29
  | "lapi"
29
30
  | "lirc"
30
31
  | "mews"
@@ -33,6 +34,7 @@ export interface Credential {
33
34
  | "pelican-wireless"
34
35
  | "power-shades"
35
36
  | "rebrandly"
37
+ | "rtsp"
36
38
  | "salto"
37
39
  | "salto-irn"
38
40
  | "samsung"
@@ -42,6 +44,7 @@ export interface Credential {
42
44
  | "stay-n-touch"
43
45
  | "storable"
44
46
  | "twilio"
47
+ | "unifi"
45
48
  | "valcom"
46
49
  | "vizio"
47
50
  | "wisenet"
@@ -146,6 +146,7 @@ export interface Dimmer {
146
146
  | "kohost-k7"
147
147
  | "kohost"
148
148
  | "lg"
149
+ | "lg-webos"
149
150
  | "lapi"
150
151
  | "lirc"
151
152
  | "mews"
@@ -154,6 +155,7 @@ export interface Dimmer {
154
155
  | "pelican-wireless"
155
156
  | "power-shades"
156
157
  | "rebrandly"
158
+ | "rtsp"
157
159
  | "salto"
158
160
  | "salto-irn"
159
161
  | "samsung"
@@ -163,6 +165,7 @@ export interface Dimmer {
163
165
  | "stay-n-touch"
164
166
  | "storable"
165
167
  | "twilio"
168
+ | "unifi"
166
169
  | "valcom"
167
170
  | "vizio"
168
171
  | "wisenet"
@@ -147,6 +147,7 @@ export interface IoTGateway {
147
147
  | "kohost-k7"
148
148
  | "kohost"
149
149
  | "lg"
150
+ | "lg-webos"
150
151
  | "lapi"
151
152
  | "lirc"
152
153
  | "mews"
@@ -155,6 +156,7 @@ export interface IoTGateway {
155
156
  | "pelican-wireless"
156
157
  | "power-shades"
157
158
  | "rebrandly"
159
+ | "rtsp"
158
160
  | "salto"
159
161
  | "salto-irn"
160
162
  | "samsung"
@@ -164,6 +166,7 @@ export interface IoTGateway {
164
166
  | "stay-n-touch"
165
167
  | "storable"
166
168
  | "twilio"
169
+ | "unifi"
167
170
  | "valcom"
168
171
  | "vizio"
169
172
  | "wisenet"
@@ -147,6 +147,7 @@ export interface Lock {
147
147
  | "kohost-k7"
148
148
  | "kohost"
149
149
  | "lg"
150
+ | "lg-webos"
150
151
  | "lapi"
151
152
  | "lirc"
152
153
  | "mews"
@@ -155,6 +156,7 @@ export interface Lock {
155
156
  | "pelican-wireless"
156
157
  | "power-shades"
157
158
  | "rebrandly"
159
+ | "rtsp"
158
160
  | "salto"
159
161
  | "salto-irn"
160
162
  | "samsung"
@@ -164,6 +166,7 @@ export interface Lock {
164
166
  | "stay-n-touch"
165
167
  | "storable"
166
168
  | "twilio"
169
+ | "unifi"
167
170
  | "valcom"
168
171
  | "vizio"
169
172
  | "wisenet"
@@ -134,6 +134,7 @@ export interface MediaSource {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lg-webos"
137
138
  | "lapi"
138
139
  | "lirc"
139
140
  | "mews"
@@ -142,6 +143,7 @@ export interface MediaSource {
142
143
  | "pelican-wireless"
143
144
  | "power-shades"
144
145
  | "rebrandly"
146
+ | "rtsp"
145
147
  | "salto"
146
148
  | "salto-irn"
147
149
  | "samsung"
@@ -151,6 +153,7 @@ export interface MediaSource {
151
153
  | "stay-n-touch"
152
154
  | "storable"
153
155
  | "twilio"
156
+ | "unifi"
154
157
  | "valcom"
155
158
  | "vizio"
156
159
  | "wisenet"
@@ -143,6 +143,7 @@ export interface MotionSensor {
143
143
  | "kohost-k7"
144
144
  | "kohost"
145
145
  | "lg"
146
+ | "lg-webos"
146
147
  | "lapi"
147
148
  | "lirc"
148
149
  | "mews"
@@ -151,6 +152,7 @@ export interface MotionSensor {
151
152
  | "pelican-wireless"
152
153
  | "power-shades"
153
154
  | "rebrandly"
155
+ | "rtsp"
154
156
  | "salto"
155
157
  | "salto-irn"
156
158
  | "samsung"
@@ -160,6 +162,7 @@ export interface MotionSensor {
160
162
  | "stay-n-touch"
161
163
  | "storable"
162
164
  | "twilio"
165
+ | "unifi"
163
166
  | "valcom"
164
167
  | "vizio"
165
168
  | "wisenet"
@@ -32,6 +32,7 @@ export interface Product {
32
32
  | "kohost-k7"
33
33
  | "kohost"
34
34
  | "lg"
35
+ | "lg-webos"
35
36
  | "lapi"
36
37
  | "lirc"
37
38
  | "mews"
@@ -40,6 +41,7 @@ export interface Product {
40
41
  | "pelican-wireless"
41
42
  | "power-shades"
42
43
  | "rebrandly"
44
+ | "rtsp"
43
45
  | "salto"
44
46
  | "salto-irn"
45
47
  | "samsung"
@@ -49,6 +51,7 @@ export interface Product {
49
51
  | "stay-n-touch"
50
52
  | "storable"
51
53
  | "twilio"
54
+ | "unifi"
52
55
  | "valcom"
53
56
  | "vizio"
54
57
  | "wisenet"
@@ -38,6 +38,7 @@ export interface Reservation {
38
38
  | "kohost-k7"
39
39
  | "kohost"
40
40
  | "lg"
41
+ | "lg-webos"
41
42
  | "lapi"
42
43
  | "lirc"
43
44
  | "mews"
@@ -46,6 +47,7 @@ export interface Reservation {
46
47
  | "pelican-wireless"
47
48
  | "power-shades"
48
49
  | "rebrandly"
50
+ | "rtsp"
49
51
  | "salto"
50
52
  | "salto-irn"
51
53
  | "samsung"
@@ -55,6 +57,7 @@ export interface Reservation {
55
57
  | "stay-n-touch"
56
58
  | "storable"
57
59
  | "twilio"
60
+ | "unifi"
58
61
  | "valcom"
59
62
  | "vizio"
60
63
  | "wisenet"
@@ -178,6 +178,7 @@ export interface Dimmer {
178
178
  | "kohost-k7"
179
179
  | "kohost"
180
180
  | "lg"
181
+ | "lg-webos"
181
182
  | "lapi"
182
183
  | "lirc"
183
184
  | "mews"
@@ -186,6 +187,7 @@ export interface Dimmer {
186
187
  | "pelican-wireless"
187
188
  | "power-shades"
188
189
  | "rebrandly"
190
+ | "rtsp"
189
191
  | "salto"
190
192
  | "salto-irn"
191
193
  | "samsung"
@@ -195,6 +197,7 @@ export interface Dimmer {
195
197
  | "stay-n-touch"
196
198
  | "storable"
197
199
  | "twilio"
200
+ | "unifi"
198
201
  | "valcom"
199
202
  | "vizio"
200
203
  | "wisenet"
@@ -284,6 +287,7 @@ export interface Switch {
284
287
  | "kohost-k7"
285
288
  | "kohost"
286
289
  | "lg"
290
+ | "lg-webos"
287
291
  | "lapi"
288
292
  | "lirc"
289
293
  | "mews"
@@ -292,6 +296,7 @@ export interface Switch {
292
296
  | "pelican-wireless"
293
297
  | "power-shades"
294
298
  | "rebrandly"
299
+ | "rtsp"
295
300
  | "salto"
296
301
  | "salto-irn"
297
302
  | "samsung"
@@ -301,6 +306,7 @@ export interface Switch {
301
306
  | "stay-n-touch"
302
307
  | "storable"
303
308
  | "twilio"
309
+ | "unifi"
304
310
  | "valcom"
305
311
  | "vizio"
306
312
  | "wisenet"
@@ -354,6 +360,7 @@ export interface Thermostat {
354
360
  | "kohost-k7"
355
361
  | "kohost"
356
362
  | "lg"
363
+ | "lg-webos"
357
364
  | "lapi"
358
365
  | "lirc"
359
366
  | "mews"
@@ -362,6 +369,7 @@ export interface Thermostat {
362
369
  | "pelican-wireless"
363
370
  | "power-shades"
364
371
  | "rebrandly"
372
+ | "rtsp"
365
373
  | "salto"
366
374
  | "salto-irn"
367
375
  | "samsung"
@@ -371,6 +379,7 @@ export interface Thermostat {
371
379
  | "stay-n-touch"
372
380
  | "storable"
373
381
  | "twilio"
382
+ | "unifi"
374
383
  | "valcom"
375
384
  | "vizio"
376
385
  | "wisenet"
@@ -524,6 +533,7 @@ export interface Lock {
524
533
  | "kohost-k7"
525
534
  | "kohost"
526
535
  | "lg"
536
+ | "lg-webos"
527
537
  | "lapi"
528
538
  | "lirc"
529
539
  | "mews"
@@ -532,6 +542,7 @@ export interface Lock {
532
542
  | "pelican-wireless"
533
543
  | "power-shades"
534
544
  | "rebrandly"
545
+ | "rtsp"
535
546
  | "salto"
536
547
  | "salto-irn"
537
548
  | "samsung"
@@ -541,6 +552,7 @@ export interface Lock {
541
552
  | "stay-n-touch"
542
553
  | "storable"
543
554
  | "twilio"
555
+ | "unifi"
544
556
  | "valcom"
545
557
  | "vizio"
546
558
  | "wisenet"
@@ -635,6 +647,7 @@ export interface WindowCovering {
635
647
  | "kohost-k7"
636
648
  | "kohost"
637
649
  | "lg"
650
+ | "lg-webos"
638
651
  | "lapi"
639
652
  | "lirc"
640
653
  | "mews"
@@ -643,6 +656,7 @@ export interface WindowCovering {
643
656
  | "pelican-wireless"
644
657
  | "power-shades"
645
658
  | "rebrandly"
659
+ | "rtsp"
646
660
  | "salto"
647
661
  | "salto-irn"
648
662
  | "samsung"
@@ -652,6 +666,7 @@ export interface WindowCovering {
652
666
  | "stay-n-touch"
653
667
  | "storable"
654
668
  | "twilio"
669
+ | "unifi"
655
670
  | "valcom"
656
671
  | "vizio"
657
672
  | "wisenet"
@@ -740,6 +755,7 @@ export interface Courtesy {
740
755
  | "kohost-k7"
741
756
  | "kohost"
742
757
  | "lg"
758
+ | "lg-webos"
743
759
  | "lapi"
744
760
  | "lirc"
745
761
  | "mews"
@@ -748,6 +764,7 @@ export interface Courtesy {
748
764
  | "pelican-wireless"
749
765
  | "power-shades"
750
766
  | "rebrandly"
767
+ | "rtsp"
751
768
  | "salto"
752
769
  | "salto-irn"
753
770
  | "samsung"
@@ -757,6 +774,7 @@ export interface Courtesy {
757
774
  | "stay-n-touch"
758
775
  | "storable"
759
776
  | "twilio"
777
+ | "unifi"
760
778
  | "valcom"
761
779
  | "vizio"
762
780
  | "wisenet"
@@ -847,6 +865,7 @@ export interface Camera {
847
865
  | "kohost-k7"
848
866
  | "kohost"
849
867
  | "lg"
868
+ | "lg-webos"
850
869
  | "lapi"
851
870
  | "lirc"
852
871
  | "mews"
@@ -855,6 +874,7 @@ export interface Camera {
855
874
  | "pelican-wireless"
856
875
  | "power-shades"
857
876
  | "rebrandly"
877
+ | "rtsp"
858
878
  | "salto"
859
879
  | "salto-irn"
860
880
  | "samsung"
@@ -864,6 +884,7 @@ export interface Camera {
864
884
  | "stay-n-touch"
865
885
  | "storable"
866
886
  | "twilio"
887
+ | "unifi"
867
888
  | "valcom"
868
889
  | "vizio"
869
890
  | "wisenet"
@@ -923,6 +944,7 @@ export interface MediaSource {
923
944
  | "kohost-k7"
924
945
  | "kohost"
925
946
  | "lg"
947
+ | "lg-webos"
926
948
  | "lapi"
927
949
  | "lirc"
928
950
  | "mews"
@@ -931,6 +953,7 @@ export interface MediaSource {
931
953
  | "pelican-wireless"
932
954
  | "power-shades"
933
955
  | "rebrandly"
956
+ | "rtsp"
934
957
  | "salto"
935
958
  | "salto-irn"
936
959
  | "samsung"
@@ -940,6 +963,7 @@ export interface MediaSource {
940
963
  | "stay-n-touch"
941
964
  | "storable"
942
965
  | "twilio"
966
+ | "unifi"
943
967
  | "valcom"
944
968
  | "vizio"
945
969
  | "wisenet"
@@ -1154,6 +1178,7 @@ export interface MotionSensor {
1154
1178
  | "kohost-k7"
1155
1179
  | "kohost"
1156
1180
  | "lg"
1181
+ | "lg-webos"
1157
1182
  | "lapi"
1158
1183
  | "lirc"
1159
1184
  | "mews"
@@ -1162,6 +1187,7 @@ export interface MotionSensor {
1162
1187
  | "pelican-wireless"
1163
1188
  | "power-shades"
1164
1189
  | "rebrandly"
1190
+ | "rtsp"
1165
1191
  | "salto"
1166
1192
  | "salto-irn"
1167
1193
  | "samsung"
@@ -1171,6 +1197,7 @@ export interface MotionSensor {
1171
1197
  | "stay-n-touch"
1172
1198
  | "storable"
1173
1199
  | "twilio"
1200
+ | "unifi"
1174
1201
  | "valcom"
1175
1202
  | "vizio"
1176
1203
  | "wisenet"
@@ -1293,6 +1320,7 @@ export interface Alarm {
1293
1320
  | "kohost-k7"
1294
1321
  | "kohost"
1295
1322
  | "lg"
1323
+ | "lg-webos"
1296
1324
  | "lapi"
1297
1325
  | "lirc"
1298
1326
  | "mews"
@@ -1301,6 +1329,7 @@ export interface Alarm {
1301
1329
  | "pelican-wireless"
1302
1330
  | "power-shades"
1303
1331
  | "rebrandly"
1332
+ | "rtsp"
1304
1333
  | "salto"
1305
1334
  | "salto-irn"
1306
1335
  | "samsung"
@@ -1310,6 +1339,7 @@ export interface Alarm {
1310
1339
  | "stay-n-touch"
1311
1340
  | "storable"
1312
1341
  | "twilio"
1342
+ | "unifi"
1313
1343
  | "valcom"
1314
1344
  | "vizio"
1315
1345
  | "wisenet"
@@ -38,6 +38,7 @@ export interface Space {
38
38
  | "kohost-k7"
39
39
  | "kohost"
40
40
  | "lg"
41
+ | "lg-webos"
41
42
  | "lapi"
42
43
  | "lirc"
43
44
  | "mews"
@@ -46,6 +47,7 @@ export interface Space {
46
47
  | "pelican-wireless"
47
48
  | "power-shades"
48
49
  | "rebrandly"
50
+ | "rtsp"
49
51
  | "salto"
50
52
  | "salto-irn"
51
53
  | "samsung"
@@ -55,6 +57,7 @@ export interface Space {
55
57
  | "stay-n-touch"
56
58
  | "storable"
57
59
  | "twilio"
60
+ | "unifi"
58
61
  | "valcom"
59
62
  | "vizio"
60
63
  | "wisenet"
@@ -147,6 +147,7 @@ export interface Switch {
147
147
  | "kohost-k7"
148
148
  | "kohost"
149
149
  | "lg"
150
+ | "lg-webos"
150
151
  | "lapi"
151
152
  | "lirc"
152
153
  | "mews"
@@ -155,6 +156,7 @@ export interface Switch {
155
156
  | "pelican-wireless"
156
157
  | "power-shades"
157
158
  | "rebrandly"
159
+ | "rtsp"
158
160
  | "salto"
159
161
  | "salto-irn"
160
162
  | "samsung"
@@ -164,6 +166,7 @@ export interface Switch {
164
166
  | "stay-n-touch"
165
167
  | "storable"
166
168
  | "twilio"
169
+ | "unifi"
167
170
  | "valcom"
168
171
  | "vizio"
169
172
  | "wisenet"
@@ -56,6 +56,7 @@ export interface SystemUser {
56
56
  | "kohost-k7"
57
57
  | "kohost"
58
58
  | "lg"
59
+ | "lg-webos"
59
60
  | "lapi"
60
61
  | "lirc"
61
62
  | "mews"
@@ -64,6 +65,7 @@ export interface SystemUser {
64
65
  | "pelican-wireless"
65
66
  | "power-shades"
66
67
  | "rebrandly"
68
+ | "rtsp"
67
69
  | "salto"
68
70
  | "salto-irn"
69
71
  | "samsung"
@@ -73,6 +75,7 @@ export interface SystemUser {
73
75
  | "stay-n-touch"
74
76
  | "storable"
75
77
  | "twilio"
78
+ | "unifi"
76
79
  | "valcom"
77
80
  | "vizio"
78
81
  | "wisenet"
@@ -146,6 +146,7 @@ export interface Thermostat {
146
146
  | "kohost-k7"
147
147
  | "kohost"
148
148
  | "lg"
149
+ | "lg-webos"
149
150
  | "lapi"
150
151
  | "lirc"
151
152
  | "mews"
@@ -154,6 +155,7 @@ export interface Thermostat {
154
155
  | "pelican-wireless"
155
156
  | "power-shades"
156
157
  | "rebrandly"
158
+ | "rtsp"
157
159
  | "salto"
158
160
  | "salto-irn"
159
161
  | "samsung"
@@ -163,6 +165,7 @@ export interface Thermostat {
163
165
  | "stay-n-touch"
164
166
  | "storable"
165
167
  | "twilio"
168
+ | "unifi"
166
169
  | "valcom"
167
170
  | "vizio"
168
171
  | "wisenet"
@@ -229,6 +229,7 @@ export interface Reservation {
229
229
  | "kohost-k7"
230
230
  | "kohost"
231
231
  | "lg"
232
+ | "lg-webos"
232
233
  | "lapi"
233
234
  | "lirc"
234
235
  | "mews"
@@ -237,6 +238,7 @@ export interface Reservation {
237
238
  | "pelican-wireless"
238
239
  | "power-shades"
239
240
  | "rebrandly"
241
+ | "rtsp"
240
242
  | "salto"
241
243
  | "salto-irn"
242
244
  | "samsung"
@@ -246,6 +248,7 @@ export interface Reservation {
246
248
  | "stay-n-touch"
247
249
  | "storable"
248
250
  | "twilio"
251
+ | "unifi"
249
252
  | "valcom"
250
253
  | "vizio"
251
254
  | "wisenet"
@@ -147,6 +147,7 @@ export interface WindowCovering {
147
147
  | "kohost-k7"
148
148
  | "kohost"
149
149
  | "lg"
150
+ | "lg-webos"
150
151
  | "lapi"
151
152
  | "lirc"
152
153
  | "mews"
@@ -155,6 +156,7 @@ export interface WindowCovering {
155
156
  | "pelican-wireless"
156
157
  | "power-shades"
157
158
  | "rebrandly"
159
+ | "rtsp"
158
160
  | "salto"
159
161
  | "salto-irn"
160
162
  | "samsung"
@@ -164,6 +166,7 @@ export interface WindowCovering {
164
166
  | "stay-n-touch"
165
167
  | "storable"
166
168
  | "twilio"
169
+ | "unifi"
167
170
  | "valcom"
168
171
  | "vizio"
169
172
  | "wisenet"
@@ -0,0 +1,28 @@
1
+ module.exports = function BulkUpdateIssue(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
2
+ if (!requestData) requestData = {};
3
+ const pathParams = null;
4
+ const { data, query, headers } = requestData;
5
+ let url = "/issues";
6
+ if (pathParams && data) {
7
+ for (const param of pathParams) {
8
+ const paramName = param.replace(":", "");
9
+ url = url.replace(param, data[paramName]);
10
+ }
11
+ }
12
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
13
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
14
+ const missing = missingParams.map((param) => param.replace(":", ""));
15
+ return Promise.reject(
16
+ new Error("Missing parameters: " + missing.join(", "))
17
+ );
18
+ }
19
+ const config = {
20
+ method: "put",
21
+ url,
22
+ ...httpConfigOptions
23
+ };
24
+ if (data) config.data = data;
25
+ if (query) config.params = query;
26
+ if (headers) config.headers = headers;
27
+ return this._http.request(config);
28
+ };