@alicloud/aligenieip_1_0 2.3.1 → 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 +207 -1
- package/dist/client.js +408 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +511 -2
package/package.json
CHANGED
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;
|
|
6628
|
+
hotelId?: string;
|
|
6629
|
+
static names(): { [key: string]: string } {
|
|
6630
|
+
return {
|
|
6631
|
+
hotelAdminRoom: 'HotelAdminRoom',
|
|
6632
|
+
hotelId: 'HotelId',
|
|
6633
|
+
};
|
|
6634
|
+
}
|
|
6635
|
+
|
|
6636
|
+
static types(): { [key: string]: any } {
|
|
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;
|
|
6487
6650
|
hotelId?: string;
|
|
6488
6651
|
static names(): { [key: string]: string } {
|
|
6489
6652
|
return {
|
|
6653
|
+
hotelAdminRoomShrink: 'HotelAdminRoom',
|
|
6490
6654
|
hotelId: 'HotelId',
|
|
6491
6655
|
};
|
|
6492
6656
|
}
|
|
6493
6657
|
|
|
6494
6658
|
static types(): { [key: string]: any } {
|
|
6495
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
|
};
|
|
@@ -8121,6 +8292,112 @@ export class PushHotelMessageResponse extends $tea.Model {
|
|
|
8121
8292
|
}
|
|
8122
8293
|
}
|
|
8123
8294
|
|
|
8295
|
+
export class PushWelcomeHeaders extends $tea.Model {
|
|
8296
|
+
commonHeaders?: { [key: string]: string };
|
|
8297
|
+
xAcsAligenieAccessToken?: string;
|
|
8298
|
+
authorization?: string;
|
|
8299
|
+
static names(): { [key: string]: string } {
|
|
8300
|
+
return {
|
|
8301
|
+
commonHeaders: 'commonHeaders',
|
|
8302
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
8303
|
+
authorization: 'Authorization',
|
|
8304
|
+
};
|
|
8305
|
+
}
|
|
8306
|
+
|
|
8307
|
+
static types(): { [key: string]: any } {
|
|
8308
|
+
return {
|
|
8309
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8310
|
+
xAcsAligenieAccessToken: 'string',
|
|
8311
|
+
authorization: 'string',
|
|
8312
|
+
};
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
constructor(map?: { [key: string]: any }) {
|
|
8316
|
+
super(map);
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8319
|
+
|
|
8320
|
+
export class PushWelcomeRequest extends $tea.Model {
|
|
8321
|
+
hotelId?: string;
|
|
8322
|
+
roomNo?: string;
|
|
8323
|
+
welcomeMusicUrl?: string;
|
|
8324
|
+
welcomeText?: string;
|
|
8325
|
+
static names(): { [key: string]: string } {
|
|
8326
|
+
return {
|
|
8327
|
+
hotelId: 'HotelId',
|
|
8328
|
+
roomNo: 'RoomNo',
|
|
8329
|
+
welcomeMusicUrl: 'WelcomeMusicUrl',
|
|
8330
|
+
welcomeText: 'WelcomeText',
|
|
8331
|
+
};
|
|
8332
|
+
}
|
|
8333
|
+
|
|
8334
|
+
static types(): { [key: string]: any } {
|
|
8335
|
+
return {
|
|
8336
|
+
hotelId: 'string',
|
|
8337
|
+
roomNo: 'string',
|
|
8338
|
+
welcomeMusicUrl: 'string',
|
|
8339
|
+
welcomeText: 'string',
|
|
8340
|
+
};
|
|
8341
|
+
}
|
|
8342
|
+
|
|
8343
|
+
constructor(map?: { [key: string]: any }) {
|
|
8344
|
+
super(map);
|
|
8345
|
+
}
|
|
8346
|
+
}
|
|
8347
|
+
|
|
8348
|
+
export class PushWelcomeResponseBody extends $tea.Model {
|
|
8349
|
+
message?: string;
|
|
8350
|
+
requestId?: string;
|
|
8351
|
+
result?: boolean;
|
|
8352
|
+
statusCode?: number;
|
|
8353
|
+
static names(): { [key: string]: string } {
|
|
8354
|
+
return {
|
|
8355
|
+
message: 'Message',
|
|
8356
|
+
requestId: 'RequestId',
|
|
8357
|
+
result: 'Result',
|
|
8358
|
+
statusCode: 'StatusCode',
|
|
8359
|
+
};
|
|
8360
|
+
}
|
|
8361
|
+
|
|
8362
|
+
static types(): { [key: string]: any } {
|
|
8363
|
+
return {
|
|
8364
|
+
message: 'string',
|
|
8365
|
+
requestId: 'string',
|
|
8366
|
+
result: 'boolean',
|
|
8367
|
+
statusCode: 'number',
|
|
8368
|
+
};
|
|
8369
|
+
}
|
|
8370
|
+
|
|
8371
|
+
constructor(map?: { [key: string]: any }) {
|
|
8372
|
+
super(map);
|
|
8373
|
+
}
|
|
8374
|
+
}
|
|
8375
|
+
|
|
8376
|
+
export class PushWelcomeResponse extends $tea.Model {
|
|
8377
|
+
headers: { [key: string]: string };
|
|
8378
|
+
statusCode: number;
|
|
8379
|
+
body: PushWelcomeResponseBody;
|
|
8380
|
+
static names(): { [key: string]: string } {
|
|
8381
|
+
return {
|
|
8382
|
+
headers: 'headers',
|
|
8383
|
+
statusCode: 'statusCode',
|
|
8384
|
+
body: 'body',
|
|
8385
|
+
};
|
|
8386
|
+
}
|
|
8387
|
+
|
|
8388
|
+
static types(): { [key: string]: any } {
|
|
8389
|
+
return {
|
|
8390
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8391
|
+
statusCode: 'number',
|
|
8392
|
+
body: PushWelcomeResponseBody,
|
|
8393
|
+
};
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8396
|
+
constructor(map?: { [key: string]: any }) {
|
|
8397
|
+
super(map);
|
|
8398
|
+
}
|
|
8399
|
+
}
|
|
8400
|
+
|
|
8124
8401
|
export class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
8125
8402
|
commonHeaders?: { [key: string]: string };
|
|
8126
8403
|
xAcsAligenieAccessToken?: string;
|
|
@@ -10688,6 +10965,52 @@ export class UpdateTicketResponse extends $tea.Model {
|
|
|
10688
10965
|
}
|
|
10689
10966
|
}
|
|
10690
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
|
+
|
|
10691
11014
|
export class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
|
|
10692
11015
|
screenSaverPicUrl?: string;
|
|
10693
11016
|
screenSaverStyle?: string;
|
|
@@ -13046,6 +13369,25 @@ export class ListHotelOrderResponseBodyResult extends $tea.Model {
|
|
|
13046
13369
|
}
|
|
13047
13370
|
}
|
|
13048
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
|
+
|
|
13049
13391
|
export class ListHotelRoomsResponseBodyResult extends $tea.Model {
|
|
13050
13392
|
hotelId?: string;
|
|
13051
13393
|
roomNo?: string;
|
|
@@ -13556,6 +13898,25 @@ export class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
|
|
|
13556
13898
|
}
|
|
13557
13899
|
}
|
|
13558
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
|
+
|
|
13559
13920
|
export class ListHotelsRequestPage extends $tea.Model {
|
|
13560
13921
|
pageNumber?: number;
|
|
13561
13922
|
pageSize?: number;
|
|
@@ -15097,6 +15458,80 @@ export default class Client extends OpenApi {
|
|
|
15097
15458
|
return await this.addCustomQAWithOptions(request, headers, runtime);
|
|
15098
15459
|
}
|
|
15099
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
|
+
|
|
15100
15535
|
async addMessageTemplateWithOptions(request: AddMessageTemplateRequest, headers: AddMessageTemplateHeaders, runtime: $Util.RuntimeOptions): Promise<AddMessageTemplateResponse> {
|
|
15101
15536
|
Util.validateModel(request);
|
|
15102
15537
|
let body : {[key: string ]: any} = { };
|
|
@@ -17973,9 +18408,19 @@ export default class Client extends OpenApi {
|
|
|
17973
18408
|
return await this.listHotelOrderWithOptions(request, headers, runtime);
|
|
17974
18409
|
}
|
|
17975
18410
|
|
|
17976
|
-
async listHotelRoomsWithOptions(
|
|
17977
|
-
Util.validateModel(
|
|
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
|
+
|
|
17978
18419
|
let body : {[key: string ]: any} = { };
|
|
18420
|
+
if (!Util.isUnset(request.hotelAdminRoomShrink)) {
|
|
18421
|
+
body["HotelAdminRoom"] = request.hotelAdminRoomShrink;
|
|
18422
|
+
}
|
|
18423
|
+
|
|
17979
18424
|
if (!Util.isUnset(request.hotelId)) {
|
|
17980
18425
|
body["HotelId"] = request.hotelId;
|
|
17981
18426
|
}
|
|
@@ -18245,11 +18690,19 @@ export default class Client extends OpenApi {
|
|
|
18245
18690
|
Util.validateModel(tmpReq);
|
|
18246
18691
|
let request = new ListHotelsShrinkRequest({ });
|
|
18247
18692
|
OpenApiUtil.convert(tmpReq, request);
|
|
18693
|
+
if (!Util.isUnset(tmpReq.hotelRequest)) {
|
|
18694
|
+
request.hotelRequestShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotelRequest, "HotelRequest", "json");
|
|
18695
|
+
}
|
|
18696
|
+
|
|
18248
18697
|
if (!Util.isUnset(tmpReq.page)) {
|
|
18249
18698
|
request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
18250
18699
|
}
|
|
18251
18700
|
|
|
18252
18701
|
let query : {[key: string ]: any} = { };
|
|
18702
|
+
if (!Util.isUnset(request.hotelRequestShrink)) {
|
|
18703
|
+
query["HotelRequest"] = request.hotelRequestShrink;
|
|
18704
|
+
}
|
|
18705
|
+
|
|
18253
18706
|
if (!Util.isUnset(request.pageShrink)) {
|
|
18254
18707
|
query["Page"] = request.pageShrink;
|
|
18255
18708
|
}
|
|
@@ -18759,6 +19212,62 @@ export default class Client extends OpenApi {
|
|
|
18759
19212
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
18760
19213
|
}
|
|
18761
19214
|
|
|
19215
|
+
async pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse> {
|
|
19216
|
+
Util.validateModel(request);
|
|
19217
|
+
let body : {[key: string ]: any} = { };
|
|
19218
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
19219
|
+
body["HotelId"] = request.hotelId;
|
|
19220
|
+
}
|
|
19221
|
+
|
|
19222
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
19223
|
+
body["RoomNo"] = request.roomNo;
|
|
19224
|
+
}
|
|
19225
|
+
|
|
19226
|
+
if (!Util.isUnset(request.welcomeMusicUrl)) {
|
|
19227
|
+
body["WelcomeMusicUrl"] = request.welcomeMusicUrl;
|
|
19228
|
+
}
|
|
19229
|
+
|
|
19230
|
+
if (!Util.isUnset(request.welcomeText)) {
|
|
19231
|
+
body["WelcomeText"] = request.welcomeText;
|
|
19232
|
+
}
|
|
19233
|
+
|
|
19234
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
19235
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
19236
|
+
realHeaders = headers.commonHeaders;
|
|
19237
|
+
}
|
|
19238
|
+
|
|
19239
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
19240
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
19241
|
+
}
|
|
19242
|
+
|
|
19243
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
19244
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
19245
|
+
}
|
|
19246
|
+
|
|
19247
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19248
|
+
headers: realHeaders,
|
|
19249
|
+
body: OpenApiUtil.parseToMap(body),
|
|
19250
|
+
});
|
|
19251
|
+
let params = new $OpenApi.Params({
|
|
19252
|
+
action: "PushWelcome",
|
|
19253
|
+
version: "ip_1.0",
|
|
19254
|
+
protocol: "HTTPS",
|
|
19255
|
+
pathname: `/v1.0/ip/pushWelcome`,
|
|
19256
|
+
method: "POST",
|
|
19257
|
+
authType: "AK",
|
|
19258
|
+
style: "ROA",
|
|
19259
|
+
reqBodyType: "formData",
|
|
19260
|
+
bodyType: "json",
|
|
19261
|
+
});
|
|
19262
|
+
return $tea.cast<PushWelcomeResponse>(await this.callApi(params, req, runtime), new PushWelcomeResponse({}));
|
|
19263
|
+
}
|
|
19264
|
+
|
|
19265
|
+
async pushWelcome(request: PushWelcomeRequest): Promise<PushWelcomeResponse> {
|
|
19266
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19267
|
+
let headers = new PushWelcomeHeaders({ });
|
|
19268
|
+
return await this.pushWelcomeWithOptions(request, headers, runtime);
|
|
19269
|
+
}
|
|
19270
|
+
|
|
18762
19271
|
async pushWelcomeTextAndMusicWithOptions(tmpReq: PushWelcomeTextAndMusicRequest, headers: PushWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeTextAndMusicResponse> {
|
|
18763
19272
|
Util.validateModel(tmpReq);
|
|
18764
19273
|
let request = new PushWelcomeTextAndMusicShrinkRequest({ });
|