@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c
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.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +120 -96
- package/dist/api/api/aiApi.d.ts +188 -53
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/client/interceptors.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +86 -28
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +90 -65
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +41 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +141 -71
- package/dist/api/types/anpr.d.ts +134 -0
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +40 -3
- package/dist/api/types/axios.d.ts +12 -11
- package/dist/api/types/bim.d.ts +70 -12
- package/dist/api/types/camera.d.ts +244 -128
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +3 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +10 -11
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +59 -49
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +15 -3
- package/dist/api/types/ingest.d.ts +207 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +32 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +72 -0
- package/dist/api/types/progressPhoto.d.ts +39 -25
- package/dist/api/types/project.d.ts +77 -24
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +7 -19
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +12 -37
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +48 -34
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2635 -1120
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +702 -42
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +80 -0
- package/dist/shared/types/report.d.ts +108 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
package/dist/api/types/user.d.ts
CHANGED
|
@@ -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 & {
|
|
@@ -96,11 +93,15 @@ export type RemotePasswordUpdateRequestPayload = {
|
|
|
96
93
|
currentPassword: string;
|
|
97
94
|
newPassword: string;
|
|
98
95
|
};
|
|
96
|
+
export declare enum AuthOptionType {
|
|
97
|
+
Password = "password",
|
|
98
|
+
Sso = "sso"
|
|
99
|
+
}
|
|
99
100
|
export type AuthPasswordOption = {
|
|
100
|
-
type:
|
|
101
|
+
type: AuthOptionType.Password;
|
|
101
102
|
};
|
|
102
103
|
export type AuthSsoOption = {
|
|
103
|
-
type:
|
|
104
|
+
type: AuthOptionType.Sso;
|
|
104
105
|
name: string;
|
|
105
106
|
scope: string;
|
|
106
107
|
prompt: string | null;
|
|
@@ -152,9 +153,24 @@ export type SessionsListRequestPayload = {
|
|
|
152
153
|
limit: number;
|
|
153
154
|
page: number;
|
|
154
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
|
+
};
|
|
155
171
|
export type SessionActivityCamSettingsDetail = {
|
|
156
|
-
new:
|
|
157
|
-
old:
|
|
172
|
+
new: Record<string, JsonValue>;
|
|
173
|
+
old: Record<string, JsonValue>;
|
|
158
174
|
};
|
|
159
175
|
export type SessionActivityDetail = {
|
|
160
176
|
agent: string;
|
|
@@ -177,7 +193,6 @@ export type SessionActivitiesListRequestPayload = {
|
|
|
177
193
|
};
|
|
178
194
|
export type SignupUserRequestPayload = {
|
|
179
195
|
telephone: string;
|
|
180
|
-
token: string;
|
|
181
196
|
firstname: string;
|
|
182
197
|
lastname: string;
|
|
183
198
|
email: string;
|
|
@@ -195,9 +210,6 @@ export type UserUpdateRequestPayload = {
|
|
|
195
210
|
country: string;
|
|
196
211
|
persona: string;
|
|
197
212
|
};
|
|
198
|
-
export type UserDeleteRequestPayload = {
|
|
199
|
-
verifEmail: string;
|
|
200
|
-
};
|
|
201
213
|
export type GoogleAuthRequestPayload = {
|
|
202
214
|
code: string;
|
|
203
215
|
redirectUri: string;
|
|
@@ -212,6 +224,19 @@ export type ProjectContact = {
|
|
|
212
224
|
export type ProjectContactsResponsePayload = {
|
|
213
225
|
data: ProjectContact[];
|
|
214
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
|
+
};
|
|
215
240
|
export type UserStatsResponse = {
|
|
216
241
|
data: {
|
|
217
242
|
userStats: AdminUser;
|
|
@@ -220,10 +245,12 @@ export type UserStatsResponse = {
|
|
|
220
245
|
export type UserCamera = {
|
|
221
246
|
id: number;
|
|
222
247
|
exid: string;
|
|
248
|
+
name: string;
|
|
223
249
|
ownerFullname: string;
|
|
224
250
|
ownerEmail: string;
|
|
225
251
|
apiId: string;
|
|
226
252
|
apiKey: string;
|
|
253
|
+
projectId: string;
|
|
227
254
|
};
|
|
228
255
|
export type UserCameraResponse = {
|
|
229
256
|
data: UserCamera[];
|
|
@@ -254,30 +281,14 @@ export type Admin = {
|
|
|
254
281
|
email: string;
|
|
255
282
|
createdAt: string;
|
|
256
283
|
updatedAt: string;
|
|
257
|
-
|
|
284
|
+
lastLoginAt: string;
|
|
258
285
|
signInCount: number;
|
|
259
286
|
lastSignInIp: string;
|
|
260
287
|
apiId: string;
|
|
261
288
|
apiKey: string;
|
|
289
|
+
roles?: string[];
|
|
262
290
|
};
|
|
263
291
|
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
292
|
token: string;
|
|
282
293
|
};
|
|
283
294
|
export type AdminUserQueryParams = PaginationParams & {
|
|
@@ -286,13 +297,13 @@ export type AdminUserQueryParams = PaginationParams & {
|
|
|
286
297
|
telephone: string;
|
|
287
298
|
persona: Persona;
|
|
288
299
|
companyName: string;
|
|
300
|
+
countryName: string;
|
|
301
|
+
countryId: number;
|
|
302
|
+
sessionCount: string;
|
|
289
303
|
camerasCount: string;
|
|
290
304
|
projectsCount: string;
|
|
291
305
|
snapmailCount: string;
|
|
292
306
|
camerasOwned: string;
|
|
293
|
-
cameraShares: string;
|
|
294
|
-
createdAtDate: string;
|
|
295
|
-
lastLoginAtDate: string;
|
|
296
307
|
integrations: "procore" | "aconex" | "autodesk";
|
|
297
308
|
features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
|
|
298
309
|
};
|
|
@@ -338,9 +349,12 @@ export type ProjectUserWithRole = {
|
|
|
338
349
|
id: number;
|
|
339
350
|
name: string;
|
|
340
351
|
exid: string;
|
|
341
|
-
};
|
|
352
|
+
} | null;
|
|
353
|
+
persona: Persona;
|
|
342
354
|
permissions: string[];
|
|
343
355
|
role: Role;
|
|
344
356
|
subRoles: RoleSubRole[];
|
|
357
|
+
lastSeenAt: string | null;
|
|
358
|
+
telephone: string | null;
|
|
345
359
|
};
|
|
346
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
|
-
|
|
245
|
-
|
|
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;
|
package/dist/api/utils.d.ts
CHANGED
|
@@ -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
|
|
10
|
+
export declare function getMediaApiPreviewName(url?: string | null): string | null;
|