@alicloud/aligenieip_1_0 2.2.0 → 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 +141 -0
- package/dist/client.js +248 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +312 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/aligenieip_1_0",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.4",
|
|
25
|
-
"@alicloud/openapi-util": "^0.3.
|
|
25
|
+
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
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;
|
|
@@ -12128,10 +12321,14 @@ export class ImportRoomGenieScenesRequestSceneListActionsDevice extends $tea.Mod
|
|
|
12128
12321
|
export class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
|
|
12129
12322
|
attributeValues?: ImportRoomGenieScenesRequestSceneListActionsAttributeValues[];
|
|
12130
12323
|
device?: ImportRoomGenieScenesRequestSceneListActionsDevice;
|
|
12324
|
+
reply?: string;
|
|
12325
|
+
type?: number;
|
|
12131
12326
|
static names(): { [key: string]: string } {
|
|
12132
12327
|
return {
|
|
12133
12328
|
attributeValues: 'AttributeValues',
|
|
12134
12329
|
device: 'Device',
|
|
12330
|
+
reply: 'Reply',
|
|
12331
|
+
type: 'Type',
|
|
12135
12332
|
};
|
|
12136
12333
|
}
|
|
12137
12334
|
|
|
@@ -12139,6 +12336,55 @@ export class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
|
|
|
12139
12336
|
return {
|
|
12140
12337
|
attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
|
|
12141
12338
|
device: ImportRoomGenieScenesRequestSceneListActionsDevice,
|
|
12339
|
+
reply: 'string',
|
|
12340
|
+
type: 'number',
|
|
12341
|
+
};
|
|
12342
|
+
}
|
|
12343
|
+
|
|
12344
|
+
constructor(map?: { [key: string]: any }) {
|
|
12345
|
+
super(map);
|
|
12346
|
+
}
|
|
12347
|
+
}
|
|
12348
|
+
|
|
12349
|
+
export class ImportRoomGenieScenesRequestSceneListTriggersAttributeValues extends $tea.Model {
|
|
12350
|
+
attributeName?: string;
|
|
12351
|
+
attributeValue?: string;
|
|
12352
|
+
static names(): { [key: string]: string } {
|
|
12353
|
+
return {
|
|
12354
|
+
attributeName: 'AttributeName',
|
|
12355
|
+
attributeValue: 'AttributeValue',
|
|
12356
|
+
};
|
|
12357
|
+
}
|
|
12358
|
+
|
|
12359
|
+
static types(): { [key: string]: any } {
|
|
12360
|
+
return {
|
|
12361
|
+
attributeName: 'string',
|
|
12362
|
+
attributeValue: 'string',
|
|
12363
|
+
};
|
|
12364
|
+
}
|
|
12365
|
+
|
|
12366
|
+
constructor(map?: { [key: string]: any }) {
|
|
12367
|
+
super(map);
|
|
12368
|
+
}
|
|
12369
|
+
}
|
|
12370
|
+
|
|
12371
|
+
export class ImportRoomGenieScenesRequestSceneListTriggersDevice extends $tea.Model {
|
|
12372
|
+
category?: string;
|
|
12373
|
+
deviceIndex?: string;
|
|
12374
|
+
deviceNumber?: string;
|
|
12375
|
+
static names(): { [key: string]: string } {
|
|
12376
|
+
return {
|
|
12377
|
+
category: 'Category',
|
|
12378
|
+
deviceIndex: 'DeviceIndex',
|
|
12379
|
+
deviceNumber: 'DeviceNumber',
|
|
12380
|
+
};
|
|
12381
|
+
}
|
|
12382
|
+
|
|
12383
|
+
static types(): { [key: string]: any } {
|
|
12384
|
+
return {
|
|
12385
|
+
category: 'string',
|
|
12386
|
+
deviceIndex: 'string',
|
|
12387
|
+
deviceNumber: 'string',
|
|
12142
12388
|
};
|
|
12143
12389
|
}
|
|
12144
12390
|
|
|
@@ -12148,18 +12394,24 @@ export class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
|
|
|
12148
12394
|
}
|
|
12149
12395
|
|
|
12150
12396
|
export class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
|
|
12397
|
+
attributeValues?: ImportRoomGenieScenesRequestSceneListTriggersAttributeValues[];
|
|
12151
12398
|
corpusList?: string[];
|
|
12399
|
+
device?: ImportRoomGenieScenesRequestSceneListTriggersDevice;
|
|
12152
12400
|
type?: number;
|
|
12153
12401
|
static names(): { [key: string]: string } {
|
|
12154
12402
|
return {
|
|
12403
|
+
attributeValues: 'AttributeValues',
|
|
12155
12404
|
corpusList: 'CorpusList',
|
|
12405
|
+
device: 'Device',
|
|
12156
12406
|
type: 'Type',
|
|
12157
12407
|
};
|
|
12158
12408
|
}
|
|
12159
12409
|
|
|
12160
12410
|
static types(): { [key: string]: any } {
|
|
12161
12411
|
return {
|
|
12412
|
+
attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggersAttributeValues },
|
|
12162
12413
|
corpusList: { 'type': 'array', 'itemType': 'string' },
|
|
12414
|
+
device: ImportRoomGenieScenesRequestSceneListTriggersDevice,
|
|
12163
12415
|
type: 'number',
|
|
12164
12416
|
};
|
|
12165
12417
|
}
|
|
@@ -16924,6 +17176,66 @@ export default class Client extends OpenApi {
|
|
|
16924
17176
|
return await this.getWelcomeTextAndMusicWithOptions(request, headers, runtime);
|
|
16925
17177
|
}
|
|
16926
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
|
+
|
|
16927
17239
|
async importHotelConfigWithOptions(tmpReq: ImportHotelConfigRequest, headers: ImportHotelConfigHeaders, runtime: $Util.RuntimeOptions): Promise<ImportHotelConfigResponse> {
|
|
16928
17240
|
Util.validateModel(tmpReq);
|
|
16929
17241
|
let request = new ImportHotelConfigShrinkRequest({ });
|