@alicloud/aligenieip_1_0 2.3.1 → 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 +64 -0
- package/dist/client.js +131 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +162 -0
package/dist/client.d.ts
CHANGED
|
@@ -4830,6 +4830,68 @@ export declare class PushHotelMessageResponse extends $tea.Model {
|
|
|
4830
4830
|
[key: string]: any;
|
|
4831
4831
|
});
|
|
4832
4832
|
}
|
|
4833
|
+
export declare class PushWelcomeHeaders extends $tea.Model {
|
|
4834
|
+
commonHeaders?: {
|
|
4835
|
+
[key: string]: string;
|
|
4836
|
+
};
|
|
4837
|
+
xAcsAligenieAccessToken?: string;
|
|
4838
|
+
authorization?: string;
|
|
4839
|
+
static names(): {
|
|
4840
|
+
[key: string]: string;
|
|
4841
|
+
};
|
|
4842
|
+
static types(): {
|
|
4843
|
+
[key: string]: any;
|
|
4844
|
+
};
|
|
4845
|
+
constructor(map?: {
|
|
4846
|
+
[key: string]: any;
|
|
4847
|
+
});
|
|
4848
|
+
}
|
|
4849
|
+
export declare class PushWelcomeRequest extends $tea.Model {
|
|
4850
|
+
hotelId?: string;
|
|
4851
|
+
roomNo?: string;
|
|
4852
|
+
welcomeMusicUrl?: string;
|
|
4853
|
+
welcomeText?: string;
|
|
4854
|
+
static names(): {
|
|
4855
|
+
[key: string]: string;
|
|
4856
|
+
};
|
|
4857
|
+
static types(): {
|
|
4858
|
+
[key: string]: any;
|
|
4859
|
+
};
|
|
4860
|
+
constructor(map?: {
|
|
4861
|
+
[key: string]: any;
|
|
4862
|
+
});
|
|
4863
|
+
}
|
|
4864
|
+
export declare class PushWelcomeResponseBody extends $tea.Model {
|
|
4865
|
+
message?: string;
|
|
4866
|
+
requestId?: string;
|
|
4867
|
+
result?: boolean;
|
|
4868
|
+
statusCode?: number;
|
|
4869
|
+
static names(): {
|
|
4870
|
+
[key: string]: string;
|
|
4871
|
+
};
|
|
4872
|
+
static types(): {
|
|
4873
|
+
[key: string]: any;
|
|
4874
|
+
};
|
|
4875
|
+
constructor(map?: {
|
|
4876
|
+
[key: string]: any;
|
|
4877
|
+
});
|
|
4878
|
+
}
|
|
4879
|
+
export declare class PushWelcomeResponse extends $tea.Model {
|
|
4880
|
+
headers: {
|
|
4881
|
+
[key: string]: string;
|
|
4882
|
+
};
|
|
4883
|
+
statusCode: number;
|
|
4884
|
+
body: PushWelcomeResponseBody;
|
|
4885
|
+
static names(): {
|
|
4886
|
+
[key: string]: string;
|
|
4887
|
+
};
|
|
4888
|
+
static types(): {
|
|
4889
|
+
[key: string]: any;
|
|
4890
|
+
};
|
|
4891
|
+
constructor(map?: {
|
|
4892
|
+
[key: string]: any;
|
|
4893
|
+
});
|
|
4894
|
+
}
|
|
4833
4895
|
export declare class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
4834
4896
|
commonHeaders?: {
|
|
4835
4897
|
[key: string]: string;
|
|
@@ -8713,6 +8775,8 @@ export default class Client extends OpenApi {
|
|
|
8713
8775
|
pageGetHotelRoomDevices(request: PageGetHotelRoomDevicesRequest): Promise<PageGetHotelRoomDevicesResponse>;
|
|
8714
8776
|
pushHotelMessageWithOptions(tmpReq: PushHotelMessageRequest, headers: PushHotelMessageHeaders, runtime: $Util.RuntimeOptions): Promise<PushHotelMessageResponse>;
|
|
8715
8777
|
pushHotelMessage(request: PushHotelMessageRequest): Promise<PushHotelMessageResponse>;
|
|
8778
|
+
pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse>;
|
|
8779
|
+
pushWelcome(request: PushWelcomeRequest): Promise<PushWelcomeResponse>;
|
|
8716
8780
|
pushWelcomeTextAndMusicWithOptions(tmpReq: PushWelcomeTextAndMusicRequest, headers: PushWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeTextAndMusicResponse>;
|
|
8717
8781
|
pushWelcomeTextAndMusic(request: PushWelcomeTextAndMusicRequest): Promise<PushWelcomeTextAndMusicResponse>;
|
|
8718
8782
|
queryDeviceStatusWithOptions(tmpReq: QueryDeviceStatusRequest, headers: QueryDeviceStatusHeaders, runtime: $Util.RuntimeOptions): Promise<QueryDeviceStatusResponse>;
|
package/dist/client.js
CHANGED
|
@@ -6491,6 +6491,90 @@ class PushHotelMessageResponse extends $tea.Model {
|
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
6493
|
exports.PushHotelMessageResponse = PushHotelMessageResponse;
|
|
6494
|
+
class PushWelcomeHeaders extends $tea.Model {
|
|
6495
|
+
constructor(map) {
|
|
6496
|
+
super(map);
|
|
6497
|
+
}
|
|
6498
|
+
static names() {
|
|
6499
|
+
return {
|
|
6500
|
+
commonHeaders: 'commonHeaders',
|
|
6501
|
+
xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
|
|
6502
|
+
authorization: 'Authorization',
|
|
6503
|
+
};
|
|
6504
|
+
}
|
|
6505
|
+
static types() {
|
|
6506
|
+
return {
|
|
6507
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6508
|
+
xAcsAligenieAccessToken: 'string',
|
|
6509
|
+
authorization: 'string',
|
|
6510
|
+
};
|
|
6511
|
+
}
|
|
6512
|
+
}
|
|
6513
|
+
exports.PushWelcomeHeaders = PushWelcomeHeaders;
|
|
6514
|
+
class PushWelcomeRequest extends $tea.Model {
|
|
6515
|
+
constructor(map) {
|
|
6516
|
+
super(map);
|
|
6517
|
+
}
|
|
6518
|
+
static names() {
|
|
6519
|
+
return {
|
|
6520
|
+
hotelId: 'HotelId',
|
|
6521
|
+
roomNo: 'RoomNo',
|
|
6522
|
+
welcomeMusicUrl: 'WelcomeMusicUrl',
|
|
6523
|
+
welcomeText: 'WelcomeText',
|
|
6524
|
+
};
|
|
6525
|
+
}
|
|
6526
|
+
static types() {
|
|
6527
|
+
return {
|
|
6528
|
+
hotelId: 'string',
|
|
6529
|
+
roomNo: 'string',
|
|
6530
|
+
welcomeMusicUrl: 'string',
|
|
6531
|
+
welcomeText: 'string',
|
|
6532
|
+
};
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6535
|
+
exports.PushWelcomeRequest = PushWelcomeRequest;
|
|
6536
|
+
class PushWelcomeResponseBody extends $tea.Model {
|
|
6537
|
+
constructor(map) {
|
|
6538
|
+
super(map);
|
|
6539
|
+
}
|
|
6540
|
+
static names() {
|
|
6541
|
+
return {
|
|
6542
|
+
message: 'Message',
|
|
6543
|
+
requestId: 'RequestId',
|
|
6544
|
+
result: 'Result',
|
|
6545
|
+
statusCode: 'StatusCode',
|
|
6546
|
+
};
|
|
6547
|
+
}
|
|
6548
|
+
static types() {
|
|
6549
|
+
return {
|
|
6550
|
+
message: 'string',
|
|
6551
|
+
requestId: 'string',
|
|
6552
|
+
result: 'boolean',
|
|
6553
|
+
statusCode: 'number',
|
|
6554
|
+
};
|
|
6555
|
+
}
|
|
6556
|
+
}
|
|
6557
|
+
exports.PushWelcomeResponseBody = PushWelcomeResponseBody;
|
|
6558
|
+
class PushWelcomeResponse extends $tea.Model {
|
|
6559
|
+
constructor(map) {
|
|
6560
|
+
super(map);
|
|
6561
|
+
}
|
|
6562
|
+
static names() {
|
|
6563
|
+
return {
|
|
6564
|
+
headers: 'headers',
|
|
6565
|
+
statusCode: 'statusCode',
|
|
6566
|
+
body: 'body',
|
|
6567
|
+
};
|
|
6568
|
+
}
|
|
6569
|
+
static types() {
|
|
6570
|
+
return {
|
|
6571
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6572
|
+
statusCode: 'number',
|
|
6573
|
+
body: PushWelcomeResponseBody,
|
|
6574
|
+
};
|
|
6575
|
+
}
|
|
6576
|
+
}
|
|
6577
|
+
exports.PushWelcomeResponse = PushWelcomeResponse;
|
|
6494
6578
|
class PushWelcomeTextAndMusicHeaders extends $tea.Model {
|
|
6495
6579
|
constructor(map) {
|
|
6496
6580
|
super(map);
|
|
@@ -15070,6 +15154,53 @@ class Client extends openapi_client_1.default {
|
|
|
15070
15154
|
let headers = new PushHotelMessageHeaders({});
|
|
15071
15155
|
return await this.pushHotelMessageWithOptions(request, headers, runtime);
|
|
15072
15156
|
}
|
|
15157
|
+
async pushWelcomeWithOptions(request, headers, runtime) {
|
|
15158
|
+
tea_util_1.default.validateModel(request);
|
|
15159
|
+
let body = {};
|
|
15160
|
+
if (!tea_util_1.default.isUnset(request.hotelId)) {
|
|
15161
|
+
body["HotelId"] = request.hotelId;
|
|
15162
|
+
}
|
|
15163
|
+
if (!tea_util_1.default.isUnset(request.roomNo)) {
|
|
15164
|
+
body["RoomNo"] = request.roomNo;
|
|
15165
|
+
}
|
|
15166
|
+
if (!tea_util_1.default.isUnset(request.welcomeMusicUrl)) {
|
|
15167
|
+
body["WelcomeMusicUrl"] = request.welcomeMusicUrl;
|
|
15168
|
+
}
|
|
15169
|
+
if (!tea_util_1.default.isUnset(request.welcomeText)) {
|
|
15170
|
+
body["WelcomeText"] = request.welcomeText;
|
|
15171
|
+
}
|
|
15172
|
+
let realHeaders = {};
|
|
15173
|
+
if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
|
|
15174
|
+
realHeaders = headers.commonHeaders;
|
|
15175
|
+
}
|
|
15176
|
+
if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
|
|
15177
|
+
realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
|
|
15178
|
+
}
|
|
15179
|
+
if (!tea_util_1.default.isUnset(headers.authorization)) {
|
|
15180
|
+
realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
|
|
15181
|
+
}
|
|
15182
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15183
|
+
headers: realHeaders,
|
|
15184
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
15185
|
+
});
|
|
15186
|
+
let params = new $OpenApi.Params({
|
|
15187
|
+
action: "PushWelcome",
|
|
15188
|
+
version: "ip_1.0",
|
|
15189
|
+
protocol: "HTTPS",
|
|
15190
|
+
pathname: `/v1.0/ip/pushWelcome`,
|
|
15191
|
+
method: "POST",
|
|
15192
|
+
authType: "AK",
|
|
15193
|
+
style: "ROA",
|
|
15194
|
+
reqBodyType: "formData",
|
|
15195
|
+
bodyType: "json",
|
|
15196
|
+
});
|
|
15197
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PushWelcomeResponse({}));
|
|
15198
|
+
}
|
|
15199
|
+
async pushWelcome(request) {
|
|
15200
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
15201
|
+
let headers = new PushWelcomeHeaders({});
|
|
15202
|
+
return await this.pushWelcomeWithOptions(request, headers, runtime);
|
|
15203
|
+
}
|
|
15073
15204
|
async pushWelcomeTextAndMusicWithOptions(tmpReq, headers, runtime) {
|
|
15074
15205
|
tea_util_1.default.validateModel(tmpReq);
|
|
15075
15206
|
let request = new PushWelcomeTextAndMusicShrinkRequest({});
|