@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4809,6 +4809,115 @@ export class GetWelcomeTextAndMusicResponse extends $tea.Model {
|
|
|
4809
4809
|
}
|
|
4810
4810
|
}
|
|
4811
4811
|
|
|
4812
|
+
export class HotelQrBindHeaders extends $tea.Model {
|
|
4813
|
+
commonHeaders?: { [key: string]: string };
|
|
4814
|
+
xAcsAligenieAccessToken?: string;
|
|
4815
|
+
authorization?: string;
|
|
4816
|
+
static names(): { [key: string]: string } {
|
|
4817
|
+
return {
|
|
4818
|
+
commonHeaders: 'commonHeaders',
|
|
4819
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
4820
|
+
authorization: 'Authorization',
|
|
4821
|
+
};
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
static types(): { [key: string]: any } {
|
|
4825
|
+
return {
|
|
4826
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4827
|
+
xAcsAligenieAccessToken: 'string',
|
|
4828
|
+
authorization: 'string',
|
|
4829
|
+
};
|
|
4830
|
+
}
|
|
4831
|
+
|
|
4832
|
+
constructor(map?: { [key: string]: any }) {
|
|
4833
|
+
super(map);
|
|
4834
|
+
}
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4837
|
+
export class HotelQrBindRequest extends $tea.Model {
|
|
4838
|
+
clientId?: string;
|
|
4839
|
+
code?: string;
|
|
4840
|
+
extInfo?: string;
|
|
4841
|
+
hotelId?: string;
|
|
4842
|
+
roomNo?: string;
|
|
4843
|
+
static names(): { [key: string]: string } {
|
|
4844
|
+
return {
|
|
4845
|
+
clientId: 'ClientId',
|
|
4846
|
+
code: 'Code',
|
|
4847
|
+
extInfo: 'ExtInfo',
|
|
4848
|
+
hotelId: 'HotelId',
|
|
4849
|
+
roomNo: 'RoomNo',
|
|
4850
|
+
};
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
static types(): { [key: string]: any } {
|
|
4854
|
+
return {
|
|
4855
|
+
clientId: 'string',
|
|
4856
|
+
code: 'string',
|
|
4857
|
+
extInfo: 'string',
|
|
4858
|
+
hotelId: 'string',
|
|
4859
|
+
roomNo: 'string',
|
|
4860
|
+
};
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4863
|
+
constructor(map?: { [key: string]: any }) {
|
|
4864
|
+
super(map);
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
export class HotelQrBindResponseBody extends $tea.Model {
|
|
4869
|
+
message?: string;
|
|
4870
|
+
requestId?: string;
|
|
4871
|
+
result?: HotelQrBindResponseBodyResult;
|
|
4872
|
+
statusCode?: number;
|
|
4873
|
+
static names(): { [key: string]: string } {
|
|
4874
|
+
return {
|
|
4875
|
+
message: 'Message',
|
|
4876
|
+
requestId: 'RequestId',
|
|
4877
|
+
result: 'Result',
|
|
4878
|
+
statusCode: 'StatusCode',
|
|
4879
|
+
};
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
static types(): { [key: string]: any } {
|
|
4883
|
+
return {
|
|
4884
|
+
message: 'string',
|
|
4885
|
+
requestId: 'string',
|
|
4886
|
+
result: HotelQrBindResponseBodyResult,
|
|
4887
|
+
statusCode: 'number',
|
|
4888
|
+
};
|
|
4889
|
+
}
|
|
4890
|
+
|
|
4891
|
+
constructor(map?: { [key: string]: any }) {
|
|
4892
|
+
super(map);
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
export class HotelQrBindResponse extends $tea.Model {
|
|
4897
|
+
headers: { [key: string]: string };
|
|
4898
|
+
statusCode: number;
|
|
4899
|
+
body: HotelQrBindResponseBody;
|
|
4900
|
+
static names(): { [key: string]: string } {
|
|
4901
|
+
return {
|
|
4902
|
+
headers: 'headers',
|
|
4903
|
+
statusCode: 'statusCode',
|
|
4904
|
+
body: 'body',
|
|
4905
|
+
};
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
static types(): { [key: string]: any } {
|
|
4909
|
+
return {
|
|
4910
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4911
|
+
statusCode: 'number',
|
|
4912
|
+
body: HotelQrBindResponseBody,
|
|
4913
|
+
};
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
constructor(map?: { [key: string]: any }) {
|
|
4917
|
+
super(map);
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4812
4921
|
export class ImportHotelConfigHeaders extends $tea.Model {
|
|
4813
4922
|
commonHeaders?: { [key: string]: string };
|
|
4814
4923
|
xAcsAligenieAccessToken?: string;
|
|
@@ -11895,6 +12004,90 @@ export class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model {
|
|
|
11895
12004
|
}
|
|
11896
12005
|
}
|
|
11897
12006
|
|
|
12007
|
+
export class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
|
|
12008
|
+
encodeKey?: string;
|
|
12009
|
+
encodeType?: string;
|
|
12010
|
+
id?: string;
|
|
12011
|
+
idType?: string;
|
|
12012
|
+
organizationId?: string;
|
|
12013
|
+
static names(): { [key: string]: string } {
|
|
12014
|
+
return {
|
|
12015
|
+
encodeKey: 'EncodeKey',
|
|
12016
|
+
encodeType: 'EncodeType',
|
|
12017
|
+
id: 'Id',
|
|
12018
|
+
idType: 'IdType',
|
|
12019
|
+
organizationId: 'OrganizationId',
|
|
12020
|
+
};
|
|
12021
|
+
}
|
|
12022
|
+
|
|
12023
|
+
static types(): { [key: string]: any } {
|
|
12024
|
+
return {
|
|
12025
|
+
encodeKey: 'string',
|
|
12026
|
+
encodeType: 'string',
|
|
12027
|
+
id: 'string',
|
|
12028
|
+
idType: 'string',
|
|
12029
|
+
organizationId: 'string',
|
|
12030
|
+
};
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
constructor(map?: { [key: string]: any }) {
|
|
12034
|
+
super(map);
|
|
12035
|
+
}
|
|
12036
|
+
}
|
|
12037
|
+
|
|
12038
|
+
export class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
|
|
12039
|
+
encodeKey?: string;
|
|
12040
|
+
encodeType?: string;
|
|
12041
|
+
id?: string;
|
|
12042
|
+
idType?: string;
|
|
12043
|
+
organizationId?: string;
|
|
12044
|
+
static names(): { [key: string]: string } {
|
|
12045
|
+
return {
|
|
12046
|
+
encodeKey: 'EncodeKey',
|
|
12047
|
+
encodeType: 'EncodeType',
|
|
12048
|
+
id: 'Id',
|
|
12049
|
+
idType: 'IdType',
|
|
12050
|
+
organizationId: 'OrganizationId',
|
|
12051
|
+
};
|
|
12052
|
+
}
|
|
12053
|
+
|
|
12054
|
+
static types(): { [key: string]: any } {
|
|
12055
|
+
return {
|
|
12056
|
+
encodeKey: 'string',
|
|
12057
|
+
encodeType: 'string',
|
|
12058
|
+
id: 'string',
|
|
12059
|
+
idType: 'string',
|
|
12060
|
+
organizationId: 'string',
|
|
12061
|
+
};
|
|
12062
|
+
}
|
|
12063
|
+
|
|
12064
|
+
constructor(map?: { [key: string]: any }) {
|
|
12065
|
+
super(map);
|
|
12066
|
+
}
|
|
12067
|
+
}
|
|
12068
|
+
|
|
12069
|
+
export class HotelQrBindResponseBodyResult extends $tea.Model {
|
|
12070
|
+
openDeviceInfo?: HotelQrBindResponseBodyResultOpenDeviceInfo;
|
|
12071
|
+
openUserInfo?: HotelQrBindResponseBodyResultOpenUserInfo;
|
|
12072
|
+
static names(): { [key: string]: string } {
|
|
12073
|
+
return {
|
|
12074
|
+
openDeviceInfo: 'OpenDeviceInfo',
|
|
12075
|
+
openUserInfo: 'OpenUserInfo',
|
|
12076
|
+
};
|
|
12077
|
+
}
|
|
12078
|
+
|
|
12079
|
+
static types(): { [key: string]: any } {
|
|
12080
|
+
return {
|
|
12081
|
+
openDeviceInfo: HotelQrBindResponseBodyResultOpenDeviceInfo,
|
|
12082
|
+
openUserInfo: HotelQrBindResponseBodyResultOpenUserInfo,
|
|
12083
|
+
};
|
|
12084
|
+
}
|
|
12085
|
+
|
|
12086
|
+
constructor(map?: { [key: string]: any }) {
|
|
12087
|
+
super(map);
|
|
12088
|
+
}
|
|
12089
|
+
}
|
|
12090
|
+
|
|
11898
12091
|
export class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
|
|
11899
12092
|
corpusList?: string[];
|
|
11900
12093
|
description?: string;
|
|
@@ -16983,6 +17176,66 @@ export default class Client extends OpenApi {
|
|
|
16983
17176
|
return await this.getWelcomeTextAndMusicWithOptions(request, headers, runtime);
|
|
16984
17177
|
}
|
|
16985
17178
|
|
|
17179
|
+
async hotelQrBindWithOptions(request: HotelQrBindRequest, headers: HotelQrBindHeaders, runtime: $Util.RuntimeOptions): Promise<HotelQrBindResponse> {
|
|
17180
|
+
Util.validateModel(request);
|
|
17181
|
+
let body : {[key: string ]: any} = { };
|
|
17182
|
+
if (!Util.isUnset(request.clientId)) {
|
|
17183
|
+
body["ClientId"] = request.clientId;
|
|
17184
|
+
}
|
|
17185
|
+
|
|
17186
|
+
if (!Util.isUnset(request.code)) {
|
|
17187
|
+
body["Code"] = request.code;
|
|
17188
|
+
}
|
|
17189
|
+
|
|
17190
|
+
if (!Util.isUnset(request.extInfo)) {
|
|
17191
|
+
body["ExtInfo"] = request.extInfo;
|
|
17192
|
+
}
|
|
17193
|
+
|
|
17194
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
17195
|
+
body["HotelId"] = request.hotelId;
|
|
17196
|
+
}
|
|
17197
|
+
|
|
17198
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
17199
|
+
body["RoomNo"] = request.roomNo;
|
|
17200
|
+
}
|
|
17201
|
+
|
|
17202
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
17203
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
17204
|
+
realHeaders = headers.commonHeaders;
|
|
17205
|
+
}
|
|
17206
|
+
|
|
17207
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
17208
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
17209
|
+
}
|
|
17210
|
+
|
|
17211
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
17212
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
17213
|
+
}
|
|
17214
|
+
|
|
17215
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17216
|
+
headers: realHeaders,
|
|
17217
|
+
body: OpenApiUtil.parseToMap(body),
|
|
17218
|
+
});
|
|
17219
|
+
let params = new $OpenApi.Params({
|
|
17220
|
+
action: "HotelQrBind",
|
|
17221
|
+
version: "ip_1.0",
|
|
17222
|
+
protocol: "HTTPS",
|
|
17223
|
+
pathname: `/v1.0/ip/hotelQrBind`,
|
|
17224
|
+
method: "POST",
|
|
17225
|
+
authType: "AK",
|
|
17226
|
+
style: "ROA",
|
|
17227
|
+
reqBodyType: "formData",
|
|
17228
|
+
bodyType: "json",
|
|
17229
|
+
});
|
|
17230
|
+
return $tea.cast<HotelQrBindResponse>(await this.callApi(params, req, runtime), new HotelQrBindResponse({}));
|
|
17231
|
+
}
|
|
17232
|
+
|
|
17233
|
+
async hotelQrBind(request: HotelQrBindRequest): Promise<HotelQrBindResponse> {
|
|
17234
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17235
|
+
let headers = new HotelQrBindHeaders({ });
|
|
17236
|
+
return await this.hotelQrBindWithOptions(request, headers, runtime);
|
|
17237
|
+
}
|
|
17238
|
+
|
|
16986
17239
|
async importHotelConfigWithOptions(tmpReq: ImportHotelConfigRequest, headers: ImportHotelConfigHeaders, runtime: $Util.RuntimeOptions): Promise<ImportHotelConfigResponse> {
|
|
16987
17240
|
Util.validateModel(tmpReq);
|
|
16988
17241
|
let request = new ImportHotelConfigShrinkRequest({ });
|