@alicloud/aligenieip_1_0 2.2.1 → 2.3.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.2.1",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -4809,6 +4809,115 @@ export class GetWelcomeTextAndMusicResponse extends $tea.Model {
4809
4809
  }
4810
4810
  }
4811
4811
 
4812
+ export class HotelQrBindHeaders extends $tea.Model {
4813
+ commonHeaders?: { [key: string]: string };
4814
+ xAcsAligenieAccessToken?: string;
4815
+ authorization?: string;
4816
+ static names(): { [key: string]: string } {
4817
+ return {
4818
+ commonHeaders: 'commonHeaders',
4819
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
4820
+ authorization: 'Authorization',
4821
+ };
4822
+ }
4823
+
4824
+ static types(): { [key: string]: any } {
4825
+ return {
4826
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4827
+ xAcsAligenieAccessToken: 'string',
4828
+ authorization: 'string',
4829
+ };
4830
+ }
4831
+
4832
+ constructor(map?: { [key: string]: any }) {
4833
+ super(map);
4834
+ }
4835
+ }
4836
+
4837
+ export class HotelQrBindRequest extends $tea.Model {
4838
+ clientId?: string;
4839
+ code?: string;
4840
+ extInfo?: string;
4841
+ hotelId?: string;
4842
+ roomNo?: string;
4843
+ static names(): { [key: string]: string } {
4844
+ return {
4845
+ clientId: 'ClientId',
4846
+ code: 'Code',
4847
+ extInfo: 'ExtInfo',
4848
+ hotelId: 'HotelId',
4849
+ roomNo: 'RoomNo',
4850
+ };
4851
+ }
4852
+
4853
+ static types(): { [key: string]: any } {
4854
+ return {
4855
+ clientId: 'string',
4856
+ code: 'string',
4857
+ extInfo: 'string',
4858
+ hotelId: 'string',
4859
+ roomNo: 'string',
4860
+ };
4861
+ }
4862
+
4863
+ constructor(map?: { [key: string]: any }) {
4864
+ super(map);
4865
+ }
4866
+ }
4867
+
4868
+ export class HotelQrBindResponseBody extends $tea.Model {
4869
+ message?: string;
4870
+ requestId?: string;
4871
+ result?: HotelQrBindResponseBodyResult;
4872
+ statusCode?: number;
4873
+ static names(): { [key: string]: string } {
4874
+ return {
4875
+ message: 'Message',
4876
+ requestId: 'RequestId',
4877
+ result: 'Result',
4878
+ statusCode: 'StatusCode',
4879
+ };
4880
+ }
4881
+
4882
+ static types(): { [key: string]: any } {
4883
+ return {
4884
+ message: 'string',
4885
+ requestId: 'string',
4886
+ result: HotelQrBindResponseBodyResult,
4887
+ statusCode: 'number',
4888
+ };
4889
+ }
4890
+
4891
+ constructor(map?: { [key: string]: any }) {
4892
+ super(map);
4893
+ }
4894
+ }
4895
+
4896
+ export class HotelQrBindResponse extends $tea.Model {
4897
+ headers: { [key: string]: string };
4898
+ statusCode: number;
4899
+ body: HotelQrBindResponseBody;
4900
+ static names(): { [key: string]: string } {
4901
+ return {
4902
+ headers: 'headers',
4903
+ statusCode: 'statusCode',
4904
+ body: 'body',
4905
+ };
4906
+ }
4907
+
4908
+ static types(): { [key: string]: any } {
4909
+ return {
4910
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4911
+ statusCode: 'number',
4912
+ body: HotelQrBindResponseBody,
4913
+ };
4914
+ }
4915
+
4916
+ constructor(map?: { [key: string]: any }) {
4917
+ super(map);
4918
+ }
4919
+ }
4920
+
4812
4921
  export class ImportHotelConfigHeaders extends $tea.Model {
4813
4922
  commonHeaders?: { [key: string]: string };
4814
4923
  xAcsAligenieAccessToken?: string;
@@ -9116,12 +9225,14 @@ export class SubmitHotelOrderResponseBody extends $tea.Model {
9116
9225
  message?: string;
9117
9226
  requestId?: string;
9118
9227
  result?: string;
9228
+ statusCode?: number;
9119
9229
  static names(): { [key: string]: string } {
9120
9230
  return {
9121
9231
  code: 'Code',
9122
9232
  message: 'Message',
9123
9233
  requestId: 'RequestId',
9124
9234
  result: 'Result',
9235
+ statusCode: 'StatusCode',
9125
9236
  };
9126
9237
  }
9127
9238
 
@@ -9131,6 +9242,7 @@ export class SubmitHotelOrderResponseBody extends $tea.Model {
9131
9242
  message: 'string',
9132
9243
  requestId: 'string',
9133
9244
  result: 'string',
9245
+ statusCode: 'number',
9134
9246
  };
9135
9247
  }
9136
9248
 
@@ -11895,6 +12007,90 @@ export class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model {
11895
12007
  }
11896
12008
  }
