@evercam/api 1.0.0-ee9739480 → 1.0.0-eea993f14

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 (106) 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} +67 -33
  4. package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +40 -37
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +10 -1
  6. package/dist/api/{client → api/client}/axios.d.ts +1 -0
  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/{evercamApi.d.ts → api/evercamApi.d.ts} +48 -44
  12. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -2
  13. package/dist/api/api/index.d.ts +13 -0
  14. package/dist/api/api/ingestApi.d.ts +96 -0
  15. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +4 -0
  16. package/dist/api/api/videoWallApi.d.ts +9 -0
  17. package/dist/api/index.d.ts +3 -13
  18. package/dist/api/types/360.d.ts +274 -0
  19. package/dist/api/types/aconex.d.ts +143 -0
  20. package/dist/{types → api/types}/analytics.d.ts +113 -7
  21. package/dist/{types → api/types}/anpr.d.ts +7 -11
  22. package/dist/api/types/authz.d.ts +28 -0
  23. package/dist/api/types/automation.d.ts +61 -0
  24. package/dist/{types → api/types}/axios.d.ts +16 -0
  25. package/dist/{types → api/types}/camera.d.ts +24 -6
  26. package/dist/{types → api/types}/comments.d.ts +18 -2
  27. package/dist/{types → api/types}/company.d.ts +29 -1
  28. package/dist/{types → api/types}/coolify.d.ts +2 -0
  29. package/dist/{types → api/types}/countries.d.ts +0 -7
  30. package/dist/{types → api/types}/credentials.d.ts +1 -0
  31. package/dist/{types → api/types}/detections.d.ts +42 -18
  32. package/dist/{types → api/types}/errors.d.ts +13 -0
  33. package/dist/{types → api/types}/gateReport.d.ts +4 -101
  34. package/dist/{types → api/types}/index.d.ts +4 -0
  35. package/dist/{types → api/types}/ingest.d.ts +8 -0
  36. package/dist/{types → api/types}/kit.d.ts +55 -7
  37. package/dist/{types → api/types}/planner.d.ts +7 -0
  38. package/dist/api/types/posthog.d.ts +18 -0
  39. package/dist/{types → api/types}/procore.d.ts +13 -10
  40. package/dist/{types → api/types}/progressPhoto.d.ts +6 -22
  41. package/dist/{types → api/types}/project.d.ts +50 -3
  42. package/dist/{types → api/types}/recording.d.ts +2 -2
  43. package/dist/api/types/recycleBin.d.ts +14 -0
  44. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  45. package/dist/{types → api/types}/router.d.ts +19 -0
  46. package/dist/{types → api/types}/shared.d.ts +1 -6
  47. package/dist/api/types/shares.d.ts +58 -0
  48. package/dist/api/types/siteAnalytics.d.ts +247 -0
  49. package/dist/{types → api/types}/snapshots.d.ts +9 -0
  50. package/dist/api/types/sso.d.ts +55 -0
  51. package/dist/{types → api/types}/streaming.d.ts +1 -2
  52. package/dist/{types → api/types}/time.d.ts +6 -0
  53. package/dist/{types → api/types}/user.d.ts +19 -7
  54. package/dist/api/types/videoWall.d.ts +66 -0
  55. package/dist/{types → api/types}/weather.d.ts +2 -0
  56. package/dist/{types → api/types}/widget.d.ts +27 -6
  57. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  58. package/dist/index.d.ts +2 -3
  59. package/dist/index.js +1275 -823
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.umd.cjs +1 -1
  62. package/dist/index.umd.cjs.map +1 -1
  63. package/dist/shared/api/index.d.ts +3 -0
  64. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  65. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  66. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  67. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  68. package/dist/shared/types/components.d.ts +199 -0
  69. package/dist/shared/types/imagePlayer.d.ts +34 -0
  70. package/dist/shared/types/index.d.ts +4 -0
  71. package/dist/shared/types/timeline.d.ts +9 -0
  72. package/package.json +5 -4
  73. package/dist/api/3dFirebaseApi.d.ts +0 -10
  74. package/dist/api/ingestApi.d.ts +0 -68
  75. package/dist/api/videoWallApi.d.ts +0 -9
  76. package/dist/types/360.d.ts +0 -83
  77. package/dist/types/aconex.d.ts +0 -45
  78. package/dist/types/automation.d.ts +0 -6
  79. package/dist/types/shares.d.ts +0 -196
  80. package/dist/types/siteAnalytics.d.ts +0 -123
  81. package/dist/types/videoWall.d.ts +0 -33
  82. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  83. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  84. /package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +0 -0
  85. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  86. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  87. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  88. /package/dist/{types → api/types}/bim.d.ts +0 -0
  89. /package/dist/{types → api/types}/compare.d.ts +0 -0
  90. /package/dist/{types → api/types}/connector.d.ts +0 -0
  91. /package/dist/{types → api/types}/copilot.d.ts +0 -0
  92. /package/dist/{types → api/types}/drone.d.ts +0 -0
  93. /package/dist/{types → api/types}/hdd.d.ts +0 -0
  94. /package/dist/{types → api/types}/map.d.ts +0 -0
  95. /package/dist/{types → api/types}/media.d.ts +0 -0
  96. /package/dist/{types → api/types}/notification.d.ts +0 -0
  97. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  98. /package/dist/{types → api/types}/roi.d.ts +0 -0
  99. /package/dist/{types → api/types}/sim.d.ts +0 -0
  100. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  101. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  102. /package/dist/{types → api/types}/tag.d.ts +0 -0
  103. /package/dist/{types → api/types}/timelapse.d.ts +0 -0
  104. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  105. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  106. /package/dist/{types → api/types}/xweather.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { AxiosRequestConfig } from "axios";
