@evercam/api 1.0.0-a0da75d2b → 1.0.0-a355ed87e

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 (124) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +116 -74
  4. package/dist/api/api/aiApi.d.ts +127 -0
  5. package/dist/api/api/authzApi.d.ts +38 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +295 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +46 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +13 -0
  15. package/dist/api/api/ingestApi.d.ts +146 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  17. package/dist/api/api/videoWallApi.d.ts +9 -0
  18. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  19. package/dist/api/index.d.ts +3 -13
  20. package/dist/api/types/360.d.ts +276 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/{types → api/types}/analytics.d.ts +147 -51
  24. package/dist/{types → api/types}/anpr.d.ts +26 -13
  25. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  26. package/dist/api/types/authz.d.ts +60 -0
  27. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +95 -0
  29. package/dist/{types → api/types}/axios.d.ts +22 -1
  30. package/dist/{types → api/types}/bim.d.ts +11 -5
  31. package/dist/{types → api/types}/camera.d.ts +99 -122
  32. package/dist/api/types/comments.d.ts +55 -0
  33. package/dist/api/types/company.d.ts +115 -0
  34. package/dist/{types → api/types}/compare.d.ts +20 -5
  35. package/dist/{types → api/types}/connector.d.ts +6 -5
  36. package/dist/api/types/coolify.d.ts +36 -0
  37. package/dist/{types → api/types}/copilot.d.ts +1 -1
  38. package/dist/{types → api/types}/countries.d.ts +0 -7
  39. package/dist/{types → api/types}/credentials.d.ts +1 -0
  40. package/dist/api/types/detections.d.ts +121 -0
  41. package/dist/{types → api/types}/errors.d.ts +13 -0
  42. package/dist/{types → api/types}/gateReport.d.ts +46 -150
  43. package/dist/{types → api/types}/hdd.d.ts +26 -1
  44. package/dist/{types → api/types}/index.d.ts +8 -1
  45. package/dist/api/types/ingest.d.ts +134 -0
  46. package/dist/{types → api/types}/kit.d.ts +87 -8
  47. package/dist/{types → api/types}/media.d.ts +1 -1
  48. package/dist/api/types/notification.d.ts +57 -0
  49. package/dist/{types → api/types}/planner.d.ts +7 -0
  50. package/dist/api/types/posthog.d.ts +33 -0
  51. package/dist/api/types/procore.d.ts +229 -0
  52. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  53. package/dist/api/types/project.d.ts +242 -0
  54. package/dist/{types → api/types}/recording.d.ts +3 -4
  55. package/dist/api/types/recycleBin.d.ts +14 -0
  56. package/dist/{types → api/types}/roi.d.ts +2 -1
  57. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  58. package/dist/{types → api/types}/router.d.ts +20 -1
  59. package/dist/{types → api/types}/shared.d.ts +12 -10
  60. package/dist/api/types/shares.d.ts +58 -0
  61. package/dist/{types → api/types}/sim.d.ts +6 -6
  62. package/dist/api/types/siteAnalytics.d.ts +287 -0
  63. package/dist/api/types/smartSeach.d.ts +5 -0
  64. package/dist/{types → api/types}/snapshots.d.ts +10 -1
  65. package/dist/api/types/sso.d.ts +55 -0
  66. package/dist/api/types/storyblok.d.ts +40 -0
  67. package/dist/{types → api/types}/streaming.d.ts +4 -25
  68. package/dist/api/types/systemCheck.d.ts +11 -0
  69. package/dist/{types → api/types}/tag.d.ts +1 -1
  70. package/dist/api/types/time.d.ts +7 -0
  71. package/dist/{types → api/types}/timelapse.d.ts +3 -4
  72. package/dist/{types → api/types}/user.d.ts +105 -35
  73. package/dist/api/types/videoWall.d.ts +66 -0
  74. package/dist/api/types/weather.d.ts +153 -0
  75. package/dist/{types → api/types}/widget.d.ts +96 -16
  76. package/dist/{types → api/types}/xweather.d.ts +4 -4
  77. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  78. package/dist/index.d.ts +2 -3
  79. package/dist/index.js +1486 -933
  80. package/dist/index.js.map +1 -1
  81. package/dist/index.umd.cjs +1 -1
  82. package/dist/index.umd.cjs.map +1 -1
  83. package/dist/shared/api/index.d.ts +3 -0
  84. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  85. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  86. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  87. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  88. package/dist/shared/types/components.d.ts +270 -0
  89. package/dist/shared/types/imagePlayer.d.ts +34 -0
  90. package/dist/shared/types/index.d.ts +4 -0
  91. package/dist/shared/types/timeline.d.ts +10 -0
  92. package/package.json +5 -4
  93. package/dist/api/3dFirebaseApi.d.ts +0 -9
  94. package/dist/api/aiApi.d.ts +0 -110
  95. package/dist/api/authzApi.d.ts +0 -21
  96. package/dist/api/evercamApi.d.ts +0 -280
  97. package/dist/api/evercamLabsApi.d.ts +0 -50
  98. package/dist/api/ingestApi.d.ts +0 -66
  99. package/dist/api/videoWallApi.d.ts +0 -9
  100. package/dist/types/360.d.ts +0 -83
  101. package/dist/types/aconex.d.ts +0 -45
  102. package/dist/types/automation.d.ts +0 -6
  103. package/dist/types/comments.d.ts +0 -36
  104. package/dist/types/company.d.ts +0 -46
  105. package/dist/types/coolify.d.ts +0 -18
  106. package/dist/types/detections.d.ts +0 -76
  107. package/dist/types/devices.d.ts +0 -228
  108. package/dist/types/ingest.d.ts +0 -43
  109. package/dist/types/notification.d.ts +0 -27
  110. package/dist/types/procore.d.ts +0 -76
  111. package/dist/types/project.d.ts +0 -123
  112. package/dist/types/shares.d.ts +0 -196
  113. package/dist/types/siteAnalytics.d.ts +0 -84
  114. package/dist/types/time.d.ts +0 -19
  115. package/dist/types/videoWall.d.ts +0 -33
  116. package/dist/types/weather.d.ts +0 -87
  117. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  118. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  119. /package/dist/{types → api/types}/drone.d.ts +0 -0
  120. /package/dist/{types → api/types}/map.d.ts +0 -0
  121. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  122. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  123. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  124. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,280 +0,0 @@
