@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/tdsr20200101",
3
- "version": "3.0.10",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -554,6 +554,84 @@ export class CheckUserPropertyResponse extends $tea.Model {
554
554
  }
555
555
  }
556
556
 
557
+ export class CopySceneRequest extends $tea.Model {
558
+ sceneId?: string;
559
+ sceneName?: string;
560
+ static names(): { [key: string]: string } {
561
+ return {
562
+ sceneId: 'SceneId',
563
+ sceneName: 'SceneName',
564
+ };
565
+ }
566
+
567
+ static types(): { [key: string]: any } {
568
+ return {
569
+ sceneId: 'string',
570
+ sceneName: 'string',
571
+ };
572
+ }
573
+
574
+ constructor(map?: { [key: string]: any }) {
575
+ super(map);
576
+ }
577
+ }
578
+
579
+ export class CopySceneResponseBody extends $tea.Model {
580
+ code?: number;
581
+ data?: CopySceneResponseBodyData;
582
+ message?: string;
583
+ requestId?: string;
584
+ success?: boolean;
585
+ static names(): { [key: string]: string } {
586
+ return {
587
+ code: 'Code',
588
+ data: 'Data',
589
+ message: 'Message',
590
+ requestId: 'RequestId',
591
+ success: 'Success',
592
+ };
593
+ }
594
+
595
+ static types(): { [key: string]: any } {
596
+ return {
597
+ code: 'number',
598
+ data: CopySceneResponseBodyData,
599
+ message: 'string',
600
+ requestId: 'string',
601
+ success: 'boolean',
602
+ };
603
+ }
604
+
605
+ constructor(map?: { [key: string]: any }) {
606
+ super(map);
607
+ }
608
+ }
609
+
610
+ export class CopySceneResponse extends $tea.Model {
611
+ headers: { [key: string]: string };
612
+ statusCode: number;
613
+ body: CopySceneResponseBody;
614
+ static names(): { [key: string]: string } {
615
+ return {
616
+ headers: 'headers',
617
+ statusCode: 'statusCode',
618
+ body: 'body',
619
+ };
620
+ }
621
+
622
+ static types(): { [key: string]: any } {
623
+ return {
624
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
625
+ statusCode: 'number',
626
+ body: CopySceneResponseBody,
627
+ };
628
+ }
629
+
630
+ constructor(map?: { [key: string]: any }) {
631
+ super(map);
632
+ }
633
+ }
634
+
557
635
  export class DetailProjectRequest extends $tea.Model {
558
636
  id?: string;
559
637
  static names(): { [key: string]: string } {
@@ -1154,6 +1232,81 @@ export class GetConnDataResponse extends $tea.Model {
1154
1232
  }
1155
1233
  }
1156
1234
 
1235
+ export class GetCopySceneTaskStatusRequest extends $tea.Model {
1236
+ taskId?: string;
1237
+ static names(): { [key: string]: string } {
1238
+ return {
1239
+ taskId: 'TaskId',
1240
+ };
1241
+ }
1242
+
1243
+ static types(): { [key: string]: any } {
1244
+ return {
1245
+ taskId: 'string',
1246
+ };
1247
+ }
1248
+
1249
+ constructor(map?: { [key: string]: any }) {
1250
+ super(map);
1251
+ }
1252
+ }
1253
+
1254
+ export class GetCopySceneTaskStatusResponseBody extends $tea.Model {
1255
+ code?: number;
1256
+ data?: GetCopySceneTaskStatusResponseBodyData;
1257
+ message?: string;
1258
+ requestId?: string;
1259
+ success?: boolean;
1260
+ static names(): { [key: string]: string } {
1261
+ return {
1262
+ code: 'Code',
1263
+ data: 'Data',
1264
+ message: 'Message',
1265
+ requestId: 'RequestId',
1266
+ success: 'Success',
1267
+ };
1268
+ }
1269
+
1270
+ static types(): { [key: string]: any } {
1271
+ return {
1272
+ code: 'number',
1273
+ data: GetCopySceneTaskStatusResponseBodyData,
1274
+ message: 'string',
1275
+ requestId: 'string',
1276
+ success: 'boolean',
1277
+ };
1278
+ }
1279
+
1280
+ constructor(map?: { [key: string]: any }) {
1281
+ super(map);
1282
+ }
1283
+ }
1284
+
1285
+ export class GetCopySceneTaskStatusResponse extends $tea.Model {
1286
+ headers: { [key: string]: string };
1287
+ statusCode: number;
1288
+ body: GetCopySceneTaskStatusResponseBody;
1289
+ static names(): { [key: string]: string } {
1290
+ return {
1291
+ headers: 'headers',
1292
+ statusCode: 'statusCode',
1293
+ body: 'body',
1294
+ };
1295
+ }
1296
+
1297
+ static types(): { [key: string]: any } {
1298
+ return {
1299
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1300
+ statusCode: 'number',
1301
+ body: GetCopySceneTaskStatusResponseBody,
1302
+ };
1303
+ }
1304
+
1305
+ constructor(map?: { [key: string]: any }) {
1306
+ super(map);
1307
+ }
1308
+ }
1309
+
1157
1310
  export class GetHotspotConfigRequest extends $tea.Model {
1158
1311
  domain?: string;
1159
1312
  enabled?: boolean;
@@ -2872,12 +3025,14 @@ export class ListSubSceneRequest extends $tea.Model {
2872
3025
  pageSize?: number;
2873
3026
  sceneId?: string;
2874
3027
  showLayoutData?: boolean;
3028
+ sortField?: string;
2875
3029
  static names(): { [key: string]: string } {
2876
3030
  return {
2877
3031
  pageNum: 'PageNum',
2878
3032
  pageSize: 'PageSize',
2879
3033
  sceneId: 'SceneId',
2880
3034
  showLayoutData: 'ShowLayoutData',
3035
+ sortField: 'SortField',
2881
3036
  };
2882
3037
  }
2883
3038
 
@@ -2887,6 +3042,7 @@ export class ListSubSceneRequest extends $tea.Model {
2887
3042
  pageSize: 'number',
2888
3043
  sceneId: 'string',
2889
3044
  showLayoutData: 'boolean',
3045
+ sortField: 'string',
2890
3046
  };
2891
3047
  }
2892
3048
 
@@ -4493,10 +4649,12 @@ export class UpdateSceneResponse extends $tea.Model {
4493
4649
  export class UpdateSubSceneRequest extends $tea.Model {
4494
4650
  id?: string;
4495
4651
  name?: string;
4652
+ viewPoint?: number[];
4496
4653
  static names(): { [key: string]: string } {
4497
4654
  return {
4498
4655
  id: 'Id',
4499
4656
  name: 'Name',
4657
+ viewPoint: 'ViewPoint',
4500
4658
  };
4501
4659
  }
4502
4660
 
@@ -4504,6 +4662,32 @@ export class UpdateSubSceneRequest extends $tea.Model {
4504
4662
  return {
4505
4663
  id: 'string',
4506
4664
  name: 'string',
4665
+ viewPoint: { 'type': 'array', 'itemType': 'number' },
4666
+ };
4667
+ }
4668
+
4669
+ constructor(map?: { [key: string]: any }) {
4670
+ super(map);
4671
+ }
4672
+ }
4673
+
4674
+ export class UpdateSubSceneShrinkRequest extends $tea.Model {
4675
+ id?: string;
4676
+ name?: string;
4677
+ viewPointShrink?: string;
4678
+ static names(): { [key: string]: string } {
4679
+ return {
4680
+ id: 'Id',
4681
+ name: 'Name',
4682
+ viewPointShrink: 'ViewPoint',
4683
+ };
4684
+ }
4685
+
4686
+ static types(): { [key: string]: any } {
4687
+ return {
4688
+ id: 'string',
4689
+ name: 'string',
4690
+ viewPointShrink: 'string',
4507
4691
  };
4508
4692
  }
4509
4693
 
@@ -4565,6 +4749,103 @@ export class UpdateSubSceneResponse extends $tea.Model {
4565
4749
  }
4566
4750
  }
4567
4751
 
4752
+ export class UpdateSubSceneSeqRequest extends $tea.Model {
4753
+ sceneId?: string;
4754
+ sortSubSceneIds?: string[];
4755
+ static names(): { [key: string]: string } {
4756
+ return {
4757
+ sceneId: 'SceneId',
4758
+ sortSubSceneIds: 'SortSubSceneIds',
4759
+ };
4760
+ }
4761
+
4762
+ static types(): { [key: string]: any } {
4763
+ return {
4764
+ sceneId: 'string',
4765
+ sortSubSceneIds: { 'type': 'array', 'itemType': 'string' },
4766
+ };
4767
+ }
4768
+
4769
+ constructor(map?: { [key: string]: any }) {
4770
+ super(map);
4771
+ }
4772
+ }
4773
+
4774
+ export class UpdateSubSceneSeqShrinkRequest extends $tea.Model {
4775
+ sceneId?: string;
4776
+ sortSubSceneIdsShrink?: string;
4777
+ static names(): { [key: string]: string } {
4778
+ return {
4779
+ sceneId: 'SceneId',
4780
+ sortSubSceneIdsShrink: 'SortSubSceneIds',
4781
+ };
4782
+ }
4783
+
4784
+ static types(): { [key: string]: any } {
4785
+ return {
4786
+ sceneId: 'string',
4787
+ sortSubSceneIdsShrink: 'string',
4788
+ };
4789
+ }
4790
+
4791
+ constructor(map?: { [key: string]: any }) {
4792
+ super(map);
4793
+ }
4794
+ }
4795
+
4796
+ export class UpdateSubSceneSeqResponseBody extends $tea.Model {
4797
+ code?: number;
4798
+ message?: string;
4799
+ requestId?: string;
4800
+ success?: boolean;
4801
+ static names(): { [key: string]: string } {
4802
+ return {
4803
+ code: 'Code',
4804
+ message: 'Message',
4805
+ requestId: 'RequestId',
4806
+ success: 'Success',
4807
+ };
4808
+ }
4809
+
4810
+ static types(): { [key: string]: any } {
4811
+ return {
4812
+ code: 'number',
4813
+ message: 'string',
4814
+ requestId: 'string',
4815
+ success: 'boolean',
4816
+ };
4817
+ }
4818
+
4819
+ constructor(map?: { [key: string]: any }) {
4820
+ super(map);
4821
+ }
4822
+ }
4823
+
4824
+ export class UpdateSubSceneSeqResponse extends $tea.Model {
4825
+ headers: { [key: string]: string };
4826
+ statusCode: number;
4827
+ body: UpdateSubSceneSeqResponseBody;
4828
+ static names(): { [key: string]: string } {
4829
+ return {
4830
+ headers: 'headers',
4831
+ statusCode: 'statusCode',
4832
+ body: 'body',
4833
+ };
4834
+ }
4835
+
4836
+ static types(): { [key: string]: any } {
4837
+ return {
4838
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4839
+ statusCode: 'number',
4840
+ body: UpdateSubSceneSeqResponseBody,
4841
+ };
4842
+ }
4843
+
4844
+ constructor(map?: { [key: string]: any }) {
4845
+ super(map);
4846
+ }
4847
+ }
4848
+
4568
4849
  export class AddRoomPlanResponseBodyData extends $tea.Model {
4569
4850
  accessId?: string;
4570
4851
  callback?: string;
@@ -4602,6 +4883,25 @@ export class AddRoomPlanResponseBodyData extends $tea.Model {
4602
4883
  }
4603
4884
  }
4604
4885
 
4886
+ export class CopySceneResponseBodyData extends $tea.Model {
4887
+ taskId?: string;
4888
+ static names(): { [key: string]: string } {
4889
+ return {
4890
+ taskId: 'TaskId',
4891
+ };
4892
+ }
4893
+
4894
+ static types(): { [key: string]: any } {
4895
+ return {
4896
+ taskId: 'string',
4897
+ };
4898
+ }
4899
+
4900
+ constructor(map?: { [key: string]: any }) {
4901
+ super(map);
4902
+ }
4903
+ }
4904
+
4605
4905
  export class GetConnDataResponseBodyList extends $tea.Model {
4606
4906
  id?: string;
4607
4907
  mapId?: string;
@@ -4627,6 +4927,28 @@ export class GetConnDataResponseBodyList extends $tea.Model {
4627
4927
  }
4628
4928
  }
4629
4929
 
4930
+ export class GetCopySceneTaskStatusResponseBodyData extends $tea.Model {
4931
+ progress?: number;
4932
+ status?: string;
4933
+ static names(): { [key: string]: string } {
4934
+ return {
4935
+ progress: 'Progress',
4936
+ status: 'Status',
4937
+ };
4938
+ }
4939
+
4940
+ static types(): { [key: string]: any } {
4941
+ return {
4942
+ progress: 'number',
4943
+ status: 'string',
4944
+ };
4945
+ }
4946
+
4947
+ constructor(map?: { [key: string]: any }) {
4948
+ super(map);
4949
+ }
4950
+ }
4951
+
4630
4952
  export class GetHotspotSceneDataResponseBodyData extends $tea.Model {
4631
4953
  modelToken?: string;
4632
4954
  previewData?: string;
@@ -5513,6 +5835,39 @@ export default class Client extends OpenApi {
5513
5835
  return await this.checkUserPropertyWithOptions(request, runtime);
5514
5836
  }
5515
5837
 
5838
+ async copySceneWithOptions(request: CopySceneRequest, runtime: $Util.RuntimeOptions): Promise<CopySceneResponse> {
5839
+ Util.validateModel(request);
5840
+ let query = { };
5841
+ if (!Util.isUnset(request.sceneId)) {
5842
+ query["SceneId"] = request.sceneId;
5843
+ }
5844
+
5845
+ if (!Util.isUnset(request.sceneName)) {
5846
+ query["SceneName"] = request.sceneName;
5847
+ }
5848
+
5849
+ let req = new $OpenApi.OpenApiRequest({
5850
+ query: OpenApiUtil.query(query),
5851
+ });
5852
+ let params = new $OpenApi.Params({
5853
+ action: "CopyScene",
5854
+ version: "2020-01-01",
5855
+ protocol: "HTTPS",
5856
+ pathname: "/",
5857
+ method: "POST",
5858
+ authType: "AK",
5859
+ style: "RPC",
5860
+ reqBodyType: "formData",
5861
+ bodyType: "json",
5862
+ });
5863
+ return $tea.cast<CopySceneResponse>(await this.callApi(params, req, runtime), new CopySceneResponse({}));
5864
+ }
5865
+
5866
+ async copyScene(request: CopySceneRequest): Promise<CopySceneResponse> {
5867
+ let runtime = new $Util.RuntimeOptions({ });
5868
+ return await this.copySceneWithOptions(request, runtime);
5869
+ }
5870
+
5516
5871
  async detailProjectWithOptions(request: DetailProjectRequest, runtime: $Util.RuntimeOptions): Promise<DetailProjectResponse> {
5517
5872
  Util.validateModel(request);
5518
5873
  let query = { };
@@ -5716,6 +6071,35 @@ export default class Client extends OpenApi {
5716
6071
  return await this.getConnDataWithOptions(request, runtime);
5717
6072
  }
5718
6073
 
6074
+ async getCopySceneTaskStatusWithOptions(request: GetCopySceneTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetCopySceneTaskStatusResponse> {
6075
+ Util.validateModel(request);
6076
+ let query = { };
6077
+ if (!Util.isUnset(request.taskId)) {
6078
+ query["TaskId"] = request.taskId;
6079
+ }
6080
+
6081
+ let req = new $OpenApi.OpenApiRequest({
6082
+ query: OpenApiUtil.query(query),
6083
+ });
6084
+ let params = new $OpenApi.Params({
6085
+ action: "GetCopySceneTaskStatus",
6086
+ version: "2020-01-01",
6087
+ protocol: "HTTPS",
6088
+ pathname: "/",
6089
+ method: "POST",
6090
+ authType: "AK",
6091
+ style: "RPC",
6092
+ reqBodyType: "formData",
6093
+ bodyType: "json",
6094
+ });
6095
+ return $tea.cast<GetCopySceneTaskStatusResponse>(await this.callApi(params, req, runtime), new GetCopySceneTaskStatusResponse({}));
6096
+ }
6097
+
6098
+ async getCopySceneTaskStatus(request: GetCopySceneTaskStatusRequest): Promise<GetCopySceneTaskStatusResponse> {
6099
+ let runtime = new $Util.RuntimeOptions({ });
6100
+ return await this.getCopySceneTaskStatusWithOptions(request, runtime);
6101
+ }
6102
+
5719
6103
  async getHotspotConfigWithOptions(request: GetHotspotConfigRequest, runtime: $Util.RuntimeOptions): Promise<GetHotspotConfigResponse> {
5720
6104
  Util.validateModel(request);
5721
6105
  let query = { };
@@ -6444,6 +6828,10 @@ export default class Client extends OpenApi {
6444
6828
  query["ShowLayoutData"] = request.showLayoutData;
6445
6829
  }
6446
6830
 
6831
+ if (!Util.isUnset(request.sortField)) {
6832
+ query["SortField"] = request.sortField;
6833
+ }
6834
+
6447
6835
  let req = new $OpenApi.OpenApiRequest({
6448
6836
  query: OpenApiUtil.query(query),
6449
6837
  });
@@ -7114,8 +7502,14 @@ export default class Client extends OpenApi {
7114
7502
  return await this.updateSceneWithOptions(request, runtime);
7115
7503
  }
7116
7504
 
7117
- async updateSubSceneWithOptions(request: UpdateSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<UpdateSubSceneResponse> {
7118
- Util.validateModel(request);
7505
+ async updateSubSceneWithOptions(tmpReq: UpdateSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<UpdateSubSceneResponse> {
7506
+ Util.validateModel(tmpReq);
7507
+ let request = new UpdateSubSceneShrinkRequest({ });
7508
+ OpenApiUtil.convert(tmpReq, request);
7509
+ if (!Util.isUnset(tmpReq.viewPoint)) {
7510
+ request.viewPointShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.viewPoint, "ViewPoint", "json");
7511
+ }
7512
+
7119
7513
  let query = { };
7120
7514
  if (!Util.isUnset(request.id)) {
7121
7515
  query["Id"] = request.id;
@@ -7125,6 +7519,10 @@ export default class Client extends OpenApi {
7125
7519
  query["Name"] = request.name;
7126
7520
  }
7127
7521
 
7522
+ if (!Util.isUnset(request.viewPointShrink)) {
7523
+ query["ViewPoint"] = request.viewPointShrink;
7524
+ }
7525
+
7128
7526
  let req = new $OpenApi.OpenApiRequest({
7129
7527
  query: OpenApiUtil.query(query),
7130
7528
  });
@@ -7147,4 +7545,43 @@ export default class Client extends OpenApi {
7147
7545
  return await this.updateSubSceneWithOptions(request, runtime);
7148
7546
  }
7149
7547
 
7548
+ async updateSubSceneSeqWithOptions(tmpReq: UpdateSubSceneSeqRequest, runtime: $Util.RuntimeOptions): Promise<UpdateSubSceneSeqResponse> {
7549
+ Util.validateModel(tmpReq);
7550
+ let request = new UpdateSubSceneSeqShrinkRequest({ });
7551
+ OpenApiUtil.convert(tmpReq, request);
7552
+ if (!Util.isUnset(tmpReq.sortSubSceneIds)) {
7553
+ request.sortSubSceneIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sortSubSceneIds, "SortSubSceneIds", "json");
7554
+ }
7555
+
7556
+ let query = { };
7557
+ if (!Util.isUnset(request.sceneId)) {
7558
+ query["SceneId"] = request.sceneId;
7559
+ }
7560
+
7561
+ if (!Util.isUnset(request.sortSubSceneIdsShrink)) {
7562
+ query["SortSubSceneIds"] = request.sortSubSceneIdsShrink;
7563
+ }
7564
+
7565
+ let req = new $OpenApi.OpenApiRequest({
7566
+ query: OpenApiUtil.query(query),
7567
+ });
7568
+ let params = new $OpenApi.Params({
7569
+ action: "UpdateSubSceneSeq",
7570
+ version: "2020-01-01",
7571
+ protocol: "HTTPS",
7572
+ pathname: "/",
7573
+ method: "POST",
7574
+ authType: "AK",
7575
+ style: "RPC",
7576
+ reqBodyType: "formData",
7577
+ bodyType: "json",
7578
+ });
7579
+ return $tea.cast<UpdateSubSceneSeqResponse>(await this.callApi(params, req, runtime), new UpdateSubSceneSeqResponse({}));
7580
+ }
7581
+
7582
+ async updateSubSceneSeq(request: UpdateSubSceneSeqRequest): Promise<UpdateSubSceneSeqResponse> {
7583
+ let runtime = new $Util.RuntimeOptions({ });
7584
+ return await this.updateSubSceneSeqWithOptions(request, runtime);
7585
+ }
7586
+
7150
7587
  }