@alicloud/aligenieip_1_0 2.3.0 → 2.4.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 +76 -0
- package/dist/client.js +155 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +198 -0
package/dist/client.d.ts
CHANGED
|
@@ -4830,6 +4830,68 @@ export declare class PushHotelMessageResponse extends $tea.Model {
|
|
|
4830
4830
|
[key: string]: any;
|
|
4831
4831
|
});
|
|
4832
4832
|
}
|
|
4833
|
+
export declare class PushWelcomeHeaders extends $tea.Model {
|
|
4834
|
+
commonHeaders?: {
|
|
4835
|
+
[key: string]: string;
|
|
4836
|
+
};
|
|
4837
|
+
xAcsAligenieAccessToken?: string;
|
|
4838
|
+
authorization?: string;
|
|
4839
|
+
static names(): {
|
|
4840
|
+
[key: string]: string;
|
|
4841
|
+
};
|
|
4842
|
+
static types(): {
|
|
4843
|
+
[key: string]: any;
|
|
4844
|
+
};
|
|
4845
|
+
constructor(map?: {
|
|
4846
|
+
[key: string]: any;
|
|
4847
|
+
});
|
|
4848
|
+
}
|
|
4849
|
+
export declare class PushWelcomeRequest extends $tea.Model {
|
|
4850
|
+
hotelId?: string;
|
|
4851
|
+
roomNo?: string;
|
|
4852
|
+
welcomeMusicUrl?: string;
|
|
4853
|
+
welcomeText?: string;
|
|
4854
|
+
static names(): {
|
|
4855
|
+
[key: string]: string;
|
|
4856
|
+
};
|
|
4857
|
+
static types(): {
|
|
4858
|
+
[key: string]: any;
|
|
4859
|
+
};
|
|
4860
|
+
constructor(map?: {
|
|
4861
|
+
[key: string]: any;
|
|
4862
|
+
});
|
|
4863
|
+
}
|
|
4864
|
+
export declare class PushWelcomeResponseBody extends $tea.Model {
|
|
4865
|
+
message?: string;
|
|
4866
|
+
requestId?: string;
|
|
4867
|
+
result?: boolean;
|
|
4868
|
+
statusCode?: number;
|
|
4869
|
+
static names(): {
|
|
4870
|
+
[key: string]: string;
|
|
4871
|
+
};
|
|
4872
|
+
static types(): {
|
|
4873
|
+
[key: string]: any;
|
|
4874
|
+
};
|
|
4875
|
+
constructor(map?: {
|
|
4876
|
+
[key: string]: any;
|
|
4877
|
+
});
|
|
4878
|
+
}
|
|
4879
|
+
export declare class PushWelcomeResponse extends $tea.Model {
|
|
4880
|
+
headers: {
|
|
4881
|
+
[key: string]: string;
|
|
4882
|
+
};
|
|
4883
|
+
statusCode: number;
|
|
4884
|
+
body: PushWelcomeResponseBody;
|
|
4885
|
+
static names(): {
|
|
4886
|
+
[key: string]: string;
|
|
4887
|
+
};
|
|
4888
|
+
static types(): {
|
|
4889
|
+
[key: string]: any;
|
|
4890
|
+
};
|
|
4891
|
+
constructor(map?: {
|
|
4892
|
+
[key: string]: any;
|
|
4893
|
+
});
|
|
4894
|
+
}
|
|
4833
4895
|
export declare class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
4834
4896
|
commonHeaders?: {
|
|
4835
4897
|
[key: string]: string;
|
|
@@ -5493,6 +5555,7 @@ export declare class SubmitHotelOrderResponseBody extends $tea.Model {
|
|
|
5493
5555
|
message?: string;
|
|
5494
5556
|
requestId?: string;
|
|
5495
5557
|
result?: string;
|
|
5558
|
+
statusCode?: number;
|
|
5496
5559
|
static names(): {
|
|
5497
5560
|
[key: string]: string;
|
|
5498
5561
|
};
|
|
@@ -7086,6 +7149,7 @@ export declare class ImportHotelConfigRequestImportHotelConfig extends $tea.Mode
|
|
|
7086
7149
|
});
|
|
7087
7150
|
}
|
|
7088
7151
|
export declare class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
7152
|
+
aliasList?: string[];
|
|
7089
7153
|
category?: string;
|
|
7090
7154
|
deviceIndex?: number;
|
|
7091
7155
|
deviceName?: string;
|
|
@@ -7113,6 +7177,7 @@ export declare class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiK
|
|
|
7113
7177
|
});
|
|
7114
7178
|
}
|
|
7115
7179
|
export declare class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
7180
|
+
aliasList?: string[];
|
|
7116
7181
|
brand?: string;
|
|
7117
7182
|
city?: string;
|
|
7118
7183
|
connectType?: string;
|
|
@@ -7689,6 +7754,7 @@ export declare class ListHotelSceneItemResponseBodyResultSecondCategoryListItemL
|
|
|
7689
7754
|
id?: string;
|
|
7690
7755
|
name?: string;
|
|
7691
7756
|
price?: number;
|
|
7757
|
+
residueLimit?: number;
|
|
7692
7758
|
status?: string;
|
|
7693
7759
|
type?: string;
|
|
7694
7760
|
static names(): {
|
|
@@ -7772,10 +7838,13 @@ export declare class ListHotelSceneItemsResponseBodyResultPage extends $tea.Mode
|
|
|
7772
7838
|
});
|
|
7773
7839
|
}
|
|
7774
7840
|
export declare class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Model {
|
|
7841
|
+
beyondLimitReply?: string;
|
|
7775
7842
|
category?: string;
|
|
7776
7843
|
deliveryMethod?: string;
|
|
7777
7844
|
icon?: string;
|
|
7778
7845
|
id?: number;
|
|
7846
|
+
limitNumber?: number;
|
|
7847
|
+
limitSwitch?: number;
|
|
7779
7848
|
name?: string;
|
|
7780
7849
|
paymentMethod?: string;
|
|
7781
7850
|
price?: number;
|
|
@@ -8245,6 +8314,7 @@ export declare class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
|
|
|
8245
8314
|
});
|
|
8246
8315
|
}
|
|
8247
8316
|
export declare class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
8317
|
+
aliasList?: string[];
|
|
8248
8318
|
category?: string;
|
|
8249
8319
|
deviceIndex?: number;
|
|
8250
8320
|
deviceName?: string;
|
|
@@ -8274,6 +8344,7 @@ export declare class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwi
|
|
|
8274
8344
|
});
|
|
8275
8345
|
}
|
|
8276
8346
|
export declare class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
8347
|
+
aliasList?: string[];
|
|
8277
8348
|
connectType?: string;
|
|
8278
8349
|
DN?: string;
|
|
8279
8350
|
deviceName?: string;
|
|
@@ -8520,10 +8591,13 @@ export declare class UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList
|
|
|
8520
8591
|
});
|
|
8521
8592
|
}
|
|
8522
8593
|
export declare class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
8594
|
+
beyondLimitReply?: string;
|
|
8523
8595
|
deliveryMethod?: string;
|
|
8524
8596
|
dialogueList?: UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList[];
|
|
8525
8597
|
icon?: string;
|
|
8526
8598
|
id?: number;
|
|
8599
|
+
limitNumber?: number;
|
|
8600
|
+
limitSwitch?: number;
|
|
8527
8601
|
name?: string;
|
|
8528
8602
|
paymentMethod?: string;
|
|
8529
8603
|
price?: number;
|
|
@@ -8701,6 +8775,8 @@ export default class Client extends OpenApi {
|
|
|
8701
8775
|
pageGetHotelRoomDevices(request: PageGetHotelRoomDevicesRequest): Promise<PageGetHotelRoomDevicesResponse>;
|
|
8702
8776
|
pushHotelMessageWithOptions(tmpReq: PushHotelMessageRequest, headers: PushHotelMessageHeaders, runtime: $Util.RuntimeOptions): Promise<PushHotelMessageResponse>;
|
|
8703
8777
|
pushHotelMessage(request: PushHotelMessageRequest): Promise<PushHotelMessageResponse>;
|
|
8778
|
+
pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse>;
|
|
8779
|
+
pushWelcome(request: PushWelcomeRequest): Promise<PushWelcomeResponse>;
|
|
8704
8780
|
pushWelcomeTextAndMusicWithOptions(tmpReq: PushWelcomeTextAndMusicRequest, headers: PushWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeTextAndMusicResponse>;
|
|
8705
8781
|
pushWelcomeTextAndMusic(request: PushWelcomeTextAndMusicRequest): Promise<PushWelcomeTextAndMusicResponse>;
|
|
8706
8782
|
queryDeviceStatusWithOptions(tmpReq: QueryDeviceStatusRequest, headers: QueryDeviceStatusHeaders, runtime: $Util.RuntimeOptions): Promise<QueryDeviceStatusResponse>;
|
package/dist/client.js
CHANGED
|
@@ -6491,6 +6491,90 @@ class PushHotelMessageResponse extends $tea.Model {
|
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
6493
|
exports.PushHotelMessageResponse = PushHotelMessageResponse;
|
|
6494
|
+
class PushWelcomeHeaders extends $tea.Model {
|
|
6495
|
+
constructor(map) {
|
|
6496
|
+
super(map);
|
|
6497
|
+
}
|
|
6498
|
+
static names() {
|
|
6499
|
+
return {
|
|
6500
|
+
commonHeaders: 'commonHeaders',
|
|
6501
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
6502
|
+
authorization: 'Authorization',
|
|
6503
|
+
};
|
|
6504
|
+
}
|
|
6505
|
+
static types() {
|
|
6506
|
+
return {
|
|
6507
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6508
|
+
xAcsAligenieAccessToken: 'string',
|
|
6509
|
+
authorization: 'string',
|
|
6510
|
+
};
|
|
6511
|
+
}
|
|
6512
|
+
}
|
|
6513
|
+
exports.PushWelcomeHeaders = PushWelcomeHeaders;
|
|
6514
|
+
class PushWelcomeRequest extends $tea.Model {
|
|
6515
|
+
constructor(map) {
|
|
6516
|
+
super(map);
|
|
6517
|
+
}
|
|
6518
|
+
static names() {
|
|
6519
|
+
return {
|
|
6520
|
+
hotelId: 'HotelId',
|
|
6521
|
+
roomNo: 'RoomNo',
|
|
6522
|
+
welcomeMusicUrl: 'WelcomeMusicUrl',
|
|
6523
|
+
welcomeText: 'WelcomeText',
|
|
6524
|
+
};
|
|
6525
|
+
}
|
|
6526
|
+
static types() {
|
|
6527
|
+
return {
|
|
6528
|
+
hotelId: 'string',
|
|
6529
|
+
roomNo: 'string',
|
|
6530
|
+
welcomeMusicUrl: 'string',
|
|
6531
|
+
welcomeText: 'string',
|
|
6532
|
+
};
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6535
|
+
exports.PushWelcomeRequest = PushWelcomeRequest;
|
|
6536
|
+
class PushWelcomeResponseBody extends $tea.Model {
|
|
6537
|
+
constructor(map) {
|
|
6538
|
+
super(map);
|
|
6539
|
+
}
|
|
6540
|
+
static names() {
|
|
6541
|
+
return {
|
|
6542
|
+
message: 'Message',
|
|
6543
|
+
requestId: 'RequestId',
|
|
6544
|
+
result: 'Result',
|
|
6545
|
+
statusCode: 'StatusCode',
|
|
6546
|
+
};
|
|
6547
|
+
}
|
|
6548
|
+
static types() {
|
|
6549
|
+
return {
|
|
6550
|
+
message: 'string',
|
|
6551
|
+
requestId: 'string',
|
|
6552
|
+
result: 'boolean',
|
|
6553
|
+
statusCode: 'number',
|
|
6554
|
+
};
|
|
6555
|
+
}
|
|
6556
|
+
}
|
|
6557
|
+
exports.PushWelcomeResponseBody = PushWelcomeResponseBody;
|
|
6558
|
+
class PushWelcomeResponse extends $tea.Model {
|
|
6559
|
+
constructor(map) {
|
|
6560
|
+
super(map);
|
|
6561
|
+
}
|
|
6562
|
+
static names() {
|
|
6563
|
+
return {
|
|
6564
|
+
headers: 'headers',
|
|
6565
|
+
statusCode: 'statusCode',
|
|
6566
|
+
body: 'body',
|
|
6567
|
+
};
|
|
6568
|
+
}
|
|
6569
|
+
static types() {
|
|
6570
|
+
return {
|
|
6571
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6572
|
+
statusCode: 'number',
|
|
6573
|
+
body: PushWelcomeResponseBody,
|
|
6574
|
+
};
|
|
6575
|
+
}
|
|
6576
|
+
}
|
|
6577
|
+
exports.PushWelcomeResponse = PushWelcomeResponse;
|
|
6494
6578
|
class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
6495
6579
|
constructor(map) {
|
|
6496
6580
|
super(map);
|
|
@@ -7377,6 +7461,7 @@ class SubmitHotelOrderResponseBody extends $tea.Model {
|
|
|
7377
7461
|
message: 'Message',
|
|
7378
7462
|
requestId: 'RequestId',
|
|
7379
7463
|
result: 'Result',
|
|
7464
|
+
statusCode: 'StatusCode',
|
|
7380
7465
|
};
|
|
7381
7466
|
}
|
|
7382
7467
|
static types() {
|
|
@@ -7385,6 +7470,7 @@ class SubmitHotelOrderResponseBody extends $tea.Model {
|
|
|
7385
7470
|
message: 'string',
|
|
7386
7471
|
requestId: 'string',
|
|
7387
7472
|
result: 'string',
|
|
7473
|
+
statusCode: 'number',
|
|
7388
7474
|
};
|
|
7389
7475
|
}
|
|
7390
7476
|
}
|
|
@@ -9655,6 +9741,7 @@ class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwit
|
|
|
9655
9741
|
}
|
|
9656
9742
|
static names() {
|
|
9657
9743
|
return {
|
|
9744
|
+
aliasList: 'AliasList',
|
|
9658
9745
|
category: 'Category',
|
|
9659
9746
|
deviceIndex: 'DeviceIndex',
|
|
9660
9747
|
deviceName: 'DeviceName',
|
|
@@ -9663,6 +9750,7 @@ class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwit
|
|
|
9663
9750
|
}
|
|
9664
9751
|
static types() {
|
|
9665
9752
|
return {
|
|
9753
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
9666
9754
|
category: 'string',
|
|
9667
9755
|
deviceIndex: 'number',
|
|
9668
9756
|
deviceName: 'string',
|
|
@@ -9693,6 +9781,7 @@ class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
|
9693
9781
|
}
|
|
9694
9782
|
static names() {
|
|
9695
9783
|
return {
|
|
9784
|
+
aliasList: 'AliasList',
|
|
9696
9785
|
brand: 'Brand',
|
|
9697
9786
|
city: 'City',
|
|
9698
9787
|
connectType: 'ConnectType',
|
|
@@ -9711,6 +9800,7 @@ class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
|
9711
9800
|
}
|
|
9712
9801
|
static types() {
|
|
9713
9802
|
return {
|
|
9803
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
9714
9804
|
brand: 'string',
|
|
9715
9805
|
city: 'string',
|
|
9716
9806
|
connectType: 'string',
|
|
@@ -10536,6 +10626,7 @@ class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList extends $te
|
|
|
10536
10626
|
id: 'Id',
|
|
10537
10627
|
name: 'Name',
|
|
10538
10628
|
price: 'Price',
|
|
10629
|
+
residueLimit: 'ResidueLimit',
|
|
10539
10630
|
status: 'Status',
|
|
10540
10631
|
type: 'Type',
|
|
10541
10632
|
};
|
|
@@ -10547,6 +10638,7 @@ class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList extends $te
|
|
|
10547
10638
|
id: 'string',
|
|
10548
10639
|
name: 'string',
|
|
10549
10640
|
price: 'number',
|
|
10641
|
+
residueLimit: 'number',
|
|
10550
10642
|
status: 'string',
|
|
10551
10643
|
type: 'string',
|
|
10552
10644
|
};
|
|
@@ -10659,10 +10751,13 @@ class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Model {
|
|
|
10659
10751
|
}
|
|
10660
10752
|
static names() {
|
|
10661
10753
|
return {
|
|
10754
|
+
beyondLimitReply: 'BeyondLimitReply',
|
|
10662
10755
|
category: 'Category',
|
|
10663
10756
|
deliveryMethod: 'DeliveryMethod',
|
|
10664
10757
|
icon: 'Icon',
|
|
10665
10758
|
id: 'Id',
|
|
10759
|
+
limitNumber: 'LimitNumber',
|
|
10760
|
+
limitSwitch: 'LimitSwitch',
|
|
10666
10761
|
name: 'Name',
|
|
10667
10762
|
paymentMethod: 'PaymentMethod',
|
|
10668
10763
|
price: 'Price',
|
|
@@ -10674,10 +10769,13 @@ class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Model {
|
|
|
10674
10769
|
}
|
|
10675
10770
|
static types() {
|
|
10676
10771
|
return {
|
|
10772
|
+
beyondLimitReply: 'string',
|
|
10677
10773
|
category: 'string',
|
|
10678
10774
|
deliveryMethod: 'string',
|
|
10679
10775
|
icon: 'string',
|
|
10680
10776
|
id: 'number',
|
|
10777
|
+
limitNumber: 'number',
|
|
10778
|
+
limitSwitch: 'number',
|
|
10681
10779
|
name: 'string',
|
|
10682
10780
|
paymentMethod: 'string',
|
|
10683
10781
|
price: 'number',
|
|
@@ -11361,6 +11459,7 @@ class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchLis
|
|
|
11361
11459
|
}
|
|
11362
11460
|
static names() {
|
|
11363
11461
|
return {
|
|
11462
|
+
aliasList: 'AliasList',
|
|
11364
11463
|
category: 'Category',
|
|
11365
11464
|
deviceIndex: 'DeviceIndex',
|
|
11366
11465
|
deviceName: 'DeviceName',
|
|
@@ -11371,6 +11470,7 @@ class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchLis
|
|
|
11371
11470
|
}
|
|
11372
11471
|
static types() {
|
|
11373
11472
|
return {
|
|
11473
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
11374
11474
|
category: 'string',
|
|
11375
11475
|
deviceIndex: 'number',
|
|
11376
11476
|
deviceName: 'string',
|
|
@@ -11403,6 +11503,7 @@ class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
|
11403
11503
|
}
|
|
11404
11504
|
static names() {
|
|
11405
11505
|
return {
|
|
11506
|
+
aliasList: 'AliasList',
|
|
11406
11507
|
connectType: 'ConnectType',
|
|
11407
11508
|
DN: 'DN',
|
|
11408
11509
|
deviceName: 'DeviceName',
|
|
@@ -11415,6 +11516,7 @@ class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
|
11415
11516
|
}
|
|
11416
11517
|
static types() {
|
|
11417
11518
|
return {
|
|
11519
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
11418
11520
|
connectType: 'string',
|
|
11419
11521
|
DN: 'string',
|
|
11420
11522
|
deviceName: 'string',
|
|
@@ -11767,10 +11869,13 @@ class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
|
11767
11869
|
}
|
|
11768
11870
|
static names() {
|
|
11769
11871
|
return {
|
|
11872
|
+
beyondLimitReply: 'BeyondLimitReply',
|
|
11770
11873
|
deliveryMethod: 'DeliveryMethod',
|
|
11771
11874
|
dialogueList: 'DialogueList',
|
|
11772
11875
|
icon: 'Icon',
|
|
11773
11876
|
id: 'Id',
|
|
11877
|
+
limitNumber: 'LimitNumber',
|
|
11878
|
+
limitSwitch: 'LimitSwitch',
|
|
11774
11879
|
name: 'Name',
|
|
11775
11880
|
paymentMethod: 'PaymentMethod',
|
|
11776
11881
|
price: 'Price',
|
|
@@ -11780,10 +11885,13 @@ class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
|
11780
11885
|
}
|
|
11781
11886
|
static types() {
|
|
11782
11887
|
return {
|
|
11888
|
+
beyondLimitReply: 'string',
|
|
11783
11889
|
deliveryMethod: 'string',
|
|
11784
11890
|
dialogueList: { 'type': 'array', 'itemType': UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList },
|
|
11785
11891
|
icon: 'string',
|
|
11786
11892
|
id: 'number',
|
|
11893
|
+
limitNumber: 'number',
|
|
11894
|
+
limitSwitch: 'number',
|
|
11787
11895
|
name: 'string',
|
|
11788
11896
|
paymentMethod: 'string',
|
|
11789
11897
|
price: 'number',
|
|
@@ -15046,6 +15154,53 @@ class Client extends openapi_client_1.default {
|
|
|
15046
15154
|
let headers = new PushHotelMessageHeaders({});
|
|
15047
15155
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
15048
15156
|
}
|
|
15157
|
+
async pushWelcomeWithOptions(request, headers, runtime) {
|
|
15158
|
+
tea_util_1.default.validateModel(request);
|
|
15159
|
+
let body = {};
|
|
15160
|
+
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
15161
|
+
body["HotelId"] = request.hotelId;
|
|
15162
|
+
}
|
|
15163
|
+
if (!tea_util_1.default.isUnset(request.roomNo)) {
|
|
15164
|
+
body["RoomNo"] = request.roomNo;
|
|
15165
|
+
}
|
|
15166
|
+
if (!tea_util_1.default.isUnset(request.welcomeMusicUrl)) {
|
|
15167
|
+
body["WelcomeMusicUrl"] = request.welcomeMusicUrl;
|
|
15168
|
+
}
|
|
15169
|
+
if (!tea_util_1.default.isUnset(request.welcomeText)) {
|
|
15170
|
+
body["WelcomeText"] = request.welcomeText;
|
|
15171
|
+
}
|
|
15172
|
+
let realHeaders = {};
|
|
15173
|
+
if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
|
|
15174
|
+
realHeaders = headers.commonHeaders;
|
|
15175
|
+
}
|
|
15176
|
+
if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
15177
|
+
realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
|
|
15178
|
+
}
|
|
15179
|
+
if (!tea_util_1.default.isUnset(headers.authorization)) {
|
|
15180
|
+
realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
|
|
15181
|
+
}
|
|
15182
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15183
|
+
headers: realHeaders,
|
|
15184
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
15185
|
+
});
|
|
15186
|
+
let params = new $OpenApi.Params({
|
|
15187
|
+
action: "PushWelcome",
|
|
15188
|
+
version: "ip_1.0",
|
|
15189
|
+
protocol: "HTTPS",
|
|
15190
|
+
pathname: `/v1.0/ip/pushWelcome`,
|
|
15191
|
+
method: "POST",
|
|
15192
|
+
authType: "AK",
|
|
15193
|
+
style: "ROA",
|
|
15194
|
+
reqBodyType: "formData",
|
|
15195
|
+
bodyType: "json",
|
|
15196
|
+
});
|
|
15197
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PushWelcomeResponse({}));
|
|
15198
|
+
}
|
|
15199
|
+
async pushWelcome(request) {
|
|
15200
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
15201
|
+
let headers = new PushWelcomeHeaders({});
|
|
15202
|
+
return await this.pushWelcomeWithOptions(request, headers, runtime);
|
|
15203
|
+
}
|
|
15049
15204
|
async pushWelcomeTextAndMusicWithOptions(tmpReq, headers, runtime) {
|
|
15050
15205
|
tea_util_1.default.validateModel(tmpReq);
|
|
15051
15206
|
let request = new PushWelcomeTextAndMusicShrinkRequest({});
|