@alicloud/aligenieip_1_0 2.4.0 → 2.6.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 +235 -1
- package/dist/client.js +450 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +563 -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,137 @@ export class PushHotelMessageResponse extends $tea.Model {
|
|
|
8121
8292
|
}
|
|
8122
8293
|
}
|
|
8123
8294
|
|
|
8295
|
+
export class PushVoiceBoxCommandsHeaders 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 PushVoiceBoxCommandsRequest extends $tea.Model {
|
|
8321
|
+
commands?: PushVoiceBoxCommandsRequestCommands[];
|
|
8322
|
+
hotelId?: string;
|
|
8323
|
+
roomNo?: string;
|
|
8324
|
+
static names(): { [key: string]: string } {
|
|
8325
|
+
return {
|
|
8326
|
+
commands: 'Commands',
|
|
8327
|
+
hotelId: 'HotelId',
|
|
8328
|
+
roomNo: 'RoomNo',
|
|
8329
|
+
};
|
|
8330
|
+
}
|
|
8331
|
+
|
|
8332
|
+
static types(): { [key: string]: any } {
|
|
8333
|
+
return {
|
|
8334
|
+
commands: { 'type': 'array', 'itemType': PushVoiceBoxCommandsRequestCommands },
|
|
8335
|
+
hotelId: 'string',
|
|
8336
|
+
roomNo: 'string',
|
|
8337
|
+
};
|
|
8338
|
+
}
|
|
8339
|
+
|
|
8340
|
+
constructor(map?: { [key: string]: any }) {
|
|
8341
|
+
super(map);
|
|
8342
|
+
}
|
|
8343
|
+
}
|
|
8344
|
+
|
|
8345
|
+
export class PushVoiceBoxCommandsShrinkRequest extends $tea.Model {
|
|
8346
|
+
commandsShrink?: string;
|
|
8347
|
+
hotelId?: string;
|
|
8348
|
+
roomNo?: string;
|
|
8349
|
+
static names(): { [key: string]: string } {
|
|
8350
|
+
return {
|
|
8351
|
+
commandsShrink: 'Commands',
|
|
8352
|
+
hotelId: 'HotelId',
|
|
8353
|
+
roomNo: 'RoomNo',
|
|
8354
|
+
};
|
|
8355
|
+
}
|
|
8356
|
+
|
|
8357
|
+
static types(): { [key: string]: any } {
|
|
8358
|
+
return {
|
|
8359
|
+
commandsShrink: 'string',
|
|
8360
|
+
hotelId: 'string',
|
|
8361
|
+
roomNo: 'string',
|
|
8362
|
+
};
|
|
8363
|
+
}
|
|
8364
|
+
|
|
8365
|
+
constructor(map?: { [key: string]: any }) {
|
|
8366
|
+
super(map);
|
|
8367
|
+
}
|
|
8368
|
+
}
|
|
8369
|
+
|
|
8370
|
+
export class PushVoiceBoxCommandsResponseBody extends $tea.Model {
|
|
8371
|
+
code?: number;
|
|
8372
|
+
message?: string;
|
|
8373
|
+
requestId?: string;
|
|
8374
|
+
result?: boolean;
|
|
8375
|
+
statusCode?: number;
|
|
8376
|
+
static names(): { [key: string]: string } {
|
|
8377
|
+
return {
|
|
8378
|
+
code: 'Code',
|
|
8379
|
+
message: 'Message',
|
|
8380
|
+
requestId: 'RequestId',
|
|
8381
|
+
result: 'Result',
|
|
8382
|
+
statusCode: 'StatusCode',
|
|
8383
|
+
};
|
|
8384
|
+
}
|
|
8385
|
+
|
|
8386
|
+
static types(): { [key: string]: any } {
|
|
8387
|
+
return {
|
|
8388
|
+
code: 'number',
|
|
8389
|
+
message: 'string',
|
|
8390
|
+
requestId: 'string',
|
|
8391
|
+
result: 'boolean',
|
|
8392
|
+
statusCode: 'number',
|
|
8393
|
+
};
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8396
|
+
constructor(map?: { [key: string]: any }) {
|
|
8397
|
+
super(map);
|
|
8398
|
+
}
|
|
8399
|
+
}
|
|
8400
|
+
|
|
8401
|
+
export class PushVoiceBoxCommandsResponse extends $tea.Model {
|
|
8402
|
+
headers: { [key: string]: string };
|
|
8403
|
+
statusCode: number;
|
|
8404
|
+
body: PushVoiceBoxCommandsResponseBody;
|
|
8405
|
+
static names(): { [key: string]: string } {
|
|
8406
|
+
return {
|
|
8407
|
+
headers: 'headers',
|
|
8408
|
+
statusCode: 'statusCode',
|
|
8409
|
+
body: 'body',
|
|
8410
|
+
};
|
|
8411
|
+
}
|
|
8412
|
+
|
|
8413
|
+
static types(): { [key: string]: any } {
|
|
8414
|
+
return {
|
|
8415
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8416
|
+
statusCode: 'number',
|
|
8417
|
+
body: PushVoiceBoxCommandsResponseBody,
|
|
8418
|
+
};
|
|
8419
|
+
}
|
|
8420
|
+
|
|
8421
|
+
constructor(map?: { [key: string]: any }) {
|
|
8422
|
+
super(map);
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
|
|
8124
8426
|
export class PushWelcomeHeaders extends $tea.Model {
|
|
8125
8427
|
commonHeaders?: { [key: string]: string };
|
|
8126
8428
|
xAcsAligenieAccessToken?: string;
|
|
@@ -10794,6 +11096,52 @@ export class UpdateTicketResponse extends $tea.Model {
|
|
|
10794
11096
|
}
|
|
10795
11097
|
}
|
|
10796
11098
|
|
|
11099
|
+
export class AddCustomQAV2ResponseBodyResult extends $tea.Model {
|
|
11100
|
+
answers?: string;
|
|
11101
|
+
createTime?: string;
|
|
11102
|
+
hotelId?: string;
|
|
11103
|
+
keyWords?: string;
|
|
11104
|
+
lastOperator?: string;
|
|
11105
|
+
majorQuestion?: string;
|
|
11106
|
+
qaId?: string;
|
|
11107
|
+
status?: number;
|
|
11108
|
+
supplementaryQuestion?: string;
|
|
11109
|
+
updateTime?: string;
|
|
11110
|
+
static names(): { [key: string]: string } {
|
|
11111
|
+
return {
|
|
11112
|
+
answers: 'Answers',
|
|
11113
|
+
createTime: 'CreateTime',
|
|
11114
|
+
hotelId: 'HotelId',
|
|
11115
|
+
keyWords: 'KeyWords',
|
|
11116
|
+
lastOperator: 'LastOperator',
|
|
11117
|
+
majorQuestion: 'MajorQuestion',
|
|
11118
|
+
qaId: 'QaId',
|
|
11119
|
+
status: 'Status',
|
|
11120
|
+
supplementaryQuestion: 'SupplementaryQuestion',
|
|
11121
|
+
updateTime: 'UpdateTime',
|
|
11122
|
+
};
|
|
11123
|
+
}
|
|
11124
|
+
|
|
11125
|
+
static types(): { [key: string]: any } {
|
|
11126
|
+
return {
|
|
11127
|
+
answers: 'string',
|
|
11128
|
+
createTime: 'string',
|
|
11129
|
+
hotelId: 'string',
|
|
11130
|
+
keyWords: 'string',
|
|
11131
|
+
lastOperator: 'string',
|
|
11132
|
+
majorQuestion: 'string',
|
|
11133
|
+
qaId: 'string',
|
|
11134
|
+
status: 'number',
|
|
11135
|
+
supplementaryQuestion: 'string',
|
|
11136
|
+
updateTime: 'string',
|
|
11137
|
+
};
|
|
11138
|
+
}
|
|
11139
|
+
|
|
11140
|
+
constructor(map?: { [key: string]: any }) {
|
|
11141
|
+
super(map);
|
|
11142
|
+
}
|
|
11143
|
+
}
|
|
11144
|
+
|
|
10797
11145
|
export class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
|
|
10798
11146
|
screenSaverPicUrl?: string;
|
|
10799
11147
|
screenSaverStyle?: string;
|
|
@@ -13152,6 +13500,25 @@ export class ListHotelOrderResponseBodyResult extends $tea.Model {
|
|
|
13152
13500
|
}
|
|
13153
13501
|
}
|
|
13154
13502
|
|
|
13503
|
+
export class ListHotelRoomsRequestHotelAdminRoom extends $tea.Model {
|
|
13504
|
+
roomNo?: string;
|
|
13505
|
+
static names(): { [key: string]: string } {
|
|
13506
|
+
return {
|
|
13507
|
+
roomNo: 'RoomNo',
|
|
13508
|
+
};
|
|
13509
|
+
}
|
|
13510
|
+
|
|
13511
|
+
static types(): { [key: string]: any } {
|
|
13512
|
+
return {
|
|
13513
|
+
roomNo: 'string',
|
|
13514
|
+
};
|
|
13515
|
+
}
|
|
13516
|
+
|
|
13517
|
+
constructor(map?: { [key: string]: any }) {
|
|
13518
|
+
super(map);
|
|
13519
|
+
}
|
|
13520
|
+
}
|
|
13521
|
+
|
|
13155
13522
|
export class ListHotelRoomsResponseBodyResult extends $tea.Model {
|
|
13156
13523
|
hotelId?: string;
|
|
13157
13524
|
roomNo?: string;
|
|
@@ -13662,6 +14029,25 @@ export class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
|
|
|
13662
14029
|
}
|
|
13663
14030
|
}
|
|
13664
14031
|
|
|
14032
|
+
export class ListHotelsRequestHotelRequest extends $tea.Model {
|
|
14033
|
+
hotelId?: string;
|
|
14034
|
+
static names(): { [key: string]: string } {
|
|
14035
|
+
return {
|
|
14036
|
+
hotelId: 'HotelId',
|
|
14037
|
+
};
|
|
14038
|
+
}
|
|
14039
|
+
|
|
14040
|
+
static types(): { [key: string]: any } {
|
|
14041
|
+
return {
|
|
14042
|
+
hotelId: 'string',
|
|
14043
|
+
};
|
|
14044
|
+
}
|
|
14045
|
+
|
|
14046
|
+
constructor(map?: { [key: string]: any }) {
|
|
14047
|
+
super(map);
|
|
14048
|
+
}
|
|
14049
|
+
}
|
|
14050
|
+
|
|
13665
14051
|
export class ListHotelsRequestPage extends $tea.Model {
|
|
13666
14052
|
pageNumber?: number;
|
|
13667
14053
|
pageSize?: number;
|
|
@@ -14133,6 +14519,31 @@ export class PushHotelMessageRequestPushHotelMessageReq extends $tea.Model {
|
|
|
14133
14519
|
}
|
|
14134
14520
|
}
|
|
14135
14521
|
|
|
14522
|
+
export class PushVoiceBoxCommandsRequestCommands extends $tea.Model {
|
|
14523
|
+
commandDomain?: string;
|
|
14524
|
+
commandName?: string;
|
|
14525
|
+
payload?: string;
|
|
14526
|
+
static names(): { [key: string]: string } {
|
|
14527
|
+
return {
|
|
14528
|
+
commandDomain: 'CommandDomain',
|
|
14529
|
+
commandName: 'CommandName',
|
|
14530
|
+
payload: 'Payload',
|
|
14531
|
+
};
|
|
14532
|
+
}
|
|
14533
|
+
|
|
14534
|
+
static types(): { [key: string]: any } {
|
|
14535
|
+
return {
|
|
14536
|
+
commandDomain: 'string',
|
|
14537
|
+
commandName: 'string',
|
|
14538
|
+
payload: 'string',
|
|
14539
|
+
};
|
|
14540
|
+
}
|
|
14541
|
+
|
|
14542
|
+
constructor(map?: { [key: string]: any }) {
|
|
14543
|
+
super(map);
|
|
14544
|
+
}
|
|
14545
|
+
}
|
|
14546
|
+
|
|
14136
14547
|
export class QueryDeviceStatusRequestPayloadLocationDevices extends $tea.Model {
|
|
14137
14548
|
deviceNumber?: string;
|
|
14138
14549
|
deviceType?: string;
|
|
@@ -15203,6 +15614,80 @@ export default class Client extends OpenApi {
|
|
|
15203
15614
|
return await this.addCustomQAWithOptions(request, headers, runtime);
|
|
15204
15615
|
}
|
|
15205
15616
|
|
|
15617
|
+
async addCustomQAV2WithOptions(tmpReq: AddCustomQAV2Request, headers: AddCustomQAV2Headers, runtime: $Util.RuntimeOptions): Promise<AddCustomQAV2Response> {
|
|
15618
|
+
Util.validateModel(tmpReq);
|
|
15619
|
+
let request = new AddCustomQAV2ShrinkRequest({ });
|
|
15620
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
15621
|
+
if (!Util.isUnset(tmpReq.answers)) {
|
|
15622
|
+
request.answersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.answers, "Answers", "json");
|
|
15623
|
+
}
|
|
15624
|
+
|
|
15625
|
+
if (!Util.isUnset(tmpReq.keyWords)) {
|
|
15626
|
+
request.keyWordsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keyWords, "KeyWords", "json");
|
|
15627
|
+
}
|
|
15628
|
+
|
|
15629
|
+
if (!Util.isUnset(tmpReq.supplementaryQuestions)) {
|
|
15630
|
+
request.supplementaryQuestionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.supplementaryQuestions, "SupplementaryQuestions", "json");
|
|
15631
|
+
}
|
|
15632
|
+
|
|
15633
|
+
let body : {[key: string ]: any} = { };
|
|
15634
|
+
if (!Util.isUnset(request.answersShrink)) {
|
|
15635
|
+
body["Answers"] = request.answersShrink;
|
|
15636
|
+
}
|
|
15637
|
+
|
|
15638
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
15639
|
+
body["HotelId"] = request.hotelId;
|
|
15640
|
+
}
|
|
15641
|
+
|
|
15642
|
+
if (!Util.isUnset(request.keyWordsShrink)) {
|
|
15643
|
+
body["KeyWords"] = request.keyWordsShrink;
|
|
15644
|
+
}
|
|
15645
|
+
|
|
15646
|
+
if (!Util.isUnset(request.majorQuestion)) {
|
|
15647
|
+
body["MajorQuestion"] = request.majorQuestion;
|
|
15648
|
+
}
|
|
15649
|
+
|
|
15650
|
+
if (!Util.isUnset(request.supplementaryQuestionsShrink)) {
|
|
15651
|
+
body["SupplementaryQuestions"] = request.supplementaryQuestionsShrink;
|
|
15652
|
+
}
|
|
15653
|
+
|
|
15654
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
15655
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
15656
|
+
realHeaders = headers.commonHeaders;
|
|
15657
|
+
}
|
|
15658
|
+
|
|
15659
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
15660
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
15661
|
+
}
|
|
15662
|
+
|
|
15663
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
15664
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
15665
|
+
}
|
|
15666
|
+
|
|
15667
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15668
|
+
headers: realHeaders,
|
|
15669
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15670
|
+
});
|
|
15671
|
+
let params = new $OpenApi.Params({
|
|
15672
|
+
action: "AddCustomQAV2",
|
|
15673
|
+
version: "ip_1.0",
|
|
15674
|
+
protocol: "HTTPS",
|
|
15675
|
+
pathname: `/v1.0/ip/addQAV2`,
|
|
15676
|
+
method: "POST",
|
|
15677
|
+
authType: "AK",
|
|
15678
|
+
style: "ROA",
|
|
15679
|
+
reqBodyType: "formData",
|
|
15680
|
+
bodyType: "json",
|
|
15681
|
+
});
|
|
15682
|
+
return $tea.cast<AddCustomQAV2Response>(await this.callApi(params, req, runtime), new AddCustomQAV2Response({}));
|
|
15683
|
+
}
|
|
15684
|
+
|
|
15685
|
+
async addCustomQAV2(request: AddCustomQAV2Request): Promise<AddCustomQAV2Response> {
|
|
15686
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15687
|
+
let headers = new AddCustomQAV2Headers({ });
|
|
15688
|
+
return await this.addCustomQAV2WithOptions(request, headers, runtime);
|
|
15689
|
+
}
|
|
15690
|
+
|
|
15206
15691
|
async addMessageTemplateWithOptions(request: AddMessageTemplateRequest, headers: AddMessageTemplateHeaders, runtime: $Util.RuntimeOptions): Promise<AddMessageTemplateResponse> {
|
|
15207
15692
|
Util.validateModel(request);
|
|
15208
15693
|
let body : {[key: string ]: any} = { };
|
|
@@ -18079,9 +18564,19 @@ export default class Client extends OpenApi {
|
|
|
18079
18564
|
return await this.listHotelOrderWithOptions(request, headers, runtime);
|
|
18080
18565
|
}
|
|
18081
18566
|
|
|
18082
|
-
async listHotelRoomsWithOptions(
|
|
18083
|
-
Util.validateModel(
|
|
18567
|
+
async listHotelRoomsWithOptions(tmpReq: ListHotelRoomsRequest, headers: ListHotelRoomsHeaders, runtime: $Util.RuntimeOptions): Promise<ListHotelRoomsResponse> {
|
|
18568
|
+
Util.validateModel(tmpReq);
|
|
18569
|
+
let request = new ListHotelRoomsShrinkRequest({ });
|
|
18570
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
18571
|
+
if (!Util.isUnset(tmpReq.hotelAdminRoom)) {
|
|
18572
|
+
request.hotelAdminRoomShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotelAdminRoom, "HotelAdminRoom", "json");
|
|
18573
|
+
}
|
|
18574
|
+
|
|
18084
18575
|
let body : {[key: string ]: any} = { };
|
|
18576
|
+
if (!Util.isUnset(request.hotelAdminRoomShrink)) {
|
|
18577
|
+
body["HotelAdminRoom"] = request.hotelAdminRoomShrink;
|
|
18578
|
+
}
|
|
18579
|
+
|
|
18085
18580
|
if (!Util.isUnset(request.hotelId)) {
|
|
18086
18581
|
body["HotelId"] = request.hotelId;
|
|
18087
18582
|
}
|
|
@@ -18351,11 +18846,19 @@ export default class Client extends OpenApi {
|
|
|
18351
18846
|
Util.validateModel(tmpReq);
|
|
18352
18847
|
let request = new ListHotelsShrinkRequest({ });
|
|
18353
18848
|
OpenApiUtil.convert(tmpReq, request);
|
|
18849
|
+
if (!Util.isUnset(tmpReq.hotelRequest)) {
|
|
18850
|
+
request.hotelRequestShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotelRequest, "HotelRequest", "json");
|
|
18851
|
+
}
|
|
18852
|
+
|
|
18354
18853
|
if (!Util.isUnset(tmpReq.page)) {
|
|
18355
18854
|
request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
18356
18855
|
}
|
|
18357
18856
|
|
|
18358
18857
|
let query : {[key: string ]: any} = { };
|
|
18858
|
+
if (!Util.isUnset(request.hotelRequestShrink)) {
|
|
18859
|
+
query["HotelRequest"] = request.hotelRequestShrink;
|
|
18860
|
+
}
|
|
18861
|
+
|
|
18359
18862
|
if (!Util.isUnset(request.pageShrink)) {
|
|
18360
18863
|
query["Page"] = request.pageShrink;
|
|
18361
18864
|
}
|
|
@@ -18865,6 +19368,64 @@ export default class Client extends OpenApi {
|
|
|
18865
19368
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
18866
19369
|
}
|
|
18867
19370
|
|
|
19371
|
+
async pushVoiceBoxCommandsWithOptions(tmpReq: PushVoiceBoxCommandsRequest, headers: PushVoiceBoxCommandsHeaders, runtime: $Util.RuntimeOptions): Promise<PushVoiceBoxCommandsResponse> {
|
|
19372
|
+
Util.validateModel(tmpReq);
|
|
19373
|
+
let request = new PushVoiceBoxCommandsShrinkRequest({ });
|
|
19374
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
19375
|
+
if (!Util.isUnset(tmpReq.commands)) {
|
|
19376
|
+
request.commandsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.commands, "Commands", "json");
|
|
19377
|
+
}
|
|
19378
|
+
|
|
19379
|
+
let body : {[key: string ]: any} = { };
|
|
19380
|
+
if (!Util.isUnset(request.commandsShrink)) {
|
|
19381
|
+
body["Commands"] = request.commandsShrink;
|
|
19382
|
+
}
|
|
19383
|
+
|
|
19384
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
19385
|
+
body["HotelId"] = request.hotelId;
|
|
19386
|
+
}
|
|
19387
|
+
|
|
19388
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
19389
|
+
body["RoomNo"] = request.roomNo;
|
|
19390
|
+
}
|
|
19391
|
+
|
|
19392
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
19393
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
19394
|
+
realHeaders = headers.commonHeaders;
|
|
19395
|
+
}
|
|
19396
|
+
|
|
19397
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
19398
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
19399
|
+
}
|
|
19400
|
+
|
|
19401
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
19402
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
19403
|
+
}
|
|
19404
|
+
|
|
19405
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19406
|
+
headers: realHeaders,
|
|
19407
|
+
body: OpenApiUtil.parseToMap(body),
|
|
19408
|
+
});
|
|
19409
|
+
let params = new $OpenApi.Params({
|
|
19410
|
+
action: "PushVoiceBoxCommands",
|
|
19411
|
+
version: "ip_1.0",
|
|
19412
|
+
protocol: "HTTPS",
|
|
19413
|
+
pathname: `/v1.0/ip/pushVoiceBoxCommands`,
|
|
19414
|
+
method: "POST",
|
|
19415
|
+
authType: "AK",
|
|
19416
|
+
style: "ROA",
|
|
19417
|
+
reqBodyType: "formData",
|
|
19418
|
+
bodyType: "json",
|
|
19419
|
+
});
|
|
19420
|
+
return $tea.cast<PushVoiceBoxCommandsResponse>(await this.callApi(params, req, runtime), new PushVoiceBoxCommandsResponse({}));
|
|
19421
|
+
}
|
|
19422
|
+
|
|
19423
|
+
async pushVoiceBoxCommands(request: PushVoiceBoxCommandsRequest): Promise<PushVoiceBoxCommandsResponse> {
|
|
19424
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19425
|
+
let headers = new PushVoiceBoxCommandsHeaders({ });
|
|
19426
|
+
return await this.pushVoiceBoxCommandsWithOptions(request, headers, runtime);
|
|
19427
|
+
}
|
|
19428
|
+
|
|
18868
19429
|
async pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse> {
|
|
18869
19430
|
Util.validateModel(request);
|
|
18870
19431
|
let body : {[key: string ]: any} = { };
|