@evercam/api 1.0.0-6ad33e216 → 1.0.0-6c17c517a
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/aiApi.d.ts +22 -5
- package/dist/api/client/customErrors.d.ts +10 -0
- package/dist/api/client/interceptors.d.ts +1 -1
- package/dist/api/evercamApi.d.ts +4 -0
- package/dist/api/evercamLabsApi.d.ts +2 -2
- package/dist/api/ingestApi.d.ts +0 -1
- package/dist/index.js +427 -367
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +5 -0
- package/dist/types/analytics.d.ts +9 -5
- package/dist/types/camera.d.ts +2 -0
- package/dist/types/detections.d.ts +56 -5
- package/dist/types/errors.d.ts +12 -0
- package/dist/types/planner.d.ts +4 -0
- package/dist/types/project.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +19 -1
- package/dist/types/time.d.ts +2 -0
- package/package.json +2 -2
package/dist/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,
|
|
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>>;
|
|
@@ -74,10 +74,14 @@ export declare const AiApi: {
|
|
|
74
74
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
75
|
};
|
|
76
76
|
detections: {
|
|
77
|
+
getDetections({ projectExid, ...params }: DetectionsRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
|
+
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams): Promise<DetectionsCountsByPeriod>;
|
|
79
|
+
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams): Promise<PaginatedItems<DetectionsGroup>>;
|
|
77
80
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
78
|
-
getDetectionsTracking(
|
|
79
|
-
getSegmentsMasks(cameraExid: CameraExid, params:
|
|
80
|
-
getDetectionsPresenceDateIntervals({
|
|
81
|
+
getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
82
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
|
|
83
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
84
|
+
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
81
85
|
};
|
|
82
86
|
siteAnalytics: {
|
|
83
87
|
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
@@ -96,6 +100,19 @@ export declare const AiApi: {
|
|
|
96
100
|
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
97
101
|
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
102
|
getProcessedTimes(cameraExid: CameraExid, granularity?: "day" | "hour", startDate?: DateType, endDate?: DateType): Promise<string[]>;
|
|
103
|
+
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
104
|
+
cameraExid: CameraExid;
|
|
105
|
+
fromDate?: DateType;
|
|
106
|
+
toDate?: DateType;
|
|
107
|
+
query: string;
|
|
108
|
+
fileType: DownloadTypes;
|
|
109
|
+
directDownload?: boolean;
|
|
110
|
+
payload: {
|
|
111
|
+
req: SmartSearchQuery;
|
|
112
|
+
timeSchedule?: Schedule;
|
|
113
|
+
columns?: string[];
|
|
114
|
+
};
|
|
115
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
99
116
|
};
|
|
100
117
|
coolify: {
|
|
101
118
|
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<{
|
package/dist/api/evercamApi.d.ts
CHANGED
|
@@ -99,6 +99,10 @@ 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>>;
|
|
102
106
|
};
|
|
103
107
|
timelapse: {
|
|
104
108
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel } 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: {
|
|
@@ -18,7 +18,7 @@ export declare const EvercamLabsApi: {
|
|
|
18
18
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
19
|
};
|
|
20
20
|
detections: {
|
|
21
|
-
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }:
|
|
21
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
22
22
|
};
|
|
23
23
|
googleCloudStorage: {
|
|
24
24
|
listFiles(prefix?: string): Promise<{
|
package/dist/api/ingestApi.d.ts
CHANGED
|
@@ -63,6 +63,5 @@ export declare const IngestApi: {
|
|
|
63
63
|
getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
64
|
};
|
|
65
65
|
getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
66
|
-
getProjectName(projectId: string): Promise<string>;
|
|
67
66
|
loadAllAssetsInQueue(): Promise<any[]>;
|
|
68
67
|
};
|