@alicloud/aligenieip_1_0 2.2.1 → 2.3.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 +110 -0
- package/dist/client.js +202 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +253 -0
package/dist/client.d.ts
CHANGED
|
@@ -2865,6 +2865,69 @@ export declare class GetWelcomeTextAndMusicResponse extends $tea.Model {
|
|
|
2865
2865
|
[key: string]: any;
|
|
2866
2866
|
});
|
|
2867
2867
|
}
|
|
2868
|
+
export declare class HotelQrBindHeaders extends $tea.Model {
|
|
2869
|
+
commonHeaders?: {
|
|
2870
|
+
[key: string]: string;
|
|
2871
|
+
};
|
|
2872
|
+
xAcsAligenieAccessToken?: string;
|
|
2873
|
+
authorization?: string;
|
|
2874
|
+
static names(): {
|
|
2875
|
+
[key: string]: string;
|
|
2876
|
+
};
|
|
2877
|
+
static types(): {
|
|
2878
|
+
[key: string]: any;
|
|
2879
|
+
};
|
|
2880
|
+
constructor(map?: {
|
|
2881
|
+
[key: string]: any;
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
export declare class HotelQrBindRequest extends $tea.Model {
|
|
2885
|
+
clientId?: string;
|
|
2886
|
+
code?: string;
|
|
2887
|
+
extInfo?: string;
|
|
2888
|
+
hotelId?: string;
|
|
2889
|
+
roomNo?: string;
|
|
2890
|
+
static names(): {
|
|
2891
|
+
[key: string]: string;
|
|
2892
|
+
};
|
|
2893
|
+
static types(): {
|
|
2894
|
+
[key: string]: any;
|
|
2895
|
+
};
|
|
2896
|
+
constructor(map?: {
|
|
2897
|
+
[key: string]: any;
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
export declare class HotelQrBindResponseBody extends $tea.Model {
|
|
2901
|
+
message?: string;
|
|
2902
|
+
requestId?: string;
|
|
2903
|
+
result?: HotelQrBindResponseBodyResult;
|
|
2904
|
+
statusCode?: number;
|
|
2905
|
+
static names(): {
|
|
2906
|
+
[key: string]: string;
|
|
2907
|
+
};
|
|
2908
|
+
static types(): {
|
|
2909
|
+
[key: string]: any;
|
|
2910
|
+
};
|
|
2911
|
+
constructor(map?: {
|
|
2912
|
+
[key: string]: any;
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
export declare class HotelQrBindResponse extends $tea.Model {
|
|
2916
|
+
headers: {
|
|
2917
|
+
[key: string]: string;
|
|
2918
|
+
};
|
|
2919
|
+
statusCode: number;
|
|
2920
|
+
body: HotelQrBindResponseBody;
|
|
2921
|
+
static names(): {
|
|
2922
|
+
[key: string]: string;
|
|
2923
|
+
};
|
|
2924
|
+
static types(): {
|
|
2925
|
+
[key: string]: any;
|
|
2926
|
+
};
|
|
2927
|
+
constructor(map?: {
|
|
2928
|
+
[key: string]: any;
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2868
2931
|
export declare class ImportHotelConfigHeaders extends $tea.Model {
|
|
2869
2932
|
commonHeaders?: {
|
|
2870
2933
|
[key: string]: string;
|
|
@@ -6949,6 +7012,51 @@ export declare class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model
|
|
|
6949
7012
|
[key: string]: any;
|
|
6950
7013
|
});
|
|
6951
7014
|
}
|
|
7015
|
+
export declare class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
|
|
7016
|
+
encodeKey?: string;
|
|
7017
|
+
encodeType?: string;
|
|
7018
|
+
id?: string;
|
|
7019
|
+
idType?: string;
|
|
7020
|
+
organizationId?: string;
|
|
7021
|
+
static names(): {
|
|
7022
|
+
[key: string]: string;
|
|
7023
|
+
};
|
|
7024
|
+
static types(): {
|
|
7025
|
+
[key: string]: any;
|
|
7026
|
+
};
|
|
7027
|
+
constructor(map?: {
|
|
7028
|
+
[key: string]: any;
|
|
7029
|
+
});
|
|
7030
|
+
}
|
|
7031
|
+
export declare class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
|
|
7032
|
+
encodeKey?: string;
|
|
7033
|
+
encodeType?: string;
|
|
7034
|
+
id?: string;
|
|
7035
|
+
idType?: string;
|
|
7036
|
+
organizationId?: string;
|
|
7037
|
+
static names(): {
|
|
7038
|
+
[key: string]: string;
|
|
7039
|
+
};
|
|
7040
|
+
static types(): {
|
|
7041
|
+
[key: string]: any;
|
|
7042
|
+
};
|
|
7043
|
+
constructor(map?: {
|
|
7044
|
+
[key: string]: any;
|
|
7045
|
+
});
|
|
7046
|
+
}
|
|
7047
|
+
export declare class HotelQrBindResponseBodyResult extends $tea.Model {
|
|
7048
|
+
openDeviceInfo?: HotelQrBindResponseBodyResultOpenDeviceInfo;
|
|
7049
|
+
openUserInfo?: HotelQrBindResponseBodyResultOpenUserInfo;
|
|
7050
|
+
static names(): {
|
|
7051
|
+
[key: string]: string;
|
|
7052
|
+
};
|
|
7053
|
+
static types(): {
|
|
7054
|
+
[key: string]: any;
|
|
7055
|
+
};
|
|
7056
|
+
constructor(map?: {
|
|
7057
|
+
[key: string]: any;
|
|
7058
|
+
});
|
|
7059
|
+
}
|
|
6952
7060
|
export declare class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
|
|
6953
7061
|
corpusList?: string[];
|
|
6954
7062
|
description?: string;
|
|
@@ -8535,6 +8643,8 @@ export default class Client extends OpenApi {
|
|
|
8535
8643
|
getUnionId(request: GetUnionIdRequest): Promise<GetUnionIdResponse>;
|
|
8536
8644
|
getWelcomeTextAndMusicWithOptions(request: GetWelcomeTextAndMusicRequest, headers: GetWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<GetWelcomeTextAndMusicResponse>;
|
|
8537
8645
|
getWelcomeTextAndMusic(request: GetWelcomeTextAndMusicRequest): Promise<GetWelcomeTextAndMusicResponse>;
|
|
8646
|
+
hotelQrBindWithOptions(request: HotelQrBindRequest, headers: HotelQrBindHeaders, runtime: $Util.RuntimeOptions): Promise<HotelQrBindResponse>;
|
|
8647
|
+
hotelQrBind(request: HotelQrBindRequest): Promise<HotelQrBindResponse>;
|
|
8538
8648
|
importHotelConfigWithOptions(tmpReq: ImportHotelConfigRequest, headers: ImportHotelConfigHeaders, runtime: $Util.RuntimeOptions): Promise<ImportHotelConfigResponse>;
|
|
8539
8649
|
importHotelConfig(request: ImportHotelConfigRequest): Promise<ImportHotelConfigResponse>;
|
|
8540
8650
|
importRoomControlDevicesWithOptions(tmpReq: ImportRoomControlDevicesRequest, headers: ImportRoomControlDevicesHeaders, runtime: $Util.RuntimeOptions): Promise<ImportRoomControlDevicesResponse>;
|
package/dist/client.js
CHANGED
|
@@ -3853,6 +3853,92 @@ class GetWelcomeTextAndMusicResponse extends $tea.Model {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
3855
|
exports.GetWelcomeTextAndMusicResponse = GetWelcomeTextAndMusicResponse;
|
|
3856
|
+
class HotelQrBindHeaders extends $tea.Model {
|
|
3857
|
+
constructor(map) {
|
|
3858
|
+
super(map);
|
|
3859
|
+
}
|
|
3860
|
+
static names() {
|
|
3861
|
+
return {
|
|
3862
|
+
commonHeaders: 'commonHeaders',
|
|
3863
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
3864
|
+
authorization: 'Authorization',
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3867
|
+
static types() {
|
|
3868
|
+
return {
|
|
3869
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3870
|
+
xAcsAligenieAccessToken: 'string',
|
|
3871
|
+
authorization: 'string',
|
|
3872
|
+
};
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3875
|
+
exports.HotelQrBindHeaders = HotelQrBindHeaders;
|
|
3876
|
+
class HotelQrBindRequest extends $tea.Model {
|
|
3877
|
+
constructor(map) {
|
|
3878
|
+
super(map);
|
|
3879
|
+
}
|
|
3880
|
+
static names() {
|
|
3881
|
+
return {
|
|
3882
|
+
clientId: 'ClientId',
|
|
3883
|
+
code: 'Code',
|
|
3884
|
+
extInfo: 'ExtInfo',
|
|
3885
|
+
hotelId: 'HotelId',
|
|
3886
|
+
roomNo: 'RoomNo',
|
|
3887
|
+
};
|
|
3888
|
+
}
|
|
3889
|
+
static types() {
|
|
3890
|
+
return {
|
|
3891
|
+
clientId: 'string',
|
|
3892
|
+
code: 'string',
|
|
3893
|
+
extInfo: 'string',
|
|
3894
|
+
hotelId: 'string',
|
|
3895
|
+
roomNo: 'string',
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
exports.HotelQrBindRequest = HotelQrBindRequest;
|
|
3900
|
+
class HotelQrBindResponseBody extends $tea.Model {
|
|
3901
|
+
constructor(map) {
|
|
3902
|
+
super(map);
|
|
3903
|
+
}
|
|
3904
|
+
static names() {
|
|
3905
|
+
return {
|
|
3906
|
+
message: 'Message',
|
|
3907
|
+
requestId: 'RequestId',
|
|
3908
|
+
result: 'Result',
|
|
3909
|
+
statusCode: 'StatusCode',
|
|
3910
|
+
};
|
|
3911
|
+
}
|
|
3912
|
+
static types() {
|
|
3913
|
+
return {
|
|
3914
|
+
message: 'string',
|
|
3915
|
+
requestId: 'string',
|
|
3916
|
+
result: HotelQrBindResponseBodyResult,
|
|
3917
|
+
statusCode: 'number',
|
|
3918
|
+
};
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
exports.HotelQrBindResponseBody = HotelQrBindResponseBody;
|
|
3922
|
+
class HotelQrBindResponse extends $tea.Model {
|
|
3923
|
+
constructor(map) {
|
|
3924
|
+
super(map);
|
|
3925
|
+
}
|
|
3926
|
+
static names() {
|
|
3927
|
+
return {
|
|
3928
|
+
headers: 'headers',
|
|
3929
|
+
statusCode: 'statusCode',
|
|
3930
|
+
body: 'body',
|
|
3931
|
+
};
|
|
3932
|
+
}
|
|
3933
|
+
static types() {
|
|
3934
|
+
return {
|
|
3935
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3936
|
+
statusCode: 'number',
|
|
3937
|
+
body: HotelQrBindResponseBody,
|
|
3938
|
+
};
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
exports.HotelQrBindResponse = HotelQrBindResponse;
|
|
3856
3942
|
class ImportHotelConfigHeaders extends $tea.Model {
|
|
3857
3943
|
constructor(map) {
|
|
3858
3944
|
super(map);
|
|
@@ -9457,6 +9543,72 @@ class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model {
|
|
|
9457
9543
|
}
|
|
9458
9544
|
}
|
|
9459
9545
|
exports.GetWelcomeTextAndMusicResponseBodyResult = GetWelcomeTextAndMusicResponseBodyResult;
|
|
9546
|
+
class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
|
|
9547
|
+
constructor(map) {
|
|
9548
|
+
super(map);
|
|
9549
|
+
}
|
|
9550
|
+
static names() {
|
|
9551
|
+
return {
|
|
9552
|
+
encodeKey: 'EncodeKey',
|
|
9553
|
+
encodeType: 'EncodeType',
|
|
9554
|
+
id: 'Id',
|
|
9555
|
+
idType: 'IdType',
|
|
9556
|
+
organizationId: 'OrganizationId',
|
|
9557
|
+
};
|
|
9558
|
+
}
|
|
9559
|
+
static types() {
|
|
9560
|
+
return {
|
|
9561
|
+
encodeKey: 'string',
|
|
9562
|
+
encodeType: 'string',
|
|
9563
|
+
id: 'string',
|
|
9564
|
+
idType: 'string',
|
|
9565
|
+
organizationId: 'string',
|
|
9566
|
+
};
|
|
9567
|
+
}
|
|
9568
|
+
}
|
|
9569
|
+
exports.HotelQrBindResponseBodyResultOpenDeviceInfo = HotelQrBindResponseBodyResultOpenDeviceInfo;
|
|
9570
|
+
class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
|
|
9571
|
+
constructor(map) {
|
|
9572
|
+
super(map);
|
|
9573
|
+
}
|
|
9574
|
+
static names() {
|
|
9575
|
+
return {
|
|
9576
|
+
encodeKey: 'EncodeKey',
|
|
9577
|
+
encodeType: 'EncodeType',
|
|
9578
|
+
id: 'Id',
|
|
9579
|
+
idType: 'IdType',
|
|
9580
|
+
organizationId: 'OrganizationId',
|
|
9581
|
+
};
|
|
9582
|
+
}
|
|
9583
|
+
static types() {
|
|
9584
|
+
return {
|
|
9585
|
+
encodeKey: 'string',
|
|
9586
|
+
encodeType: 'string',
|
|
9587
|
+
id: 'string',
|
|
9588
|
+
idType: 'string',
|
|
9589
|
+
organizationId: 'string',
|
|
9590
|
+
};
|
|
9591
|
+
}
|
|
9592
|
+
}
|
|
9593
|
+
exports.HotelQrBindResponseBodyResultOpenUserInfo = HotelQrBindResponseBodyResultOpenUserInfo;
|
|
9594
|
+
class HotelQrBindResponseBodyResult extends $tea.Model {
|
|
9595
|
+
constructor(map) {
|
|
9596
|
+
super(map);
|
|
9597
|
+
}
|
|
9598
|
+
static names() {
|
|
9599
|
+
return {
|
|
9600
|
+
openDeviceInfo: 'OpenDeviceInfo',
|
|
9601
|
+
openUserInfo: 'OpenUserInfo',
|
|
9602
|
+
};
|
|
9603
|
+
}
|
|
9604
|
+
static types() {
|
|
9605
|
+
return {
|
|
9606
|
+
openDeviceInfo: HotelQrBindResponseBodyResultOpenDeviceInfo,
|
|
9607
|
+
openUserInfo: HotelQrBindResponseBodyResultOpenUserInfo,
|
|
9608
|
+
};
|
|
9609
|
+
}
|
|
9610
|
+
}
|
|
9611
|
+
exports.HotelQrBindResponseBodyResult = HotelQrBindResponseBodyResult;
|
|
9460
9612
|
class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
|
|
9461
9613
|
constructor(map) {
|
|
9462
9614
|
super(map);
|
|
@@ -13581,6 +13733,56 @@ class Client extends openapi_client_1.default {
|
|
|
13581
13733
|
let headers = new GetWelcomeTextAndMusicHeaders({});
|
|
13582
13734
|
return await this.getWelcomeTextAndMusicWithOptions(request, headers, runtime);
|
|
13583
13735
|
}
|
|
13736
|
+
async hotelQrBindWithOptions(request, headers, runtime) {
|
|
13737
|
+
tea_util_1.default.validateModel(request);
|
|
13738
|
+
let body = {};
|
|
13739
|
+
if (!tea_util_1.default.isUnset(request.clientId)) {
|
|
13740
|
+
body["ClientId"] = request.clientId;
|
|
13741
|
+
}
|
|
13742
|
+
if (!tea_util_1.default.isUnset(request.code)) {
|
|
13743
|
+
body["Code"] = request.code;
|
|
13744
|
+
}
|
|
13745
|
+
if (!tea_util_1.default.isUnset(request.extInfo)) {
|
|
13746
|
+
body["ExtInfo"] = request.extInfo;
|
|
13747
|
+
}
|
|
13748
|
+
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
13749
|
+
body["HotelId"] = request.hotelId;
|
|
13750
|
+
}
|
|
13751
|
+
if (!tea_util_1.default.isUnset(request.roomNo)) {
|
|
13752
|
+
body["RoomNo"] = request.roomNo;
|
|
13753
|
+
}
|
|
13754
|
+
let realHeaders = {};
|
|
13755
|
+
if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
|
|
13756
|
+
realHeaders = headers.commonHeaders;
|
|
13757
|
+
}
|
|
13758
|
+
if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
13759
|
+
realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
|
|
13760
|
+
}
|
|
13761
|
+
if (!tea_util_1.default.isUnset(headers.authorization)) {
|
|
13762
|
+
realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
|
|
13763
|
+
}
|
|
13764
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13765
|
+
headers: realHeaders,
|
|
13766
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
13767
|
+
});
|
|
13768
|
+
let params = new $OpenApi.Params({
|
|
13769
|
+
action: "HotelQrBind",
|
|
13770
|
+
version: "ip_1.0",
|
|
13771
|
+
protocol: "HTTPS",
|
|
13772
|
+
pathname: `/v1.0/ip/hotelQrBind`,
|
|
13773
|
+
method: "POST",
|
|
13774
|
+
authType: "AK",
|
|
13775
|
+
style: "ROA",
|
|
13776
|
+
reqBodyType: "formData",
|
|
13777
|
+
bodyType: "json",
|
|
13778
|
+
});
|
|
13779
|
+
return $tea.cast(await this.callApi(params, req, runtime), new HotelQrBindResponse({}));
|
|
13780
|
+
}
|
|
13781
|
+
async hotelQrBind(request) {
|
|
13782
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
13783
|
+
let headers = new HotelQrBindHeaders({});
|
|
13784
|
+
return await this.hotelQrBindWithOptions(request, headers, runtime);
|
|
13785
|
+
}
|
|
13584
13786
|
async importHotelConfigWithOptions(tmpReq, headers, runtime) {
|
|
13585
13787
|
tea_util_1.default.validateModel(tmpReq);
|
|
13586
13788
|
let request = new ImportHotelConfigShrinkRequest({});
|