@evercam/api 1.0.0-003a1ed80
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/api/adminApi.d.ts +355 -0
- package/dist/api/api/aiApi.d.ts +146 -0
- package/dist/api/api/authzApi.d.ts +21 -0
- package/dist/api/api/client/axios.d.ts +13 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- 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 +315 -0
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +73 -0
- package/dist/api/api/ptzApi.d.ts +36 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +99 -0
- package/dist/api/types/aconex.d.ts +45 -0
- package/dist/api/types/analytics.d.ts +489 -0
- package/dist/api/types/anpr.d.ts +103 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +10 -0
- package/dist/api/types/axios.d.ts +65 -0
- package/dist/api/types/bim.d.ts +147 -0
- package/dist/api/types/camera.d.ts +531 -0
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/api/types/company.d.ts +74 -0
- package/dist/api/types/compare.d.ts +57 -0
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/api/types/copilot.d.ts +157 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +5 -0
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/api/types/drone.d.ts +17 -0
- package/dist/api/types/errors.d.ts +48 -0
- package/dist/api/types/gateReport.d.ts +441 -0
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/api/types/index.d.ts +57 -0
- package/dist/api/types/ingest.d.ts +47 -0
- package/dist/api/types/kit.d.ts +355 -0
- package/dist/api/types/map.d.ts +4 -0
- package/dist/api/types/media.d.ts +114 -0
- package/dist/api/types/notification.d.ts +27 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/planner.d.ts +32 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/api/types/progressPhoto.d.ts +104 -0
- package/dist/api/types/project.d.ts +129 -0
- package/dist/api/types/recording.d.ts +123 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +51 -0
- package/dist/api/types/router.d.ts +67 -0
- package/dist/api/types/shared.d.ts +194 -0
- package/dist/api/types/shares.d.ts +196 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/snapshots.d.ts +50 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageServers.d.ts +4 -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 +21 -0
- package/dist/api/types/timelapse.d.ts +99 -0
- package/dist/api/types/user.d.ts +271 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +33 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +87 -0
- package/dist/api/types/widget.d.ts +191 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2971 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- 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 +193 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +50 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "@/types";
|
|
2
|
+
export type AnprQueryParams = {
|
|
3
|
+
page?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
firstSeen?: {
|
|
6
|
+
gte: DateType;
|
|
7
|
+
};
|
|
8
|
+
lastSeen?: {
|
|
9
|
+
lte: DateType;
|
|
10
|
+
};
|
|
11
|
+
captureTime?: {
|
|
12
|
+
gte?: DateType;
|
|
13
|
+
lt?: DateType;
|
|
14
|
+
};
|
|
15
|
+
direction?: {
|
|
16
|
+
eq?: string;
|
|
17
|
+
} | string;
|
|
18
|
+
plateNumber?: {
|
|
19
|
+
eq?: string;
|
|
20
|
+
} | string;
|
|
21
|
+
sort?: string;
|
|
22
|
+
fromDate?: DateType;
|
|
23
|
+
toDate?: DateType;
|
|
24
|
+
tab?: string;
|
|
25
|
+
};
|
|
26
|
+
export type AnprCountsQueryParams = {
|
|
27
|
+
precision: TimelinePrecision;
|
|
28
|
+
fromDate?: string;
|
|
29
|
+
toDate?: string;
|
|
30
|
+
isPublic?: boolean;
|
|
31
|
+
cameras?: CameraExid[];
|
|
32
|
+
direction?: AnprDirection;
|
|
33
|
+
isPlate?: boolean;
|
|
34
|
+
isDuplicate?: boolean;
|
|
35
|
+
vehicleTypes?: GateReportVehicleType[];
|
|
36
|
+
camerasExid?: CameraExid[];
|
|
37
|
+
};
|
|
38
|
+
export declare enum AnprDirection {
|
|
39
|
+
Left = "reverse",
|
|
40
|
+
Arrived = "forward",
|
|
41
|
+
Unknown = "unknown"
|
|
42
|
+
}
|
|
43
|
+
export type AnprEvent = {
|
|
44
|
+
id: number;
|
|
45
|
+
plateNumber: string;
|
|
46
|
+
cameraExid: CameraExid;
|
|
47
|
+
cameraex: CameraExid;
|
|
48
|
+
picName: string;
|
|
49
|
+
eventTime: string;
|
|
50
|
+
insertedAt: string;
|
|
51
|
+
isDuplicate: boolean;
|
|
52
|
+
direction: AnprDirection;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
edited?: boolean;
|
|
55
|
+
isPlate: boolean;
|
|
56
|
+
isPostprocessed: boolean;
|
|
57
|
+
vehicleType?: GateReportVehicleType;
|
|
58
|
+
contextVehicleType?: GateReportVehicleType;
|
|
59
|
+
anprVehicleType?: string;
|
|
60
|
+
anprVehicleModel?: string;
|
|
61
|
+
anprVehicleMake?: string;
|
|
62
|
+
anprVehicleColor?: string;
|
|
63
|
+
anprVehicleSpeed?: number;
|
|
64
|
+
anprSnapshotLink: string;
|
|
65
|
+
contextSnapshotLink: string;
|
|
66
|
+
mainSnapshotLink: string;
|
|
67
|
+
contextCamera: string;
|
|
68
|
+
votedVehicleType: GateReportVehicleType | string;
|
|
69
|
+
roiId?: number;
|
|
70
|
+
captureTime: DateType;
|
|
71
|
+
metadata_: {
|
|
72
|
+
evercamMetadata?: {
|
|
73
|
+
anpr?: {
|
|
74
|
+
bbox: BoundingBox;
|
|
75
|
+
label: string;
|
|
76
|
+
score: number;
|
|
77
|
+
};
|
|
78
|
+
context?: {
|
|
79
|
+
bbox: BoundingBox;
|
|
80
|
+
label: string;
|
|
81
|
+
score: number;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
plateRecognizerMetadata?: {
|
|
85
|
+
plateNumber?: string;
|
|
86
|
+
vehicleMake?: string;
|
|
87
|
+
vehicleType?: string;
|
|
88
|
+
vehicleColor?: string;
|
|
89
|
+
vehicleModel?: string;
|
|
90
|
+
vehicleOrientation?: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export type AnprCount = {
|
|
95
|
+
date: string;
|
|
96
|
+
counts: Record<AnprDirection, number>;
|
|
97
|
+
};
|
|
98
|
+
export declare enum AnprEventStatus {
|
|
99
|
+
IsPlate = "is_plate",
|
|
100
|
+
NotPlate = "not_plate",
|
|
101
|
+
IsDuplicate = "is_duplicate",
|
|
102
|
+
NotDuplicate = "not_duplicate"
|
|
103
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { CameraStatus, DateType, PaginationParams } from "@/types";
|
|
2
|
+
export declare enum AuditLogActionType {
|
|
3
|
+
VH_STATUS = "vh_status",
|
|
4
|
+
CR_UPDATED = "cr_updated",
|
|
5
|
+
CR_CREATED = "cr_created",
|
|
6
|
+
ONLINE = "online",
|
|
7
|
+
OFFLINE = "offline",
|
|
8
|
+
ON_HOLD = "on_hold",
|
|
9
|
+
WAITING = "waiting",
|
|
10
|
+
DECOMMISSIONED = "decommissioned",
|
|
11
|
+
UNDER_MAINTENANCE = "under_maintenance",
|
|
12
|
+
WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
|
|
13
|
+
SMS = "sms",
|
|
14
|
+
CUSTOM = "custom",
|
|
15
|
+
PUBLIC_NOTE = "public_note",
|
|
16
|
+
SIM = "sim",
|
|
17
|
+
LOGIN = "login",
|
|
18
|
+
LOGOUT = "logout",
|
|
19
|
+
CREATE = "create",
|
|
20
|
+
UPDATE = "update",
|
|
21
|
+
DELETE = "delete",
|
|
22
|
+
DEVICE_SETTINGS = "device_settings",
|
|
23
|
+
LINK_SIM_WITH_ROUTER = "link_sim_with_router",
|
|
24
|
+
UNLINK_SIM_FROM_ROUTER = "unlink_sim_from_router",
|
|
25
|
+
LINK_CAMERA_WITH_ROUTER = "link_camera_with_router",
|
|
26
|
+
UNLINK_CAMERA_FROM_ROUTER = "unlink_camera_from_router",
|
|
27
|
+
SHARE = "share",
|
|
28
|
+
UPDATE_SHARE = "update_share",
|
|
29
|
+
DELETE_SHARE = "delete_share",
|
|
30
|
+
SHARE_REQUEST = "share_request",
|
|
31
|
+
DELETE_SHARE_REQUEST = "delete_share_request",
|
|
32
|
+
TRANSFER_OWNERSHIP = "transfer_ownership",
|
|
33
|
+
BIM_NOTE = "bim_note",
|
|
34
|
+
GATE_REPORT_NOTE = "gate_report_note"
|
|
35
|
+
}
|
|
36
|
+
export type AuditLog = {
|
|
37
|
+
id: number;
|
|
38
|
+
action: AuditLogActionType;
|
|
39
|
+
details: Record<string, any>;
|
|
40
|
+
insertedAt: DateType;
|
|
41
|
+
entity: string;
|
|
42
|
+
user_details: {
|
|
43
|
+
browser: string;
|
|
44
|
+
country: string;
|
|
45
|
+
countryCode: string;
|
|
46
|
+
device: string | null;
|
|
47
|
+
ip: string;
|
|
48
|
+
os: string | null;
|
|
49
|
+
};
|
|
50
|
+
who: string;
|
|
51
|
+
};
|
|
52
|
+
export type AuditLogsParams = PaginationParams & {
|
|
53
|
+
routerId: number;
|
|
54
|
+
cameraId: number;
|
|
55
|
+
entity: string;
|
|
56
|
+
byRouter: boolean;
|
|
57
|
+
byCamera: boolean;
|
|
58
|
+
byProject: boolean;
|
|
59
|
+
action: string;
|
|
60
|
+
};
|
|
61
|
+
export type CameraLogsQueryParams = {
|
|
62
|
+
historyDays: number;
|
|
63
|
+
accountId?: string;
|
|
64
|
+
status: CameraStatus[];
|
|
65
|
+
};
|
|
66
|
+
export type CameraLogItem = {
|
|
67
|
+
start: DateType;
|
|
68
|
+
state: CameraStatus;
|
|
69
|
+
end: DateType;
|
|
70
|
+
};
|
|
71
|
+
export type CameraLog = {
|
|
72
|
+
data: CameraLogItem[];
|
|
73
|
+
measure: string;
|
|
74
|
+
};
|
|
75
|
+
export type CameraAuditLog = {
|
|
76
|
+
id: number;
|
|
77
|
+
action: AuditLogActionType;
|
|
78
|
+
details: {
|
|
79
|
+
error_body?: string;
|
|
80
|
+
exid: string;
|
|
81
|
+
id: number;
|
|
82
|
+
name: string;
|
|
83
|
+
reason?: string;
|
|
84
|
+
};
|
|
85
|
+
insertedAt: DateType;
|
|
86
|
+
entity: string;
|
|
87
|
+
user_details: {
|
|
88
|
+
ip: string;
|
|
89
|
+
country: string;
|
|
90
|
+
countryCode: string;
|
|
91
|
+
agent: string;
|
|
92
|
+
};
|
|
93
|
+
who: string;
|
|
94
|
+
};
|
|
95
|
+
export type CameraAuditLogsQueryParams = PaginationParams & {
|
|
96
|
+
from: string;
|
|
97
|
+
to: string;
|
|
98
|
+
action: AuditLogActionType[];
|
|
99
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type AutodeskUserHubsResponsePayload = Array<{
|
|
2
|
+
text: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}>;
|
|
5
|
+
export type AutodeskProjectsResponsePayload = Array<{
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type AutodeskFolderResponsePayload = {
|
|
10
|
+
text: string;
|
|
11
|
+
value: string;
|
|
12
|
+
allowedFileType: string;
|
|
13
|
+
allowedFolderType: string;
|
|
14
|
+
children: Array<AutodeskFolderResponsePayload>;
|
|
15
|
+
parentName?: string;
|
|
16
|
+
};
|
|
17
|
+
export type AutodeskUploadSnapshotPayload = {
|
|
18
|
+
projectId: string;
|
|
19
|
+
folderId: string;
|
|
20
|
+
accFileType: string;
|
|
21
|
+
accFolderType: string;
|
|
22
|
+
projectExid: string;
|
|
23
|
+
snapshot: string;
|
|
24
|
+
};
|
|
25
|
+
export type AutodeskTokenResponsePayload = {
|
|
26
|
+
token: string;
|
|
27
|
+
expiresAt: string;
|
|
28
|
+
login: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
|
+
import { Swr } from "@/api/client/swr/Swr";
|
|
3
|
+
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
4
|
+
duration: number;
|
|
5
|
+
error?: AxiosError;
|
|
6
|
+
}>;
|
|
7
|
+
export type AxiosEnvironment = {
|
|
8
|
+
baseUrl?: string | null;
|
|
9
|
+
stagingAiApiUrl?: string | null;
|
|
10
|
+
aiApiUrl?: string | null;
|
|
11
|
+
ingestApiUrl?: string | null;
|
|
12
|
+
ingestGpuApiUrl?: string | null;
|
|
13
|
+
posthogApiUrl?: string | null;
|
|
14
|
+
posthogProjectId?: string | null;
|
|
15
|
+
posthogPrivateApiKey?: string | null;
|
|
16
|
+
firebaseVideowallUrl?: string | null;
|
|
17
|
+
weatherApiBaseUrl?: string | null;
|
|
18
|
+
evercamLabsUrl?: string | null;
|
|
19
|
+
firebaseDbLink?: string | null;
|
|
20
|
+
firebaseStorageUrl?: string | null;
|
|
21
|
+
firebaseStorageToken?: string | null;
|
|
22
|
+
snapshotsURL?: string | null;
|
|
23
|
+
app?: string | null;
|
|
24
|
+
getAuthToken?: () => string | null;
|
|
25
|
+
errorLogger?: (error: AxiosError) => void;
|
|
26
|
+
swrKey?: string;
|
|
27
|
+
};
|
|
28
|
+
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
29
|
+
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
30
|
+
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
31
|
+
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
32
|
+
CancelToken: CancelTokenStatic;
|
|
33
|
+
isCancel: (value: AxiosResponse | AxiosError | never) => boolean;
|
|
34
|
+
setToken: (token: string) => void;
|
|
35
|
+
setHeader: (headerName: string, value: any) => void;
|
|
36
|
+
generateCancelTokenSource: () => CancelTokenSource;
|
|
37
|
+
addCancelToken: (token: CancelTokenSource) => void;
|
|
38
|
+
resetCancelTokens: () => void;
|
|
39
|
+
cancelRequests: () => void;
|
|
40
|
+
env: AxiosEnvironment;
|
|
41
|
+
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
42
|
+
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
43
|
+
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
44
|
+
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
45
|
+
swr: Swr;
|
|
46
|
+
}
|
|
47
|
+
export type ResponseValue<T> = T | undefined;
|
|
48
|
+
export type SwrResponse<T> = {
|
|
49
|
+
cachedValue: ResponseValue<T>;
|
|
50
|
+
freshPromise: Promise<ResponseValue<T>>;
|
|
51
|
+
};
|
|
52
|
+
declare module "axios" {
|
|
53
|
+
interface AxiosRequestConfig {
|
|
54
|
+
raw?: boolean;
|
|
55
|
+
preserveCasing?: boolean;
|
|
56
|
+
timing?: boolean;
|
|
57
|
+
_metadata?: {
|
|
58
|
+
startTime: number;
|
|
59
|
+
};
|
|
60
|
+
swr?: boolean;
|
|
61
|
+
onSwrHit?: <T>(data: T) => unknown;
|
|
62
|
+
onSwrRefresh?: <T>(data: T) => unknown;
|
|
63
|
+
onSwrError?: (error: Error) => unknown;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { DateTime, DateType } from "@/types";
|
|
2
|
+
export declare enum BimModelType {
|
|
3
|
+
Architectural = "Architectural",
|
|
4
|
+
Structural = "Structural",
|
|
5
|
+
FourD = "4D",
|
|
6
|
+
Mep = "Mep"
|
|
7
|
+
}
|
|
8
|
+
export type BimSnapshotRequestPayload = {
|
|
9
|
+
model: string;
|
|
10
|
+
layerTimestamp: string;
|
|
11
|
+
apiKey: string;
|
|
12
|
+
apiId: string;
|
|
13
|
+
};
|
|
14
|
+
export type BimSnapshotResponsePayload = {
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
};
|
|
17
|
+
export type BimModelRequestPayload = {
|
|
18
|
+
model?: string;
|
|
19
|
+
timestamp?: string;
|
|
20
|
+
apiKey?: string;
|
|
21
|
+
apiId?: string;
|
|
22
|
+
};
|
|
23
|
+
export type BimModelResponsePayload = {
|
|
24
|
+
dates?: [string];
|
|
25
|
+
height?: number;
|
|
26
|
+
imageUrl?: string;
|
|
27
|
+
model?: string;
|
|
28
|
+
models?: [string];
|
|
29
|
+
rotation?: number;
|
|
30
|
+
scaleX?: number;
|
|
31
|
+
scaleY?: number;
|
|
32
|
+
viewerHeight?: number;
|
|
33
|
+
viewerWidth?: number;
|
|
34
|
+
width?: number;
|
|
35
|
+
x?: number;
|
|
36
|
+
y?: number;
|
|
37
|
+
};
|
|
38
|
+
export type BimCompareExportRequestPayload = {
|
|
39
|
+
name: string;
|
|
40
|
+
cameraExid: string;
|
|
41
|
+
snapshotDate: string;
|
|
42
|
+
bimDate: string;
|
|
43
|
+
embed: string;
|
|
44
|
+
compareExid: string;
|
|
45
|
+
createAnimation: boolean;
|
|
46
|
+
bimTransparency?: number;
|
|
47
|
+
model?: string;
|
|
48
|
+
layerId?: number;
|
|
49
|
+
maskId?: number;
|
|
50
|
+
evercamWatermark?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export type BimLayerResponsePayload = {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
insertedAt: DateTime;
|
|
56
|
+
updatedAt: DateTime;
|
|
57
|
+
shapes: string;
|
|
58
|
+
startAt: DateTime;
|
|
59
|
+
};
|
|
60
|
+
export declare enum BimUploadStatus {
|
|
61
|
+
Initial = 0,
|
|
62
|
+
Saving = 1,
|
|
63
|
+
Success = 2,
|
|
64
|
+
Failed = 3
|
|
65
|
+
}
|
|
66
|
+
export type BimCreationPayload = {
|
|
67
|
+
title: string;
|
|
68
|
+
software: "synchro" | "navisworks" | "revit" | "tekla" | "archicad" | "solibri" | "bim360" | "other";
|
|
69
|
+
model: string;
|
|
70
|
+
apiKey: string;
|
|
71
|
+
apiId: string;
|
|
72
|
+
displayName: string;
|
|
73
|
+
fileUrl: string;
|
|
74
|
+
requestor: string;
|
|
75
|
+
finalView: boolean;
|
|
76
|
+
enableDistortion: boolean;
|
|
77
|
+
startAt: string;
|
|
78
|
+
};
|
|
79
|
+
export declare enum BIMLayerTypes {
|
|
80
|
+
Mask = "mask",
|
|
81
|
+
MeasuringGrid = "measuring_grid",
|
|
82
|
+
BimArchitectural = "bim_architectural",
|
|
83
|
+
BimStructural = "bim_structural",
|
|
84
|
+
Bim4D = "bim_4d",
|
|
85
|
+
BimMep = "bim_mep",
|
|
86
|
+
RecordingsTag = "recordings_tag",
|
|
87
|
+
Milestone = "milestone"
|
|
88
|
+
}
|
|
89
|
+
export type BimLayersQueryParams = {
|
|
90
|
+
layerType: BIMLayerTypes;
|
|
91
|
+
timestamp: DateType;
|
|
92
|
+
};
|
|
93
|
+
export type BIMLayerPostPayload = {
|
|
94
|
+
name: string;
|
|
95
|
+
layerType: BIMLayerTypes;
|
|
96
|
+
startAt: DateType;
|
|
97
|
+
shapes: string;
|
|
98
|
+
zIndex: number;
|
|
99
|
+
};
|
|
100
|
+
export type BIMLayer = {
|
|
101
|
+
id: number;
|
|
102
|
+
name: string;
|
|
103
|
+
layerType: BIMLayerTypes;
|
|
104
|
+
startAt: DateType;
|
|
105
|
+
insertedAt: DateType;
|
|
106
|
+
updatedAt: DateType;
|
|
107
|
+
shapes: string;
|
|
108
|
+
};
|
|
109
|
+
export type BimPendingImage = {
|
|
110
|
+
url: string;
|
|
111
|
+
s3Url: string;
|
|
112
|
+
};
|
|
113
|
+
export type BimUploadCameraParameters = {
|
|
114
|
+
distortionFov: [number];
|
|
115
|
+
horizontalFov: number;
|
|
116
|
+
verticalFov: number;
|
|
117
|
+
focalLength1: number;
|
|
118
|
+
focalLength2: number;
|
|
119
|
+
centerX: number;
|
|
120
|
+
centerY: number;
|
|
121
|
+
};
|
|
122
|
+
export type PendingBimImagesParams = {
|
|
123
|
+
model: string;
|
|
124
|
+
apiKey: string;
|
|
125
|
+
apiId: string;
|
|
126
|
+
};
|
|
127
|
+
export type ProcessPendingImagesBimParams = {
|
|
128
|
+
model: string;
|
|
129
|
+
names: string[];
|
|
130
|
+
enableDistortion: boolean;
|
|
131
|
+
apiId: string;
|
|
132
|
+
apiKey: string;
|
|
133
|
+
};
|
|
134
|
+
export type BimUploadsQueryParams = {
|
|
135
|
+
page: number;
|
|
136
|
+
limit: number;
|
|
137
|
+
projectId: string;
|
|
138
|
+
id: string;
|
|
139
|
+
uploadedBy: string;
|
|
140
|
+
};
|
|
141
|
+
export type BimUploadPayload = {
|
|
142
|
+
upload: {
|
|
143
|
+
url: string;
|
|
144
|
+
title: string;
|
|
145
|
+
fileExtension: string;
|
|
146
|
+
}[];
|
|
147
|
+
};
|