@evercam/api 1.0.0-336752725 → 1.0.0-3adb55655
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 +10 -4
- package/dist/api/api/aiApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +0 -3
- 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 +2 -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/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 +373 -335
- 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 +2 -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,12 @@ 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
|
|
68
|
+
show(id: string, params: {
|
|
69
|
+
with_zoho?: boolean;
|
|
70
|
+
}): Promise<Company>;
|
|
68
71
|
getCompanyUsers(id: string, params: {
|
|
69
72
|
params: {
|
|
70
73
|
page: number;
|
|
@@ -138,7 +141,10 @@ export declare const AdminApi: {
|
|
|
138
141
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
139
142
|
getStorages(params: {
|
|
140
143
|
params: KitStorageRequestPayload;
|
|
141
|
-
}): Promise<PaginatedItems<
|
|
144
|
+
}): Promise<PaginatedItems<KitStorage[]>>;
|
|
145
|
+
getFootage(id: number, params: {
|
|
146
|
+
params: KitFootageRequestPayload;
|
|
147
|
+
}): Promise<KitFootageResponsePayload[]>;
|
|
142
148
|
};
|
|
143
149
|
logs: {
|
|
144
150
|
getAllCamerasStatusLogs(params: {
|
|
@@ -285,7 +291,7 @@ export declare const AdminApi: {
|
|
|
285
291
|
}): Promise<{
|
|
286
292
|
progressPhoto: string;
|
|
287
293
|
}>;
|
|
288
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
294
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
289
295
|
};
|
|
290
296
|
tags: {
|
|
291
297
|
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;
|
|
@@ -233,9 +233,6 @@ export declare const EvercamApi: {
|
|
|
233
233
|
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
234
234
|
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
235
235
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
236
|
-
transferOwnership(cameraId: string, payload: {
|
|
237
|
-
userId: number;
|
|
238
|
-
}): Promise<void>;
|
|
239
236
|
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
240
237
|
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
241
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",
|
|
@@ -17,6 +17,8 @@ export type AxiosEnvironment = {
|
|
|
17
17
|
weatherApiBaseUrl?: string | null;
|
|
18
18
|
evercamLabsUrl?: string | null;
|
|
19
19
|
firebaseDbLink?: string | null;
|
|
20
|
+
firebaseStorageUrl?: string | null;
|
|
21
|
+
firebaseStorageToken?: string | null;
|
|
20
22
|
snapshotsURL?: string | null;
|
|
21
23
|
app?: string | null;
|
|
22
24
|
getAuthToken?: () => string | null;
|
|
@@ -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 {
|