11897
12009
 
12010
+ export class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
12011
+ encodeKey?: string;
12012
+ encodeType?: string;
12013
+ id?: string;
12014
+ idType?: string;
12015
+ organizationId?: string;
12016
+ static names(): { [key: string]: string } {
12017
+ return {
12018
+ encodeKey: 'EncodeKey',
12019
+ encodeType: 'EncodeType',
12020
+ id: 'Id',
12021
+ idType: 'IdType',
12022
+ organizationId: 'OrganizationId',
12023
+ };
12024
+ }
12025
+
12026
+ static types(): { [key: string]: any } {
12027
+ return {
12028
+ encodeKey: 'string',
12029
+ encodeType: 'string',
12030
+ id: 'string',
12031
+ idType: 'string',
12032
+ organizationId: 'string',
12033
+ };
12034
+ }
12035
+
12036
+ constructor(map?: { [key: string]: any }) {
12037
+ super(map);
12038
+ }
12039
+ }
12040
+
12041
+ export class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
12042
+ encodeKey?: string;
12043
+ encodeType?: string;
12044
+ id?: string;
12045
+ idType?: string;
12046
+ organizationId?: string;
12047
+ static names(): { [key: string]: string } {
12048
+ return {
12049
+ encodeKey: 'EncodeKey',
12050
+ encodeType: 'EncodeType',
12051
+ id: 'Id',
12052
+ idType: 'IdType',
12053
+ organizationId: 'OrganizationId',
12054
+ };
12055
+ }
12056
+
12057
+ static types(): { [key: string]: any } {
12058
+ return {
12059
+ encodeKey: 'string',
12060
+ encodeType: 'string',
12061
+ id: 'string',
12062
+ idType: 'string',
12063
+ organizationId: 'string',
12064
+ };
12065
+ }
12066
+
12067
+ constructor(map?: { [key: string]: any }) {
12068
+ super(map);
12069
+ }
12070
+ }
12071
+
12072
+ export class HotelQrBindResponseBodyResult extends $tea.Model {
12073
+ openDeviceInfo?: HotelQrBindResponseBodyResultOpenDeviceInfo;
12074
+ openUserInfo?: HotelQrBindResponseBodyResultOpenUserInfo;
12075
+ static names(): { [key: string]: string } {
12076
+ return {
12077
+ openDeviceInfo: 'OpenDeviceInfo',
12078
+ openUserInfo: 'OpenUserInfo',
12079
+ };
12080
+ }
12081
+
12082
+ static types(): { [key: string]: any } {
12083
+ return {
12084
+ openDeviceInfo: HotelQrBindResponseBodyResultOpenDeviceInfo,
12085
+ openUserInfo: HotelQrBindResponseBodyResultOpenUserInfo,
12086
+ };
12087
+ }
12088
+
12089
+ constructor(map?: { [key: string]: any }) {
12090
+ super(map);
12091
+ }
12092
+ }
12093
+
11898
12094
  export class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
