@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 CHANGED
@@ -2865,6 +2865,69 @@ export declare class GetWelcomeTextAndMusicResponse extends $tea.Model {
2865
2865
  [key: string]: any;
2866
2866
  });
2867
2867
  }
2868
+ export declare class HotelQrBindHeaders extends $tea.Model {
2869
+ commonHeaders?: {
2870
+ [key: string]: string;
2871
+ };
2872
+ xAcsAligenieAccessToken?: string;
2873
+ authorization?: string;
2874
+ static names(): {
2875
+ [key: string]: string;
2876
+ };
2877
+ static types(): {
2878
+ [key: string]: any;
2879
+ };
2880
+ constructor(map?: {
2881
+ [key: string]: any;
2882
+ });
2883
+ }
2884
+ export declare class HotelQrBindRequest extends $tea.Model {
2885
+ clientId?: string;
2886
+ code?: string;
2887
+ extInfo?: string;
2888
+ hotelId?: string;
2889
+ roomNo?: string;
2890
+ static names(): {
2891
+ [key: string]: string;
2892
+ };
2893
+ static types(): {
2894
+ [key: string]: any;
2895
+ };
2896
+ constructor(map?: {
2897
+ [key: string]: any;
2898
+ });
2899
+ }
2900
+ export declare class HotelQrBindResponseBody extends $tea.Model {
2901
+ message?: string;
2902
+ requestId?: string;
2903
+ result?: HotelQrBindResponseBodyResult;
2904
+ statusCode?: number;
2905
+ static names(): {
2906
+ [key: string]: string;
2907
+ };
2908
+ static types(): {
2909
+ [key: string]: any;
2910
+ };
2911
+ constructor(map?: {
2912
+ [key: string]: any;
2913
+ });
2914
+ }
2915
+ export declare class HotelQrBindResponse extends $tea.Model {
2916
+ headers: {
2917
+ [key: string]: string;
2918
+ };
2919
+ statusCode: number;
2920
+ body: HotelQrBindResponseBody;
2921
+ static names(): {
2922
+ [key: string]: string;
2923
+ };
2924
+ static types(): {
2925
+ [key: string]: any;
2926
+ };
2927
+ constructor(map?: {
2928
+ [key: string]: any;
2929
+ });
2930
+ }
2868
2931
  export declare class ImportHotelConfigHeaders extends $tea.Model {
2869
2932
  commonHeaders?: {
2870
2933
  [key: string]: string;
@@ -6949,6 +7012,51 @@ export declare class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model
6949
7012
  [key: string]: any;
6950
7013
  });
6951
7014
  }
7015
+ export declare class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
7016
+ encodeKey?: string;
7017
+ encodeType?: string;
7018
+ id?: string;
7019
+ idType?: string;
7020
+ organizationId?: string;
7021
+ static names(): {
7022
+ [key: string]: string;
7023
+ };
7024
+ static types(): {
7025
+ [key: string]: any;
7026
+ };
7027
+ constructor(map?: {
7028
+ [key: string]: any;
7029
+ });
7030
+ }
7031
+ export declare class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
7032
+ encodeKey?: string;
7033
+ encodeType?: string;
7034
+ id?: string;
7035
+ idType?: string;
7036
+ organizationId?: string;
7037
+ static names(): {
7038
+ [key: string]: string;
7039
+ };
7040
+ static types(): {
7041
+ [key: string]: any;
7042
+ };
7043
+ constructor(map?: {
7044
+ [key: string]: any;
7045
+ });
7046
+ }
7047
+ export declare class HotelQrBindResponseBodyResult extends $tea.Model {
7048
+ openDeviceInfo?: HotelQrBindResponseBodyResultOpenDeviceInfo;
7049
+ openUserInfo?: HotelQrBindResponseBodyResultOpenUserInfo;
7050
+ static names(): {
7051
+ [key: string]: string;
7052
+ };
7053
+ static types(): {
7054
+ [key: string]: any;
7055
+ };
7056
+ constructor(map?: {
7057
+ [key: string]: any;
7058
+ });
7059
+ }
6952
7060
  export declare class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
