@evercam/api 1.0.0-b3c857a59 → 1.0.0-ba2cdcb68
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/{3dFirebaseApi.d.ts → api/3dFirebaseApi.d.ts} +2 -0
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +29 -7
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +30 -3
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +3 -2
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +6 -6
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +6 -0
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +30 -6
- package/dist/{types → api/types}/anpr.d.ts +2 -0
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +1 -0
- package/dist/{types → api/types}/camera.d.ts +3 -0
- package/dist/{types → api/types}/connector.d.ts +4 -0
- package/dist/{types → api/types}/detections.d.ts +56 -5
- package/dist/{types → api/types}/errors.d.ts +12 -0
- package/dist/{types → api/types}/index.d.ts +1 -0
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/planner.d.ts +4 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +219 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +2 -0
- package/dist/{types → api/types}/project.d.ts +5 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/{types → api/types}/routeParams.d.ts +2 -1
- package/dist/{types → api/types}/siteAnalytics.d.ts +19 -1
- package/dist/{types → api/types}/time.d.ts +2 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/index.d.ts +2 -3
- package/dist/index.js +594 -423
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +184 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +2 -2
- package/dist/types/procore.d.ts +0 -76
- /package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +0 -0
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +0 -0
- /package/dist/api/{videoWallApi.d.ts → api/videoWallApi.d.ts} +0 -0
- /package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/comments.d.ts +0 -0
- /package/dist/{types → api/types}/company.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/coolify.d.ts +0 -0
- /package/dist/{types → api/types}/copilot.d.ts +0 -0
- /package/dist/{types → api/types}/countries.d.ts +0 -0
- /package/dist/{types → api/types}/credentials.d.ts +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/gateReport.d.ts +0 -0
- /package/dist/{types → api/types}/hdd.d.ts +0 -0
- /package/dist/{types → api/types}/kit.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/roi.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/shared.d.ts +0 -0
- /package/dist/{types → api/types}/shares.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/snapshots.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/streaming.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/tag.d.ts +0 -0
- /package/dist/{types → api/types}/timelapse.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{types → api/types}/weather.d.ts +0 -0
- /package/dist/{types → api/types}/widget.d.ts +0 -0
- /package/dist/{types → api/types}/xweather.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
2
3
|
export declare const _3dFirebaseApi: {
|
|
3
4
|
drone: {
|
|
4
5
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
5
6
|
};
|
|
6
7
|
_360: {
|
|
7
8
|
getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
|
|
9
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
@@ -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,
|
|
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, DownloadTypes, 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;
|
|
@@ -19,7 +19,6 @@ export declare const AiApi: {
|
|
|
19
19
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
20
|
};
|
|
21
21
|
gateReport: {
|
|
22
|
-
getGateReportProjects(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
22
|
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
23
|
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
24
|
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -27,6 +26,7 @@ export declare const AiApi: {
|
|
|
27
26
|
exportEventsProgress(projectExid: string, params: {
|
|
28
27
|
exportDate: string;
|
|
29
28
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
30
|
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
31
31
|
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
32
32
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
@@ -59,7 +59,6 @@ export declare const AiApi: {
|
|
|
59
59
|
brainTool: {
|
|
60
60
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
61
|
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
getDepth(cameraExid: string, timestamp: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
62
|
};
|
|
64
63
|
roi: {
|
|
65
64
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
@@ -74,10 +73,14 @@ export declare const AiApi: {
|
|
|
74
73
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
74
|
};
|
|
76
75
|
detections: {
|
|
76
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
77
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams): Promise<DetectionsCountsByPeriod>;
|
|
78
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams): Promise<PaginatedItems<DetectionsGroup>>;
|
|
77
79
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
|
-
getDetectionsTracking(
|
|
79
|
-
getSegmentsMasks(cameraExid: CameraExid, params:
|
|
80
|
-
getDetectionsPresenceDateIntervals({
|
|
80
|
+
getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
81
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
|
|
82
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
83
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
81
84
|
};
|
|
82
85
|
siteAnalytics: {
|
|
83
86
|
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
@@ -95,7 +98,26 @@ export declare const AiApi: {
|
|
|
95
98
|
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchQueryParams>;
|
|
96
99
|
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
97
100
|
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
|
-
getProcessedTimes(
|
|
101
|
+
getProcessedTimes({ projectExid, cameraExids, granularity, endDate, startDate, }: {
|
|
102
|
+
projectExid: string;
|
|
103
|
+
cameraExids: string[];
|
|
104
|
+
granularity?: "day" | "hour";
|
|
105
|
+
startDate?: DateType;
|
|
106
|
+
endDate?: DateType;
|
|
107
|
+
}): Promise<Record<string, string[]>>;
|
|
108
|
+
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
109
|
+
cameraExid: CameraExid;
|
|
110
|
+
fromDate?: DateType;
|
|
111
|
+
toDate?: DateType;
|
|
112
|
+
query: string;
|
|
113
|
+
fileType: DownloadTypes;
|
|
114
|
+
directDownload?: boolean;
|
|
115
|
+
payload: {
|
|
116
|
+
req: SmartSearchQuery;
|
|
117
|
+
timeSchedule?: Schedule;
|
|
118
|
+
columns?: string[];
|
|
119
|
+
};
|
|
120
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
99
121
|
};
|
|
100
122
|
coolify: {
|
|
101
123
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -5,6 +5,7 @@ export declare const BadRequestError: {
|
|
|
5
5
|
stack?: string;
|
|
6
6
|
cause?: unknown;
|
|
7
7
|
};
|
|
8
|
+
isError(error: unknown): error is Error;
|
|
8
9
|
};
|
|
9
10
|
export declare const NotFoundError: {
|
|
10
11
|
new (error: unknown): {
|
|
@@ -13,6 +14,7 @@ export declare const NotFoundError: {
|
|
|
13
14
|
stack?: string;
|
|
14
15
|
cause?: unknown;
|
|
15
16
|
};
|
|
17
|
+
isError(error: unknown): error is Error;
|
|
16
18
|
};
|
|
17
19
|
export declare const UnauthorizedError: {
|
|
18
20
|
new (error: unknown): {
|
|
@@ -21,6 +23,7 @@ export declare const UnauthorizedError: {
|
|
|
21
23
|
stack?: string;
|
|
22
24
|
cause?: unknown;
|
|
23
25
|
};
|
|
26
|
+
isError(error: unknown): error is Error;
|
|
24
27
|
};
|
|
25
28
|
export declare const GatewayTimeoutError: {
|
|
26
29
|
new (error: unknown): {
|
|
@@ -29,6 +32,7 @@ export declare const GatewayTimeoutError: {
|
|
|
29
32
|
stack?: string;
|
|
30
33
|
cause?: unknown;
|
|
31
34
|
};
|
|
35
|
+
isError(error: unknown): error is Error;
|
|
32
36
|
};
|
|
33
37
|
export declare const BadGatewayError: {
|
|
34
38
|
new (error: unknown): {
|
|
@@ -37,6 +41,7 @@ export declare const BadGatewayError: {
|
|
|
37
41
|
stack?: string;
|
|
38
42
|
cause?: unknown;
|
|
39
43
|
};
|
|
44
|
+
isError(error: unknown): error is Error;
|
|
40
45
|
};
|
|
41
46
|
export declare const ForbiddenError: {
|
|
42
47
|
new (error: unknown): {
|
|
@@ -45,6 +50,7 @@ export declare const ForbiddenError: {
|
|
|
45
50
|
stack?: string;
|
|
46
51
|
cause?: unknown;
|
|
47
52
|
};
|
|
53
|
+
isError(error: unknown): error is Error;
|
|
48
54
|
};
|
|
49
55
|
export declare const HlsError: {
|
|
50
56
|
new (error: unknown): {
|
|
@@ -53,6 +59,7 @@ export declare const HlsError: {
|
|
|
53
59
|
stack?: string;
|
|
54
60
|
cause?: unknown;
|
|
55
61
|
};
|
|
62
|
+
isError(error: unknown): error is Error;
|
|
56
63
|
};
|
|
57
64
|
export declare const SnapshotError: {
|
|
58
65
|
new (error: unknown): {
|
|
@@ -61,6 +68,7 @@ export declare const SnapshotError: {
|
|
|
61
68
|
stack?: string;
|
|
62
69
|
cause?: unknown;
|
|
63
70
|
};
|
|
71
|
+
isError(error: unknown): error is Error;
|
|
64
72
|
};
|
|
65
73
|
export declare const ConflictError: {
|
|
66
74
|
new (error: unknown): {
|
|
@@ -69,6 +77,7 @@ export declare const ConflictError: {
|
|
|
69
77
|
stack?: string;
|
|
70
78
|
cause?: unknown;
|
|
71
79
|
};
|
|
80
|
+
isError(error: unknown): error is Error;
|
|
72
81
|
};
|
|
73
82
|
export declare const InternalServerError: {
|
|
74
83
|
new (error: unknown): {
|
|
@@ -77,4 +86,5 @@ export declare const InternalServerError: {
|
|
|
77
86
|
stack?: string;
|
|
78
87
|
cause?: unknown;
|
|
79
88
|
};
|
|
89
|
+
isError(error: unknown): error is Error;
|
|
80
90
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
2
|
+
import { type AxiosEnvironment } from "@evercam/api/types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
5
5
|
export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) => Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraExid, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, CheckCameraPortPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreProjectsAlbumsPayload,
|
|
2
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProjectsResponsePayload, ApiCredentials, AutodeskFolderResponsePayload, AutodeskProjectsResponsePayload, AutodeskTokenResponsePayload, AutodeskUploadSnapshotPayload, AutodeskUserHubsResponsePayload, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraExid, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, CheckCameraPortPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, Company, CompanyProject, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, LoginResponsePayload, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectExid, ProjectLogoResponsePayload, ProjectResponsePayload, ProjectShareResponse, RemotePasswordUpdateRequestPayload, ResendShareRequestPayload, SessionsListRequestPayload, Share, ShareCreateRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, ShareProjectCamerasRequestPayload, UpdateUserRestrictionPayload, UpdateCameraRestrictionPayload, ShareRequestsResponsePayload, SharesResponsePayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetsListRequestPayload, Camera } from "@evercam/api/types";
|
|
3
3
|
export declare const EvercamApi: {
|
|
4
4
|
apiStatus: {
|
|
5
5
|
getApiStatus(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -99,6 +99,16 @@ export declare const EvercamApi: {
|
|
|
99
99
|
message: string;
|
|
100
100
|
}>;
|
|
101
101
|
getPlaceholderThumbnailData(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
102
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
103
|
+
message: string;
|
|
104
|
+
}>;
|
|
105
|
+
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
106
|
+
getCameras(projectExid: string): Promise<{
|
|
107
|
+
cameras: Camera[];
|
|
108
|
+
}>;
|
|
109
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
110
|
+
cameras: Camera[];
|
|
111
|
+
}>;
|
|
102
112
|
};
|
|
103
113
|
timelapse: {
|
|
104
114
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -127,10 +137,27 @@ export declare const EvercamApi: {
|
|
|
127
137
|
};
|
|
128
138
|
procore: {
|
|
129
139
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
130
|
-
getUserProjects(payload:
|
|
131
|
-
|
|
140
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
141
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
142
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
132
143
|
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
133
144
|
sendRevoke(): Promise<void>;
|
|
145
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
146
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
147
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
148
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
149
|
+
createObservation(formData: FormData): Promise<void>;
|
|
150
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
151
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
152
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
153
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreProjectRequestPayload>;
|
|
154
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
155
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
156
|
+
getCustomFieldOptions(payload: ProcoreProjectRequestPayload): Promise<{
|
|
157
|
+
options: {
|
|
158
|
+
[key: string]: string[];
|
|
159
|
+
};
|
|
160
|
+
}>;
|
|
134
161
|
};
|
|
135
162
|
autodesk: {
|
|
136
163
|
sendRevoke(): Promise<void>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
3
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
4
|
export declare const EvercamLabsApi: {
|
|
5
5
|
posthog: {
|
|
6
6
|
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
7
7
|
getUsers(params: any): Promise<any>;
|
|
8
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
|
|
8
9
|
};
|
|
9
10
|
copilot: {
|
|
10
11
|
getAllConversations(params: LabsPaginationParams & {
|
|
@@ -18,7 +19,7 @@ export declare const EvercamLabsApi: {
|
|
|
18
19
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
20
|
};
|
|
20
21
|
detections: {
|
|
21
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }:
|
|
22
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
22
23
|
};
|
|
23
24
|
googleCloudStorage: {
|
|
24
25
|
listFiles(prefix?: string): Promise<{
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./client";
|
|
2
|
+
export * from "./adminApi";
|
|
3
|
+
export * from "./videoWallApi";
|
|
4
|
+
export * from "./3dFirebaseApi";
|
|
5
|
+
export * from "./aiApi";
|
|
6
|
+
export * from "./webRtcApi";
|
|
7
|
+
export * from "./weatherApi";
|
|
8
|
+
export * from "./evercamLabsApi";
|
|
9
|
+
export * from "./evercamApi";
|
|
10
|
+
export * from "./ptzApi";
|
|
11
|
+
export * from "./ingestApi";
|
|
12
|
+
export * from "./exNvrApi";
|
|
13
|
+
export * from "./authzApi";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
|
|
2
|
+
import { IngestVersions } from "@evercam/shared/types";
|
|
2
3
|
export declare const IngestApi: {
|
|
3
4
|
drone: {
|
|
4
5
|
createUpload(projectId: string, params: {
|
|
@@ -26,23 +27,23 @@ export declare const IngestApi: {
|
|
|
26
27
|
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
27
28
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
29
|
isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
-
getDroneQueueSize(): Promise<
|
|
30
|
+
getDroneQueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
30
31
|
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
32
|
checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
33
|
};
|
|
33
34
|
assets360: {
|
|
34
35
|
get360Assets(params: {
|
|
35
36
|
params: Partial<_360AssetsQueryParams>;
|
|
36
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
38
|
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
39
|
deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
40
|
getArchive(id: number, params: {
|
|
40
41
|
dateType: string;
|
|
41
42
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
-
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
-
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
+
upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
45
|
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
-
get360QueueSize(): Promise<
|
|
46
|
+
get360QueueSize(version?: IngestVersions): Promise<Record<string, any>>;
|
|
46
47
|
};
|
|
47
48
|
bim: {
|
|
48
49
|
createUpload(projectId: string, params: {
|
|
@@ -63,6 +64,5 @@ export declare const IngestApi: {
|
|
|
63
64
|
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
65
|
};
|
|
65
66
|
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
66
|
-
getProjectName(projectId: string): Promise<string>;
|
|
67
67
|
loadAllAssetsInQueue(): Promise<any[]>;
|
|
68
68
|
};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./3dFirebaseApi";
|
|
5
|
-
export * from "./aiApi";
|
|
6
|
-
export * from "./webRtcApi";
|
|
7
|
-
export * from "./weatherApi";
|
|
8
|
-
export * from "./evercamLabsApi";
|
|
9
|
-
export * from "./evercamApi";
|
|
10
|
-
export * from "./ptzApi";
|
|
11
|
-
export * from "./ingestApi";
|
|
12
|
-
export * from "./exNvrApi";
|
|
13
|
-
export * from "./authzApi";
|
|
1
|
+
export * from "./api";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export * from "./utils";
|
|
@@ -40,6 +40,11 @@ export declare enum _360AssetType {
|
|
|
40
40
|
MobilePhoto = "mobile_photos",
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
|
+
export declare enum _360Feature {
|
|
44
|
+
BIM = "BIM",
|
|
45
|
+
Minimap = "Minimap",
|
|
46
|
+
Minimodel = "Minimodel"
|
|
47
|
+
}
|
|
43
48
|
export declare enum _360IntergrationType {
|
|
44
49
|
Evercam = "Evercam",
|
|
45
50
|
Matterport = "Matterport",
|
|
@@ -73,6 +78,7 @@ export type _360AssetsUploadPayload = {
|
|
|
73
78
|
startPosition: string;
|
|
74
79
|
endPosition: string;
|
|
75
80
|
isTimelapse: boolean;
|
|
81
|
+
isImagesOnly: boolean;
|
|
76
82
|
};
|
|
77
83
|
export type Generate360MapRequestPayload = {
|
|
78
84
|
dateId: string;
|
|
@@ -20,6 +20,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
20
20
|
ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
|
|
21
21
|
ProjectSettingsMembers = "ProjectSettings-Members",
|
|
22
22
|
ProjectSettingsOverview = "ProjectSettings-Overview",
|
|
23
|
+
ProjectSettingsDangerZone = "ProjectSettings-DangerZone",
|
|
23
24
|
Settings = "Settings",
|
|
24
25
|
SettingsAccount = "Settings-Account",
|
|
25
26
|
SettingsConnectors = "Settings-Connectors",
|
|
@@ -40,7 +41,9 @@ export declare enum AnalyticsEventPageId {
|
|
|
40
41
|
DroneInfo = "DroneInfo",
|
|
41
42
|
ThreeSixtyInfo = "360Info",
|
|
42
43
|
BimCompareInfo = "BimCompareInfo",
|
|
43
|
-
WeatherReport = "WeatherReport"
|
|
44
|
+
WeatherReport = "WeatherReport",
|
|
45
|
+
PpeReport = "PpeReport",
|
|
46
|
+
SmartSearch = "SmartSearch"
|
|
44
47
|
}
|
|
45
48
|
export declare enum AnalyticsEvent {
|
|
46
49
|
PageView = "PageView",
|
|
@@ -234,7 +237,6 @@ export declare enum AnalyticsEvent {
|
|
|
234
237
|
AiToolSelectObjectDetection = "AITool-SelectObjectDetection",
|
|
235
238
|
AiToolSelectAskChatGpt = "AITool-SelectAskChatGpt",
|
|
236
239
|
AiToolSelectSegmentation = "AITool-SelectSegmentation",
|
|
237
|
-
AiToolSelectDepthAnalysis = "AITool-SelectDepthAnalysis",
|
|
238
240
|
AiToolUpdateTransparency = "AITool-UpdateTransparency",
|
|
239
241
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
240
242
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
@@ -256,6 +258,7 @@ export declare enum AnalyticsEvent {
|
|
|
256
258
|
SharingTransferOwnership = "TransferOwnership",
|
|
257
259
|
SharingSortBy = "SortBy",
|
|
258
260
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
261
|
+
ThreeSixtyList = "360List",
|
|
259
262
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
260
263
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
261
264
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -292,6 +295,7 @@ export declare enum AnalyticsEvent {
|
|
|
292
295
|
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
293
296
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
294
297
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
298
|
+
ThreeSixtyUpdateFloorName = "UpdateFloorName",
|
|
295
299
|
DroneAreaToolClick = "AreaTool-Click",
|
|
296
300
|
DroneChangeDate = "ChangeDate",
|
|
297
301
|
DroneChooseTagType = "ChooseTagType",
|
|
@@ -435,20 +439,40 @@ export declare enum AnalyticsEvent {
|
|
|
435
439
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
436
440
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
437
441
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
438
|
-
GateReportExportPdf = "ExportPdf",
|
|
439
|
-
GateReportExportCsv = "ExportCsv",
|
|
440
442
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
441
|
-
GateReportFilterCameras = "FilterCameras",
|
|
442
443
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
443
444
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
444
445
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
445
446
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
446
447
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
448
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
447
449
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
448
450
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
449
451
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
450
452
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
451
453
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
452
454
|
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
453
|
-
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
|
|
455
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
456
|
+
ExportPdf = "ExportPdf",
|
|
457
|
+
ExportCsv = "ExportCsv",
|
|
458
|
+
FilterCameras = "FilterCameras",
|
|
459
|
+
SmartSearchToggleQueryBuilder = "SmartSearch-ToggleQueryBuilder",
|
|
460
|
+
SmartSearchToggleQuerySelector = "SmartSearch-ToggleQuerySelector",
|
|
461
|
+
SmartSearchDeleteComponent = "SmartSearch-DeleteComponent",
|
|
462
|
+
SmartSearchPageChange = "SmartSearch-PageChange",
|
|
463
|
+
SmartSearchExecuteQuery = "SmartSearch-ExecuteQuery",
|
|
464
|
+
SmartSearchAddComponent = "SmartSearch-AddComponent",
|
|
465
|
+
SmartSearchConnectComponent = "SmartSearch-ConnectComponent",
|
|
466
|
+
SmartSearchUpdateComponent = "SmartSearch-UpdateComponent",
|
|
467
|
+
SmartSearchSavedQueryClick = "SmartSearch-SavedQueryClick",
|
|
468
|
+
SmartSearchFilterSavedQueries = "SmartSearch-FilterSavedQueries",
|
|
469
|
+
SmartSearchThumbnailHover = "SmartSearch-ThumbnailHover",
|
|
470
|
+
SmartSearchThumbnailError = "SmartSearch-ThumbnailError",
|
|
471
|
+
SmartSearchCameraSelected = "SmartSearch-CameraSelected",
|
|
472
|
+
SmartSearchOptionClicked = "SmartSearch-OptionClicked",
|
|
473
|
+
SmartSearchEditQuery = "SmartSearch-EditQuery",
|
|
474
|
+
SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
|
|
475
|
+
SmartSearchSaveQuery = "SmartSearch-SaveQuery",
|
|
476
|
+
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
477
|
+
SmartSearchExportFile = "SmartSearch-ExportFile"
|
|
454
478
|
}
|
|
@@ -44,6 +44,7 @@ export type AnprEvent = {
|
|
|
44
44
|
id: number;
|
|
45
45
|
plateNumber: string;
|
|
46
46
|
cameraExid: CameraExid;
|
|
47
|
+
cameraex: CameraExid;
|
|
47
48
|
picName: string;
|
|
48
49
|
eventTime: string;
|
|
49
50
|
insertedAt: string;
|
|
@@ -66,6 +67,7 @@ export type AnprEvent = {
|
|
|
66
67
|
contextCamera: string;
|
|
67
68
|
votedVehicleType: GateReportVehicleType | string;
|
|
68
69
|
roiId?: number;
|
|
70
|
+
captureTime: DateType;
|
|
69
71
|
metadata_: {
|
|
70
72
|
evercamMetadata?: {
|
|
71
73
|
anpr?: {
|
|
@@ -8,6 +8,7 @@ export type AxiosEnvironment = {
|
|
|
8
8
|
stagingAiApiUrl?: string | null;
|
|
9
9
|
aiApiUrl?: string | null;
|
|
10
10
|
ingestApiUrl?: string | null;
|
|
11
|
+
ingestGpuApiUrl?: string | null;
|
|
11
12
|
posthogApiUrl?: string | null;
|
|
12
13
|
posthogProjectId?: string | null;
|
|
13
14
|
posthogPrivateApiKey?: string | null;
|
|
@@ -83,6 +83,7 @@ export type Camera = {
|
|
|
83
83
|
updatedAt: DateTime_Z_micros;
|
|
84
84
|
vendorName: string;
|
|
85
85
|
isAccessRestricted?: boolean;
|
|
86
|
+
kitAlarms?: string[];
|
|
86
87
|
};
|
|
87
88
|
export type AdminCamera = {
|
|
88
89
|
cameraHost: string;
|
|
@@ -178,6 +179,8 @@ export declare enum CameraStatus {
|
|
|
178
179
|
export declare enum CameraFeatureFlag {
|
|
179
180
|
EdgeVideo = "edge_video",
|
|
180
181
|
BimCompare = "bim_compare",
|
|
182
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
183
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
181
184
|
GateReport = "gate_report",
|
|
182
185
|
VideoStream = "video_stream",
|
|
183
186
|
WebRTC = "webrtc",
|
|
@@ -10,6 +10,10 @@ export declare enum Connector {
|
|
|
10
10
|
VoyageControl = "voyage_control",
|
|
11
11
|
XWeather = "xweather"
|
|
12
12
|
}
|
|
13
|
+
export declare enum ProcoreType {
|
|
14
|
+
Observations = "observations",
|
|
15
|
+
Photos = "photos"
|
|
16
|
+
}
|
|
13
17
|
export type ConnectorResponsePayload = Array<{
|
|
14
18
|
hostname: string;
|
|
15
19
|
login: string;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
-
export type
|
|
3
|
-
cameraExid: CameraExid;
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
+
export type BaseDetectionsFilters = {
|
|
4
3
|
fromDate: string | Date;
|
|
5
4
|
toDate: string | Date;
|
|
6
5
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
6
|
trackId?: number;
|
|
8
7
|
};
|
|
8
|
+
export type DetectionsFilters = BaseDetectionsFilters & {
|
|
9
|
+
projectExid: ProjectExid;
|
|
10
|
+
cameraExids?: CameraExid[];
|
|
11
|
+
};
|
|
12
|
+
export type SegmentsFilters = BaseDetectionsFilters & {
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
};
|
|
9
15
|
export type BBox = number[];
|
|
10
16
|
export type SelectedObjectPath = {
|
|
11
17
|
label: string;
|
|
@@ -16,9 +22,32 @@ export type SelectedObjectPath = {
|
|
|
16
22
|
bbox: BBox;
|
|
17
23
|
}>;
|
|
18
24
|
};
|
|
25
|
+
export type Label = DetectionLabel | PpeLabel;
|
|
19
26
|
export type Detection = {
|
|
20
27
|
bbox: BBox;
|
|
21
28
|
timestamp: string | Date;
|
|
29
|
+
label: DetectionLabel;
|
|
30
|
+
confidenceScore: number;
|
|
31
|
+
};
|
|
32
|
+
export type DetectionsGroup = {
|
|
33
|
+
timestamp: DateType;
|
|
34
|
+
detections: Detection[];
|
|
35
|
+
};
|
|
36
|
+
export type DetectionsCounts = {
|
|
37
|
+
timestamps: number;
|
|
38
|
+
} & {
|
|
39
|
+
[label in Label]: number;
|
|
40
|
+
};
|
|
41
|
+
export type DetectionsCountsByPeriod = {
|
|
42
|
+
days: Array<{
|
|
43
|
+
day: string;
|
|
44
|
+
} & DetectionsCounts>;
|
|
45
|
+
months: Array<{
|
|
46
|
+
month: string;
|
|
47
|
+
} & DetectionsCounts>;
|
|
48
|
+
years: Array<{
|
|
49
|
+
year: string;
|
|
50
|
+
} & DetectionsCounts>;
|
|
22
51
|
};
|
|
23
52
|
export type Tracking = {
|
|
24
53
|
trackId: number;
|
|
@@ -55,14 +84,20 @@ export type SegmentsSimilaritySearchParams = {
|
|
|
55
84
|
fromDate: string;
|
|
56
85
|
toDate: string;
|
|
57
86
|
};
|
|
58
|
-
export type
|
|
59
|
-
cameraExid: CameraExid;
|
|
87
|
+
export type BaseCountsParams = {
|
|
60
88
|
fromDate: string | Date;
|
|
61
89
|
toDate: string | Date;
|
|
62
90
|
precision: keyof typeof TimelinePrecision;
|
|
63
91
|
trackId: number;
|
|
64
92
|
labels: DetectionLabel | DetectionLabel[];
|
|
65
93
|
};
|
|
94
|
+
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
+
projectExid: ProjectExid;
|
|
96
|
+
cameraExids?: CameraExid[];
|
|
97
|
+
};
|
|
98
|
+
export type SegmentsCountsParams = BaseCountsParams & {
|
|
99
|
+
cameraExid: CameraExid;
|
|
100
|
+
};
|
|
66
101
|
export type CountByPeriod = {
|
|
67
102
|
date: string | Date;
|
|
68
103
|
counts: Record<string, number>;
|
|
@@ -74,3 +109,19 @@ export type LuminanceReading = {
|
|
|
74
109
|
luminanceDelta: number;
|
|
75
110
|
luminanceAverage: number;
|
|
76
111
|
};
|
|
112
|
+
export declare enum PpeLabel {
|
|
113
|
+
Helmet = "helmet",
|
|
114
|
+
HighVisibilityVest = "high-visibility-vest",
|
|
115
|
+
SafetyGlasses = "safety-glasses",
|
|
116
|
+
Gloves = "gloves",
|
|
117
|
+
Person = "person",
|
|
118
|
+
Man = "man",
|
|
119
|
+
Woman = "woman"
|
|
120
|
+
}
|
|
121
|
+
export declare enum DetectionModel {
|
|
122
|
+
Yolov10 = 1,
|
|
123
|
+
Yolov11 = 2,
|
|
124
|
+
Yolov11_2 = 3,
|
|
125
|
+
GroundingDino = 4,
|
|
126
|
+
Owlv2 = 5
|
|
127
|
+
}
|
|
@@ -14,12 +14,24 @@ export declare enum ErrorType {
|
|
|
14
14
|
UnhandledRejection = "UnhandledRejection",
|
|
15
15
|
TypeError = "TypeError"
|
|
16
16
|
}
|
|
17
|
+
export declare enum ErrorCode {
|
|
18
|
+
InternalServerError = 500,
|
|
19
|
+
BadGatewayError = 502,
|
|
20
|
+
ServiceUnavailableError = 503,
|
|
21
|
+
GatewayTimeoutError = 504,
|
|
22
|
+
BadRequestError = 400,
|
|
23
|
+
UnauthorizedError = 401,
|
|
24
|
+
ForbiddenError = 403,
|
|
25
|
+
NotFoundError = 404,
|
|
26
|
+
ConflictError = 409
|
|
27
|
+
}
|
|
17
28
|
export declare enum EvercamApiErrorCode {
|
|
18
29
|
BadArgument = "BAD_ARGUMENT",
|
|
19
30
|
DeviceError = "DEVICE_ERROR",
|
|
20
31
|
UnsupportedOperation = "UNSUPPORTED_OPERATION",
|
|
21
32
|
QuotaExceeded = "QUOTA_EXCEEDED",
|
|
22
33
|
InvalidCredentials = "INVALID_CREDENTIALS",
|
|
34
|
+
InvalidToken = "INVALID_TOKEN",
|
|
23
35
|
ProviderAuthFailure = "PROVIDER_AUTH_FAILURE",
|
|
24
36
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
25
37
|
PasswordReset = "PASSWORD_RESET",
|