11899
12095
  corpusList?: string[];
11900
12096
  description?: string;
@@ -11946,12 +12142,14 @@ export class ImportHotelConfigRequestImportHotelConfig extends $tea.Model {
11946
12142
  }
11947
12143
 
11948
12144
  export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
12145
+ aliasList?: string[];
11949
12146
  category?: string;
11950
12147
  deviceIndex?: number;
11951
12148
  deviceName?: string;
11952
12149
  location?: string;
11953
12150
  static names(): { [key: string]: string } {
11954
12151
  return {
12152
+ aliasList: 'AliasList',
11955
12153
  category: 'Category',
11956
12154
  deviceIndex: 'DeviceIndex',
11957
12155
  deviceName: 'DeviceName',
@@ -11961,6 +12159,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitch
11961
12159
 
11962
12160
  static types(): { [key: string]: any } {
11963
12161
  return {
12162
+ aliasList: { 'type': 'array', 'itemType': 'string' },
11964
12163
  category: 'string',
11965
12164
  deviceIndex: 'number',
11966
12165
  deviceName: 'string',
@@ -11993,6 +12192,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitch
11993
12192
  }
11994
12193
 
11995
12194
  export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
12195
+ aliasList?: string[];
11996
12196
  brand?: string;
11997
12197
  city?: string;
11998
12198
  connectType?: string;
@@ -12009,6 +12209,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
12009
12209
  serviceProvider?: string;
12010
12210
  static names(): { [key: string]: string } {
12011
12211
  return {
12212
+ aliasList: 'AliasList',
12012
12213
  brand: 'Brand',
12013
12214
  city: 'City',
12014
12215
  connectType: 'ConnectType',
@@ -12028,6 +12229,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
12028
12229
 
12029
12230
  static types(): { [key: string]: any } {
12030
12231
  return {
12232
+ aliasList: { 'type': 'array', 'itemType': 'string' },
12031
12233
  brand: 'string',
12032
12234
  city: 'string',
12033
12235
  connectType: 'string',
@@ -13065,6 +13267,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
13065
13267
  id?: string;
13066
13268
  name?: string;
13067
13269
  price?: number;
13270
+ residueLimit?: number;
13068
13271
  status?: string;
13069
13272
  type?: string;
13070
13273
  static names(): { [key: string]: string } {
@@ -13074,6 +13277,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
13074
13277
  id: 'Id',
13075
13278
  name: 'Name',
13076
13279
  price: 'Price',
13280
+ residueLimit: 'ResidueLimit',
13077
13281
  status: 'Status',
13078
13282
  type: 'Type',
13079
13283
  };
@@ -13086,6 +13290,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
13086
13290
  id: 'string',
13087
13291
  name: 'string',
13088
13292
  price: 'number',
13293
+ residueLimit: 'number',
13089
13294
  status: 'string',
13090
13295
  type: 'string',
13091
13296
  };
@@ -13222,10 +13427,13 @@ export class ListHotelSceneItemsResponseBodyResultPage extends $tea.Model {
13222
13427
  }
13223
13428
 
13224
13429
  export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Model {
13430
+ beyondLimitReply?: string;
13225
13431
  category?: string;
13226
13432
  deliveryMethod?: string;
13227
13433
  icon?: string;
13228
13434
  id?: number;
13435
+ limitNumber?: number;
13436
+ limitSwitch?: number;
13229
13437
  name?: string;
13230
13438
  paymentMethod?: string;
13231
13439
  price?: number;
@@ -13235,10 +13443,13 @@ export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Mod
13235
13443
  updateTime?: number;
13236
13444
  static names(): { [key: string]: string } {
13237
13445
  return {
13446
+ beyondLimitReply: 'BeyondLimitReply',
13238
13447
  category: 'Category',
13239
13448
  deliveryMethod: 'DeliveryMethod',
13240
13449
  icon: 'Icon',
13241
13450
  id: 'Id',
13451
+ limitNumber: 'LimitNumber',
13452
+ limitSwitch: 'LimitSwitch',
13242
13453
  name: 'Name',
13243
13454
  paymentMethod: 'PaymentMethod',
13244
13455
  price: 'Price',
@@ -13251,10 +13462,13 @@ export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Mod
13251
13462
 
13252
13463
  static types(): { [key: string]: any } {
13253
13464
  return {
13465
+ beyondLimitReply: 'string',
13254
13466
  category: 'string',
13255
13467
  deliveryMethod: 'string',
13256
13468
  icon: 'string',
13257
13469
  id: 'number',
13470
+ limitNumber: 'number',
13471
+ limitSwitch: 'number',
13258
13472
  name: 'string',
13259
13473
  paymentMethod: 'string',
13260
13474
  price: 'number',
@@ -14130,6 +14344,7 @@ export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
14130
14344
  }
14131
14345
 
14132
14346
  export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
14347
+ aliasList?: string[];
14133
14348
  category?: string;
14134
14349
  deviceIndex?: number;
14135
14350
  deviceName?: string;
@@ -14138,6 +14353,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSw
14138
14353
  location?: string;
14139
14354
  static names(): { [key: string]: string } {
14140
14355
  return {
14356
+ aliasList: 'AliasList',
14141
14357
  category: 'Category',
14142
14358
  deviceIndex: 'DeviceIndex',
14143
14359
  deviceName: 'DeviceName',
@@ -14149,6 +14365,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSw
14149
14365
 
14150
14366
  static types(): { [key: string]: any } {
14151
14367
  return {
14368
+ aliasList: { 'type': 'array', 'itemType': 'string' },
14152
14369
  category: 'string',
14153
14370
  deviceIndex: 'number',
14154
14371
  deviceName: 'string',
@@ -14183,6 +14400,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt e
14183
14400
  }
14184
14401
 
14185
14402
  export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
14403
+ aliasList?: string[];
14186
14404
  connectType?: string;
14187
14405
  DN?: string;
14188
14406
  deviceName?: string;
@@ -14193,6 +14411,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model
14193
14411
  PK?: string;
14194
14412
  static names(): { [key: string]: string } {
14195
14413
  return {
14414
+ aliasList: 'AliasList',
14196
14415
  connectType: 'ConnectType',
14197
14416
  DN: 'DN',
14198
14417
  deviceName: 'DeviceName',
@@ -14206,6 +14425,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model
14206
14425
 
14207
14426
  static types(): { [key: string]: any } {
14208
14427
  return {
14428
+ aliasList: { 'type': 'array', 'itemType': 'string' },
14209
14429
  connectType: 'string',
14210
14430
  DN: 'string',
14211
14431
  deviceName: 'string',
@@ -14649,10 +14869,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList extends
14649
14869
  }
14650
14870
 
14651
14871
  export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
14872
+ beyondLimitReply?: string;
14652
14873
  deliveryMethod?: string;
14653
14874
  dialogueList?: UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList[];
14654
14875
  icon?: string;
14655
14876
  id?: number;
14877
+ limitNumber?: number;
14878
+ limitSwitch?: number;
14656
14879
  name?: string;
14657
14880
  paymentMethod?: string;
14658
14881
  price?: number;
@@ -14660,10 +14883,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
14660
14883
  status?: string;
14661
14884
  static names(): { [key: string]: string } {
14662
14885
  return {
14886
+ beyondLimitReply: 'BeyondLimitReply',
14663
14887
  deliveryMethod: 'DeliveryMethod',
14664
14888
  dialogueList: 'DialogueList',
14665
14889
  icon: 'Icon',
14666
14890
  id: 'Id',
14891
+ limitNumber: 'LimitNumber',
14892
+ limitSwitch: 'LimitSwitch',
14667
14893
  name: 'Name',
14668
14894
  paymentMethod: 'PaymentMethod',
14669
14895
  price: 'Price',
@@ -14674,10 +14900,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
14674
14900
 
14675
14901
  static types(): { [key: string]: any } {
14676
14902
  return {
14903
+ beyondLimitReply: 'string',
14677
14904
  deliveryMethod: 'string',
14678
14905
  dialogueList: { 'type': 'array', 'itemType': UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList },
14679
14906
  icon: 'string',
14680
14907
  id: 'number',
14908
+ limitNumber: 'number',
14909
+ limitSwitch: 'number',
14681
14910
  name: 'string',
14682
14911
  paymentMethod: 'string',
14683
14912
  price: 'number',
@@ -16983,6 +17212,66 @@ export default class Client extends OpenApi {
16983
17212
  return await this.getWelcomeTextAndMusicWithOptions(request, headers, runtime);
16984
17213
  }
16985
17214
 
17215
+ async hotelQrBindWithOptions(request: HotelQrBindRequest, headers: HotelQrBindHeaders, runtime: $Util.RuntimeOptions): Promise<HotelQrBindResponse> {
17216
+ Util.validateModel(request);
17217
+ let body : {[key: string ]: any} = { };
17218
+ if (!Util.isUnset(request.clientId)) {
17219
+ body["ClientId"] = request.clientId;
17220
+ }
17221
+
17222
+ if (!Util.isUnset(request.code)) {
17223
+ body["Code"] = request.code;
17224
+ }
17225
+
17226
+ if (!Util.isUnset(request.extInfo)) {
17227
+ body["ExtInfo"] = request.extInfo;
17228
+ }
17229
+
17230
+ if (!Util.isUnset(request.hotelId)) {
17231
+ body["HotelId"] = request.hotelId;
17232
+ }
17233
+
17234
+ if (!Util.isUnset(request.roomNo)) {
17235
+ body["RoomNo"] = request.roomNo;
17236
+ }
17237
+
17238
+ let realHeaders : {[key: string ]: string} = { };
17239
+ if (!Util.isUnset(headers.commonHeaders)) {
17240
+ realHeaders = headers.commonHeaders;
17241
+ }
17242
+
17243
+ if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
17244
+ realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
17245
+ }
17246
+
17247
+ if (!Util.isUnset(headers.authorization)) {
17248
+ realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
17249
+ }
17250
+
17251
+ let req = new $OpenApi.OpenApiRequest({
17252
+ headers: realHeaders,
17253
+ body: OpenApiUtil.parseToMap(body),
17254
+ });
17255
+ let params = new $OpenApi.Params({
17256
+ action: "HotelQrBind",
17257
+ version: "ip_1.0",
17258
+ protocol: "HTTPS",
17259
+ pathname: `/v1.0/ip/hotelQrBind`,
17260
+ method: "POST",
17261
+ authType: "AK",
17262
+ style: "ROA",
17263
+ reqBodyType: "formData",
17264
+ bodyType: "json",
17265
+ });
17266
+ return $tea.cast<HotelQrBindResponse>(await this.callApi(params, req, runtime), new HotelQrBindResponse({}));
17267
+ }
17268
+
17269
+ async hotelQrBind(request: HotelQrBindRequest): Promise<HotelQrBindResponse> {
17270
+ let runtime = new $Util.RuntimeOptions({ });
17271
+ let headers = new HotelQrBindHeaders({ });
17272
+ return await this.hotelQrBindWithOptions(request, headers, runtime);
17273
+ }
17274
+
16986
17275
  async importHotelConfigWithOptions(tmpReq: ImportHotelConfigRequest, headers: ImportHotelConfigHeaders, runtime: $Util.RuntimeOptions): Promise<ImportHotelConfigResponse> {
16987
17276
  Util.validateModel(tmpReq);
16988
17277
  let request = new ImportHotelConfigShrinkRequest({ });