@evercam/api 1.0.0-eabc633d1 → 1.0.0-eb137e485
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 +4 -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 +251 -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 +1 -1
- 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 +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +288 -120
- package/dist/{types → api/types}/anpr.d.ts +65 -19
- 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 -11
- package/dist/{types → api/types}/bim.d.ts +65 -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 +51 -169
- 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 +25 -5
- package/dist/api/types/ingest.d.ts +314 -0
- package/dist/{types → api/types}/kit.d.ts +172 -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 +89 -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 +293 -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 +29 -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 +7 -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 +108 -19
- 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 +3234 -1184
- 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 +763 -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 +67 -0
- package/dist/shared/types/report.d.ts +107 -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 -304
- package/dist/api/aiApi.d.ts +0 -110
- 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/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -565
- 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/coolify.d.ts +0 -18
- package/dist/types/copilot.d.ts +0 -157
- 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
|
@@ -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,43 +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
4
|
baseUrl?: string | null;
|
|
8
5
|
stagingAiApiUrl?: string | null;
|
|
9
6
|
aiApiUrl?: string | null;
|
|
10
|
-
|
|
7
|
+
ingestDroneApi?: string | null;
|
|
8
|
+
ingest360Api?: string | null;
|
|
9
|
+
ingestGpuApiUrl?: string | null;
|
|
11
10
|
posthogApiUrl?: string | null;
|
|
12
11
|
posthogProjectId?: string | null;
|
|
13
|
-
posthogPrivateApiKey?: string | null;
|
|
14
12
|
firebaseVideowallUrl?: string | null;
|
|
15
13
|
weatherApiBaseUrl?: string | null;
|
|
16
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
16
|
+
reportsApiUrl?: string | null;
|
|
17
17
|
firebaseDbLink?: string | null;
|
|
18
|
+
firebaseStorageUrl?: string | null;
|
|
19
|
+
firebaseStorageToken?: string | null;
|
|
20
|
+
forgeTokenServerUrl?: string | null;
|
|
18
21
|
snapshotsURL?: string | null;
|
|
19
22
|
app?: string | null;
|
|
20
23
|
getAuthToken?: () => string | null;
|
|
21
24
|
errorLogger?: (error: AxiosError) => void;
|
|
25
|
+
swrKey?: string;
|
|
22
26
|
};
|
|
23
27
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
24
28
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
25
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
|
+
};
|
|
26
35
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
27
36
|
CancelToken: CancelTokenStatic;
|
|
28
|
-
isCancel: (value: AxiosResponse | AxiosError |
|
|
37
|
+
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
29
38
|
setToken: (token: string) => void;
|
|
30
39
|
setHeader: (headerName: string, value: any) => void;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
resetCancelTokens: () => void;
|
|
34
|
-
cancelRequests: () => void;
|
|
40
|
+
createRequestManager: () => RequestManager;
|
|
41
|
+
requestManager: RequestManager;
|
|
35
42
|
env: AxiosEnvironment;
|
|
36
43
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
37
44
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
38
45
|
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
39
46
|
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
47
|
+
swr: Swr;
|
|
40
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
|
+
};
|
|
41
58
|
declare module "axios" {
|
|
42
59
|
interface AxiosRequestConfig {
|
|
43
60
|
raw?: boolean;
|
|
@@ -46,5 +63,9 @@ declare module "axios" {
|
|
|
46
63
|
_metadata?: {
|
|
47
64
|
startTime: number;
|
|
48
65
|
};
|
|
66
|
+
swr?: boolean;
|
|
67
|
+
onSwrHit?: (data: any) => unknown;
|
|
68
|
+
onSwrRefresh?: (data: any) => unknown;
|
|
69
|
+
onSwrError?: (error: Error) => unknown;
|
|
49
70
|
}
|
|
50
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,23 @@ export type BIMLayer = {
|
|
|
105
127
|
insertedAt: DateType;
|
|
106
128
|
updatedAt: DateType;
|
|
107
129
|
shapes: string;
|
|
130
|
+
displayName?: string;
|
|
108
131
|
};
|
|
109
132
|
export type BimPendingImage = {
|
|
110
133
|
url: string;
|
|
111
|
-
|
|
134
|
+
key: string;
|
|
135
|
+
date?: string;
|
|
112
136
|
};
|
|
113
137
|
export type BimUploadCameraParameters = {
|
|
114
|
-
|
|
138
|
+
distortionCoeffs: number[];
|
|
115
139
|
horizontalFov: number;
|
|
116
140
|
verticalFov: number;
|
|
117
141
|
focalLength1: number;
|
|
118
142
|
focalLength2: number;
|
|
119
143
|
centerX: number;
|
|
120
144
|
centerY: number;
|
|
145
|
+
apiId?: string;
|
|
146
|
+
apiKey?: string;
|
|
121
147
|
};
|
|
122
148
|
export type PendingBimImagesParams = {
|
|
123
149
|
model: string;
|
|
@@ -126,14 +152,12 @@ export type PendingBimImagesParams = {
|
|
|
126
152
|
};
|
|
127
153
|
export type ProcessPendingImagesBimParams = {
|
|
128
154
|
model: string;
|
|
129
|
-
names:
|
|
155
|
+
names: BimPendingImage[];
|
|
130
156
|
enableDistortion: boolean;
|
|
131
157
|
apiId: string;
|
|
132
158
|
apiKey: string;
|
|
133
159
|
};
|
|
134
|
-
export type BimUploadsQueryParams = {
|
|
135
|
-
page: number;
|
|
136
|
-
limit: number;
|
|
160
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
137
161
|
projectId: string;
|
|
138
162
|
id: string;
|
|
139
163
|
uploadedBy: string;
|
|
@@ -145,3 +169,28 @@ export type BimUploadPayload = {
|
|
|
145
169
|
fileExtension: string;
|
|
146
170
|
}[];
|
|
147
171
|
};
|
|
172
|
+
export declare enum ForgeBimUploadMethod {
|
|
173
|
+
FileUpload = "file_upload",
|
|
174
|
+
AutodeskAcc = "autodesk_acc"
|
|
175
|
+
}
|
|
176
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
177
|
+
InvalidType = "invalid_type",
|
|
178
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
179
|
+
}
|
|
180
|
+
export declare enum ForgeBimUploadStage {
|
|
181
|
+
TusUpload = "tus_upload",
|
|
182
|
+
IngestUpload = "ingest_upload"
|
|
183
|
+
}
|
|
184
|
+
export declare enum ForgeBimDialogTrigger {
|
|
185
|
+
UpdateModel = "update_model",
|
|
186
|
+
AddModel = "add_model",
|
|
187
|
+
InitialSetup = "initial_setup"
|
|
188
|
+
}
|
|
189
|
+
export type BimUpdatedWebhookPayload = {
|
|
190
|
+
eventName: "bim.updated";
|
|
191
|
+
projectId: string;
|
|
192
|
+
data: {
|
|
193
|
+
updatedAt: string;
|
|
194
|
+
bimIdentifier: string;
|
|
195
|
+
};
|
|
196
|
+
};
|