@alicloud/tdsr20200101 3.0.10 → 3.1.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.js CHANGED
@@ -453,6 +453,68 @@ class CheckUserPropertyResponse extends $tea.Model {
453
453
  }
454
454
  }
455
455
  exports.CheckUserPropertyResponse = CheckUserPropertyResponse;
456
+ class CopySceneRequest extends $tea.Model {
457
+ constructor(map) {
458
+ super(map);
459
+ }
460
+ static names() {
461
+ return {
462
+ sceneId: 'SceneId',
463
+ sceneName: 'SceneName',
464
+ };
465
+ }
466
+ static types() {
467
+ return {
468
+ sceneId: 'string',
469
+ sceneName: 'string',
470
+ };
471
+ }
472
+ }
473
+ exports.CopySceneRequest = CopySceneRequest;
474
+ class CopySceneResponseBody extends $tea.Model {
475
+ constructor(map) {
476
+ super(map);
477
+ }
478
+ static names() {
479
+ return {
480
+ code: 'Code',
481
+ data: 'Data',
482
+ message: 'Message',
483
+ requestId: 'RequestId',
484
+ success: 'Success',
485
+ };
486
+ }
487
+ static types() {
488
+ return {
489
+ code: 'number',
490
+ data: CopySceneResponseBodyData,
491
+ message: 'string',
492
+ requestId: 'string',
493
+ success: 'boolean',
494
+ };
495
+ }
496
+ }
497
+ exports.CopySceneResponseBody = CopySceneResponseBody;
498
+ class CopySceneResponse extends $tea.Model {
499
+ constructor(map) {
500
+ super(map);
501
+ }
502
+ static names() {
503
+ return {
504
+ headers: 'headers',
505
+ statusCode: 'statusCode',
506
+ body: 'body',
507
+ };
508
+ }
509
+ static types() {
510
+ return {
511
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
512
+ statusCode: 'number',
513
+ body: CopySceneResponseBody,
514
+ };
515
+ }
516
+ }
517
+ exports.CopySceneResponse = CopySceneResponse;
456
518
  class DetailProjectRequest extends $tea.Model {
457
519
  constructor(map) {
458
520
  super(map);
@@ -923,6 +985,66 @@ class GetConnDataResponse extends $tea.Model {
923
985
  }
924
986
  }
925
987
  exports.GetConnDataResponse = GetConnDataResponse;
988
+ class GetCopySceneTaskStatusRequest extends $tea.Model {
989
+ constructor(map) {
990
+ super(map);
991
+ }
992
+ static names() {
993
+ return {
994
+ taskId: 'TaskId',
995
+ };
996
+ }
997
+ static types() {
998
+ return {
999
+ taskId: 'string',
1000
+ };
1001
+ }
1002
+ }
1003
+ exports.GetCopySceneTaskStatusRequest = GetCopySceneTaskStatusRequest;
1004
+ class GetCopySceneTaskStatusResponseBody extends $tea.Model {
1005
+ constructor(map) {
1006
+ super(map);
1007
+ }
1008
+ static names() {
1009
+ return {
1010
+ code: 'Code',
1011
+ data: 'Data',
1012
+ message: 'Message',
1013
+ requestId: 'RequestId',
1014
+ success: 'Success',
1015
+ };
1016
+ }
1017
+ static types() {
1018
+ return {
1019
+ code: 'number',
1020
+ data: GetCopySceneTaskStatusResponseBodyData,
1021
+ message: 'string',
1022
+ requestId: 'string',
1023
+ success: 'boolean',
1024
+ };
1025
+ }
1026
+ }
1027
+ exports.GetCopySceneTaskStatusResponseBody = GetCopySceneTaskStatusResponseBody;
1028
+ class GetCopySceneTaskStatusResponse extends $tea.Model {
1029
+ constructor(map) {
1030
+ super(map);
1031
+ }
1032
+ static names() {
1033
+ return {
1034
+ headers: 'headers',
1035
+ statusCode: 'statusCode',
1036
+ body: 'body',
1037
+ };
1038
+ }
1039
+ static types() {
1040
+ return {
1041
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1042
+ statusCode: 'number',
1043
+ body: GetCopySceneTaskStatusResponseBody,
1044
+ };
1045
+ }
1046
+ }
1047
+ exports.GetCopySceneTaskStatusResponse = GetCopySceneTaskStatusResponse;
926
1048
  class GetHotspotConfigRequest extends $tea.Model {
927
1049
  constructor(map) {
928
1050
  super(map);
@@ -2285,6 +2407,7 @@ class ListSubSceneRequest extends $tea.Model {
2285
2407
  pageSize: 'PageSize',
2286
2408
  sceneId: 'SceneId',
2287
2409
  showLayoutData: 'ShowLayoutData',
2410
+ sortField: 'SortField',
2288
2411
  };
2289
2412
  }
2290
2413
  static types() {
@@ -2293,6 +2416,7 @@ class ListSubSceneRequest extends $tea.Model {
2293
2416
  pageSize: 'number',
2294
2417
  sceneId: 'string',
2295
2418
  showLayoutData: 'boolean',
2419
+ sortField: 'string',
2296
2420
  };
2297
2421
  }
2298
2422
  }
@@ -3575,16 +3699,38 @@ class UpdateSubSceneRequest extends $tea.Model {
3575
3699
  return {
3576
3700
  id: 'Id',
3577
3701
  name: 'Name',
3702
+ viewPoint: 'ViewPoint',
3578
3703
  };
3579
3704
  }
3580
3705
  static types() {
3581
3706
  return {
3582
3707
  id: 'string',
3583
3708
  name: 'string',
3709
+ viewPoint: { 'type': 'array', 'itemType': 'number' },
3584
3710
  };
3585
3711
  }
3586
3712
  }
