@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be

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 (86) 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 +100 -97
  4. package/dist/api/api/aiApi.d.ts +130 -7
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +52 -33
  7. package/dist/api/api/evercamLabsApi.d.ts +9 -17
  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 +56 -34
  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 +57 -33
  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 +71 -0
  20. package/dist/api/types/automation.d.ts +32 -4
  21. package/dist/api/types/axios.d.ts +10 -9
  22. package/dist/api/types/bim.d.ts +55 -12
  23. package/dist/api/types/camera.d.ts +236 -127
  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 +6 -10
  29. package/dist/api/types/drone.d.ts +94 -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 +194 -27
  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 +56 -10
  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 +69 -22
  49. package/dist/api/types/recording.d.ts +7 -13
  50. package/dist/api/types/recycleBin.d.ts +8 -2
  51. package/dist/api/types/reports.d.ts +109 -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 +63 -10
  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 +4 -8
  68. package/dist/api/types/user.d.ts +48 -33
  69. package/dist/api/types/widget.d.ts +13 -4
  70. package/dist/api/utils.d.ts +1 -1
  71. package/dist/index.js +2242 -926
  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 +506 -46
  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 +4 -0
  80. package/dist/shared/types/observations.d.ts +25 -0
  81. package/dist/shared/types/report.d.ts +107 -0
  82. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  83. package/dist/shared/utils/datePresets.d.ts +31 -0
  84. package/package.json +4 -2
  85. package/dist/api/types/copilot.d.ts +0 -162
  86. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -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;
@@ -95,11 +93,15 @@ export type RemotePasswordUpdateRequestPayload = {
95
93
  currentPassword: string;
96
94
  newPassword: string;
97
95
  };
96
+ export declare enum AuthOptionType {
97
+ Password = "password",
98
+ Sso = "sso"
99
+ }
98
100
  export type AuthPasswordOption = {
99
- type: "password";
101
+ type: AuthOptionType.Password;
100
102
  };
101
103
  export type AuthSsoOption = {
102
- type: "sso";
104
+ type: AuthOptionType.Sso;
103
105
  name: string;
104
106
  scope: string;
105
107
  prompt: string | null;
@@ -151,9 +153,24 @@ export type SessionsListRequestPayload = {
151
153
  limit: number;
152
154
  page: number;
153
155
  };
156
+ export type AuthorizedApp = {
157
+ id: number;
158
+ clientId: string;
159
+ clientName: string;
160
+ clientDescription: string | null;
161
+ logoUrl: string | null;
162
+ scopes: string[];
163
+ grantedAt: string;
164
+ };
165
+ export type AuthorizedAppsListRequestPayload = {
166
+ search?: string;
167
+ sort?: string;
168
+ limit?: number;
169
+ page?: number;
170
+ };
154
171
  export type SessionActivityCamSettingsDetail = {
155
- new: any;
156
- old: any;
172
+ new: Record<string, JsonValue>;
173
+ old: Record<string, JsonValue>;
157
174
  };
158
175
  export type SessionActivityDetail = {
159
176
  agent: string;
@@ -176,7 +193,6 @@ export type SessionActivitiesListRequestPayload = {
176
193
  };
177
194
  export type SignupUserRequestPayload = {
178
195
  telephone: string;
179
- token: string;
180
196
  firstname: string;
181
197
  lastname: string;
182
198
  email: string;
@@ -194,9 +210,6 @@ export type UserUpdateRequestPayload = {
194
210
  country: string;
195
211
  persona: string;
196
212
  };
197
- export type UserDeleteRequestPayload = {
198
- verifEmail: string;
199
- };
200
213
  export type GoogleAuthRequestPayload = {
201
214
  code: string;
202
215
  redirectUri: string;
@@ -211,6 +224,19 @@ export type ProjectContact = {
211
224
  export type ProjectContactsResponsePayload = {
212
225
  data: ProjectContact[];
213
226
  };
227
+ export type EmailCcRule = {
228
+ csmEmail: string;
229
+ cc: string[];
230
+ };
231
+ export type EmailToRule = {
232
+ projectExid: string;
233
+ to: string[];
234
+ };
235
+ export type EmailingSettings = {
236
+ ccByCsm?: EmailCcRule[];
237
+ defaultCc?: string[];
238
+ toByProject?: EmailToRule[];
239
+ };
214
240
  export type UserStatsResponse = {
215
241
  data: {
216
242
  userStats: AdminUser;
@@ -219,10 +245,12 @@ export type UserStatsResponse = {
219
245
  export type UserCamera = {
220
246
  id: number;
221
247
  exid: string;
248
+ name: string;
222
249
  ownerFullname: string;
223
250
  ownerEmail: string;
224
251
  apiId: string;
225
252
  apiKey: string;
253
+ projectId: string;
226
254
  };
227
255
  export type UserCameraResponse = {
228
256
  data: UserCamera[];
@@ -253,30 +281,14 @@ export type Admin = {
253
281
  email: string;
254
282
  createdAt: string;
255
283
  updatedAt: string;
256
- lastSignInAt: string;
284
+ lastLoginAt: string;
257
285
  signInCount: number;
258
286
  lastSignInIp: string;
259
287
  apiId: string;
260
288
  apiKey: string;
289
+ roles?: string[];
261
290
  };
262
291
  export type ImpersonateUserResponse = {
263
- id: string;
264
- firstname: string;
265
- lastname: string;
266
- telephone: string;
267
- email: string;
268
- isAdmin: boolean;
269
- persona: Persona;
270
- country: string;
271
- companyId: number;
272
- companyExid: string;
273
- companyName: string;
274
- evercamAccount: boolean;
275
- createdAt: string;
276
- updatedAt: string;
277
- confirmedAt: string;
278
- lastLoginAt: string;
279
- features: UserFeatureFlag[];
280
292
  token: string;
281
293
  };
282
294
  export type AdminUserQueryParams = PaginationParams & {
@@ -285,13 +297,13 @@ export type AdminUserQueryParams = PaginationParams & {
285
297
  telephone: string;
286
298
  persona: Persona;
287
299
  companyName: string;
300
+ countryName: string;
301
+ countryId: number;
302
+ sessionCount: string;
288
303
  camerasCount: string;
289
304
  projectsCount: string;
290
305
  snapmailCount: string;
291
306
  camerasOwned: string;
292
- cameraShares: string;
293
- createdAtDate: string;
294
- lastLoginAtDate: string;
295
307
  integrations: "procore" | "aconex" | "autodesk";
296
308
  features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
297
309
  };
@@ -337,9 +349,12 @@ export type ProjectUserWithRole = {
337
349
  id: number;
338
350
  name: string;
339
351
  exid: string;
340
- };
352
+ } | null;
353
+ persona: Persona;
341
354
  permissions: string[];
342
355
  role: Role;
343
356
  subRoles: RoleSubRole[];
357
+ lastSeenAt: string | null;
358
+ telephone: string | null;
344
359
  };
345
360
  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;