@procore/bim-webviewer-sdk 17.4.0-rc.2 → 17.4.0-rc.4
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/CHANGELOG.md +5 -0
- package/dist/Procore.Bim.Webviewer.d.ts +1 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/api/bim_viewpoints.d.ts +5 -0
- package/dist/types/src/api/types/FileExtraction.d.ts +1 -0
- package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +4 -0
- package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { FileExtraction, PropertiesFile, FileVersion, Attachment } from '../../a
|
|
|
2
2
|
import { ModelRevision } from '../../api/types/ModelRevision';
|
|
3
3
|
import * as FileExtractions from '../../api/bim_file_extractions';
|
|
4
4
|
import * as BimModelRevisions from '../../api/bim_model_revisions';
|
|
5
|
+
import * as BimViewpoints from '../../api/bim_viewpoints';
|
|
5
6
|
import { Options, GeometryBundle } from '../../types/WebviewerOptions';
|
|
6
7
|
import { InternalViewpoint } from '../../viewpoint/types';
|
|
7
8
|
import { Model } from '../../api/types/Model';
|
|
@@ -14,6 +15,7 @@ export type ResourceBundle = ({
|
|
|
14
15
|
type Api = {
|
|
15
16
|
getBimFileExtraction: typeof FileExtractions.GetBimFileExtraction;
|
|
16
17
|
getBimModelRevision: typeof BimModelRevisions.GetBimModelRevision;
|
|
18
|
+
getBimViewpoint: typeof BimViewpoints.GetBimViewpoint;
|
|
17
19
|
};
|
|
18
20
|
type ApiOptions = Partial<Api>;
|
|
19
21
|
export declare const API_MODE: {
|
|
@@ -40,8 +42,10 @@ export declare class ApiMetaData {
|
|
|
40
42
|
get companyId(): Promise<number>;
|
|
41
43
|
get baseUrl(): Promise<string>;
|
|
42
44
|
get fileExtractionIds(): Promise<number[]>;
|
|
45
|
+
get fileExtraction(): Promise<FileExtraction>;
|
|
43
46
|
get modelRevision(): Promise<ModelRevision>;
|
|
44
47
|
get homeViewpoint(): Promise<InternalViewpoint | undefined>;
|
|
45
48
|
private get homeViewpointInModelRevisionMode();
|
|
49
|
+
private get homeViewpointInFileExtractionMode();
|
|
46
50
|
}
|
|
47
51
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { FileExtractionModePwfV2OverrideOptions, FileExtractionModePwfV1OverrideOptions, FileExtractionModeOptions, ModelRevisionModePwfV2OverrideOptions, ModelRevisionModePwfV1OverrideOptions, ModelRevisionModeOptions, FileExtractionModePwfV1OverrideResource, FileExtractionModePwfV2OverrideResource, ModelRevisionModePwfV1OverrideResource, ModelRevisionModePwfV2OverrideResource, ModelRevisionModeResource, ResourceOptions } from '../../../types/WebviewerOptions';
|
|
2
2
|
import { FileExtraction } from '../../../api/types/FileExtraction';
|
|
3
|
-
import { ModelRevision
|
|
3
|
+
import { ModelRevision } from '../../../api/types/ModelRevision';
|
|
4
4
|
import { InternalViewpoint } from '../../../viewpoint/types';
|
|
5
|
+
import type { Viewpoint } from '../../../api/types/Viewpoint';
|
|
5
6
|
export declare const projectId = 4;
|
|
6
7
|
export declare const companyId = 1;
|
|
7
8
|
export declare const fileExtractionId = 1;
|
|
@@ -67,6 +68,6 @@ export declare const modelRevisionModePwfV2OverrideResourceOptions: ResourceOpti
|
|
|
67
68
|
export declare const modelRevisionModeResource: ModelRevisionModeResource;
|
|
68
69
|
export declare const modelRevisionModeResourceOptions: ResourceOptions;
|
|
69
70
|
export declare const fileExtraction: FileExtraction;
|
|
70
|
-
export declare const
|
|
71
|
+
export declare const viewpoint: Viewpoint;
|
|
71
72
|
export declare const modelRevision: ModelRevision;
|
|
72
73
|
export declare const bimHomeViewpoint: InternalViewpoint;
|