@alicloud/aligenieip_1_0 2.4.0 → 2.5.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 CHANGED
@@ -144,6 +144,85 @@ export declare class AddCustomQAResponse extends $tea.Model {
144
144
  [key: string]: any;
145
145
  });
146
146
  }
147
+ export declare class AddCustomQAV2Headers extends $tea.Model {
148
+ commonHeaders?: {
149
+ [key: string]: string;
150
+ };
151
+ xAcsAligenieAccessToken?: string;
152
+ authorization?: string;
153
+ static names(): {
154
+ [key: string]: string;
155
+ };
156
+ static types(): {
157
+ [key: string]: any;
158
+ };
159
+ constructor(map?: {
160
+ [key: string]: any;
161
+ });
162
+ }
163
+ export declare class AddCustomQAV2Request extends $tea.Model {
164
+ answers?: string[];
165
+ hotelId?: string;
166
+ keyWords?: string[];
167
+ majorQuestion?: string;
168
+ supplementaryQuestions?: string[];
169
+ static names(): {
170
+ [key: string]: string;
171
+ };
172
+ static types(): {
173
+ [key: string]: any;
174
+ };
175
+ constructor(map?: {
176
+ [key: string]: any;
177
+ });
178
+ }
179
+ export declare class AddCustomQAV2ShrinkRequest extends $tea.Model {
180
+ answersShrink?: string;
181
+ hotelId?: string;
182
+ keyWordsShrink?: string;
183
+ majorQuestion?: string;
184
+ supplementaryQuestionsShrink?: string;
185
+ static names(): {
186
+ [key: string]: string;
187
+ };
188
+ static types(): {
189
+ [key: string]: any;
190
+ };
191
+ constructor(map?: {
192
+ [key: string]: any;
193
+ });
194
+ }
195
+ export declare class AddCustomQAV2ResponseBody extends $tea.Model {
196
+ message?: string;
197
+ requestId?: string;
198
+ result?: AddCustomQAV2ResponseBodyResult;
199
+ statusCode?: number;
200
+ static names(): {
201
+ [key: string]: string;
202
+ };
203
+ static types(): {
204
+ [key: string]: any;
205
+ };
206
+ constructor(map?: {
207
+ [key: string]: any;
208
+ });
209
+ }
210
+ export declare class AddCustomQAV2Response extends $tea.Model {
211
+ headers: {
212
+ [key: string]: string;
213
+ };
214
+ statusCode: number;
215
+ body: AddCustomQAV2ResponseBody;
216
+ static names(): {
217
+ [key: string]: string;
218
+ };
219
+ static types(): {
220
+ [key: string]: any;
221
+ };
222
+ constructor(map?: {
223
+ [key: string]: any;
224
+ });
225
+ }
147
226
  export declare class AddMessageTemplateHeaders extends $tea.Model {
148
227
  commonHeaders?: {
149
228
  [key: string]: string;
@@ -3868,6 +3947,20 @@ export declare class ListHotelRoomsHeaders extends $tea.Model {
3868
3947
  });
3869
3948
  }
3870
3949
  export declare class ListHotelRoomsRequest extends $tea.Model {
3950
+ hotelAdminRoom?: ListHotelRoomsRequestHotelAdminRoom;
3951
+ hotelId?: string;
3952
+ static names(): {
3953
+ [key: string]: string;
3954
+ };
3955
+ static types(): {
3956
+ [key: string]: any;
3957
+ };
3958
+ constructor(map?: {
3959
+ [key: string]: any;
3960
+ });
3961
+ }
3962
+ export declare class ListHotelRoomsShrinkRequest extends $tea.Model {
3963
+ hotelAdminRoomShrink?: string;
3871
3964
  hotelId?: string;
3872
3965
  static names(): {
3873
3966
  [key: string]: string;
@@ -4220,6 +4313,7 @@ export declare class ListHotelsHeaders extends $tea.Model {
4220
4313
  });
4221
4314
  }
4222
4315
  export declare class ListHotelsRequest extends $tea.Model {
4316
+ hotelRequest?: ListHotelsRequestHotelRequest;
4223
4317
  page?: ListHotelsRequestPage;
4224
4318
  status?: number;
4225
4319
  static names(): {
@@ -4233,6 +4327,7 @@ export declare class ListHotelsRequest extends $tea.Model {
4233
4327
  });
4234
4328
  }
