@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/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
|
};
|
|
@@ -6491,6 +6625,90 @@ class PushHotelMessageResponse extends $tea.Model {
|
|
|
6491
6625
|
}
|
|
6492
6626
|
}
|
|
6493
6627
|
exports.PushHotelMessageResponse = PushHotelMessageResponse;
|
|
6628
|
+
class PushWelcomeHeaders extends $tea.Model {
|
|
6629
|
+
constructor(map) {
|
|
6630
|
+
super(map);
|
|
6631
|
+
}
|
|
6632
|
+
static names() {
|
|
6633
|
+
return {
|
|
6634
|
+
commonHeaders: 'commonHeaders',
|
|
6635
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
6636
|
+
authorization: 'Authorization',
|
|
6637
|
+
};
|
|
6638
|
+
}
|
|
6639
|
+
static types() {
|
|
6640
|
+
return {
|
|
6641
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6642
|
+
xAcsAligenieAccessToken: 'string',
|
|
6643
|
+
authorization: 'string',
|
|
6644
|
+
};
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
exports.PushWelcomeHeaders = PushWelcomeHeaders;
|
|
6648
|
+
class PushWelcomeRequest extends $tea.Model {
|
|
6649
|
+
constructor(map) {
|
|
6650
|
+
super(map);
|
|
6651
|
+
}
|
|
6652
|
+
static names() {
|
|
6653
|
+
return {
|
|
6654
|
+
hotelId: 'HotelId',
|
|
6655
|
+
roomNo: 'RoomNo',
|
|
6656
|
+
welcomeMusicUrl: 'WelcomeMusicUrl',
|
|
6657
|
+
welcomeText: 'WelcomeText',
|
|
6658
|
+
};
|
|
6659
|
+
}
|
|
6660
|
+
static types() {
|
|
6661
|
+
return {
|
|
6662
|
+
hotelId: 'string',
|
|
6663
|
+
roomNo: 'string',
|
|
6664
|
+
welcomeMusicUrl: 'string',
|
|
6665
|
+
welcomeText: 'string',
|
|
6666
|
+
};
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
exports.PushWelcomeRequest = PushWelcomeRequest;
|
|
6670
|
+
class PushWelcomeResponseBody extends $tea.Model {
|
|
6671
|
+
constructor(map) {
|
|
6672
|
+
super(map);
|
|
6673
|
+
}
|
|
6674
|
+
static names() {
|
|
6675
|
+
return {
|
|
6676
|
+
message: 'Message',
|
|
6677
|
+
requestId: 'RequestId',
|
|
6678
|
+
result: 'Result',
|
|
6679
|
+
statusCode: 'StatusCode',
|
|
6680
|
+
};
|
|
6681
|
+
}
|
|
6682
|
+
static types() {
|
|
6683
|
+
return {
|
|
6684
|
+
message: 'string',
|
|
6685
|
+
requestId: 'string',
|
|
6686
|
+
result: 'boolean',
|
|
6687
|
+
statusCode: 'number',
|
|
6688
|
+
};
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
exports.PushWelcomeResponseBody = PushWelcomeResponseBody;
|
|
6692
|
+
class PushWelcomeResponse extends $tea.Model {
|
|
6693
|
+
constructor(map) {
|
|
6694
|
+
super(map);
|
|
6695
|
+
}
|
|
6696
|
+
static names() {
|
|
6697
|
+
return {
|
|
6698
|
+
headers: 'headers',
|
|
6699
|
+
statusCode: 'statusCode',
|
|
6700
|
+
body: 'body',
|
|
6701
|
+
};
|
|
6702
|
+
}
|
|
6703
|
+
static types() {
|
|
6704
|
+
return {
|
|
6705
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6706
|
+
statusCode: 'number',
|
|
6707
|
+
body: PushWelcomeResponseBody,
|
|
6708
|
+
};
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
exports.PushWelcomeResponse = PushWelcomeResponse;
|
|
6494
6712
|
class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
6495
6713
|
constructor(map) {
|
|
6496
6714
|
super(map);
|
|
@@ -8519,6 +8737,40 @@ class UpdateTicketResponse extends $tea.Model {
|
|
|
8519
8737
|
}
|
|
8520
8738
|
}
|
|
8521
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;
|
|
8522
8774
|
class AddOrUpdateHotelSettingRequestHotelScreenSaver extends $tea.Model {
|
|
8523
8775
|
constructor(map) {
|
|
8524
8776
|
super(map);
|
|
@@ -10361,6 +10613,22 @@ class ListHotelOrderResponseBodyResult extends $tea.Model {
|
|
|
10361
10613
|
}
|
|
10362
10614
|
}
|
|
10363
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;
|
|
10364
10632
|
class ListHotelRoomsResponseBodyResult extends $tea.Model {
|
|
10365
10633
|
constructor(map) {
|
|
10366
10634
|
super(map);
|
|
@@ -10761,6 +11029,22 @@ class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
|
|
|
10761
11029
|
}
|
|
10762
11030
|
}
|
|
10763
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;
|
|
10764
11048
|
class ListHotelsRequestPage extends $tea.Model {
|
|
10765
11049
|
constructor(map) {
|
|
10766
11050
|
super(map);
|
|
@@ -11960,6 +12244,67 @@ class Client extends openapi_client_1.default {
|
|
|
11960
12244
|
let headers = new AddCustomQAHeaders({});
|
|
11961
12245
|
return await this.addCustomQAWithOptions(request, headers, runtime);
|
|
11962
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
|
+
}
|
|
11963
12308
|
async addMessageTemplateWithOptions(request, headers, runtime) {
|
|
11964
12309
|
tea_util_1.default.validateModel(request);
|
|
11965
12310
|
let body = {};
|
|
@@ -14405,9 +14750,17 @@ class Client extends openapi_client_1.default {
|
|
|
14405
14750
|
let headers = new ListHotelOrderHeaders({});
|
|
14406
14751
|
return await this.listHotelOrderWithOptions(request, headers, runtime);
|
|
14407
14752
|
}
|
|
14408
|
-
async listHotelRoomsWithOptions(
|
|
14409
|
-
tea_util_1.default.validateModel(
|
|
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
|
+
}
|
|
14410
14760
|
let body = {};
|
|
14761
|
+
if (!tea_util_1.default.isUnset(request.hotelAdminRoomShrink)) {
|
|
14762
|
+
body["HotelAdminRoom"] = request.hotelAdminRoomShrink;
|
|
14763
|
+
}
|
|
14411
14764
|
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
14412
14765
|
body["HotelId"] = request.hotelId;
|
|
14413
14766
|
}
|
|
@@ -14638,10 +14991,16 @@ class Client extends openapi_client_1.default {
|
|
|
14638
14991
|
tea_util_1.default.validateModel(tmpReq);
|
|
14639
14992
|
let request = new ListHotelsShrinkRequest({});
|
|
14640
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
|
+
}
|
|
14641
14997
|
if (!tea_util_1.default.isUnset(tmpReq.page)) {
|
|
14642
14998
|
request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
14643
14999
|
}
|
|
14644
15000
|
let query = {};
|
|
15001
|
+
if (!tea_util_1.default.isUnset(request.hotelRequestShrink)) {
|
|
15002
|
+
query["HotelRequest"] = request.hotelRequestShrink;
|
|
15003
|
+
}
|
|
14645
15004
|
if (!tea_util_1.default.isUnset(request.pageShrink)) {
|
|
14646
15005
|
query["Page"] = request.pageShrink;
|
|
14647
15006
|
}
|
|
@@ -15070,6 +15429,53 @@ class Client extends openapi_client_1.default {
|
|
|
15070
15429
|
let headers = new PushHotelMessageHeaders({});
|
|
15071
15430
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
15072
15431
|
}
|
|
15432
|
+
async pushWelcomeWithOptions(request, headers, runtime) {
|
|
15433
|
+
tea_util_1.default.validateModel(request);
|
|
15434
|
+
let body = {};
|
|
15435
|
+
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
15436
|
+
body["HotelId"] = request.hotelId;
|
|
15437
|
+
}
|
|
15438
|
+
if (!tea_util_1.default.isUnset(request.roomNo)) {
|
|
15439
|
+
body["RoomNo"] = request.roomNo;
|
|
15440
|
+
}
|
|
15441
|
+
if (!tea_util_1.default.isUnset(request.welcomeMusicUrl)) {
|
|
15442
|
+
body["WelcomeMusicUrl"] = request.welcomeMusicUrl;
|
|
15443
|
+
}
|
|
15444
|
+
if (!tea_util_1.default.isUnset(request.welcomeText)) {
|
|
15445
|
+
body["WelcomeText"] = request.welcomeText;
|
|
15446
|
+
}
|
|
15447
|
+
let realHeaders = {};
|
|
15448
|
+
if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
|
|
15449
|
+
realHeaders = headers.commonHeaders;
|
|
15450
|
+
}
|
|
15451
|
+
if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
15452
|
+
realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
|
|
15453
|
+
}
|
|
15454
|
+
if (!tea_util_1.default.isUnset(headers.authorization)) {
|
|
15455
|
+
realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
|
|
15456
|
+
}
|
|
15457
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15458
|
+
headers: realHeaders,
|
|
15459
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
15460
|
+
});
|
|
15461
|
+
let params = new $OpenApi.Params({
|
|
15462
|
+
action: "PushWelcome",
|
|
15463
|
+
version: "ip_1.0",
|
|
15464
|
+
protocol: "HTTPS",
|
|
15465
|
+
pathname: `/v1.0/ip/pushWelcome`,
|
|
15466
|
+
method: "POST",
|
|
15467
|
+
authType: "AK",
|
|
15468
|
+
style: "ROA",
|
|
15469
|
+
reqBodyType: "formData",
|
|
15470
|
+
bodyType: "json",
|
|
15471
|
+
});
|
|
15472
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PushWelcomeResponse({}));
|
|
15473
|
+
}
|
|
15474
|
+
async pushWelcome(request) {
|
|
15475
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
15476
|
+
let headers = new PushWelcomeHeaders({});
|
|
15477
|
+
return await this.pushWelcomeWithOptions(request, headers, runtime);
|
|
15478
|
+
}
|
|
15073
15479
|
async pushWelcomeTextAndMusicWithOptions(tmpReq, headers, runtime) {
|
|
15074
15480
|
tea_util_1.default.validateModel(tmpReq);
|
|
15075
15481
|
let request = new PushWelcomeTextAndMusicShrinkRequest({});
|