@alicloud/aligenieip_1_0 2.1.0 → 2.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/aligenieip_1_0",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -22,7 +22,7 @@
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
24
  "@alicloud/openapi-client": "^0.4.4",
25
- "@alicloud/openapi-util": "^0.3.1",
25
+ "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
28
28
  "files": [
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,196 @@ 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
+ reply?: string;
12132
+ type?: number;
12133
+ static names(): { [key: string]: string } {
12134
+ return {
12135
+ attributeValues: 'AttributeValues',
12136
+ device: 'Device',
12137
+ reply: 'Reply',
12138
+ type: 'Type',
12139
+ };
12140
+ }
12141
+
12142
+ static types(): { [key: string]: any } {
12143
+ return {
12144
+ attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
12145
+ device: ImportRoomGenieScenesRequestSceneListActionsDevice,
12146
+ reply: 'string',
12147
+ type: 'number',
12148
+ };
12149
+ }
12150
+
12151
+ constructor(map?: { [key: string]: any }) {
12152
+ super(map);
12153
+ }
12154
+ }
12155
+
12156
+ export class ImportRoomGenieScenesRequestSceneListTriggersAttributeValues extends $tea.Model {
12157
+ attributeName?: string;
12158
+ attributeValue?: string;
12159
+ static names(): { [key: string]: string } {
12160
+ return {
12161
+ attributeName: 'AttributeName',
12162
+ attributeValue: 'AttributeValue',
12163
+ };
12164
+ }
12165
+
12166
+ static types(): { [key: string]: any } {
12167
+ return {
12168
+ attributeName: 'string',
12169
+ attributeValue: 'string',
12170
+ };
12171
+ }
12172
+
12173
+ constructor(map?: { [key: string]: any }) {
12174
+ super(map);
12175
+ }
12176
+ }
12177
+
12178
+ export class ImportRoomGenieScenesRequestSceneListTriggersDevice extends $tea.Model {
12179
+ category?: string;
12180
+ deviceIndex?: string;
12181
+ deviceNumber?: string;
12182
+ static names(): { [key: string]: string } {
12183
+ return {
12184
+ category: 'Category',
12185
+ deviceIndex: 'DeviceIndex',
12186
+ deviceNumber: 'DeviceNumber',
12187
+ };
12188
+ }
12189
+
12190
+ static types(): { [key: string]: any } {
12191
+ return {
12192
+ category: 'string',
12193
+ deviceIndex: 'string',
12194
+ deviceNumber: 'string',
12195
+ };
12196
+ }
12197
+
12198
+ constructor(map?: { [key: string]: any }) {
12199
+ super(map);
12200
+ }
12201
+ }
12202
+
12203
+ export class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
12204
+ attributeValues?: ImportRoomGenieScenesRequestSceneListTriggersAttributeValues[];
12205
+ corpusList?: string[];
12206
+ device?: ImportRoomGenieScenesRequestSceneListTriggersDevice;
12207
+ type?: number;
12208
+ static names(): { [key: string]: string } {
12209
+ return {
12210
+ attributeValues: 'AttributeValues',
12211
+ corpusList: 'CorpusList',
12212
+ device: 'Device',
12213
+ type: 'Type',
12214
+ };
12215
+ }
12216
+
12217
+ static types(): { [key: string]: any } {
12218
+ return {
12219
+ attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggersAttributeValues },
12220
+ corpusList: { 'type': 'array', 'itemType': 'string' },
12221
+ device: ImportRoomGenieScenesRequestSceneListTriggersDevice,
12222
+ type: 'number',
12223
+ };
12224
+ }
12225
+
12226
+ constructor(map?: { [key: string]: any }) {
12227
+ super(map);
12228
+ }
12229
+ }
12230
+
12231
+ export class ImportRoomGenieScenesRequestSceneList extends $tea.Model {
12232
+ actions?: ImportRoomGenieScenesRequestSceneListActions[];
12233
+ description?: string;
12234
+ display?: boolean;
12235
+ icon?: string;
12236
+ sceneName?: string;
12237
+ triggerLogical?: number;
12238
+ triggers?: ImportRoomGenieScenesRequestSceneListTriggers[];
12239
+ static names(): { [key: string]: string } {
12240
+ return {
12241
+ actions: 'Actions',
12242
+ description: 'Description',
12243
+ display: 'Display',
12244
+ icon: 'Icon',
12245
+ sceneName: 'SceneName',
12246
+ triggerLogical: 'TriggerLogical',
12247
+ triggers: 'Triggers',
12248
+ };
12249
+ }
12250
+
12251
+ static types(): { [key: string]: any } {
12252
+ return {
12253
+ actions: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActions },
12254
+ description: 'string',
12255
+ display: 'boolean',
12256
+ icon: 'string',
12257
+ sceneName: 'string',
12258
+ triggerLogical: 'number',
12259
+ triggers: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggers },
12260
+ };
12261
+ }
12262
+
12263
+ constructor(map?: { [key: string]: any }) {
12264
+ super(map);
12265
+ }
12266
+ }
12267
+
11888
12268
  export class InsertHotelSceneBookItemRequestAddHotelSceneItemReq extends $tea.Model {
11889
12269
  icon?: string;
11890
12270
  name?: string;
@@ -13749,26 +14129,91 @@ export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
13749
14129
  }