1
- import type { AxiosRequestConfig } from "axios";
2
- import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ActiveUsersStatsRequestPayload, ActiveUserStat, AnalyticsRequestPayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraExid, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, CheckCameraPortPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreProjectsAlbumsPayload, ProcoreProjectsAlbumsRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreUserProjectRequestPayload, ProcoreUserProjectsResponsePayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, ProjectPAStatsRequestPayload, ProjectPAStatsResponsePayload, ProjectResponsePayload, ProjectShareResponse, RemotePasswordUpdateRequestPayload, ResendShareRequestPayload, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, UpdateUserRestrictionPayload, UpdateCameraRestrictionPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload } from "@evercam/api/types";
3
- export declare const EvercamApi: {
4
- apiStatus: {
5
- getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
6
- };
7
- users: {
8
- signup(payload: SignupUserRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
9
- fetchAccessFeatures(email: string): Promise<{
10
- features: string[];
11
- }>;
12
- impersonationLogin(token: string): Promise<import("axios").AxiosResponse<any, any>>;
13
- login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
14
- loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
15
- loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
16
- loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
17
- getUser(email: string): Promise<{
18
- users: LoginResponsePayload[];
19
- }>;
20
- logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
21
- resetPassword(email: string): Promise<{
22
- message: string;
23
- }>;
24
- getCredentials(): Promise<Credentials>;
25
- updatePassword(user: string, payload: UpdatePasswordRequestPayload): Promise<{
26
- message: string;
27
- }>;
28
- remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
29
- message: string;
30
- }>;
31
- confirm(email: string, payload: any): Promise<LoginResponsePayload>;
32
- deleteActiveSession(sessionId: string, payload?: any): Promise<void>;
33
- getActiveSessions(payload: SessionsListRequestPayload): Promise<PaginatedItems<UserSession>>;
34
- update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
35
- users: LoginResponsePayload[];
36
- }>;
37
- delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
38
- fetchPermissions(): Promise<{
39
- permissions: string[];
40
- }>;
41
- };
42
- notifications: {
43
- get(): Promise<import("axios").AxiosResponse<any, any>>;
44
- markAllAsRead(id: string): Promise<import("axios").AxiosResponse<any, any>>;
45
- markAsRead(): Promise<import("axios").AxiosResponse<any, any>>;
46
- };
47
- bim: {
48
- getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
49
- getBimModel(cameraId: string, payload: BimModelRequestPayload, extraParams?: AxiosRequestConfig): Promise<BimModelResponsePayload>;
50
- pendingBimImages(cameraId: string, params: PendingBimImagesParams): Promise<BimPendingImage[]>;
51
- processPendingImages(cameraId: string, params: Partial<ProcessPendingImagesBimParams>): Promise<void>;
52
- createBim(cameraId: string, params: BimCreationPayload): Promise<void>;
53
- getCameraParameters(cameraId: string, params: ApiCredentials): Promise<BimUploadCameraParameters>;
54
- uploadCameraParameters(cameraId: string, params: BimUploadCameraParameters): Promise<BimUploadCameraParameters>;
55
- exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
56
- };
57
- cameras: {
58
- getCameras(): Promise<CamerasResponsePayload>;
59
- getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
60
- getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
61
- portCheck(payload: {
62
- params: CheckCameraPortPayload;
63
- }): Promise<CheckCameraPortPayload & {
64
- open: boolean;
65
- }>;
66
- getNvrStreamingToken({ cameraExid, token, }: {
67
- cameraExid: string;
68
- token: string;
69
- }): Promise<string>;
70
- getCameraStatusLogs(exid: string, params: {
71
- params: {
72
- from: string;
73
- to: string;
74
- };
75
- }): Promise<CameraStatusLog[]>;
76
- updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
77
- };
78
- projects: {
79
- index(params?: ApiCredentials): Promise<ProjectResponsePayload>;
80
- getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
81
- createLogo(projectId: string, formData: FormData): Promise<Logo & {
82
- id: number;
83
- }>;
84
- deleteLogo(projectId: string, id: number): Promise<void>;
85
- updateLogo(projectId: string, id: number, name: string): Promise<import("axios").AxiosResponse<any, any>>;
86
- updateThumbnail(projectExid: string, params: {
87
- cameraExid?: string;
88
- uploadedThumbnail?: string;
89
- }): Promise<{
90
- message: string;
91
- }>;
92
- getThumbnailData(projectExid: string): Promise<ThumbnailData>;
93
- updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
94
- updatePlaceholderThumbnail(projectExid: string, params: {
95
- placeholder?: string;
96
- }): Promise<{
97
- message: string;
98
- }>;
99
- getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
100
- };
101
- timelapse: {
102
- getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
103
- createTimelapse(projectExid: string, payload: TimelapseCreationRequestPayload): Promise<TimelapseCreationResponsePayload>;
104
- cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<TimelapseCreationResponsePayload>;
105
- cDelete(projectExid: string, id: number): Promise<void>;
106
- };
107
- compares: {
108
- cCreate(projectExid: string, payload: CompareRequestPayload): Promise<Compare>;
109
- cShow(projectExid: string, id: string): Promise<Compare>;
110
- cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
111
- cDelete(projectExid: string, id: string): Promise<void>;
112
- };
113
- projectConnectos: {
114
- index(projectExid: string): Promise<Array<XWeatherResponse>>;
115
- };
116
- providers: {
117
- getProviders(): Promise<ConnectorResponsePayload>;
118
- };
119
- aconex: {
120
- authenticate(payload: AconexAuthCallbackParams): Promise<void>;
121
- getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
122
- revoke(): Promise<void>;
123
- uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
124
- getDocumentSchema(projectId: number): Promise<void>;
125
- };
126
- procore: {
127
- getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
128
- getUserProjects(payload: ProcoreUserProjectRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
129
- getProjectAlbums(payload: ProcoreProjectsAlbumsRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
130
- uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
131
- sendRevoke(): Promise<void>;
132
- };
133
- autodesk: {
134
- sendRevoke(): Promise<void>;
135
- getUserHubs(): Promise<AutodeskUserHubsResponsePayload>;
136
- getProjects(hubId: string): Promise<AutodeskProjectsResponsePayload>;
137
- getFolders(hubId: string, projectId: string): Promise<Array<AutodeskFolderResponsePayload>>;
138
- getSubFolders(projectId: string, parentFolderId: string, getDerivatives: Boolean): Promise<Array<AutodeskFolderResponsePayload>>;
139
- getFolder(projectId: string, folderId: string): Promise<AutodeskFolderResponsePayload>;
140
- uploadEditedSnapshot(payload: AutodeskUploadSnapshotPayload): Promise<null>;
141
- fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
142
- };
143
- voyageControl: {
144
- connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
145
- sendRevoke(): Promise<null>;
146
- };
147
- xweather: {
148
- connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
149
- revoke(projectExid: string): Promise<null>;
150
- };
151
- recordings: {
152
- oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
153
- latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
154
- nearest(cameraId: string, timestamp: string, payload?: NearestSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
155
- availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
156
- availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
157
- getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
158
- getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
159
- };
160
- progressPhotos: {
161
- index(): Promise<ProgressPhotosResponsePayload>;
162
- show(id: string): Promise<ProgressPhotosResponsePayload>;
163
- create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
164
- update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
165
- unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
166
- delete(id: string, params?: ApiCredentials): Promise<void>;
167
- };
168
- mediaHub: {
169
- getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
170
- getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
171
- cShow(projectExid: string, id: string): Promise<Media>;
172
- cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
173
- cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
174
- cDelete(projectExid: number, id: number): Promise<void>;
175
- };
176
- analytics: {
177
- sendAnalyticsEvent(params: AnalyticsRequestPayload, headers: object): Promise<null>;
178
- getPACompanyPeriodEvents(id: string | number, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
179
- getPAProjectPeriodEvents(projectId: string, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
180
- getActiveUsers(params: {
181
- params: ActiveUsersStatsRequestPayload;
182
- }): Promise<ActiveUserStat>;
183
- };
184
- shares: {
185
- updateShareRights(cameraExid: CameraExid, payload: {
186
- email: string;
187
- rights: string;
188
- }): Promise<Share>;
189
- updateShareRequestRights(cameraExid: CameraExid, payload: {
190
- email: string;
191
- rights: string;
192
- }): Promise<import("axios").AxiosResponse<any, any>>;
193
- cIndex(cameraId: string): Promise<SharesResponsePayload>;
194
- getShareRequest(cameraId: string, payload: {
195
- status: string;
196
- }): Promise<ShareRequestsResponsePayload>;
197
- deleteShare(cameraId: string, payload: {
198
- [key: string]: ShareDeletionRequestPayload;
199
- }): Promise<void>;
200
- deleteRequest(cameraId: string, payload: {
201
- [key: string]: ShareDeletionRequestPayload;
202
- }): Promise<void>;
203
- deleteShareRequest(payload: {
204
- params: ShareDeletionRequestPayload;
205
- }): Promise<void>;
206
- getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
207
- cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
208
- shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
209
- getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
210
- transferOwnership(cameraId: string, payload: {
211
- userId: number;
212
- }): Promise<void>;
213
- resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
214
- getProjectShares(exid: string): Promise<ProjectShareResponse>;
215
- updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
216
- };
217
- companies: {
218
- getCompanyUsers(companyExid: string, params: {
219
- params: {
220
- page: number;
221
- limit: number;
222
- };
223
- }): Promise<PaginatedItems<CompanyUser>>;
224
- getCompanyProjects(companyId: string, params: {
225
- params: {
226
- page: number;
227
- limit: number;
228
- };
229
- }): Promise<PaginatedItems<CompanyProject>>;
230
- getPACompanyDetails(companyId: string, params?: Record<string, string>): Promise<Company>;
231
- getActiveUsers(params: ActiveUsersStatsRequestPayload): Promise<ActiveUserStat>;
232
- getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
233
- };
234
- batteries: {
235
- ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
236
- batteryReadings(cameraExid: string, params: {
237
- fromDate: string;
238
- toDate: string;
239
- }): Promise<PaginatedItems<BatteryReading>>;
240
- readingsVoltageSummary(cameraExid: string, params: {
241
- fromDate: string;
242
- toDate: string;
243
- }): Promise<BatteryVoltage[]>;
244
- };
245
- layers: {
246
- getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: Record<string, string>): Promise<BIMLayer[]>;
247
- getLayersById(cameraId: string, id: number, params: Record<string, string>): Promise<BIMLayer>;
248
- getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
249
- createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
250
- deleteLayer(cameraId: string, id: number, params: Record<string, unknown>): Promise<void>;
251
- updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
252
- };
253
- comments: {
254
- fetchComments(projectExid: string, params: CommentsRequestPayload): Promise<PaginatedItems<Comment>>;
255
- addComment(projectId: string, params: CommentCreationRequestPayload): Promise<Comment>;
256
- archiveOrUnarchiveComment(projectId: string, id: number, archive: boolean): Promise<Comment>;
257
- deleteComment(projectId: string, id: number): Promise<void>;
258
- };
259
- storyblock: {
260
- getStory(params: {
261
- route: string;
262
- params: string;
263
- }): Promise<import("axios").AxiosResponse<any, any>>;
264
- };
265
- mailing: {
266
- unsubscribe(params: {
267
- key: string;
268
- }): Promise<import("axios").AxiosResponse<any, any>>;
269
- };
270
- widgets: {
271
- index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
272
- show(id: number): Promise<WidgetFull>;
273
- getByKeys(): Promise<WidgetFull>;
274
- setSessionSettings(params: any): Promise<WidgetFull>;
275
- createProjectWidget(projectId: string, payload: WidgetPayload): Promise<WidgetFull>;
276
- createCameraWidget(cameraId: string, payload: WidgetPayload): Promise<WidgetFull>;
277
- update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
278
- delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
279
- };
280
- };
@@ -1,50 +0,0 @@
1
- import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
2
- import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
3
- export declare function getLabsBaseUrl(): string | null | undefined;
4
- export declare const EvercamLabsApi: {
5
- milesight: {
6
- getVideoConfig({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraVideoConfig>;
7
- getNetworkConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraNetworkConfiguration>;
8
- getSystemSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
9
- getTimeSettings({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSystemSettings>;
10
- getOsdConfiguration({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraOsdConfiguration>;
11
- getSdCardInfo({ host, httpPort, username, password }: MilesightRequestParams, config?: {}): Promise<MilesightCameraSdCardInfo>;
12
- };
13
- posthog: {
14
- getEvents(params: any): Promise<PaginatedItems<any>>;
15
- getUsers(params: any): Promise<any>;
16
- };
17
- copilot: {
18
- getAllConversations(params: LabsPaginationParams & {
19
- cameraExid?: string;
20
- projectExid?: string;
21
- user?: string;
22
- }): Promise<PaginatedItems<CopilotConversation>>;
23
- getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
24
- getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
25
- getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
26
- submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
27
- };
28
- detections: {
29
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
30
- };
31
- googleCloudStorage: {
32
- listFiles(prefix?: string): Promise<{
33
- files: string[];
34
- folders: string[];
35
- }>;
36
- getSignedUrl(fileName: string): Promise<{
37
- url: string;
38
- }>;
39
- };
40
- luminance: {
41
- getReadings(params: {
42
- cameraExid: CameraExid;
43
- fromDate: string;
44
- toDate: string;
45
- }): Promise<LuminanceReading[]>;
46
- };
47
- kits: {
48
- getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
49
- };
50
- };
@@ -1,66 +0,0 @@
1
- import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
2
- export declare const IngestApi: {
3
- drone: {
4
- createUpload(projectId: string, params: {
5
- uploadedBy: string;
6
- }): Promise<import("axios").AxiosResponse<any, any>>;
7
- reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
8
- getDrones(params: {
9
- params: Partial<DronesQueryParams>;
10
- }): Promise<import("axios").AxiosResponse<any, any>>;
11
- getArchive(id: number, params: {
12
- dataType: string;
13
- }): Promise<import("axios").AxiosResponse<any, any>>;
14
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
15
- prepareForUpload(projectId: string, params: {
16
- uploadedBy: string;
17
- token: string;
18
- }): Promise<import("axios").AxiosResponse<any, any>>;
19
- upload(projectId: string, params: {
20
- uploadedBy: string;
21
- token: string;
22
- }, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
23
- verifyToken(projectId: string, params: {
24
- token: string;
25
- }): Promise<import("axios").AxiosResponse<any, any>>;
26
- calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
27
- inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
28
- isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
29
- getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
30
- getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
31
- checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
32
- };
33
- assets360: {
34
- get360Assets(params: {
35
- params: Partial<_360AssetsQueryParams>;
36
- }): Promise<import("axios").AxiosResponse<any, any>>;
37
- get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
38
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
39
- getArchive(id: number, params: {
40
- dateType: string;
41
- }): Promise<import("axios").AxiosResponse<any, any>>;
42
- createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
43
- upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
44
- generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
45
- get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
46
- };
47
- bim: {
48
- createUpload(projectId: string, params: {
49
- uploadedBy: string;
50
- }): Promise<import("axios").AxiosResponse<any, any>>;
51
- getBIMs(params: {
52
- params: Partial<BimUploadsQueryParams>;
53
- }): Promise<import("axios").AxiosResponse<any, any>>;
54
- getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
55
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
56
- upload(projectId: string, params: {
57
- id: string;
58
- name: string;
59
- }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
60
- };
61
- mobileCapture: {
62
- getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
63
- getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
64
- };
65
- getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
66
- };
@@ -1,9 +0,0 @@
1
- import { VideoWallPreset } from "@evercam/api/types";
2
- export declare const VideoWallApi: {
3
- presets: {
4
- getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
5
- saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
6
- getGlobalPreset(email: string): Promise<VideoWallPreset>;
7
- saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
8
- };
9
- };
@@ -1,83 +0,0 @@
1
- import { DateType } from "@/types/time";
2
- export type _360CameraParams = {
3
- azimuthAngle: number;
4
- polarAngle: number;
5
- };
6
- export type _360Floor = {
7
- floorID: string;
8
- name: string;
9
- };
10
- export type _360Scene = {
11
- date: string;
12
- dateID: string;
13
- floors: _360Floor[];
14
- polarAngle: number;
15
- azimuthAngle: number;
16
- };
17
- export type _360ProjectJsonResponse = {
18
- dates: _360Scene[];
19
- [key: string]: any;
20
- };
21
- export type MobileCaptureSnapshot = {
22
- id: string;
23
- uploadedBy: string;
24
- updatedAt: string;
25
- assetType: string;
26
- thumbnailUrl: string;
27
- };
28
- export declare enum _360UrlParams {
29
- DateId = "date_id",
30
- Floor = "floor",
31
- Marker = "marker",
32
- PolarAngle = "polarAngle",
33
- AzimuthAngle = "azimuthAngle"
34
- }
35
- export declare enum _360AssetType {
36
- Video = "video",
37
- Image = "image",
38
- Model = "model",
39
- Route = "route",
40
- MobilePhoto = "mobile_photos",
41
- MobileAudio = "mobile_audios"
42
- }
43
- export declare enum _360IntergrationType {
44
- Evercam = "Evercam",
45
- Matterport = "Matterport",
46
- OpenSpace = "Openspace",
47
- HoloBuilder = "Holobuilder",
48
- DroneDeploy = "Dronedeploy"
49
- }
50
- export type _360AssetsQueryParams = {
51
- page: number;
52
- limit: number;
53
- projectID: string;
54
- date: DateType;
55
- floor: string;
56
- id: string;
57
- };
58
- export type _360AssetsRequestPayload = {
59
- projectId: string;
60
- date: DateType;
61
- floor: string;
62
- uploadedBy?: string;
63
- };
64
- export type _360AssetsUploadPayload = {
65
- targetPointsCount: number;
66
- assetType: string;
67
- upload: {
68
- url: string;
69
- title: string;
70
- fileExtension: string;
71
- }[];
72
- deviceSerial: string;
73
- startPosition: string;
74
- endPosition: string;
75
- isTimelapse: boolean;
76
- };
77
- export type Generate360MapRequestPayload = {
78
- dateId: string;
79
- floorId: string;
80
- cameraOffset: string;
81
- startPoint: string;
82
- endPoint: string;
83
- };
@@ -1,45 +0,0 @@
1
- export type AconexUserProjectsResponsePayload = Array<{
2
- id: number;
3
- name: string;
4
- shortName: string;
5
- startDate: string;
6
- endDate: string;
7
- }>;
8
- export type AconexDocumentSchemaField = {
9
- dataType: AconexDocumentDataType;
10
- identifier: string;
11
- schemaValues: Array<{
12
- id: string;
13
- value: string;
14
- }>;
15
- fieldName: string;
16
- mandatoryStatus: AconexMandatoryStatus;
17
- componentType?: AconexFormComponentType;
18
- items?: Array<any>;
19
- disabled?: boolean;
20
- };
21
- export declare enum AconexDocumentDataType {
22
- Long = "LONG",
23
- Integer = "INTEGER",
24
- String = "STRING",
25
- Boolean = "BOOLEAN",
26
- Date = "DATE"
27
- }
28
- export declare enum AconexFormComponentType {
29
- Select = "SelectField",
30
- Text = "TextField",
31
- DateTime = "DateTimeField",
32
- Switch = "SwitchField"
33
- }
34
- export declare enum AconexMandatoryStatus {
35
- Mandatory = "MANDATORY",
36
- NotMandatory = "NOT_MANDATORY"
37
- }
38
- export type AconexAuthCallbackParams = {
39
- code: string;
40
- location: string;
41
- };
42
- export type AconexEditedImageUploadRequestPayload = {
43
- projectExid: string;
44
- snapshot: string;
45
- };
@@ -1,6 +0,0 @@
1
- export declare enum AutomationProvider {
2
- Aconex = "aconex",
3
- Procore = "procore",
4
- Autodesk = "autodesk",
5
- Email = "email"
6
- }
@@ -1,36 +0,0 @@
1
- import { CameraExid, DateType, ProjectExid } from "@/types";
2
- export type CommentsRequestPayload = {
3
- cameraExid: CameraExid;
4
- fromDate: string;
5
- toDate: string;
6
- page?: number;
7
- limit?: number;
8
- };
9
- export type CommentPosition = {
10
- coordinates: Array<number>;
11
- type: string;
12
- };
13
- export type Comment = {
14
- fromDate?: string;
15
- toDate?: string;
16
- timestamp: string;
17
- projectExid: ProjectExid;
18
- updatedAt?: string;
19
- id?: number;
20
- cameraExid: CameraExid;
21
- content: string;
22
- createdAt?: string;
23
- creatorEmail?: string;
24
- creatorName?: string;
25
- position2d: CommentPosition;
26
- canDelete?: boolean;
27
- };
28
- export type CommentCreationRequestPayload = {
29
- fromDate?: DateType;
30
- toDate?: DateType;
31
- timestamp: DateType;
32
- projectExid: ProjectExid;
33
- cameraExid: CameraExid;
34
- content: string;
35
- position2d: Array<number>;
36
- };
@@ -1,46 +0,0 @@
1
- import type { DateType, PaginationParams } from "@/types";
2
- export type CompanyUser = {
3
- id: number;
4
- fullname: string;
5
- email: string;
6
- eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
9
- };
10
- export type CompanyProject = {
11
- exid: string;
12
- name: string;
13
- status: string;
14
- startedAt: DateType;
15
- };
16
- export type Company = {
17
- id: number;
18
- exid: string;
19
- name: string;
20
- zohoId: string;
21
- domains: string;
22
- linkedinUrl: string;
23
- sessions: number;
24
- projects: number;
25
- cameras: number;
26
- users: number;
27
- activeUsers: number;
28
- createdAt: DateType;
29
- };
30
- export type CompanyQueryParams = PaginationParams & {
31
- name: string;
32
- exid: string;
33
- domains: string;
34
- projects: string;
35
- cameras: string;
36
- users: string;
37
- activeUsers: string;
38
- sessions: string;
39
- };
40
- export type CompanyUpdatePayload = {
41
- name: string;
42
- exid: string;
43
- linkedinUrl?: string;
44
- domains?: string;
45
- zohoId?: string;
46
- };
@@ -1,18 +0,0 @@
1
- import { DateType } from "@/types/time";
2
- export type CreateCoolifyAppRequestPayload = {
3
- cameraExid: string;
4
- startDate: DateType;
5
- modelVersion: string;
6
- snapshotRequestTimeout: string | number;
7
- serverUuid: string;
8
- branch: string;
9
- };
10
- export type SaveCoolifyAppRequestPayload = {
11
- contextCameraExid: string;
12
- coolifyServiceId: string;
13
- modelVersion: string;
14
- startTime: string;
15
- branchName: string;
16
- snapshotRequestTimeout: string | number;
17
- serverUuid: string;
18
- };