@alicloud/aligenieip_1_0 1.0.20 → 1.0.22

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": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -7142,7 +7142,7 @@ export class QueryDeviceStatusResponse extends $tea.Model {
7142
7142
  }
7143
7143
  }
7144
7144
 
7145
- export class QueryHotelProductHeaders extends $tea.Model {
7145
+ export class QueryHotelRoomDetailHeaders extends $tea.Model {
7146
7146
  commonHeaders?: { [key: string]: string };
7147
7147
  xAcsAligenieAccessToken?: string;
7148
7148
  authorization?: string;
@@ -7167,36 +7167,29 @@ export class QueryHotelProductHeaders extends $tea.Model {
7167
7167
  }
7168
7168
  }
7169
7169
 
7170
- export class QueryHotelProductRequest extends $tea.Model {
7171
- userInfo?: QueryHotelProductRequestUserInfo;
7172
- static names(): { [key: string]: string } {
7173
- return {
7174
- userInfo: 'UserInfo',
7175
- };
7176
- }
7177
-
7178
- static types(): { [key: string]: any } {
7179
- return {
7180
- userInfo: QueryHotelProductRequestUserInfo,
7181
- };
7182
- }
7183
-
7184
- constructor(map?: { [key: string]: any }) {
7185
- super(map);
7186
- }
7187
- }
7188
-
7189
- export class QueryHotelProductShrinkRequest extends $tea.Model {
7190
- userInfoShrink?: string;
7170
+ export class QueryHotelRoomDetailRequest extends $tea.Model {
7171
+ hotelId?: string;
7172
+ mac?: string;
7173
+ roomNo?: string;
7174
+ sn?: string;
7175
+ uuid?: string;
7191
7176
  static names(): { [key: string]: string } {
7192
7177
  return {
7193
- userInfoShrink: 'UserInfo',
7178
+ hotelId: 'HotelId',
7179
+ mac: 'Mac',
7180
+ roomNo: 'RoomNo',
7181
+ sn: 'Sn',
7182
+ uuid: 'Uuid',
7194
7183
  };
7195
7184
  }
7196
7185
 
7197
7186
  static types(): { [key: string]: any } {
7198
7187
  return {
7199
- userInfoShrink: 'string',
7188
+ hotelId: 'string',
7189
+ mac: 'string',
7190
+ roomNo: 'string',
7191
+ sn: 'string',
7192
+ uuid: 'string',
7200
7193
  };
7201
7194
  }
7202
7195
 
@@ -7205,26 +7198,26 @@ export class QueryHotelProductShrinkRequest extends $tea.Model {
7205
7198
  }
7206
7199
  }
7207
7200
 
7208
- export class QueryHotelProductResponseBody extends $tea.Model {
7209
- code?: number;
7201
+ export class QueryHotelRoomDetailResponseBody extends $tea.Model {
7210
7202
  message?: string;
7211
7203
  requestId?: string;
7212
- result?: QueryHotelProductResponseBodyResult;
7204
+ result?: QueryHotelRoomDetailResponseBodyResult;
7205
+ statusCode?: number;
7213
7206
  static names(): { [key: string]: string } {
7214
7207
  return {
7215
- code: 'Code',
7216
7208
  message: 'Message',
7217
7209
  requestId: 'RequestId',
7218
7210
  result: 'Result',
7211
+ statusCode: 'StatusCode',
7219
7212
  };
7220
7213
  }
7221
7214
 
7222
7215
  static types(): { [key: string]: any } {
7223
7216
  return {
7224
- code: 'number',
7225
7217
  message: 'string',
7226
7218
  requestId: 'string',
7227
- result: QueryHotelProductResponseBodyResult,
7219
+ result: QueryHotelRoomDetailResponseBodyResult,
7220
+ statusCode: 'number',
7228
7221
  };
7229
7222
  }
7230
7223
 
@@ -7233,10 +7226,10 @@ export class QueryHotelProductResponseBody extends $tea.Model {
7233
7226
  }
7234
7227
  }
7235
7228
 
7236
- export class QueryHotelProductResponse extends $tea.Model {
7229
+ export class QueryHotelRoomDetailResponse extends $tea.Model {
7237
7230
  headers: { [key: string]: string };
7238
7231
  statusCode: number;
7239
- body: QueryHotelProductResponseBody;
7232
+ body: QueryHotelRoomDetailResponseBody;
7240
7233
  static names(): { [key: string]: string } {
7241
7234
  return {
7242
7235
  headers: 'headers',
@@ -7249,7 +7242,7 @@ export class QueryHotelProductResponse extends $tea.Model {
7249
7242
  return {
7250
7243
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7251
7244
  statusCode: 'number',
7252
- body: QueryHotelProductResponseBody,
7245
+ body: QueryHotelRoomDetailResponseBody,
7253
7246
  };
7254
7247
  }
7255
7248
 
@@ -12109,29 +12102,20 @@ export class QueryDeviceStatusRequestUserInfo extends $tea.Model {
12109
12102
  }
12110
12103
  }
12111
12104
 
12112
- export class QueryHotelProductRequestUserInfo extends $tea.Model {
12113
- encodeKey?: string;
12114
- encodeType?: string;
12115
- id?: string;
12116
- idType?: string;
12117
- organizationId?: string;
12105
+ export class QueryHotelRoomDetailResponseBodyResultAuthAccounts extends $tea.Model {
12106
+ accountName?: string;
12107
+ authTime?: string;
12118
12108
  static names(): { [key: string]: string } {
12119
12109
  return {
12120
- encodeKey: 'EncodeKey',
12121
- encodeType: 'EncodeType',
12122
- id: 'Id',
12123
- idType: 'IdType',
12124
- organizationId: 'OrganizationId',
12110
+ accountName: 'AccountName',
12111
+ authTime: 'AuthTime',
12125
12112
  };
12126
12113
  }
12127
12114
 
12128
12115
  static types(): { [key: string]: any } {
12129
12116
  return {
12130
- encodeKey: 'string',
12131
- encodeType: 'string',
12132
- id: 'string',
12133
- idType: 'string',
12134
- organizationId: 'string',
12117
+ accountName: 'string',
12118
+ authTime: 'string',
12135
12119
  };
12136
12120
  }
12137
12121
 
@@ -12140,26 +12124,214 @@ export class QueryHotelProductRequestUserInfo extends $tea.Model {
12140
12124
  }
12141
12125
  }
12142
12126
 
12143
- export class QueryHotelProductResponseBodyResult extends $tea.Model {
12127
+ export class QueryHotelRoomDetailResponseBodyResultDeviceInfos extends $tea.Model {
12128
+ activeTime?: string;
12129
+ deviceName?: string;
12130
+ firmwareVersion?: string;
12131
+ mac?: string;
12132
+ onlineStatus?: number;
12133
+ sn?: string;
12134
+ uuid?: string;
12135
+ static names(): { [key: string]: string } {
12136
+ return {
12137
+ activeTime: 'ActiveTime',
12138
+ deviceName: 'DeviceName',
12139
+ firmwareVersion: 'FirmwareVersion',
12140
+ mac: 'Mac',
12141
+ onlineStatus: 'OnlineStatus',
12142
+ sn: 'Sn',
12143
+ uuid: 'Uuid',
12144
+ };
12145
+ }
12146
+
12147
+ static types(): { [key: string]: any } {
12148
+ return {
12149
+ activeTime: 'string',
12150
+ deviceName: 'string',
12151
+ firmwareVersion: 'string',
12152
+ mac: 'string',
12153
+ onlineStatus: 'number',
12154
+ sn: 'string',
12155
+ uuid: 'string',
12156
+ };
12157
+ }
12158
+
12159
+ constructor(map?: { [key: string]: any }) {
12160
+ super(map);
12161
+ }
12162
+ }
12163
+
12164
+ export class QueryHotelRoomDetailResponseBodyResultOtherService extends $tea.Model {
12165
+ openCall?: boolean;
12166
+ unhandleTickets?: number;
12167
+ static names(): { [key: string]: string } {
12168
+ return {
12169
+ openCall: 'OpenCall',
12170
+ unhandleTickets: 'UnhandleTickets',
12171
+ };
12172
+ }
12173
+
12174
+ static types(): { [key: string]: any } {
12175
+ return {
12176
+ openCall: 'boolean',
12177
+ unhandleTickets: 'number',
12178
+ };
12179
+ }
12180
+
12181
+ constructor(map?: { [key: string]: any }) {
12182
+ super(map);
12183
+ }
12184
+ }
12185
+
12186
+ export class QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos extends $tea.Model {
12187
+ categoryEnName?: string;
12188
+ categoryId?: number;
12189
+ categoryName?: string;
12190
+ deviceConnectType?: string;
12191
+ deviceCount?: number;
12192
+ deviceId?: string;
12193
+ deviceName?: string;
12194
+ locationEnName?: string;
12195
+ locationId?: number;
12196
+ locationName?: string;
12197
+ productKey?: string;
12198
+ static names(): { [key: string]: string } {
12199
+ return {
12200
+ categoryEnName: 'CategoryEnName',
12201
+ categoryId: 'CategoryId',
12202
+ categoryName: 'CategoryName',
12203
+ deviceConnectType: 'DeviceConnectType',
12204
+ deviceCount: 'DeviceCount',
12205
+ deviceId: 'DeviceId',
12206
+ deviceName: 'DeviceName',
12207
+ locationEnName: 'LocationEnName',
12208
+ locationId: 'LocationId',
12209
+ locationName: 'LocationName',
12210
+ productKey: 'ProductKey',
12211
+ };
12212
+ }
12213
+
12214
+ static types(): { [key: string]: any } {
12215
+ return {
12216
+ categoryEnName: 'string',
12217
+ categoryId: 'number',
12218
+ categoryName: 'string',
12219
+ deviceConnectType: 'string',
12220
+ deviceCount: 'number',
12221
+ deviceId: 'string',
12222
+ deviceName: 'string',
12223
+ locationEnName: 'string',
12224
+ locationId: 'number',
12225
+ locationName: 'string',
12226
+ productKey: 'string',
12227
+ };
12228
+ }
12229
+
12230
+ constructor(map?: { [key: string]: any }) {
12231
+ super(map);
12232
+ }
12233
+ }
12234
+
12235
+ export class QueryHotelRoomDetailResponseBodyResultRoomControlInfo extends $tea.Model {
12236
+ appId?: number;
12237
+ appName?: string;
12238
+ deviceInfos?: QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos[];
12239
+ rcuUrl?: string;
12240
+ templateId?: number;
12241
+ templateName?: string;
12242
+ static names(): { [key: string]: string } {
12243
+ return {
12244
+ appId: 'AppId',
12245
+ appName: 'AppName',
12246
+ deviceInfos: 'DeviceInfos',
12247
+ rcuUrl: 'RcuUrl',
12248
+ templateId: 'TemplateId',
12249
+ templateName: 'TemplateName',
12250
+ };
12251
+ }
12252
+
12253
+ static types(): { [key: string]: any } {
12254
+ return {
12255
+ appId: 'number',
12256
+ appName: 'string',
12257
+ deviceInfos: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultRoomControlInfoDeviceInfos },
12258
+ rcuUrl: 'string',
12259
+ templateId: 'number',
12260
+ templateName: 'string',
12261
+ };
12262
+ }
12263
+
12264
+ constructor(map?: { [key: string]: any }) {
12265
+ super(map);
12266
+ }
12267
+ }
12268
+
12269
+ export class QueryHotelRoomDetailResponseBodyResultRoomServiceInfo extends $tea.Model {
12270
+ bookServiceCnt?: number;
12271
+ goodsServiceCnt?: number;
12272
+ repairServiceCnt?: number;
12273
+ roomServiceCnt?: number;
12274
+ static names(): { [key: string]: string } {
12275
+ return {
12276
+ bookServiceCnt: 'BookServiceCnt',
12277
+ goodsServiceCnt: 'GoodsServiceCnt',
12278
+ repairServiceCnt: 'RepairServiceCnt',
12279
+ roomServiceCnt: 'RoomServiceCnt',
12280
+ };
12281
+ }
12282
+
12283
+ static types(): { [key: string]: any } {
12284
+ return {
12285
+ bookServiceCnt: 'number',
12286
+ goodsServiceCnt: 'number',
12287
+ repairServiceCnt: 'number',
12288
+ roomServiceCnt: 'number',
12289
+ };
12290
+ }
12291
+
12292
+ constructor(map?: { [key: string]: any }) {
12293
+ super(map);
12294
+ }
12295
+ }
12296
+
12297
+ export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
12298
+ authAccounts?: QueryHotelRoomDetailResponseBodyResultAuthAccounts[];
12299
+ connectType?: string;
12300
+ creatorAccountName?: string;
12301
+ deviceInfos?: QueryHotelRoomDetailResponseBodyResultDeviceInfos[];
12144
12302
  hotelId?: string;
12145
12303
  hotelName?: string;
12146
- productKey?: string;
12147
- productName?: string;
12304
+ otherService?: QueryHotelRoomDetailResponseBodyResultOtherService;
12305
+ roomControlInfo?: QueryHotelRoomDetailResponseBodyResultRoomControlInfo;
12306
+ roomNo?: string;
12307
+ roomServiceInfo?: QueryHotelRoomDetailResponseBodyResultRoomServiceInfo;
12148
12308
  static names(): { [key: string]: string } {
12149
12309
  return {
12310
+ authAccounts: 'AuthAccounts',
12311
+ connectType: 'ConnectType',
12312
+ creatorAccountName: 'CreatorAccountName',
12313
+ deviceInfos: 'DeviceInfos',
12150
12314
  hotelId: 'HotelId',
12151
12315
  hotelName: 'HotelName',
12152
- productKey: 'ProductKey',
12153
- productName: 'ProductName',
12316
+ otherService: 'OtherService',
12317
+ roomControlInfo: 'RoomControlInfo',
12318
+ roomNo: 'RoomNo',
12319
+ roomServiceInfo: 'RoomServiceInfo',
12154
12320
  };
12155
12321
  }
12156
12322
 
12157
12323
  static types(): { [key: string]: any } {
12158
12324
  return {
12325
+ authAccounts: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultAuthAccounts },
12326
+ connectType: 'string',
12327
+ creatorAccountName: 'string',
12328
+ deviceInfos: { 'type': 'array', 'itemType': QueryHotelRoomDetailResponseBodyResultDeviceInfos },
12159
12329
  hotelId: 'string',
12160
12330
  hotelName: 'string',
12161
- productKey: 'string',
12162
- productName: 'string',
12331
+ otherService: QueryHotelRoomDetailResponseBodyResultOtherService,
12332
+ roomControlInfo: QueryHotelRoomDetailResponseBodyResultRoomControlInfo,
12333
+ roomNo: 'string',
12334
+ roomServiceInfo: QueryHotelRoomDetailResponseBodyResultRoomServiceInfo,
12163
12335
  };
12164
12336
  }
12165
12337
 
@@ -15911,17 +16083,27 @@ export default class Client extends OpenApi {
15911
16083
  return await this.queryDeviceStatusWithOptions(request, headers, runtime);
15912
16084
  }
15913
16085
 
15914
- async queryHotelProductWithOptions(tmpReq: QueryHotelProductRequest, headers: QueryHotelProductHeaders, runtime: $Util.RuntimeOptions): Promise<QueryHotelProductResponse> {
15915
- Util.validateModel(tmpReq);
15916
- let request = new QueryHotelProductShrinkRequest({ });
15917
- OpenApiUtil.convert(tmpReq, request);
15918
- if (!Util.isUnset(tmpReq.userInfo)) {
15919
- request.userInfoShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userInfo, "UserInfo", "json");
16086
+ async queryHotelRoomDetailWithOptions(request: QueryHotelRoomDetailRequest, headers: QueryHotelRoomDetailHeaders, runtime: $Util.RuntimeOptions): Promise<QueryHotelRoomDetailResponse> {
16087
+ Util.validateModel(request);
16088
+ let body : {[key: string ]: any} = { };
16089
+ if (!Util.isUnset(request.hotelId)) {
16090
+ body["HotelId"] = request.hotelId;
15920
16091
  }
15921
16092
 
15922
- let query : {[key: string ]: any} = { };
15923
- if (!Util.isUnset(request.userInfoShrink)) {
15924
- query["UserInfo"] = request.userInfoShrink;
16093
+ if (!Util.isUnset(request.mac)) {
16094
+ body["Mac"] = request.mac;
16095
+ }
16096
+
16097
+ if (!Util.isUnset(request.roomNo)) {
16098
+ body["RoomNo"] = request.roomNo;
16099
+ }
16100
+
16101
+ if (!Util.isUnset(request.sn)) {
16102
+ body["Sn"] = request.sn;
16103
+ }
16104
+
16105
+ if (!Util.isUnset(request.uuid)) {
16106
+ body["Uuid"] = request.uuid;
15925
16107
  }
15926
16108
 
15927
16109
  let realHeaders : {[key: string ]: string} = { };
@@ -15939,26 +16121,26 @@ export default class Client extends OpenApi {
15939
16121
 
15940
16122
  let req = new $OpenApi.OpenApiRequest({
15941
16123
  headers: realHeaders,
15942
- query: OpenApiUtil.query(query),
16124
+ body: OpenApiUtil.parseToMap(body),
15943
16125
  });
15944
16126
  let params = new $OpenApi.Params({
15945
- action: "QueryHotelProduct",
16127
+ action: "QueryHotelRoomDetail",
15946
16128
  version: "ip_1.0",
15947
16129
  protocol: "HTTPS",
15948
- pathname: `/v1.0/ip/queryHotelProduct`,
16130
+ pathname: `/v1.0/ip/queryHotelRoomDetail`,
15949
16131
  method: "POST",
15950
16132
  authType: "AK",
15951
16133
  style: "ROA",
15952
- reqBodyType: "json",
16134
+ reqBodyType: "formData",
15953
16135
  bodyType: "json",
15954
16136
  });
15955
- return $tea.cast<QueryHotelProductResponse>(await this.callApi(params, req, runtime), new QueryHotelProductResponse({}));
16137
+ return $tea.cast<QueryHotelRoomDetailResponse>(await this.callApi(params, req, runtime), new QueryHotelRoomDetailResponse({}));
15956
16138
  }
15957
16139
 
15958
- async queryHotelProduct(request: QueryHotelProductRequest): Promise<QueryHotelProductResponse> {
16140
+ async queryHotelRoomDetail(request: QueryHotelRoomDetailRequest): Promise<QueryHotelRoomDetailResponse> {
15959
16141
  let runtime = new $Util.RuntimeOptions({ });
15960
- let headers = new QueryHotelProductHeaders({ });
15961
- return await this.queryHotelProductWithOptions(request, headers, runtime);
16142
+ let headers = new QueryHotelRoomDetailHeaders({ });
16143
+ return await this.queryHotelRoomDetailWithOptions(request, headers, runtime);
15962
16144
  }
15963
16145
 
15964
16146
  async queryRoomControlDevicesWithOptions(request: QueryRoomControlDevicesRequest, headers: QueryRoomControlDevicesHeaders, runtime: $Util.RuntimeOptions): Promise<QueryRoomControlDevicesResponse> {