@alicloud/aligenieip_1_0 2.1.0 → 2.2.0
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 +214 -0
- package/dist/client.js +356 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +448 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1443,6 +1443,7 @@ export class ControlRoomDeviceHeaders extends $tea.Model {
|
|
|
1443
1443
|
|
|
1444
1444
|
export class ControlRoomDeviceRequest extends $tea.Model {
|
|
1445
1445
|
cmd?: string;
|
|
1446
|
+
deviceIndex?: number;
|
|
1446
1447
|
deviceNumber?: string;
|
|
1447
1448
|
hotelId?: string;
|
|
1448
1449
|
properties?: { [key: string]: string };
|
|
@@ -1450,6 +1451,7 @@ export class ControlRoomDeviceRequest extends $tea.Model {
|
|
|
1450
1451
|
static names(): { [key: string]: string } {
|
|
1451
1452
|
return {
|
|
1452
1453
|
cmd: 'Cmd',
|
|
1454
|
+
deviceIndex: 'DeviceIndex',
|
|
1453
1455
|
deviceNumber: 'DeviceNumber',
|
|
1454
1456
|
hotelId: 'HotelId',
|
|
1455
1457
|
properties: 'Properties',
|
|
@@ -1460,6 +1462,7 @@ export class ControlRoomDeviceRequest extends $tea.Model {
|
|
|
1460
1462
|
static types(): { [key: string]: any } {
|
|
1461
1463
|
return {
|
|
1462
1464
|
cmd: 'string',
|
|
1465
|
+
deviceIndex: 'number',
|
|
1463
1466
|
deviceNumber: 'string',
|
|
1464
1467
|
hotelId: 'string',
|
|
1465
1468
|
properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
@@ -1474,6 +1477,7 @@ export class ControlRoomDeviceRequest extends $tea.Model {
|
|
|
1474
1477
|
|
|
1475
1478
|
export class ControlRoomDeviceShrinkRequest extends $tea.Model {
|
|
1476
1479
|
cmd?: string;
|
|
1480
|
+
deviceIndex?: number;
|
|
1477
1481
|
deviceNumber?: string;
|
|
1478
1482
|
hotelId?: string;
|
|
1479
1483
|
propertiesShrink?: string;
|
|
@@ -1481,6 +1485,7 @@ export class ControlRoomDeviceShrinkRequest extends $tea.Model {
|
|
|
1481
1485
|
static names(): { [key: string]: string } {
|
|
1482
1486
|
return {
|
|
1483
1487
|
cmd: 'Cmd',
|
|
1488
|
+
deviceIndex: 'DeviceIndex',
|
|
1484
1489
|
deviceNumber: 'DeviceNumber',
|
|
1485
1490
|
hotelId: 'HotelId',
|
|
1486
1491
|
propertiesShrink: 'Properties',
|
|
@@ -1491,6 +1496,7 @@ export class ControlRoomDeviceShrinkRequest extends $tea.Model {
|
|
|
1491
1496
|
static types(): { [key: string]: any } {
|
|
1492
1497
|
return {
|
|
1493
1498
|
cmd: 'string',
|
|
1499
|
+
deviceIndex: 'number',
|
|
1494
1500
|
deviceNumber: 'string',
|
|
1495
1501
|
hotelId: 'string',
|
|
1496
1502
|
propertiesShrink: 'string',
|
|
@@ -5062,6 +5068,134 @@ export class ImportRoomControlDevicesResponse extends $tea.Model {
|
|
|
5062
5068
|
}
|
|
5063
5069
|
}
|
|
5064
5070
|
|
|
5071
|
+
export class ImportRoomGenieScenesHeaders extends $tea.Model {
|
|
5072
|
+
commonHeaders?: { [key: string]: string };
|
|
5073
|
+
xAcsAligenieAccessToken?: string;
|
|
5074
|
+
authorization?: string;
|
|
5075
|
+
static names(): { [key: string]: string } {
|
|
5076
|
+
return {
|
|
5077
|
+
commonHeaders: 'commonHeaders',
|
|
5078
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
5079
|
+
authorization: 'Authorization',
|
|
5080
|
+
};
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
static types(): { [key: string]: any } {
|
|
5084
|
+
return {
|
|
5085
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5086
|
+
xAcsAligenieAccessToken: 'string',
|
|
5087
|
+
authorization: 'string',
|
|
5088
|
+
};
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
constructor(map?: { [key: string]: any }) {
|
|
5092
|
+
super(map);
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5095
|
+
|
|
5096
|
+
export class ImportRoomGenieScenesRequest extends $tea.Model {
|
|
5097
|
+
hotelId?: string;
|
|
5098
|
+
roomNo?: string;
|
|
5099
|
+
sceneList?: ImportRoomGenieScenesRequestSceneList[];
|
|
5100
|
+
static names(): { [key: string]: string } {
|
|
5101
|
+
return {
|
|
5102
|
+
hotelId: 'HotelId',
|
|
5103
|
+
roomNo: 'RoomNo',
|
|
5104
|
+
sceneList: 'SceneList',
|
|
5105
|
+
};
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
static types(): { [key: string]: any } {
|
|
5109
|
+
return {
|
|
5110
|
+
hotelId: 'string',
|
|
5111
|
+
roomNo: 'string',
|
|
5112
|
+
sceneList: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneList },
|
|
5113
|
+
};
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
constructor(map?: { [key: string]: any }) {
|
|
5117
|
+
super(map);
|
|
5118
|
+
}
|
|
5119
|
+
}
|
|
5120
|
+
|
|
5121
|
+
export class ImportRoomGenieScenesShrinkRequest extends $tea.Model {
|
|
5122
|
+
hotelId?: string;
|
|
5123
|
+
roomNo?: string;
|
|
5124
|
+
sceneListShrink?: string;
|
|
5125
|
+
static names(): { [key: string]: string } {
|
|
5126
|
+
return {
|
|
5127
|
+
hotelId: 'HotelId',
|
|
5128
|
+
roomNo: 'RoomNo',
|
|
5129
|
+
sceneListShrink: 'SceneList',
|
|
5130
|
+
};
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
static types(): { [key: string]: any } {
|
|
5134
|
+
return {
|
|
5135
|
+
hotelId: 'string',
|
|
5136
|
+
roomNo: 'string',
|
|
5137
|
+
sceneListShrink: 'string',
|
|
5138
|
+
};
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
constructor(map?: { [key: string]: any }) {
|
|
5142
|
+
super(map);
|
|
5143
|
+
}
|
|
5144
|
+
}
|
|
5145
|
+
|
|
5146
|
+
export class ImportRoomGenieScenesResponseBody extends $tea.Model {
|
|
5147
|
+
message?: string;
|
|
5148
|
+
requestId?: string;
|
|
5149
|
+
result?: boolean;
|
|
5150
|
+
statusCode?: number;
|
|
5151
|
+
static names(): { [key: string]: string } {
|
|
5152
|
+
return {
|
|
5153
|
+
message: 'Message',
|
|
5154
|
+
requestId: 'RequestId',
|
|
5155
|
+
result: 'Result',
|
|
5156
|
+
statusCode: 'StatusCode',
|
|
5157
|
+
};
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
static types(): { [key: string]: any } {
|
|
5161
|
+
return {
|
|
5162
|
+
message: 'string',
|
|
5163
|
+
requestId: 'string',
|
|
5164
|
+
result: 'boolean',
|
|
5165
|
+
statusCode: 'number',
|
|
5166
|
+
};
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
constructor(map?: { [key: string]: any }) {
|
|
5170
|
+
super(map);
|
|
5171
|
+
}
|
|
5172
|
+
}
|
|
5173
|
+
|
|
5174
|
+
export class ImportRoomGenieScenesResponse extends $tea.Model {
|
|
5175
|
+
headers: { [key: string]: string };
|
|
5176
|
+
statusCode: number;
|
|
5177
|
+
body: ImportRoomGenieScenesResponseBody;
|
|
5178
|
+
static names(): { [key: string]: string } {
|
|
5179
|
+
return {
|
|
5180
|
+
headers: 'headers',
|
|
5181
|
+
statusCode: 'statusCode',
|
|
5182
|
+
body: 'body',
|
|
5183
|
+
};
|
|
5184
|
+
}
|
|
5185
|
+
|
|
5186
|
+
static types(): { [key: string]: any } {
|
|
5187
|
+
return {
|
|
5188
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5189
|
+
statusCode: 'number',
|
|
5190
|
+
body: ImportRoomGenieScenesResponseBody,
|
|
5191
|
+
};
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
constructor(map?: { [key: string]: any }) {
|
|
5195
|
+
super(map);
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5065
5199
|
export class InsertHotelSceneBookItemHeaders extends $tea.Model {
|
|
5066
5200
|
commonHeaders?: { [key: string]: string };
|
|
5067
5201
|
xAcsAligenieAccessToken?: string;
|
|
@@ -11811,16 +11945,66 @@ export class ImportHotelConfigRequestImportHotelConfig extends $tea.Model {
|
|
|
11811
11945
|
}
|
|
11812
11946
|
}
|
|
11813
11947
|
|
|
11948
|
+
export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
11949
|
+
category?: string;
|
|
11950
|
+
deviceIndex?: number;
|
|
11951
|
+
deviceName?: string;
|
|
11952
|
+
location?: string;
|
|
11953
|
+
static names(): { [key: string]: string } {
|
|
11954
|
+
return {
|
|
11955
|
+
category: 'Category',
|
|
11956
|
+
deviceIndex: 'DeviceIndex',
|
|
11957
|
+
deviceName: 'DeviceName',
|
|
11958
|
+
location: 'Location',
|
|
11959
|
+
};
|
|
11960
|
+
}
|
|
11961
|
+
|
|
11962
|
+
static types(): { [key: string]: any } {
|
|
11963
|
+
return {
|
|
11964
|
+
category: 'string',
|
|
11965
|
+
deviceIndex: 'number',
|
|
11966
|
+
deviceName: 'string',
|
|
11967
|
+
location: 'string',
|
|
11968
|
+
};
|
|
11969
|
+
}
|
|
11970
|
+
|
|
11971
|
+
constructor(map?: { [key: string]: any }) {
|
|
11972
|
+
super(map);
|
|
11973
|
+
}
|
|
11974
|
+
}
|
|
11975
|
+
|
|
11976
|
+
export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt extends $tea.Model {
|
|
11977
|
+
switchList?: ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList[];
|
|
11978
|
+
static names(): { [key: string]: string } {
|
|
11979
|
+
return {
|
|
11980
|
+
switchList: 'SwitchList',
|
|
11981
|
+
};
|
|
11982
|
+
}
|
|
11983
|
+
|
|
11984
|
+
static types(): { [key: string]: any } {
|
|
11985
|
+
return {
|
|
11986
|
+
switchList: { 'type': 'array', 'itemType': ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList },
|
|
11987
|
+
};
|
|
11988
|
+
}
|
|
11989
|
+
|
|
11990
|
+
constructor(map?: { [key: string]: any }) {
|
|
11991
|
+
super(map);
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
|
|
11814
11995
|
export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
11815
11996
|
brand?: string;
|
|
11816
11997
|
city?: string;
|
|
11817
11998
|
connectType?: string;
|
|
11818
11999
|
deviceName?: string;
|
|
12000
|
+
dn?: string;
|
|
11819
12001
|
infraredId?: string;
|
|
11820
12002
|
infraredIndex?: string;
|
|
11821
12003
|
infraredVersion?: string;
|
|
12004
|
+
multiKeySwitchExt?: ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt;
|
|
11822
12005
|
name?: string;
|
|
11823
12006
|
number?: string;
|
|
12007
|
+
pk?: string;
|
|
11824
12008
|
province?: string;
|
|
11825
12009
|
serviceProvider?: string;
|
|
11826
12010
|
static names(): { [key: string]: string } {
|
|
@@ -11829,11 +12013,14 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
|
|
|
11829
12013
|
city: 'City',
|
|
11830
12014
|
connectType: 'ConnectType',
|
|
11831
12015
|
deviceName: 'DeviceName',
|
|
12016
|
+
dn: 'Dn',
|
|
11832
12017
|
infraredId: 'InfraredId',
|
|
11833
12018
|
infraredIndex: 'InfraredIndex',
|
|
11834
12019
|
infraredVersion: 'InfraredVersion',
|
|
12020
|
+
multiKeySwitchExt: 'MultiKeySwitchExt',
|
|
11835
12021
|
name: 'Name',
|
|
11836
12022
|
number: 'Number',
|
|
12023
|
+
pk: 'Pk',
|
|
11837
12024
|
province: 'Province',
|
|
11838
12025
|
serviceProvider: 'ServiceProvider',
|
|
11839
12026
|
};
|
|
@@ -11845,11 +12032,14 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
|
|
|
11845
12032
|
city: 'string',
|
|
11846
12033
|
connectType: 'string',
|
|
11847
12034
|
deviceName: 'string',
|
|
12035
|
+
dn: 'string',
|
|
11848
12036
|
infraredId: 'string',
|
|
11849
12037
|
infraredIndex: 'string',
|
|
11850
12038
|
infraredVersion: 'string',
|
|
12039
|
+
multiKeySwitchExt: ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt,
|
|
11851
12040
|
name: 'string',
|
|
11852
12041
|
number: 'string',
|
|
12042
|
+
pk: 'string',
|
|
11853
12043
|
province: 'string',
|
|
11854
12044
|
serviceProvider: 'string',
|
|
11855
12045
|
};
|
|
@@ -11885,6 +12075,137 @@ export class ImportRoomControlDevicesRequestLocationDevices extends $tea.Model {
|
|
|
11885
12075
|
}
|
|
11886
12076
|
}
|
|
11887
12077
|
|
|
12078
|
+
export class ImportRoomGenieScenesRequestSceneListActionsAttributeValues extends $tea.Model {
|
|
12079
|
+
attributeName?: string;
|
|
12080
|
+
attributeValue?: string;
|
|
12081
|
+
static names(): { [key: string]: string } {
|
|
12082
|
+
return {
|
|
12083
|
+
attributeName: 'AttributeName',
|
|
12084
|
+
attributeValue: 'AttributeValue',
|
|
12085
|
+
};
|
|
12086
|
+
}
|
|
12087
|
+
|
|
12088
|
+
static types(): { [key: string]: any } {
|
|
12089
|
+
return {
|
|
12090
|
+
attributeName: 'string',
|
|
12091
|
+
attributeValue: 'string',
|
|
12092
|
+
};
|
|
12093
|
+
}
|
|
12094
|
+
|
|
12095
|
+
constructor(map?: { [key: string]: any }) {
|
|
12096
|
+
super(map);
|
|
12097
|
+
}
|
|
12098
|
+
}
|
|
12099
|
+
|
|
12100
|
+
export class ImportRoomGenieScenesRequestSceneListActionsDevice extends $tea.Model {
|
|
12101
|
+
category?: string;
|
|
12102
|
+
deviceIndex?: number;
|
|
12103
|
+
deviceNumber?: string;
|
|
12104
|
+
type?: number;
|
|
12105
|
+
static names(): { [key: string]: string } {
|
|
12106
|
+
return {
|
|
12107
|
+
category: 'Category',
|
|
12108
|
+
deviceIndex: 'DeviceIndex',
|
|
12109
|
+
deviceNumber: 'DeviceNumber',
|
|
12110
|
+
type: 'Type',
|
|
12111
|
+
};
|
|
12112
|
+
}
|
|
12113
|
+
|
|
12114
|
+
static types(): { [key: string]: any } {
|
|
12115
|
+
return {
|
|
12116
|
+
category: 'string',
|
|
12117
|
+
deviceIndex: 'number',
|
|
12118
|
+
deviceNumber: 'string',
|
|
12119
|
+
type: 'number',
|
|
12120
|
+
};
|
|
12121
|
+
}
|
|
12122
|
+
|
|
12123
|
+
constructor(map?: { [key: string]: any }) {
|
|
12124
|
+
super(map);
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12127
|
+
|
|
12128
|
+
export class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
|
|
12129
|
+
attributeValues?: ImportRoomGenieScenesRequestSceneListActionsAttributeValues[];
|
|
12130
|
+
device?: ImportRoomGenieScenesRequestSceneListActionsDevice;
|
|
12131
|
+
static names(): { [key: string]: string } {
|
|
12132
|
+
return {
|
|
12133
|
+
attributeValues: 'AttributeValues',
|
|
12134
|
+
device: 'Device',
|
|
12135
|
+
};
|
|
12136
|
+
}
|
|
12137
|
+
|
|
12138
|
+
static types(): { [key: string]: any } {
|
|
12139
|
+
return {
|
|
12140
|
+
attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
|
|
12141
|
+
device: ImportRoomGenieScenesRequestSceneListActionsDevice,
|
|
12142
|
+
};
|
|
12143
|
+
}
|
|
12144
|
+
|
|
12145
|
+
constructor(map?: { [key: string]: any }) {
|
|
12146
|
+
super(map);
|
|
12147
|
+
}
|
|
12148
|
+
}
|
|
12149
|
+
|
|
12150
|
+
export class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
|
|
12151
|
+
corpusList?: string[];
|
|
12152
|
+
type?: number;
|
|
12153
|
+
static names(): { [key: string]: string } {
|
|
12154
|
+
return {
|
|
12155
|
+
corpusList: 'CorpusList',
|
|
12156
|
+
type: 'Type',
|
|
12157
|
+
};
|
|
12158
|
+
}
|
|
12159
|
+
|
|
12160
|
+
static types(): { [key: string]: any } {
|
|
12161
|
+
return {
|
|
12162
|
+
corpusList: { 'type': 'array', 'itemType': 'string' },
|
|
12163
|
+
type: 'number',
|
|
12164
|
+
};
|
|
12165
|
+
}
|
|
12166
|
+
|
|
12167
|
+
constructor(map?: { [key: string]: any }) {
|
|
12168
|
+
super(map);
|
|
12169
|
+
}
|
|
12170
|
+
}
|
|
12171
|
+
|
|
12172
|
+
export class ImportRoomGenieScenesRequestSceneList extends $tea.Model {
|
|
12173
|
+
actions?: ImportRoomGenieScenesRequestSceneListActions[];
|
|
12174
|
+
description?: string;
|
|
12175
|
+
display?: boolean;
|
|
12176
|
+
icon?: string;
|
|
12177
|
+
sceneName?: string;
|
|
12178
|
+
triggerLogical?: number;
|
|
12179
|
+
triggers?: ImportRoomGenieScenesRequestSceneListTriggers[];
|
|
12180
|
+
static names(): { [key: string]: string } {
|
|
12181
|
+
return {
|
|
12182
|
+
actions: 'Actions',
|
|
12183
|
+
description: 'Description',
|
|
12184
|
+
display: 'Display',
|
|
12185
|
+
icon: 'Icon',
|
|
12186
|
+
sceneName: 'SceneName',
|
|
12187
|
+
triggerLogical: 'TriggerLogical',
|
|
12188
|
+
triggers: 'Triggers',
|
|
12189
|
+
};
|
|
12190
|
+
}
|
|
12191
|
+
|
|
12192
|
+
static types(): { [key: string]: any } {
|
|
12193
|
+
return {
|
|
12194
|
+
actions: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActions },
|
|
12195
|
+
description: 'string',
|
|
12196
|
+
display: 'boolean',
|
|
12197
|
+
icon: 'string',
|
|
12198
|
+
sceneName: 'string',
|
|
12199
|
+
triggerLogical: 'number',
|
|
12200
|
+
triggers: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggers },
|
|
12201
|
+
};
|
|
12202
|
+
}
|
|
12203
|
+
|
|
12204
|
+
constructor(map?: { [key: string]: any }) {
|
|
12205
|
+
super(map);
|
|
12206
|
+
}
|
|
12207
|
+
}
|
|
12208
|
+
|
|
11888
12209
|
export class InsertHotelSceneBookItemRequestAddHotelSceneItemReq extends $tea.Model {
|
|
11889
12210
|
icon?: string;
|
|
11890
12211
|
name?: string;
|
|
@@ -13749,26 +14070,91 @@ export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
|
|
|
13749
14070
|
}
|
|
13750
14071
|
}
|
|
13751
14072
|
|
|
14073
|
+
export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
14074
|
+
category?: string;
|
|
14075
|
+
deviceIndex?: number;
|
|
14076
|
+
deviceName?: string;
|
|
14077
|
+
deviceStatus?: string;
|
|
14078
|
+
elementCode?: string;
|
|
14079
|
+
location?: string;
|
|
14080
|
+
static names(): { [key: string]: string } {
|
|
14081
|
+
return {
|
|
14082
|
+
category: 'Category',
|
|
14083
|
+
deviceIndex: 'DeviceIndex',
|
|
14084
|
+
deviceName: 'DeviceName',
|
|
14085
|
+
deviceStatus: 'DeviceStatus',
|
|
14086
|
+
elementCode: 'ElementCode',
|
|
14087
|
+
location: 'Location',
|
|
14088
|
+
};
|
|
14089
|
+
}
|
|
14090
|
+
|
|
14091
|
+
static types(): { [key: string]: any } {
|
|
14092
|
+
return {
|
|
14093
|
+
category: 'string',
|
|
14094
|
+
deviceIndex: 'number',
|
|
14095
|
+
deviceName: 'string',
|
|
14096
|
+
deviceStatus: 'string',
|
|
14097
|
+
elementCode: 'string',
|
|
14098
|
+
location: 'string',
|
|
14099
|
+
};
|
|
14100
|
+
}
|
|
14101
|
+
|
|
14102
|
+
constructor(map?: { [key: string]: any }) {
|
|
14103
|
+
super(map);
|
|
14104
|
+
}
|
|
14105
|
+
}
|
|
14106
|
+
|
|
14107
|
+
export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt extends $tea.Model {
|
|
14108
|
+
switchList?: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList[];
|
|
14109
|
+
static names(): { [key: string]: string } {
|
|
14110
|
+
return {
|
|
14111
|
+
switchList: 'SwitchList',
|
|
14112
|
+
};
|
|
14113
|
+
}
|
|
14114
|
+
|
|
14115
|
+
static types(): { [key: string]: any } {
|
|
14116
|
+
return {
|
|
14117
|
+
switchList: { 'type': 'array', 'itemType': QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList },
|
|
14118
|
+
};
|
|
14119
|
+
}
|
|
14120
|
+
|
|
14121
|
+
constructor(map?: { [key: string]: any }) {
|
|
14122
|
+
super(map);
|
|
14123
|
+
}
|
|
14124
|
+
}
|
|
14125
|
+
|
|
13752
14126
|
export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
13753
14127
|
connectType?: string;
|
|
14128
|
+
DN?: string;
|
|
13754
14129
|
deviceName?: string;
|
|
14130
|
+
deviceStatus?: string;
|
|
14131
|
+
multiKeySwitchExt?: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt;
|
|
13755
14132
|
name?: string;
|
|
13756
14133
|
number?: string;
|
|
14134
|
+
PK?: string;
|
|
13757
14135
|
static names(): { [key: string]: string } {
|
|
13758
14136
|
return {
|
|
13759
14137
|
connectType: 'ConnectType',
|
|
14138
|
+
DN: 'DN',
|
|
13760
14139
|
deviceName: 'DeviceName',
|
|
14140
|
+
deviceStatus: 'DeviceStatus',
|
|
14141
|
+
multiKeySwitchExt: 'MultiKeySwitchExt',
|
|
13761
14142
|
name: 'Name',
|
|
13762
14143
|
number: 'Number',
|
|
14144
|
+
PK: 'PK',
|
|
13763
14145
|
};
|
|
13764
14146
|
}
|
|
13765
14147
|
|
|
13766
14148
|
static types(): { [key: string]: any } {
|
|
13767
14149
|
return {
|
|
13768
14150
|
connectType: 'string',
|
|
14151
|
+
DN: 'string',
|
|
13769
14152
|
deviceName: 'string',
|
|
14153
|
+
deviceStatus: 'string',
|
|
14154
|
+
multiKeySwitchExt: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt,
|
|
13770
14155
|
name: 'string',
|
|
13771
14156
|
number: 'string',
|
|
14157
|
+
PK: 'string',
|
|
13772
14158
|
};
|
|
13773
14159
|
}
|
|
13774
14160
|
|
|
@@ -14984,6 +15370,10 @@ export default class Client extends OpenApi {
|
|
|
14984
15370
|
body["Cmd"] = request.cmd;
|
|
14985
15371
|
}
|
|
14986
15372
|
|
|
15373
|
+
if (!Util.isUnset(request.deviceIndex)) {
|
|
15374
|
+
body["DeviceIndex"] = request.deviceIndex;
|
|
15375
|
+
}
|
|
15376
|
+
|
|
14987
15377
|
if (!Util.isUnset(request.deviceNumber)) {
|
|
14988
15378
|
body["DeviceNumber"] = request.deviceNumber;
|
|
14989
15379
|
}
|
|
@@ -16650,6 +17040,64 @@ export default class Client extends OpenApi {
|
|
|
16650
17040
|
return await this.importRoomControlDevicesWithOptions(request, headers, runtime);
|
|
16651
17041
|
}
|
|
16652
17042
|
|
|
17043
|
+
async importRoomGenieScenesWithOptions(tmpReq: ImportRoomGenieScenesRequest, headers: ImportRoomGenieScenesHeaders, runtime: $Util.RuntimeOptions): Promise<ImportRoomGenieScenesResponse> {
|
|
17044
|
+
Util.validateModel(tmpReq);
|
|
17045
|
+
let request = new ImportRoomGenieScenesShrinkRequest({ });
|
|
17046
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
17047
|
+
if (!Util.isUnset(tmpReq.sceneList)) {
|
|
17048
|
+
request.sceneListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sceneList, "SceneList", "json");
|
|
17049
|
+
}
|
|
17050
|
+
|
|
17051
|
+
let body : {[key: string ]: any} = { };
|
|
17052
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
17053
|
+
body["HotelId"] = request.hotelId;
|
|
17054
|
+
}
|
|
17055
|
+
|
|
17056
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
17057
|
+
body["RoomNo"] = request.roomNo;
|
|
17058
|
+
}
|
|
17059
|
+
|
|
17060
|
+
if (!Util.isUnset(request.sceneListShrink)) {
|
|
17061
|
+
body["SceneList"] = request.sceneListShrink;
|
|
17062
|
+
}
|
|
17063
|
+
|
|
17064
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
17065
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
17066
|
+
realHeaders = headers.commonHeaders;
|
|
17067
|
+
}
|
|
17068
|
+
|
|
17069
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
17070
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
17071
|
+
}
|
|
17072
|
+
|
|
17073
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
17074
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
17075
|
+
}
|
|
17076
|
+
|
|
17077
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17078
|
+
headers: realHeaders,
|
|
17079
|
+
body: OpenApiUtil.parseToMap(body),
|
|
17080
|
+
});
|
|
17081
|
+
let params = new $OpenApi.Params({
|
|
17082
|
+
action: "ImportRoomGenieScenes",
|
|
17083
|
+
version: "ip_1.0",
|
|
17084
|
+
protocol: "HTTPS",
|
|
17085
|
+
pathname: `/v1.0/ip/importRoomGenieScenes`,
|
|
17086
|
+
method: "POST",
|
|
17087
|
+
authType: "AK",
|
|
17088
|
+
style: "ROA",
|
|
17089
|
+
reqBodyType: "formData",
|
|
17090
|
+
bodyType: "json",
|
|
17091
|
+
});
|
|
17092
|
+
return $tea.cast<ImportRoomGenieScenesResponse>(await this.callApi(params, req, runtime), new ImportRoomGenieScenesResponse({}));
|
|
17093
|
+
}
|
|
17094
|
+
|
|
17095
|
+
async importRoomGenieScenes(request: ImportRoomGenieScenesRequest): Promise<ImportRoomGenieScenesResponse> {
|
|
17096
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17097
|
+
let headers = new ImportRoomGenieScenesHeaders({ });
|
|
17098
|
+
return await this.importRoomGenieScenesWithOptions(request, headers, runtime);
|
|
17099
|
+
}
|
|
17100
|
+
|
|
16653
17101
|
async insertHotelSceneBookItemWithOptions(tmpReq: InsertHotelSceneBookItemRequest, headers: InsertHotelSceneBookItemHeaders, runtime: $Util.RuntimeOptions): Promise<InsertHotelSceneBookItemResponse> {
|
|
16654
17102
|
Util.validateModel(tmpReq);
|
|
16655
17103
|
let request = new InsertHotelSceneBookItemShrinkRequest({ });
|