@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/dist/client.js
CHANGED
|
@@ -1168,6 +1168,7 @@ class ControlRoomDeviceRequest extends $tea.Model {
|
|
|
1168
1168
|
static names() {
|
|
1169
1169
|
return {
|
|
1170
1170
|
cmd: 'Cmd',
|
|
1171
|
+
deviceIndex: 'DeviceIndex',
|
|
1171
1172
|
deviceNumber: 'DeviceNumber',
|
|
1172
1173
|
hotelId: 'HotelId',
|
|
1173
1174
|
properties: 'Properties',
|
|
@@ -1177,6 +1178,7 @@ class ControlRoomDeviceRequest extends $tea.Model {
|
|
|
1177
1178
|
static types() {
|
|
1178
1179
|
return {
|
|
1179
1180
|
cmd: 'string',
|
|
1181
|
+
deviceIndex: 'number',
|
|
1180
1182
|
deviceNumber: 'string',
|
|
1181
1183
|
hotelId: 'string',
|
|
1182
1184
|
properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
@@ -1192,6 +1194,7 @@ class ControlRoomDeviceShrinkRequest extends $tea.Model {
|
|
|
1192
1194
|
static names() {
|
|
1193
1195
|
return {
|
|
1194
1196
|
cmd: 'Cmd',
|
|
1197
|
+
deviceIndex: 'DeviceIndex',
|
|
1195
1198
|
deviceNumber: 'DeviceNumber',
|
|
1196
1199
|
hotelId: 'HotelId',
|
|
1197
1200
|
propertiesShrink: 'Properties',
|
|
@@ -1201,6 +1204,7 @@ class ControlRoomDeviceShrinkRequest extends $tea.Model {
|
|
|
1201
1204
|
static types() {
|
|
1202
1205
|
return {
|
|
1203
1206
|
cmd: 'string',
|
|
1207
|
+
deviceIndex: 'number',
|
|
1204
1208
|
deviceNumber: 'string',
|
|
1205
1209
|
hotelId: 'string',
|
|
1206
1210
|
propertiesShrink: 'string',
|
|
@@ -4055,6 +4059,108 @@ class ImportRoomControlDevicesResponse extends $tea.Model {
|
|
|
4055
4059
|
}
|
|
4056
4060
|
}
|
|
4057
4061
|
exports.ImportRoomControlDevicesResponse = ImportRoomControlDevicesResponse;
|
|
4062
|
+
class ImportRoomGenieScenesHeaders extends $tea.Model {
|
|
4063
|
+
constructor(map) {
|
|
4064
|
+
super(map);
|
|
4065
|
+
}
|
|
4066
|
+
static names() {
|
|
4067
|
+
return {
|
|
4068
|
+
commonHeaders: 'commonHeaders',
|
|
4069
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
4070
|
+
authorization: 'Authorization',
|
|
4071
|
+
};
|
|
4072
|
+
}
|
|
4073
|
+
static types() {
|
|
4074
|
+
return {
|
|
4075
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4076
|
+
xAcsAligenieAccessToken: 'string',
|
|
4077
|
+
authorization: 'string',
|
|
4078
|
+
};
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
exports.ImportRoomGenieScenesHeaders = ImportRoomGenieScenesHeaders;
|
|
4082
|
+
class ImportRoomGenieScenesRequest extends $tea.Model {
|
|
4083
|
+
constructor(map) {
|
|
4084
|
+
super(map);
|
|
4085
|
+
}
|
|
4086
|
+
static names() {
|
|
4087
|
+
return {
|
|
4088
|
+
hotelId: 'HotelId',
|
|
4089
|
+
roomNo: 'RoomNo',
|
|
4090
|
+
sceneList: 'SceneList',
|
|
4091
|
+
};
|
|
4092
|
+
}
|
|
4093
|
+
static types() {
|
|
4094
|
+
return {
|
|
4095
|
+
hotelId: 'string',
|
|
4096
|
+
roomNo: 'string',
|
|
4097
|
+
sceneList: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneList },
|
|
4098
|
+
};
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
exports.ImportRoomGenieScenesRequest = ImportRoomGenieScenesRequest;
|
|
4102
|
+
class ImportRoomGenieScenesShrinkRequest extends $tea.Model {
|
|
4103
|
+
constructor(map) {
|
|
4104
|
+
super(map);
|
|
4105
|
+
}
|
|
4106
|
+
static names() {
|
|
4107
|
+
return {
|
|
4108
|
+
hotelId: 'HotelId',
|
|
4109
|
+
roomNo: 'RoomNo',
|
|
4110
|
+
sceneListShrink: 'SceneList',
|
|
4111
|
+
};
|
|
4112
|
+
}
|
|
4113
|
+
static types() {
|
|
4114
|
+
return {
|
|
4115
|
+
hotelId: 'string',
|
|
4116
|
+
roomNo: 'string',
|
|
4117
|
+
sceneListShrink: 'string',
|
|
4118
|
+
};
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
exports.ImportRoomGenieScenesShrinkRequest = ImportRoomGenieScenesShrinkRequest;
|
|
4122
|
+
class ImportRoomGenieScenesResponseBody extends $tea.Model {
|
|
4123
|
+
constructor(map) {
|
|
4124
|
+
super(map);
|
|
4125
|
+
}
|
|
4126
|
+
static names() {
|
|
4127
|
+
return {
|
|
4128
|
+
message: 'Message',
|
|
4129
|
+
requestId: 'RequestId',
|
|
4130
|
+
result: 'Result',
|
|
4131
|
+
statusCode: 'StatusCode',
|
|
4132
|
+
};
|
|
4133
|
+
}
|
|
4134
|
+
static types() {
|
|
4135
|
+
return {
|
|
4136
|
+
message: 'string',
|
|
4137
|
+
requestId: 'string',
|
|
4138
|
+
result: 'boolean',
|
|
4139
|
+
statusCode: 'number',
|
|
4140
|
+
};
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
4143
|
+
exports.ImportRoomGenieScenesResponseBody = ImportRoomGenieScenesResponseBody;
|
|
4144
|
+
class ImportRoomGenieScenesResponse extends $tea.Model {
|
|
4145
|
+
constructor(map) {
|
|
4146
|
+
super(map);
|
|
4147
|
+
}
|
|
4148
|
+
static names() {
|
|
4149
|
+
return {
|
|
4150
|
+
headers: 'headers',
|
|
4151
|
+
statusCode: 'statusCode',
|
|
4152
|
+
body: 'body',
|
|
4153
|
+
};
|
|
4154
|
+
}
|
|
4155
|
+
static types() {
|
|
4156
|
+
return {
|
|
4157
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4158
|
+
statusCode: 'number',
|
|
4159
|
+
body: ImportRoomGenieScenesResponseBody,
|
|
4160
|
+
};
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
exports.ImportRoomGenieScenesResponse = ImportRoomGenieScenesResponse;
|
|
4058
4164
|
class InsertHotelSceneBookItemHeaders extends $tea.Model {
|
|
4059
4165
|
constructor(map) {
|
|
4060
4166
|
super(map);
|
|
@@ -9391,6 +9497,44 @@ class ImportHotelConfigRequestImportHotelConfig extends $tea.Model {
|
|
|
9391
9497
|
}
|
|
9392
9498
|
}
|
|
9393
9499
|
exports.ImportHotelConfigRequestImportHotelConfig = ImportHotelConfigRequestImportHotelConfig;
|
|
9500
|
+
class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
9501
|
+
constructor(map) {
|
|
9502
|
+
super(map);
|
|
9503
|
+
}
|
|
9504
|
+
static names() {
|
|
9505
|
+
return {
|
|
9506
|
+
category: 'Category',
|
|
9507
|
+
deviceIndex: 'DeviceIndex',
|
|
9508
|
+
deviceName: 'DeviceName',
|
|
9509
|
+
location: 'Location',
|
|
9510
|
+
};
|
|
9511
|
+
}
|
|
9512
|
+
static types() {
|
|
9513
|
+
return {
|
|
9514
|
+
category: 'string',
|
|
9515
|
+
deviceIndex: 'number',
|
|
9516
|
+
deviceName: 'string',
|
|
9517
|
+
location: 'string',
|
|
9518
|
+
};
|
|
9519
|
+
}
|
|
9520
|
+
}
|
|
9521
|
+
exports.ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList = ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList;
|
|
9522
|
+
class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt extends $tea.Model {
|
|
9523
|
+
constructor(map) {
|
|
9524
|
+
super(map);
|
|
9525
|
+
}
|
|
9526
|
+
static names() {
|
|
9527
|
+
return {
|
|
9528
|
+
switchList: 'SwitchList',
|
|
9529
|
+
};
|
|
9530
|
+
}
|
|
9531
|
+
static types() {
|
|
9532
|
+
return {
|
|
9533
|
+
switchList: { 'type': 'array', 'itemType': ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList },
|
|
9534
|
+
};
|
|
9535
|
+
}
|
|
9536
|
+
}
|
|
9537
|
+
exports.ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt = ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt;
|
|
9394
9538
|
class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
9395
9539
|
constructor(map) {
|
|
9396
9540
|
super(map);
|
|
@@ -9401,11 +9545,14 @@ class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
|
9401
9545
|
city: 'City',
|
|
9402
9546
|
connectType: 'ConnectType',
|
|
9403
9547
|
deviceName: 'DeviceName',
|
|
9548
|
+
dn: 'Dn',
|
|
9404
9549
|
infraredId: 'InfraredId',
|
|
9405
9550
|
infraredIndex: 'InfraredIndex',
|
|
9406
9551
|
infraredVersion: 'InfraredVersion',
|
|
9552
|
+
multiKeySwitchExt: 'MultiKeySwitchExt',
|
|
9407
9553
|
name: 'Name',
|
|
9408
9554
|
number: 'Number',
|
|
9555
|
+
pk: 'Pk',
|
|
9409
9556
|
province: 'Province',
|
|
9410
9557
|
serviceProvider: 'ServiceProvider',
|
|
9411
9558
|
};
|
|
@@ -9416,11 +9563,14 @@ class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
|
9416
9563
|
city: 'string',
|
|
9417
9564
|
connectType: 'string',
|
|
9418
9565
|
deviceName: 'string',
|
|
9566
|
+
dn: 'string',
|
|
9419
9567
|
infraredId: 'string',
|
|
9420
9568
|
infraredIndex: 'string',
|
|
9421
9569
|
infraredVersion: 'string',
|
|
9570
|
+
multiKeySwitchExt: ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExt,
|
|
9422
9571
|
name: 'string',
|
|
9423
9572
|
number: 'string',
|
|
9573
|
+
pk: 'string',
|
|
9424
9574
|
province: 'string',
|
|
9425
9575
|
serviceProvider: 'string',
|
|
9426
9576
|
};
|
|
@@ -9447,6 +9597,110 @@ class ImportRoomControlDevicesRequestLocationDevices extends $tea.Model {
|
|
|
9447
9597
|
}
|
|
9448
9598
|
}
|
|
9449
9599
|
exports.ImportRoomControlDevicesRequestLocationDevices = ImportRoomControlDevicesRequestLocationDevices;
|
|
9600
|
+
class ImportRoomGenieScenesRequestSceneListActionsAttributeValues extends $tea.Model {
|
|
9601
|
+
constructor(map) {
|
|
9602
|
+
super(map);
|
|
9603
|
+
}
|
|
9604
|
+
static names() {
|
|
9605
|
+
return {
|
|
9606
|
+
attributeName: 'AttributeName',
|
|
9607
|
+
attributeValue: 'AttributeValue',
|
|
9608
|
+
};
|
|
9609
|
+
}
|
|
9610
|
+
static types() {
|
|
9611
|
+
return {
|
|
9612
|
+
attributeName: 'string',
|
|
9613
|
+
attributeValue: 'string',
|
|
9614
|
+
};
|
|
9615
|
+
}
|
|
9616
|
+
}
|
|
9617
|
+
exports.ImportRoomGenieScenesRequestSceneListActionsAttributeValues = ImportRoomGenieScenesRequestSceneListActionsAttributeValues;
|
|
9618
|
+
class ImportRoomGenieScenesRequestSceneListActionsDevice extends $tea.Model {
|
|
9619
|
+
constructor(map) {
|
|
9620
|
+
super(map);
|
|
9621
|
+
}
|
|
9622
|
+
static names() {
|
|
9623
|
+
return {
|
|
9624
|
+
category: 'Category',
|
|
9625
|
+
deviceIndex: 'DeviceIndex',
|
|
9626
|
+
deviceNumber: 'DeviceNumber',
|
|
9627
|
+
type: 'Type',
|
|
9628
|
+
};
|
|
9629
|
+
}
|
|
9630
|
+
static types() {
|
|
9631
|
+
return {
|
|
9632
|
+
category: 'string',
|
|
9633
|
+
deviceIndex: 'number',
|
|
9634
|
+
deviceNumber: 'string',
|
|
9635
|
+
type: 'number',
|
|
9636
|
+
};
|
|
9637
|
+
}
|
|
9638
|
+
}
|
|
9639
|
+
exports.ImportRoomGenieScenesRequestSceneListActionsDevice = ImportRoomGenieScenesRequestSceneListActionsDevice;
|
|
9640
|
+
class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
|
|
9641
|
+
constructor(map) {
|
|
9642
|
+
super(map);
|
|
9643
|
+
}
|
|
9644
|
+
static names() {
|
|
9645
|
+
return {
|
|
9646
|
+
attributeValues: 'AttributeValues',
|
|
9647
|
+
device: 'Device',
|
|
9648
|
+
};
|
|
9649
|
+
}
|
|
9650
|
+
static types() {
|
|
9651
|
+
return {
|
|
9652
|
+
attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
|
|
9653
|
+
device: ImportRoomGenieScenesRequestSceneListActionsDevice,
|
|
9654
|
+
};
|
|
9655
|
+
}
|
|
9656
|
+
}
|
|
9657
|
+
exports.ImportRoomGenieScenesRequestSceneListActions = ImportRoomGenieScenesRequestSceneListActions;
|
|
9658
|
+
class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
|
|
9659
|
+
constructor(map) {
|
|
9660
|
+
super(map);
|
|
9661
|
+
}
|
|
9662
|
+
static names() {
|
|
9663
|
+
return {
|
|
9664
|
+
corpusList: 'CorpusList',
|
|
9665
|
+
type: 'Type',
|
|
9666
|
+
};
|
|
9667
|
+
}
|
|
9668
|
+
static types() {
|
|
9669
|
+
return {
|
|
9670
|
+
corpusList: { 'type': 'array', 'itemType': 'string' },
|
|
9671
|
+
type: 'number',
|
|
9672
|
+
};
|
|
9673
|
+
}
|
|
9674
|
+
}
|
|
9675
|
+
exports.ImportRoomGenieScenesRequestSceneListTriggers = ImportRoomGenieScenesRequestSceneListTriggers;
|
|
9676
|
+
class ImportRoomGenieScenesRequestSceneList extends $tea.Model {
|
|
9677
|
+
constructor(map) {
|
|
9678
|
+
super(map);
|
|
9679
|
+
}
|
|
9680
|
+
static names() {
|
|
9681
|
+
return {
|
|
9682
|
+
actions: 'Actions',
|
|
9683
|
+
description: 'Description',
|
|
9684
|
+
display: 'Display',
|
|
9685
|
+
icon: 'Icon',
|
|
9686
|
+
sceneName: 'SceneName',
|
|
9687
|
+
triggerLogical: 'TriggerLogical',
|
|
9688
|
+
triggers: 'Triggers',
|
|
9689
|
+
};
|
|
9690
|
+
}
|
|
9691
|
+
static types() {
|
|
9692
|
+
return {
|
|
9693
|
+
actions: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActions },
|
|
9694
|
+
description: 'string',
|
|
9695
|
+
display: 'boolean',
|
|
9696
|
+
icon: 'string',
|
|
9697
|
+
sceneName: 'string',
|
|
9698
|
+
triggerLogical: 'number',
|
|
9699
|
+
triggers: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggers },
|
|
9700
|
+
};
|
|
9701
|
+
}
|
|
9702
|
+
}
|
|
9703
|
+
exports.ImportRoomGenieScenesRequestSceneList = ImportRoomGenieScenesRequestSceneList;
|
|
9450
9704
|
class InsertHotelSceneBookItemRequestAddHotelSceneItemReq extends $tea.Model {
|
|
9451
9705
|
constructor(map) {
|
|
9452
9706
|
super(map);
|
|
@@ -10903,6 +11157,48 @@ class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
|
|
|
10903
11157
|
}
|
|
10904
11158
|
}
|
|
10905
11159
|
exports.QueryHotelRoomDetailResponseBodyResult = QueryHotelRoomDetailResponseBodyResult;
|
|
11160
|
+
class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
11161
|
+
constructor(map) {
|
|
11162
|
+
super(map);
|
|
11163
|
+
}
|
|
11164
|
+
static names() {
|
|
11165
|
+
return {
|
|
11166
|
+
category: 'Category',
|
|
11167
|
+
deviceIndex: 'DeviceIndex',
|
|
11168
|
+
deviceName: 'DeviceName',
|
|
11169
|
+
deviceStatus: 'DeviceStatus',
|
|
11170
|
+
elementCode: 'ElementCode',
|
|
11171
|
+
location: 'Location',
|
|
11172
|
+
};
|
|
11173
|
+
}
|
|
11174
|
+
static types() {
|
|
11175
|
+
return {
|
|
11176
|
+
category: 'string',
|
|
11177
|
+
deviceIndex: 'number',
|
|
11178
|
+
deviceName: 'string',
|
|
11179
|
+
deviceStatus: 'string',
|
|
11180
|
+
elementCode: 'string',
|
|
11181
|
+
location: 'string',
|
|
11182
|
+
};
|
|
11183
|
+
}
|
|
11184
|
+
}
|
|
11185
|
+
exports.QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList = QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList;
|
|
11186
|
+
class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt extends $tea.Model {
|
|
11187
|
+
constructor(map) {
|
|
11188
|
+
super(map);
|
|
11189
|
+
}
|
|
11190
|
+
static names() {
|
|
11191
|
+
return {
|
|
11192
|
+
switchList: 'SwitchList',
|
|
11193
|
+
};
|
|
11194
|
+
}
|
|
11195
|
+
static types() {
|
|
11196
|
+
return {
|
|
11197
|
+
switchList: { 'type': 'array', 'itemType': QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList },
|
|
11198
|
+
};
|
|
11199
|
+
}
|
|
11200
|
+
}
|
|
11201
|
+
exports.QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt = QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt;
|
|
10906
11202
|
class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
10907
11203
|
constructor(map) {
|
|
10908
11204
|
super(map);
|
|
@@ -10910,17 +11206,25 @@ class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
|
10910
11206
|
static names() {
|
|
10911
11207
|
return {
|
|
10912
11208
|
connectType: 'ConnectType',
|
|
11209
|
+
DN: 'DN',
|
|
10913
11210
|
deviceName: 'DeviceName',
|
|
11211
|
+
deviceStatus: 'DeviceStatus',
|
|
11212
|
+
multiKeySwitchExt: 'MultiKeySwitchExt',
|
|
10914
11213
|
name: 'Name',
|
|
10915
11214
|
number: 'Number',
|
|
11215
|
+
PK: 'PK',
|
|
10916
11216
|
};
|
|
10917
11217
|
}
|
|
10918
11218
|
static types() {
|
|
10919
11219
|
return {
|
|
10920
11220
|
connectType: 'string',
|
|
11221
|
+
DN: 'string',
|
|
10921
11222
|
deviceName: 'string',
|
|
11223
|
+
deviceStatus: 'string',
|
|
11224
|
+
multiKeySwitchExt: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt,
|
|
10922
11225
|
name: 'string',
|
|
10923
11226
|
number: 'string',
|
|
11227
|
+
PK: 'string',
|
|
10924
11228
|
};
|
|
10925
11229
|
}
|
|
10926
11230
|
}
|
|
@@ -11909,6 +12213,9 @@ class Client extends openapi_client_1.default {
|
|
|
11909
12213
|
if (!tea_util_1.default.isUnset(request.cmd)) {
|
|
11910
12214
|
body["Cmd"] = request.cmd;
|
|
11911
12215
|
}
|
|
12216
|
+
if (!tea_util_1.default.isUnset(request.deviceIndex)) {
|
|
12217
|
+
body["DeviceIndex"] = request.deviceIndex;
|
|
12218
|
+
}
|
|
11912
12219
|
if (!tea_util_1.default.isUnset(request.deviceNumber)) {
|
|
11913
12220
|
body["DeviceNumber"] = request.deviceNumber;
|
|
11914
12221
|
}
|
|
@@ -13326,6 +13633,55 @@ class Client extends openapi_client_1.default {
|
|
|
13326
13633
|
let headers = new ImportRoomControlDevicesHeaders({});
|
|
13327
13634
|
return await this.importRoomControlDevicesWithOptions(request, headers, runtime);
|
|
13328
13635
|
}
|
|
13636
|
+
async importRoomGenieScenesWithOptions(tmpReq, headers, runtime) {
|
|
13637
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
13638
|
+
let request = new ImportRoomGenieScenesShrinkRequest({});
|
|
13639
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
13640
|
+
if (!tea_util_1.default.isUnset(tmpReq.sceneList)) {
|
|
13641
|
+
request.sceneListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.sceneList, "SceneList", "json");
|
|
13642
|
+
}
|
|
13643
|
+
let body = {};
|
|
13644
|
+
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
13645
|
+
body["HotelId"] = request.hotelId;
|
|
13646
|
+
}
|
|
13647
|
+
if (!tea_util_1.default.isUnset(request.roomNo)) {
|
|
13648
|
+
body["RoomNo"] = request.roomNo;
|
|
13649
|
+
}
|
|
13650
|
+
if (!tea_util_1.default.isUnset(request.sceneListShrink)) {
|
|
13651
|
+
body["SceneList"] = request.sceneListShrink;
|
|
13652
|
+
}
|
|
13653
|
+
let realHeaders = {};
|
|
13654
|
+
if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
|
|
13655
|
+
realHeaders = headers.commonHeaders;
|
|
13656
|
+
}
|
|
13657
|
+
if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
13658
|
+
realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
|
|
13659
|
+
}
|
|
13660
|
+
if (!tea_util_1.default.isUnset(headers.authorization)) {
|
|
13661
|
+
realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
|
|
13662
|
+
}
|
|
13663
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13664
|
+
headers: realHeaders,
|
|
13665
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
13666
|
+
});
|
|
13667
|
+
let params = new $OpenApi.Params({
|
|
13668
|
+
action: "ImportRoomGenieScenes",
|
|
13669
|
+
version: "ip_1.0",
|
|
13670
|
+
protocol: "HTTPS",
|
|
13671
|
+
pathname: `/v1.0/ip/importRoomGenieScenes`,
|
|
13672
|
+
method: "POST",
|
|
13673
|
+
authType: "AK",
|
|
13674
|
+
style: "ROA",
|
|
13675
|
+
reqBodyType: "formData",
|
|
13676
|
+
bodyType: "json",
|
|
13677
|
+
});
|
|
13678
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ImportRoomGenieScenesResponse({}));
|
|
13679
|
+
}
|
|
13680
|
+
async importRoomGenieScenes(request) {
|
|
13681
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
13682
|
+
let headers = new ImportRoomGenieScenesHeaders({});
|
|
13683
|
+
return await this.importRoomGenieScenesWithOptions(request, headers, runtime);
|
|
13684
|
+
}
|
|
13329
13685
|
async insertHotelSceneBookItemWithOptions(tmpReq, headers, runtime) {
|
|
13330
13686
|
tea_util_1.default.validateModel(tmpReq);
|
|
13331
13687
|
let request = new InsertHotelSceneBookItemShrinkRequest({});
|