@alicloud/tdsr20200101 3.0.5 → 3.0.6

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
@@ -1243,6 +1243,52 @@ export declare class GetSceneBuildTaskStatusResponse extends $tea.Model {
1243
1243
  [key: string]: any;
1244
1244
  });
1245
1245
  }
1246
+ export declare class GetScenePreviewDataRequest extends $tea.Model {
1247
+ domain?: string;
1248
+ enabled?: boolean;
1249
+ previewToken?: string;
1250
+ showTag?: boolean;
1251
+ static names(): {
1252
+ [key: string]: string;
1253
+ };
1254
+ static types(): {
1255
+ [key: string]: any;
1256
+ };
1257
+ constructor(map?: {
1258
+ [key: string]: any;
1259
+ });
1260
+ }
1261
+ export declare class GetScenePreviewDataResponseBody extends $tea.Model {
1262
+ code?: number;
1263
+ data?: GetScenePreviewDataResponseBodyData;
1264
+ message?: string;
1265
+ requestId?: string;
1266
+ success?: boolean;
1267
+ static names(): {
1268
+ [key: string]: string;
1269
+ };
1270
+ static types(): {
1271
+ [key: string]: any;
1272
+ };
1273
+ constructor(map?: {
1274
+ [key: string]: any;
1275
+ });
1276
+ }
1277
+ export declare class GetScenePreviewDataResponse extends $tea.Model {
1278
+ headers: {
1279
+ [key: string]: string;
1280
+ };
1281
+ body: GetScenePreviewDataResponseBody;
1282
+ static names(): {
1283
+ [key: string]: string;
1284
+ };
1285
+ static types(): {
1286
+ [key: string]: any;
1287
+ };
1288
+ constructor(map?: {
1289
+ [key: string]: any;
1290
+ });
1291
+ }
1246
1292
  export declare class GetScenePreviewInfoRequest extends $tea.Model {
1247
1293
  domain?: string;
1248
1294
  enabled?: boolean;
@@ -2665,6 +2711,129 @@ export declare class GetHotspotSceneDataResponseBodyData extends $tea.Model {
2665
2711
  [key: string]: any;
2666
2712
  });
2667
2713
  }