4235
4329
  export declare class ListHotelsShrinkRequest extends $tea.Model {
4330
+ hotelRequestShrink?: string;
4236
4331
  pageShrink?: string;
4237
4332
  status?: number;
4238
4333
  static names(): {
@@ -6384,6 +6479,27 @@ export declare class UpdateTicketResponse extends $tea.Model {
6384
6479
  [key: string]: any;
6385
6480
  });
6386
6481
  }
6482
+ export declare class AddCustomQAV2ResponseBodyResult extends $tea.Model {
6483
+ answers?: string;
6484
+ createTime?: string;
6485
+ hotelId?: string;
6486
+ keyWords?: string;
6487
+ lastOperator?: string;
6488
+ majorQuestion?: string;
6489
+ qaId?: string;
6490
+ status?: number;
6491
+ supplementaryQuestion?: string;
6492
+ updateTime?: string;
6493
+ static names(): {
6494
+ [key: string]: string;
6495
+ };
6496
+ static types(): {
6497
+ [key: string]: any;
6498
+ };
6499
+ constructor(map?: {
6500
+ [key: string]: any;
6501
+ });
6502
+ }
6387
6503
  export declare class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
6388
6504
  screenSaverPicUrl?: string;
6389
6505
  screenSaverStyle?: string;
@@ -7631,6 +7747,18 @@ export declare class ListHotelOrderResponseBodyResult extends $tea.Model {
7631
7747
  [key: string]: any;
7632
7748
  });
7633
7749
  }
7750
+ export declare class ListHotelRoomsRequestHotelAdminRoom extends $tea.Model {
7751
+ roomNo?: string;
7752
+ static names(): {
7753
+ [key: string]: string;
7754
+ };
7755
+ static types(): {
7756
+ [key: string]: any;
7757
+ };
7758
+ constructor(map?: {
7759
+ [key: string]: any;
7760
+ });
7761
+ }
7634
7762
  export declare class ListHotelRoomsResponseBodyResult extends $tea.Model {
7635
7763
  hotelId?: string;
7636
7764
  roomNo?: string;
@@ -7903,6 +8031,18 @@ export declare class ListHotelServiceCategoryResponseBodyResult extends $tea.Mod
7903
8031
  [key: string]: any;
7904
8032
  });
7905
8033
  }
