@evercam/api 1.0.0-003291add

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.
Files changed (104) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +183 -0
  3. package/dist/api/api/adminApi.d.ts +377 -0
  4. package/dist/api/api/aiApi.d.ts +128 -0
  5. package/dist/api/api/authzApi.d.ts +37 -0
  6. package/dist/api/api/client/axios.d.ts +14 -0
  7. package/dist/api/api/client/customErrors.d.ts +90 -0
  8. package/dist/api/api/client/index.d.ts +5 -0
  9. package/dist/api/api/client/interceptors.d.ts +10 -0
  10. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  11. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  12. package/dist/api/api/evercamApi.d.ts +337 -0
  13. package/dist/api/api/evercamLabsApi.d.ts +45 -0
  14. package/dist/api/api/exNvrApi.d.ts +43 -0
  15. package/dist/api/api/index.d.ts +13 -0
  16. package/dist/api/api/ingestApi.d.ts +148 -0
  17. package/dist/api/api/ptzApi.d.ts +45 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/api/webRtcApi.d.ts +22 -0
  21. package/dist/api/index.d.ts +3 -0
  22. package/dist/api/types/360.d.ts +281 -0
  23. package/dist/api/types/aconex.d.ts +143 -0
  24. package/dist/api/types/admin.d.ts +51 -0
  25. package/dist/api/types/analytics.d.ts +597 -0
  26. package/dist/api/types/anpr.d.ts +114 -0
  27. package/dist/api/types/auditLogs.d.ts +99 -0
  28. package/dist/api/types/authz.d.ts +61 -0
  29. package/dist/api/types/autodesk.d.ts +29 -0
  30. package/dist/api/types/automation.d.ts +95 -0
  31. package/dist/api/types/axios.d.ts +71 -0
  32. package/dist/api/types/bim.d.ts +153 -0
  33. package/dist/api/types/camera.d.ts +535 -0
  34. package/dist/api/types/comments.d.ts +55 -0
  35. package/dist/api/types/company.d.ts +115 -0
  36. package/dist/api/types/compare.d.ts +72 -0
  37. package/dist/api/types/connector.d.ts +19 -0
  38. package/dist/api/types/coolify.d.ts +36 -0
  39. package/dist/api/types/copilot.d.ts +162 -0
  40. package/dist/api/types/countries.d.ts +500 -0
  41. package/dist/api/types/credentials.d.ts +6 -0
  42. package/dist/api/types/detections.d.ts +124 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/errors.d.ts +49 -0
  45. package/dist/api/types/gateReport.d.ts +332 -0
  46. package/dist/api/types/hdd.d.ts +88 -0
  47. package/dist/api/types/index.d.ts +65 -0
  48. package/dist/api/types/ingest.d.ts +147 -0
  49. package/dist/api/types/kit.d.ts +383 -0
  50. package/dist/api/types/map.d.ts +16 -0
  51. package/dist/api/types/media.d.ts +115 -0
  52. package/dist/api/types/notification.d.ts +57 -0
  53. package/dist/api/types/nvr.d.ts +36 -0
  54. package/dist/api/types/oauth.d.ts +62 -0
  55. package/dist/api/types/planner.d.ts +133 -0
  56. package/dist/api/types/posthog.d.ts +33 -0
  57. package/dist/api/types/procore.d.ts +229 -0
  58. package/dist/api/types/progressPhoto.d.ts +78 -0
  59. package/dist/api/types/project.d.ts +247 -0
  60. package/dist/api/types/recording.d.ts +125 -0
  61. package/dist/api/types/recycleBin.d.ts +14 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +27 -0
  64. package/dist/api/types/routeParams.d.ts +52 -0
  65. package/dist/api/types/router.d.ts +86 -0
  66. package/dist/api/types/shared.d.ts +219 -0
  67. package/dist/api/types/shares.d.ts +58 -0
  68. package/dist/api/types/sim.d.ts +114 -0
  69. package/dist/api/types/siteAnalytics.d.ts +287 -0
  70. package/dist/api/types/siteView.d.ts +74 -0
  71. package/dist/api/types/smartSeach.d.ts +5 -0
  72. package/dist/api/types/snapshots.d.ts +91 -0
  73. package/dist/api/types/sso.d.ts +55 -0
  74. package/dist/api/types/storageProvider.d.ts +19 -0
  75. package/dist/api/types/storyblok.d.ts +40 -0
  76. package/dist/api/types/streaming.d.ts +97 -0
  77. package/dist/api/types/systemCheck.d.ts +11 -0
  78. package/dist/api/types/tag.d.ts +12 -0
  79. package/dist/api/types/time.d.ts +7 -0
  80. package/dist/api/types/timelapse.d.ts +106 -0
  81. package/dist/api/types/user.d.ts +345 -0
  82. package/dist/api/types/vendorModel.d.ts +15 -0
  83. package/dist/api/types/videoWall.d.ts +66 -0
  84. package/dist/api/types/voyageControl.d.ts +6 -0
  85. package/dist/api/types/weather.d.ts +153 -0
  86. package/dist/api/types/widget.d.ts +252 -0
  87. package/dist/api/types/xweather.d.ts +12 -0
  88. package/dist/api/utils.d.ts +10 -0
  89. package/dist/index.d.ts +2 -0
  90. package/dist/index.js +3707 -0
  91. package/dist/index.js.map +1 -0
  92. package/dist/index.umd.cjs +2 -0
  93. package/dist/index.umd.cjs.map +1 -0
  94. package/dist/shared/api/index.d.ts +3 -0
  95. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  96. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  97. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  98. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  99. package/dist/shared/types/components.d.ts +301 -0
  100. package/dist/shared/types/imagePlayer.d.ts +34 -0
  101. package/dist/shared/types/index.d.ts +5 -0
  102. package/dist/shared/types/rbac.d.ts +67 -0
  103. package/dist/shared/types/timeline.d.ts +10 -0
  104. package/package.json +50 -0