6953
7061
  corpusList?: string[];
6954
7062
  description?: string;
@@ -7074,6 +7182,35 @@ export declare class ImportRoomGenieScenesRequestSceneListActionsDevice extends
7074
7182
  export declare class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
7075
7183
  attributeValues?: ImportRoomGenieScenesRequestSceneListActionsAttributeValues[];
7076
7184
  device?: ImportRoomGenieScenesRequestSceneListActionsDevice;
7185
+ reply?: string;
7186
+ type?: number;
7187
+ static names(): {
7188
+ [key: string]: string;
7189
+ };
7190
+ static types(): {
7191
+ [key: string]: any;
7192
+ };
7193
+ constructor(map?: {
7194
+ [key: string]: any;
7195
+ });
7196
+ }
7197
+ export declare class ImportRoomGenieScenesRequestSceneListTriggersAttributeValues extends $tea.Model {
7198
+ attributeName?: string;
7199
+ attributeValue?: string;
7200
+ static names(): {
7201
+ [key: string]: string;
7202
+ };
7203
+ static types(): {
7204
+ [key: string]: any;
7205
+ };
7206
+ constructor(map?: {
7207
+ [key: string]: any;
7208
+ });
7209
+ }
7210
+ export declare class ImportRoomGenieScenesRequestSceneListTriggersDevice extends $tea.Model {
7211
+ category?: string;
7212
+ deviceIndex?: string;
7213
+ deviceNumber?: string;
7077
7214
  static names(): {
7078
7215
  [key: string]: string;
7079
7216
  };
@@ -7085,7 +7222,9 @@ export declare class ImportRoomGenieScenesRequestSceneListActions extends $tea.M
7085
7222
  });
7086
7223
  }
7087
7224
  export declare class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
7225
+ attributeValues?: ImportRoomGenieScenesRequestSceneListTriggersAttributeValues[];
7088
7226
  corpusList?: string[];
7227
+ device?: ImportRoomGenieScenesRequestSceneListTriggersDevice;
7089
7228
  type?: number;
