@evercam/api 1.0.0-68a5f1f7b → 1.0.0-6ab11f2f5

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 (108) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +26 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +70 -11
  4. package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +51 -37
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -0
  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} +73 -23
  12. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -11
  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 +125 -14
  21. package/dist/{types → api/types}/anpr.d.ts +7 -11
  22. package/dist/api/types/authz.d.ts +22 -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 +26 -55
  26. package/dist/api/types/comments.d.ts +59 -0
  27. package/dist/{types → api/types}/company.d.ts +29 -1
  28. package/dist/{types → api/types}/connector.d.ts +4 -0
  29. package/dist/{types → api/types}/coolify.d.ts +2 -0
  30. package/dist/{types → api/types}/countries.d.ts +0 -7
  31. package/dist/{types → api/types}/credentials.d.ts +1 -0
  32. package/dist/{types → api/types}/detections.d.ts +51 -15
  33. package/dist/{types → api/types}/errors.d.ts +13 -0
  34. package/dist/{types → api/types}/gateReport.d.ts +4 -101
  35. package/dist/{types → api/types}/index.d.ts +5 -1
  36. package/dist/{types → api/types}/ingest.d.ts +8 -0
  37. package/dist/{types → api/types}/kit.d.ts +80 -8
  38. package/dist/{types → api/types}/planner.d.ts +7 -0
  39. package/dist/api/types/posthog.d.ts +18 -0
  40. package/dist/api/types/procore.d.ts +222 -0
  41. package/dist/{types → api/types}/progressPhoto.d.ts +6 -22
  42. package/dist/{types → api/types}/project.d.ts +47 -3
  43. package/dist/{types → api/types}/recording.d.ts +2 -2
  44. package/dist/api/types/recycleBin.d.ts +14 -0
  45. package/dist/{types → api/types}/roi.d.ts +2 -1
  46. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  47. package/dist/{types → api/types}/router.d.ts +19 -0
  48. package/dist/{types → api/types}/shared.d.ts +1 -6
  49. package/dist/api/types/siteAnalytics.d.ts +247 -0
  50. package/dist/{types → api/types}/snapshots.d.ts +9 -0
  51. package/dist/api/types/sso.d.ts +55 -0
  52. package/dist/{types → api/types}/streaming.d.ts +2 -23
  53. package/dist/api/types/systemCheck.d.ts +11 -0
  54. package/dist/{types → api/types}/time.d.ts +6 -0
  55. package/dist/{types → api/types}/user.d.ts +5 -6
  56. package/dist/api/types/videoWall.d.ts +66 -0
  57. package/dist/{types → api/types}/weather.d.ts +2 -0
  58. package/dist/{types → api/types}/widget.d.ts +27 -6
  59. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  60. package/dist/index.d.ts +2 -3
  61. package/dist/index.js +1361 -787
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.umd.cjs +1 -1
  64. package/dist/index.umd.cjs.map +1 -1
  65. package/dist/shared/api/index.d.ts +3 -0
  66. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  67. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  68. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  69. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  70. package/dist/shared/types/components.d.ts +199 -0
  71. package/dist/shared/types/imagePlayer.d.ts +34 -0
  72. package/dist/shared/types/index.d.ts +4 -0
  73. package/dist/shared/types/timeline.d.ts +9 -0
  74. package/package.json +5 -4
  75. package/dist/api/3dFirebaseApi.d.ts +0 -9
  76. package/dist/api/ingestApi.d.ts +0 -66
  77. package/dist/api/videoWallApi.d.ts +0 -9
  78. package/dist/types/360.d.ts +0 -83
  79. package/dist/types/aconex.d.ts +0 -45
  80. package/dist/types/automation.d.ts +0 -6
  81. package/dist/types/comments.d.ts +0 -36
  82. package/dist/types/devices.d.ts +0 -228
  83. package/dist/types/procore.d.ts +0 -76
  84. package/dist/types/siteAnalytics.d.ts +0 -84
  85. package/dist/types/videoWall.d.ts +0 -33
  86. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  87. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  88. /package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +0 -0
  89. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  90. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  91. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  92. /package/dist/{types → api/types}/bim.d.ts +0 -0
  93. /package/dist/{types → api/types}/compare.d.ts +0 -0
  94. /package/dist/{types → api/types}/copilot.d.ts +0 -0
  95. /package/dist/{types → api/types}/drone.d.ts +0 -0
  96. /package/dist/{types → api/types}/hdd.d.ts +0 -0
  97. /package/dist/{types → api/types}/map.d.ts +0 -0
  98. /package/dist/{types → api/types}/media.d.ts +0 -0
  99. /package/dist/{types → api/types}/notification.d.ts +0 -0
  100. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  101. /package/dist/{types → api/types}/shares.d.ts +0 -0
  102. /package/dist/{types → api/types}/sim.d.ts +0 -0
  103. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  104. /package/dist/{types → api/types}/tag.d.ts +0 -0
  105. /package/dist/{types → api/types}/timelapse.d.ts +0 -0
  106. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  107. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  108. /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, 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, 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, CameraExid, 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, ProjectShareResponse, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, 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, 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>>;
@@ -55,14 +65,12 @@ export declare const EvercamApi: {
55
65
  exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
56
66
  };