@@ -0,0 +1,114 @@
1
+ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "@evercam/api/types";
2
+ export type AnprQueryParams = {
3
+ page?: number;
4
+ limit?: number;
5
+ direction?: {
6
+ eq?: string;
7
+ } | string;
8
+ plateNumber?: {
9
+ eq?: string;
10
+ } | string;
11
+ sort?: string;
12
+ fromDate?: DateType;
13
+ toDate?: DateType;
14
+ camerasExid?: CameraExid[];
15
+ vehicleTypes?: GateReportVehicleType[];
16
+ isDuplicate?: boolean;
17
+ isPostprocessed?: boolean;
18
+ isPlate?: boolean;
19
+ };
20
+ export type AnprCountsQueryParams = {
21
+ precision: TimelinePrecision;
22
+ fromDate?: string;
23
+ toDate?: string;
24
+ isPublic?: boolean;
25
+ cameras?: CameraExid[];
26
+ direction?: AnprDirection;
27
+ isPlate?: boolean;
28
+ isDuplicate?: boolean;
29
+ vehicleTypes?: GateReportVehicleType[];
30
+ camerasExid?: CameraExid[];
31
+ };
32
+ export declare enum AnprDirection {
33
+ Left = "reverse",
34
+ Arrived = "forward",
35
+ Unknown = "unknown"
36
+ }
37
+ export type AnprEvent = {
38
+ id: number;
39
+ plateNumber: string;
40
+ cameraExid: CameraExid;
41
+ cameraex: CameraExid;
42
+ picName: string;
43
+ eventTime: string;
44
+ insertedAt: string;
45
+ isDuplicate: boolean;
46
+ direction: AnprDirection;
47
+ updatedAt: string;
48
+ edited?: boolean;
49
+ isPlate: boolean;
50
+ isPostprocessed: boolean;
51
+ vehicleType?: GateReportVehicleType;
52
+ contextVehicleType?: GateReportVehicleType;
53
+ anprVehicleType?: string;
54
+ anprVehicleModel?: string;
55
+ anprVehicleMake?: string;
56
+ anprVehicleColor?: string;
57
+ anprVehicleSpeed?: number;
58
+ anprSnapshotLink: string;
59
+ contextSnapshotLink: string;
60
+ mainSnapshotLink: string;
61
+ contextCamera: string;
62
+ votedVehicleType: GateReportVehicleType | string;
63
+ roiId?: number;
64
+ captureTime: DateType;
65
+ contextThumbnailUrl: string;
66
+ isPublic: boolean;
67
+ label: string;
68
+ mp4Url: string;
69
+ plateThumbnailUrl: string;
70
+ thumbnailUrl: string;
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
+ }
104
+ export type AnprBulkUpdateRequestPayload = {
105
+ anprEventsIds: number[];
106
+ action: AnprEventStatus;
107
+ updatedBy: string;
108
+ };
109
+ export type AnprUpdateRequestPayload = {
110
+ plateNumber: string;
111
+ vehicleType: GateReportVehicleType;
112
+ direction: AnprDirection;
113
+ updatedBy: string;
114
+ };
@@ -0,0 +1,99 @@
1
+ import { CameraStatus, DateType, PaginationParams } from "@evercam/api/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,61 @@
1
+ export declare enum RoleResourceType {
2
+ App = "app",
3
+ Camera = "camera",
4
+ Project = "project"
5
+ }
6
+ export type RoleSubRole = {
7
+ resourceId: string;
8
+ roleId: number;
9
+ roleName?: string;
10
+ permissions?: string[];
11
+ };
12
+ export type Role = {
13
+ id: number;
14
+ name: string;
15
+ description?: string | null;
16
+ resource?: string;
17
+ resourceType: RoleResourceType;
18
+ resourceId?: string | null;
19
+ permissions: string[];
20
+ subRoles?: RoleSubRole[];
21
+ isDefault?: boolean;
22
+ };
23
+ export type ProjectResourceRole = Role & {
24
+ resourceType: RoleResourceType.Project;
25
+ };
26
+ export type CameraResourceRole = Omit<Role, "subRoles"> & {
27
+ resourceType: RoleResourceType.Camera;
28
+ };
29
+ export type ProjectRoleRequestPayload = {
30
+ name: string;
31
+ permissions: string[];
32
+ subRoles?: RoleSubRole[];
33
+ };
34
+ export type AuthzRoleUser = {
35
+ email: string;
36
+ resourceId: string;
37
+ };
38
+ export type AuthzUserRolesResponse = {
39
+ roles: Role[];
40
+ };
41
+ export type AuthzScopePermission = {
42
+ id: number;
43
+ action: string;
44
+ exid: string;
45
+ };
46
+ export type AuthzScope = {
47
+ id: number;
48
+ name: string;
49
+ description: string | null;
50
+ permissions: AuthzScopePermission[];
51
+ app: string;
52
+ exid: string;
53
+ };
54
+ export type AuthzScopeCreatePayload = {
55
+ name: string;
56
+ description?: string;
57
+ permissions: string[];
58
+ };
59
+ export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
60
+ export declare function isProjectRole(role: Role): role is ProjectResourceRole;
61
+ export declare function isCameraRole(role: Role): role is CameraResourceRole;
@@ -0,0 +1,29 @@
1
+ export type AutodeskUserHub = {
2
+ text: string;
3
+ value: string;
4
+ };
5
+ export type AutodeskProject = {
6
+ text: string;
7
+ value: string;
8
+ };
9
+ export type AutodeskFolder = {
10
+ text: string;
11
+ value: string;
12
+ allowedFileType: string;
13
+ allowedFolderType: string;
14
+ children: Array<AutodeskFolder>;
15
+ parentName?: string;
16
+ };
17
+ export type AutodeskSnapshot = {
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,95 @@
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
+ }
13
+ export type AutomationCompareConfig = {
14
+ compareDelay: number;
15
+ };
16
+ export type AutomationEmailRecipient = string | {
17
+ email: string;
18
+ };
19
+ export type AutomationGateReportConfig = {
20
+ projectExid: string;
21
+ vehicleTypes: string[];
22
+ fileType: string;
23
+ period: number;
24
+ columns: string[];
25
+ recipients: string | string[];
26
+ };
27
+ export type AutomationEmailProviderConfig = {
28
+ cameraExids?: CameraExid[];
29
+ recipients: string | AutomationEmailRecipient[];
30
+ };
31
+ export type AutomationProcoreProviderConfig = {
32
+ companyId: number;
33
+ companyName: string;
34
+ projectId: number;
35
+ projectName: string;
36
+ categoryId: number;
37
+ categoryName: string;
38
+ };
39
+ export type AutomationAconexProviderConfig = {
40
+ projectId: number;
41
+ projectName: string;
42
+ } & Partial<Record<AconexIdentifiers, string | number | boolean>>;
43
+ export type AutomationAutodeskProviderConfig = {
44
+ hubId: number;
45
+ hubName: string;
46
+ projectId: number;
47
+ projectName: string;
48
+ folderId: number;
49
+ accFileType: string;
50
+ accFolderType: string;
51
+ folderName: string;
52
+ };
53
+ export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
54
+ export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
55
+ export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
56
+ export type Automation = {
57
+ id?: number;
58
+ cameraExids: CameraExid[];
59
+ name: string;
60
+ subject?: string;
61
+ provider: AutomationProvider;
62
+ type: AutomationType;
63
+ config: AutomationConfig;
64
+ notifyDays: string[];
65
+ notifyTime: string;
66
+ timezone: string;
67
+ isPaused: boolean;
68
+ restrictedCameraExids?: string[];
69
+ };
70
+ export declare enum AutomationConfigStep {
71
+ Type = "type",
72
+ Cameras = "cameras",
73
+ Settings = "settings",
74
+ Destination = "destination"
75
+ }
76
+ export type AutomationProviderOption = {
77
+ labelTranslationKey: string;
78
+ descriptionTranslationKey: string;
79
+ value: AutomationProvider;
80
+ icon: string;
81
+ iconSize?: string;
82
+ requiresConnection: boolean;
83
+ };
84
+ export type FormattedAutomation = {
85
+ cameraExids: string;
86
+ name: string;
87
+ subject: string;
88
+ provider: AutomationProvider;
89
+ type: AutomationType;
90
+ config: Partial<AutomationProviderConfig> & Partial<AutomationOptionsConfig>;
91
+ notifyDays: string;
92
+ notifyTime: string;
93
+ timezone: string;
94
+ isPaused: boolean;
95
+ };
@@ -0,0 +1,71 @@
1
+ import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
2
+ import { Swr } from "@evercam/api/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
+ ingestDroneApi?: string | null;
12
+ ingest360Api?: string | null;
13
+ ingestGpuApiUrl?: string | null;
14
+ posthogApiUrl?: string | null;
15
+ posthogProjectId?: string | null;
16
+ posthogPrivateApiKey?: string | null;
17
+ firebaseVideowallUrl?: string | null;
18
+ weatherApiBaseUrl?: string | null;
19
+ evercamLabsUrl?: string | null;
20
+ firebaseDbLink?: string | null;
21
+ firebaseStorageUrl?: string | null;
22
+ firebaseStorageToken?: string | null;
23
+ forgeTokenServerUrl?: string | null;
24
+ snapshotsURL?: string | null;
25
+ app?: string | null;
26
+ getAuthToken?: () => string | null;
27
+ errorLogger?: (error: AxiosError) => void;
28
+ swrKey?: string;
29
+ };
30
+ export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
31
+ export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
32
+ export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
33
+ export interface ExtendedAxiosInstance extends AxiosInstance {
34
+ CancelToken: CancelTokenStatic;
35
+ isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
36
+ setToken: (token: string) => void;
37
+ setHeader: (headerName: string, value: any) => void;
38
+ generateCancelTokenSource: () => CancelTokenSource;
39
+ addCancelToken: (token: CancelTokenSource) => void;
40
+ resetCancelTokens: () => void;
41
+ cancelRequests: () => void;
42
+ env: AxiosEnvironment;
43
+ addEnvironmentVariables: (vars: Record<string, any>) => void;
44
+ addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
45
+ addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
46
+ addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
47
+ swr: Swr;
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
+ };
58
+ declare module "axios" {
59
+ interface AxiosRequestConfig {
60
+ raw?: boolean;
61
+ preserveCasing?: boolean;
62
+ timing?: boolean;
63
+ _metadata?: {
64
+ startTime: number;
65
+ };
66
+ swr?: boolean;
67
+ onSwrHit?: (data: any) => unknown;
68
+ onSwrRefresh?: (data: any) => unknown;
69
+ onSwrError?: (error: Error) => unknown;
70
+ }
71
+ }
@@ -0,0 +1,153 @@
1
+ import { CompareLogoPosition, DateType } from "@evercam/api/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
+ logo?: CompareLogoPosition;
52
+ };
53
+ export type BimLayerResponsePayload = {
54
+ id: number;
55
+ name: string;
56
+ insertedAt: string;
57
+ updatedAt: string;
58
+ shapes: string;
59
+ startAt: string;
60
+ };
61
+ export declare enum BimUploadStatus {
62
+ Initial = 0,
63
+ Saving = 1,
64
+ Success = 2,
65
+ Failed = 3
66
+ }
67
+ export type BimCreationPayload = {
68
+ title: string;
69
+ software: "synchro" | "navisworks" | "revit" | "tekla" | "archicad" | "solibri" | "bim360" | "other";
70
+ model: string;
71
+ apiKey: string;
72
+ apiId: string;
73
+ displayName: string;
74
+ fileUrl: string;
75
+ requestor: string;
76
+ finalView: boolean;
77
+ enableDistortion: boolean;
78
+ startAt: string;
79
+ };
80
+ export declare enum BIMLayerTypes {
81
+ Mask = "mask",
82
+ BimMask = "bim_mask",
83
+ MeasuringGrid = "measuring_grid",
84
+ BimArchitectural = "bim_architectural",
85
+ BimStructural = "bim_structural",
86
+ Bim4D = "bim_4d",
87
+ BimMep = "bim_mep",
88
+ RecordingsTag = "recordings_tag",
89
+ Milestone = "milestone",
90
+ ForgeBimArchitectural = "forge_bim_architectural",
91
+ ForgeBimStructural = "forge_bim_structural",
92
+ ForgeBim4D = "forge_bim_4d",
93
+ ForgeBimMep = "forge_bim_mep"
94
+ }
95
+ export type BimLayersQueryParams = {
96
+ layerType: BIMLayerTypes;
97
+ timestamp: DateType;
98
+ };
99
+ export type BIMLayerPostPayload = {
100
+ name: string;
101
+ layerType: BIMLayerTypes;
102
+ startAt: DateType;
103
+ shapes: string;
104
+ zIndex: number;
105
+ };
106
+ export type BIMLayer = {
107
+ id: number;
108
+ name: string;
109
+ layerType: BIMLayerTypes;
110
+ startAt: DateType;
111
+ insertedAt: DateType;
112
+ updatedAt: DateType;
113
+ shapes: string;
114
+ };
115
+ export type BimPendingImage = {
116
+ url: string;
117
+ s3Url: string;
118
+ };
119
+ export type BimUploadCameraParameters = {
120
+ distortionFov: [number];
121
+ horizontalFov: number;
122
+ verticalFov: number;
123
+ focalLength1: number;
124
+ focalLength2: number;
125
+ centerX: number;
126
+ centerY: number;
127
+ };
128
+ export type PendingBimImagesParams = {
129
+ model: string;
130
+ apiKey: string;
131
+ apiId: string;
132
+ };
133
+ export type ProcessPendingImagesBimParams = {
134
+ model: string;
135
+ names: string[];
136
+ enableDistortion: boolean;
137
+ apiId: string;
138
+ apiKey: string;
139
+ };
140
+ export type BimUploadsQueryParams = {
141
+ page: number;
142
+ limit: number;
143
+ projectId: string;
144
+ id: string;
145
+ uploadedBy: string;
146
+ };
147
+ export type BimUploadPayload = {
148
+ upload: {
149
+ url: string;
150
+ title: string;
151
+ fileExtension: string;
152
+ }[];
153
+ };