@alicloud/aligenieip_1_0 1.0.19 → 1.0.21
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/client.d.ts +167 -129
- package/dist/client.js +324 -247
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +423 -299
package/src/client.ts
CHANGED
|
@@ -619,128 +619,6 @@ export class AddOrUpdateHotelSettingResponse extends $tea.Model {
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
export class AddOrUpdateNightModeHeaders extends $tea.Model {
|
|
623
|
-
commonHeaders?: { [key: string]: string };
|
|
624
|
-
xAcsAligenieAccessToken?: string;
|
|
625
|
-
authorization?: string;
|
|
626
|
-
static names(): { [key: string]: string } {
|
|
627
|
-
return {
|
|
628
|
-
commonHeaders: 'commonHeaders',
|
|
629
|
-
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
630
|
-
authorization: 'Authorization',
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
static types(): { [key: string]: any } {
|
|
635
|
-
return {
|
|
636
|
-
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
637
|
-
xAcsAligenieAccessToken: 'string',
|
|
638
|
-
authorization: 'string',
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
constructor(map?: { [key: string]: any }) {
|
|
643
|
-
super(map);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export class AddOrUpdateNightModeRequest extends $tea.Model {
|
|
648
|
-
hotelId?: string;
|
|
649
|
-
nightMode?: AddOrUpdateNightModeRequestNightMode;
|
|
650
|
-
static names(): { [key: string]: string } {
|
|
651
|
-
return {
|
|
652
|
-
hotelId: 'HotelId',
|
|
653
|
-
nightMode: 'NightMode',
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
static types(): { [key: string]: any } {
|
|
658
|
-
return {
|
|
659
|
-
hotelId: 'string',
|
|
660
|
-
nightMode: AddOrUpdateNightModeRequestNightMode,
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
constructor(map?: { [key: string]: any }) {
|
|
665
|
-
super(map);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
export class AddOrUpdateNightModeShrinkRequest extends $tea.Model {
|
|
670
|
-
hotelId?: string;
|
|
671
|
-
nightModeShrink?: string;
|
|
672
|
-
static names(): { [key: string]: string } {
|
|
673
|
-
return {
|
|
674
|
-
hotelId: 'HotelId',
|
|
675
|
-
nightModeShrink: 'NightMode',
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
static types(): { [key: string]: any } {
|
|
680
|
-
return {
|
|
681
|
-
hotelId: 'string',
|
|
682
|
-
nightModeShrink: 'string',
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
constructor(map?: { [key: string]: any }) {
|
|
687
|
-
super(map);
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
export class AddOrUpdateNightModeResponseBody extends $tea.Model {
|
|
692
|
-
message?: string;
|
|
693
|
-
requestId?: string;
|
|
694
|
-
result?: boolean;
|
|
695
|
-
statusCode?: number;
|
|
696
|
-
static names(): { [key: string]: string } {
|
|
697
|
-
return {
|
|
698
|
-
message: 'Message',
|
|
699
|
-
requestId: 'RequestId',
|
|
700
|
-
result: 'Result',
|
|
701
|
-
statusCode: 'StatusCode',
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
static types(): { [key: string]: any } {
|
|
706
|
-
return {
|
|
707
|
-
message: 'string',
|
|
708
|
-
requestId: 'string',
|
|
709
|
-
result: 'boolean',
|
|
710
|
-
statusCode: 'number',
|
|
711
|
-
};
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
constructor(map?: { [key: string]: any }) {
|
|
715
|
-
super(map);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
export class AddOrUpdateNightModeResponse extends $tea.Model {
|
|
720
|
-
headers: { [key: string]: string };
|
|
721
|
-
statusCode: number;
|
|
722
|
-
body: AddOrUpdateNightModeResponseBody;
|
|
723
|
-
static names(): { [key: string]: string } {
|
|
724
|
-
return {
|
|
725
|
-
headers: 'headers',
|
|
726
|
-
statusCode: 'statusCode',
|
|
727
|
-
body: 'body',
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
static types(): { [key: string]: any } {
|
|
732
|
-
return {
|
|
733
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
734
|
-
statusCode: 'number',
|
|
735
|
-
body: AddOrUpdateNightModeResponseBody,
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
constructor(map?: { [key: string]: any }) {
|
|
740
|
-
super(map);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
|
|
744
622
|
export class AddOrUpdateScreenSaverHeaders extends $tea.Model {
|
|
745
623
|
commonHeaders?: { [key: string]: string };
|
|
746
624
|
xAcsAligenieAccessToken?: string;
|
|
@@ -1571,6 +1449,56 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1571
1449
|
hotelName?: string;
|
|
1572
1450
|
phoneNumber?: string;
|
|
1573
1451
|
relatedPk?: string;
|
|
1452
|
+
relatedPks?: string[];
|
|
1453
|
+
remark?: string;
|
|
1454
|
+
roomNum?: number;
|
|
1455
|
+
tbOpenId?: string;
|
|
1456
|
+
static names(): { [key: string]: string } {
|
|
1457
|
+
return {
|
|
1458
|
+
appKey: 'AppKey',
|
|
1459
|
+
estOpenTime: 'EstOpenTime',
|
|
1460
|
+
hotelAddress: 'HotelAddress',
|
|
1461
|
+
hotelEmail: 'HotelEmail',
|
|
1462
|
+
hotelName: 'HotelName',
|
|
1463
|
+
phoneNumber: 'PhoneNumber',
|
|
1464
|
+
relatedPk: 'RelatedPk',
|
|
1465
|
+
relatedPks: 'RelatedPks',
|
|
1466
|
+
remark: 'Remark',
|
|
1467
|
+
roomNum: 'RoomNum',
|
|
1468
|
+
tbOpenId: 'TbOpenId',
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
static types(): { [key: string]: any } {
|
|
1473
|
+
return {
|
|
1474
|
+
appKey: 'string',
|
|
1475
|
+
estOpenTime: 'string',
|
|
1476
|
+
hotelAddress: 'string',
|
|
1477
|
+
hotelEmail: 'string',
|
|
1478
|
+
hotelName: 'string',
|
|
1479
|
+
phoneNumber: 'string',
|
|
1480
|
+
relatedPk: 'string',
|
|
1481
|
+
relatedPks: { 'type': 'array', 'itemType': 'string' },
|
|
1482
|
+
remark: 'string',
|
|
1483
|
+
roomNum: 'number',
|
|
1484
|
+
tbOpenId: 'string',
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
constructor(map?: { [key: string]: any }) {
|
|
1489
|
+
super(map);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export class CreateHotelShrinkRequest extends $tea.Model {
|
|
1494
|
+
appKey?: string;
|
|
1495
|
+
estOpenTime?: string;
|
|
1496
|
+
hotelAddress?: string;
|
|
1497
|
+
hotelEmail?: string;
|
|
1498
|
+
hotelName?: string;
|
|
1499
|
+
phoneNumber?: string;
|
|
1500
|
+
relatedPk?: string;
|
|
1501
|
+
relatedPksShrink?: string;
|
|
1574
1502
|
remark?: string;
|
|
1575
1503
|
roomNum?: number;
|
|
1576
1504
|
tbOpenId?: string;
|
|
@@ -1583,6 +1511,7 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1583
1511
|
hotelName: 'HotelName',
|
|
1584
1512
|
phoneNumber: 'PhoneNumber',
|
|
1585
1513
|
relatedPk: 'RelatedPk',
|
|
1514
|
+
relatedPksShrink: 'RelatedPks',
|
|
1586
1515
|
remark: 'Remark',
|
|
1587
1516
|
roomNum: 'RoomNum',
|
|
1588
1517
|
tbOpenId: 'TbOpenId',
|
|
@@ -1598,6 +1527,7 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1598
1527
|
hotelName: 'string',
|
|
1599
1528
|
phoneNumber: 'string',
|
|
1600
1529
|
relatedPk: 'string',
|
|
1530
|
+
relatedPksShrink: 'string',
|
|
1601
1531
|
remark: 'string',
|
|
1602
1532
|
roomNum: 'number',
|
|
1603
1533
|
tbOpenId: 'string',
|
|
@@ -7212,7 +7142,7 @@ export class QueryDeviceStatusResponse extends $tea.Model {
|
|
|
7212
7142
|
}
|
|
7213
7143
|
}
|
|
7214
7144
|
|
|
7215
|
-
export class
|
|
7145
|
+
export class QueryHotelRoomDetailHeaders extends $tea.Model {
|
|
7216
7146
|
commonHeaders?: { [key: string]: string };
|
|
7217
7147
|
xAcsAligenieAccessToken?: string;
|
|
7218
7148
|
authorization?: string;
|
|
@@ -7237,36 +7167,26 @@ export class QueryHotelProductHeaders extends $tea.Model {
|
|
|
7237
7167
|
}
|
|
7238
7168
|
}
|
|
7239
7169
|
|
|
7240
|
-
export class
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
};
|
|
7246
|
-
}
|
|
7247
|
-
|
|
7248
|
-
static types(): { [key: string]: any } {
|
|
7249
|
-
return {
|
|
7250
|
-
userInfo: QueryHotelProductRequestUserInfo,
|
|
7251
|
-
};
|
|
7252
|
-
}
|
|
7253
|
-
|
|
7254
|
-
constructor(map?: { [key: string]: any }) {
|
|
7255
|
-
super(map);
|
|
7256
|
-
}
|
|
7257
|
-
}
|
|
7258
|
-
|
|
7259
|
-
export class QueryHotelProductShrinkRequest extends $tea.Model {
|
|
7260
|
-
userInfoShrink?: string;
|
|
7170
|
+
export class QueryHotelRoomDetailRequest extends $tea.Model {
|
|
7171
|
+
hotelId?: string;
|
|
7172
|
+
mac?: string;
|
|
7173
|
+
roomNo?: string;
|
|
7174
|
+
uuid?: string;
|
|
7261
7175
|
static names(): { [key: string]: string } {
|
|
7262
7176
|
return {
|
|
7263
|
-
|
|
7177
|
+
hotelId: 'HotelId',
|
|
7178
|
+
mac: 'Mac',
|
|
7179
|
+
roomNo: 'RoomNo',
|
|
7180
|
+
uuid: 'Uuid',
|
|
7264
7181
|
};
|
|
7265
7182
|
}
|
|
7266
7183
|
|
|
7267
7184
|
static types(): { [key: string]: any } {
|
|
7268
7185
|
return {
|
|
7269
|
-
|
|
7186
|
+
hotelId: 'string',
|
|
7187
|
+
mac: 'string',
|
|
7188
|
+
roomNo: 'string',
|
|
7189
|
+
uuid: 'string',
|
|
7270
7190
|
};
|
|
7271
7191
|
}
|
|
7272
7192
|
|
|
@@ -7275,26 +7195,26 @@ export class QueryHotelProductShrinkRequest extends $tea.Model {
|
|
|
7275
7195
|
}
|
|
7276
7196
|
}
|
|
7277
7197
|
|
|
7278
|
-
export class
|
|
7279
|
-
code?: number;
|
|
7198
|
+
export class QueryHotelRoomDetailResponseBody extends $tea.Model {
|
|
7280
7199
|
message?: string;
|
|
7281
7200
|
requestId?: string;
|
|
7282
|
-
result?:
|
|
7201
|
+
result?: QueryHotelRoomDetailResponseBodyResult;
|
|
7202
|
+
statusCode?: number;
|
|
7283
7203
|
static names(): { [key: string]: string } {
|
|
7284
7204
|
return {
|
|
7285
|
-
code: 'Code',
|
|
7286
7205
|
message: 'Message',
|
|
7287
7206
|
requestId: 'RequestId',
|
|
7288
7207
|
result: 'Result',
|
|
7208
|
+
statusCode: 'StatusCode',
|
|
7289
7209
|
};
|
|
7290
7210
|
}
|
|
7291
7211
|
|
|
7292
7212
|
static types(): { [key: string]: any } {
|
|
7293
7213
|
return {
|
|
7294
|
-
code: 'number',
|
|
7295
7214
|
message: 'string',
|
|
7296
7215
|
requestId: 'string',
|
|
7297
|
-
result:
|
|
7216
|
+
result: QueryHotelRoomDetailResponseBodyResult,
|
|
7217
|
+
statusCode: 'number',
|
|
7298
7218
|
};
|
|
7299
7219
|
}
|
|
7300
7220
|
|
|
@@ -7303,10 +7223,10 @@ export class QueryHotelProductResponseBody extends $tea.Model {
|
|
|
7303
7223
|
}
|
|
7304
7224
|
}
|
|
7305
7225
|
|
|
7306
|
-
export class
|
|
7226
|
+
export class QueryHotelRoomDetailResponse extends $tea.Model {
|
|
7307
7227
|
headers: { [key: string]: string };
|
|
7308
7228
|
statusCode: number;
|
|
7309
|
-
body:
|
|
7229
|
+
body: QueryHotelRoomDetailResponseBody;
|
|
7310
7230
|
static names(): { [key: string]: string } {
|
|
7311
7231
|
return {
|
|
7312
7232
|
headers: 'headers',
|
|
@@ -7319,7 +7239,7 @@ export class QueryHotelProductResponse extends $tea.Model {
|
|
|
7319
7239
|
return {
|
|
7320
7240
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7321
7241
|
statusCode: 'number',
|
|
7322
|
-
body:
|
|
7242
|
+
body: QueryHotelRoomDetailResponseBody,
|
|
7323
7243
|
};
|
|
7324
7244
|
}
|
|
7325
7245
|
|
|
@@ -8019,6 +7939,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8019
7939
|
number?: string;
|
|
8020
7940
|
roomNo?: string;
|
|
8021
7941
|
switch?: number;
|
|
7942
|
+
fanSpeed?: string;
|
|
7943
|
+
mode?: string;
|
|
7944
|
+
roomTemperature?: string;
|
|
7945
|
+
temperature?: string;
|
|
7946
|
+
value?: number;
|
|
8022
7947
|
static names(): { [key: string]: string } {
|
|
8023
7948
|
return {
|
|
8024
7949
|
categoryCnName: 'CategoryCnName',
|
|
@@ -8030,6 +7955,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8030
7955
|
number: 'Number',
|
|
8031
7956
|
roomNo: 'RoomNo',
|
|
8032
7957
|
switch: 'Switch',
|
|
7958
|
+
fanSpeed: 'fanSpeed',
|
|
7959
|
+
mode: 'mode',
|
|
7960
|
+
roomTemperature: 'roomTemperature',
|
|
7961
|
+
temperature: 'temperature',
|
|
7962
|
+
value: 'value',
|
|
8033
7963
|
};
|
|
8034
7964
|
}
|
|
8035
7965
|
|
|
@@ -8044,6 +7974,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8044
7974
|
number: 'string',
|
|
8045
7975
|
roomNo: 'string',
|
|
8046
7976
|
switch: 'number',
|
|
7977
|
+
fanSpeed: 'string',
|
|
7978
|
+
mode: 'string',
|
|
7979
|
+
roomTemperature: 'string',
|
|
7980
|
+
temperature: 'string',
|
|
7981
|
+
value: 'number',
|
|
8047
7982
|
};
|
|
8048
7983
|
}
|
|
8049
7984
|
|
|
@@ -8414,6 +8349,7 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8414
8349
|
hotelId?: string;
|
|
8415
8350
|
hotelName?: string;
|
|
8416
8351
|
phoneNumber?: string;
|
|
8352
|
+
relatedPks?: string[];
|
|
8417
8353
|
remark?: string;
|
|
8418
8354
|
roomNum?: number;
|
|
8419
8355
|
tbOpenId?: string;
|
|
@@ -8426,6 +8362,7 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8426
8362
|
hotelId: 'HotelId',
|
|
8427
8363
|
hotelName: 'HotelName',
|
|
8428
8364
|
phoneNumber: 'PhoneNumber',
|
|
8365
|
+
relatedPks: 'RelatedPks',
|
|
8429
8366
|
remark: 'Remark',
|
|
8430
8367
|
roomNum: 'RoomNum',
|
|
8431
8368
|
tbOpenId: 'TbOpenId',
|
|
@@ -8441,6 +8378,56 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8441
8378
|
hotelId: 'string',
|
|
8442
8379
|
hotelName: 'string',
|
|
8443
8380
|
phoneNumber: 'string',
|
|
8381
|
+
relatedPks: { 'type': 'array', 'itemType': 'string' },
|
|
8382
|
+
remark: 'string',
|
|
8383
|
+
roomNum: 'number',
|
|
8384
|
+
tbOpenId: 'string',
|
|
8385
|
+
};
|
|
8386
|
+
}
|
|
8387
|
+
|
|
8388
|
+
constructor(map?: { [key: string]: any }) {
|
|
8389
|
+
super(map);
|
|
8390
|
+
}
|
|
8391
|
+
}
|
|
8392
|
+
|
|
8393
|
+
export class UpdateHotelShrinkRequest extends $tea.Model {
|
|
8394
|
+
appKey?: string;
|
|
8395
|
+
estOpenTime?: string;
|
|
8396
|
+
hotelAddress?: string;
|
|
8397
|
+
hotelEmail?: string;
|
|
8398
|
+
hotelId?: string;
|
|
8399
|
+
hotelName?: string;
|
|
8400
|
+
phoneNumber?: string;
|
|
8401
|
+
relatedPksShrink?: string;
|
|
8402
|
+
remark?: string;
|
|
8403
|
+
roomNum?: number;
|
|
8404
|
+
tbOpenId?: string;
|
|
8405
|
+
static names(): { [key: string]: string } {
|
|
8406
|
+
return {
|
|
8407
|
+
appKey: 'AppKey',
|
|
8408
|
+
estOpenTime: 'EstOpenTime',
|
|
8409
|
+
hotelAddress: 'HotelAddress',
|
|
8410
|
+
hotelEmail: 'HotelEmail',
|
|
8411
|
+
hotelId: 'HotelId',
|
|
8412
|
+
hotelName: 'HotelName',
|
|
8413
|
+
phoneNumber: 'PhoneNumber',
|
|
8414
|
+
relatedPksShrink: 'RelatedPks',
|
|
8415
|
+
remark: 'Remark',
|
|
8416
|
+
roomNum: 'RoomNum',
|
|
8417
|
+
tbOpenId: 'TbOpenId',
|
|
8418
|
+
};
|
|
8419
|
+
}
|
|
8420
|
+
|
|
8421
|
+
static types(): { [key: string]: any } {
|
|
8422
|
+
return {
|
|
8423
|
+
appKey: 'string',
|
|
8424
|
+
estOpenTime: 'string',
|
|
8425
|
+
hotelAddress: 'string',
|
|
8426
|
+
hotelEmail: 'string',
|
|
8427
|
+
hotelId: 'string',
|
|
8428
|
+
hotelName: 'string',
|
|
8429
|
+
phoneNumber: 'string',
|
|
8430
|
+
relatedPksShrink: 'string',
|
|
8444
8431
|
remark: 'string',
|
|
8445
8432
|
roomNum: 'number',
|
|
8446
8433
|
tbOpenId: 'string',
|
|
@@ -9224,18 +9211,18 @@ export class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
|
|
|
9224
9211
|
}
|
|
9225
9212
|
|
|
9226
9213
|
export class AddOrUpdateHotelSettingRequestNightMode extends $tea.Model {
|
|
9214
|
+
defaultBright?: string;
|
|
9215
|
+
defaultVolume?: string;
|
|
9227
9216
|
enable?: boolean;
|
|
9228
9217
|
end?: string;
|
|
9229
|
-
maxBright?: string;
|
|
9230
|
-
maxVolume?: string;
|
|
9231
9218
|
standbyAction?: string;
|
|
9232
9219
|
start?: string;
|
|
9233
9220
|
static names(): { [key: string]: string } {
|
|
9234
9221
|
return {
|
|
9222
|
+
defaultBright: 'DefaultBright',
|
|
9223
|
+
defaultVolume: 'DefaultVolume',
|
|
9235
9224
|
enable: 'Enable',
|
|
9236
9225
|
end: 'End',
|
|
9237
|
-
maxBright: 'MaxBright',
|
|
9238
|
-
maxVolume: 'MaxVolume',
|
|
9239
9226
|
standbyAction: 'StandbyAction',
|
|
9240
9227
|
start: 'Start',
|
|
9241
9228
|
};
|
|
@@ -9243,44 +9230,10 @@ export class AddOrUpdateHotelSettingRequestNightMode extends $tea.Model {
|
|
|
9243
9230
|
|
|
9244
9231
|
static types(): { [key: string]: any } {
|
|
9245
9232
|
return {
|
|
9233
|
+
defaultBright: 'string',
|
|
9234
|
+
defaultVolume: 'string',
|
|
9246
9235
|
enable: 'boolean',
|
|
9247
9236
|
end: 'string',
|
|
9248
|
-
maxBright: 'string',
|
|
9249
|
-
maxVolume: 'string',
|
|
9250
|
-
standbyAction: 'string',
|
|
9251
|
-
start: 'string',
|
|
9252
|
-
};
|
|
9253
|
-
}
|
|
9254
|
-
|
|
9255
|
-
constructor(map?: { [key: string]: any }) {
|
|
9256
|
-
super(map);
|
|
9257
|
-
}
|
|
9258
|
-
}
|
|
9259
|
-
|
|
9260
|
-
export class AddOrUpdateNightModeRequestNightMode extends $tea.Model {
|
|
9261
|
-
enable?: boolean;
|
|
9262
|
-
end?: string;
|
|
9263
|
-
maxBright?: string;
|
|
9264
|
-
maxVolume?: string;
|
|
9265
|
-
standbyAction?: string;
|
|
9266
|
-
start?: string;
|
|
9267
|
-
static names(): { [key: string]: string } {
|
|
9268
|
-
return {
|
|
9269
|
-
enable: 'Enable',
|
|
9270
|
-
end: 'End',
|
|
9271
|
-
maxBright: 'MaxBright',
|
|
9272
|
-
maxVolume: 'MaxVolume',
|
|
9273
|
-
standbyAction: 'StandbyAction',
|
|
9274
|
-
start: 'Start',
|
|
9275
|
-
};
|
|
9276
|
-
}
|
|
9277
|
-
|
|
9278
|
-
static types(): { [key: string]: any } {
|
|
9279
|
-
return {
|
|
9280
|
-
enable: 'boolean',
|
|
9281
|
-
end: 'string',
|
|
9282
|
-
maxBright: 'string',
|
|
9283
|
-
maxVolume: 'string',
|
|
9284
9237
|
standbyAction: 'string',
|
|
9285
9238
|
start: 'string',
|
|
9286
9239
|
};
|
|
@@ -10362,18 +10315,18 @@ export class GetHotelSettingResponseBodyResultHotelScreenSaver extends $tea.Mode
|
|
|
10362
10315
|
}
|
|
10363
10316
|
|
|
10364
10317
|
export class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
|
|
10318
|
+
defaultBright?: string;
|
|
10319
|
+
defaultVolume?: string;
|
|
10365
10320
|
enable?: boolean;
|
|
10366
10321
|
end?: string;
|
|
10367
|
-
maxBright?: string;
|
|
10368
|
-
maxVolume?: string;
|
|
10369
10322
|
standbyAction?: string;
|
|
10370
10323
|
start?: string;
|
|
10371
10324
|
static names(): { [key: string]: string } {
|
|
10372
10325
|
return {
|
|
10326
|
+
defaultBright: 'DefaultBright',
|
|
10327
|
+
defaultVolume: 'DefaultVolume',
|
|
10373
10328
|
enable: 'Enable',
|
|
10374
10329
|
end: 'End',
|
|
10375
|
-
maxBright: 'MaxBright',
|
|
10376
|
-
maxVolume: 'MaxVolume',
|
|
10377
10330
|
standbyAction: 'StandbyAction',
|
|
10378
10331
|
start: 'Start',
|
|
10379
10332
|
};
|
|
@@ -10381,10 +10334,10 @@ export class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
|
|
|
10381
10334
|
|
|
10382
10335
|
static types(): { [key: string]: any } {
|
|
10383
10336
|
return {
|
|
10337
|
+
defaultBright: 'string',
|
|
10338
|
+
defaultVolume: 'string',
|
|
10384
10339
|
enable: 'boolean',
|
|
10385
10340
|
end: 'string',
|
|
10386
|
-
maxBright: 'string',
|
|
10387
|
-
maxVolume: 'string',
|
|
10388
10341
|
standbyAction: 'string',
|
|
10389
10342
|
start: 'string',
|
|
10390
10343
|
};
|
|
@@ -12146,29 +12099,20 @@ export class QueryDeviceStatusRequestUserInfo extends $tea.Model {
|
|
|
12146
12099
|
}
|
|
12147
12100
|
}
|
|
12148
12101
|
|
|
12149
|
-
export class
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
id?: string;
|
|
12153
|
-
idType?: string;
|
|
12154
|
-
organizationId?: string;
|
|
12102
|
+
export class QueryHotelRoomDetailResponseBodyResultAuthAccounts extends $tea.Model {
|
|
12103
|
+
accountName?: string;
|
|
12104
|
+
authTime?: string;
|
|
12155
12105
|
static names(): { [key: string]: string } {
|
|
12156
12106
|
return {
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
id: 'Id',
|
|
12160
|
-
idType: 'IdType',
|
|
12161
|
-
organizationId: 'OrganizationId',
|
|
12107
|
+
accountName: 'AccountName',
|
|
12108
|
+
authTime: 'AuthTime',
|
|
12162
12109
|
};
|
|
12163
12110
|
}
|
|
12164
12111
|
|
|
12165
12112
|
static types(): { [key: string]: any } {
|
|
12166
12113
|
return {
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
id: 'string',
|
|
12170
|
-
idType: 'string',
|
|
12171
|
-
organizationId: 'string',
|
|
12114
|
+
accountName: 'string',
|
|
12115
|
+
authTime: 'string',
|
|
12172
12116
|
};
|
|
12173
12117
|
}
|
|
12174
12118
|
|
|
@@ -12177,26 +12121,214 @@ export class QueryHotelProductRequestUserInfo extends $tea.Model {
|
|
|
12177
12121
|
}
|
|
12178
12122
|
}
|
|
12179
12123
|
|
|
12180
|
-
export class
|
|
12124
|
+
export class QueryHotelRoomDetailResponseBodyResultDeviceInfos extends $tea.Model {
|
|
12125
|
+
activeTime?: string;
|
|
12126
|
+
deviceName?: string;
|
|
12127
|
+
firmwareVersion?: string;
|
|
12128
|
+
mac?: string;
|
|
12129
|
+
onlineStatus?: number;
|
|
12130
|
+
sn?: string;
|
|
12131
|
+
uuid?: string;
|
|
12132
|
+
static names(): { [key: string]: string } {
|
|
12133
|
+
return {
|
|
12134
|
+
activeTime: 'ActiveTime',
|
|
12135
|
+
deviceName: 'DeviceName',
|
|
12136
|
+
firmwareVersion: 'FirmwareVersion',
|
|
12137
|
+
mac: 'Mac',
|
|
12138
|
+
onlineStatus: 'OnlineStatus',
|
|
12139
|
+
sn: 'Sn',
|
|
12140
|
+
uuid: 'Uuid',
|
|
12141
|
+
};
|
|
12142
|
+
}
|
|
12143
|
+
|
|
12144
|
+
static types(): { [key: string]: any } {
|
|
12145
|
+
return {
|
|
12146
|
+
activeTime: 'string',
|
|
12147
|
+
deviceName: 'string',
|
|
12148
|
+
firmwareVersion: 'string',
|
|
12149
|
+
mac: 'string',
|
|
12150
|
+
onlineStatus: 'number',
|
|
12151
|
+
sn: 'string',
|
|
12152
|
+
uuid: 'string',
|
|
12153
|
+
};
|
|
12154
|
+
}
|
|
12155
|
+
|
|
12156
|
+
constructor(map?: { [key: string]: any }) {
|
|
12157
|
+
super(map);
|
|
12158
|
+
}
|
|
12159
|
+
}
|
|
12160
|
+
|
|
12161
|
+
export class QueryHotelRoomDetailResponseBodyResultOtherService extends $tea.Model {
|
|
12162
|
+
openCall?: boolean;
|
|
12163
|
+
unhandleTickets?: number;
|
|
12164
|
+
static names(): { [key: string]: string } {
|
|
12165
|
+
return {
|
|
12166
|
+
openCall: 'OpenCall',
|
|
12167
|
+
unhandleTickets: 'UnhandleTickets',
|
|
12168
|
+
};
|
|
12169
|
+
}
|
|
12170
|
+
|
|
12171
|
+
static types(): { [key: string]: any } {
|
|
12172
|
+
return {
|
|
12173
|
+
openCall: 'boolean',
|
|
12174
|
+
unhandleTickets: 'number',
|
|
12175
|
+
};
|
|
12176
|
+
}
|
|
12177
|
+
|
|
12178
|
+
constructor(map?: { [key: string]: any }) {
|
|
12179
|
+
super(map);
|
|
12180
|
+
}
|
|
12181
|
+
}
|
|
12182
|
+
|
|
12183
|
+
export class QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos extends $tea.Model {
|
|
12184
|
+
categoryEnName?: string;
|
|
12185
|
+
categoryId?: number;
|
|
12186
|
+
categoryName?: string;
|
|
12187
|
+
deviceConnectType?: string;
|
|
12188
|
+
deviceCount?: number;
|
|
12189
|
+
deviceId?: string;
|
|
12190
|
+
deviceName?: string;
|
|
12191
|
+
locationEnName?: string;
|
|
12192
|
+
locationId?: number;
|
|
12193
|
+
locationName?: string;
|
|
12194
|
+
productKey?: string;
|
|
12195
|
+
static names(): { [key: string]: string } {
|
|
12196
|
+
return {
|
|
12197
|
+
categoryEnName: 'CategoryEnName',
|
|
12198
|
+
categoryId: 'CategoryId',
|
|
12199
|
+
categoryName: 'CategoryName',
|
|
12200
|
+
deviceConnectType: 'DeviceConnectType',
|
|
12201
|
+
deviceCount: 'DeviceCount',
|
|
12202
|
+
deviceId: 'DeviceId',
|
|
12203
|
+
deviceName: 'DeviceName',
|
|
12204
|
+
locationEnName: 'LocationEnName',
|
|
12205
|
+
locationId: 'LocationId',
|
|
12206
|
+
locationName: 'LocationName',
|
|
12207
|
+
productKey: 'ProductKey',
|
|
12208
|
+
};
|
|
12209
|
+
}
|
|
12210
|
+
|
|
12211
|
+
static types(): { [key: string]: any } {
|
|
12212
|
+
return {
|
|
12213
|
+
categoryEnName: 'string',
|
|
12214
|
+
categoryId: 'number',
|
|
12215
|
+
categoryName: 'string',
|
|
12216
|
+
deviceConnectType: 'string',
|
|
12217
|
+
deviceCount: 'number',
|
|
12218
|
+
deviceId: 'string',
|
|
12219
|
+
deviceName: 'string',
|
|
12220
|
+
locationEnName: 'string',
|
|
12221
|
+
locationId: 'number',
|
|
12222
|
+
locationName: 'string',
|
|
12223
|
+
productKey: 'string',
|
|
12224
|
+
};
|
|
12225
|
+
}
|
|
12226
|
+
|
|
12227
|
+
constructor(map?: { [key: string]: any }) {
|
|
12228
|
+
super(map);
|
|
12229
|
+
}
|
|
12230
|
+
}
|
|
12231
|
+
|
|
12232
|
+
export class QueryHotelRoomDetailResponseBodyResultRoomControlInfo extends $tea.Model {
|
|
12233
|
+
appId?: number;
|
|
12234
|
+
appName?: string;
|
|
12235
|
+
deviceInfos?: QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos[];
|
|
12236
|
+
rcuUrl?: string;
|
|
12237
|
+
templateId?: number;
|
|
12238
|
+
templateName?: string;
|
|
12239
|
+
static names(): { [key: string]: string } {
|
|
12240
|
+
return {
|
|
12241
|
+
appId: 'AppId',
|
|
12242
|
+
appName: 'AppName',
|
|
12243
|
+
deviceInfos: 'DeviceInfos',
|
|
12244
|
+
rcuUrl: 'RcuUrl',
|
|
12245
|
+
templateId: 'TemplateId',
|
|
12246
|
+
templateName: 'TemplateName',
|
|
12247
|
+
};
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
static types(): { [key: string]: any } {
|
|
12251
|
+
return {
|
|
12252
|
+
appId: 'number',
|
|
12253
|
+
appName: 'string',
|
|
12254
|
+
deviceInfos: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos },
|
|
12255
|
+
rcuUrl: 'string',
|
|
12256
|
+
templateId: 'number',
|
|
12257
|
+
templateName: 'string',
|
|
12258
|
+
};
|
|
12259
|
+
}
|
|
12260
|
+
|
|
12261
|
+
constructor(map?: { [key: string]: any }) {
|
|
12262
|
+
super(map);
|
|
12263
|
+
}
|
|
12264
|
+
}
|
|
12265
|
+
|
|
12266
|
+
export class QueryHotelRoomDetailResponseBodyResultRoomServiceInfo extends $tea.Model {
|
|
12267
|
+
bookServiceCnt?: number;
|
|
12268
|
+
goodsServiceCnt?: number;
|
|
12269
|
+
repairServiceCnt?: number;
|
|
12270
|
+
roomServiceCnt?: number;
|
|
12271
|
+
static names(): { [key: string]: string } {
|
|
12272
|
+
return {
|
|
12273
|
+
bookServiceCnt: 'BookServiceCnt',
|
|
12274
|
+
goodsServiceCnt: 'GoodsServiceCnt',
|
|
12275
|
+
repairServiceCnt: 'RepairServiceCnt',
|
|
12276
|
+
roomServiceCnt: 'RoomServiceCnt',
|
|
12277
|
+
};
|
|
12278
|
+
}
|
|
12279
|
+
|
|
12280
|
+
static types(): { [key: string]: any } {
|
|
12281
|
+
return {
|
|
12282
|
+
bookServiceCnt: 'number',
|
|
12283
|
+
goodsServiceCnt: 'number',
|
|
12284
|
+
repairServiceCnt: 'number',
|
|
12285
|
+
roomServiceCnt: 'number',
|
|
12286
|
+
};
|
|
12287
|
+
}
|
|
12288
|
+
|
|
12289
|
+
constructor(map?: { [key: string]: any }) {
|
|
12290
|
+
super(map);
|
|
12291
|
+
}
|
|
12292
|
+
}
|
|
12293
|
+
|
|
12294
|
+
export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
|
|
12295
|
+
authAccounts?: QueryHotelRoomDetailResponseBodyResultAuthAccounts[];
|
|
12296
|
+
connectType?: string;
|
|
12297
|
+
creatorAccountName?: string;
|
|
12298
|
+
deviceInfos?: QueryHotelRoomDetailResponseBodyResultDeviceInfos[];
|
|
12181
12299
|
hotelId?: string;
|
|
12182
12300
|
hotelName?: string;
|
|
12183
|
-
|
|
12184
|
-
|
|
12301
|
+
otherService?: QueryHotelRoomDetailResponseBodyResultOtherService;
|
|
12302
|
+
roomControlInfo?: QueryHotelRoomDetailResponseBodyResultRoomControlInfo;
|
|
12303
|
+
roomNo?: string;
|
|
12304
|
+
roomServiceInfo?: QueryHotelRoomDetailResponseBodyResultRoomServiceInfo;
|
|
12185
12305
|
static names(): { [key: string]: string } {
|
|
12186
12306
|
return {
|
|
12307
|
+
authAccounts: 'AuthAccounts',
|
|
12308
|
+
connectType: 'ConnectType',
|
|
12309
|
+
creatorAccountName: 'CreatorAccountName',
|
|
12310
|
+
deviceInfos: 'DeviceInfos',
|
|
12187
12311
|
hotelId: 'HotelId',
|
|
12188
12312
|
hotelName: 'HotelName',
|
|
12189
|
-
|
|
12190
|
-
|
|
12313
|
+
otherService: 'OtherService',
|
|
12314
|
+
roomControlInfo: 'RoomControlInfo',
|
|
12315
|
+
roomNo: 'RoomNo',
|
|
12316
|
+
roomServiceInfo: 'RoomServiceInfo',
|
|
12191
12317
|
};
|
|
12192
12318
|
}
|
|
12193
12319
|
|
|
12194
12320
|
static types(): { [key: string]: any } {
|
|
12195
12321
|
return {
|
|
12322
|
+
authAccounts: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultAuthAccounts },
|
|
12323
|
+
connectType: 'string',
|
|
12324
|
+
creatorAccountName: 'string',
|
|
12325
|
+
deviceInfos: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultDeviceInfos },
|
|
12196
12326
|
hotelId: 'string',
|
|
12197
12327
|
hotelName: 'string',
|
|
12198
|
-
|
|
12199
|
-
|
|
12328
|
+
otherService: QueryHotelRoomDetailResponseBodyResultOtherService,
|
|
12329
|
+
roomControlInfo: QueryHotelRoomDetailResponseBodyResultRoomControlInfo,
|
|
12330
|
+
roomNo: 'string',
|
|
12331
|
+
roomServiceInfo: QueryHotelRoomDetailResponseBodyResultRoomServiceInfo,
|
|
12200
12332
|
};
|
|
12201
12333
|
}
|
|
12202
12334
|
|
|
@@ -12951,60 +13083,6 @@ export default class Client extends OpenApi {
|
|
|
12951
13083
|
return await this.addOrUpdateHotelSettingWithOptions(request, headers, runtime);
|
|
12952
13084
|
}
|
|
12953
13085
|
|
|
12954
|
-
async addOrUpdateNightModeWithOptions(tmpReq: AddOrUpdateNightModeRequest, headers: AddOrUpdateNightModeHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateNightModeResponse> {
|
|
12955
|
-
Util.validateModel(tmpReq);
|
|
12956
|
-
let request = new AddOrUpdateNightModeShrinkRequest({ });
|
|
12957
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
12958
|
-
if (!Util.isUnset(tmpReq.nightMode)) {
|
|
12959
|
-
request.nightModeShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nightMode, "NightMode", "json");
|
|
12960
|
-
}
|
|
12961
|
-
|
|
12962
|
-
let body : {[key: string ]: any} = { };
|
|
12963
|
-
if (!Util.isUnset(request.hotelId)) {
|
|
12964
|
-
body["HotelId"] = request.hotelId;
|
|
12965
|
-
}
|
|
12966
|
-
|
|
12967
|
-
if (!Util.isUnset(request.nightModeShrink)) {
|
|
12968
|
-
body["NightMode"] = request.nightModeShrink;
|
|
12969
|
-
}
|
|
12970
|
-
|
|
12971
|
-
let realHeaders : {[key: string ]: string} = { };
|
|
12972
|
-
if (!Util.isUnset(headers.commonHeaders)) {
|
|
12973
|
-
realHeaders = headers.commonHeaders;
|
|
12974
|
-
}
|
|
12975
|
-
|
|
12976
|
-
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
12977
|
-
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
12978
|
-
}
|
|
12979
|
-
|
|
12980
|
-
if (!Util.isUnset(headers.authorization)) {
|
|
12981
|
-
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
12982
|
-
}
|
|
12983
|
-
|
|
12984
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
12985
|
-
headers: realHeaders,
|
|
12986
|
-
body: OpenApiUtil.parseToMap(body),
|
|
12987
|
-
});
|
|
12988
|
-
let params = new $OpenApi.Params({
|
|
12989
|
-
action: "AddOrUpdateNightMode",
|
|
12990
|
-
version: "ip_1.0",
|
|
12991
|
-
protocol: "HTTPS",
|
|
12992
|
-
pathname: `/v1.0/ip/addOrUpdateNightMode`,
|
|
12993
|
-
method: "POST",
|
|
12994
|
-
authType: "AK",
|
|
12995
|
-
style: "ROA",
|
|
12996
|
-
reqBodyType: "formData",
|
|
12997
|
-
bodyType: "json",
|
|
12998
|
-
});
|
|
12999
|
-
return $tea.cast<AddOrUpdateNightModeResponse>(await this.callApi(params, req, runtime), new AddOrUpdateNightModeResponse({}));
|
|
13000
|
-
}
|
|
13001
|
-
|
|
13002
|
-
async addOrUpdateNightMode(request: AddOrUpdateNightModeRequest): Promise<AddOrUpdateNightModeResponse> {
|
|
13003
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
13004
|
-
let headers = new AddOrUpdateNightModeHeaders({ });
|
|
13005
|
-
return await this.addOrUpdateNightModeWithOptions(request, headers, runtime);
|
|
13006
|
-
}
|
|
13007
|
-
|
|
13008
13086
|
async addOrUpdateScreenSaverWithOptions(tmpReq: AddOrUpdateScreenSaverRequest, headers: AddOrUpdateScreenSaverHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateScreenSaverResponse> {
|
|
13009
13087
|
Util.validateModel(tmpReq);
|
|
13010
13088
|
let request = new AddOrUpdateScreenSaverShrinkRequest({ });
|
|
@@ -13373,8 +13451,14 @@ export default class Client extends OpenApi {
|
|
|
13373
13451
|
return await this.childAccountAuthWithOptions(request, headers, runtime);
|
|
13374
13452
|
}
|
|
13375
13453
|
|
|
13376
|
-
async createHotelWithOptions(
|
|
13377
|
-
Util.validateModel(
|
|
13454
|
+
async createHotelWithOptions(tmpReq: CreateHotelRequest, headers: CreateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<CreateHotelResponse> {
|
|
13455
|
+
Util.validateModel(tmpReq);
|
|
13456
|
+
let request = new CreateHotelShrinkRequest({ });
|
|
13457
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
13458
|
+
if (!Util.isUnset(tmpReq.relatedPks)) {
|
|
13459
|
+
request.relatedPksShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
|
|
13460
|
+
}
|
|
13461
|
+
|
|
13378
13462
|
let body : {[key: string ]: any} = { };
|
|
13379
13463
|
if (!Util.isUnset(request.appKey)) {
|
|
13380
13464
|
body["AppKey"] = request.appKey;
|
|
@@ -13404,6 +13488,10 @@ export default class Client extends OpenApi {
|
|
|
13404
13488
|
body["RelatedPk"] = request.relatedPk;
|
|
13405
13489
|
}
|
|
13406
13490
|
|
|
13491
|
+
if (!Util.isUnset(request.relatedPksShrink)) {
|
|
13492
|
+
body["RelatedPks"] = request.relatedPksShrink;
|
|
13493
|
+
}
|
|
13494
|
+
|
|
13407
13495
|
if (!Util.isUnset(request.remark)) {
|
|
13408
13496
|
body["Remark"] = request.remark;
|
|
13409
13497
|
}
|
|
@@ -15992,17 +16080,23 @@ export default class Client extends OpenApi {
|
|
|
15992
16080
|
return await this.queryDeviceStatusWithOptions(request, headers, runtime);
|
|
15993
16081
|
}
|
|
15994
16082
|
|
|
15995
|
-
async
|
|
15996
|
-
Util.validateModel(
|
|
15997
|
-
let
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
request.userInfoShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userInfo, "UserInfo", "json");
|
|
16083
|
+
async queryHotelRoomDetailWithOptions(request: QueryHotelRoomDetailRequest, headers: QueryHotelRoomDetailHeaders, runtime: $Util.RuntimeOptions): Promise<QueryHotelRoomDetailResponse> {
|
|
16084
|
+
Util.validateModel(request);
|
|
16085
|
+
let body : {[key: string ]: any} = { };
|
|
16086
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
16087
|
+
body["HotelId"] = request.hotelId;
|
|
16001
16088
|
}
|
|
16002
16089
|
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16090
|
+
if (!Util.isUnset(request.mac)) {
|
|
16091
|
+
body["Mac"] = request.mac;
|
|
16092
|
+
}
|
|
16093
|
+
|
|
16094
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
16095
|
+
body["RoomNo"] = request.roomNo;
|
|
16096
|
+
}
|
|
16097
|
+
|
|
16098
|
+
if (!Util.isUnset(request.uuid)) {
|
|
16099
|
+
body["Uuid"] = request.uuid;
|
|
16006
16100
|
}
|
|
16007
16101
|
|
|
16008
16102
|
let realHeaders : {[key: string ]: string} = { };
|
|
@@ -16020,26 +16114,26 @@ export default class Client extends OpenApi {
|
|
|
16020
16114
|
|
|
16021
16115
|
let req = new $OpenApi.OpenApiRequest({
|
|
16022
16116
|
headers: realHeaders,
|
|
16023
|
-
|
|
16117
|
+
body: OpenApiUtil.parseToMap(body),
|
|
16024
16118
|
});
|
|
16025
16119
|
let params = new $OpenApi.Params({
|
|
16026
|
-
action: "
|
|
16120
|
+
action: "QueryHotelRoomDetail",
|
|
16027
16121
|
version: "ip_1.0",
|
|
16028
16122
|
protocol: "HTTPS",
|
|
16029
|
-
pathname: `/v1.0/ip/
|
|
16123
|
+
pathname: `/v1.0/ip/queryHotelRoomDetail`,
|
|
16030
16124
|
method: "POST",
|
|
16031
16125
|
authType: "AK",
|
|
16032
16126
|
style: "ROA",
|
|
16033
|
-
reqBodyType: "
|
|
16127
|
+
reqBodyType: "formData",
|
|
16034
16128
|
bodyType: "json",
|
|
16035
16129
|
});
|
|
16036
|
-
return $tea.cast<
|
|
16130
|
+
return $tea.cast<QueryHotelRoomDetailResponse>(await this.callApi(params, req, runtime), new QueryHotelRoomDetailResponse({}));
|
|
16037
16131
|
}
|
|
16038
16132
|
|
|
16039
|
-
async
|
|
16133
|
+
async queryHotelRoomDetail(request: QueryHotelRoomDetailRequest): Promise<QueryHotelRoomDetailResponse> {
|
|
16040
16134
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16041
|
-
let headers = new
|
|
16042
|
-
return await this.
|
|
16135
|
+
let headers = new QueryHotelRoomDetailHeaders({ });
|
|
16136
|
+
return await this.queryHotelRoomDetailWithOptions(request, headers, runtime);
|
|
16043
16137
|
}
|
|
16044
16138
|
|
|
16045
16139
|
async queryRoomControlDevicesWithOptions(request: QueryRoomControlDevicesRequest, headers: QueryRoomControlDevicesHeaders, runtime: $Util.RuntimeOptions): Promise<QueryRoomControlDevicesResponse> {
|
|
@@ -16397,6 +16491,26 @@ export default class Client extends OpenApi {
|
|
|
16397
16491
|
body["Switch"] = request.switch;
|
|
16398
16492
|
}
|
|
16399
16493
|
|
|
16494
|
+
if (!Util.isUnset(request.fanSpeed)) {
|
|
16495
|
+
body["fanSpeed"] = request.fanSpeed;
|
|
16496
|
+
}
|
|
16497
|
+
|
|
16498
|
+
if (!Util.isUnset(request.mode)) {
|
|
16499
|
+
body["mode"] = request.mode;
|
|
16500
|
+
}
|
|
16501
|
+
|
|
16502
|
+
if (!Util.isUnset(request.roomTemperature)) {
|
|
16503
|
+
body["roomTemperature"] = request.roomTemperature;
|
|
16504
|
+
}
|
|
16505
|
+
|
|
16506
|
+
if (!Util.isUnset(request.temperature)) {
|
|
16507
|
+
body["temperature"] = request.temperature;
|
|
16508
|
+
}
|
|
16509
|
+
|
|
16510
|
+
if (!Util.isUnset(request.value)) {
|
|
16511
|
+
body["value"] = request.value;
|
|
16512
|
+
}
|
|
16513
|
+
|
|
16400
16514
|
let realHeaders : {[key: string ]: string} = { };
|
|
16401
16515
|
if (!Util.isUnset(headers.commonHeaders)) {
|
|
16402
16516
|
realHeaders = headers.commonHeaders;
|
|
@@ -16600,8 +16714,14 @@ export default class Client extends OpenApi {
|
|
|
16600
16714
|
return await this.updateCustomQAWithOptions(request, headers, runtime);
|
|
16601
16715
|
}
|
|
16602
16716
|
|
|
16603
|
-
async updateHotelWithOptions(
|
|
16604
|
-
Util.validateModel(
|
|
16717
|
+
async updateHotelWithOptions(tmpReq: UpdateHotelRequest, headers: UpdateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateHotelResponse> {
|
|
16718
|
+
Util.validateModel(tmpReq);
|
|
16719
|
+
let request = new UpdateHotelShrinkRequest({ });
|
|
16720
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
16721
|
+
if (!Util.isUnset(tmpReq.relatedPks)) {
|
|
16722
|
+
request.relatedPksShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
|
|
16723
|
+
}
|
|
16724
|
+
|
|
16605
16725
|
let body : {[key: string ]: any} = { };
|
|
16606
16726
|
if (!Util.isUnset(request.appKey)) {
|
|
16607
16727
|
body["AppKey"] = request.appKey;
|
|
@@ -16631,6 +16751,10 @@ export default class Client extends OpenApi {
|
|
|
16631
16751
|
body["PhoneNumber"] = request.phoneNumber;
|
|
16632
16752
|
}
|
|
16633
16753
|
|
|
16754
|
+
if (!Util.isUnset(request.relatedPksShrink)) {
|
|
16755
|
+
body["RelatedPks"] = request.relatedPksShrink;
|
|
16756
|
+
}
|
|
16757
|
+
|
|
16634
16758
|
if (!Util.isUnset(request.remark)) {
|
|
16635
16759
|
body["Remark"] = request.remark;
|
|
16636
16760
|
}
|