13750
14130
  }
13751
14131
 
14132
+ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
14133
+ category?: string;
14134
+ deviceIndex?: number;
14135
+ deviceName?: string;
14136
+ deviceStatus?: string;
14137
+ elementCode?: string;
14138
+ location?: string;
14139
+ static names(): { [key: string]: string } {
14140
+ return {
14141
+ category: 'Category',
14142
+ deviceIndex: 'DeviceIndex',
14143
+ deviceName: 'DeviceName',
14144
+ deviceStatus: 'DeviceStatus',
14145
+ elementCode: 'ElementCode',
14146
+ location: 'Location',
14147
+ };
14148
+ }
14149
+
14150
+ static types(): { [key: string]: any } {
14151
+ return {
14152
+ category: 'string',
14153
+ deviceIndex: 'number',
14154
+ deviceName: 'string',
14155
+ deviceStatus: 'string',
14156
+ elementCode: 'string',
14157
+ location: 'string',
14158
+ };
14159
+ }
14160
+
14161
+ constructor(map?: { [key: string]: any }) {
14162
+ super(map);
14163
+ }
14164
+ }
14165
+
14166
+ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt extends $tea.Model {
14167
+ switchList?: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList[];
14168
+ static names(): { [key: string]: string } {
14169
+ return {
14170
+ switchList: 'SwitchList',
14171
+ };
14172
+ }
14173
+
14174
+ static types(): { [key: string]: any } {
14175
+ return {
14176
+ switchList: { 'type': 'array', 'itemType': QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList },
14177
+ };
14178
+ }
14179
+
14180
+ constructor(map?: { [key: string]: any }) {
14181
+ super(map);
14182
+ }
14183
+ }
14184
+
13752
14185
  export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
13753
14186
  connectType?: string;
14187
+ DN?: string;
13754
14188
  deviceName?: string;
14189
+ deviceStatus?: string;
14190
+ multiKeySwitchExt?: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt;
13755
14191
  name?: string;
13756
14192
  number?: string;
14193
+ PK?: string;
13757
14194
  static names(): { [key: string]: string } {
13758
14195
  return {
13759
14196
  connectType: 'ConnectType',
14197
+ DN: 'DN',
13760
14198
  deviceName: 'DeviceName',
14199
+ deviceStatus: 'DeviceStatus',
14200
+ multiKeySwitchExt: 'MultiKeySwitchExt',
13761
14201
  name: 'Name',
13762
14202
  number: 'Number',
14203
+ PK: 'PK',
13763
14204
  };
13764
14205
  }
13765
14206
 
13766
14207
  static types(): { [key: string]: any } {
13767
14208
  return {
13768
14209
  connectType: 'string',
14210
+ DN: 'string',
13769
14211
  deviceName: 'string',
14212
+ deviceStatus: 'string',
14213
+ multiKeySwitchExt: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt,
13770
14214
  name: 'string',
13771
14215
  number: 'string',
14216
+ PK: 'string',
13772
14217
  };
13773
14218
  }
