@evercam/api 1.0.0-04bc4cb07 → 1.0.0-04f2bddeb
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/dist/api/api/3dFirebaseApi.d.ts +8 -0
- package/dist/api/api/adminApi.d.ts +8 -4
- package/dist/api/api/aiApi.d.ts +2 -2
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +6 -5
- package/dist/api/types/360.d.ts +5 -0
- package/dist/api/types/analytics.d.ts +2 -0
- package/dist/api/types/axios.d.ts +14 -0
- package/dist/api/types/camera.d.ts +7 -3
- package/dist/api/types/company.d.ts +1 -1
- package/dist/api/types/detections.d.ts +1 -2
- package/dist/api/types/kit.d.ts +15 -2
- package/dist/api/types/progressPhoto.d.ts +20 -8
- package/dist/api/types/project.d.ts +1 -0
- package/dist/api/types/shared.d.ts +1 -1
- package/dist/api/types/siteAnalytics.d.ts +3 -2
- package/dist/api/types/streaming.d.ts +1 -2
- package/dist/index.js +785 -586
- 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 +8 -0
- package/package.json +3 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
2
|
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
|
+
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
|
+
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
3
5
|
export declare const _3dFirebaseApi: {
|
|
4
6
|
drone: {
|
|
5
7
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
@@ -7,5 +9,11 @@ export declare const _3dFirebaseApi: {
|
|
|
7
9
|
_360: {
|
|
8
10
|
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
9
11
|
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
12
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
|
|
13
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
|
|
14
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
|
|
15
|
+
};
|
|
16
|
+
forge: {
|
|
17
|
+
getProjectInfo(projectExid: ProjectExid): Promise<any>;
|
|
10
18
|
};
|
|
11
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
2
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload,
|
|
2
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageServersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, Company, CompanyUpdatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, CameraShareRequestsQueryParams, CameraShareRequest, CameraShareRequestPayload, ShareCreateResponsePayload, ShareQueryParams, AdminShare, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, Widget, WidgetFull, WidgetPayload, KitStorageRequestPayload, CompanyUser, CompanyProject, Automation, KitStorage, KitFootageRequestPayload, KitFootageResponsePayload } from "@evercam/api/types";
|
|
3
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
4
|
import { Tag } from "@/types/tag";
|
|
5
5
|
export declare const AdminApi: {
|
|
@@ -62,9 +62,10 @@ export declare const AdminApi: {
|
|
|
62
62
|
message: string;
|
|
63
63
|
}>;
|
|
64
64
|
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
65
|
+
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
65
66
|
};
|
|
66
67
|
companies: {
|
|
67
|
-
show(id: string): Promise<Company>;
|
|
68
|
+
show(id: string, params: Object): Promise<Company>;
|
|
68
69
|
getCompanyUsers(id: string, params: {
|
|
69
70
|
params: {
|
|
70
71
|
page: number;
|
|
@@ -138,7 +139,10 @@ export declare const AdminApi: {
|
|
|
138
139
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
139
140
|
getStorages(params: {
|
|
140
141
|
params: KitStorageRequestPayload;
|
|
141
|
-
}): Promise<PaginatedItems<
|
|
142
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
143
|
+
getFootage(id: number, params: {
|
|
144
|
+
params: KitFootageRequestPayload;
|
|
145
|
+
}): Promise<KitFootageResponsePayload[]>;
|
|
142
146
|
};
|
|
143
147
|
logs: {
|
|
144
148
|
getAllCamerasStatusLogs(params: {
|
|
@@ -285,7 +289,7 @@ export declare const AdminApi: {
|
|
|
285
289
|
}): Promise<{
|
|
286
290
|
progressPhoto: string;
|
|
287
291
|
}>;
|
|
288
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
292
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
289
293
|
};
|
|
290
294
|
tags: {
|
|
291
295
|
index(): Promise<Tag[]>;
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchQuery, Schedule } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
|
|
4
4
|
export declare const getAiApiUrl: () => string | null | undefined;
|
|
@@ -110,7 +110,7 @@ export declare const AiApi: {
|
|
|
110
110
|
fromDate?: DateType;
|
|
111
111
|
toDate?: DateType;
|
|
112
112
|
query: string;
|
|
113
|
-
fileType:
|
|
113
|
+
fileType: DownloadFileType;
|
|
114
114
|
directDownload?: boolean;
|
|
115
115
|
payload: {
|
|
116
116
|
req: SmartSearchQuery;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { ExtendedAxiosInstance, ResponseValue } from "@/types";
|
|
3
|
+
export declare class Swr {
|
|
4
|
+
private axiosInstance;
|
|
5
|
+
private store;
|
|
6
|
+
constructor({ key, axiosInstance, }: {
|
|
7
|
+
key: string;
|
|
8
|
+
axiosInstance: ExtendedAxiosInstance;
|
|
9
|
+
});
|
|
10
|
+
get<T = any>(url: string, config?: AxiosRequestConfig): Promise<ResponseValue<T>>;
|
|
11
|
+
private getCachedValue;
|
|
12
|
+
private getFreshValue;
|
|
13
|
+
clear(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
export declare class SwrStore {
|
|
3
|
+
private prefix;
|
|
4
|
+
constructor(prefix: string);
|
|
5
|
+
generateKey(config: AxiosRequestConfig): string;
|
|
6
|
+
get(key: string): Promise<any>;
|
|
7
|
+
set(key: string, value: unknown): Promise<void>;
|
|
8
|
+
delete(key: string): Promise<void>;
|
|
9
|
+
clear(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -56,7 +56,8 @@ export declare const EvercamApi: {
|
|
|
56
56
|
};
|
|
57
57
|
cameras: {
|
|
58
58
|
getCameras(params: {
|
|
59
|
-
params
|
|
59
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
60
|
+
config?: AxiosRequestConfig;
|
|
60
61
|
}): Promise<CamerasResponsePayload>;
|
|
61
62
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
62
63
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
@@ -78,7 +79,10 @@ export declare const EvercamApi: {
|
|
|
78
79
|
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
79
80
|
};
|
|
80
81
|
projects: {
|
|
81
|
-
index(params
|
|
82
|
+
index({ params, config, }: {
|
|
83
|
+
params?: ApiCredentials;
|
|
84
|
+
config: AxiosRequestConfig;
|
|
85
|
+
}): Promise<ProjectResponsePayload>;
|
|
82
86
|
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
83
87
|
createLogo(projectId: string, formData: FormData): Promise<Logo & {
|
|
84
88
|
id: number;
|
|
@@ -229,9 +233,6 @@ export declare const EvercamApi: {
|
|
|
229
233
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
230
234
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
231
235
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
232
|
-
transferOwnership(cameraId: string, payload: {
|
|
233
|
-
userId: number;
|
|
234
|
-
}): Promise<void>;
|
|
235
236
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
236
237
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
237
238
|
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -52,6 +52,11 @@ export declare enum _360IntergrationType {
|
|
|
52
52
|
HoloBuilder = "Holobuilder",
|
|
53
53
|
DroneDeploy = "Dronedeploy"
|
|
54
54
|
}
|
|
55
|
+
export declare enum PathMarkerColor {
|
|
56
|
+
Start = "#00e74c",
|
|
57
|
+
End = "#fd7567",
|
|
58
|
+
Default = "#2196F3"
|
|
59
|
+
}
|
|
55
60
|
export type _360AssetsQueryParams = {
|
|
56
61
|
page: number;
|
|
57
62
|
limit: number;
|
|
@@ -386,12 +386,14 @@ export declare enum AnalyticsEvent {
|
|
|
386
386
|
ProgressPhotoPause = "ProgressPhoto-Pause",
|
|
387
387
|
ProgressPhotoResume = "ProgressPhoto-Resume",
|
|
388
388
|
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
389
|
+
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
389
390
|
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
390
391
|
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
391
392
|
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
392
393
|
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
393
394
|
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
394
395
|
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
396
|
+
ProgressPhotoSelectDelay = "ProgressPhoto-SelectDelay",
|
|
395
397
|
ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
|
|
396
398
|
ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
|
|
397
399
|
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
|
+
import { Swr } from "@/api/client/swr/Swr";
|
|
2
3
|
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
3
4
|
duration: number;
|
|
4
5
|
error?: AxiosError;
|
|
@@ -16,10 +17,13 @@ export type AxiosEnvironment = {
|
|
|
16
17
|
weatherApiBaseUrl?: string | null;
|
|
17
18
|
evercamLabsUrl?: string | null;
|
|
18
19
|
firebaseDbLink?: string | null;
|
|
20
|
+
firebaseStorageUrl?: string | null;
|
|
21
|
+
firebaseStorageToken?: string | null;
|
|
19
22
|
snapshotsURL?: string | null;
|
|
20
23
|
app?: string | null;
|
|
21
24
|
getAuthToken?: () => string | null;
|
|
22
25
|
errorLogger?: (error: AxiosError) => void;
|
|
26
|
+
swrKey?: string;
|
|
23
27
|
};
|
|
24
28
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
25
29
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
@@ -38,7 +42,13 @@ export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
|
38
42
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
39
43
|
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
40
44
|
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
45
|
+
swr: Swr;
|
|
41
46
|
}
|
|
47
|
+
export type ResponseValue<T> = T | undefined;
|
|
48
|
+
export type SwrResponse<T> = {
|
|
49
|
+
cachedValue: ResponseValue<T>;
|
|
50
|
+
freshPromise: Promise<ResponseValue<T>>;
|
|
51
|
+
};
|
|
42
52
|
declare module "axios" {
|
|
43
53
|
interface AxiosRequestConfig {
|
|
44
54
|
raw?: boolean;
|
|
@@ -47,5 +57,9 @@ declare module "axios" {
|
|
|
47
57
|
_metadata?: {
|
|
48
58
|
startTime: number;
|
|
49
59
|
};
|
|
60
|
+
swr?: boolean;
|
|
61
|
+
onSwrHit?: <T>(data: T) => unknown;
|
|
62
|
+
onSwrRefresh?: <T>(data: T) => unknown;
|
|
63
|
+
onSwrError?: (error: Error) => unknown;
|
|
50
64
|
}
|
|
51
65
|
}
|
|
@@ -17,7 +17,7 @@ export type Camera = {
|
|
|
17
17
|
storageDuration: string;
|
|
18
18
|
};
|
|
19
19
|
createdAt: DateTime_Z_micros;
|
|
20
|
-
description: null;
|
|
20
|
+
description: string | null;
|
|
21
21
|
discoverable: boolean;
|
|
22
22
|
external: {
|
|
23
23
|
host: string;
|
|
@@ -62,7 +62,7 @@ export type Camera = {
|
|
|
62
62
|
offlineReason: string;
|
|
63
63
|
owned: boolean;
|
|
64
64
|
owner: string;
|
|
65
|
-
pitch: null;
|
|
65
|
+
pitch: string | null;
|
|
66
66
|
project: {
|
|
67
67
|
id: string;
|
|
68
68
|
name: string;
|
|
@@ -73,7 +73,7 @@ export type Camera = {
|
|
|
73
73
|
};
|
|
74
74
|
ptz: boolean;
|
|
75
75
|
rights: string;
|
|
76
|
-
roll: null;
|
|
76
|
+
roll: string | null;
|
|
77
77
|
routerId: number;
|
|
78
78
|
status: CameraStatus;
|
|
79
79
|
streamingServer: string;
|
|
@@ -518,3 +518,7 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
518
518
|
externalRsptPort: string;
|
|
519
519
|
nvrHttpPort: string;
|
|
520
520
|
};
|
|
521
|
+
export declare enum BimType {
|
|
522
|
+
TwoD = "2D",
|
|
523
|
+
Forge = "Forge"
|
|
524
|
+
}
|
|
@@ -113,7 +113,6 @@ export declare enum PpeLabel {
|
|
|
113
113
|
Helmet = "helmet",
|
|
114
114
|
HighVisibilityVest = "high-visibility-vest",
|
|
115
115
|
SafetyGlasses = "safety-glasses",
|
|
116
|
-
Gloves = "gloves",
|
|
117
116
|
Person = "person",
|
|
118
117
|
Man = "man",
|
|
119
118
|
Woman = "woman"
|
|
@@ -121,7 +120,7 @@ export declare enum PpeLabel {
|
|
|
121
120
|
export declare enum DetectionModel {
|
|
122
121
|
Yolov10 = 1,
|
|
123
122
|
Yolov11 = 2,
|
|
124
|
-
|
|
123
|
+
Yolov112 = 3,
|
|
125
124
|
GroundingDino = 4,
|
|
126
125
|
Owlv2 = 5
|
|
127
126
|
}
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -17,6 +17,7 @@ export type Kit = {
|
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
19
|
tags: Tag[];
|
|
20
|
+
storages: KitStorage[];
|
|
20
21
|
};
|
|
21
22
|
export declare enum KitStatus {
|
|
22
23
|
New = "new",
|
|
@@ -316,7 +317,7 @@ export declare enum KitStorageTransport {
|
|
|
316
317
|
export type KitStorageRequestPayload = {
|
|
317
318
|
kitId: number;
|
|
318
319
|
};
|
|
319
|
-
export type
|
|
320
|
+
export type KitStorage = {
|
|
320
321
|
id: number;
|
|
321
322
|
serial: string;
|
|
322
323
|
status: string;
|
|
@@ -330,5 +331,17 @@ export type KitStorageResponsePayload = {
|
|
|
330
331
|
vendor: string;
|
|
331
332
|
kitId: number;
|
|
332
333
|
capacity: number;
|
|
334
|
+
freeSpace: number;
|
|
333
335
|
tran: KitStorageTransport;
|
|
334
336
|
};
|
|
337
|
+
export type KitFootageRequestPayload = {
|
|
338
|
+
cameraId: CameraExid;
|
|
339
|
+
storageId: number;
|
|
340
|
+
};
|
|
341
|
+
export type KitFootageResponsePayload = {
|
|
342
|
+
id: number;
|
|
343
|
+
startDate: string;
|
|
344
|
+
endDate: string;
|
|
345
|
+
cameraId: number;
|
|
346
|
+
storageId: number;
|
|
347
|
+
};
|
|
@@ -1,31 +1,43 @@
|
|
|
1
|
-
import { DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
-
export type
|
|
1
|
+
import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type Automation = {
|
|
3
|
+
name?: string;
|
|
3
4
|
cameraIds: string;
|
|
4
5
|
cameraNames: number;
|
|
6
|
+
cameraExids?: string[];
|
|
5
7
|
createdAt: string;
|
|
6
8
|
id: number;
|
|
7
9
|
provider: string;
|
|
8
|
-
type:
|
|
10
|
+
type: AutomationType;
|
|
9
11
|
config: Partial<{
|
|
10
|
-
recipients: string;
|
|
11
|
-
projectId: number;
|
|
12
|
+
recipients: string | Record<string, string>[];
|
|
12
13
|
companyId: number;
|
|
14
|
+
compareDelay: number;
|
|
15
|
+
categoryId: string;
|
|
16
|
+
hubId: string;
|
|
17
|
+
folderId: string;
|
|
18
|
+
projectId: number;
|
|
13
19
|
}>;
|
|
14
20
|
isPaused: boolean;
|
|
15
|
-
notifyDays: string;
|
|
21
|
+
notifyDays: string | string[];
|
|
16
22
|
notifyTime: string;
|
|
17
23
|
requesterEmail: string;
|
|
18
24
|
requesterName: string;
|
|
19
25
|
timezone: string;
|
|
20
26
|
title: string;
|
|
27
|
+
compareDelay?: number;
|
|
28
|
+
selectedProvider?: string;
|
|
29
|
+
restrictedCameraExids?: string[];
|
|
30
|
+
recipients?: string | string[];
|
|
21
31
|
};
|
|
22
32
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
23
33
|
cameraExids?: string;
|
|
24
34
|
notifyDays?: string;
|
|
35
|
+
compareDelay?: AutomationType;
|
|
25
36
|
notifyTime?: string;
|
|
26
37
|
provider?: string;
|
|
27
38
|
type?: string;
|
|
28
39
|
config?: {
|
|
40
|
+
compareDelay?: AutomationType;
|
|
29
41
|
recipients?: string;
|
|
30
42
|
projectId?: number;
|
|
31
43
|
companyId?: number;
|
|
@@ -40,9 +52,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
40
52
|
token?: string;
|
|
41
53
|
};
|
|
42
54
|
export type ProgressPhotosResponsePayload = {
|
|
43
|
-
progressPhotos:
|
|
55
|
+
progressPhotos: Automation[];
|
|
44
56
|
};
|
|
45
|
-
export declare enum
|
|
57
|
+
export declare enum AutomationDialogType {
|
|
46
58
|
Create = "create",
|
|
47
59
|
Edit = "edit",
|
|
48
60
|
Pause = "pause"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
|
|
2
|
-
import { DetectionLabel,
|
|
2
|
+
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
5
5
|
Segments = "segments"
|
|
@@ -132,10 +132,11 @@ export type DetectionsRequestParams = {
|
|
|
132
132
|
trackId?: number;
|
|
133
133
|
thresholds?: string[];
|
|
134
134
|
excludeLabels?: Array<DetectionLabel | PpeLabel>;
|
|
135
|
+
mergedClasses?: Array<string>;
|
|
135
136
|
confidenceThreshold?: number;
|
|
136
137
|
} & PaginationParams;
|
|
137
138
|
export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
138
|
-
fileType:
|
|
139
|
+
fileType: DownloadFileType;
|
|
139
140
|
columns?: string[];
|
|
140
141
|
directDownload?: boolean;
|
|
141
142
|
};
|
|
@@ -39,8 +39,7 @@ export type ExNvrDeviceConfig = {
|
|
|
39
39
|
timezone: string;
|
|
40
40
|
};
|
|
41
41
|
export declare enum ExNvrFootageAvailableStatus {
|
|
42
|
-
|
|
43
|
-
NotActive = "Not Active",
|
|
42
|
+
Available = "Available",
|
|
44
43
|
NotAvailable = "Not Available"
|
|
45
44
|
}
|
|
46
45
|
export declare enum ExNvrDeviceState {
|