2
- import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, 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, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, 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";
2
+ import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, AconexDocumentSchemaResponsePayload, AconexDocumentTypeSchemaResponsePayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyKit, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, ProjectResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber } from "@evercam/api/types";
3
3
  export declare const EvercamApi: {
4
4
  apiStatus: {
5
5
  getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
@@ -10,6 +10,13 @@ export declare const EvercamApi: {
10
10
  features: string[];
11
11
  }>;
12
12
  impersonationLogin(token: string): Promise<import("axios").AxiosResponse<any, any>>;
13
+ fetchLoginOptions(email: string): Promise<{
14
+ options: any[];
15
+ }>;
16
+ fetchSignupOptions(email: string): Promise<{
17
+ options: any[];
18
+ }>;
19
+ fetchProviderConfig(provider: string): Promise<any>;
13
20
  login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
14
21
  loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
15
22
  loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
@@ -30,7 +37,9 @@ export declare const EvercamApi: {
30
37
  }>;
31
38
  confirm(email: string, payload: any): Promise<LoginResponsePayload>;
32
39
  deleteActiveSession(sessionId: string, payload?: any): Promise<void>;
33
- getActiveSessions(payload: SessionsListRequestPayload): Promise<PaginatedItems<UserSession>>;
40
+ getActiveSessions(params: AxiosRequestConfig & {
41
+ params: SessionsListRequestPayload;
42
+ }): Promise<PaginatedItems<UserSession>>;
34
43
  update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
35
44
  users: LoginResponsePayload[];
36
45
  }>;
@@ -38,6 +47,7 @@ export declare const EvercamApi: {
38
47
  fetchPermissions(): Promise<{
39
48
  permissions: string[];
40
49
  }>;
50
+ getProjectContacts(projectExid: ProjectExid): Promise<import("axios").AxiosResponse<any, any>>;
41
51
  };
42
52
  notifications: {
43
53
  get(): Promise<import("axios").AxiosResponse<any, any>>;
@@ -56,15 +66,11 @@ export declare const EvercamApi: {
56
66
  };
57
67
  cameras: {
58
68
  getCameras(params: {
59
- params: Partial<FetchCameraQueryParams>;
69
+ params?: Partial<FetchCameraQueryParams>;
70
+ config?: AxiosRequestConfig;
60
71
  }): Promise<CamerasResponsePayload>;
61
72
  getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
62
73
  getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
63
- portCheck(payload: {
64
- params: CheckCameraPortPayload;
65
- }): Promise<CheckCameraPortPayload & {
66
- open: boolean;
67
- }>;
68
74
  getNvrStreamingToken({ cameraExid, token, }: {
69
75
  cameraExid: string;
70
76
  token: string;
@@ -78,7 +84,10 @@ export declare const EvercamApi: {
78
84
  updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
79
85
  };
80
86
  projects: {
81
- index(params?: ApiCredentials): Promise<ProjectResponsePayload>;
87
+ index({ params, config, }: {
88
+ params?: ApiCredentials;
89
+ config: AxiosRequestConfig;
90
+ }): Promise<ProjectResponsePayload>;
82
91
  getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
83
92
  createLogo(projectId: string, formData: FormData): Promise<Logo & {
84
93
  id: number;
@@ -103,6 +112,17 @@ export declare const EvercamApi: {
103
112
  message: string;
104
113
  }>;
105
114
  getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
115
+ getCameras(projectExid: string): Promise<{
116
+ cameras: Camera[];
117
+ }>;
118
+ getCameraRefs(projectExid: string): Promise<{
119
+ cameras: Camera[];
120
+ }>;
121
+ getTeamMembers(): Promise<import("axios").AxiosResponse<any, any>>;
122
+ getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
123
+ inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectInviteMembersResponsePayload>;
124
+ removeMembers(projectExid: string, emails: string[]): Promise<void>;
125
+ updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
106
126
  };
107
127
  timelapse: {
108
128
  getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
@@ -127,7 +147,8 @@ export declare const EvercamApi: {
127
147
  getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
128
148
  revoke(): Promise<void>;
129
149
  uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
130
- getDocumentSchema(projectId: number): Promise<void>;
150
+ getDocumentSchema(projectId: number): Promise<AconexDocumentSchemaResponsePayload>;
151
+ getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchemaResponsePayload>;
131
152
  };
132
153
  procore: {
133
154
  getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
@@ -138,6 +159,7 @@ export declare const EvercamApi: {
138
159
  sendRevoke(): Promise<void>;
139
160
  getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
140
161
  getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
162
+ getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
141
163
  getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
142
164
  getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
143
165
  createObservation(formData: FormData): Promise<void>;
@@ -181,7 +203,7 @@ export declare const EvercamApi: {
181
203
  getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
182
204
  };
183
205
  progressPhotos: {
184
- index(): Promise<ProgressPhotosResponsePayload>;
206
+ index(projectId: string): Promise<ProgressPhotosResponsePayload>;
185
207
  show(id: string): Promise<ProgressPhotosResponsePayload>;
186
208
  create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
187
209
  update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
@@ -197,53 +219,33 @@ export declare const EvercamApi: {
197
219
  cDelete(projectExid: number, id: number): Promise<void>;
198
220
  };
199
221
  shares: {
200
- updateShareRights(cameraExid: CameraExid, payload: {
201
- email: string;
202
- rights: string;
203
- }): Promise<Share>;
204
- updateShareRequestRights(cameraExid: CameraExid, payload: {
205
- email: string;
206
- rights: string;
207
- }): Promise<import("axios").AxiosResponse<any, any>>;
208
- cIndex(cameraId: string): Promise<SharesResponsePayload>;
209
- getShareRequest(cameraId: string, payload: {
210
- status: string;
211
- }): Promise<ShareRequestsResponsePayload>;
212
- deleteShare(cameraId: string, payload: {
213
- [key: string]: ShareDeletionRequestPayload;
214
- }): Promise<void>;
215
- deleteRequest(cameraId: string, payload: {
216
- [key: string]: ShareDeletionRequestPayload;
217
- }): Promise<void>;
218
222
  deleteShareRequest(payload: {
219
223
  params: ShareDeletionRequestPayload;
220
224
  }): Promise<void>;
221
225
  getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
222
- cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
223
- shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
224
226
  getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
225
- transferOwnership(cameraId: string, payload: {
226
- userId: number;
227
- }): Promise<void>;
228
- resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
229
- getProjectShares(exid: string): Promise<ProjectShareResponse>;
230
- updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
231
227
  };
232
- companies: {
233
- getCompanyUsers(companyExid: string, params: {
228
+ company: {
229
+ show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
230
+ getCompanyUsers(params: {
234
231
  params: {
235
232
  page: number;
236
233
  limit: number;
237
234
  };
238
235
  }): Promise<PaginatedItems<CompanyUser>>;
239
- getCompanyProjects(companyId: string, params: {
236
+ getCompanyProjects(params: {
240
237
  params: {
241
238
  page: number;
242
239
  limit: number;
243
240
  };
244
241
  }): Promise<PaginatedItems<CompanyProject>>;
245
- show(companyId: string, params?: Record<string, string>): Promise<Company>;
246
- getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
242
+ getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
243
+ getCompanyKits(params: {
244
+ params: {
245
+ page: number;
246
+ limit: number;
247
+ };
248
+ }): Promise<PaginatedItems<CompanyKit>>;
247
249
  };
248
250
  batteries: {
249
251
  ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
@@ -286,8 +288,10 @@ export declare const EvercamApi: {
286
288
  show(id: number): Promise<WidgetFull>;
287
289
  getByKeys(): Promise<WidgetFull>;
288
290
  setSessionSettings(params: any): Promise<WidgetFull>;
289
- createProjectWidget(projectId: string, payload: WidgetPayload): Promise<WidgetFull>;
290
- createCameraWidget(cameraId: string, payload: WidgetPayload): Promise<WidgetFull>;
291
+ setStatus(id: number, params: {
292
+ active: boolean;
293
+ }): Promise<WidgetFull>;
294
+ create(payload: WidgetPayload): Promise<WidgetFull>;
291
295
  update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
292
296
  delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
293
297
  };
@@ -1,10 +1,12 @@
1
- import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
1
+ import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
2
2
  import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
3
+ import { AxiosRequestConfig } from "axios";
3
4
  export declare function getLabsBaseUrl(): string | null | undefined;
4
5
  export declare const EvercamLabsApi: {
5
6
  posthog: {
6
7
  getEvents(params: any): Promise<PaginatedItems<any>>;
7
8
  getUsers(params: any): Promise<any>;
9
+ getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
8
10
  };
9
11
  copilot: {
10
12
  getAllConversations(params: LabsPaginationParams & {
@@ -17,8 +19,10 @@ export declare const EvercamLabsApi: {
17
19
  getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
18
20
  submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
19
21
  };
20
- detections: {
22
+ siteAnalytics: {
23
+ getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: AxiosRequestConfig): Promise<SiteAnalyticsProcessingStatus[]>;
21
24
  getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
25
+ getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
22
26
  };
23
27
  googleCloudStorage: {
24
28
  listFiles(prefix?: string): Promise<{
@@ -0,0 +1,13 @@
1
+ export * from "./client";
2
+ export * from "./adminApi";
3
+ export * from "./videoWallApi";
4
+ export * from "./3dFirebaseApi";
5
+ export * from "./aiApi";
6
+ export * from "./webRtcApi";
7
+ export * from "./weatherApi";
8
+ export * from "./evercamLabsApi";
9
+ export * from "./evercamApi";
10
+ export * from "./ptzApi";
11
+ export * from "./ingestApi";
12
+ export * from "./exNvrApi";
13
+ export * from "./authzApi";
@@ -0,0 +1,96 @@
1
+ import type { AxiosRequestConfig } from "axios";
2
+ import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360QueueQueryParams, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DrawingsRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
3
+ import { IngestVersions } from "@evercam/api/types";
4
+ export declare const getIngestApiUrl: (version: string) => string | undefined | null;
5
+ export declare const IngestApi: {
6
+ drone: {
7
+ createUpload(projectId: string, params: {
8
+ uploadedBy: string;
9
+ }): Promise<import("axios").AxiosResponse<any, any>>;
10
+ reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
11
+ getDrones(params: {
12
+ params: Partial<DronesQueryParams>;
13
+ }): Promise<import("axios").AxiosResponse<any, any>>;
14
+ getArchive(id: number, params: {
15
+ dataType: string;
16
+ }): Promise<import("axios").AxiosResponse<any, any>>;
17
+ deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
18
+ prepareForUpload(projectId: string, params: {
19
+ uploadedBy: string;
20
+ token: string;
21
+ }): Promise<import("axios").AxiosResponse<any, any>>;
22
+ upload(projectId: string, params: {
23
+ uploadedBy: string;
24
+ token: string;
25
+ }, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
26
+ verifyToken(projectId: string, params: {
27
+ token: string;
28
+ }): Promise<import("axios").AxiosResponse<any, any>>;
29
+ calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
30
+ inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
31
+ isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
32
+ getDroneQueueSize(version?: IngestVersions): Promise<Record<string, any>>;
33
+ getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
34
+ checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
35
+ };
36
+ assets360: {
37
+ get360Assets(params: {
38
+ params: Partial<_360AssetsQueryParams>;
39
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
40
+ get360AssetsCounts(projectId: string, params: {
41
+ uploadedBy: string;
42
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
43
+ get360AssetLink(projectId: string, date: string, floor: string, assetType: string, drawingId: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
44
+ update360(id: number, payload: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
45
+ update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
46
+ deleteUpload(id: number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
47
+ getArchive(id: number, params: {
48
+ dateType: string;
49
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
50
+ createUpload(projectId: string, params: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
51
+ upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
52
+ reprocess360(id: number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
53
+ drawingExists(payload: {
54
+ params: {
55
+ name: string;
56
+ project_id: string;
57
+ };
58
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
59
+ getDrawings(payload: {
60
+ params: DrawingsRequestPayload;
61
+ config: AxiosRequestConfig;
62
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
63
+ getDrawingById(id: number, projectExid: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
64
+ updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
65
+ deleteDrawing(id: number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
66
+ transferWalks(sourceId: number, targetId: number, projectExid: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
67
+ createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
68
+ fetchDrawingOverlay(id: number, params: {
69
+ view: boolean;
70
+ }, onDownloadProgress: (_progress: any) => {}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
71
+ generate360map(projectId: string, params: Generate360MapRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
72
+ get360QueueSize(params: _360QueueQueryParams, version?: IngestVersions): Promise<Record<string, any>>;
73
+ };
74
+ bim: {
75
+ createUpload(projectId: string, params: {
76
+ uploadedBy: string;
77
+ }): Promise<import("axios").AxiosResponse<any, any>>;
78
+ getBIMs(params: {
79
+ params: Partial<BimUploadsQueryParams>;
80
+ }): Promise<import("axios").AxiosResponse<any, any>>;
81
+ getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
82
+ deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
83
+ upload(projectId: string, params: {
84
+ id: string;
85
+ name: string;
86
+ }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
87
+ };
88
+ mobileCapture: {
89
+ getProjectMobileAssets(params: Record<string, unknown>, extraConfig?: AxiosRequestConfig, version?: IngestVersions): Promise<MobileCaptureSnapshot[]>;
90
+ getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
91
+ deleteAsset(assetId: string | number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
92
+ };
93
+ utils: {
94
+ loadAllAssetsInQueue(): Promise<any[]>;
95
+ };
96
+ };
@@ -21,6 +21,10 @@ export declare const PtzApi: {
21
21
  presetId: string | number;
22
22
  presetName: string;
23
23
  }): Promise<import("axios").AxiosResponse<any, any>>;
24
+ updateHome({ cameraExid, presetName, }: {
25
+ cameraExid: string;
26
+ presetName: string;
27
+ }): Promise<import("axios").AxiosResponse<any, any>>;
24
28
  delete({ cameraExid, presetId, }: {
25
29
  cameraExid: string;
26
30
  presetId: string | number;
@@ -0,0 +1,9 @@
1
+ import { type PaginatedItems } from "@evercam/shared/types";
2
+ import { VideoWall, ListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
3
+ export declare const VideoWallApi: {
4
+ list(params?: ListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
5
+ create(body: VideoWallCreateUpdatePayload): Promise<import("axios").AxiosResponse<VideoWall, any>>;
6
+ get(exid: string | number): Promise<import("axios").AxiosResponse<VideoWall, any>>;
7
+ update(exid: string | number, body: Partial<VideoWallCreateUpdatePayload>): Promise<import("axios").AxiosResponse<VideoWall, any>>;
8
+ delete(exid: string | number): Promise<import("axios").AxiosResponse<any, any>>;
9
+ };
@@ -1,13 +1,3 @@
1
- export * from "./client";
2
- export * from "./adminApi";
3
- export * from "./videoWallApi";
4
- export * from "./3dFirebaseApi";
5
- export * from "./aiApi";
6
- export * from "./webRtcApi";
7
- export * from "./weatherApi";
8
- export * from "./evercamLabsApi";
9
- export * from "./evercamApi";
10
- export * from "./ptzApi";
11
- export * from "./ingestApi";
12
- export * from "./exNvrApi";
13
- export * from "./authzApi";
1
+ export * from "./api";
2
+ export * from "./types";
3
+ export * from "./utils";
@@ -0,0 +1,274 @@
1
+ import { DateType } from "@/types/time";
2
+ export type _360CameraParams = {
3
+ azimuthAngle: number;
4
+ polarAngle: number;
5
+ };
6
+ export type _360Vector3D = {
7
+ x: number;
8
+ y: number;
9
+ z: number;
10
+ };
11
+ export type _360Geolocation = {
12
+ latitude: number;
13
+ longitude: number;
14
+ };
15
+ export type _360CameraRotation = {
16
+ azimuthAngle: number;
17
+ polarAngle: number;
18
+ };
19
+ export type _360Marker3D = {
20
+ cameraPosition: _360Vector3D;
21
+ geolocation: _360Geolocation;
22
+ nextRoomId: _360MakerId;
23
+ position: _360Vector3D;
24
+ rotation: {
25
+ _order: "XYZ" | string;
26
+ _x: number;
27
+ _y: number;
28
+ _z: number;
29
+ isEuler: boolean;
30
+ };
31
+ };
32
+ export type _360Tag = {
33
+ id: string;
34
+ tagType: string;
35
+ comment: string;
36
+ creationDate: number;
37
+ currentRoom: _360MakerId;
38
+ position: _360Vector3D;
39
+ cameraRotation: _360CameraRotation;
40
+ };
41
+ export type _360FloorId = string | number;
42
+ export type _360Walk = Record<_360FloorId, _360Floor>;
43
+ export type _360MakerId = string;
44
+ export type _360Floor = {
45
+ _3DMarkers: _360Marker3D[];
46
+ cameraRotation: _360CameraRotation;
47
+ fbxModel: string;
48
+ initialMarker: _360MakerId;
49
+ modelViewerFeatureFlag: boolean;
50
+ route: {
51
+ cameraHeadingOffset: string;
52
+ overlayID: number;
53
+ track: string;
54
+ };
55
+ sceneScale: number;
56
+ steps: number;
57
+ tags: Record<string, _360Tag>;
58
+ };
59
+ export type _360WalkV2 = {
60
+ archive: string;
61
+ date: string;
62
+ deviceSerial: string | null;
63
+ endPosition: unknown | null;
64
+ floor: string;
65
+ floorId: number;
66
+ id: number;
67
+ images: string[];
68
+ insertedAt: string;
69
+ mobileAudios: string[];
70
+ mobileAudiosArchive: string;
71
+ mobilePhotos: string[];
72
+ mobilePhotosArchive: string;
73
+ model: string;
74
+ name: string;
75
+ processingStatus: string;
76
+ projectId: string;
77
+ report: string;
78
+ route: unknown | null;
79
+ startPosition: unknown | null;
80
+ tusLinks: unknown | null;
81
+ updatedAt: string;
82
+ uploadedBy: string;
83
+ videoArchive: string;
84
+ videos: string[];
85
+ };
86
+ export type _360FloorV2 = {
87
+ id: _360FloorId;
88
+ assets: _360WalkV2[];
89
+ projectId: string;
90
+ name: string;
91
+ mapStyle: string;
92
+ hasOverlay: boolean;
93
+ isCalibrated: boolean;
94
+ createdBy: string | null;
95
+ overlayPosition: {
96
+ northEast: {
97
+ lat: number;
98
+ lng: number;
99
+ };
100
+ northWest: {
101
+ lat: number;
102
+ lng: number;
103
+ };
104
+ southEast: {
105
+ lat: number;
106
+ lng: number;
107
+ };
108
+ southWest: {
109
+ lat: number;
110
+ lng: number;
111
+ };
112
+ };
113
+ insertedAt: string;
114
+ updatedAt: string;
115
+ };
116
+ export type _360Scene = {
117
+ date: string;
118
+ dateID: number;
119
+ floors: {
120
+ floorID: _360FloorId;
121
+ name: string;
122
+ }[];
123
+ polarAngle: number;
124
+ azimuthAngle: number;
125
+ };
126
+ export type _360SceneRoute = {
127
+ cameraHeadingOffset?: number;
128
+ overlayID?: number;
129
+ track?: string;
130
+ };
131
+ export type _360FullProject = {
132
+ dates: _360SceneWithFloors[];
133
+ integrationType: string;
134
+ projectId: string;
135
+ projectName: string;
136
+ providerID: string;
137
+ providerPrefix: string;
138
+ providerSuffix: string;
139
+ timeline: string;
140
+ uniqueId: string;
141
+ };
142
+ export type _360FullFloor = _360Floor & {
143
+ id: _360FloorId;
144
+ name: string;
145
+ };
146
+ export type _360SceneWithFloors = _360Scene & {
147
+ floors: _360FullFloor[];
148
+ };
149
+ export type _360ProjectJsonResponse = {
150
+ dates: _360Scene[];
151
+ [key: string]: any;
152
+ };
153
+ export type MobileCaptureSnapshot = {
154
+ id: string;
155
+ uploadedBy: string;
156
+ updatedAt: string;
157
+ assetType: string;
158
+ thumbnailUrl: string;
159
+ };
160
+ export declare enum _360UrlParams {
161
+ DateId = "date_id",
162
+ Date = "date",
163
+ Floor = "floor",
164
+ Marker = "marker",
165
+ PolarAngle = "polarAngle",
166
+ AzimuthAngle = "azimuthAngle"
167
+ }
168
+ export declare enum _360AssetType {
169
+ Video = "video",
170
+ Image = "image",
171
+ Model = "model",
172
+ Route = "route",
173
+ MobilePhoto = "mobile_photos",
174
+ MobileAudio = "mobile_audios"
175
+ }
176
+ export declare enum _360AssetLabel {
177
+ Walks = "walks",
178
+ MobilePhotos = "mobilePhotos"
179
+ }
180
+ export declare enum _360Feature {
181
+ BIM = "BIM",
182
+ Minimap = "Minimap",
183
+ Minimodel = "Minimodel"
184
+ }
185
+ export declare enum _360IntergrationType {
186
+ Evercam = "Evercam",
187
+ Matterport = "Matterport",
188
+ OpenSpace = "Openspace",
189
+ HoloBuilder = "Holobuilder",
190
+ DroneDeploy = "Dronedeploy"
191
+ }
192
+ export declare enum PathMarkerColor {
193
+ Start = "#00e74c",
194
+ End = "#fd7567",
195
+ Default = "#2196F3"
196
+ }
197
+ export type _360AssetsQueryParams = {
198
+ page: number;
199
+ limit: number;
200
+ projectID: string;
201
+ date: DateType;
202
+ floor: string;
203
+ id: string;
204
+ };
205
+ export type _360AssetsRequestPayload = {
206
+ projectId: string;
207
+ date: DateType;
208
+ floor: string;
209
+ uploadedBy?: string;
210
+ };
211
+ export type DrawingsRequestPayload = {
212
+ projectId?: string;
213
+ name?: string;
214
+ changedBy?: string;
215
+ mapStyle?: string;
216
+ startDate?: string;
217
+ endDate?: string;
218
+ id?: number;
219
+ page?: number;
220
+ limit?: number;
221
+ paginate?: boolean;
222
+ };
223
+ export type GenerateFloorPayload = {
224
+ overlay?: {
225
+ url: string;
226
+ title: string;
227
+ fileExtension: string;
228
+ };
229
+ changedBy: string;
230
+ name?: string;
231
+ mapStyle?: string;
232
+ overlayPositionCorners: {
233
+ northEast: {
234
+ lat: number;
235
+ lng: number;
236
+ };
237
+ northWest: {
238
+ lat: number;
239
+ lng: number;
240
+ };
241
+ southWest: {
242
+ lat: number;
243
+ lng: number;
244
+ };
245
+ southEast: {
246
+ lat: number;
247
+ lng: number;
248
+ };
249
+ };
250
+ };
251
+ export type _360QueueQueryParams = {
252
+ projectId?: string;
253
+ };
254
+ export type _360AssetsUploadPayload = {
255
+ targetPointsCount: number;
256
+ assetType: string;
257
+ upload: {
258
+ url: string;
259
+ title: string;
260
+ fileExtension: string;
261
+ }[];
262
+ deviceSerial: string;
263
+ startPosition: string;
264
+ endPosition: string;
265
+ isTimelapse: boolean;
266
+ isImagesOnly: boolean;
267
+ };
268
+ export type Generate360MapRequestPayload = {
269
+ dateId: string;
270
+ floorId: string;
271
+ cameraOffset: string;
272
+ startPoint: string;
273
+ endPoint: string;
274
+ };