@alicloud/aligenieip_1_0 1.0.20 → 1.0.21

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