@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/aligenieip_1_0",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -251,6 +251,146 @@ export class AddCustomQAResponse extends $tea.Model {
251
251
  }
252
252
  }
253
253
 
254
+ export class AddCustomQAV2Headers extends $tea.Model {
255
+ commonHeaders?: { [key: string]: string };
256
+ xAcsAligenieAccessToken?: string;
257
+ authorization?: string;
258
+ static names(): { [key: string]: string } {
259
+ return {
260
+ commonHeaders: 'commonHeaders',
261
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
262
+ authorization: 'Authorization',
263
+ };
264
+ }
265
+
266
+ static types(): { [key: string]: any } {
267
+ return {
268
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
269
+ xAcsAligenieAccessToken: 'string',
270
+ authorization: 'string',
271
+ };
272
+ }
273
+
274
+ constructor(map?: { [key: string]: any }) {
275
+ super(map);
276
+ }
277
+ }
278
+
279
+ export class AddCustomQAV2Request extends $tea.Model {
280
+ answers?: string[];
281
+ hotelId?: string;
282
+ keyWords?: string[];
283
+ majorQuestion?: string;
284
+ supplementaryQuestions?: string[];
285
+ static names(): { [key: string]: string } {
286
+ return {
287
+ answers: 'Answers',
288
+ hotelId: 'HotelId',
289
+ keyWords: 'KeyWords',
290
+ majorQuestion: 'MajorQuestion',
291
+ supplementaryQuestions: 'SupplementaryQuestions',
292
+ };
293
+ }
294
+
295
+ static types(): { [key: string]: any } {
296
+ return {
297
+ answers: { 'type': 'array', 'itemType': 'string' },
298
+ hotelId: 'string',
299
+ keyWords: { 'type': 'array', 'itemType': 'string' },
300
+ majorQuestion: 'string',
301
+ supplementaryQuestions: { 'type': 'array', 'itemType': 'string' },
302
+ };
303
+ }
304
+
305
+ constructor(map?: { [key: string]: any }) {
306
+ super(map);
307
+ }
308
+ }
309
+
310
+ export class AddCustomQAV2ShrinkRequest extends $tea.Model {
311
+ answersShrink?: string;
312
+ hotelId?: string;
313
+ keyWordsShrink?: string;
314
+ majorQuestion?: string;
315
+ supplementaryQuestionsShrink?: string;
316
+ static names(): { [key: string]: string } {
317
+ return {
318
+ answersShrink: 'Answers',
319
+ hotelId: 'HotelId',
320
+ keyWordsShrink: 'KeyWords',
321
+ majorQuestion: 'MajorQuestion',
322
+ supplementaryQuestionsShrink: 'SupplementaryQuestions',
323
+ };
324
+ }
325
+
326
+ static types(): { [key: string]: any } {
327
+ return {
328
+ answersShrink: 'string',
329
+ hotelId: 'string',
330
+ keyWordsShrink: 'string',
331
+ majorQuestion: 'string',
332
+ supplementaryQuestionsShrink: 'string',
333
+ };
334
+ }
335
+
336
+ constructor(map?: { [key: string]: any }) {
337
+ super(map);
338
+ }
339
+ }
340
+
341
+ export class AddCustomQAV2ResponseBody extends $tea.Model {
342
+ message?: string;
343
+ requestId?: string;
344
+ result?: AddCustomQAV2ResponseBodyResult;
345
+ statusCode?: number;
346
+ static names(): { [key: string]: string } {
347
+ return {
348
+ message: 'Message',
349
+ requestId: 'RequestId',
350
+ result: 'Result',
351
+ statusCode: 'StatusCode',
352
+ };
353
+ }
354
+
355
+ static types(): { [key: string]: any } {
356
+ return {
357
+ message: 'string',
358
+ requestId: 'string',
359
+ result: AddCustomQAV2ResponseBodyResult,
360
+ statusCode: 'number',
361
+ };
362
+ }
363
+
364
+ constructor(map?: { [key: string]: any }) {
365
+ super(map);
366
+ }
367
+ }
368
+
369
+ export class AddCustomQAV2Response extends $tea.Model {
370
+ headers: { [key: string]: string };
371
+ statusCode: number;
372
+ body: AddCustomQAV2ResponseBody;
373
+ static names(): { [key: string]: string } {
374
+ return {
375
+ headers: 'headers',
376
+ statusCode: 'statusCode',
377
+ body: 'body',
378
+ };
379
+ }
380
+
381
+ static types(): { [key: string]: any } {
382
+ return {
383
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
384
+ statusCode: 'number',
385
+ body: AddCustomQAV2ResponseBody,
386
+ };
387
+ }
388
+
389
+ constructor(map?: { [key: string]: any }) {
390
+ super(map);
391
+ }
392
+ }
393
+
254
394
  export class AddMessageTemplateHeaders extends $tea.Model {
255
395
  commonHeaders?: { [key: string]: string };
256
396
  xAcsAligenieAccessToken?: string;
@@ -6484,15 +6624,40 @@ export class ListHotelRoomsHeaders extends $tea.Model {
6484
6624
  }
6485
6625
 
6486
6626
  export class ListHotelRoomsRequest extends $tea.Model {
6627
+ hotelAdminRoom?: ListHotelRoomsRequestHotelAdminRoom;
6487
6628
  hotelId?: string;
6488
6629
  static names(): { [key: string]: string } {
6489
6630
  return {
6631
+ hotelAdminRoom: 'HotelAdminRoom',
6490
6632
  hotelId: 'HotelId',
6491
6633
  };
6492
6634
  }
6493
6635
 
6494
6636
  static types(): { [key: string]: any } {
6495
6637
  return {
6638
+ hotelAdminRoom: ListHotelRoomsRequestHotelAdminRoom,
6639
+ hotelId: 'string',
6640
+ };
6641
+ }
6642
+
6643
+ constructor(map?: { [key: string]: any }) {
6644
+ super(map);
6645
+ }
6646
+ }
6647
+
6648
+ export class ListHotelRoomsShrinkRequest extends $tea.Model {
6649
+ hotelAdminRoomShrink?: string;
6650
+ hotelId?: string;
6651
+ static names(): { [key: string]: string } {
6652
+ return {
6653
+ hotelAdminRoomShrink: 'HotelAdminRoom',
6654
+ hotelId: 'HotelId',
6655
+ };
6656
+ }
6657
+
6658
+ static types(): { [key: string]: any } {
6659
+ return {
6660
+ hotelAdminRoomShrink: 'string',
6496
6661
  hotelId: 'string',
6497
6662
  };
6498
6663
  }
@@ -7072,10 +7237,12 @@ export class ListHotelsHeaders extends $tea.Model {
7072
7237
  }
7073
7238
 
7074
7239
  export class ListHotelsRequest extends $tea.Model {
7240
+ hotelRequest?: ListHotelsRequestHotelRequest;
7075
7241
  page?: ListHotelsRequestPage;
7076
7242
  status?: number;
7077
7243
  static names(): { [key: string]: string } {
7078
7244
  return {
7245
+ hotelRequest: 'HotelRequest',
7079
7246
  page: 'Page',
7080
7247
  status: 'Status',
7081
7248
  };
@@ -7083,6 +7250,7 @@ export class ListHotelsRequest extends $tea.Model {
7083
7250
 
7084
7251
  static types(): { [key: string]: any } {
7085
7252
  return {
7253
+ hotelRequest: ListHotelsRequestHotelRequest,
7086
7254
  page: ListHotelsRequestPage,
7087
7255
  status: 'number',
7088
7256
  };
@@ -7094,10 +7262,12 @@ export class ListHotelsRequest extends $tea.Model {
7094
7262
  }
7095
7263
 
7096
7264
  export class ListHotelsShrinkRequest extends $tea.Model {
7265
+ hotelRequestShrink?: string;
7097
7266
  pageShrink?: string;
7098
7267
  status?: number;
7099
7268
  static names(): { [key: string]: string } {
7100
7269
  return {
7270
+ hotelRequestShrink: 'HotelRequest',
7101
7271
  pageShrink: 'Page',
7102
7272
  status: 'Status',
7103
7273
  };
@@ -7105,6 +7275,7 @@ export class ListHotelsShrinkRequest extends $tea.Model {
7105
7275
 
7106
7276
  static types(): { [key: string]: any } {
7107
7277
  return {
7278
+ hotelRequestShrink: 'string',
7108
7279
  pageShrink: 'string',
7109
7280
  status: 'number',
7110
7281
  };
@@ -10794,6 +10965,52 @@ export class UpdateTicketResponse extends $tea.Model {
10794
10965
  }
10795
10966
  }
10796
10967
 
10968
+ export class AddCustomQAV2ResponseBodyResult extends $tea.Model {
10969
+ answers?: string;
10970
+ createTime?: string;
10971
+ hotelId?: string;
10972
+ keyWords?: string;
10973
+ lastOperator?: string;
10974
+ majorQuestion?: string;
10975
+ qaId?: string;
10976
+ status?: number;
10977
+ supplementaryQuestion?: string;
10978
+ updateTime?: string;
10979
+ static names(): { [key: string]: string } {
10980
+ return {
10981
+ answers: 'Answers',
10982
+ createTime: 'CreateTime',
10983
+ hotelId: 'HotelId',
10984
+ keyWords: 'KeyWords',
10985
+ lastOperator: 'LastOperator',
10986
+ majorQuestion: 'MajorQuestion',
10987
+ qaId: 'QaId',
10988
+ status: 'Status',
10989
+ supplementaryQuestion: 'SupplementaryQuestion',
10990
+ updateTime: 'UpdateTime',
10991
+ };
10992
+ }
10993
+
10994
+ static types(): { [key: string]: any } {
10995
+ return {
10996
+ answers: 'string',
10997
+ createTime: 'string',
10998
+ hotelId: 'string',
10999
+ keyWords: 'string',
11000
+ lastOperator: 'string',
11001
+ majorQuestion: 'string',
11002
+ qaId: 'string',
11003
+ status: 'number',
11004
+ supplementaryQuestion: 'string',
11005
+ updateTime: 'string',
11006
+ };
11007
+ }
11008
+
11009
+ constructor(map?: { [key: string]: any }) {
11010
+ super(map);
11011
+ }
11012
+ }
11013
+
10797
11014
  export class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
10798
11015
  screenSaverPicUrl?: string;
10799
11016
  screenSaverStyle?: string;
@@ -13152,6 +13369,25 @@ export class ListHotelOrderResponseBodyResult extends $tea.Model {
13152
13369
  }
13153
13370
  }
13154
13371
 
13372
+ export class ListHotelRoomsRequestHotelAdminRoom extends $tea.Model {
13373
+ roomNo?: string;
13374
+ static names(): { [key: string]: string } {
13375
+ return {
13376
+ roomNo: 'RoomNo',
13377
+ };
13378
+ }
13379
+
13380
+ static types(): { [key: string]: any } {
13381
+ return {
13382
+ roomNo: 'string',
13383
+ };
13384
+ }
13385
+
13386
+ constructor(map?: { [key: string]: any }) {
13387
+ super(map);
13388
+ }
13389
+ }
13390
+
13155
13391
  export class ListHotelRoomsResponseBodyResult extends $tea.Model {
13156
13392
  hotelId?: string;
13157
13393
  roomNo?: string;
@@ -13662,6 +13898,25 @@ export class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
13662
13898
  }
13663
13899
  }
13664
13900
 
13901
+ export class ListHotelsRequestHotelRequest extends $tea.Model {
13902
+ hotelId?: string;
13903
+ static names(): { [key: string]: string } {
13904
+ return {
13905
+ hotelId: 'HotelId',
13906
+ };
13907
+ }
13908
+
13909
+ static types(): { [key: string]: any } {
13910
+ return {
13911
+ hotelId: 'string',
13912
+ };
13913
+ }
13914
+
13915
+ constructor(map?: { [key: string]: any }) {
13916
+ super(map);
13917
+ }
13918
+ }
13919
+
13665
13920
  export class ListHotelsRequestPage extends $tea.Model {
13666
13921
  pageNumber?: number;
13667
13922
  pageSize?: number;
@@ -15203,6 +15458,80 @@ export default class Client extends OpenApi {
15203
15458
  return await this.addCustomQAWithOptions(request, headers, runtime);
15204
15459
  }
15205
15460
 
15461
+ async addCustomQAV2WithOptions(tmpReq: AddCustomQAV2Request, headers: AddCustomQAV2Headers, runtime: $Util.RuntimeOptions): Promise<AddCustomQAV2Response> {
15462
+ Util.validateModel(tmpReq);
15463
+ let request = new AddCustomQAV2ShrinkRequest({ });
15464
+ OpenApiUtil.convert(tmpReq, request);
15465
+ if (!Util.isUnset(tmpReq.answers)) {
15466
+ request.answersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.answers, "Answers", "json");
15467
+ }
15468
+
15469
+ if (!Util.isUnset(tmpReq.keyWords)) {
15470
+ request.keyWordsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keyWords, "KeyWords", "json");
15471
+ }
15472
+
15473
+ if (!Util.isUnset(tmpReq.supplementaryQuestions)) {
15474
+ request.supplementaryQuestionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.supplementaryQuestions, "SupplementaryQuestions", "json");
15475
+ }
15476
+
15477
+ let body : {[key: string ]: any} = { };
15478
+ if (!Util.isUnset(request.answersShrink)) {
15479
+ body["Answers"] = request.answersShrink;
15480
+ }
15481
+
15482
+ if (!Util.isUnset(request.hotelId)) {
15483
+ body["HotelId"] = request.hotelId;
15484
+ }
15485
+
15486
+ if (!Util.isUnset(request.keyWordsShrink)) {
15487
+ body["KeyWords"] = request.keyWordsShrink;
15488
+ }
15489
+
15490
+ if (!Util.isUnset(request.majorQuestion)) {
15491
+ body["MajorQuestion"] = request.majorQuestion;
15492
+ }
15493
+
15494
+ if (!Util.isUnset(request.supplementaryQuestionsShrink)) {
15495
+ body["SupplementaryQuestions"] = request.supplementaryQuestionsShrink;
15496
+ }
15497
+
15498
+ let realHeaders : {[key: string ]: string} = { };
15499
+ if (!Util.isUnset(headers.commonHeaders)) {
15500
+ realHeaders = headers.commonHeaders;
15501
+ }
15502
+
15503
+ if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
15504
+ realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
15505
+ }
15506
+
15507
+ if (!Util.isUnset(headers.authorization)) {
15508
+ realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
15509
+ }
15510
+
15511
+ let req = new $OpenApi.OpenApiRequest({
15512
+ headers: realHeaders,
15513
+ body: OpenApiUtil.parseToMap(body),
15514
+ });
15515
+ let params = new $OpenApi.Params({
15516
+ action: "AddCustomQAV2",
15517
+ version: "ip_1.0",
15518
+ protocol: "HTTPS",
15519
+ pathname: `/v1.0/ip/addQAV2`,
15520
+ method: "POST",
15521
+ authType: "AK",
15522
+ style: "ROA",
15523
+ reqBodyType: "formData",
15524
+ bodyType: "json",
15525
+ });
15526
+ return $tea.cast<AddCustomQAV2Response>(await this.callApi(params, req, runtime), new AddCustomQAV2Response({}));
15527
+ }
15528
+
15529
+ async addCustomQAV2(request: AddCustomQAV2Request): Promise<AddCustomQAV2Response> {
15530
+ let runtime = new $Util.RuntimeOptions({ });
15531
+ let headers = new AddCustomQAV2Headers({ });
15532
+ return await this.addCustomQAV2WithOptions(request, headers, runtime);
15533
+ }
15534
+
15206
15535
  async addMessageTemplateWithOptions(request: AddMessageTemplateRequest, headers: AddMessageTemplateHeaders, runtime: $Util.RuntimeOptions): Promise<AddMessageTemplateResponse> {
15207
15536
  Util.validateModel(request);
15208
15537
  let body : {[key: string ]: any} = { };
@@ -18079,9 +18408,19 @@ export default class Client extends OpenApi {
18079
18408
  return await this.listHotelOrderWithOptions(request, headers, runtime);
18080
18409
  }
18081
18410
 
18082
- async listHotelRoomsWithOptions(request: ListHotelRoomsRequest, headers: ListHotelRoomsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelRoomsResponse> {
18083
- Util.validateModel(request);
18411
+ async listHotelRoomsWithOptions(tmpReq: ListHotelRoomsRequest, headers: ListHotelRoomsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelRoomsResponse> {
18412
+ Util.validateModel(tmpReq);
18413
+ let request = new ListHotelRoomsShrinkRequest({ });
18414
+ OpenApiUtil.convert(tmpReq, request);
18415
+ if (!Util.isUnset(tmpReq.hotelAdminRoom)) {
18416
+ request.hotelAdminRoomShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotelAdminRoom, "HotelAdminRoom", "json");
18417
+ }
18418
+
18084
18419
  let body : {[key: string ]: any} = { };
18420
+ if (!Util.isUnset(request.hotelAdminRoomShrink)) {
18421
+ body["HotelAdminRoom"] = request.hotelAdminRoomShrink;
18422
+ }
18423
+
18085
18424
  if (!Util.isUnset(request.hotelId)) {
18086
18425
  body["HotelId"] = request.hotelId;
18087
18426
  }
@@ -18351,11 +18690,19 @@ export default class Client extends OpenApi {
18351
18690
  Util.validateModel(tmpReq);
18352
18691
  let request = new ListHotelsShrinkRequest({ });
18353
18692
  OpenApiUtil.convert(tmpReq, request);
18693
+ if (!Util.isUnset(tmpReq.hotelRequest)) {
18694
+ request.hotelRequestShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotelRequest, "HotelRequest", "json");
18695
+ }
18696
+
18354
18697
  if (!Util.isUnset(tmpReq.page)) {
18355
18698
  request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
18356
18699
  }
18357
18700
 
18358
18701
  let query : {[key: string ]: any} = { };
18702
+ if (!Util.isUnset(request.hotelRequestShrink)) {
18703
+ query["HotelRequest"] = request.hotelRequestShrink;
18704
+ }
18705
+
18359
18706
  if (!Util.isUnset(request.pageShrink)) {
18360
18707
  query["Page"] = request.pageShrink;
18361
18708
  }