8034
+ export declare class ListHotelsRequestHotelRequest extends $tea.Model {
8035
+ hotelId?: string;
8036
+ static names(): {
8037
+ [key: string]: string;
8038
+ };
8039
+ static types(): {
8040
+ [key: string]: any;
8041
+ };
8042
+ constructor(map?: {
8043
+ [key: string]: any;
8044
+ });
8045
+ }
7906
8046
  export declare class ListHotelsRequestPage extends $tea.Model {
7907
8047
  pageNumber?: number;
7908
8048
  pageSize?: number;
@@ -8637,6 +8777,8 @@ export default class Client extends OpenApi {
8637
8777
  addCartoon(request: AddCartoonRequest): Promise<AddCartoonResponse>;
8638
8778
  addCustomQAWithOptions(tmpReq: AddCustomQARequest, headers: AddCustomQAHeaders, runtime: $Util.RuntimeOptions): Promise<AddCustomQAResponse>;
8639
8779
  addCustomQA(request: AddCustomQARequest): Promise<AddCustomQAResponse>;
8780
+ addCustomQAV2WithOptions(tmpReq: AddCustomQAV2Request, headers: AddCustomQAV2Headers, runtime: $Util.RuntimeOptions): Promise<AddCustomQAV2Response>;
8781
+ addCustomQAV2(request: AddCustomQAV2Request): Promise<AddCustomQAV2Response>;
8640
8782
  addMessageTemplateWithOptions(request: AddMessageTemplateRequest, headers: AddMessageTemplateHeaders, runtime: $Util.RuntimeOptions): Promise<AddMessageTemplateResponse>;
8641
8783
  addMessageTemplate(request: AddMessageTemplateRequest): Promise<AddMessageTemplateResponse>;
8642
8784
  addOrUpdateDisPlayModesWithOptions(tmpReq: AddOrUpdateDisPlayModesRequest, headers: AddOrUpdateDisPlayModesHeaders, runtime: $Util.RuntimeOptions): Promise<AddOrUpdateDisPlayModesResponse>;
@@ -8747,7 +8889,7 @@ export default class Client extends OpenApi {
8747
8889
  listHotelMessageTemplate(): Promise<ListHotelMessageTemplateResponse>;
8748
8890
  listHotelOrderWithOptions(tmpReq: ListHotelOrderRequest, headers: ListHotelOrderHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelOrderResponse>;
8749
8891
  listHotelOrder(request: ListHotelOrderRequest): Promise<ListHotelOrderResponse>;
8750
- listHotelRoomsWithOptions(request: ListHotelRoomsRequest, headers: ListHotelRoomsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelRoomsResponse>;
8892
+ listHotelRoomsWithOptions(tmpReq: ListHotelRoomsRequest, headers: ListHotelRoomsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelRoomsResponse>;
8751
8893
  listHotelRooms(request: ListHotelRoomsRequest): Promise<ListHotelRoomsResponse>;
8752
8894
  listHotelSceneBookItemsWithOptions(tmpReq: ListHotelSceneBookItemsRequest, headers: ListHotelSceneBookItemsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelSceneBookItemsResponse>;
8753
8895
  listHotelSceneBookItems(request: ListHotelSceneBookItemsRequest): Promise<ListHotelSceneBookItemsResponse>;
package/dist/client.js CHANGED
@@ -211,6 +211,116 @@ class AddCustomQAResponse extends $tea.Model {
211
211
  }
212
212
  }
213
213
  exports.AddCustomQAResponse = AddCustomQAResponse;
214
+ class AddCustomQAV2Headers extends $tea.Model {
215
+ constructor(map) {
216
+ super(map);
217
+ }
218
+ static names() {
219
+ return {
220
+ commonHeaders: 'commonHeaders',
221
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
222
+ authorization: 'Authorization',
223
+ };
224
+ }
225
+ static types() {
226
+ return {
227
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
228
+ xAcsAligenieAccessToken: 'string',
229
+ authorization: 'string',
230
+ };
231
+ }
232
+ }
233
+ exports.AddCustomQAV2Headers = AddCustomQAV2Headers;
234
+ class AddCustomQAV2Request extends $tea.Model {
235
+ constructor(map) {
236
+ super(map);
237
+ }
238
+ static names() {
239
+ return {
240
+ answers: 'Answers',
241
+ hotelId: 'HotelId',
242
+ keyWords: 'KeyWords',
243
+ majorQuestion: 'MajorQuestion',
244
+ supplementaryQuestions: 'SupplementaryQuestions',
245
+ };
246
+ }
247
+ static types() {
248
+ return {
249
+ answers: { 'type': 'array', 'itemType': 'string' },
250
+ hotelId: 'string',
251
+ keyWords: { 'type': 'array', 'itemType': 'string' },
252
+ majorQuestion: 'string',
253
+ supplementaryQuestions: { 'type': 'array', 'itemType': 'string' },
254
+ };
255
+ }
256
+ }
257
+ exports.AddCustomQAV2Request = AddCustomQAV2Request;
258
+ class AddCustomQAV2ShrinkRequest extends $tea.Model {
259
+ constructor(map) {
260
+ super(map);
261
+ }
262
+ static names() {
263
+ return {
264
+ answersShrink: 'Answers',
265
+ hotelId: 'HotelId',
266
+ keyWordsShrink: 'KeyWords',
267
+ majorQuestion: 'MajorQuestion',
268
+ supplementaryQuestionsShrink: 'SupplementaryQuestions',
269
+ };
270
+ }
271
+ static types() {
272
+ return {
273
+ answersShrink: 'string',
274
+ hotelId: 'string',
275
+ keyWordsShrink: 'string',
276
+ majorQuestion: 'string',
277
+ supplementaryQuestionsShrink: 'string',
278
+ };
279
+ }
280
+ }
281
+ exports.AddCustomQAV2ShrinkRequest = AddCustomQAV2ShrinkRequest;
282
+ class AddCustomQAV2ResponseBody extends $tea.Model {
283
+ constructor(map) {
284
+ super(map);
285
+ }
286
+ static names() {
287
+ return {
288
+ message: 'Message',
289
+ requestId: 'RequestId',
290
+ result: 'Result',
291
+ statusCode: 'StatusCode',
292
+ };
293
+ }
294
+ static types() {
295
+ return {
296
+ message: 'string',
297
+ requestId: 'string',
298
+ result: AddCustomQAV2ResponseBodyResult,
299
+ statusCode: 'number',
300
+ };
301
+ }
302
+ }
303
+ exports.AddCustomQAV2ResponseBody = AddCustomQAV2ResponseBody;
304
+ class AddCustomQAV2Response extends $tea.Model {
305
+ constructor(map) {
306
+ super(map);
307
+ }
308
+ static names() {
309
+ return {
310
+ headers: 'headers',
311
+ statusCode: 'statusCode',
312
+ body: 'body',
313
+ };
314
+ }
315
+ static types() {
316
+ return {
317
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
318
+ statusCode: 'number',
319
+ body: AddCustomQAV2ResponseBody,
320
+ };
321
+ }
322
+ }
323
+ exports.AddCustomQAV2Response = AddCustomQAV2Response;
214
324
  class AddMessageTemplateHeaders extends $tea.Model {
215
325
  constructor(map) {
216
326
  super(map);
@@ -5195,16 +5305,36 @@ class ListHotelRoomsRequest extends $tea.Model {
5195
5305
  }
5196
5306
  static names() {
5197
5307
  return {
5308
+ hotelAdminRoom: 'HotelAdminRoom',
5198
5309
  hotelId: 'HotelId',
5199
5310
  };
5200
5311
  }
5201
5312
  static types() {
5202
5313
  return {
5314
+ hotelAdminRoom: ListHotelRoomsRequestHotelAdminRoom,
5203
5315
  hotelId: 'string',
5204
5316
  };
5205
5317
  }
5206
5318
  }
5207
5319
  exports.ListHotelRoomsRequest = ListHotelRoomsRequest;
5320
+ class ListHotelRoomsShrinkRequest extends $tea.Model {
5321
+ constructor(map) {
5322
+ super(map);
5323
+ }
5324
+ static names() {
5325
+ return {
5326
+ hotelAdminRoomShrink: 'HotelAdminRoom',
5327
+ hotelId: 'HotelId',
5328
+ };
5329
+ }
5330
+ static types() {
5331
+ return {
5332
+ hotelAdminRoomShrink: 'string',
5333
+ hotelId: 'string',
5334
+ };
5335
+ }
5336
+ }
5337
+ exports.ListHotelRoomsShrinkRequest = ListHotelRoomsShrinkRequest;
5208
5338
  class ListHotelRoomsResponseBody extends $tea.Model {
5209
5339
  constructor(map) {
5210
5340
  super(map);
@@ -5667,12 +5797,14 @@ class ListHotelsRequest extends $tea.Model {
5667
5797
  }
5668
5798
  static names() {
5669
5799
  return {
5800
+ hotelRequest: 'HotelRequest',
5670
5801
  page: 'Page',
5671
5802
  status: 'Status',
5672
5803
  };
5673
5804
  }
5674
5805
  static types() {
5675
5806
  return {
5807
+ hotelRequest: ListHotelsRequestHotelRequest,
5676
5808
  page: ListHotelsRequestPage,
5677
5809
  status: 'number',
5678
5810
  };
@@ -5685,12 +5817,14 @@ class ListHotelsShrinkRequest extends $tea.Model {
5685
5817
  }
5686
5818
  static names() {
5687
5819
  return {
5820
+ hotelRequestShrink: 'HotelRequest',
5688
5821
  pageShrink: 'Page',
5689
5822
  status: 'Status',
5690
5823
  };
5691
5824
  }
5692
5825
  static types() {
5693
5826
  return {
5827
+ hotelRequestShrink: 'string',
5694
5828
  pageShrink: 'string',
5695
5829
  status: 'number',
5696
5830
  };
@@ -8603,6 +8737,40 @@ class UpdateTicketResponse extends $tea.Model {
8603
8737
  }
8604
8738
  }
8605
8739
  exports.UpdateTicketResponse = UpdateTicketResponse;
8740
+ class AddCustomQAV2ResponseBodyResult extends $tea.Model {
8741
+ constructor(map) {
8742
+ super(map);
8743
+ }
8744
+ static names() {
8745
+ return {
8746
+ answers: 'Answers',
8747
+ createTime: 'CreateTime',
8748
+ hotelId: 'HotelId',
8749
+ keyWords: 'KeyWords',
8750
+ lastOperator: 'LastOperator',
8751
+ majorQuestion: 'MajorQuestion',
8752
+ qaId: 'QaId',
8753
+ status: 'Status',
8754
+ supplementaryQuestion: 'SupplementaryQuestion',
8755
+ updateTime: 'UpdateTime',
8756
+ };
8757
+ }
8758
+ static types() {
8759
+ return {
8760
+ answers: 'string',
8761
+ createTime: 'string',
8762
+ hotelId: 'string',
8763
+ keyWords: 'string',
8764
+ lastOperator: 'string',
8765
+ majorQuestion: 'string',
8766
+ qaId: 'string',
8767
+ status: 'number',
8768
+ supplementaryQuestion: 'string',
8769
+ updateTime: 'string',
8770
+ };
8771
+ }
8772
+ }
8773
+ exports.AddCustomQAV2ResponseBodyResult = AddCustomQAV2ResponseBodyResult;
8606
8774
  class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
8607
8775
  constructor(map) {
8608
8776
  super(map);
@@ -10445,6 +10613,22 @@ class ListHotelOrderResponseBodyResult extends $tea.Model {
10445
10613
  }
10446
10614
  }
10447
10615
  exports.ListHotelOrderResponseBodyResult = ListHotelOrderResponseBodyResult;
10616
+ class ListHotelRoomsRequestHotelAdminRoom extends $tea.Model {
10617
+ constructor(map) {
10618
+ super(map);
10619
+ }
10620
+ static names() {
10621
+ return {
10622
+ roomNo: 'RoomNo',
10623
+ };
10624
+ }
10625
+ static types() {
10626
+ return {
10627
+ roomNo: 'string',
10628
+ };
10629
+ }
10630
+ }
10631
+ exports.ListHotelRoomsRequestHotelAdminRoom = ListHotelRoomsRequestHotelAdminRoom;
10448
10632
  class ListHotelRoomsResponseBodyResult extends $tea.Model {
10449
10633
  constructor(map) {
10450
10634
  super(map);
@@ -10845,6 +11029,22 @@ class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
10845
11029
  }
10846
11030
  }
10847
11031
  exports.ListHotelServiceCategoryResponseBodyResult = ListHotelServiceCategoryResponseBodyResult;
11032
+ class ListHotelsRequestHotelRequest extends $tea.Model {
11033
+ constructor(map) {
11034
+ super(map);
11035
+ }
11036
+ static names() {
11037
+ return {
11038
+ hotelId: 'HotelId',
11039
+ };
11040
+ }
11041
+ static types() {
11042
+ return {
11043
+ hotelId: 'string',
11044
+ };
11045
+ }
11046
+ }
11047
+ exports.ListHotelsRequestHotelRequest = ListHotelsRequestHotelRequest;
10848
11048
  class ListHotelsRequestPage extends $tea.Model {
10849
11049
  constructor(map) {
10850
11050
  super(map);
@@ -12044,6 +12244,67 @@ class Client extends openapi_client_1.default {
12044
12244
  let headers = new AddCustomQAHeaders({});
12045
12245
  return await this.addCustomQAWithOptions(request, headers, runtime);
12046
12246
  }
12247
+ async addCustomQAV2WithOptions(tmpReq, headers, runtime) {
12248
+ tea_util_1.default.validateModel(tmpReq);
12249
+ let request = new AddCustomQAV2ShrinkRequest({});
12250
+ openapi_util_1.default.convert(tmpReq, request);
12251
+ if (!tea_util_1.default.isUnset(tmpReq.answers)) {
12252
+ request.answersShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.answers, "Answers", "json");
12253
+ }
12254
+ if (!tea_util_1.default.isUnset(tmpReq.keyWords)) {
12255
+ request.keyWordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keyWords, "KeyWords", "json");
12256
+ }
12257
+ if (!tea_util_1.default.isUnset(tmpReq.supplementaryQuestions)) {
12258
+ request.supplementaryQuestionsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.supplementaryQuestions, "SupplementaryQuestions", "json");
12259
+ }
12260
+ let body = {};
12261
+ if (!tea_util_1.default.isUnset(request.answersShrink)) {
12262
+ body["Answers"] = request.answersShrink;
12263
+ }
12264
+ if (!tea_util_1.default.isUnset(request.hotelId)) {
12265
+ body["HotelId"] = request.hotelId;
12266
+ }
12267
+ if (!tea_util_1.default.isUnset(request.keyWordsShrink)) {
12268
+ body["KeyWords"] = request.keyWordsShrink;
12269
+ }
12270
+ if (!tea_util_1.default.isUnset(request.majorQuestion)) {
12271
+ body["MajorQuestion"] = request.majorQuestion;
12272
+ }
12273
+ if (!tea_util_1.default.isUnset(request.supplementaryQuestionsShrink)) {
12274
+ body["SupplementaryQuestions"] = request.supplementaryQuestionsShrink;
12275
+ }
12276
+ let realHeaders = {};
12277
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
12278
+ realHeaders = headers.commonHeaders;
12279
+ }
12280
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
12281
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
12282
+ }
12283
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
12284
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
12285
+ }
12286
+ let req = new $OpenApi.OpenApiRequest({
12287
+ headers: realHeaders,
12288
+ body: openapi_util_1.default.parseToMap(body),
12289
+ });
12290
+ let params = new $OpenApi.Params({
12291
+ action: "AddCustomQAV2",
12292
+ version: "ip_1.0",
12293
+ protocol: "HTTPS",
12294
+ pathname: `/v1.0/ip/addQAV2`,
12295
+ method: "POST",
12296
+ authType: "AK",
12297
+ style: "ROA",
12298
+ reqBodyType: "formData",
12299
+ bodyType: "json",
12300
+ });
12301
+ return $tea.cast(await this.callApi(params, req, runtime), new AddCustomQAV2Response({}));
12302
+ }
12303
+ async addCustomQAV2(request) {
12304
+ let runtime = new $Util.RuntimeOptions({});
12305
+ let headers = new AddCustomQAV2Headers({});
12306
+ return await this.addCustomQAV2WithOptions(request, headers, runtime);
12307
+ }
12047
12308
  async addMessageTemplateWithOptions(request, headers, runtime) {
12048
12309
  tea_util_1.default.validateModel(request);
12049
12310
  let body = {};
@@ -14489,9 +14750,17 @@ class Client extends openapi_client_1.default {
14489
14750
  let headers = new ListHotelOrderHeaders({});
14490
14751
  return await this.listHotelOrderWithOptions(request, headers, runtime);
14491
14752
  }
14492
- async listHotelRoomsWithOptions(request, headers, runtime) {
14493
- tea_util_1.default.validateModel(request);
14753
+ async listHotelRoomsWithOptions(tmpReq, headers, runtime) {
14754
+ tea_util_1.default.validateModel(tmpReq);
14755
+ let request = new ListHotelRoomsShrinkRequest({});
14756
+ openapi_util_1.default.convert(tmpReq, request);
14757
+ if (!tea_util_1.default.isUnset(tmpReq.hotelAdminRoom)) {
14758
+ request.hotelAdminRoomShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotelAdminRoom, "HotelAdminRoom", "json");
14759
+ }
14494
14760
  let body = {};
14761
+ if (!tea_util_1.default.isUnset(request.hotelAdminRoomShrink)) {
14762
+ body["HotelAdminRoom"] = request.hotelAdminRoomShrink;
14763
+ }
14495
14764
  if (!tea_util_1.default.isUnset(request.hotelId)) {
14496
14765
  body["HotelId"] = request.hotelId;
14497
14766
  }
@@ -14722,10 +14991,16 @@ class Client extends openapi_client_1.default {
14722
14991
  tea_util_1.default.validateModel(tmpReq);
14723
14992
  let request = new ListHotelsShrinkRequest({});
14724
14993
  openapi_util_1.default.convert(tmpReq, request);
14994
+ if (!tea_util_1.default.isUnset(tmpReq.hotelRequest)) {
14995
+ request.hotelRequestShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotelRequest, "HotelRequest", "json");
14996
+ }
14725
14997
  if (!tea_util_1.default.isUnset(tmpReq.page)) {
14726
14998
  request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
14727
14999
  }
14728
15000
  let query = {};
15001
+ if (!tea_util_1.default.isUnset(request.hotelRequestShrink)) {
15002
+ query["HotelRequest"] = request.hotelRequestShrink;
15003
+ }
14729
15004
  if (!tea_util_1.default.isUnset(request.pageShrink)) {
14730
15005
  query["Page"] = request.pageShrink;
14731
15006
  }