57
67
  cameras: {
58
- getCameras(): Promise<CamerasResponsePayload>;
68
+ getCameras(params: {
69
+ params?: Partial<FetchCameraQueryParams>;
70
+ config?: AxiosRequestConfig;
71
+ }): Promise<CamerasResponsePayload>;
59
72
  getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
60
73
  getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
61
- portCheck(payload: {
62
- params: CheckCameraPortPayload;
63
- }): Promise<CheckCameraPortPayload & {
64
- open: boolean;
65
- }>;
66
74
  getNvrStreamingToken({ cameraExid, token, }: {
67
75
  cameraExid: string;
68
76
  token: string;
@@ -76,7 +84,10 @@ export declare const EvercamApi: {
76
84
  updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
77
85
  };
78
86
  projects: {
79
- index(params?: ApiCredentials): Promise<ProjectResponsePayload>;
87
+ index({ params, config, }: {
88
+ params?: ApiCredentials;
89
+ config: AxiosRequestConfig;
90
+ }): Promise<ProjectResponsePayload>;
80
91
  getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
81
92
  createLogo(projectId: string, formData: FormData): Promise<Logo & {
82
93
  id: number;
@@ -97,6 +108,21 @@ export declare const EvercamApi: {
97
108
  message: string;
98
109
  }>;
99
110
  getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
111
+ transferOwnership(projectExid: string, newOwnerId: number): Promise<{
112
+ message: string;
113
+ }>;
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>;
100
126
  };
101
127
  timelapse: {
102
128
  getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
@@ -121,14 +147,33 @@ export declare const EvercamApi: {
121
147
  getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
122
148
  revoke(): Promise<void>;
123
149
  uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
124
- getDocumentSchema(projectId: number): Promise<void>;
150
+ getDocumentSchema(projectId: number): Promise<AconexDocumentSchemaResponsePayload>;
151
+ getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchemaResponsePayload>;
125
152
  };
126
153
  procore: {
127
154
  getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
128
- getUserProjects(payload: ProcoreUserProjectRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
129
- getProjectAlbums(payload: ProcoreProjectsAlbumsRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
155
+ getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
156
+ getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
157
+ getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
130
158
  uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
131
159
  sendRevoke(): Promise<void>;
160
+ getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
161
+ getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
162
+ getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
163
+ getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
164
+ getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
165
+ createObservation(formData: FormData): Promise<void>;
166
+ getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
167
+ getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
168
+ getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
169
+ getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
170
+ getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
171
+ getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
172
+ getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
173
+ options: {
174
+ [key: string]: string[];
175
+ };
176
+ }>;
132
177
  };
133
178
  autodesk: {
134
179
  sendRevoke(): Promise<void>;
@@ -158,7 +203,7 @@ export declare const EvercamApi: {
158
203
  getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
159
204
  };
160
205
  progressPhotos: {
161
- index(): Promise<ProgressPhotosResponsePayload>;
206
+ index(projectId: string): Promise<ProgressPhotosResponsePayload>;
162
207
  show(id: string): Promise<ProgressPhotosResponsePayload>;
163
208
  create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
164
209
  update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
@@ -199,28 +244,31 @@ export declare const EvercamApi: {
199
244
  cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
200
245
  shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
201
246
  getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
202
- transferOwnership(cameraId: string, payload: {
203
- userId: number;
204
- }): Promise<void>;
205
247
  resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
206
248
  getProjectShares(exid: string): Promise<ProjectShareResponse>;
207
249
  updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
208
250
  };
209
- companies: {
210
- getCompanyUsers(companyExid: string, params: {
251
+ company: {
252
+ show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
253
+ getCompanyUsers(params: {
211
254
  params: {
212
255
  page: number;
213
256
  limit: number;
214
257
  };
215
258
  }): Promise<PaginatedItems<CompanyUser>>;
216
- getCompanyProjects(companyId: string, params: {
259
+ getCompanyProjects(params: {
217
260
  params: {
218
261
  page: number;
219
262
  limit: number;
220
263
  };
221
264
  }): Promise<PaginatedItems<CompanyProject>>;
222
- show(companyId: string, params?: Record<string, string>): Promise<Company>;
223
- getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
265
+ getCompanyCameras(params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
266
+ getCompanyKits(params: {
267
+ params: {
268
+ page: number;
269
+ limit: number;
270
+ };
271
+ }): Promise<PaginatedItems<CompanyKit>>;
224
272
  };
225
273
  batteries: {
226
274
  ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
@@ -263,8 +311,10 @@ export declare const EvercamApi: {
263
311
  show(id: number): Promise<WidgetFull>;
264
312
  getByKeys(): Promise<WidgetFull>;
265
313
  setSessionSettings(params: any): Promise<WidgetFull>;
266
- createProjectWidget(projectId: string, payload: WidgetPayload): Promise<WidgetFull>;
267
- createCameraWidget(cameraId: string, payload: WidgetPayload): Promise<WidgetFull>;
314
+ setStatus(id: number, params: {
315
+ active: boolean;
316
+ }): Promise<WidgetFull>;
317
+ create(payload: WidgetPayload): Promise<WidgetFull>;
268
318
  update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
269
319
  delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
270
320
  };
@@ -1,18 +1,12 @@
1
- import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, 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
- 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
6
  posthog: {
14
7
  getEvents(params: any): Promise<PaginatedItems<any>>;
15
8
  getUsers(params: any): Promise<any>;
9
+ getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
16
10
  };
17
11
  copilot: {
18
12
  getAllConversations(params: LabsPaginationParams & {
@@ -25,8 +19,10 @@ export declare const EvercamLabsApi: {
25
19
  getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
26
20
  submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
27
21
  };
28
- detections: {
29
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
22
+ siteAnalytics: {
23
+ getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: AxiosRequestConfig): Promise<SiteAnalyticsProcessingStatus[]>;
24
+ getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
25
+ getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
30
26
  };
31
27
  googleCloudStorage: {
32
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
+ };