@evercam/api 1.0.0-0ff26c649 → 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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -15
  3. package/dist/api/api/adminApi.d.ts +154 -138
  4. package/dist/api/api/aiApi.d.ts +184 -62
  5. package/dist/api/api/authzApi.d.ts +29 -17
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  8. package/dist/api/api/evercamApi.d.ts +153 -118
  9. package/dist/api/api/evercamLabsApi.d.ts +10 -17
  10. package/dist/api/api/exNvrApi.d.ts +2 -2
  11. package/dist/api/api/index.d.ts +1 -0
  12. package/dist/api/api/ingestApi.d.ts +132 -57
  13. package/dist/api/api/ptzApi.d.ts +9 -4
  14. package/dist/api/api/reportsApi.d.ts +15 -0
  15. package/dist/api/api/videoWallApi.d.ts +2 -2
  16. package/dist/api/api/weatherApi.d.ts +2 -2
  17. package/dist/api/types/360.d.ts +269 -48
  18. package/dist/api/types/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +85 -0
  20. package/dist/api/types/aiConfigs.d.ts +244 -0
  21. package/dist/api/types/analytics.d.ts +135 -75
  22. package/dist/api/types/anpr.d.ts +49 -2
  23. package/dist/api/types/apiKey.d.ts +70 -0
  24. package/dist/api/types/auditLogs.d.ts +179 -21
  25. package/dist/api/types/authz.d.ts +116 -6
  26. package/dist/api/types/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +65 -3
  28. package/dist/api/types/axios.d.ts +20 -14
  29. package/dist/api/types/bim.d.ts +65 -16
  30. package/dist/api/types/camera.d.ts +316 -193
  31. package/dist/api/types/comments.d.ts +68 -31
  32. package/dist/api/types/company.d.ts +53 -6
  33. package/dist/api/types/compare.d.ts +21 -6
  34. package/dist/api/types/connector.d.ts +5 -5
  35. package/dist/api/types/coolify.d.ts +18 -2
  36. package/dist/api/types/detections.d.ts +26 -18
  37. package/dist/api/types/drone.d.ts +95 -6
  38. package/dist/api/types/emailMessages.d.ts +27 -0
  39. package/dist/api/types/errors.d.ts +19 -2
  40. package/dist/api/types/gateReport.d.ts +51 -69
  41. package/dist/api/types/gateReportManagement.d.ts +170 -0
  42. package/dist/api/types/hammertech.d.ts +98 -0
  43. package/dist/api/types/hdd.d.ts +27 -2
  44. package/dist/api/types/index.d.ts +17 -3
  45. package/dist/api/types/ingest.d.ts +280 -17
  46. package/dist/api/types/kit.d.ts +121 -115
  47. package/dist/api/types/map.d.ts +12 -0
  48. package/dist/api/types/media.d.ts +33 -4
  49. package/dist/api/types/notification.d.ts +83 -3
  50. package/dist/api/types/nvr.d.ts +39 -8
  51. package/dist/api/types/oauth.d.ts +62 -0
  52. package/dist/api/types/observationEvents.d.ts +167 -0
  53. package/dist/api/types/observations.d.ts +89 -0
  54. package/dist/api/types/planner.d.ts +98 -8
  55. package/dist/api/types/posthog.d.ts +71 -0
  56. package/dist/api/types/procore.d.ts +13 -6
  57. package/dist/api/types/progressPhoto.d.ts +42 -25
  58. package/dist/api/types/project.d.ts +158 -32
  59. package/dist/api/types/recording.d.ts +9 -15
  60. package/dist/api/types/recycleBin.d.ts +9 -3
  61. package/dist/api/types/reports.d.ts +108 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +3 -11
  64. package/dist/api/types/routeParams.d.ts +1 -0
  65. package/dist/api/types/router.d.ts +34 -10
  66. package/dist/api/types/shared.d.ts +47 -30
  67. package/dist/api/types/shares.d.ts +6 -157
  68. package/dist/api/types/sim.d.ts +23 -11
  69. package/dist/api/types/siteAnalytics.d.ts +169 -47
  70. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  71. package/dist/api/types/siteView.d.ts +79 -0
  72. package/dist/api/types/smartSeach.d.ts +5 -0
  73. package/dist/api/types/snapshots.d.ts +99 -14
  74. package/dist/api/types/socket.d.ts +4 -0
  75. package/dist/api/types/sso.d.ts +11 -37
  76. package/dist/api/types/storageProvider.d.ts +30 -0
  77. package/dist/api/types/storyblok.d.ts +27 -0
  78. package/dist/api/types/streaming.d.ts +3 -3
  79. package/dist/api/types/tag.d.ts +1 -1
  80. package/dist/api/types/time.d.ts +0 -18
  81. package/dist/api/types/timelapse.d.ts +7 -11
  82. package/dist/api/types/user.d.ts +135 -54
  83. package/dist/api/types/videoWall.d.ts +21 -21
  84. package/dist/api/types/weather.d.ts +75 -11
  85. package/dist/api/types/widget.d.ts +83 -15
  86. package/dist/api/types/xweather.d.ts +4 -4
  87. package/dist/api/utils.d.ts +1 -1
  88. package/dist/index.js +2538 -1040
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.umd.cjs +1 -1
  91. package/dist/index.umd.cjs.map +1 -1
  92. package/dist/shared/types/components.d.ts +592 -34
  93. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  94. package/dist/shared/types/droneUpload.d.ts +93 -0
  95. package/dist/shared/types/imagePlayer.d.ts +9 -2
  96. package/dist/shared/types/index.d.ts +5 -0
  97. package/dist/shared/types/observations.d.ts +25 -0
  98. package/dist/shared/types/rbac.d.ts +67 -0
  99. package/dist/shared/types/report.d.ts +107 -0
  100. package/dist/shared/types/timeline.d.ts +2 -1
  101. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  102. package/dist/shared/utils/datePresets.d.ts +31 -0
  103. package/package.json +4 -2
  104. package/dist/api/types/copilot.d.ts +0 -157
  105. package/dist/api/types/storageServers.d.ts +0 -4
  106. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,3 +1,9 @@
