@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.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- 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 +56 -34
- 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 +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +57 -33
- package/dist/api/types/anpr.d.ts +36 -6
- 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 +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- 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 +2 -0
- package/dist/api/types/detections.d.ts +6 -10
- package/dist/api/types/drone.d.ts +94 -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 +9 -23
- 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 +11 -2
- package/dist/api/types/ingest.d.ts +194 -27
- 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 +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- 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 +56 -10
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- 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 +16 -16
- 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 +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +63 -10
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- 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 +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -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 -162
- 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;
|
|
@@ -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:
|
|
101
|
+
type: AuthOptionType.Password;
|
|
100
102
|
};
|
|
101
103
|
export type AuthSsoOption = {
|
|
102
|
-
type:
|
|
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:
|
|
156
|
-
old:
|
|
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
|
-
|
|
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
|
-
|
|
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;
|