@alicloud/aligenieip_1_0 2.5.0 → 2.6.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 +92 -0
- package/dist/client.js +173 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +214 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8292,6 +8292,137 @@ export class PushHotelMessageResponse extends $tea.Model {
|
|
|
8292
8292
|
}
|
|
8293
8293
|
}
|
|
8294
8294
|
|
|
8295
|
+
export class PushVoiceBoxCommandsHeaders extends $tea.Model {
|
|
8296
|
+
commonHeaders?: { [key: string]: string };
|
|
8297
|
+
xAcsAligenieAccessToken?: string;
|
|
8298
|
+
authorization?: string;
|
|
8299
|
+
static names(): { [key: string]: string } {
|
|
8300
|
+
return {
|
|
8301
|
+
commonHeaders: 'commonHeaders',
|
|
8302
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
8303
|
+
authorization: 'Authorization',
|
|
8304
|
+
};
|
|
8305
|
+
}
|
|
8306
|
+
|
|
8307
|
+
static types(): { [key: string]: any } {
|
|
8308
|
+
return {
|
|
8309
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8310
|
+
xAcsAligenieAccessToken: 'string',
|
|
8311
|
+
authorization: 'string',
|
|
8312
|
+
};
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
constructor(map?: { [key: string]: any }) {
|
|
8316
|
+
super(map);
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8319
|
+
|
|
8320
|
+
export class PushVoiceBoxCommandsRequest extends $tea.Model {
|
|
8321
|
+
commands?: PushVoiceBoxCommandsRequestCommands[];
|
|
8322
|
+
hotelId?: string;
|
|
8323
|
+
roomNo?: string;
|
|
8324
|
+
static names(): { [key: string]: string } {
|
|
8325
|
+
return {
|
|
8326
|
+
commands: 'Commands',
|
|
8327
|
+
hotelId: 'HotelId',
|
|
8328
|
+
roomNo: 'RoomNo',
|
|
8329
|
+
};
|
|
8330
|
+
}
|
|
8331
|
+
|
|
8332
|
+
static types(): { [key: string]: any } {
|
|
8333
|
+
return {
|
|
8334
|
+
commands: { 'type': 'array', 'itemType': PushVoiceBoxCommandsRequestCommands },
|
|
8335
|
+
hotelId: 'string',
|
|
8336
|
+
roomNo: 'string',
|
|
8337
|
+
};
|
|
8338
|
+
}
|
|
8339
|
+
|
|
8340
|
+
constructor(map?: { [key: string]: any }) {
|
|
8341
|
+
super(map);
|
|
8342
|
+
}
|
|
8343
|
+
}
|
|
8344
|
+
|
|
8345
|
+
export class PushVoiceBoxCommandsShrinkRequest extends $tea.Model {
|
|
8346
|
+
commandsShrink?: string;
|
|
8347
|
+
hotelId?: string;
|
|
8348
|
+
roomNo?: string;
|
|
8349
|
+
static names(): { [key: string]: string } {
|
|
8350
|
+
return {
|
|
8351
|
+
commandsShrink: 'Commands',
|
|
8352
|
+
hotelId: 'HotelId',
|
|
8353
|
+
roomNo: 'RoomNo',
|
|
8354
|
+
};
|
|
8355
|
+
}
|
|
8356
|
+
|
|
8357
|
+
static types(): { [key: string]: any } {
|
|
8358
|
+
return {
|
|
8359
|
+
commandsShrink: 'string',
|
|
8360
|
+
hotelId: 'string',
|
|
8361
|
+
roomNo: 'string',
|
|
8362
|
+
};
|
|
8363
|
+
}
|
|
8364
|
+
|
|
8365
|
+
constructor(map?: { [key: string]: any }) {
|
|
8366
|
+
super(map);
|
|
8367
|
+
}
|
|
8368
|
+
}
|
|
8369
|
+
|
|
8370
|
+
export class PushVoiceBoxCommandsResponseBody extends $tea.Model {
|
|
8371
|
+
code?: number;
|
|
8372
|
+
message?: string;
|
|
8373
|
+
requestId?: string;
|
|
8374
|
+
result?: boolean;
|
|
8375
|
+
statusCode?: number;
|
|
8376
|
+
static names(): { [key: string]: string } {
|
|
8377
|
+
return {
|
|
8378
|
+
code: 'Code',
|
|
8379
|
+
message: 'Message',
|
|
8380
|
+
requestId: 'RequestId',
|
|
8381
|
+
result: 'Result',
|
|
8382
|
+
statusCode: 'StatusCode',
|
|
8383
|
+
};
|
|
8384
|
+
}
|
|
8385
|
+
|
|
8386
|
+
static types(): { [key: string]: any } {
|
|
8387
|
+
return {
|
|
8388
|
+
code: 'number',
|
|
8389
|
+
message: 'string',
|
|
8390
|
+
requestId: 'string',
|
|
8391
|
+
result: 'boolean',
|
|
8392
|
+
statusCode: 'number',
|
|
8393
|
+
};
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8396
|
+
constructor(map?: { [key: string]: any }) {
|
|
8397
|
+
super(map);
|
|
8398
|
+
}
|
|
8399
|
+
}
|
|
8400
|
+
|
|
8401
|
+
export class PushVoiceBoxCommandsResponse extends $tea.Model {
|
|
8402
|
+
headers: { [key: string]: string };
|
|
8403
|
+
statusCode: number;
|
|
8404
|
+
body: PushVoiceBoxCommandsResponseBody;
|
|
8405
|
+
static names(): { [key: string]: string } {
|
|
8406
|
+
return {
|
|
8407
|
+
headers: 'headers',
|
|
8408
|
+
statusCode: 'statusCode',
|
|
8409
|
+
body: 'body',
|
|
8410
|
+
};
|
|
8411
|
+
}
|
|
8412
|
+
|
|
8413
|
+
static types(): { [key: string]: any } {
|
|
8414
|
+
return {
|
|
8415
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8416
|
+
statusCode: 'number',
|
|
8417
|
+
body: PushVoiceBoxCommandsResponseBody,
|
|
8418
|
+
};
|
|
8419
|
+
}
|
|
8420
|
+
|
|
8421
|
+
constructor(map?: { [key: string]: any }) {
|
|
8422
|
+
super(map);
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
|
|
8295
8426
|
export class PushWelcomeHeaders extends $tea.Model {
|
|
8296
8427
|
commonHeaders?: { [key: string]: string };
|
|
8297
8428
|
xAcsAligenieAccessToken?: string;
|
|
@@ -14388,6 +14519,31 @@ export class PushHotelMessageRequestPushHotelMessageReq extends $tea.Model {
|
|
|
14388
14519
|
}
|
|
14389
14520
|
}
|
|
14390
14521
|
|
|
14522
|
+
export class PushVoiceBoxCommandsRequestCommands extends $tea.Model {
|
|
14523
|
+
commandDomain?: string;
|
|
14524
|
+
commandName?: string;
|
|
14525
|
+
payload?: string;
|
|
14526
|
+
static names(): { [key: string]: string } {
|
|
14527
|
+
return {
|
|
14528
|
+
commandDomain: 'CommandDomain',
|
|
14529
|
+
commandName: 'CommandName',
|
|
14530
|
+
payload: 'Payload',
|
|
14531
|
+
};
|
|
14532
|
+
}
|
|
14533
|
+
|
|
14534
|
+
static types(): { [key: string]: any } {
|
|
14535
|
+
return {
|
|
14536
|
+
commandDomain: 'string',
|
|
14537
|
+
commandName: 'string',
|
|
14538
|
+
payload: 'string',
|
|
14539
|
+
};
|
|
14540
|
+
}
|
|
14541
|
+
|
|
14542
|
+
constructor(map?: { [key: string]: any }) {
|
|
14543
|
+
super(map);
|
|
14544
|
+
}
|
|
14545
|
+
}
|
|
14546
|
+
|
|
14391
14547
|
export class QueryDeviceStatusRequestPayloadLocationDevices extends $tea.Model {
|
|
14392
14548
|
deviceNumber?: string;
|
|
14393
14549
|
deviceType?: string;
|
|
@@ -19212,6 +19368,64 @@ export default class Client extends OpenApi {
|
|
|
19212
19368
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
19213
19369
|
}
|
|
19214
19370
|
|
|
19371
|
+
async pushVoiceBoxCommandsWithOptions(tmpReq: PushVoiceBoxCommandsRequest, headers: PushVoiceBoxCommandsHeaders, runtime: $Util.RuntimeOptions): Promise<PushVoiceBoxCommandsResponse> {
|
|
19372
|
+
Util.validateModel(tmpReq);
|
|
19373
|
+
let request = new PushVoiceBoxCommandsShrinkRequest({ });
|
|
19374
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
19375
|
+
if (!Util.isUnset(tmpReq.commands)) {
|
|
19376
|
+
request.commandsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.commands, "Commands", "json");
|
|
19377
|
+
}
|
|
19378
|
+
|
|
19379
|
+
let body : {[key: string ]: any} = { };
|
|
19380
|
+
if (!Util.isUnset(request.commandsShrink)) {
|
|
19381
|
+
body["Commands"] = request.commandsShrink;
|
|
19382
|
+
}
|
|
19383
|
+
|
|
19384
|
+
if (!Util.isUnset(request.hotelId)) {
|
|
19385
|
+
body["HotelId"] = request.hotelId;
|
|
19386
|
+
}
|
|
19387
|
+
|
|
19388
|
+
if (!Util.isUnset(request.roomNo)) {
|
|
19389
|
+
body["RoomNo"] = request.roomNo;
|
|
19390
|
+
}
|
|
19391
|
+
|
|
19392
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
19393
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
19394
|
+
realHeaders = headers.commonHeaders;
|
|
19395
|
+
}
|
|
19396
|
+
|
|
19397
|
+
if (!Util.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
19398
|
+
realHeaders["x-acs-aligenie-access-token"] = Util.toJSONString(headers.xAcsAligenieAccessToken);
|
|
19399
|
+
}
|
|
19400
|
+
|
|
19401
|
+
if (!Util.isUnset(headers.authorization)) {
|
|
19402
|
+
realHeaders["Authorization"] = Util.toJSONString(headers.authorization);
|
|
19403
|
+
}
|
|
19404
|
+
|
|
19405
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19406
|
+
headers: realHeaders,
|
|
19407
|
+
body: OpenApiUtil.parseToMap(body),
|
|
19408
|
+
});
|
|
19409
|
+
let params = new $OpenApi.Params({
|
|
19410
|
+
action: "PushVoiceBoxCommands",
|
|
19411
|
+
version: "ip_1.0",
|
|
19412
|
+
protocol: "HTTPS",
|
|
19413
|
+
pathname: `/v1.0/ip/pushVoiceBoxCommands`,
|
|
19414
|
+
method: "POST",
|
|
19415
|
+
authType: "AK",
|
|
19416
|
+
style: "ROA",
|
|
19417
|
+
reqBodyType: "formData",
|
|
19418
|
+
bodyType: "json",
|
|
19419
|
+
});
|
|
19420
|
+
return $tea.cast<PushVoiceBoxCommandsResponse>(await this.callApi(params, req, runtime), new PushVoiceBoxCommandsResponse({}));
|
|
19421
|
+
}
|
|
19422
|
+
|
|
19423
|
+
async pushVoiceBoxCommands(request: PushVoiceBoxCommandsRequest): Promise<PushVoiceBoxCommandsResponse> {
|
|
19424
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19425
|
+
let headers = new PushVoiceBoxCommandsHeaders({ });
|
|
19426
|
+
return await this.pushVoiceBoxCommandsWithOptions(request, headers, runtime);
|
|
19427
|
+
}
|
|
19428
|
+
|
|
19215
19429
|
async pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse> {
|
|
19216
19430
|
Util.validateModel(request);
|
|
19217
19431
|
let body : {[key: string ]: any} = { };
|