@evercam/api 1.0.0-44d59f453 → 1.0.0-4544b2a4c
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/README.md +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +224 -0
- package/dist/api/api/adminApi.d.ts +379 -0
- package/dist/api/api/aiApi.d.ts +259 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +2 -2
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +353 -0
- package/dist/api/api/evercamLabsApi.d.ts +37 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
- package/dist/api/api/index.d.ts +14 -0
- package/dist/api/api/ingestApi.d.ts +170 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +368 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +89 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +289 -121
- package/dist/api/types/anpr.d.ts +237 -0
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +257 -0
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +123 -0
- package/dist/{types → api/types}/axios.d.ts +32 -12
- package/dist/{types → api/types}/bim.d.ts +80 -16
- package/dist/api/types/camera.d.ts +660 -0
- package/dist/api/types/comments.d.ts +96 -0
- package/dist/api/types/company.d.ts +121 -0
- package/dist/{types → api/types}/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +120 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/{types → api/types}/errors.d.ts +31 -1
- package/dist/{types → api/types}/gateReport.d.ts +86 -172
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +27 -2
- package/dist/{types → api/types}/index.d.ts +26 -5
- package/dist/api/types/ingest.d.ts +319 -0
- package/dist/{types → api/types}/kit.d.ts +174 -108
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +107 -0
- package/dist/api/types/nvr.d.ts +67 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +125 -0
- package/dist/api/types/posthog.d.ts +105 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
- package/dist/api/types/project.d.ts +294 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +20 -0
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -9
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +34 -10
- package/dist/{types → api/types}/shared.d.ts +47 -44
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +144 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +30 -0
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +14 -11
- package/dist/{types → api/types}/user.d.ts +143 -59
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +111 -22
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3260 -1119
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +930 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +9 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +80 -0
- package/dist/shared/types/report.d.ts +108 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +8 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -307
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/anpr.d.ts +0 -98
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -564
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/connector.d.ts +0 -16
- package/dist/types/copilot.d.ts +0 -156
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/nvr.d.ts +0 -36
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/sitePlanner.d.ts +0 -28
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AutodeskUserHub = {
|
|
2
2
|
text: string;
|
|
3
3
|
value: string;
|
|
4
|
-
}
|
|
5
|
-
export type
|
|
4
|
+
};
|
|
5
|
+
export type AutodeskProject = {
|
|
6
6
|
text: string;
|
|
7
7
|
value: string;
|
|
8
|
-
}
|
|
9
|
-
export type
|
|
8
|
+
};
|
|
9
|
+
export type AutodeskFolder = {
|
|
10
10
|
text: string;
|
|
11
11
|
value: string;
|
|
12
12
|
allowedFileType: string;
|
|
13
13
|
allowedFolderType: string;
|
|
14
|
-
children: Array<
|
|
14
|
+
children: Array<AutodeskFolder>;
|
|
15
15
|
parentName?: string;
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type AutodeskSnapshot = {
|
|
18
18
|
projectId: string;
|
|
19
19
|
folderId: string;
|
|
20
20
|
accFileType: string;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { AconexIdentifiers, CameraExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum AutomationProvider {
|
|
3
|
+
Aconex = "aconex",
|
|
4
|
+
Procore = "procore",
|
|
5
|
+
Autodesk = "autodesk",
|
|
6
|
+
Email = "email"
|
|
7
|
+
}
|
|
8
|
+
export declare enum AutomationType {
|
|
9
|
+
Photo = "photo",
|
|
10
|
+
Compare = "compare",
|
|
11
|
+
GateReport = "gate_report",
|
|
12
|
+
Weather = "weather"
|
|
13
|
+
}
|
|
14
|
+
export declare enum AutomationWeatherReportType {
|
|
15
|
+
Forecast = "forecast",
|
|
16
|
+
History = "history"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AutomationExportFormat {
|
|
19
|
+
Pdf = "pdf",
|
|
20
|
+
Csv = "csv"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AutomationWeatherDataGranularity {
|
|
23
|
+
Daily = "daily",
|
|
24
|
+
Hourly = "hourly"
|
|
25
|
+
}
|
|
26
|
+
export type AutomationWeatherConfig = {
|
|
27
|
+
reportType: AutomationWeatherReportType;
|
|
28
|
+
exportFormat: AutomationExportFormat;
|
|
29
|
+
dataGranularity?: AutomationWeatherDataGranularity;
|
|
30
|
+
selectedColumns?: string[];
|
|
31
|
+
forecastDays?: number;
|
|
32
|
+
};
|
|
33
|
+
export type AutomationCompareConfig = {
|
|
34
|
+
compareDelay: number;
|
|
35
|
+
};
|
|
36
|
+
export type AutomationEmailRecipient = string | {
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
export type AutomationGateReportConfig = {
|
|
40
|
+
projectExid: string;
|
|
41
|
+
vehicleTypes: string[];
|
|
42
|
+
fileType: string;
|
|
43
|
+
period: number;
|
|
44
|
+
columns: string[];
|
|
45
|
+
};
|
|
46
|
+
export type AutomationEmailProviderConfig = {
|
|
47
|
+
cameraExids?: CameraExid[];
|
|
48
|
+
recipients: string | AutomationEmailRecipient[];
|
|
49
|
+
};
|
|
50
|
+
export type AutomationProcoreProviderConfig = {
|
|
51
|
+
companyId: number;
|
|
52
|
+
companyName: string;
|
|
53
|
+
projectId: number;
|
|
54
|
+
projectName: string;
|
|
55
|
+
categoryId: number;
|
|
56
|
+
categoryName: string;
|
|
57
|
+
};
|
|
58
|
+
export type AutomationAconexProviderConfig = {
|
|
59
|
+
projectId: number;
|
|
60
|
+
projectName: string;
|
|
61
|
+
} & Partial<Record<AconexIdentifiers, string | number | boolean>>;
|
|
62
|
+
export type AutomationAutodeskProviderConfig = {
|
|
63
|
+
hubId: number;
|
|
64
|
+
hubName: string;
|
|
65
|
+
projectId: number;
|
|
66
|
+
projectName: string;
|
|
67
|
+
folderId: number;
|
|
68
|
+
accFileType: string;
|
|
69
|
+
accFolderType: string;
|
|
70
|
+
folderName: string;
|
|
71
|
+
};
|
|
72
|
+
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
73
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
|
|
74
|
+
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
75
|
+
export type Automation = {
|
|
76
|
+
id?: number;
|
|
77
|
+
cameraExids: CameraExid[];
|
|
78
|
+
name: string;
|
|
79
|
+
subject?: string;
|
|
80
|
+
provider: AutomationProvider;
|
|
81
|
+
type: AutomationType;
|
|
82
|
+
config: AutomationConfig;
|
|
83
|
+
notifyDays: string[];
|
|
84
|
+
notifyTime: string;
|
|
85
|
+
timezone: string;
|
|
86
|
+
isPaused: boolean;
|
|
87
|
+
restrictedCameraExids?: string[];
|
|
88
|
+
};
|
|
89
|
+
export declare enum AutomationConfigStep {
|
|
90
|
+
Type = "type",
|
|
91
|
+
Cameras = "cameras",
|
|
92
|
+
Settings = "settings",
|
|
93
|
+
Destination = "destination"
|
|
94
|
+
}
|
|
95
|
+
export type AutomationProviderOption = {
|
|
96
|
+
labelTranslationKey: string;
|
|
97
|
+
descriptionTranslationKey: string;
|
|
98
|
+
value: AutomationProvider;
|
|
99
|
+
icon: string;
|
|
100
|
+
iconSize?: string;
|
|
101
|
+
requiresConnection: boolean;
|
|
102
|
+
};
|
|
103
|
+
export type AutomationTypeOption = {
|
|
104
|
+
labelTranslationKey: string;
|
|
105
|
+
descriptionTranslationKey: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
value: AutomationType;
|
|
109
|
+
icon: string;
|
|
110
|
+
iconType?: string;
|
|
111
|
+
};
|
|
112
|
+
export type FormattedAutomation = {
|
|
113
|
+
cameraExids?: string;
|
|
114
|
+
name: string;
|
|
115
|
+
subject: string;
|
|
116
|
+
provider: AutomationProvider;
|
|
117
|
+
type: AutomationType;
|
|
118
|
+
config: Partial<AutomationProviderConfig> & Partial<AutomationOptionsConfig>;
|
|
119
|
+
notifyDays: string;
|
|
120
|
+
notifyTime: string;
|
|
121
|
+
timezone: string;
|
|
122
|
+
isPaused: boolean;
|
|
123
|
+
};
|
|
@@ -1,44 +1,60 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
|
-
|
|
3
|
-
duration: number;
|
|
4
|
-
error?: AxiosError;
|
|
5
|
-
}>;
|
|
2
|
+
import { Swr } from "@evercam/api/api/client/swr/Swr";
|
|
6
3
|
export type AxiosEnvironment = {
|
|
7
|
-
isStaging?: boolean;
|
|
8
4
|
baseUrl?: string | null;
|
|
9
5
|
stagingAiApiUrl?: string | null;
|
|
10
6
|
aiApiUrl?: string | null;
|
|
11
|
-
|
|
7
|
+
ingestDroneApi?: string | null;
|
|
8
|
+
ingest360Api?: string | null;
|
|
9
|
+
ingestGpuApiUrl?: string | null;
|
|
12
10
|
posthogApiUrl?: string | null;
|
|
13
11
|
posthogProjectId?: string | null;
|
|
14
|
-
posthogPrivateApiKey?: string | null;
|
|
15
12
|
firebaseVideowallUrl?: string | null;
|
|
16
13
|
weatherApiBaseUrl?: string | null;
|
|
17
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
16
|
+
reportsApiUrl?: string | null;
|
|
18
17
|
firebaseDbLink?: string | null;
|
|
18
|
+
firebaseStorageUrl?: string | null;
|
|
19
|
+
firebaseStorageToken?: string | null;
|
|
20
|
+
forgeTokenServerUrl?: string | null;
|
|
19
21
|
snapshotsURL?: string | null;
|
|
20
22
|
app?: string | null;
|
|
21
23
|
getAuthToken?: () => string | null;
|
|
22
24
|
errorLogger?: (error: AxiosError) => void;
|
|
25
|
+
swrKey?: string;
|
|
23
26
|
};
|
|
24
27
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
25
28
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
26
29
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
30
|
+
export type RequestManager = {
|
|
31
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
32
|
+
cancelToken: (key: string) => void;
|
|
33
|
+
cancelAll: () => void;
|
|
34
|
+
};
|
|
27
35
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
28
36
|
CancelToken: CancelTokenStatic;
|
|
29
|
-
isCancel: (value: AxiosResponse | AxiosError |
|
|
37
|
+
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
30
38
|
setToken: (token: string) => void;
|
|
31
39
|
setHeader: (headerName: string, value: any) => void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resetCancelTokens: () => void;
|
|
35
|
-
cancelRequests: () => void;
|
|
40
|
+
createRequestManager: () => RequestManager;
|
|
41
|
+
requestManager: RequestManager;
|
|
36
42
|
env: AxiosEnvironment;
|
|
37
43
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
38
44
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
39
45
|
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
40
46
|
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
47
|
+
swr: Swr;
|
|
41
48
|
}
|
|
49
|
+
export type ResponseValue<T> = T | undefined;
|
|
50
|
+
export type SwrResponse<T> = {
|
|
51
|
+
cachedValue: ResponseValue<T>;
|
|
52
|
+
freshPromise: Promise<ResponseValue<T>>;
|
|
53
|
+
};
|
|
54
|
+
export type SwrRequestConfig<T> = Omit<AxiosRequestConfig, "onSwrHit" | "onSwrRefresh"> & {
|
|
55
|
+
onSwrHit?: (data: T) => unknown;
|
|
56
|
+
onSwrRefresh?: (data: T) => unknown;
|
|
57
|
+
};
|
|
42
58
|
declare module "axios" {
|
|
43
59
|
interface AxiosRequestConfig {
|
|
44
60
|
raw?: boolean;
|
|
@@ -47,5 +63,9 @@ declare module "axios" {
|
|
|
47
63
|
_metadata?: {
|
|
48
64
|
startTime: number;
|
|
49
65
|
};
|
|
66
|
+
swr?: boolean;
|
|
67
|
+
onSwrHit?: (data: any) => unknown;
|
|
68
|
+
onSwrRefresh?: (data: any) => unknown;
|
|
69
|
+
onSwrError?: (error: Error) => unknown;
|
|
50
70
|
}
|
|
51
71
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -21,6 +21,7 @@ export type BimModelRequestPayload = {
|
|
|
21
21
|
apiId?: string;
|
|
22
22
|
};
|
|
23
23
|
export type BimModelResponsePayload = {
|
|
24
|
+
id?: number;
|
|
24
25
|
dates?: [string];
|
|
25
26
|
height?: number;
|
|
26
27
|
imageUrl?: string;
|
|
@@ -40,7 +41,7 @@ export type BimCompareExportRequestPayload = {
|
|
|
40
41
|
cameraExid: string;
|
|
41
42
|
snapshotDate: string;
|
|
42
43
|
bimDate: string;
|
|
43
|
-
embed
|
|
44
|
+
embed?: string;
|
|
44
45
|
compareExid: string;
|
|
45
46
|
createAnimation: boolean;
|
|
46
47
|
bimTransparency?: number;
|
|
@@ -48,14 +49,15 @@ export type BimCompareExportRequestPayload = {
|
|
|
48
49
|
layerId?: number;
|
|
49
50
|
maskId?: number;
|
|
50
51
|
evercamWatermark?: boolean;
|
|
52
|
+
logo?: CompareLogoPosition;
|
|
51
53
|
};
|
|
52
54
|
export type BimLayerResponsePayload = {
|
|
53
55
|
id: number;
|
|
54
56
|
name: string;
|
|
55
|
-
insertedAt:
|
|
56
|
-
updatedAt:
|
|
57
|
+
insertedAt: string;
|
|
58
|
+
updatedAt: string;
|
|
57
59
|
shapes: string;
|
|
58
|
-
startAt:
|
|
60
|
+
startAt: string;
|
|
59
61
|
};
|
|
60
62
|
export declare enum BimUploadStatus {
|
|
61
63
|
Initial = 0,
|
|
@@ -63,9 +65,19 @@ export declare enum BimUploadStatus {
|
|
|
63
65
|
Success = 2,
|
|
64
66
|
Failed = 3
|
|
65
67
|
}
|
|
68
|
+
export declare enum BimSoftware {
|
|
69
|
+
Synchro = "synchro",
|
|
70
|
+
Navisworks = "navisworks",
|
|
71
|
+
Revit = "revit",
|
|
72
|
+
Tekla = "tekla",
|
|
73
|
+
Archicad = "archicad",
|
|
74
|
+
Solibri = "solibri",
|
|
75
|
+
Bim360 = "bim360",
|
|
76
|
+
Other = "other"
|
|
77
|
+
}
|
|
66
78
|
export type BimCreationPayload = {
|
|
67
79
|
title: string;
|
|
68
|
-
software:
|
|
80
|
+
software: BimSoftware;
|
|
69
81
|
model: string;
|
|
70
82
|
apiKey: string;
|
|
71
83
|
apiId: string;
|
|
@@ -78,24 +90,34 @@ export type BimCreationPayload = {
|
|
|
78
90
|
};
|
|
79
91
|
export declare enum BIMLayerTypes {
|
|
80
92
|
Mask = "mask",
|
|
93
|
+
BimMask = "bim_mask",
|
|
81
94
|
MeasuringGrid = "measuring_grid",
|
|
82
95
|
BimArchitectural = "bim_architectural",
|
|
83
96
|
BimStructural = "bim_structural",
|
|
84
97
|
Bim4D = "bim_4d",
|
|
85
98
|
BimMep = "bim_mep",
|
|
86
99
|
RecordingsTag = "recordings_tag",
|
|
87
|
-
Milestone = "milestone"
|
|
100
|
+
Milestone = "milestone",
|
|
101
|
+
ForgeBimArchitectural = "forge_bim_architectural",
|
|
102
|
+
ForgeBimStructural = "forge_bim_structural",
|
|
103
|
+
ForgeBim4D = "forge_bim_4d",
|
|
104
|
+
ForgeBimMep = "forge_bim_mep"
|
|
88
105
|
}
|
|
89
|
-
export type BimLayersQueryParams = {
|
|
106
|
+
export type BimLayersQueryParams = Partial<{
|
|
90
107
|
layerType: BIMLayerTypes;
|
|
91
108
|
timestamp: DateType;
|
|
92
|
-
|
|
109
|
+
apiKey: string;
|
|
110
|
+
apiId: string;
|
|
111
|
+
}>;
|
|
93
112
|
export type BIMLayerPostPayload = {
|
|
94
113
|
name: string;
|
|
95
114
|
layerType: BIMLayerTypes;
|
|
96
115
|
startAt: DateType;
|
|
97
116
|
shapes: string;
|
|
98
|
-
zIndex
|
|
117
|
+
zIndex?: number;
|
|
118
|
+
displayName?: string;
|
|
119
|
+
apiKey?: string;
|
|
120
|
+
apiId?: string;
|
|
99
121
|
};
|
|
100
122
|
export type BIMLayer = {
|
|
101
123
|
id: number;
|
|
@@ -105,19 +127,38 @@ export type BIMLayer = {
|
|
|
105
127
|
insertedAt: DateType;
|
|
106
128
|
updatedAt: DateType;
|
|
107
129
|
shapes: string;
|
|
130
|
+
displayName?: string;
|
|
108
131
|
};
|
|
132
|
+
export type ForgeBIMLayerShapes = {
|
|
133
|
+
urn?: string;
|
|
134
|
+
forgeLayerViewpoint?: Record<string, unknown>;
|
|
135
|
+
hiddenElements?: number[];
|
|
136
|
+
};
|
|
137
|
+
export type ForgeBIMLayer = BIMLayer & ForgeBIMLayerShapes;
|
|
109
138
|
export type BimPendingImage = {
|
|
110
139
|
url: string;
|
|
111
|
-
|
|
140
|
+
key: string;
|
|
141
|
+
date?: string;
|
|
142
|
+
};
|
|
143
|
+
export type BimCameraParametersFile = {
|
|
144
|
+
distortion_coeffs: number[];
|
|
145
|
+
horizontal_FOV: number;
|
|
146
|
+
vertical_FOV: number;
|
|
147
|
+
focal_length1: number;
|
|
148
|
+
focal_length2: number;
|
|
149
|
+
centerX: number;
|
|
150
|
+
centerY: number;
|
|
112
151
|
};
|
|
113
152
|
export type BimUploadCameraParameters = {
|
|
114
|
-
|
|
153
|
+
distortionCoeffs: number[];
|
|
115
154
|
horizontalFov: number;
|
|
116
155
|
verticalFov: number;
|
|
117
156
|
focalLength1: number;
|
|
118
157
|
focalLength2: number;
|
|
119
158
|
centerX: number;
|
|
120
159
|
centerY: number;
|
|
160
|
+
apiId?: string;
|
|
161
|
+
apiKey?: string;
|
|
121
162
|
};
|
|
122
163
|
export type PendingBimImagesParams = {
|
|
123
164
|
model: string;
|
|
@@ -126,14 +167,12 @@ export type PendingBimImagesParams = {
|
|
|
126
167
|
};
|
|
127
168
|
export type ProcessPendingImagesBimParams = {
|
|
128
169
|
model: string;
|
|
129
|
-
names:
|
|
170
|
+
names: BimPendingImage[];
|
|
130
171
|
enableDistortion: boolean;
|
|
131
172
|
apiId: string;
|
|
132
173
|
apiKey: string;
|
|
133
174
|
};
|
|
134
|
-
export type BimUploadsQueryParams = {
|
|
135
|
-
page: number;
|
|
136
|
-
limit: number;
|
|
175
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
137
176
|
projectId: string;
|
|
138
177
|
id: string;
|
|
139
178
|
uploadedBy: string;
|
|
@@ -145,3 +184,28 @@ export type BimUploadPayload = {
|
|
|
145
184
|
fileExtension: string;
|
|
146
185
|
}[];
|
|
147
186
|
};
|
|
187
|
+
export declare enum ForgeBimUploadMethod {
|
|
188
|
+
FileUpload = "file_upload",
|
|
189
|
+
AutodeskAcc = "autodesk_acc"
|
|
190
|
+
}
|
|
191
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
192
|
+
InvalidType = "invalid_type",
|
|
193
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
194
|
+
}
|
|
195
|
+
export declare enum ForgeBimUploadStage {
|
|
196
|
+
TusUpload = "tus_upload",
|
|
197
|
+
IngestUpload = "ingest_upload"
|
|
198
|
+
}
|
|
199
|
+
export declare enum ForgeBimDialogTrigger {
|
|
200
|
+
UpdateModel = "update_model",
|
|
201
|
+
AddModel = "add_model",
|
|
202
|
+
InitialSetup = "initial_setup"
|
|
203
|
+
}
|
|
204
|
+
export type BimUpdatedWebhookPayload = {
|
|
205
|
+
eventName: "bim.updated";
|
|
206
|
+
projectId: string;
|
|
207
|
+
data: {
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
bimIdentifier: string;
|
|
210
|
+
};
|
|
211
|
+
};
|