@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/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,156 @@ 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
+ reply: 'Reply',
9649
+ type: 'Type',
9650
+ };
9651
+ }
9652
+ static types() {
9653
+ return {
9654
+ attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
9655
+ device: ImportRoomGenieScenesRequestSceneListActionsDevice,
9656
+ reply: 'string',
9657
+ type: 'number',
9658
+ };
9659
+ }
9660
+ }
9661
+ exports.ImportRoomGenieScenesRequestSceneListActions = ImportRoomGenieScenesRequestSceneListActions;
9662
+ class ImportRoomGenieScenesRequestSceneListTriggersAttributeValues extends $tea.Model {
9663
+ constructor(map) {
9664
+ super(map);
9665
+ }
9666
+ static names() {
9667
+ return {
9668
+ attributeName: 'AttributeName',
9669
+ attributeValue: 'AttributeValue',
9670
+ };
9671
+ }
9672
+ static types() {
9673
+ return {
9674
+ attributeName: 'string',
9675
+ attributeValue: 'string',
9676
+ };
9677
+ }
9678
+ }
9679
+ exports.ImportRoomGenieScenesRequestSceneListTriggersAttributeValues = ImportRoomGenieScenesRequestSceneListTriggersAttributeValues;
9680
+ class ImportRoomGenieScenesRequestSceneListTriggersDevice extends $tea.Model {
9681
+ constructor(map) {
9682
+ super(map);
9683
+ }
9684
+ static names() {
9685
+ return {
9686
+ category: 'Category',
9687
+ deviceIndex: 'DeviceIndex',
9688
+ deviceNumber: 'DeviceNumber',
9689
+ };
9690
+ }
9691
+ static types() {
9692
+ return {
9693
+ category: 'string',
9694
+ deviceIndex: 'string',
9695
+ deviceNumber: 'string',
9696
+ };
9697
+ }
9698
+ }
9699
+ exports.ImportRoomGenieScenesRequestSceneListTriggersDevice = ImportRoomGenieScenesRequestSceneListTriggersDevice;
9700
+ class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
9701
+ constructor(map) {
9702
+ super(map);
9703
+ }
9704
+ static names() {
9705
+ return {
9706
+ attributeValues: 'AttributeValues',
9707
+ corpusList: 'CorpusList',
9708
+ device: 'Device',
9709
+ type: 'Type',
9710
+ };
9711
+ }
9712
+ static types() {
9713
+ return {
9714
+ attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggersAttributeValues },
9715
+ corpusList: { 'type': 'array', 'itemType': 'string' },
9716
+ device: ImportRoomGenieScenesRequestSceneListTriggersDevice,
9717
+ type: 'number',
9718
+ };
9719
+ }
9720
+ }
9721
+ exports.ImportRoomGenieScenesRequestSceneListTriggers = ImportRoomGenieScenesRequestSceneListTriggers;
9722
+ class ImportRoomGenieScenesRequestSceneList extends $tea.Model {
9723
+ constructor(map) {
9724
+ super(map);
9725
+ }
9726
+ static names() {
9727
+ return {
9728
+ actions: 'Actions',
9729
+ description: 'Description',
9730
+ display: 'Display',
9731
+ icon: 'Icon',
9732
+ sceneName: 'SceneName',
9733
+ triggerLogical: 'TriggerLogical',
9734
+ triggers: 'Triggers',
9735
+ };
9736
+ }
9737
+ static types() {
9738
+ return {
9739
+ actions: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActions },
9740
+ description: 'string',
9741
+ display: 'boolean',
9742
+ icon: 'string',
9743
+ sceneName: 'string',
9744
+ triggerLogical: 'number',
9745
+ triggers: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggers },
9746
+ };
9747
+ }
9748
+ }
9749
+ exports.ImportRoomGenieScenesRequestSceneList = ImportRoomGenieScenesRequestSceneList;
9450
9750
  class InsertHotelSceneBookItemRequestAddHotelSceneItemReq extends $tea.Model {
9451
9751
  constructor(map) {
9452
9752
  super(map);
@@ -10903,6 +11203,48 @@ class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
10903
11203
  }
10904
11204
  }
10905
11205
  exports.QueryHotelRoomDetailResponseBodyResult = QueryHotelRoomDetailResponseBodyResult;
11206
+ class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
11207
+ constructor(map) {
11208
+ super(map);
11209
+ }
11210
+ static names() {
11211
+ return {
11212
+ category: 'Category',
11213
+ deviceIndex: 'DeviceIndex',
11214
+ deviceName: 'DeviceName',
11215
+ deviceStatus: 'DeviceStatus',
11216
+ elementCode: 'ElementCode',
11217
+ location: 'Location',
11218
+ };
11219
+ }
11220
+ static types() {
11221
+ return {
11222
+ category: 'string',
11223
+ deviceIndex: 'number',
11224
+ deviceName: 'string',
11225
+ deviceStatus: 'string',
11226
+ elementCode: 'string',
11227
+ location: 'string',
11228
+ };
11229
+ }
11230
+ }
11231
+ exports.QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList = QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList;
11232
+ class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt extends $tea.Model {
11233
+ constructor(map) {
11234
+ super(map);
11235
+ }
11236
+ static names() {
11237
+ return {
11238
+ switchList: 'SwitchList',
11239
+ };
11240
+ }
11241
+ static types() {
11242
+ return {
11243
+ switchList: { 'type': 'array', 'itemType': QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList },
11244
+ };
11245
+ }
11246
+ }
11247
+ exports.QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt = QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt;
10906
11248
  class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