1
+ export type SsoUserInfoMappings = {
2
+ id: string;
3
+ email: string;
4
+ firstname: string;
5
+ lastname: string;
6
+ };
1
7
  export type SsoProvider = {
2
8
  id: number;
3
9
  name: string;
@@ -15,41 +21,9 @@ export type SsoProvider = {
15
21
  tokenUri: string;
16
22
  tokenIntrospectionUri: string;
17
23
  userInfoUri: string;
18
- enabled: boolean;
19
- };
20
- export type SsoUpdatePayload = {
21
- name: string;
22
- exid: string;
23
- clientId: string;
24
- clientSecret: string;
25
- scope: string;
26
- responseType: string;
27
- loginUrl: string;
28
- iconUrl: string;
29
- options: {
30
- showOnLogin: boolean;
31
- showOnSignup: boolean;
32
- };
33
- tokenUri: string;
34
- tokenIntrospectionUri: string;
35
- userInfoUri: string;
36
- enabled: boolean;
37
- };
38
- export type SsoCreatePayload = {
39
- name: string;
40
- exid: string;
41
- clientId: string;
42
- clientSecret: string;
43
- scope: string;
44
- responseType: string;
45
- loginUrl: string;
46
- iconUrl: string;
47
- options: {
48
- showOnLogin: boolean;
49
- showOnSignup: boolean;
50
- };
51
- tokenUri: string;
52
- tokenIntrospectionUri: string;
53
- userInfoUri: string;
54
- enabled: boolean;
24
+ prompt: string;
25
+ userInfoMappings: SsoUserInfoMappings;
26
+ createdAt: string;
55
27
  };
28
+ export type SsoUpdatePayload = Omit<SsoProvider, "id" | "createdAt">;
29
+ export type SsoCreatePayload = Omit<SsoProvider, "id" | "createdAt">;
@@ -0,0 +1,30 @@
1
+ import type { DateType } from "@evercam/api/types";
2
+ import type { CameraExid } from "@evercam/api/types/camera";
3
+ export type StorageProviderS3Config = {
4
+ bucket?: string;
5
+ accessKeyId?: string;
6
+ secretAccessKey?: string;
7
+ region?: string;
8
+ vendor?: string;
9
+ };
10
+ export type StorageProviderSeaweedfsConfig = {
11
+ jwtSigningKey?: string;
12
+ jwtReadSigningKey?: string;
13
+ };
14
+ export type StorageProviderConfig = StorageProviderS3Config & StorageProviderSeaweedfsConfig;
15
+ export type StorageProvider = {
16
+ id?: number;
17
+ cameraId: number | CameraExid;
18
+ type: string;
19
+ provider: string;
20
+ url: string;
21
+ startDate: DateType;
22
+ endDate: DateType;
23
+ config: StorageProviderConfig;
24
+ insertedAt?: DateType;
25
+ updatedAt?: DateType;
26
+ };
27
+ export declare enum ProjectStorageProvider {
28
+ Seaweedfs = "seaweedfs",
29
+ S3 = "s3"
30
+ }
@@ -0,0 +1,27 @@
1
+ import type { JsonObject, JsonValue } from "@evercam/api/types";
2
+ export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
3
+ id: number;
4
+ uuid: string;
5
+ name: string;
6
+ slug: string;
7
+ fullSlug: string;
8
+ content: TContent;
9
+ createdAt: string;
10
+ publishedAt: string | null;
11
+ updatedAt: string;
12
+ position: number;
13
+ tagList: string[];
14
+ isStartpage: boolean;
15
+ parentId: number | null;
16
+ groupId: string;
17
+ firstPublishedAt: string | null;
18
+ releaseId: number | null;
19
+ lang: string;
20
+ path: string;
21
+ };
22
+ export type StoryblokResponse<TContent extends JsonObject = JsonObject> = {
23
+ story: StoryblokStory<TContent>;
24
+ cv: number;
25
+ rels: JsonValue[];
26
+ links: JsonValue[];
27
+ };
@@ -1,11 +1,11 @@
1
- import { DateTime_Z_micros, KitMetricData } from "@/types";
1
+ import { KitMetricData } from "@evercam/api/types";
2
2
  export type ExNvrLoginResponse = {
3
3
  accessToken: string;
4
4
  };