13774
14219
 
@@ -14984,6 +15429,10 @@ export default class Client extends OpenApi {
14984
15429
  body["Cmd"] = request.cmd;
14985
15430
  }
14986
15431
 
15432
+ if (!Util.isUnset(request.deviceIndex)) {
15433
+ body["DeviceIndex"] = request.deviceIndex;
15434
+ }
15435
+
14987
15436
  if (!Util.isUnset(request.deviceNumber)) {
14988
15437
  body["DeviceNumber"] = request.deviceNumber;
14989
15438
  }
@@ -16650,6 +17099,64 @@ export default class Client extends OpenApi {
16650
17099
  return await this.importRoomControlDevicesWithOptions(request, headers, runtime);
16651
17100
  }
16652
17101
 
17102
+ async importRoomGenieScenesWithOptions(tmpReq: ImportRoomGenieScenesRequest, headers: ImportRoomGenieScenesHeaders, runtime: $Util.RuntimeOptions): Promise<ImportRoomGenieScenesResponse> {
17103
+ Util.validateModel(tmpReq);
17104
+ let request = new ImportRoomGenieScenesShrinkRequest({ });
17105
+ OpenApiUtil.convert(tmpReq, request);
17106
+ if (!Util.isUnset(tmpReq.sceneList)) {
17107
+ request.sceneListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sceneList, "SceneList", "json");
17108
+ }
17109
+
17110
+ let body : {[key: string ]: any} = { };
17111
+ if (!Util.isUnset(request.hotelId)) {
17112
+ body["HotelId"] = request.hotelId;
17113
+ }
17114
+
17115
+ if (!Util.isUnset(request.roomNo)) {
17116
+ body["RoomNo"] = request.roomNo;
17117
+ }
17118
+
17119
+ if (!Util.isUnset(request.sceneListShrink)) {
17120
+ body["SceneList"] = request.sceneListShrink;
17121
+ }
17122
+
17123
+ let realHeaders : {[key: string ]: string} = { };
17124
+ if (!Util.isUnset(headers.commonHeaders)) {
17125
+ realHeaders = headers.commonHeaders;
17126
+ }
17127
+
17128
+ if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
17129
+ realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
17130
+ }
17131
+
17132
+ if (!Util.isUnset(headers.authorization)) {
17133
+ realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
17134
+ }
17135
+
17136
+ let req = new $OpenApi.OpenApiRequest({
17137
+ headers: realHeaders,
17138
+ body: OpenApiUtil.parseToMap(body),
17139
+ });
17140
+ let params = new $OpenApi.Params({
17141
+ action: "ImportRoomGenieScenes",
17142
+ version: "ip_1.0",
17143
+ protocol: "HTTPS",
17144
+ pathname: `/v1.0/ip/importRoomGenieScenes`,
17145
+ method: "POST",
17146
+ authType: "AK",
17147
+ style: "ROA",
17148
+ reqBodyType: "formData",
17149
+ bodyType: "json",
17150
+ });
17151
+ return $tea.cast<ImportRoomGenieScenesResponse>(await this.callApi(params, req, runtime), new ImportRoomGenieScenesResponse({}));
17152
+ }
17153
+
17154
+ async importRoomGenieScenes(request: ImportRoomGenieScenesRequest): Promise<ImportRoomGenieScenesResponse> {
17155
+ let runtime = new $Util.RuntimeOptions({ });
17156
+ let headers = new ImportRoomGenieScenesHeaders({ });
17157
+ return await this.importRoomGenieScenesWithOptions(request, headers, runtime);
17158
+ }
17159
+
16653
17160
  async insertHotelSceneBookItemWithOptions(tmpReq: InsertHotelSceneBookItemRequest, headers: InsertHotelSceneBookItemHeaders, runtime: $Util.RuntimeOptions): Promise<InsertHotelSceneBookItemResponse> {
16654
17161
  Util.validateModel(tmpReq);
16655
17162
  let request = new InsertHotelSceneBookItemShrinkRequest({ });