10907
11249
  constructor(map) {
10908
11250
  super(map);
@@ -10910,17 +11252,25 @@ class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
10910
11252
  static names() {
10911
11253
  return {
10912
11254
  connectType: 'ConnectType',
11255
+ DN: 'DN',
10913
11256
  deviceName: 'DeviceName',
11257
+ deviceStatus: 'DeviceStatus',
11258
+ multiKeySwitchExt: 'MultiKeySwitchExt',
10914
11259
  name: 'Name',
10915
11260
  number: 'Number',
11261
+ PK: 'PK',
10916
11262
  };
10917
11263
  }
10918
11264
  static types() {
10919
11265
  return {
10920
11266
  connectType: 'string',
11267
+ DN: 'string',
10921
11268
  deviceName: 'string',
11269
+ deviceStatus: 'string',
11270
+ multiKeySwitchExt: QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt,
10922
11271
  name: 'string',
10923
11272
  number: 'string',
11273
+ PK: 'string',
10924
11274
  };
10925
11275
  }
10926
11276
  }
@@ -11909,6 +12259,9 @@ class Client extends openapi_client_1.default {
11909
12259
  if (!tea_util_1.default.isUnset(request.cmd)) {
11910
12260
  body["Cmd"] = request.cmd;
11911
12261
  }
12262
+ if (!tea_util_1.default.isUnset(request.deviceIndex)) {
12263
+ body["DeviceIndex"] = request.deviceIndex;
12264
+ }
11912
12265
  if (!tea_util_1.default.isUnset(request.deviceNumber)) {
11913
12266
  body["DeviceNumber"] = request.deviceNumber;
11914
12267
  }
@@ -13326,6 +13679,55 @@ class Client extends openapi_client_1.default {
13326
13679
  let headers = new ImportRoomControlDevicesHeaders({});
13327
13680
  return await this.importRoomControlDevicesWithOptions(request, headers, runtime);
13328
13681
  }
13682
+ async importRoomGenieScenesWithOptions(tmpReq, headers, runtime) {
13683
+ tea_util_1.default.validateModel(tmpReq);
13684
+ let request = new ImportRoomGenieScenesShrinkRequest({});
13685
+ openapi_util_1.default.convert(tmpReq, request);
13686
+ if (!tea_util_1.default.isUnset(tmpReq.sceneList)) {
13687
+ request.sceneListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.sceneList, "SceneList", "json");
13688
+ }
13689
+ let body = {};
13690
+ if (!tea_util_1.default.isUnset(request.hotelId)) {
13691
+ body["HotelId"] = request.hotelId;
13692
+ }
13693
+ if (!tea_util_1.default.isUnset(request.roomNo)) {
13694
+ body["RoomNo"] = request.roomNo;
13695
+ }
13696
+ if (!tea_util_1.default.isUnset(request.sceneListShrink)) {
13697
+ body["SceneList"] = request.sceneListShrink;
13698
+ }
13699
+ let realHeaders = {};
13700
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
13701
+ realHeaders = headers.commonHeaders;
13702
+ }
13703
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
13704
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
13705
+ }
13706
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
13707
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
13708
+ }
13709
+ let req = new $OpenApi.OpenApiRequest({
13710
+ headers: realHeaders,
13711
+ body: openapi_util_1.default.parseToMap(body),
13712
+ });
13713
+ let params = new $OpenApi.Params({
13714
+ action: "ImportRoomGenieScenes",
13715
+ version: "ip_1.0",
13716
+ protocol: "HTTPS",
13717
+ pathname: `/v1.0/ip/importRoomGenieScenes`,
13718
+ method: "POST",
13719
+ authType: "AK",
13720
+ style: "ROA",
13721
+ reqBodyType: "formData",
13722
+ bodyType: "json",
13723
+ });
13724
+ return $tea.cast(await this.callApi(params, req, runtime), new ImportRoomGenieScenesResponse({}));
13725
+ }
13726
+ async importRoomGenieScenes(request) {
13727
+ let runtime = new $Util.RuntimeOptions({});
13728
+ let headers = new ImportRoomGenieScenesHeaders({});
13729
+ return await this.importRoomGenieScenesWithOptions(request, headers, runtime);
13730
+ }
13329
13731
  async insertHotelSceneBookItemWithOptions(tmpReq, headers, runtime) {
13330
13732
  tea_util_1.default.validateModel(tmpReq);
13331
13733
  let request = new InsertHotelSceneBookItemShrinkRequest({});