5
5
  export type ExNvrRecordingInterval = {
6
6
  active: boolean;
7
- startDate: DateTime_Z_micros;
8
- endDate: DateTime_Z_micros;
7
+ startDate: string;
8
+ endDate: string;
9
9
  };
10
10
  export type ExNvrDeviceConfig = {
11
11
  id: string;
@@ -1,4 +1,4 @@
1
- import { Kit } from "@/types/kit";
1
+ import { Kit } from "@evercam/api/types/kit";
2
2
  export type Tag<T = string> = {
3
3
  id?: number;
4
4
  name: T;
@@ -1,25 +1,7 @@
1
1
  import { Moment } from "moment-timezone";
2
2
  export type DateType = Date | string | number;
3
3
  export type ExtendedDateType = Moment | DateType;
4
- type YYYY = number;
5
- type MM = number;
6
- type DD = number;
7
- type HH = number;
8
- type mm = number;
9
- type ss = number;
10
- type microS = number;
11
- export type Date_YYYY = `${YYYY}` | string;
12
- export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
13
- export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
14
- export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
15
- export type Date_HH = `${HH}` | string;
16
- export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
17
- export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
18
- export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
19
- export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
20
- export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
21
4
  export type DateRangeFilter = {
22
5
  fromDate: DateType;
23
6
  toDate: DateType;
24
7
  };
25
- export {};
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@/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,14 +26,14 @@ export type TimestampPositionCoordinates = {
23
26
  w: number;
24
27
  h: number;
25
28
  };
29
+ export type BlurRegionCoordinates = Point2D[];
26
30
  export type TimelapseLogoOptions = {
27
- id: number;
31
+ id?: number;
28
32
  x: number;
29
33
  y: number;
30
34
  width: number;
31
35
  height: number;
32
36
  };
33
- export type TimelapseSchedules = string | Schedule;
34
37
  export declare enum TimelapseScheduleType {
35
38
  Continuous = "continuous",
36
39
  WorkingHours = "workingHours",
@@ -51,13 +54,6 @@ export declare enum TimelapseType {
51
54
  Year = "year",
52
55
  FullProject = "full_project"
53
56
  }
54
- export type TimelapseFilterQueryParams = {
55
- from?: DateType;
56
- to?: DateType;
57
- period?: TimelapsePeriod;
58
- duration?: number;
59
- schedule?: TimelapseSchedules;
60
- };
61
57
  export type TimelapseCreationRequestPayload = {
62
58
  title: string;
63
59
  duration: number;
@@ -1,4 +1,5 @@
1
- import type { DateTime, PaginationParams } from "@/types";
1
+ import type { CameraExid, JsonValue, PaginationParams } from "@evercam/api/types";
2
+ import { Role, RoleSubRole } from "@evercam/api/types/authz";
2
3
  export type User = {
3
4
  id?: number;
4
5
  fullname?: string;
@@ -9,10 +10,16 @@ export type User = {
9
10
  country: string;
10
11
  isAdmin: boolean;
11
12
  persona: Persona;
12
- companyId?: string;
13
+ companyId?: string | number;
13
14
  companyName?: string;
14
15
  companyExid?: string;
15
16
  features?: Array<UserFeatureFlag>;
17
+ confirmedAt?: string;
18
+ createdAt?: string;
19
+ lastLoginAt?: string;
20
+ token?: string;
21
+ updatedAt?: string;
22
+ evercamAccount?: boolean;
16
23
  };
17
24
  export type AdminUser = {
18
25
  id: number;
@@ -21,10 +28,8 @@ export type AdminUser = {
21
28
  email: string;
22
29
  telephone: string;
23
30
  country: string;
24
- isAdmin: boolean;
25
31
  companyId: string;
26
32
  companyName: string;
27
- companyExid: string;
28
33
  features: Array<UserFeatureFlag>;
29
34
  active: boolean;
30
35
  cameraShares: number;
@@ -32,9 +37,9 @@ export type AdminUser = {
32
37
  camerasOwned: number;
33
38
  countryId: number;
34
39
  countryName: string;
35
- createdAt: DateTime;
40
+ createdAt: string;
36
41
  integrations: string[];
37
- lastSeenAt: DateTime;
42
+ lastSeenAt: string;
38
43
  lastLoginAt: string;
39
44
  lastname: string;
40
45
  persona: string;
@@ -48,7 +53,6 @@ export declare enum UserFeatureFlag {
48
53
  CompanyAdmin = "company-admin",
49
54
  VideoWalls = "video-walls",
50
55
  MassCameraSharing = "mass-camera-sharing",
51
- Copilot = "copilot",
52
56
  ProjectSharing = "project-sharing"
53
57
  }
54
58
  export type ProjectUser = User & {
@@ -89,26 +93,44 @@ export type RemotePasswordUpdateRequestPayload = {
89
93
  currentPassword: string;
90
94
  newPassword: string;
91
95
  };
92
- export type LoginResponsePayload = {
93
- confirmedAt?: string;
94
- country?: string;
95
- createdAt?: string;
96
- email?: string;
97
- firstname?: string;
98
- id?: string;
99
- isAdmin?: boolean;
100
- lastLoginAt?: string;
101
- lastname?: string;
102
- persona?: Persona;
103
- telephone?: string;
104
- token?: string;
105
- updatedAt?: string;
106
- evercamAccount?: string;
96
+ export type AuthPasswordOption = {
97
+ type: "password";
98
+ };
99
+ export type AuthSsoOption = {
100
+ type: "sso";
101
+ name: string;
102
+ scope: string;
103
+ prompt: string | null;
104
+ exid: string;
105
+ clientId: string;
106
+ iconUrl: string;
107
+ loginUrl: string;
108
+ responseType: string;
109
+ };
110
+ export type AuthOption = AuthPasswordOption | AuthSsoOption;
111
+ export type AuthOptionsResponsePayload = {
112
+ options: AuthOption[];
113
+ };
114
+ export type AuthProviderConfigPayload = {
115
+ name: string;
116
+ scope: string;
117
+ prompt: string | null;
118
+ exid: string;
119
+ clientId: string;
120
+ iconUrl: string;
121
+ loginUrl: string;
122
+ responseType: string;
107
123
  };
108
124
  export type LogoutParams = {
109
125
  token: string;
110
126
  fromAdmin?: boolean;
111
127
  };
128
+ export type ConfirmUserRequestPayload = {
129
+ c: string;
130
+ };
131
+ export type DeleteActiveSessionRequestPayload = {
132
+ authorization: string;
133
+ };
112
134
  export type UserSession = {
113
135
  browser: string;
114
136
  createdAt: string;
@@ -127,9 +149,24 @@ export type SessionsListRequestPayload = {
127
149
  limit: number;
128
150
  page: number;
129
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
+ };
130
167
  export type SessionActivityCamSettingsDetail = {
131
- new: any;
132
- old: any;
168
+ new: Record<string, JsonValue>;
169
+ old: Record<string, JsonValue>;
133
170
  };
134
171
  export type SessionActivityDetail = {
135
172
  agent: string;
@@ -152,7 +189,6 @@ export type SessionActivitiesListRequestPayload = {
152
189
  };
153
190
  export type SignupUserRequestPayload = {
154
191
  telephone: string;
155
- token: string;
156
192
  firstname: string;
157
193
  lastname: string;
158
194
  email: string;
@@ -170,13 +206,33 @@ export type UserUpdateRequestPayload = {
170
206
  country: string;
171
207
  persona: string;
172
208
  };
173
- export type UserDeleteRequestPayload = {
174
- verifEmail: string;
175
- };
176
209
  export type GoogleAuthRequestPayload = {
177
210
  code: string;
178
211
  redirectUri: string;
179
212
  };
213
+ export type ProjectContact = {
214
+ name: string;
215
+ role: ContactRole | string;
216
+ email?: string;
217
+ phone?: string;
218
+ photo?: string;
219
+ };
220
+ export type ProjectContactsResponsePayload = {
221
+ data: ProjectContact[];
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
+ };
180
236
  export type UserStatsResponse = {
181
237
  data: {
182
238
  userStats: AdminUser;
@@ -185,10 +241,12 @@ export type UserStatsResponse = {
185
241
  export type UserCamera = {
186
242
  id: number;
187
243
  exid: string;
244
+ name: string;
188
245
  ownerFullname: string;
189
246
  ownerEmail: string;
190
247
  apiId: string;
191
248
  apiKey: string;
249
+ projectId: string;
192
250
  };
193
251
  export type UserCameraResponse = {
194
252
  data: UserCamera[];
@@ -197,7 +255,7 @@ export type UserProject = {
197
255
  id: number;
198
256
  exid: string;
199
257
  name: string;
200
- startedAt: DateTime;
258
+ startedAt: string;
201
259
  };
202
260
  export type UserProjectResponse = {
203
261
  data: UserProject[];
@@ -217,32 +275,16 @@ export type Admin = {
217
275
  id: number;
218
276
  fullname: string;
219
277
  email: string;
220
- createdAt: DateTime;
221
- updatedAt: DateTime;
222
- lastSignInAt: DateTime;
278
+ createdAt: string;
279
+ updatedAt: string;
280
+ lastLoginAt: string;
223
281
  signInCount: number;
224
282
  lastSignInIp: string;
225
283
  apiId: string;
226
284
  apiKey: string;
285
+ roles?: string[];
227
286
  };
228
287
  export type ImpersonateUserResponse = {
229
- id: string;
230
- firstname: string;
231
- lastname: string;
232
- telephone: string;
233
- email: string;
234
- is_admin: boolean;
235
- persona: Persona;
236
- country: string;
237
- companyId: number;
238
- companyExid: string;
239
- companyName: string;
240
- evercamAccount: boolean;
241
- createdAt: DateTime;
242
- updatedAt: DateTime;
243
- confirmedAt: DateTime;
244
- last_loginAt: DateTime;
245
- features: UserFeatureFlag[];
246
288
  token: string;
247
289
  };
248
290
  export type AdminUserQueryParams = PaginationParams & {
@@ -251,13 +293,13 @@ export type AdminUserQueryParams = PaginationParams & {
251
293
  telephone: string;
252
294
  persona: Persona;
253
295
  companyName: string;
296
+ countryName: string;
297
+ countryId: number;
298
+ sessionCount: string;
254
299
  camerasCount: string;
255
300
  projectsCount: string;
256
301
  snapmailCount: string;
257
302
  camerasOwned: string;
258
- cameraShares: string;
259
- createdAtDate: string;
260
- lastLoginAtDate: string;
261
303
  integrations: "procore" | "aconex" | "autodesk";
262
304
  features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
263
305
  };
@@ -270,6 +312,45 @@ export type Suppression = {
270
312
  id: number;
271
313
  email: string;
272
314
  source: string;
273
- insertedAt: DateTime;
274
- updatedAt: DateTime;
315
+ insertedAt: string;
316
+ updatedAt: string;
317
+ };
318
+ type Email = string;
319
+ export type WsAccessRestrictionUpdate = {
320
+ camera_id: CameraExid;
321
+ is_access_restricted: boolean;
322
+ };
323
+ export type WsUserRestrictionItem = {
324
+ user_id: number;
325
+ camera_id: CameraExid;
326
+ is_user_access_restricted: boolean;
327
+ };
328
+ export type WsUserRestrictionUpdate = WsUserRestrictionItem[];
329
+ /**
330
+ * Backend WebSocket event payload:
331
+ * {
332
+ * user: {
333
+ * "someone@domain.com": {camera_id, is_access_restricted} OR [{...}, {...}]
334
+ * }
335
+ * }
336
+ */
337
+ export type WsRestrictionChangedPayload = {
338
+ user: Record<Email, WsAccessRestrictionUpdate | WsUserRestrictionUpdate>;
339
+ };
340
+ export type ProjectUserWithRole = {
341
+ id: number;
342
+ email: string;
343
+ fullname: string;
344
+ company: {
345
+ id: number;
346
+ name: string;
347
+ exid: string;
348
+ } | null;
349
+ persona: Persona;
350
+ permissions: string[];
351
+ role: Role;
352
+ subRoles: RoleSubRole[];
353
+ lastSeenAt: string | null;
354
+ telephone: string | null;
275
355
  };
356
+ export {};
@@ -1,25 +1,16 @@
1
- import { Camera, Media, PaginationParams } from "@/types";
1
+ import { Camera, Media, PaginationParams } from "@evercam/api/types";
2
2
  export declare enum VideoWallItemType {
3
3
  LiveView = "live",
4
4
  Video = "video",
5
5
  Image = "image"
6
6
  }
7
- export type VideoWallItem<T extends Camera | Media> = {
7
+ export type VideoWallItem<T extends Camera | Media = Camera> = {
8
8
  value: T;
9
9
  type: VideoWallItemType;
10
10
  };
11
- export type VideoWallPresetItemConfig = {
12
- camera: Camera;
13
- h: number;
14
- i: string | number;
15
- moved: boolean;
16
- w: number;
17
- x: number;
18
- y: number;
19
- };
20
- export type VideoWallPreset = {
21
- name?: string;
22
- configuration: Array<VideoWallPresetItemConfig>;
11
+ export type VideoWallPresetGridConfig = {
12
+ items: VideoWallPresetItem[];
13
+ meta?: VideoWallPresetMeta;
23
14
  };
24
15
  export type VideoWallPresetItem = {
25
16
  i: string | number;
@@ -30,6 +21,14 @@ export type VideoWallPresetItem = {
30
21
  camera: Camera;
31
22
  weather?: Record<string, unknown>;
32
23
  media?: Media;
24
+ moved?: boolean;
25
+ };
26
+ export type VideoWallPresetMeta = {
27
+ colNum: number;
28
+ rowCount: number;
29
+ tile: number;
30
+ template: string;
31
+ gridSize: number;
33
32
  };
34
33
  export type VideoWallSource = "default" | "widget";
35
34
  export interface VideoWall {
@@ -38,8 +37,8 @@ export interface VideoWall {
38
37
  name: string;
39
38
  source: VideoWallSource;
40
39
  config: Record<string, any>;
41
- inserted_at: string;
42
- updated_at: string;
40
+ insertedAt: string;
41
+ updatedAt: string;
43
42
  user: {
44
43
  id: number;
45
44
  firstname: string;
@@ -47,20 +46,21 @@ export interface VideoWall {
47
46
  email: string;
48
47
  };
49
48
  }
50
- export interface ListParams extends PaginationParams {
51
- project_exid?: string;
49
+ export interface VideoWallListParams extends PaginationParams {
50
+ projectExid?: string;
52
51
  id?: number;
53
52
  exid?: string;
54
- project_id?: number;
55
- user_id?: number;
53
+ projectId?: number;
54
+ userId?: number;
56
55
  name?: string;
57
56
  project?: string;
58
57
  user?: string;
59
58
  source?: VideoWallSource;
60
59
  }
61
60
  export type VideoWallCreateUpdatePayload = {
62
- project_exid: string;
61
+ projectExid?: string;
63
62
  name: string;
64
63
  source?: VideoWallSource;
65
64
  config: Record<string, unknown>;
65
+ scope?: string;
66
66
  };