@alicloud/aligenieip_1_0 1.0.18 → 1.0.19
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 +206 -0
- package/dist/client.js +380 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +475 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2759,6 +2759,128 @@ export class GetCartoonResponse extends $tea.Model {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
|
|
2762
|
+
export class GetHotelContactByGenieDeviceHeaders extends $tea.Model {
|
|
2763
|
+
commonHeaders?: { [key: string]: string };
|
|
2764
|
+
xAcsAligenieAccessToken?: string;
|
|
2765
|
+
authorization?: string;
|
|
2766
|
+
static names(): { [key: string]: string } {
|
|
2767
|
+
return {
|
|
2768
|
+
commonHeaders: 'commonHeaders',
|
|
2769
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
2770
|
+
authorization: 'Authorization',
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
static types(): { [key: string]: any } {
|
|
2775
|
+
return {
|
|
2776
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2777
|
+
xAcsAligenieAccessToken: 'string',
|
|
2778
|
+
authorization: 'string',
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
constructor(map?: { [key: string]: any }) {
|
|
2783
|
+
super(map);
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
export class GetHotelContactByGenieDeviceRequest extends $tea.Model {
|
|
2788
|
+
deviceInfo?: GetHotelContactByGenieDeviceRequestDeviceInfo;
|
|
2789
|
+
userInfo?: GetHotelContactByGenieDeviceRequestUserInfo;
|
|
2790
|
+
static names(): { [key: string]: string } {
|
|
2791
|
+
return {
|
|
2792
|
+
deviceInfo: 'DeviceInfo',
|
|
2793
|
+
userInfo: 'UserInfo',
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
static types(): { [key: string]: any } {
|
|
2798
|
+
return {
|
|
2799
|
+
deviceInfo: GetHotelContactByGenieDeviceRequestDeviceInfo,
|
|
2800
|
+
userInfo: GetHotelContactByGenieDeviceRequestUserInfo,
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
constructor(map?: { [key: string]: any }) {
|
|
2805
|
+
super(map);
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
export class GetHotelContactByGenieDeviceShrinkRequest extends $tea.Model {
|
|
2810
|
+
deviceInfoShrink?: string;
|
|
2811
|
+
userInfoShrink?: string;
|
|
2812
|
+
static names(): { [key: string]: string } {
|
|
2813
|
+
return {
|
|
2814
|
+
deviceInfoShrink: 'DeviceInfo',
|
|
2815
|
+
userInfoShrink: 'UserInfo',
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
static types(): { [key: string]: any } {
|
|
2820
|
+
return {
|
|
2821
|
+
deviceInfoShrink: 'string',
|
|
2822
|
+
userInfoShrink: 'string',
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
constructor(map?: { [key: string]: any }) {
|
|
2827
|
+
super(map);
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
export class GetHotelContactByGenieDeviceResponseBody extends $tea.Model {
|
|
2832
|
+
message?: string;
|
|
2833
|
+
requestId?: string;
|
|
2834
|
+
result?: GetHotelContactByGenieDeviceResponseBodyResult;
|
|
2835
|
+
statusCode?: number;
|
|
2836
|
+
static names(): { [key: string]: string } {
|
|
2837
|
+
return {
|
|
2838
|
+
message: 'Message',
|
|
2839
|
+
requestId: 'RequestId',
|
|
2840
|
+
result: 'Result',
|
|
2841
|
+
statusCode: 'StatusCode',
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
static types(): { [key: string]: any } {
|
|
2846
|
+
return {
|
|
2847
|
+
message: 'string',
|
|
2848
|
+
requestId: 'string',
|
|
2849
|
+
result: GetHotelContactByGenieDeviceResponseBodyResult,
|
|
2850
|
+
statusCode: 'number',
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
constructor(map?: { [key: string]: any }) {
|
|
2855
|
+
super(map);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
export class GetHotelContactByGenieDeviceResponse extends $tea.Model {
|
|
2860
|
+
headers: { [key: string]: string };
|
|
2861
|
+
statusCode: number;
|
|
2862
|
+
body: GetHotelContactByGenieDeviceResponseBody;
|
|
2863
|
+
static names(): { [key: string]: string } {
|
|
2864
|
+
return {
|
|
2865
|
+
headers: 'headers',
|
|
2866
|
+
statusCode: 'statusCode',
|
|
2867
|
+
body: 'body',
|
|
2868
|
+
};
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
static types(): { [key: string]: any } {
|
|
2872
|
+
return {
|
|
2873
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2874
|
+
statusCode: 'number',
|
|
2875
|
+
body: GetHotelContactByGenieDeviceResponseBody,
|
|
2876
|
+
};
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
constructor(map?: { [key: string]: any }) {
|
|
2880
|
+
super(map);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2762
2884
|
export class GetHotelContactByNumberHeaders extends $tea.Model {
|
|
2763
2885
|
commonHeaders?: { [key: string]: string };
|
|
2764
2886
|
xAcsAligenieAccessToken?: string;
|
|
@@ -4171,6 +4293,112 @@ export class GetRelationProductListResponse extends $tea.Model {
|
|
|
4171
4293
|
}
|
|
4172
4294
|
}
|
|
4173
4295
|
|
|
4296
|
+
export class GetUnionIdHeaders extends $tea.Model {
|
|
4297
|
+
commonHeaders?: { [key: string]: string };
|
|
4298
|
+
xAcsAligenieAccessToken?: string;
|
|
4299
|
+
authorization?: string;
|
|
4300
|
+
static names(): { [key: string]: string } {
|
|
4301
|
+
return {
|
|
4302
|
+
commonHeaders: 'commonHeaders',
|
|
4303
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
4304
|
+
authorization: 'Authorization',
|
|
4305
|
+
};
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4308
|
+
static types(): { [key: string]: any } {
|
|
4309
|
+
return {
|
|
4310
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4311
|
+
xAcsAligenieAccessToken: 'string',
|
|
4312
|
+
authorization: 'string',
|
|
4313
|
+
};
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
constructor(map?: { [key: string]: any }) {
|
|
4317
|
+
super(map);
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
export class GetUnionIdRequest extends $tea.Model {
|
|
4322
|
+
encodeKey?: string;
|
|
4323
|
+
encodeType?: string;
|
|
4324
|
+
id?: string;
|
|
4325
|
+
idType?: string;
|
|
4326
|
+
static names(): { [key: string]: string } {
|
|
4327
|
+
return {
|
|
4328
|
+
encodeKey: 'EncodeKey',
|
|
4329
|
+
encodeType: 'EncodeType',
|
|
4330
|
+
id: 'Id',
|
|
4331
|
+
idType: 'IdType',
|
|
4332
|
+
};
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
static types(): { [key: string]: any } {
|
|
4336
|
+
return {
|
|
4337
|
+
encodeKey: 'string',
|
|
4338
|
+
encodeType: 'string',
|
|
4339
|
+
id: 'string',
|
|
4340
|
+
idType: 'string',
|
|
4341
|
+
};
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
constructor(map?: { [key: string]: any }) {
|
|
4345
|
+
super(map);
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
export class GetUnionIdResponseBody extends $tea.Model {
|
|
4350
|
+
message?: string;
|
|
4351
|
+
requestId?: string;
|
|
4352
|
+
result?: GetUnionIdResponseBodyResult[];
|
|
4353
|
+
statusCode?: number;
|
|
4354
|
+
static names(): { [key: string]: string } {
|
|
4355
|
+
return {
|
|
4356
|
+
message: 'Message',
|
|
4357
|
+
requestId: 'RequestId',
|
|
4358
|
+
result: 'Result',
|
|
4359
|
+
statusCode: 'StatusCode',
|
|
4360
|
+
};
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
static types(): { [key: string]: any } {
|
|
4364
|
+
return {
|
|
4365
|
+
message: 'string',
|
|
4366
|
+
requestId: 'string',
|
|
4367
|
+
result: { 'type': 'array', 'itemType': GetUnionIdResponseBodyResult },
|
|
4368
|
+
statusCode: 'number',
|
|
4369
|
+
};
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
constructor(map?: { [key: string]: any }) {
|
|
4373
|
+
super(map);
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
export class GetUnionIdResponse extends $tea.Model {
|
|
4378
|
+
headers: { [key: string]: string };
|
|
4379
|
+
statusCode: number;
|
|
4380
|
+
body: GetUnionIdResponseBody;
|
|
4381
|
+
static names(): { [key: string]: string } {
|
|
4382
|
+
return {
|
|
4383
|
+
headers: 'headers',
|
|
4384
|
+
statusCode: 'statusCode',
|
|
4385
|
+
body: 'body',
|
|
4386
|
+
};
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
static types(): { [key: string]: any } {
|
|
4390
|
+
return {
|
|
4391
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4392
|
+
statusCode: 'number',
|
|
4393
|
+
body: GetUnionIdResponseBody,
|
|
4394
|
+
};
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
constructor(map?: { [key: string]: any }) {
|
|
4398
|
+
super(map);
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4174
4402
|
export class GetWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
4175
4403
|
commonHeaders?: { [key: string]: string };
|
|
4176
4404
|
xAcsAligenieAccessToken?: string;
|
|
@@ -9405,6 +9633,117 @@ export class GetCartoonResponseBodyResult extends $tea.Model {
|
|
|
9405
9633
|
}
|
|
9406
9634
|
}
|
|
9407
9635
|
|
|
9636
|
+
export class GetHotelContactByGenieDeviceRequestDeviceInfo extends $tea.Model {
|
|
9637
|
+
encodeKey?: string;
|
|
9638
|
+
encodeType?: string;
|
|
9639
|
+
id?: string;
|
|
9640
|
+
idType?: string;
|
|
9641
|
+
organizationId?: string;
|
|
9642
|
+
static names(): { [key: string]: string } {
|
|
9643
|
+
return {
|
|
9644
|
+
encodeKey: 'EncodeKey',
|
|
9645
|
+
encodeType: 'EncodeType',
|
|
9646
|
+
id: 'Id',
|
|
9647
|
+
idType: 'IdType',
|
|
9648
|
+
organizationId: 'OrganizationId',
|
|
9649
|
+
};
|
|
9650
|
+
}
|
|
9651
|
+
|
|
9652
|
+
static types(): { [key: string]: any } {
|
|
9653
|
+
return {
|
|
9654
|
+
encodeKey: 'string',
|
|
9655
|
+
encodeType: 'string',
|
|
9656
|
+
id: 'string',
|
|
9657
|
+
idType: 'string',
|
|
9658
|
+
organizationId: 'string',
|
|
9659
|
+
};
|
|
9660
|
+
}
|
|
9661
|
+
|
|
9662
|
+
constructor(map?: { [key: string]: any }) {
|
|
9663
|
+
super(map);
|
|
9664
|
+
}
|
|
9665
|
+
}
|
|
9666
|
+
|
|
9667
|
+
export class GetHotelContactByGenieDeviceRequestUserInfo extends $tea.Model {
|
|
9668
|
+
encodeKey?: string;
|
|
9669
|
+
encodeType?: string;
|
|
9670
|
+
id?: string;
|
|
9671
|
+
idType?: string;
|
|
9672
|
+
organizationId?: string;
|
|
9673
|
+
static names(): { [key: string]: string } {
|
|
9674
|
+
return {
|
|
9675
|
+
encodeKey: 'EncodeKey',
|
|
9676
|
+
encodeType: 'EncodeType',
|
|
9677
|
+
id: 'Id',
|
|
9678
|
+
idType: 'IdType',
|
|
9679
|
+
organizationId: 'OrganizationId',
|
|
9680
|
+
};
|
|
9681
|
+
}
|
|
9682
|
+
|
|
9683
|
+
static types(): { [key: string]: any } {
|
|
9684
|
+
return {
|
|
9685
|
+
encodeKey: 'string',
|
|
9686
|
+
encodeType: 'string',
|
|
9687
|
+
id: 'string',
|
|
9688
|
+
idType: 'string',
|
|
9689
|
+
organizationId: 'string',
|
|
9690
|
+
};
|
|
9691
|
+
}
|
|
9692
|
+
|
|
9693
|
+
constructor(map?: { [key: string]: any }) {
|
|
9694
|
+
super(map);
|
|
9695
|
+
}
|
|
9696
|
+
}
|
|
9697
|
+
|
|
9698
|
+
export class GetHotelContactByGenieDeviceResponseBodyResult extends $tea.Model {
|
|
9699
|
+
expireAt?: string;
|
|
9700
|
+
gmtCreate?: string;
|
|
9701
|
+
gmtModified?: string;
|
|
9702
|
+
hotelId?: string;
|
|
9703
|
+
icon?: string;
|
|
9704
|
+
id?: number;
|
|
9705
|
+
name?: string;
|
|
9706
|
+
number?: string;
|
|
9707
|
+
status?: number;
|
|
9708
|
+
type?: string;
|
|
9709
|
+
uuid?: string;
|
|
9710
|
+
static names(): { [key: string]: string } {
|
|
9711
|
+
return {
|
|
9712
|
+
expireAt: 'ExpireAt',
|
|
9713
|
+
gmtCreate: 'GmtCreate',
|
|
9714
|
+
gmtModified: 'GmtModified',
|
|
9715
|
+
hotelId: 'HotelId',
|
|
9716
|
+
icon: 'Icon',
|
|
9717
|
+
id: 'Id',
|
|
9718
|
+
name: 'Name',
|
|
9719
|
+
number: 'Number',
|
|
9720
|
+
status: 'Status',
|
|
9721
|
+
type: 'Type',
|
|
9722
|
+
uuid: 'Uuid',
|
|
9723
|
+
};
|
|
9724
|
+
}
|
|
9725
|
+
|
|
9726
|
+
static types(): { [key: string]: any } {
|
|
9727
|
+
return {
|
|
9728
|
+
expireAt: 'string',
|
|
9729
|
+
gmtCreate: 'string',
|
|
9730
|
+
gmtModified: 'string',
|
|
9731
|
+
hotelId: 'string',
|
|
9732
|
+
icon: 'string',
|
|
9733
|
+
id: 'number',
|
|
9734
|
+
name: 'string',
|
|
9735
|
+
number: 'string',
|
|
9736
|
+
status: 'number',
|
|
9737
|
+
type: 'string',
|
|
9738
|
+
uuid: 'string',
|
|
9739
|
+
};
|
|
9740
|
+
}
|
|
9741
|
+
|
|
9742
|
+
constructor(map?: { [key: string]: any }) {
|
|
9743
|
+
super(map);
|
|
9744
|
+
}
|
|
9745
|
+
}
|
|
9746
|
+
|
|
9408
9747
|
export class GetHotelContactByNumberRequestUserInfo extends $tea.Model {
|
|
9409
9748
|
encodeKey?: string;
|
|
9410
9749
|
encodeType?: string;
|
|
@@ -10118,6 +10457,28 @@ export class GetRelationProductListResponseBodyResult extends $tea.Model {
|
|
|
10118
10457
|
}
|
|
10119
10458
|
}
|
|
10120
10459
|
|
|
10460
|
+
export class GetUnionIdResponseBodyResult extends $tea.Model {
|
|
10461
|
+
organizationId?: string;
|
|
10462
|
+
unionId?: string;
|
|
10463
|
+
static names(): { [key: string]: string } {
|
|
10464
|
+
return {
|
|
10465
|
+
organizationId: 'OrganizationId',
|
|
10466
|
+
unionId: 'UnionId',
|
|
10467
|
+
};
|
|
10468
|
+
}
|
|
10469
|
+
|
|
10470
|
+
static types(): { [key: string]: any } {
|
|
10471
|
+
return {
|
|
10472
|
+
organizationId: 'string',
|
|
10473
|
+
unionId: 'string',
|
|
10474
|
+
};
|
|
10475
|
+
}
|
|
10476
|
+
|
|
10477
|
+
constructor(map?: { [key: string]: any }) {
|
|
10478
|
+
super(map);
|
|
10479
|
+
}
|
|
10480
|
+
}
|
|
10481
|
+
|
|
10121
10482
|
export class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model {
|
|
10122
10483
|
hotelId?: string;
|
|
10123
10484
|
musicUrl?: string;
|
|
@@ -13596,6 +13957,64 @@ export default class Client extends OpenApi {
|
|
|
13596
13957
|
return await this.getCartoonWithOptions(request, headers, runtime);
|
|
13597
13958
|
}
|
|
13598
13959
|
|
|
13960
|
+
async getHotelContactByGenieDeviceWithOptions(tmpReq: GetHotelContactByGenieDeviceRequest, headers: GetHotelContactByGenieDeviceHeaders, runtime: $Util.RuntimeOptions): Promise<GetHotelContactByGenieDeviceResponse> {
|
|
13961
|
+
Util.validateModel(tmpReq);
|
|
13962
|
+
let request = new GetHotelContactByGenieDeviceShrinkRequest({ });
|
|
13963
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
13964
|
+
if (!Util.isUnset(tmpReq.deviceInfo)) {
|
|
13965
|
+
request.deviceInfoShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.deviceInfo, "DeviceInfo", "json");
|
|
13966
|
+
}
|
|
13967
|
+
|
|
13968
|
+
if (!Util.isUnset(tmpReq.userInfo)) {
|
|
13969
|
+
request.userInfoShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userInfo, "UserInfo", "json");
|
|
13970
|
+
}
|
|
13971
|
+
|
|
13972
|
+
let query : {[key: string ]: any} = { };
|
|
13973
|
+
if (!Util.isUnset(request.deviceInfoShrink)) {
|
|
13974
|
+
query["DeviceInfo"] = request.deviceInfoShrink;
|
|
13975
|
+
}
|
|
13976
|
+
|
|
13977
|
+
if (!Util.isUnset(request.userInfoShrink)) {
|
|
13978
|
+
query["UserInfo"] = request.userInfoShrink;
|
|
13979
|
+
}
|
|
13980
|
+
|
|
13981
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
13982
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
13983
|
+
realHeaders = headers.commonHeaders;
|
|
13984
|
+
}
|
|
13985
|
+
|
|
13986
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
13987
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
13988
|
+
}
|
|
13989
|
+
|
|
13990
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
13991
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
13992
|
+
}
|
|
13993
|
+
|
|
13994
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13995
|
+
headers: realHeaders,
|
|
13996
|
+
query: OpenApiUtil.query(query),
|
|
13997
|
+
});
|
|
13998
|
+
let params = new $OpenApi.Params({
|
|
13999
|
+
action: "GetHotelContactByGenieDevice",
|
|
14000
|
+
version: "ip_1.0",
|
|
14001
|
+
protocol: "HTTPS",
|
|
14002
|
+
pathname: `/v1.0/ip/getHotelContactByGenieDevice`,
|
|
14003
|
+
method: "POST",
|
|
14004
|
+
authType: "AK",
|
|
14005
|
+
style: "ROA",
|
|
14006
|
+
reqBodyType: "json",
|
|
14007
|
+
bodyType: "json",
|
|
14008
|
+
});
|
|
14009
|
+
return $tea.cast<GetHotelContactByGenieDeviceResponse>(await this.callApi(params, req, runtime), new GetHotelContactByGenieDeviceResponse({}));
|
|
14010
|
+
}
|
|
14011
|
+
|
|
14012
|
+
async getHotelContactByGenieDevice(request: GetHotelContactByGenieDeviceRequest): Promise<GetHotelContactByGenieDeviceResponse> {
|
|
14013
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14014
|
+
let headers = new GetHotelContactByGenieDeviceHeaders({ });
|
|
14015
|
+
return await this.getHotelContactByGenieDeviceWithOptions(request, headers, runtime);
|
|
14016
|
+
}
|
|
14017
|
+
|
|
13599
14018
|
async getHotelContactByNumberWithOptions(tmpReq: GetHotelContactByNumberRequest, headers: GetHotelContactByNumberHeaders, runtime: $Util.RuntimeOptions): Promise<GetHotelContactByNumberResponse> {
|
|
13600
14019
|
Util.validateModel(tmpReq);
|
|
13601
14020
|
let request = new GetHotelContactByNumberShrinkRequest({ });
|
|
@@ -14227,6 +14646,62 @@ export default class Client extends OpenApi {
|
|
|
14227
14646
|
return await this.getRelationProductListWithOptions(headers, runtime);
|
|
14228
14647
|
}
|
|
14229
14648
|
|
|
14649
|
+
async getUnionIdWithOptions(request: GetUnionIdRequest, headers: GetUnionIdHeaders, runtime: $Util.RuntimeOptions): Promise<GetUnionIdResponse> {
|
|
14650
|
+
Util.validateModel(request);
|
|
14651
|
+
let body : {[key: string ]: any} = { };
|
|
14652
|
+
if (!Util.isUnset(request.encodeKey)) {
|
|
14653
|
+
body["EncodeKey"] = request.encodeKey;
|
|
14654
|
+
}
|
|
14655
|
+
|
|
14656
|
+
if (!Util.isUnset(request.encodeType)) {
|
|
14657
|
+
body["EncodeType"] = request.encodeType;
|
|
14658
|
+
}
|
|
14659
|
+
|
|
14660
|
+
if (!Util.isUnset(request.id)) {
|
|
14661
|
+
body["Id"] = request.id;
|
|
14662
|
+
}
|
|
14663
|
+
|
|
14664
|
+
if (!Util.isUnset(request.idType)) {
|
|
14665
|
+
body["IdType"] = request.idType;
|
|
14666
|
+
}
|
|
14667
|
+
|
|
14668
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
14669
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
14670
|
+
realHeaders = headers.commonHeaders;
|
|
14671
|
+
}
|
|
14672
|
+
|
|
14673
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
14674
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
14675
|
+
}
|
|
14676
|
+
|
|
14677
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
14678
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
14679
|
+
}
|
|
14680
|
+
|
|
14681
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14682
|
+
headers: realHeaders,
|
|
14683
|
+
body: OpenApiUtil.parseToMap(body),
|
|
14684
|
+
});
|
|
14685
|
+
let params = new $OpenApi.Params({
|
|
14686
|
+
action: "GetUnionId",
|
|
14687
|
+
version: "ip_1.0",
|
|
14688
|
+
protocol: "HTTPS",
|
|
14689
|
+
pathname: `/v1.0/ip/getUnionId`,
|
|
14690
|
+
method: "POST",
|
|
14691
|
+
authType: "AK",
|
|
14692
|
+
style: "ROA",
|
|
14693
|
+
reqBodyType: "formData",
|
|
14694
|
+
bodyType: "json",
|
|
14695
|
+
});
|
|
14696
|
+
return $tea.cast<GetUnionIdResponse>(await this.callApi(params, req, runtime), new GetUnionIdResponse({}));
|
|
14697
|
+
}
|
|
14698
|
+
|
|
14699
|
+
async getUnionId(request: GetUnionIdRequest): Promise<GetUnionIdResponse> {
|
|
14700
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14701
|
+
let headers = new GetUnionIdHeaders({ });
|
|
14702
|
+
return await this.getUnionIdWithOptions(request, headers, runtime);
|
|
14703
|
+
}
|
|
14704
|
+
|
|
14230
14705
|
async getWelcomeTextAndMusicWithOptions(request: GetWelcomeTextAndMusicRequest, headers: GetWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<GetWelcomeTextAndMusicResponse> {
|
|
14231
14706
|
Util.validateModel(request);
|
|
14232
14707
|
let body : {[key: string ]: any} = { };
|