@alicloud/aligenieip_1_0 1.0.19 → 1.0.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/client.d.ts +57 -98
- package/dist/client.js +129 -182
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +175 -226
package/package.json
CHANGED
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,7 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1571
1449
|
hotelName?: string;
|
|
1572
1450
|
phoneNumber?: string;
|
|
1573
1451
|
relatedPk?: string;
|
|
1452
|
+
relatedPks?: string[];
|
|
1574
1453
|
remark?: string;
|
|
1575
1454
|
roomNum?: number;
|
|
1576
1455
|
tbOpenId?: string;
|
|
@@ -1583,6 +1462,7 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1583
1462
|
hotelName: 'HotelName',
|
|
1584
1463
|
phoneNumber: 'PhoneNumber',
|
|
1585
1464
|
relatedPk: 'RelatedPk',
|
|
1465
|
+
relatedPks: 'RelatedPks',
|
|
1586
1466
|
remark: 'Remark',
|
|
1587
1467
|
roomNum: 'RoomNum',
|
|
1588
1468
|
tbOpenId: 'TbOpenId',
|
|
@@ -1598,6 +1478,56 @@ export class CreateHotelRequest extends $tea.Model {
|
|
|
1598
1478
|
hotelName: 'string',
|
|
1599
1479
|
phoneNumber: 'string',
|
|
1600
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;
|
|
1502
|
+
remark?: string;
|
|
1503
|
+
roomNum?: number;
|
|
1504
|
+
tbOpenId?: string;
|
|
1505
|
+
static names(): { [key: string]: string } {
|
|
1506
|
+
return {
|
|
1507
|
+
appKey: 'AppKey',
|
|
1508
|
+
estOpenTime: 'EstOpenTime',
|
|
1509
|
+
hotelAddress: 'HotelAddress',
|
|
1510
|
+
hotelEmail: 'HotelEmail',
|
|
1511
|
+
hotelName: 'HotelName',
|
|
1512
|
+
phoneNumber: 'PhoneNumber',
|
|
1513
|
+
relatedPk: 'RelatedPk',
|
|
1514
|
+
relatedPksShrink: 'RelatedPks',
|
|
1515
|
+
remark: 'Remark',
|
|
1516
|
+
roomNum: 'RoomNum',
|
|
1517
|
+
tbOpenId: 'TbOpenId',
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
static types(): { [key: string]: any } {
|
|
1522
|
+
return {
|
|
1523
|
+
appKey: 'string',
|
|
1524
|
+
estOpenTime: 'string',
|
|
1525
|
+
hotelAddress: 'string',
|
|
1526
|
+
hotelEmail: 'string',
|
|
1527
|
+
hotelName: 'string',
|
|
1528
|
+
phoneNumber: 'string',
|
|
1529
|
+
relatedPk: 'string',
|
|
1530
|
+
relatedPksShrink: 'string',
|
|
1601
1531
|
remark: 'string',
|
|
1602
1532
|
roomNum: 'number',
|
|
1603
1533
|
tbOpenId: 'string',
|
|
@@ -8019,6 +7949,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8019
7949
|
number?: string;
|
|
8020
7950
|
roomNo?: string;
|
|
8021
7951
|
switch?: number;
|
|
7952
|
+
fanSpeed?: string;
|
|
7953
|
+
mode?: string;
|
|
7954
|
+
roomTemperature?: string;
|
|
7955
|
+
temperature?: string;
|
|
7956
|
+
value?: number;
|
|
8022
7957
|
static names(): { [key: string]: string } {
|
|
8023
7958
|
return {
|
|
8024
7959
|
categoryCnName: 'CategoryCnName',
|
|
@@ -8030,6 +7965,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8030
7965
|
number: 'Number',
|
|
8031
7966
|
roomNo: 'RoomNo',
|
|
8032
7967
|
switch: 'Switch',
|
|
7968
|
+
fanSpeed: 'fanSpeed',
|
|
7969
|
+
mode: 'mode',
|
|
7970
|
+
roomTemperature: 'roomTemperature',
|
|
7971
|
+
temperature: 'temperature',
|
|
7972
|
+
value: 'value',
|
|
8033
7973
|
};
|
|
8034
7974
|
}
|
|
8035
7975
|
|
|
@@ -8044,6 +7984,11 @@ export class SyncDeviceStatusWithAkRequest extends $tea.Model {
|
|
|
8044
7984
|
number: 'string',
|
|
8045
7985
|
roomNo: 'string',
|
|
8046
7986
|
switch: 'number',
|
|
7987
|
+
fanSpeed: 'string',
|
|
7988
|
+
mode: 'string',
|
|
7989
|
+
roomTemperature: 'string',
|
|
7990
|
+
temperature: 'string',
|
|
7991
|
+
value: 'number',
|
|
8047
7992
|
};
|
|
8048
7993
|
}
|
|
8049
7994
|
|
|
@@ -8414,6 +8359,7 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8414
8359
|
hotelId?: string;
|
|
8415
8360
|
hotelName?: string;
|
|
8416
8361
|
phoneNumber?: string;
|
|
8362
|
+
relatedPks?: string[];
|
|
8417
8363
|
remark?: string;
|
|
8418
8364
|
roomNum?: number;
|
|
8419
8365
|
tbOpenId?: string;
|
|
@@ -8426,6 +8372,7 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8426
8372
|
hotelId: 'HotelId',
|
|
8427
8373
|
hotelName: 'HotelName',
|
|
8428
8374
|
phoneNumber: 'PhoneNumber',
|
|
8375
|
+
relatedPks: 'RelatedPks',
|
|
8429
8376
|
remark: 'Remark',
|
|
8430
8377
|
roomNum: 'RoomNum',
|
|
8431
8378
|
tbOpenId: 'TbOpenId',
|
|
@@ -8441,6 +8388,56 @@ export class UpdateHotelRequest extends $tea.Model {
|
|
|
8441
8388
|
hotelId: 'string',
|
|
8442
8389
|
hotelName: 'string',
|
|
8443
8390
|
phoneNumber: 'string',
|
|
8391
|
+
relatedPks: { 'type': 'array', 'itemType': 'string' },
|
|
8392
|
+
remark: 'string',
|
|
8393
|
+
roomNum: 'number',
|
|
8394
|
+
tbOpenId: 'string',
|
|
8395
|
+
};
|
|
8396
|
+
}
|
|
8397
|
+
|
|
8398
|
+
constructor(map?: { [key: string]: any }) {
|
|
8399
|
+
super(map);
|
|
8400
|
+
}
|
|
8401
|
+
}
|
|
8402
|
+
|
|
8403
|
+
export class UpdateHotelShrinkRequest extends $tea.Model {
|
|
8404
|
+
appKey?: string;
|
|
8405
|
+
estOpenTime?: string;
|
|
8406
|
+
hotelAddress?: string;
|
|
8407
|
+
hotelEmail?: string;
|
|
8408
|
+
hotelId?: string;
|
|
8409
|
+
hotelName?: string;
|
|
8410
|
+
phoneNumber?: string;
|
|
8411
|
+
relatedPksShrink?: string;
|
|
8412
|
+
remark?: string;
|
|
8413
|
+
roomNum?: number;
|
|
8414
|
+
tbOpenId?: string;
|
|
8415
|
+
static names(): { [key: string]: string } {
|
|
8416
|
+
return {
|
|
8417
|
+
appKey: 'AppKey',
|
|
8418
|
+
estOpenTime: 'EstOpenTime',
|
|
8419
|
+
hotelAddress: 'HotelAddress',
|
|
8420
|
+
hotelEmail: 'HotelEmail',
|
|
8421
|
+
hotelId: 'HotelId',
|
|
8422
|
+
hotelName: 'HotelName',
|
|
8423
|
+
phoneNumber: 'PhoneNumber',
|
|
8424
|
+
relatedPksShrink: 'RelatedPks',
|
|
8425
|
+
remark: 'Remark',
|
|
8426
|
+
roomNum: 'RoomNum',
|
|
8427
|
+
tbOpenId: 'TbOpenId',
|
|
8428
|
+
};
|
|
8429
|
+
}
|
|
8430
|
+
|
|
8431
|
+
static types(): { [key: string]: any } {
|
|
8432
|
+
return {
|
|
8433
|
+
appKey: 'string',
|
|
8434
|
+
estOpenTime: 'string',
|
|
8435
|
+
hotelAddress: 'string',
|
|
8436
|
+
hotelEmail: 'string',
|
|
8437
|
+
hotelId: 'string',
|
|
8438
|
+
hotelName: 'string',
|
|
8439
|
+
phoneNumber: 'string',
|
|
8440
|
+
relatedPksShrink: 'string',
|
|
8444
8441
|
remark: 'string',
|
|
8445
8442
|
roomNum: 'number',
|
|
8446
8443
|
tbOpenId: 'string',
|
|
@@ -9224,52 +9221,18 @@ export class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
|
|
|
9224
9221
|
}
|
|
9225
9222
|
|
|
9226
9223
|
export class AddOrUpdateHotelSettingRequestNightMode extends $tea.Model {
|
|
9224
|
+
defaultBright?: string;
|
|
9225
|
+
defaultVolume?: string;
|
|
9227
9226
|
enable?: boolean;
|
|
9228
9227
|
end?: string;
|
|
9229
|
-
maxBright?: string;
|
|
9230
|
-
maxVolume?: string;
|
|
9231
|
-
standbyAction?: string;
|
|
9232
|
-
start?: string;
|
|
9233
|
-
static names(): { [key: string]: string } {
|
|
9234
|
-
return {
|
|
9235
|
-
enable: 'Enable',
|
|
9236
|
-
end: 'End',
|
|
9237
|
-
maxBright: 'MaxBright',
|
|
9238
|
-
maxVolume: 'MaxVolume',
|
|
9239
|
-
standbyAction: 'StandbyAction',
|
|
9240
|
-
start: 'Start',
|
|
9241
|
-
};
|
|
9242
|
-
}
|
|
9243
|
-
|
|
9244
|
-
static types(): { [key: string]: any } {
|
|
9245
|
-
return {
|
|
9246
|
-
enable: 'boolean',
|
|
9247
|
-
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
9228
|
standbyAction?: string;
|
|
9266
9229
|
start?: string;
|
|
9267
9230
|
static names(): { [key: string]: string } {
|
|
9268
9231
|
return {
|
|
9232
|
+
defaultBright: 'DefaultBright',
|
|
9233
|
+
defaultVolume: 'DefaultVolume',
|
|
9269
9234
|
enable: 'Enable',
|
|
9270
9235
|
end: 'End',
|
|
9271
|
-
maxBright: 'MaxBright',
|
|
9272
|
-
maxVolume: 'MaxVolume',
|
|
9273
9236
|
standbyAction: 'StandbyAction',
|
|
9274
9237
|
start: 'Start',
|
|
9275
9238
|
};
|
|
@@ -9277,10 +9240,10 @@ export class AddOrUpdateNightModeRequestNightMode extends $tea.Model {
|
|
|
9277
9240
|
|
|
9278
9241
|
static types(): { [key: string]: any } {
|
|
9279
9242
|
return {
|
|
9243
|
+
defaultBright: 'string',
|
|
9244
|
+
defaultVolume: 'string',
|
|
9280
9245
|
enable: 'boolean',
|
|
9281
9246
|
end: 'string',
|
|
9282
|
-
maxBright: 'string',
|
|
9283
|
-
maxVolume: 'string',
|
|
9284
9247
|
standbyAction: 'string',
|
|
9285
9248
|
start: 'string',
|
|
9286
9249
|
};
|
|
@@ -10362,18 +10325,18 @@ export class GetHotelSettingResponseBodyResultHotelScreenSaver extends $tea.Mode
|
|
|
10362
10325
|
}
|
|
10363
10326
|
|
|
10364
10327
|
export class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
|
|
10328
|
+
defaultBright?: string;
|
|
10329
|
+
defaultVolume?: string;
|
|
10365
10330
|
enable?: boolean;
|
|
10366
10331
|
end?: string;
|
|
10367
|
-
maxBright?: string;
|
|
10368
|
-
maxVolume?: string;
|
|
10369
10332
|
standbyAction?: string;
|
|
10370
10333
|
start?: string;
|
|
10371
10334
|
static names(): { [key: string]: string } {
|
|
10372
10335
|
return {
|
|
10336
|
+
defaultBright: 'DefaultBright',
|
|
10337
|
+
defaultVolume: 'DefaultVolume',
|
|
10373
10338
|
enable: 'Enable',
|
|
10374
10339
|
end: 'End',
|
|
10375
|
-
maxBright: 'MaxBright',
|
|
10376
|
-
maxVolume: 'MaxVolume',
|
|
10377
10340
|
standbyAction: 'StandbyAction',
|
|
10378
10341
|
start: 'Start',
|
|
10379
10342
|
};
|
|
@@ -10381,10 +10344,10 @@ export class GetHotelSettingResponseBodyResultNightMode extends $tea.Model {
|
|
|
10381
10344
|
|
|
10382
10345
|
static types(): { [key: string]: any } {
|
|
10383
10346
|
return {
|
|
10347
|
+
defaultBright: 'string',
|
|
10348
|
+
defaultVolume: 'string',
|
|
10384
10349
|
enable: 'boolean',
|
|
10385
10350
|
end: 'string',
|
|
10386
|
-
maxBright: 'string',
|
|
10387
|
-
maxVolume: 'string',
|
|
10388
10351
|
standbyAction: 'string',
|
|
10389
10352
|
start: 'string',
|
|
10390
10353
|
};
|
|
@@ -12951,60 +12914,6 @@ export default class Client extends OpenApi {
|
|
|
12951
12914
|
return await this.addOrUpdateHotelSettingWithOptions(request, headers, runtime);
|
|
12952
12915
|
}
|
|
12953
12916
|
|
|
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
12917
|
async addOrUpdateScreenSaverWithOptions(tmpReq: AddOrUpdateScreenSaverRequest, headers: AddOrUpdateScreenSaverHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateScreenSaverResponse> {
|
|
13009
12918
|
Util.validateModel(tmpReq);
|
|
13010
12919
|
let request = new AddOrUpdateScreenSaverShrinkRequest({ });
|
|
@@ -13373,8 +13282,14 @@ export default class Client extends OpenApi {
|
|
|
13373
13282
|
return await this.childAccountAuthWithOptions(request, headers, runtime);
|
|
13374
13283
|
}
|
|
13375
13284
|
|
|
13376
|
-
async createHotelWithOptions(
|
|
13377
|
-
Util.validateModel(
|
|
13285
|
+
async createHotelWithOptions(tmpReq: CreateHotelRequest, headers: CreateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<CreateHotelResponse> {
|
|
13286
|
+
Util.validateModel(tmpReq);
|
|
13287
|
+
let request = new CreateHotelShrinkRequest({ });
|
|
13288
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
13289
|
+
if (!Util.isUnset(tmpReq.relatedPks)) {
|
|
13290
|
+
request.relatedPksShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
|
|
13291
|
+
}
|
|
13292
|
+
|
|
13378
13293
|
let body : {[key: string ]: any} = { };
|
|
13379
13294
|
if (!Util.isUnset(request.appKey)) {
|
|
13380
13295
|
body["AppKey"] = request.appKey;
|
|
@@ -13404,6 +13319,10 @@ export default class Client extends OpenApi {
|
|
|
13404
13319
|
body["RelatedPk"] = request.relatedPk;
|
|
13405
13320
|
}
|
|
13406
13321
|
|
|
13322
|
+
if (!Util.isUnset(request.relatedPksShrink)) {
|
|
13323
|
+
body["RelatedPks"] = request.relatedPksShrink;
|
|
13324
|
+
}
|
|
13325
|
+
|
|
13407
13326
|
if (!Util.isUnset(request.remark)) {
|
|
13408
13327
|
body["Remark"] = request.remark;
|
|
13409
13328
|
}
|
|
@@ -16397,6 +16316,26 @@ export default class Client extends OpenApi {
|
|
|
16397
16316
|
body["Switch"] = request.switch;
|
|
16398
16317
|
}
|
|
16399
16318
|
|
|
16319
|
+
if (!Util.isUnset(request.fanSpeed)) {
|
|
16320
|
+
body["fanSpeed"] = request.fanSpeed;
|
|
16321
|
+
}
|
|
16322
|
+
|
|
16323
|
+
if (!Util.isUnset(request.mode)) {
|
|
16324
|
+
body["mode"] = request.mode;
|
|
16325
|
+
}
|
|
16326
|
+
|
|
16327
|
+
if (!Util.isUnset(request.roomTemperature)) {
|
|
16328
|
+
body["roomTemperature"] = request.roomTemperature;
|
|
16329
|
+
}
|
|
16330
|
+
|
|
16331
|
+
if (!Util.isUnset(request.temperature)) {
|
|
16332
|
+
body["temperature"] = request.temperature;
|
|
16333
|
+
}
|
|
16334
|
+
|
|
16335
|
+
if (!Util.isUnset(request.value)) {
|
|
16336
|
+
body["value"] = request.value;
|
|
16337
|
+
}
|
|
16338
|
+
|
|
16400
16339
|
let realHeaders : {[key: string ]: string} = { };
|
|
16401
16340
|
if (!Util.isUnset(headers.commonHeaders)) {
|
|
16402
16341
|
realHeaders = headers.commonHeaders;
|
|
@@ -16600,8 +16539,14 @@ export default class Client extends OpenApi {
|
|
|
16600
16539
|
return await this.updateCustomQAWithOptions(request, headers, runtime);
|
|
16601
16540
|
}
|
|
16602
16541
|
|
|
16603
|
-
async updateHotelWithOptions(
|
|
16604
|
-
Util.validateModel(
|
|
16542
|
+
async updateHotelWithOptions(tmpReq: UpdateHotelRequest, headers: UpdateHotelHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateHotelResponse> {
|
|
16543
|
+
Util.validateModel(tmpReq);
|
|
16544
|
+
let request = new UpdateHotelShrinkRequest({ });
|
|
16545
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
16546
|
+
if (!Util.isUnset(tmpReq.relatedPks)) {
|
|
16547
|
+
request.relatedPksShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.relatedPks, "RelatedPks", "json");
|
|
16548
|
+
}
|
|
16549
|
+
|
|
16605
16550
|
let body : {[key: string ]: any} = { };
|
|
16606
16551
|
if (!Util.isUnset(request.appKey)) {
|
|
16607
16552
|
body["AppKey"] = request.appKey;
|
|
@@ -16631,6 +16576,10 @@ export default class Client extends OpenApi {
|
|
|
16631
16576
|
body["PhoneNumber"] = request.phoneNumber;
|
|
16632
16577
|
}
|
|
16633
16578
|
|
|
16579
|
+
if (!Util.isUnset(request.relatedPksShrink)) {
|
|
16580
|
+
body["RelatedPks"] = request.relatedPksShrink;
|
|
16581
|
+
}
|
|
16582
|
+
|
|
16634
16583
|
if (!Util.isUnset(request.remark)) {
|
|
16635
16584
|
body["Remark"] = request.remark;
|
|
16636
16585
|
}
|