2714
+ export declare class GetScenePreviewDataResponseBodyDataModelPanoListPosition extends $tea.Model {
2715
+ rotation?: number[];
2716
+ spot?: number[];
2717
+ viewpoint?: number[];
2718
+ static names(): {
2719
+ [key: string]: string;
2720
+ };
2721
+ static types(): {
2722
+ [key: string]: any;
2723
+ };
2724
+ constructor(map?: {
2725
+ [key: string]: any;
2726
+ });
2727
+ }
2728
+ export declare class GetScenePreviewDataResponseBodyDataModelPanoList extends $tea.Model {
2729
+ curRoomPicList?: string[];
2730
+ enabled?: boolean;
2731
+ floorIdx?: string;
2732
+ id?: string;
2733
+ mainImage?: boolean;
2734
+ neighbours?: string[];
2735
+ position?: GetScenePreviewDataResponseBodyDataModelPanoListPosition;
2736
+ rawName?: string;
2737
+ resource?: string;
2738
+ roomIdx?: string;
2739
+ subSceneId?: string;
2740
+ token?: string;
2741
+ virtualId?: string;
2742
+ virtualName?: string;
2743
+ static names(): {
2744
+ [key: string]: string;
2745
+ };
2746
+ static types(): {
2747
+ [key: string]: any;
2748
+ };
2749
+ constructor(map?: {
2750
+ [key: string]: any;
2751
+ });
2752
+ }
2753
+ export declare class GetScenePreviewDataResponseBodyDataModel extends $tea.Model {
2754
+ modelPath?: string;
2755
+ panoList?: GetScenePreviewDataResponseBodyDataModelPanoList[];
2756
+ textureModelPath?: string;
2757
+ texturePanoPath?: string;
2758
+ static names(): {
2759
+ [key: string]: string;
2760
+ };
2761
+ static types(): {
2762
+ [key: string]: any;
2763
+ };
2764
+ constructor(map?: {
2765
+ [key: string]: any;
2766
+ });
2767
+ }
2768
+ export declare class GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig extends $tea.Model {
2769
+ customText?: string;
2770
+ type?: string;
2771
+ static names(): {
2772
+ [key: string]: string;
2773
+ };
2774
+ static types(): {
2775
+ [key: string]: any;
2776
+ };
2777
+ constructor(map?: {
2778
+ [key: string]: any;
2779
+ });
2780
+ }
2781
+ export declare class GetScenePreviewDataResponseBodyDataTagsConfig extends $tea.Model {
2782
+ backgroundColor?: string;
2783
+ buttonConfig?: GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig;
2784
+ content?: string;
2785
+ formImgSize?: number[];
2786
+ formJumpType?: boolean;
2787
+ formSelectImgType?: string;
2788
+ images?: string[];
2789
+ isTagVisibleBy3d?: boolean;
2790
+ link?: string;
2791
+ panoId?: string;
2792
+ position?: number[];
2793
+ positionPanoCube?: number[];
2794
+ relatedPanoIds?: string[];
2795
+ sceneId?: number;
2796
+ title?: string;
2797
+ video?: string;
2798
+ static names(): {
2799
+ [key: string]: string;
2800
+ };
2801
+ static types(): {
2802
+ [key: string]: any;
2803
+ };
2804
+ constructor(map?: {
2805
+ [key: string]: any;
2806
+ });
2807
+ }
2808
+ export declare class GetScenePreviewDataResponseBodyDataTags extends $tea.Model {
2809
+ config?: GetScenePreviewDataResponseBodyDataTagsConfig;
2810
+ id?: string;
2811
+ position?: number[];
2812
+ positionPanoCube?: number[];
2813
+ type?: string;
2814
+ static names(): {
2815
+ [key: string]: string;
2816
+ };
2817
+ static types(): {
2818
+ [key: string]: any;
2819
+ };
2820
+ constructor(map?: {
2821
+ [key: string]: any;
2822
+ });
2823
+ }
2824
+ export declare class GetScenePreviewDataResponseBodyData extends $tea.Model {
2825
+ model?: GetScenePreviewDataResponseBodyDataModel;
2826
+ tags?: GetScenePreviewDataResponseBodyDataTags[];
2827
+ static names(): {
2828
+ [key: string]: string;
2829
+ };
2830
+ static types(): {
2831
+ [key: string]: any;
2832
+ };
2833
+ constructor(map?: {
2834
+ [key: string]: any;
2835
+ });
2836
+ }
2668
2837
  export declare class GetScenePreviewInfoResponseBodyData extends $tea.Model {
2669
2838
  modelPath?: string;
2670
2839
  panoList?: string;
@@ -2847,6 +3016,8 @@ export default class Client extends OpenApi {
2847
3016
  getRectifyImage(request: GetRectifyImageRequest): Promise<GetRectifyImageResponse>;
2848
3017
  getSceneBuildTaskStatusWithOptions(request: GetSceneBuildTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetSceneBuildTaskStatusResponse>;
2849
3018
  getSceneBuildTaskStatus(request: GetSceneBuildTaskStatusRequest): Promise<GetSceneBuildTaskStatusResponse>;
3019
+ getScenePreviewDataWithOptions(request: GetScenePreviewDataRequest, runtime: $Util.RuntimeOptions): Promise<GetScenePreviewDataResponse>;
3020
+ getScenePreviewData(request: GetScenePreviewDataRequest): Promise<GetScenePreviewDataResponse>;
2850
3021
  getScenePreviewInfoWithOptions(request: GetScenePreviewInfoRequest, runtime: $Util.RuntimeOptions): Promise<GetScenePreviewInfoResponse>;
2851
3022
  getScenePreviewInfo(request: GetScenePreviewInfoRequest): Promise<GetScenePreviewInfoResponse>;
2852
3023
  getSingleConnDataWithOptions(request: GetSingleConnDataRequest, runtime: $Util.RuntimeOptions): Promise<GetSingleConnDataResponse>;
package/dist/client.js CHANGED
@@ -1737,6 +1737,70 @@ class GetSceneBuildTaskStatusResponse extends $tea.Model {
1737
1737
  }
1738
1738
  }
1739
1739
  exports.GetSceneBuildTaskStatusResponse = GetSceneBuildTaskStatusResponse;
1740
+ class GetScenePreviewDataRequest extends $tea.Model {
1741
+ constructor(map) {
1742
+ super(map);
1743
+ }
1744
+ static names() {
1745
+ return {
1746
+ domain: 'Domain',
1747
+ enabled: 'Enabled',
1748
+ previewToken: 'PreviewToken',
1749
+ showTag: 'ShowTag',
1750
+ };
1751
+ }
1752
+ static types() {
1753
+ return {
1754
+ domain: 'string',
1755
+ enabled: 'boolean',
1756
+ previewToken: 'string',
1757
+ showTag: 'boolean',
1758
+ };
1759
+ }
1760
+ }
1761
+ exports.GetScenePreviewDataRequest = GetScenePreviewDataRequest;
1762
+ class GetScenePreviewDataResponseBody extends $tea.Model {
1763
+ constructor(map) {
1764
+ super(map);
1765
+ }
1766
+ static names() {
1767
+ return {
1768
+ code: 'Code',
1769
+ data: 'Data',
1770
+ message: 'Message',
1771
+ requestId: 'RequestId',
1772
+ success: 'Success',
1773
+ };
1774
+ }
1775
+ static types() {
1776
+ return {
1777
+ code: 'number',
1778
+ data: GetScenePreviewDataResponseBodyData,
1779
+ message: 'string',
1780
+ requestId: 'string',
1781
+ success: 'boolean',
1782
+ };
1783
+ }
1784
+ }
1785
+ exports.GetScenePreviewDataResponseBody = GetScenePreviewDataResponseBody;
1786
+ class GetScenePreviewDataResponse extends $tea.Model {
1787
+ constructor(map) {
1788
+ super(map);
1789
+ }
1790
+ static names() {
1791
+ return {
1792
+ headers: 'headers',
1793
+ body: 'body',
1794
+ };
1795
+ }
1796
+ static types() {
1797
+ return {
1798
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1799
+ body: GetScenePreviewDataResponseBody,
1800
+ };
1801
+ }
1802
+ }
1803
+ exports.GetScenePreviewDataResponse = GetScenePreviewDataResponse;
1740
1804
  class GetScenePreviewInfoRequest extends $tea.Model {
1741
1805
  constructor(map) {
1742
1806
  super(map);
@@ -3681,6 +3745,196 @@ class GetHotspotSceneDataResponseBodyData extends $tea.Model {
3681
3745
  }
3682
3746
  }
3683
3747
  exports.GetHotspotSceneDataResponseBodyData = GetHotspotSceneDataResponseBodyData;
3748
+ class GetScenePreviewDataResponseBodyDataModelPanoListPosition extends $tea.Model {
3749
+ constructor(map) {
3750
+ super(map);
3751
+ }
3752
+ static names() {
3753
+ return {
3754
+ rotation: 'Rotation',
3755
+ spot: 'Spot',
3756
+ viewpoint: 'Viewpoint',
3757
+ };
3758
+ }
3759
+ static types() {
3760
+ return {
3761
+ rotation: { 'type': 'array', 'itemType': 'number' },
3762
+ spot: { 'type': 'array', 'itemType': 'number' },
3763
+ viewpoint: { 'type': 'array', 'itemType': 'number' },
3764
+ };
3765
+ }
3766
+ }
3767
+ exports.GetScenePreviewDataResponseBodyDataModelPanoListPosition = GetScenePreviewDataResponseBodyDataModelPanoListPosition;
3768
+ class GetScenePreviewDataResponseBodyDataModelPanoList extends $tea.Model {
3769
+ constructor(map) {
3770
+ super(map);
3771
+ }
3772
+ static names() {
3773
+ return {
3774
+ curRoomPicList: 'CurRoomPicList',
3775
+ enabled: 'Enabled',
3776
+ floorIdx: 'FloorIdx',
3777
+ id: 'Id',
3778
+ mainImage: 'MainImage',
3779
+ neighbours: 'Neighbours',
3780
+ position: 'Position',
3781
+ rawName: 'RawName',
3782
+ resource: 'Resource',
3783
+ roomIdx: 'RoomIdx',
3784
+ subSceneId: 'SubSceneId',
3785
+ token: 'Token',
3786
+ virtualId: 'VirtualId',
3787
+ virtualName: 'VirtualName',
3788
+ };
3789
+ }
3790
+ static types() {
3791
+ return {
3792
+ curRoomPicList: { 'type': 'array', 'itemType': 'string' },
3793
+ enabled: 'boolean',
3794
+ floorIdx: 'string',
3795
+ id: 'string',
3796
+ mainImage: 'boolean',
3797
+ neighbours: { 'type': 'array', 'itemType': 'string' },
3798
+ position: GetScenePreviewDataResponseBodyDataModelPanoListPosition,
3799
+ rawName: 'string',
3800
+ resource: 'string',
3801
+ roomIdx: 'string',
3802
+ subSceneId: 'string',
3803
+ token: 'string',
3804
+ virtualId: 'string',
3805
+ virtualName: 'string',
3806
+ };
3807
+ }
3808
+ }
3809
+ exports.GetScenePreviewDataResponseBodyDataModelPanoList = GetScenePreviewDataResponseBodyDataModelPanoList;
3810
+ class GetScenePreviewDataResponseBodyDataModel extends $tea.Model {
3811
+ constructor(map) {
3812
+ super(map);
3813
+ }
3814
+ static names() {
3815
+ return {
3816
+ modelPath: 'ModelPath',
3817
+ panoList: 'PanoList',
3818
+ textureModelPath: 'TextureModelPath',
3819
+ texturePanoPath: 'TexturePanoPath',
3820
+ };
3821
+ }
3822
+ static types() {
3823
+ return {
3824
+ modelPath: 'string',
3825
+ panoList: { 'type': 'array', 'itemType': GetScenePreviewDataResponseBodyDataModelPanoList },
3826
+ textureModelPath: 'string',
3827
+ texturePanoPath: 'string',
3828
+ };
3829
+ }
3830
+ }
3831
+ exports.GetScenePreviewDataResponseBodyDataModel = GetScenePreviewDataResponseBodyDataModel;
3832
+ class GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig extends $tea.Model {
3833
+ constructor(map) {
3834
+ super(map);
3835
+ }
3836
+ static names() {
3837
+ return {
3838
+ customText: 'CustomText',
3839
+ type: 'Type',
3840
+ };
3841
+ }
3842
+ static types() {
3843
+ return {
3844
+ customText: 'string',
3845
+ type: 'string',
3846
+ };
3847
+ }
3848
+ }
3849
+ exports.GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig = GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig;
3850
+ class GetScenePreviewDataResponseBodyDataTagsConfig extends $tea.Model {
3851
+ constructor(map) {
3852
+ super(map);
3853
+ }
3854
+ static names() {
3855
+ return {
3856
+ backgroundColor: 'BackgroundColor',
3857
+ buttonConfig: 'ButtonConfig',
3858
+ content: 'Content',
3859
+ formImgSize: 'FormImgSize',
3860
+ formJumpType: 'FormJumpType',
3861
+ formSelectImgType: 'FormSelectImgType',
3862
+ images: 'Images',
3863
+ isTagVisibleBy3d: 'IsTagVisibleBy3d',
3864
+ link: 'Link',
3865
+ panoId: 'PanoId',
3866
+ position: 'Position',
3867
+ positionPanoCube: 'PositionPanoCube',
3868
+ relatedPanoIds: 'RelatedPanoIds',
3869
+ sceneId: 'SceneId',
3870
+ title: 'Title',
3871
+ video: 'Video',
3872
+ };
3873
+ }
3874
+ static types() {
3875
+ return {
3876
+ backgroundColor: 'string',
3877
+ buttonConfig: GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig,
3878
+ content: 'string',
3879
+ formImgSize: { 'type': 'array', 'itemType': 'number' },
3880
+ formJumpType: 'boolean',
3881
+ formSelectImgType: 'string',
3882
+ images: { 'type': 'array', 'itemType': 'string' },
3883
+ isTagVisibleBy3d: 'boolean',
3884
+ link: 'string',
3885
+ panoId: 'string',
3886
+ position: { 'type': 'array', 'itemType': 'number' },
3887
+ positionPanoCube: { 'type': 'array', 'itemType': 'number' },
3888
+ relatedPanoIds: { 'type': 'array', 'itemType': 'string' },
3889
+ sceneId: 'number',
3890
+ title: 'string',
3891
+ video: 'string',
3892
+ };
3893
+ }
3894
+ }
3895
+ exports.GetScenePreviewDataResponseBodyDataTagsConfig = GetScenePreviewDataResponseBodyDataTagsConfig;
3896
+ class GetScenePreviewDataResponseBodyDataTags extends $tea.Model {
3897
+ constructor(map) {
3898
+ super(map);
3899
+ }
3900
+ static names() {
3901
+ return {
3902
+ config: 'Config',
3903
+ id: 'Id',
3904
+ position: 'Position',
3905
+ positionPanoCube: 'PositionPanoCube',
3906
+ type: 'Type',
3907
+ };
3908
+ }
3909
+ static types() {
3910
+ return {
3911
+ config: GetScenePreviewDataResponseBodyDataTagsConfig,
3912
+ id: 'string',
3913
+ position: { 'type': 'array', 'itemType': 'number' },
3914
+ positionPanoCube: { 'type': 'array', 'itemType': 'number' },
3915
+ type: 'string',
3916
+ };
3917
+ }
3918
+ }
3919
+ exports.GetScenePreviewDataResponseBodyDataTags = GetScenePreviewDataResponseBodyDataTags;
3920
+ class GetScenePreviewDataResponseBodyData extends $tea.Model {
3921
+ constructor(map) {
3922
+ super(map);
3923
+ }
3924
+ static names() {
3925
+ return {
3926
+ model: 'Model',
3927
+ tags: 'Tags',
3928
+ };
3929
+ }
3930
+ static types() {
3931
+ return {
3932
+ model: GetScenePreviewDataResponseBodyDataModel,
3933
+ tags: { 'type': 'array', 'itemType': GetScenePreviewDataResponseBodyDataTags },
3934
+ };
3935
+ }
3936
+ }
3937
+ exports.GetScenePreviewDataResponseBodyData = GetScenePreviewDataResponseBodyData;
3684
3938
  class GetScenePreviewInfoResponseBodyData extends $tea.Model {
3685
3939
  constructor(map) {
3686
3940
  super(map);
@@ -4703,6 +4957,41 @@ class Client extends openapi_client_1.default {
4703
4957
  let runtime = new $Util.RuntimeOptions({});
4704
4958
  return await this.getSceneBuildTaskStatusWithOptions(request, runtime);
4705
4959
  }
4960
+ async getScenePreviewDataWithOptions(request, runtime) {
4961
+ tea_util_1.default.validateModel(request);
4962
+ let query = {};
4963
+ if (!tea_util_1.default.isUnset(request.domain)) {
4964
+ query["Domain"] = request.domain;
4965
+ }
4966
+ if (!tea_util_1.default.isUnset(request.enabled)) {
4967
+ query["Enabled"] = request.enabled;
4968
+ }
4969
+ if (!tea_util_1.default.isUnset(request.previewToken)) {
4970
+ query["PreviewToken"] = request.previewToken;
4971
+ }
4972
+ if (!tea_util_1.default.isUnset(request.showTag)) {
4973
+ query["ShowTag"] = request.showTag;
4974
+ }
4975
+ let req = new $OpenApi.OpenApiRequest({
4976
+ query: openapi_util_1.default.query(query),
4977
+ });
4978
+ let params = new $OpenApi.Params({
4979
+ action: "GetScenePreviewData",
4980
+ version: "2020-01-01",
4981
+ protocol: "HTTPS",
4982
+ pathname: "/",
4983
+ method: "POST",
4984
+ authType: "AK",
4985
+ style: "RPC",
4986
+ reqBodyType: "formData",
4987
+ bodyType: "json",
4988
+ });
4989
+ return $tea.cast(await this.callApi(params, req, runtime), new GetScenePreviewDataResponse({}));
4990
+ }
4991
+ async getScenePreviewData(request) {
4992
+ let runtime = new $Util.RuntimeOptions({});
4993
+ return await this.getScenePreviewDataWithOptions(request, runtime);
4994
+ }
4706
4995
  async getScenePreviewInfoWithOptions(request, runtime) {
4707
4996
  tea_util_1.default.validateModel(request);
4708
4997
  let query = {};