7090
7229
  static names(): {
7091
7230
  [key: string]: string;
@@ -8504,6 +8643,8 @@ export default class Client extends OpenApi {
8504
8643
  getUnionId(request: GetUnionIdRequest): Promise<GetUnionIdResponse>;
8505
8644
  getWelcomeTextAndMusicWithOptions(request: GetWelcomeTextAndMusicRequest, headers: GetWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<GetWelcomeTextAndMusicResponse>;
8506
8645
  getWelcomeTextAndMusic(request: GetWelcomeTextAndMusicRequest): Promise<GetWelcomeTextAndMusicResponse>;
8646
+ hotelQrBindWithOptions(request: HotelQrBindRequest, headers: HotelQrBindHeaders, runtime: $Util.RuntimeOptions): Promise<HotelQrBindResponse>;
8647
+ hotelQrBind(request: HotelQrBindRequest): Promise<HotelQrBindResponse>;
8507
8648
  importHotelConfigWithOptions(tmpReq: ImportHotelConfigRequest, headers: ImportHotelConfigHeaders, runtime: $Util.RuntimeOptions): Promise<ImportHotelConfigResponse>;
8508
8649
  importHotelConfig(request: ImportHotelConfigRequest): Promise<ImportHotelConfigResponse>;
8509
8650
  importRoomControlDevicesWithOptions(tmpReq: ImportRoomControlDevicesRequest, headers: ImportRoomControlDevicesHeaders, runtime: $Util.RuntimeOptions): Promise<ImportRoomControlDevicesResponse>;
package/dist/client.js CHANGED
@@ -3853,6 +3853,92 @@ class GetWelcomeTextAndMusicResponse extends $tea.Model {
3853
3853
  }
3854
3854
  }
3855
3855
  exports.GetWelcomeTextAndMusicResponse = GetWelcomeTextAndMusicResponse;
3856
+ class HotelQrBindHeaders extends $tea.Model {
3857
+ constructor(map) {
3858
+ super(map);
3859
+ }
3860
+ static names() {
3861
+ return {
3862
+ commonHeaders: 'commonHeaders',
3863
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
3864
+ authorization: 'Authorization',
3865
+ };
3866
+ }
3867
+ static types() {
3868
+ return {
3869
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3870
+ xAcsAligenieAccessToken: 'string',
3871
+ authorization: 'string',
3872
+ };
3873
+ }
3874
+ }
3875
+ exports.HotelQrBindHeaders = HotelQrBindHeaders;
3876
+ class HotelQrBindRequest extends $tea.Model {
3877
+ constructor(map) {
3878
+ super(map);
3879
+ }
3880
+ static names() {
3881
+ return {
3882
+ clientId: 'ClientId',
3883
+ code: 'Code',
3884
+ extInfo: 'ExtInfo',
3885
+ hotelId: 'HotelId',
3886
+ roomNo: 'RoomNo',
3887
+ };
3888
+ }
3889
+ static types() {
3890
+ return {
3891
+ clientId: 'string',
3892
+ code: 'string',
3893
+ extInfo: 'string',
3894
+ hotelId: 'string',
3895
+ roomNo: 'string',
3896
+ };
3897
+ }
3898
+ }
3899
+ exports.HotelQrBindRequest = HotelQrBindRequest;
3900
+ class HotelQrBindResponseBody extends $tea.Model {
3901
+ constructor(map) {
3902
+ super(map);
3903
+ }
3904
+ static names() {
3905
+ return {
3906
+ message: 'Message',
3907
+ requestId: 'RequestId',
3908
+ result: 'Result',
3909
+ statusCode: 'StatusCode',
3910
+ };
3911
+ }
3912
+ static types() {
3913
+ return {
3914
+ message: 'string',
3915
+ requestId: 'string',
3916
+ result: HotelQrBindResponseBodyResult,
3917
+ statusCode: 'number',
3918
+ };
3919
+ }
3920
+ }
3921
+ exports.HotelQrBindResponseBody = HotelQrBindResponseBody;
3922
+ class HotelQrBindResponse extends $tea.Model {
3923
+ constructor(map) {
3924
+ super(map);
3925
+ }
3926
+ static names() {
3927
+ return {
3928
+ headers: 'headers',
3929
+ statusCode: 'statusCode',
3930
+ body: 'body',
3931
+ };
3932
+ }
3933
+ static types() {
3934
+ return {
3935
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3936
+ statusCode: 'number',
3937
+ body: HotelQrBindResponseBody,
3938
+ };
3939
+ }
3940
+ }
3941
+ exports.HotelQrBindResponse = HotelQrBindResponse;
3856
3942
  class ImportHotelConfigHeaders extends $tea.Model {
3857
3943
  constructor(map) {
3858
3944
  super(map);
@@ -9457,6 +9543,72 @@ class GetWelcomeTextAndMusicResponseBodyResult extends $tea.Model {
9457
9543
  }
9458
9544
  }
9459
9545
  exports.GetWelcomeTextAndMusicResponseBodyResult = GetWelcomeTextAndMusicResponseBodyResult;
9546
+ class HotelQrBindResponseBodyResultOpenDeviceInfo extends $tea.Model {
9547
+ constructor(map) {
9548
+ super(map);
9549
+ }
9550
+ static names() {
9551
+ return {
9552
+ encodeKey: 'EncodeKey',
9553
+ encodeType: 'EncodeType',
9554
+ id: 'Id',
9555
+ idType: 'IdType',
9556
+ organizationId: 'OrganizationId',
9557
+ };
9558
+ }
9559
+ static types() {
9560
+ return {
9561
+ encodeKey: 'string',
9562
+ encodeType: 'string',
9563
+ id: 'string',
9564
+ idType: 'string',
9565
+ organizationId: 'string',
9566
+ };
9567
+ }
9568
+ }
9569
+ exports.HotelQrBindResponseBodyResultOpenDeviceInfo = HotelQrBindResponseBodyResultOpenDeviceInfo;
9570
+ class HotelQrBindResponseBodyResultOpenUserInfo extends $tea.Model {
9571
+ constructor(map) {
9572
+ super(map);
9573
+ }
9574
+ static names() {
9575
+ return {
9576
+ encodeKey: 'EncodeKey',
9577
+ encodeType: 'EncodeType',
9578
+ id: 'Id',
9579
+ idType: 'IdType',
9580
+ organizationId: 'OrganizationId',
9581
+ };
9582
+ }
9583
+ static types() {
9584
+ return {
9585
+ encodeKey: 'string',
9586
+ encodeType: 'string',
9587
+ id: 'string',
9588
+ idType: 'string',
9589
+ organizationId: 'string',
9590
+ };
9591
+ }
9592
+ }
9593
+ exports.HotelQrBindResponseBodyResultOpenUserInfo = HotelQrBindResponseBodyResultOpenUserInfo;
9594
+ class HotelQrBindResponseBodyResult extends $tea.Model {
9595
+ constructor(map) {
9596
+ super(map);
9597
+ }
9598
+ static names() {
9599
+ return {
9600
+ openDeviceInfo: 'OpenDeviceInfo',
9601
+ openUserInfo: 'OpenUserInfo',
9602
+ };
9603
+ }
9604
+ static types() {
9605
+ return {
9606
+ openDeviceInfo: HotelQrBindResponseBodyResultOpenDeviceInfo,
9607
+ openUserInfo: HotelQrBindResponseBodyResultOpenUserInfo,
9608
+ };
9609
+ }
9610
+ }
9611
+ exports.HotelQrBindResponseBodyResult = HotelQrBindResponseBodyResult;
9460
9612
  class ImportHotelConfigRequestImportHotelConfigRcuCustomScenes extends $tea.Model {
9461
9613
  constructor(map) {
9462
9614
  super(map);
@@ -9645,29 +9797,75 @@ class ImportRoomGenieScenesRequestSceneListActions extends $tea.Model {
9645
9797
  return {
9646
9798
  attributeValues: 'AttributeValues',
9647
9799
  device: 'Device',
9800
+ reply: 'Reply',
9801
+ type: 'Type',
9648
9802
  };
9649
9803
  }
9650
9804
  static types() {
9651
9805
  return {
9652
9806
  attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListActionsAttributeValues },
9653
9807
  device: ImportRoomGenieScenesRequestSceneListActionsDevice,
9808
+ reply: 'string',
9809
+ type: 'number',
9654
9810
  };
9655
9811
  }
9656
9812
  }
9657
9813
  exports.ImportRoomGenieScenesRequestSceneListActions = ImportRoomGenieScenesRequestSceneListActions;
9814
+ class ImportRoomGenieScenesRequestSceneListTriggersAttributeValues extends $tea.Model {
9815
+ constructor(map) {
9816
+ super(map);
9817
+ }
9818
+ static names() {
9819
+ return {
9820
+ attributeName: 'AttributeName',
9821
+ attributeValue: 'AttributeValue',
9822
+ };
9823
+ }
9824
+ static types() {
9825
+ return {
9826
+ attributeName: 'string',
9827
+ attributeValue: 'string',
9828
+ };
9829
+ }
9830
+ }
9831
+ exports.ImportRoomGenieScenesRequestSceneListTriggersAttributeValues = ImportRoomGenieScenesRequestSceneListTriggersAttributeValues;
9832
+ class ImportRoomGenieScenesRequestSceneListTriggersDevice extends $tea.Model {
9833
+ constructor(map) {
9834
+ super(map);
9835
+ }
9836
+ static names() {
9837
+ return {
9838
+ category: 'Category',
9839
+ deviceIndex: 'DeviceIndex',
9840
+ deviceNumber: 'DeviceNumber',
9841
+ };
9842
+ }
9843
+ static types() {
9844
+ return {
9845
+ category: 'string',
9846
+ deviceIndex: 'string',
9847
+ deviceNumber: 'string',
9848
+ };
9849
+ }
9850
+ }
9851
+ exports.ImportRoomGenieScenesRequestSceneListTriggersDevice = ImportRoomGenieScenesRequestSceneListTriggersDevice;
9658
9852
  class ImportRoomGenieScenesRequestSceneListTriggers extends $tea.Model {
9659
9853
  constructor(map) {
9660
9854
  super(map);
9661
9855
  }
9662
9856
  static names() {
9663
9857
  return {
9858
+ attributeValues: 'AttributeValues',
9664
9859
  corpusList: 'CorpusList',
9860
+ device: 'Device',
9665
9861
  type: 'Type',
9666
9862
  };
9667
9863
  }
9668
9864
  static types() {
9669
9865
  return {
9866
+ attributeValues: { 'type': 'array', 'itemType': ImportRoomGenieScenesRequestSceneListTriggersAttributeValues },
9670
9867
  corpusList: { 'type': 'array', 'itemType': 'string' },
9868
+ device: ImportRoomGenieScenesRequestSceneListTriggersDevice,
9671
9869
  type: 'number',
9672
9870
  };
9673
9871
  }
@@ -13535,6 +13733,56 @@ class Client extends openapi_client_1.default {
13535
13733
  let headers = new GetWelcomeTextAndMusicHeaders({});
13536
13734
  return await this.getWelcomeTextAndMusicWithOptions(request, headers, runtime);
13537
13735
  }
13736
+ async hotelQrBindWithOptions(request, headers, runtime) {
13737
+ tea_util_1.default.validateModel(request);
13738
+ let body = {};
13739
+ if (!tea_util_1.default.isUnset(request.clientId)) {
13740
+ body["ClientId"] = request.clientId;
13741
+ }
13742
+ if (!tea_util_1.default.isUnset(request.code)) {
13743
+ body["Code"] = request.code;
13744
+ }
13745
+ if (!tea_util_1.default.isUnset(request.extInfo)) {
13746
+ body["ExtInfo"] = request.extInfo;
13747
+ }
13748
+ if (!tea_util_1.default.isUnset(request.hotelId)) {
13749
+ body["HotelId"] = request.hotelId;
13750
+ }
13751
+ if (!tea_util_1.default.isUnset(request.roomNo)) {
13752
+ body["RoomNo"] = request.roomNo;
13753
+ }
13754
+ let realHeaders = {};
13755
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
13756
+ realHeaders = headers.commonHeaders;
13757
+ }
13758
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
13759
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
13760
+ }
13761
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
13762
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
13763
+ }
13764
+ let req = new $OpenApi.OpenApiRequest({
13765
+ headers: realHeaders,
13766
+ body: openapi_util_1.default.parseToMap(body),
13767
+ });
13768
+ let params = new $OpenApi.Params({
13769
+ action: "HotelQrBind",
13770
+ version: "ip_1.0",
13771
+ protocol: "HTTPS",
13772
+ pathname: `/v1.0/ip/hotelQrBind`,
13773
+ method: "POST",
13774
+ authType: "AK",
13775
+ style: "ROA",
13776
+ reqBodyType: "formData",
13777
+ bodyType: "json",
13778
+ });
13779
+ return $tea.cast(await this.callApi(params, req, runtime), new HotelQrBindResponse({}));
13780
+ }
13781
+ async hotelQrBind(request) {
13782
+ let runtime = new $Util.RuntimeOptions({});
13783
+ let headers = new HotelQrBindHeaders({});
13784
+ return await this.hotelQrBindWithOptions(request, headers, runtime);
13785
+ }
13538
13786
  async importHotelConfigWithOptions(tmpReq, headers, runtime) {
13539
13787
  tea_util_1.default.validateModel(tmpReq);
13540
13788
  let request = new ImportHotelConfigShrinkRequest({});