@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5

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 (87) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +105 -96
  4. package/dist/api/api/aiApi.d.ts +131 -7
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +62 -35
  7. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  8. package/dist/api/api/exNvrApi.d.ts +1 -1
  9. package/dist/api/api/index.d.ts +1 -0
  10. package/dist/api/api/ingestApi.d.ts +89 -66
  11. package/dist/api/api/reportsApi.d.ts +15 -0
  12. package/dist/api/types/360.d.ts +178 -86
  13. package/dist/api/types/admin.d.ts +37 -3
  14. package/dist/api/types/aiConfigs.d.ts +244 -0
  15. package/dist/api/types/analytics.d.ts +66 -37
  16. package/dist/api/types/anpr.d.ts +36 -6
  17. package/dist/api/types/apiKey.d.ts +70 -0
  18. package/dist/api/types/auditLogs.d.ts +179 -21
  19. package/dist/api/types/authz.d.ts +72 -0
  20. package/dist/api/types/automation.d.ts +32 -4
  21. package/dist/api/types/axios.d.ts +12 -12
  22. package/dist/api/types/bim.d.ts +55 -12
  23. package/dist/api/types/camera.d.ts +238 -126
  24. package/dist/api/types/comments.d.ts +67 -26
  25. package/dist/api/types/company.d.ts +11 -5
  26. package/dist/api/types/compare.d.ts +1 -1
  27. package/dist/api/types/connector.d.ts +2 -0
  28. package/dist/api/types/detections.d.ts +9 -10
  29. package/dist/api/types/drone.d.ts +95 -6
  30. package/dist/api/types/emailMessages.d.ts +27 -0
  31. package/dist/api/types/errors.d.ts +19 -2
  32. package/dist/api/types/gateReport.d.ts +9 -23
  33. package/dist/api/types/gateReportManagement.d.ts +170 -0
  34. package/dist/api/types/hammertech.d.ts +98 -0
  35. package/dist/api/types/hdd.d.ts +1 -1
  36. package/dist/api/types/index.d.ts +11 -2
  37. package/dist/api/types/ingest.d.ts +200 -20
  38. package/dist/api/types/kit.d.ts +97 -117
  39. package/dist/api/types/map.d.ts +12 -0
  40. package/dist/api/types/media.d.ts +31 -3
  41. package/dist/api/types/notification.d.ts +52 -2
  42. package/dist/api/types/nvr.d.ts +39 -8
  43. package/dist/api/types/observationEvents.d.ts +167 -0
  44. package/dist/api/types/observations.d.ts +89 -0
  45. package/dist/api/types/planner.d.ts +98 -8
  46. package/dist/api/types/posthog.d.ts +56 -0
  47. package/dist/api/types/progressPhoto.d.ts +38 -25
  48. package/dist/api/types/project.d.ts +75 -24
  49. package/dist/api/types/recording.d.ts +8 -13
  50. package/dist/api/types/recycleBin.d.ts +8 -2
  51. package/dist/api/types/reports.d.ts +108 -0
  52. package/dist/api/types/ring.d.ts +16 -16
  53. package/dist/api/types/roi.d.ts +3 -11
  54. package/dist/api/types/routeParams.d.ts +1 -0
  55. package/dist/api/types/router.d.ts +15 -10
  56. package/dist/api/types/shared.d.ts +39 -29
  57. package/dist/api/types/shares.d.ts +0 -13
  58. package/dist/api/types/sim.d.ts +18 -6
  59. package/dist/api/types/siteAnalytics.d.ts +3 -5
  60. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  61. package/dist/api/types/siteView.d.ts +79 -0
  62. package/dist/api/types/snapshots.d.ts +98 -13
  63. package/dist/api/types/socket.d.ts +4 -0
  64. package/dist/api/types/sso.d.ts +11 -37
  65. package/dist/api/types/storageProvider.d.ts +16 -5
  66. package/dist/api/types/storyblok.d.ts +0 -13
  67. package/dist/api/types/timelapse.d.ts +6 -9
  68. package/dist/api/types/user.d.ts +42 -32
  69. package/dist/api/types/widget.d.ts +13 -4
  70. package/dist/api/utils.d.ts +1 -1
  71. package/dist/index.js +2331 -966
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.umd.cjs +1 -1
  74. package/dist/index.umd.cjs.map +1 -1
  75. package/dist/shared/types/components.d.ts +530 -43
  76. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  77. package/dist/shared/types/droneUpload.d.ts +93 -0
  78. package/dist/shared/types/imagePlayer.d.ts +8 -1
  79. package/dist/shared/types/index.d.ts +5 -0
  80. package/dist/shared/types/observations.d.ts +25 -0
  81. package/dist/shared/types/rbac.d.ts +67 -0
  82. package/dist/shared/types/report.d.ts +107 -0
  83. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  84. package/dist/shared/utils/datePresets.d.ts +31 -0
  85. package/package.json +4 -2
  86. package/dist/api/types/copilot.d.ts +0 -162
  87. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@evercam/api/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -7,7 +7,8 @@ export declare enum TimelapseStatus {
7
7
  export declare enum TimelapseDuration {
8
8
  ThirtySeconds = 30,
9
9
  SixtySeconds = 60,
10
- NintySeconds = 90
10
+ NintySeconds = 90,
11
+ TwoMinutes = 120
11
12
  }
12
13
  export type TimelapseVideoOptions = {
13
14
  width?: number;
@@ -15,7 +16,9 @@ export type TimelapseVideoOptions = {
15
16
  removeTimestamp: boolean;
16
17
  smoothTransition: boolean;
17
18
  evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
18
20
  timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
19
22
  };
20
23
  export type TimestampPositionCoordinates = {
21
24
  x: number;
@@ -23,6 +26,7 @@ export type TimestampPositionCoordinates = {
23
26
  w: number;
24
27
  h: number;
25
28
  };
29
+ export type BlurRegionCoordinates = Point2D[];
26
30
  export type TimelapseLogoOptions = {
27
31
  id?: number;
28
32
  x: number;
@@ -50,13 +54,6 @@ export declare enum TimelapseType {
50
54
  Year = "year",
51
55
  FullProject = "full_project"
52
56
  }
53
- export type TimelapseFilterQueryParams = {
54
- from?: DateType;
55
- to?: DateType;
56
- period?: TimelapsePeriod;
57
- duration?: number;
58
- schedule?: Schedule;
59
- };
60
57
  export type TimelapseCreationRequestPayload = {
61
58
  title: string;
62
59
  duration: number;
@@ -1,4 +1,4 @@
1
- import type { CameraExid, PaginationParams } from "@evercam/api/types";
1
+ import type { CameraExid, JsonValue, PaginationParams } from "@evercam/api/types";
2
2
  import { Role, RoleSubRole } from "@evercam/api/types/authz";
3
3
  export type User = {
4
4
  id?: number;
@@ -28,10 +28,8 @@ export type AdminUser = {
28
28
  email: string;
29
29
  telephone: string;
30
30
  country: string;
31
- isAdmin: boolean;
32
31
  companyId: string;
33
32
  companyName: string;
34
- companyExid: string;
35
33
  features: Array<UserFeatureFlag>;
36
34
  active: boolean;
37
35
  cameraShares: number;
@@ -55,7 +53,6 @@ export declare enum UserFeatureFlag {
55
53
  CompanyAdmin = "company-admin",
56
54
  VideoWalls = "video-walls",
57
55
  MassCameraSharing = "mass-camera-sharing",
58
- Copilot = "copilot",
59
56
  ProjectSharing = "project-sharing"
60
57
  }
61
58
  export type ProjectUser = User & {
@@ -152,9 +149,24 @@ export type SessionsListRequestPayload = {
152
149
  limit: number;
153
150
  page: number;
154
151
  };
152
+ export type AuthorizedApp = {
153
+ id: number;
154
+ clientId: string;
155
+ clientName: string;
156
+ clientDescription: string | null;
157
+ logoUrl: string | null;
158
+ scopes: string[];
159
+ grantedAt: string;
160
+ };
161
+ export type AuthorizedAppsListRequestPayload = {
162
+ search?: string;
163
+ sort?: string;
164
+ limit?: number;
165
+ page?: number;
166
+ };
155
167
  export type SessionActivityCamSettingsDetail = {
156
- new: any;
157
- old: any;
168
+ new: Record<string, JsonValue>;
169
+ old: Record<string, JsonValue>;
158
170
  };
159
171
  export type SessionActivityDetail = {
160
172
  agent: string;
@@ -177,7 +189,6 @@ export type SessionActivitiesListRequestPayload = {
177
189
  };
178
190
  export type SignupUserRequestPayload = {
179
191
  telephone: string;
180
- token: string;
181
192
  firstname: string;
182
193
  lastname: string;
183
194
  email: string;
@@ -195,9 +206,6 @@ export type UserUpdateRequestPayload = {
195
206
  country: string;
196
207
  persona: string;
197
208
  };
198
- export type UserDeleteRequestPayload = {
199
- verifEmail: string;
200
- };
201
209
  export type GoogleAuthRequestPayload = {
202
210
  code: string;
203
211
  redirectUri: string;
@@ -212,6 +220,19 @@ export type ProjectContact = {
212
220
  export type ProjectContactsResponsePayload = {
213
221
  data: ProjectContact[];
214
222
  };
223
+ export type EmailCcRule = {
224
+ csmEmail: string;
225
+ cc: string[];
226
+ };
227
+ export type EmailToRule = {
228
+ projectExid: string;
229
+ to: string[];
230
+ };
231
+ export type EmailingSettings = {
232
+ ccByCsm?: EmailCcRule[];
233
+ defaultCc?: string[];
234
+ toByProject?: EmailToRule[];
235
+ };
215
236
  export type UserStatsResponse = {
216
237
  data: {
217
238
  userStats: AdminUser;
@@ -220,10 +241,12 @@ export type UserStatsResponse = {
220
241
  export type UserCamera = {
221
242
  id: number;
222
243
  exid: string;
244
+ name: string;
223
245
  ownerFullname: string;
224
246
  ownerEmail: string;
225
247
  apiId: string;
226
248
  apiKey: string;
249
+ projectId: string;
227
250
  };
228
251
  export type UserCameraResponse = {
229
252
  data: UserCamera[];
@@ -254,30 +277,14 @@ export type Admin = {
254
277
  email: string;
255
278
  createdAt: string;
256
279
  updatedAt: string;
257
- lastSignInAt: string;
280
+ lastLoginAt: string;
258
281
  signInCount: number;
259
282
  lastSignInIp: string;
260
283
  apiId: string;
261
284
  apiKey: string;
285
+ roles?: string[];
262
286
  };
263
287
  export type ImpersonateUserResponse = {
264
- id: string;
265
- firstname: string;
266
- lastname: string;
267
- telephone: string;
268
- email: string;
269
- isAdmin: boolean;
270
- persona: Persona;
271
- country: string;
272
- companyId: number;
273
- companyExid: string;
274
- companyName: string;
275
- evercamAccount: boolean;
276
- createdAt: string;
277
- updatedAt: string;
278
- confirmedAt: string;
279
- lastLoginAt: string;
280
- features: UserFeatureFlag[];
281
288
  token: string;
282
289
  };
283
290
  export type AdminUserQueryParams = PaginationParams & {
@@ -286,13 +293,13 @@ export type AdminUserQueryParams = PaginationParams & {
286
293
  telephone: string;
287
294
  persona: Persona;
288
295
  companyName: string;
296
+ countryName: string;
297
+ countryId: number;
298
+ sessionCount: string;
289
299
  camerasCount: string;
290
300
  projectsCount: string;
291
301
  snapmailCount: string;
292
302
  camerasOwned: string;
293
- cameraShares: string;
294
- createdAtDate: string;
295
- lastLoginAtDate: string;
296
303
  integrations: "procore" | "aconex" | "autodesk";
297
304
  features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
298
305
  };
@@ -338,9 +345,12 @@ export type ProjectUserWithRole = {
338
345
  id: number;
339
346
  name: string;
340
347
  exid: string;
341
- };
348
+ } | null;
349
+ persona: Persona;
342
350
  permissions: string[];
343
351
  role: Role;
344
352
  subRoles: RoleSubRole[];
353
+ lastSeenAt: string | null;
354
+ telephone: string | null;
345
355
  };
346
356
  export {};
@@ -1,4 +1,4 @@
1
- import { CameraExid, PaginationParams } from "@evercam/api/types";
1
+ import { CameraExid, CameraStatus, PaginationParams } from "@evercam/api/types";
2
2
  import type { JsonObject } from "@evercam/api/types";
3
3
  import { VideoWallPresetGridConfig } from "@evercam/api/types/videoWall";
4
4
  export declare enum DelayUnit {
@@ -126,7 +126,6 @@ export type WidgetsListRequestPayload = PaginationParams & {
126
126
  projectId: number;
127
127
  cameraId: number;
128
128
  active: boolean;
129
- settings: WidgetSettings;
130
129
  widgetType: WidgetType;
131
130
  domainRestricted: boolean;
132
131
  allowedOrigin: string;
@@ -195,6 +194,7 @@ export type AdminWidgetResourceCamera = {
195
194
  id: number;
196
195
  exid: string;
197
196
  name: string;
197
+ status: CameraStatus;
198
198
  };
199
199
  export type AdminWidgetResourceProject = {
200
200
  id: number;
@@ -221,6 +221,7 @@ export type AdminWidgetUser = {
221
221
  };
222
222
  export type AdminWidget = {
223
223
  id: number;
224
+ name: string;
224
225
  active: boolean;
225
226
  public: boolean;
226
227
  user: AdminWidgetUser;
@@ -238,11 +239,19 @@ export type AdminWidget = {
238
239
  export type AdminWidgetFull = AdminWidget & {
239
240
  widgetKey: string;
240
241
  widgetId: string;
242
+ sessionSettings: JsonObject | null;
241
243
  };
242
244
  export type WidgetPayload = {
243
245
  ressources: {
244
- cameraId?: number;
245
- projectId?: number;
246
+ camera?: string | {
247
+ exid: string;
248
+ };
249
+ project?: string | {
250
+ exid: string;
251
+ };
252
+ preset?: string | {
253
+ exid: string;
254
+ };
246
255
  };
247
256
  widgetType: WidgetType;
248
257
  active: boolean;
@@ -7,4 +7,4 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
7
7
  forceArrayBrackets?: boolean | undefined;
8
8
  }) => string | undefined;
9
9
  export declare function queryStringToObject(queryString?: string): QueryParams;
10
- export declare function capitalizeFirstLetter(inputString: string): string;
10
+ export declare function getMediaApiPreviewName(url?: string | null): string | null;