3587
3713
  exports.UpdateSubSceneRequest = UpdateSubSceneRequest;
3714
+ class UpdateSubSceneShrinkRequest extends $tea.Model {
3715
+ constructor(map) {
3716
+ super(map);
3717
+ }
3718
+ static names() {
3719
+ return {
3720
+ id: 'Id',
3721
+ name: 'Name',
3722
+ viewPointShrink: 'ViewPoint',
3723
+ };
3724
+ }
3725
+ static types() {
3726
+ return {
3727
+ id: 'string',
3728
+ name: 'string',
3729
+ viewPointShrink: 'string',
3730
+ };
3731
+ }
3732
+ }
3733
+ exports.UpdateSubSceneShrinkRequest = UpdateSubSceneShrinkRequest;
3588
3734
  class UpdateSubSceneResponseBody extends $tea.Model {
3589
3735
  constructor(map) {
3590
3736
  super(map);
@@ -3627,6 +3773,84 @@ class UpdateSubSceneResponse extends $tea.Model {
3627
3773
  }
3628
3774
  }
3629
3775
  exports.UpdateSubSceneResponse = UpdateSubSceneResponse;
3776
+ class UpdateSubSceneSeqRequest extends $tea.Model {
3777
+ constructor(map) {
3778
+ super(map);
3779
+ }
3780
+ static names() {
3781
+ return {
3782
+ sceneId: 'SceneId',
3783
+ sortSubSceneIds: 'SortSubSceneIds',
3784
+ };
3785
+ }
3786
+ static types() {
3787
+ return {
3788
+ sceneId: 'string',
3789
+ sortSubSceneIds: { 'type': 'array', 'itemType': 'string' },
3790
+ };
3791
+ }
3792
+ }
3793
+ exports.UpdateSubSceneSeqRequest = UpdateSubSceneSeqRequest;
3794
+ class UpdateSubSceneSeqShrinkRequest extends $tea.Model {
3795
+ constructor(map) {
3796
+ super(map);
3797
+ }
3798
+ static names() {
3799
+ return {
3800
+ sceneId: 'SceneId',
3801
+ sortSubSceneIdsShrink: 'SortSubSceneIds',
3802
+ };
3803
+ }
3804
+ static types() {
3805
+ return {
3806
+ sceneId: 'string',
3807
+ sortSubSceneIdsShrink: 'string',
3808
+ };
3809
+ }
3810
+ }
3811
+ exports.UpdateSubSceneSeqShrinkRequest = UpdateSubSceneSeqShrinkRequest;
3812
+ class UpdateSubSceneSeqResponseBody extends $tea.Model {
3813
+ constructor(map) {
3814
+ super(map);
3815
+ }
3816
+ static names() {
3817
+ return {
3818
+ code: 'Code',
3819
+ message: 'Message',
3820
+ requestId: 'RequestId',
3821
+ success: 'Success',
3822
+ };
3823
+ }
3824
+ static types() {
3825
+ return {
3826
+ code: 'number',
3827
+ message: 'string',
3828
+ requestId: 'string',
3829
+ success: 'boolean',
3830
+ };
3831
+ }
3832
+ }
3833
+ exports.UpdateSubSceneSeqResponseBody = UpdateSubSceneSeqResponseBody;
3834
+ class UpdateSubSceneSeqResponse extends $tea.Model {
3835
+ constructor(map) {
3836
+ super(map);
3837
+ }
3838
+ static names() {
3839
+ return {
3840
+ headers: 'headers',
3841
+ statusCode: 'statusCode',
3842
+ body: 'body',
3843
+ };
3844
+ }
3845
+ static types() {
3846
+ return {
3847
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3848
+ statusCode: 'number',
3849
+ body: UpdateSubSceneSeqResponseBody,
3850
+ };
3851
+ }
3852
+ }
3853
+ exports.UpdateSubSceneSeqResponse = UpdateSubSceneSeqResponse;
3630
3854
  class AddRoomPlanResponseBodyData extends $tea.Model {
3631
3855
  constructor(map) {
3632
3856
  super(map);
@@ -3655,6 +3879,22 @@ class AddRoomPlanResponseBodyData extends $tea.Model {
3655
3879
  }
3656
3880
  }
3657
3881
  exports.AddRoomPlanResponseBodyData = AddRoomPlanResponseBodyData;
3882
+ class CopySceneResponseBodyData extends $tea.Model {
3883
+ constructor(map) {
3884
+ super(map);
3885
+ }
3886
+ static names() {
3887
+ return {
3888
+ taskId: 'TaskId',
3889
+ };
3890
+ }
3891
+ static types() {
3892
+ return {
3893
+ taskId: 'string',
3894
+ };
3895
+ }
3896
+ }
3897
+ exports.CopySceneResponseBodyData = CopySceneResponseBodyData;
3658
3898
  class GetConnDataResponseBodyList extends $tea.Model {
3659
3899
  constructor(map) {
3660
3900
  super(map);
@@ -3675,6 +3915,24 @@ class GetConnDataResponseBodyList extends $tea.Model {
3675
3915
  }
3676
3916
  }
3677
3917
  exports.GetConnDataResponseBodyList = GetConnDataResponseBodyList;
3918
+ class GetCopySceneTaskStatusResponseBodyData extends $tea.Model {
3919
+ constructor(map) {
3920
+ super(map);
3921
+ }
3922
+ static names() {
3923
+ return {
3924
+ progress: 'Progress',
3925
+ status: 'Status',
3926
+ };
3927
+ }
3928
+ static types() {
3929
+ return {
3930
+ progress: 'number',
3931
+ status: 'string',
3932
+ };
3933
+ }
3934
+ }
3935
+ exports.GetCopySceneTaskStatusResponseBodyData = GetCopySceneTaskStatusResponseBodyData;
3678
3936
  class GetHotspotSceneDataResponseBodyData extends $tea.Model {
3679
3937
  constructor(map) {
3680
3938
  super(map);
@@ -4380,6 +4638,35 @@ class Client extends openapi_client_1.default {
4380
4638
  let runtime = new $Util.RuntimeOptions({});
4381
4639
  return await this.checkUserPropertyWithOptions(request, runtime);
4382
4640
  }
4641
+ async copySceneWithOptions(request, runtime) {
4642
+ tea_util_1.default.validateModel(request);
4643
+ let query = {};
4644
+ if (!tea_util_1.default.isUnset(request.sceneId)) {
4645
+ query["SceneId"] = request.sceneId;
4646
+ }
4647
+ if (!tea_util_1.default.isUnset(request.sceneName)) {
4648
+ query["SceneName"] = request.sceneName;
4649
+ }
4650
+ let req = new $OpenApi.OpenApiRequest({
4651
+ query: openapi_util_1.default.query(query),
4652
+ });
4653
+ let params = new $OpenApi.Params({
4654
+ action: "CopyScene",
4655
+ version: "2020-01-01",
4656
+ protocol: "HTTPS",
4657
+ pathname: "/",
4658
+ method: "POST",
4659
+ authType: "AK",
4660
+ style: "RPC",
4661
+ reqBodyType: "formData",
4662
+ bodyType: "json",
4663
+ });
4664
+ return $tea.cast(await this.callApi(params, req, runtime), new CopySceneResponse({}));
4665
+ }
4666
+ async copyScene(request) {
4667
+ let runtime = new $Util.RuntimeOptions({});
4668
+ return await this.copySceneWithOptions(request, runtime);
4669
+ }
4383
4670
  async detailProjectWithOptions(request, runtime) {
4384
4671
  tea_util_1.default.validateModel(request);
4385
4672
  let query = {};
@@ -4562,6 +4849,32 @@ class Client extends openapi_client_1.default {
4562
4849
  let runtime = new $Util.RuntimeOptions({});
4563
4850
  return await this.getConnDataWithOptions(request, runtime);
4564
4851
  }
4852
+ async getCopySceneTaskStatusWithOptions(request, runtime) {
4853
+ tea_util_1.default.validateModel(request);
4854
+ let query = {};
4855
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4856
+ query["TaskId"] = request.taskId;
4857
+ }
4858
+ let req = new $OpenApi.OpenApiRequest({
4859
+ query: openapi_util_1.default.query(query),
4860
+ });
4861
+ let params = new $OpenApi.Params({
4862
+ action: "GetCopySceneTaskStatus",
4863
+ version: "2020-01-01",
4864
+ protocol: "HTTPS",
4865
+ pathname: "/",
4866
+ method: "POST",
4867
+ authType: "AK",
4868
+ style: "RPC",
4869
+ reqBodyType: "formData",
4870
+ bodyType: "json",
4871
+ });
4872
+ return $tea.cast(await this.callApi(params, req, runtime), new GetCopySceneTaskStatusResponse({}));
4873
+ }
4874
+ async getCopySceneTaskStatus(request) {
4875
+ let runtime = new $Util.RuntimeOptions({});
4876
+ return await this.getCopySceneTaskStatusWithOptions(request, runtime);
4877
+ }
4565
4878
  async getHotspotConfigWithOptions(request, runtime) {
4566
4879
  tea_util_1.default.validateModel(request);
4567
4880
  let query = {};
@@ -5198,6 +5511,9 @@ class Client extends openapi_client_1.default {
5198
5511
  if (!tea_util_1.default.isUnset(request.showLayoutData)) {
5199
5512
  query["ShowLayoutData"] = request.showLayoutData;
5200
5513
  }
5514
+ if (!tea_util_1.default.isUnset(request.sortField)) {
5515
+ query["SortField"] = request.sortField;
5516
+ }
5201
5517
  let req = new $OpenApi.OpenApiRequest({
5202
5518
  query: openapi_util_1.default.query(query),
5203
5519
  });
@@ -5789,8 +6105,13 @@ class Client extends openapi_client_1.default {
5789
6105
  let runtime = new $Util.RuntimeOptions({});
5790
6106
  return await this.updateSceneWithOptions(request, runtime);
5791
6107
  }
5792
- async updateSubSceneWithOptions(request, runtime) {
5793
- tea_util_1.default.validateModel(request);
6108
+ async updateSubSceneWithOptions(tmpReq, runtime) {
6109
+ tea_util_1.default.validateModel(tmpReq);
6110
+ let request = new UpdateSubSceneShrinkRequest({});
6111
+ openapi_util_1.default.convert(tmpReq, request);
6112
+ if (!tea_util_1.default.isUnset(tmpReq.viewPoint)) {
6113
+ request.viewPointShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.viewPoint, "ViewPoint", "json");
6114
+ }
5794
6115
  let query = {};
5795
6116
  if (!tea_util_1.default.isUnset(request.id)) {
5796
6117
  query["Id"] = request.id;
@@ -5798,6 +6119,9 @@ class Client extends openapi_client_1.default {
5798
6119
  if (!tea_util_1.default.isUnset(request.name)) {
5799
6120
  query["Name"] = request.name;
5800
6121
  }
6122
+ if (!tea_util_1.default.isUnset(request.viewPointShrink)) {
6123
+ query["ViewPoint"] = request.viewPointShrink;
6124
+ }
5801
6125
  let req = new $OpenApi.OpenApiRequest({
5802
6126
  query: openapi_util_1.default.query(query),
5803
6127
  });
@@ -5818,6 +6142,40 @@ class Client extends openapi_client_1.default {
5818
6142
  let runtime = new $Util.RuntimeOptions({});
5819
6143
  return await this.updateSubSceneWithOptions(request, runtime);
5820
6144
  }
6145
+ async updateSubSceneSeqWithOptions(tmpReq, runtime) {
6146
+ tea_util_1.default.validateModel(tmpReq);
6147
+ let request = new UpdateSubSceneSeqShrinkRequest({});
6148
+ openapi_util_1.default.convert(tmpReq, request);
6149
+ if (!tea_util_1.default.isUnset(tmpReq.sortSubSceneIds)) {
6150
+ request.sortSubSceneIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.sortSubSceneIds, "SortSubSceneIds", "json");
6151
+ }
6152
+ let query = {};
6153
+ if (!tea_util_1.default.isUnset(request.sceneId)) {
6154
+ query["SceneId"] = request.sceneId;
6155
+ }
6156
+ if (!tea_util_1.default.isUnset(request.sortSubSceneIdsShrink)) {
6157
+ query["SortSubSceneIds"] = request.sortSubSceneIdsShrink;
6158
+ }
6159
+ let req = new $OpenApi.OpenApiRequest({
6160
+ query: openapi_util_1.default.query(query),
6161
+ });
6162
+ let params = new $OpenApi.Params({
6163
+ action: "UpdateSubSceneSeq",
6164
+ version: "2020-01-01",
6165
+ protocol: "HTTPS",
6166
+ pathname: "/",
6167
+ method: "POST",
6168
+ authType: "AK",
6169
+ style: "RPC",
6170
+ reqBodyType: "formData",
6171
+ bodyType: "json",
6172
+ });
6173
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateSubSceneSeqResponse({}));
6174
+ }
6175
+ async updateSubSceneSeq(request) {
6176
+ let runtime = new $Util.RuntimeOptions({});
6177
+ return await this.updateSubSceneSeqWithOptions(request, runtime);
6178
+ }
5821
6179
  }
5822
6180
  exports.default = Client;
5823
6181
  //# sourceMappingURL=client.js.map