@evercam/api 1.0.0-eabc633d1 → 1.0.0-ecc20ba32

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 +23 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +89 -26
  4. package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +56 -37
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -0
  6. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  7. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  8. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  9. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  10. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +89 -34
  11. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +8 -10
  12. package/dist/api/api/index.d.ts +13 -0
  13. package/dist/api/api/ingestApi.d.ts +95 -0
  14. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +4 -0
  15. package/dist/api/api/videoWallApi.d.ts +9 -0
  16. package/dist/api/api/weatherApi.d.ts +9 -0
  17. package/dist/api/index.d.ts +3 -13
  18. package/dist/{types → api/types}/360.d.ts +64 -0
  19. package/dist/api/types/aconex.d.ts +143 -0
  20. package/dist/{types → api/types}/analytics.d.ts +149 -69
  21. package/dist/{types → api/types}/anpr.d.ts +16 -17
  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 +15 -0
  25. package/dist/{types → api/types}/camera.d.ts +27 -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 +6 -1
  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 +1 -101
  35. package/dist/{types → api/types}/index.d.ts +8 -2
  36. package/dist/{types → api/types}/ingest.d.ts +8 -0
  37. package/dist/{types → api/types}/kit.d.ts +84 -7
  38. package/dist/{types/sitePlanner.d.ts → 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 +50 -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 +2 -16
  49. package/dist/{types → api/types}/shares.d.ts +5 -1
  50. package/dist/api/types/siteAnalytics.d.ts +163 -0
  51. package/dist/{types → api/types}/snapshots.d.ts +9 -0
  52. package/dist/api/types/sso.d.ts +55 -0
  53. package/dist/{types → api/types}/streaming.d.ts +3 -25
  54. package/dist/api/types/systemCheck.d.ts +11 -0
  55. package/dist/api/types/tag.d.ts +12 -0
  56. package/dist/{types → api/types}/time.d.ts +6 -0
  57. package/dist/{types → api/types}/user.d.ts +5 -6
  58. package/dist/api/types/videoWall.d.ts +66 -0
  59. package/dist/{types → api/types}/weather.d.ts +8 -2
  60. package/dist/{types → api/types}/widget.d.ts +27 -6
  61. package/dist/api/types/xweather.d.ts +12 -0
  62. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  63. package/dist/index.d.ts +2 -3
  64. package/dist/index.js +1439 -881
  65. package/dist/index.js.map +1 -1
  66. package/dist/index.umd.cjs +1 -1
  67. package/dist/index.umd.cjs.map +1 -1
  68. package/dist/shared/api/index.d.ts +3 -0
  69. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  70. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  71. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  72. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  73. package/dist/shared/types/components.d.ts +199 -0
  74. package/dist/shared/types/imagePlayer.d.ts +34 -0
  75. package/dist/shared/types/index.d.ts +4 -0
  76. package/dist/shared/types/timeline.d.ts +9 -0
  77. package/package.json +6 -5
  78. package/dist/api/3dFirebaseApi.d.ts +0 -9
  79. package/dist/api/ingestApi.d.ts +0 -65
  80. package/dist/api/videoWallApi.d.ts +0 -9
  81. package/dist/api/weatherApi.d.ts +0 -25
  82. package/dist/types/aconex.d.ts +0 -45
  83. package/dist/types/automation.d.ts +0 -6
  84. package/dist/types/comments.d.ts +0 -36
  85. package/dist/types/devices.d.ts +0 -228
  86. package/dist/types/procore.d.ts +0 -76
  87. package/dist/types/siteAnalytics.d.ts +0 -84
  88. package/dist/types/videoWall.d.ts +0 -33
  89. /package/dist/api/{client → api/client}/axios.d.ts +0 -0
  90. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  91. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  92. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  93. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  94. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  95. /package/dist/{types → api/types}/bim.d.ts +0 -0
  96. /package/dist/{types → api/types}/compare.d.ts +0 -0
  97. /package/dist/{types → api/types}/copilot.d.ts +0 -0
  98. /package/dist/{types → api/types}/drone.d.ts +0 -0
  99. /package/dist/{types → api/types}/hdd.d.ts +0 -0
  100. /package/dist/{types → api/types}/map.d.ts +0 -0
  101. /package/dist/{types → api/types}/media.d.ts +0 -0
  102. /package/dist/{types → api/types}/notification.d.ts +0 -0
  103. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  104. /package/dist/{types → api/types}/sim.d.ts +0 -0
  105. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  106. /package/dist/{types → api/types}/timelapse.d.ts +0 -0
  107. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  108. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,5 +1,5 @@
1
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, SessionActivitiesListRequestPayload, SessionActivity, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, 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,11 +10,18 @@ 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>;
16
23
  loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
17
- getUser(email: string): Promise<{
24
+ show(email: string): Promise<{
18
25
  users: LoginResponsePayload[];
19
26
  }>;
20
27
  logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
@@ -30,8 +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>>;
34
- getSessionActivities(payload: SessionActivitiesListRequestPayload): Promise<PaginatedItems<SessionActivity>>;
40
+ getActiveSessions(params: AxiosRequestConfig & {
41
+ params: SessionsListRequestPayload;
42
+ }): Promise<PaginatedItems<UserSession>>;
35
43
  update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
36
44
  users: LoginResponsePayload[];
37
45
  }>;
@@ -39,6 +47,7 @@ export declare const EvercamApi: {
39
47
  fetchPermissions(): Promise<{
40
48
  permissions: string[];
41
49
  }>;
50
+ getProjectContacts(projectExid: ProjectExid): Promise<import("axios").AxiosResponse<any, any>>;
42
51
  };
43
52
  notifications: {
44
53
  get(): Promise<import("axios").AxiosResponse<any, any>>;
@@ -56,14 +65,12 @@ export declare const EvercamApi: {
56
65
  exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
57
66
  };
58
67
  cameras: {
59
- getCameras(): Promise<CamerasResponsePayload>;
68
+ getCameras(params: {
69
+ params?: Partial<FetchCameraQueryParams>;
70
+ config?: AxiosRequestConfig;
71
+ }): Promise<CamerasResponsePayload>;
60
72
  getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
61
73
  getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
62
- portCheck(payload: {
63
- params: CheckCameraPortPayload;
64
- }): Promise<CheckCameraPortPayload & {
65
- open: boolean;
66
- }>;
67
74
  getNvrStreamingToken({ cameraExid, token, }: {
68
75
  cameraExid: string;
69
76
  token: string;
@@ -77,7 +84,10 @@ export declare const EvercamApi: {
77
84
  updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
78
85
  };
79
86
  projects: {
80
- index(params?: ApiCredentials): Promise<ProjectResponsePayload>;
87
+ index({ params, config, }: {
88
+ params?: ApiCredentials;
89
+ config: AxiosRequestConfig;
90
+ }): Promise<ProjectResponsePayload>;
81
91
  getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
82
92
  createLogo(projectId: string, formData: FormData): Promise<Logo & {
83
93
  id: number;
@@ -91,6 +101,28 @@ export declare const EvercamApi: {
91
101
  message: string;
92
102
  }>;
93
103
  getThumbnailData(projectExid: string): Promise<ThumbnailData>;
104
+ updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
105
+ updatePlaceholderThumbnail(projectExid: string, params: {
106
+ placeholder?: string;
107
+ }): Promise<{
108
+ message: string;
109
+ }>;
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>;
94
126
  };
95
127
  timelapse: {
96
128
  getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
@@ -104,6 +136,9 @@ export declare const EvercamApi: {
104
136
  cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
105
137
  cDelete(projectExid: string, id: string): Promise<void>;
106
138
  };
139
+ projectConnectos: {
140
+ index(projectExid: string): Promise<Array<XWeatherResponse>>;
141
+ };
107
142
  providers: {
108
143
  getProviders(): Promise<ConnectorResponsePayload>;
109
144
  };
@@ -112,14 +147,33 @@ export declare const EvercamApi: {
112
147
  getUserProjects(): Promise<AconexUserProjectsResponsePayload>;
113
148
  revoke(): Promise<void>;
114
149
  uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
115
- getDocumentSchema(projectId: number): Promise<void>;
150
+ getDocumentSchema(projectId: number): Promise<AconexDocumentSchemaResponsePayload>;
151
+ getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchemaResponsePayload>;
116
152
  };
117
153
  procore: {
118
154
  getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
119
- getUserProjects(payload: ProcoreUserProjectRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
120
- getProjectAlbums(payload: ProcoreProjectsAlbumsRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
155
+ getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
156
+ getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
157
+ getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
121
158
  uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
122
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
+ }>;
123
177
  };
124
178
  autodesk: {
125
179
  sendRevoke(): Promise<void>;
@@ -135,6 +189,10 @@ export declare const EvercamApi: {
135
189
  connect(payload: VoyageControlConnectorPayload): Promise<unknown>;
136
190
  sendRevoke(): Promise<null>;
137
191
  };
192
+ xweather: {
193
+ connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
194
+ revoke(projectExid: string): Promise<null>;
195
+ };
138
196
  recordings: {
139
197
  oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
140
198
  latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
@@ -145,7 +203,7 @@ export declare const EvercamApi: {
145
203
  getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
146
204
  };
147
205
  progressPhotos: {
148
- index(): Promise<ProgressPhotosResponsePayload>;
206
+ index(projectId: string): Promise<ProgressPhotosResponsePayload>;
149
207
  show(id: string): Promise<ProgressPhotosResponsePayload>;
150
208
  create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
151
209
  update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
@@ -160,14 +218,6 @@ export declare const EvercamApi: {
160
218
  cUpdate(projectExid: number, id: number, payload: MediaUpdateRequestPayload): Promise<Media>;
161
219
  cDelete(projectExid: number, id: number): Promise<void>;
162
220
  };
163
- analytics: {
164
- sendAnalyticsEvent(params: AnalyticsRequestPayload, headers: object): Promise<null>;
165
- getPACompanyPeriodEvents(id: string | number, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
166
- getPAProjectPeriodEvents(projectId: string, payload: ProjectPAStatsRequestPayload): Promise<PaginatedItems<ProjectPAStatsResponsePayload>>;
167
- getActiveUsers(params: {
168
- params: ActiveUsersStatsRequestPayload;
169
- }): Promise<ActiveUserStat>;
170
- };
171
221
  shares: {
172
222
  updateShareRights(cameraExid: CameraExid, payload: {
173
223
  email: string;
@@ -194,28 +244,31 @@ export declare const EvercamApi: {
194
244
  cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
195
245
  shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
196
246
  getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
197
- transferOwnership(cameraId: string, payload: {
198
- userId: number;
199
- }): Promise<void>;
200
247
  resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
201
248
  getProjectShares(exid: string): Promise<ProjectShareResponse>;
249
+ updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
202
250
  };
203
- companies: {
204
- getCompanyUsers(companyExid: string, params: {
251
+ company: {
252
+ show(companyId: string | undefined, params?: Record<string, string>): Promise<Company>;
253
+ getCompanyUsers(params: {
205
254
  params: {
206
255
  page: number;
207
256
  limit: number;
208
257
  };
209
258
  }): Promise<PaginatedItems<CompanyUser>>;
210
- getCompanyProjects(companyId: string, params: {
259
+ getCompanyProjects(params: {
211
260
  params: {
212
261
  page: number;
213
262
  limit: number;
214
263
  };
215
264
  }): Promise<PaginatedItems<CompanyProject>>;
216
- getPACompanyDetails(companyId: string, params?: Record<string, string>): Promise<Company>;
217
- getActiveUsers(params: ActiveUsersStatsRequestPayload): Promise<ActiveUserStat>;
218
- 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>>;
219
272
  };
220
273
  batteries: {
221
274
  ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
@@ -258,8 +311,10 @@ export declare const EvercamApi: {
258
311
  show(id: number): Promise<WidgetFull>;
259
312
  getByKeys(): Promise<WidgetFull>;
260
313
  setSessionSettings(params: any): Promise<WidgetFull>;
261
- createProjectWidget(projectId: string, payload: WidgetPayload): Promise<WidgetFull>;
262
- createCameraWidget(cameraId: string, payload: WidgetPayload): Promise<WidgetFull>;
314
+ setStatus(id: number, params: {
315
+ active: boolean;
316
+ }): Promise<WidgetFull>;
317
+ create(payload: WidgetPayload): Promise<WidgetFull>;
263
318
  update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
264
319
  delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
265
320
  };
@@ -1,14 +1,11 @@
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 } from "@evercam/api/types";
2
2
  import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
3
3
  export declare function getLabsBaseUrl(): string | null | undefined;
4
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>;
5
+ posthog: {
6
+ getEvents(params: any): Promise<PaginatedItems<any>>;
7
+ getUsers(params: any): Promise<any>;
8
+ getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
12
9
  };
13
10
  copilot: {
14
11
  getAllConversations(params: LabsPaginationParams & {
@@ -21,8 +18,9 @@ export declare const EvercamLabsApi: {
21
18
  getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
22
19
  submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
23
20
  };
24
- detections: {
25
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
21
+ siteAnalytics: {
22
+ getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
23
+ getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
26
24
  };
27
25
  googleCloudStorage: {
28
26
  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,95 @@
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
+ }, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
62
+ getDrawingById(id: number, projectExid: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
63
+ updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
64
+ deleteDrawing(id: number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
65
+ transferWalks(sourceId: number, targetId: number, projectExid: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
66
+ createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
67
+ fetchDrawingOverlay(id: number, params: {
68
+ view: boolean;
69
+ }, onDownloadProgress: (_progress: any) => {}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
70
+ generate360map(projectId: string, params: Generate360MapRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
71
+ get360QueueSize(params: _360QueueQueryParams, version?: IngestVersions): Promise<Record<string, any>>;
72
+ };
73
+ bim: {
74
+ createUpload(projectId: string, params: {
75
+ uploadedBy: string;
76
+ }): Promise<import("axios").AxiosResponse<any, any>>;
77
+ getBIMs(params: {
78
+ params: Partial<BimUploadsQueryParams>;
79
+ }): Promise<import("axios").AxiosResponse<any, any>>;
80
+ getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
81
+ deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
82
+ upload(projectId: string, params: {
83
+ id: string;
84
+ name: string;
85
+ }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
86
+ };
87
+ mobileCapture: {
88
+ getProjectMobileAssets(params: Record<string, unknown>, extraConfig?: AxiosRequestConfig, version?: IngestVersions): Promise<MobileCaptureSnapshot[]>;
89
+ getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
90
+ deleteAsset(assetId: string | number, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
91
+ };
92
+ utils: {
93
+ loadAllAssetsInQueue(): Promise<any[]>;
94
+ };
95
+ };
@@ -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
+ };
@@ -0,0 +1,9 @@
1
+ import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
2
+ import { AxiosRequestConfig } from "axios";
3
+ export declare const WeatherApi: {
4
+ current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
5
+ historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
6
+ report(projectExid: string, payload: HistoryWeatherRequestPayload, config?: AxiosRequestConfig): Promise<{
7
+ data: WeatherDataResponse[];
8
+ }> | undefined;
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";
@@ -14,6 +14,11 @@ export type _360Scene = {
14
14
  polarAngle: number;
15
15
  azimuthAngle: number;
16
16
  };
17
+ export type _360SceneRoute = {
18
+ cameraHeadingOffset?: number;
19
+ overlayID?: number;
20
+ track?: string;
21
+ };
17
22
  export type _360ProjectJsonResponse = {
18
23
  dates: _360Scene[];
19
24
  [key: string]: any;
@@ -27,6 +32,7 @@ export type MobileCaptureSnapshot = {
27
32
  };
28
33
  export declare enum _360UrlParams {
29
34
  DateId = "date_id",
35
+ Date = "date",
30
36
  Floor = "floor",
31
37
  Marker = "marker",
32
38
  PolarAngle = "polarAngle",
@@ -40,6 +46,15 @@ export declare enum _360AssetType {
40
46
  MobilePhoto = "mobile_photos",
41
47
  MobileAudio = "mobile_audios"
42
48
  }
49
+ export declare enum _360AssetLabel {
50
+ Walks = "walks",
51
+ MobilePhotos = "mobilePhotos"
52
+ }
53
+ export declare enum _360Feature {
54
+ BIM = "BIM",
55
+ Minimap = "Minimap",
56
+ Minimodel = "Minimodel"
57
+ }
43
58
  export declare enum _360IntergrationType {
44
59
  Evercam = "Evercam",
45
60
  Matterport = "Matterport",
@@ -47,6 +62,11 @@ export declare enum _360IntergrationType {
47
62
  HoloBuilder = "Holobuilder",
48
63
  DroneDeploy = "Dronedeploy"
49
64
  }
65
+ export declare enum PathMarkerColor {
66
+ Start = "#00e74c",
67
+ End = "#fd7567",
68
+ Default = "#2196F3"
69
+ }
50
70
  export type _360AssetsQueryParams = {
51
71
  page: number;
52
72
  limit: number;
@@ -61,6 +81,49 @@ export type _360AssetsRequestPayload = {
61
81
  floor: string;
62
82
  uploadedBy?: string;
63
83
  };
84
+ export type DrawingsRequestPayload = {
85
+ projectId?: string;
86
+ name?: string;
87
+ changedBy?: string;
88
+ mapStyle?: string;
89
+ startDate?: string;
90
+ endDate?: string;
91
+ id?: number;
92
+ page?: number;
93
+ limit?: number;
94
+ paginate?: boolean;
95
+ };
96
+ export type GenerateFloorPayload = {
97
+ overlay?: {
98
+ url: string;
99
+ title: string;
100
+ fileExtension: string;
101
+ };
102
+ changedBy: string;
103
+ name?: string;
104
+ mapStyle?: string;
105
+ overlayPositionCorners: {
106
+ northEast: {
107
+ lat: number;
108
+ lng: number;
109
+ };
110
+ northWest: {
111
+ lat: number;
112
+ lng: number;
113
+ };
114
+ southWest: {
115
+ lat: number;
116
+ lng: number;
117
+ };
118
+ southEast: {
119
+ lat: number;
120
+ lng: number;
121
+ };
122
+ };
123
+ };
124
+ export type _360QueueQueryParams = {
125
+ projectId?: string;
126
+ };
64
127
  export type _360AssetsUploadPayload = {
65
128
  targetPointsCount: number;
66
129
  assetType: string;
@@ -73,6 +136,7 @@ export type _360AssetsUploadPayload = {
73
136
  startPosition: string;
74
137
  endPosition: string;
75
138
  isTimelapse: boolean;
139
+ isImagesOnly: boolean;
76
140
  };
77
141
  export type Generate360MapRequestPayload = {
78
142
  dateId: string;