@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8121,6 +8121,112 @@ export class PushHotelMessageResponse extends $tea.Model {
|
|
|
8121
8121
|
}
|
|
8122
8122
|
}
|
|
8123
8123
|
|
|
8124
|
+
export class PushWelcomeHeaders extends $tea.Model {
|
|
8125
|
+
commonHeaders?: { [key: string]: string };
|
|
8126
|
+
xAcsAligenieAccessToken?: string;
|
|
8127
|
+
authorization?: string;
|
|
8128
|
+
static names(): { [key: string]: string } {
|
|
8129
|
+
return {
|
|
8130
|
+
commonHeaders: 'commonHeaders',
|
|
8131
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
8132
|
+
authorization: 'Authorization',
|
|
8133
|
+
};
|
|
8134
|
+
}
|
|
8135
|
+
|
|
8136
|
+
static types(): { [key: string]: any } {
|
|
8137
|
+
return {
|
|
8138
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8139
|
+
xAcsAligenieAccessToken: 'string',
|
|
8140
|
+
authorization: 'string',
|
|
8141
|
+
};
|
|
8142
|
+
}
|
|
8143
|
+
|
|
8144
|
+
constructor(map?: { [key: string]: any }) {
|
|
8145
|
+
super(map);
|
|
8146
|
+
}
|
|
8147
|
+
}
|
|
8148
|
+
|
|
8149
|
+
export class PushWelcomeRequest extends $tea.Model {
|
|
8150
|
+
hotelId?: string;
|
|
8151
|
+
roomNo?: string;
|
|
8152
|
+
welcomeMusicUrl?: string;
|
|
8153
|
+
welcomeText?: string;
|
|
8154
|
+
static names(): { [key: string]: string } {
|
|
8155
|
+
return {
|
|
8156
|
+
hotelId: 'HotelId',
|
|
8157
|
+
roomNo: 'RoomNo',
|
|
8158
|
+
welcomeMusicUrl: 'WelcomeMusicUrl',
|
|
8159
|
+
welcomeText: 'WelcomeText',
|
|
8160
|
+
};
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
static types(): { [key: string]: any } {
|
|
8164
|
+
return {
|
|
8165
|
+
hotelId: 'string',
|
|
8166
|
+
roomNo: 'string',
|
|
8167
|
+
welcomeMusicUrl: 'string',
|
|
8168
|
+
welcomeText: 'string',
|
|
8169
|
+
};
|
|
8170
|
+
}
|
|
8171
|
+
|
|
8172
|
+
constructor(map?: { [key: string]: any }) {
|
|
8173
|
+
super(map);
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8176
|
+
|
|
8177
|
+
export class PushWelcomeResponseBody extends $tea.Model {
|
|
8178
|
+
message?: string;
|
|
8179
|
+
requestId?: string;
|
|
8180
|
+
result?: boolean;
|
|
8181
|
+
statusCode?: number;
|
|
8182
|
+
static names(): { [key: string]: string } {
|
|
8183
|
+
return {
|
|
8184
|
+
message: 'Message',
|
|
8185
|
+
requestId: 'RequestId',
|
|
8186
|
+
result: 'Result',
|
|
8187
|
+
statusCode: 'StatusCode',
|
|
8188
|
+
};
|
|
8189
|
+
}
|
|
8190
|
+
|
|
8191
|
+
static types(): { [key: string]: any } {
|
|
8192
|
+
return {
|
|
8193
|
+
message: 'string',
|
|
8194
|
+
requestId: 'string',
|
|
8195
|
+
result: 'boolean',
|
|
8196
|
+
statusCode: 'number',
|
|
8197
|
+
};
|
|
8198
|
+
}
|
|
8199
|
+
|
|
8200
|
+
constructor(map?: { [key: string]: any }) {
|
|
8201
|
+
super(map);
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
|
|
8205
|
+
export class PushWelcomeResponse extends $tea.Model {
|
|
8206
|
+
headers: { [key: string]: string };
|
|
8207
|
+
statusCode: number;
|
|
8208
|
+
body: PushWelcomeResponseBody;
|
|
8209
|
+
static names(): { [key: string]: string } {
|
|
8210
|
+
return {
|
|
8211
|
+
headers: 'headers',
|
|
8212
|
+
statusCode: 'statusCode',
|
|
8213
|
+
body: 'body',
|
|
8214
|
+
};
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
static types(): { [key: string]: any } {
|
|
8218
|
+
return {
|
|
8219
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8220
|
+
statusCode: 'number',
|
|
8221
|
+
body: PushWelcomeResponseBody,
|
|
8222
|
+
};
|
|
8223
|
+
}
|
|
8224
|
+
|
|
8225
|
+
constructor(map?: { [key: string]: any }) {
|
|
8226
|
+
super(map);
|
|
8227
|
+
}
|
|
8228
|
+
}
|
|
8229
|
+
|
|
8124
8230
|
export class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
8125
8231
|
commonHeaders?: { [key: string]: string };
|
|
8126
8232
|
xAcsAligenieAccessToken?: string;
|
|
@@ -9225,12 +9331,14 @@ export class SubmitHotelOrderResponseBody extends $tea.Model {
|
|
|
9225
9331
|
message?: string;
|
|
9226
9332
|
requestId?: string;
|
|
9227
9333
|
result?: string;
|
|
9334
|
+
statusCode?: number;
|
|
9228
9335
|
static names(): { [key: string]: string } {
|
|
9229
9336
|
return {
|
|
9230
9337
|
code: 'Code',
|
|
9231
9338
|
message: 'Message',
|
|
9232
9339
|
requestId: 'RequestId',
|
|
9233
9340
|
result: 'Result',
|
|
9341
|
+
statusCode: 'StatusCode',
|
|
9234
9342
|
};
|
|
9235
9343
|
}
|
|
9236
9344
|
|
|
@@ -9240,6 +9348,7 @@ export class SubmitHotelOrderResponseBody extends $tea.Model {
|
|
|
9240
9348
|
message: 'string',
|
|
9241
9349
|
requestId: 'string',
|
|
9242
9350
|
result: 'string',
|
|
9351
|
+
statusCode: 'number',
|
|
9243
9352
|
};
|
|
9244
9353
|
}
|
|
9245
9354
|
|
|
@@ -12139,12 +12248,14 @@ export class ImportHotelConfigRequestImportHotelConfig extends $tea.Model {
|
|
|
12139
12248
|
}
|
|
12140
12249
|
|
|
12141
12250
|
export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
12251
|
+
aliasList?: string[];
|
|
12142
12252
|
category?: string;
|
|
12143
12253
|
deviceIndex?: number;
|
|
12144
12254
|
deviceName?: string;
|
|
12145
12255
|
location?: string;
|
|
12146
12256
|
static names(): { [key: string]: string } {
|
|
12147
12257
|
return {
|
|
12258
|
+
aliasList: 'AliasList',
|
|
12148
12259
|
category: 'Category',
|
|
12149
12260
|
deviceIndex: 'DeviceIndex',
|
|
12150
12261
|
deviceName: 'DeviceName',
|
|
@@ -12154,6 +12265,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitch
|
|
|
12154
12265
|
|
|
12155
12266
|
static types(): { [key: string]: any } {
|
|
12156
12267
|
return {
|
|
12268
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
12157
12269
|
category: 'string',
|
|
12158
12270
|
deviceIndex: 'number',
|
|
12159
12271
|
deviceName: 'string',
|
|
@@ -12186,6 +12298,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevicesMultiKeySwitch
|
|
|
12186
12298
|
}
|
|
12187
12299
|
|
|
12188
12300
|
export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.Model {
|
|
12301
|
+
aliasList?: string[];
|
|
12189
12302
|
brand?: string;
|
|
12190
12303
|
city?: string;
|
|
12191
12304
|
connectType?: string;
|
|
@@ -12202,6 +12315,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
|
|
|
12202
12315
|
serviceProvider?: string;
|
|
12203
12316
|
static names(): { [key: string]: string } {
|
|
12204
12317
|
return {
|
|
12318
|
+
aliasList: 'AliasList',
|
|
12205
12319
|
brand: 'Brand',
|
|
12206
12320
|
city: 'City',
|
|
12207
12321
|
connectType: 'ConnectType',
|
|
@@ -12221,6 +12335,7 @@ export class ImportRoomControlDevicesRequestLocationDevicesDevices extends $tea.
|
|
|
12221
12335
|
|
|
12222
12336
|
static types(): { [key: string]: any } {
|
|
12223
12337
|
return {
|
|
12338
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
12224
12339
|
brand: 'string',
|
|
12225
12340
|
city: 'string',
|
|
12226
12341
|
connectType: 'string',
|
|
@@ -13258,6 +13373,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
|
|
|
13258
13373
|
id?: string;
|
|
13259
13374
|
name?: string;
|
|
13260
13375
|
price?: number;
|
|
13376
|
+
residueLimit?: number;
|
|
13261
13377
|
status?: string;
|
|
13262
13378
|
type?: string;
|
|
13263
13379
|
static names(): { [key: string]: string } {
|
|
@@ -13267,6 +13383,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
|
|
|
13267
13383
|
id: 'Id',
|
|
13268
13384
|
name: 'Name',
|
|
13269
13385
|
price: 'Price',
|
|
13386
|
+
residueLimit: 'ResidueLimit',
|
|
13270
13387
|
status: 'Status',
|
|
13271
13388
|
type: 'Type',
|
|
13272
13389
|
};
|
|
@@ -13279,6 +13396,7 @@ export class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList exte
|
|
|
13279
13396
|
id: 'string',
|
|
13280
13397
|
name: 'string',
|
|
13281
13398
|
price: 'number',
|
|
13399
|
+
residueLimit: 'number',
|
|
13282
13400
|
status: 'string',
|
|
13283
13401
|
type: 'string',
|
|
13284
13402
|
};
|
|
@@ -13415,10 +13533,13 @@ export class ListHotelSceneItemsResponseBodyResultPage extends $tea.Model {
|
|
|
13415
13533
|
}
|
|
13416
13534
|
|
|
13417
13535
|
export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Model {
|
|
13536
|
+
beyondLimitReply?: string;
|
|
13418
13537
|
category?: string;
|
|
13419
13538
|
deliveryMethod?: string;
|
|
13420
13539
|
icon?: string;
|
|
13421
13540
|
id?: number;
|
|
13541
|
+
limitNumber?: number;
|
|
13542
|
+
limitSwitch?: number;
|
|
13422
13543
|
name?: string;
|
|
13423
13544
|
paymentMethod?: string;
|
|
13424
13545
|
price?: number;
|
|
@@ -13428,10 +13549,13 @@ export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Mod
|
|
|
13428
13549
|
updateTime?: number;
|
|
13429
13550
|
static names(): { [key: string]: string } {
|
|
13430
13551
|
return {
|
|
13552
|
+
beyondLimitReply: 'BeyondLimitReply',
|
|
13431
13553
|
category: 'Category',
|
|
13432
13554
|
deliveryMethod: 'DeliveryMethod',
|
|
13433
13555
|
icon: 'Icon',
|
|
13434
13556
|
id: 'Id',
|
|
13557
|
+
limitNumber: 'LimitNumber',
|
|
13558
|
+
limitSwitch: 'LimitSwitch',
|
|
13435
13559
|
name: 'Name',
|
|
13436
13560
|
paymentMethod: 'PaymentMethod',
|
|
13437
13561
|
price: 'Price',
|
|
@@ -13444,10 +13568,13 @@ export class ListHotelSceneItemsResponseBodyResultSceneItemList extends $tea.Mod
|
|
|
13444
13568
|
|
|
13445
13569
|
static types(): { [key: string]: any } {
|
|
13446
13570
|
return {
|
|
13571
|
+
beyondLimitReply: 'string',
|
|
13447
13572
|
category: 'string',
|
|
13448
13573
|
deliveryMethod: 'string',
|
|
13449
13574
|
icon: 'string',
|
|
13450
13575
|
id: 'number',
|
|
13576
|
+
limitNumber: 'number',
|
|
13577
|
+
limitSwitch: 'number',
|
|
13451
13578
|
name: 'string',
|
|
13452
13579
|
paymentMethod: 'string',
|
|
13453
13580
|
price: 'number',
|
|
@@ -14323,6 +14450,7 @@ export class QueryHotelRoomDetailResponseBodyResult extends $tea.Model {
|
|
|
14323
14450
|
}
|
|
14324
14451
|
|
|
14325
14452
|
export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSwitchList extends $tea.Model {
|
|
14453
|
+
aliasList?: string[];
|
|
14326
14454
|
category?: string;
|
|
14327
14455
|
deviceIndex?: number;
|
|
14328
14456
|
deviceName?: string;
|
|
@@ -14331,6 +14459,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSw
|
|
|
14331
14459
|
location?: string;
|
|
14332
14460
|
static names(): { [key: string]: string } {
|
|
14333
14461
|
return {
|
|
14462
|
+
aliasList: 'AliasList',
|
|
14334
14463
|
category: 'Category',
|
|
14335
14464
|
deviceIndex: 'DeviceIndex',
|
|
14336
14465
|
deviceName: 'DeviceName',
|
|
@@ -14342,6 +14471,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExtSw
|
|
|
14342
14471
|
|
|
14343
14472
|
static types(): { [key: string]: any } {
|
|
14344
14473
|
return {
|
|
14474
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
14345
14475
|
category: 'string',
|
|
14346
14476
|
deviceIndex: 'number',
|
|
14347
14477
|
deviceName: 'string',
|
|
@@ -14376,6 +14506,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevicesMultiKeySwitchExt e
|
|
|
14376
14506
|
}
|
|
14377
14507
|
|
|
14378
14508
|
export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model {
|
|
14509
|
+
aliasList?: string[];
|
|
14379
14510
|
connectType?: string;
|
|
14380
14511
|
DN?: string;
|
|
14381
14512
|
deviceName?: string;
|
|
@@ -14386,6 +14517,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model
|
|
|
14386
14517
|
PK?: string;
|
|
14387
14518
|
static names(): { [key: string]: string } {
|
|
14388
14519
|
return {
|
|
14520
|
+
aliasList: 'AliasList',
|
|
14389
14521
|
connectType: 'ConnectType',
|
|
14390
14522
|
DN: 'DN',
|
|
14391
14523
|
deviceName: 'DeviceName',
|
|
@@ -14399,6 +14531,7 @@ export class QueryRoomControlDevicesResponseBodyResultDevices extends $tea.Model
|
|
|
14399
14531
|
|
|
14400
14532
|
static types(): { [key: string]: any } {
|
|
14401
14533
|
return {
|
|
14534
|
+
aliasList: { 'type': 'array', 'itemType': 'string' },
|
|
14402
14535
|
connectType: 'string',
|
|
14403
14536
|
DN: 'string',
|
|
14404
14537
|
deviceName: 'string',
|
|
@@ -14842,10 +14975,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList extends
|
|
|
14842
14975
|
}
|
|
14843
14976
|
|
|
14844
14977
|
export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
14978
|
+
beyondLimitReply?: string;
|
|
14845
14979
|
deliveryMethod?: string;
|
|
14846
14980
|
dialogueList?: UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList[];
|
|
14847
14981
|
icon?: string;
|
|
14848
14982
|
id?: number;
|
|
14983
|
+
limitNumber?: number;
|
|
14984
|
+
limitSwitch?: number;
|
|
14849
14985
|
name?: string;
|
|
14850
14986
|
paymentMethod?: string;
|
|
14851
14987
|
price?: number;
|
|
@@ -14853,10 +14989,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
|
14853
14989
|
status?: string;
|
|
14854
14990
|
static names(): { [key: string]: string } {
|
|
14855
14991
|
return {
|
|
14992
|
+
beyondLimitReply: 'BeyondLimitReply',
|
|
14856
14993
|
deliveryMethod: 'DeliveryMethod',
|
|
14857
14994
|
dialogueList: 'DialogueList',
|
|
14858
14995
|
icon: 'Icon',
|
|
14859
14996
|
id: 'Id',
|
|
14997
|
+
limitNumber: 'LimitNumber',
|
|
14998
|
+
limitSwitch: 'LimitSwitch',
|
|
14860
14999
|
name: 'Name',
|
|
14861
15000
|
paymentMethod: 'PaymentMethod',
|
|
14862
15001
|
price: 'Price',
|
|
@@ -14867,10 +15006,13 @@ export class UpdateHotelSceneItemRequestUpdateHotelSceneReq extends $tea.Model {
|
|
|
14867
15006
|
|
|
14868
15007
|
static types(): { [key: string]: any } {
|
|
14869
15008
|
return {
|
|
15009
|
+
beyondLimitReply: 'string',
|
|
14870
15010
|
deliveryMethod: 'string',
|
|
14871
15011
|
dialogueList: { 'type': 'array', 'itemType': UpdateHotelSceneItemRequestUpdateHotelSceneReqDialogueList },
|
|
14872
15012
|
icon: 'string',
|
|
14873
15013
|
id: 'number',
|
|
15014
|
+
limitNumber: 'number',
|
|
15015
|
+
limitSwitch: 'number',
|
|
14874
15016
|
name: 'string',
|
|
14875
15017
|
paymentMethod: 'string',
|
|
14876
15018
|
price: 'number',
|
|
@@ -18723,6 +18865,62 @@ export default class Client extends OpenApi {
|
|
|
18723
18865
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
18724
18866
|
}
|
|
18725
18867
|
|
|
18868
|
+
async pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse> {
|
|
18869
|
+
Util.validateModel(request);
|
|
18870
|
+
let body : {[key: string ]: any} = { };
|
|
18871
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
18872
|
+
body["HotelId"] = request.hotelId;
|
|
18873
|
+
}
|
|
18874
|
+
|
|
18875
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
18876
|
+
body["RoomNo"] = request.roomNo;
|
|
18877
|
+
}
|
|
18878
|
+
|
|
18879
|
+
if (!Util.isUnset(request.welcomeMusicUrl)) {
|
|
18880
|
+
body["WelcomeMusicUrl"] = request.welcomeMusicUrl;
|
|
18881
|
+
}
|
|
18882
|
+
|
|
18883
|
+
if (!Util.isUnset(request.welcomeText)) {
|
|
18884
|
+
body["WelcomeText"] = request.welcomeText;
|
|
18885
|
+
}
|
|
18886
|
+
|
|
18887
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
18888
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
18889
|
+
realHeaders = headers.commonHeaders;
|
|
18890
|
+
}
|
|
18891
|
+
|
|
18892
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
18893
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
18894
|
+
}
|
|
18895
|
+
|
|
18896
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
18897
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
18898
|
+
}
|
|
18899
|
+
|
|
18900
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
18901
|
+
headers: realHeaders,
|
|
18902
|
+
body: OpenApiUtil.parseToMap(body),
|
|
18903
|
+
});
|
|
18904
|
+
let params = new $OpenApi.Params({
|
|
18905
|
+
action: "PushWelcome",
|
|
18906
|
+
version: "ip_1.0",
|
|
18907
|
+
protocol: "HTTPS",
|
|
18908
|
+
pathname: `/v1.0/ip/pushWelcome`,
|
|
18909
|
+
method: "POST",
|
|
18910
|
+
authType: "AK",
|
|
18911
|
+
style: "ROA",
|
|
18912
|
+
reqBodyType: "formData",
|
|
18913
|
+
bodyType: "json",
|
|
18914
|
+
});
|
|
18915
|
+
return $tea.cast<PushWelcomeResponse>(await this.callApi(params, req, runtime), new PushWelcomeResponse({}));
|
|
18916
|
+
}
|
|
18917
|
+
|
|
18918
|
+
async pushWelcome(request: PushWelcomeRequest): Promise<PushWelcomeResponse> {
|
|
18919
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18920
|
+
let headers = new PushWelcomeHeaders({ });
|
|
18921
|
+
return await this.pushWelcomeWithOptions(request, headers, runtime);
|
|
18922
|
+
}
|
|
18923
|
+
|
|
18726
18924
|
async pushWelcomeTextAndMusicWithOptions(tmpReq: PushWelcomeTextAndMusicRequest, headers: PushWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeTextAndMusicResponse> {
|
|
18727
18925
|
Util.validateModel(tmpReq);
|
|
18728
18926
|
let request = new PushWelcomeTextAndMusicShrinkRequest({ });
|