@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.
@@ -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, CountsParams, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType } from "@evercam/api/types";
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(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
79
- getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
80
- getDetectionsPresenceDateIntervals({ cameraExid, ...params }: CountsParams): Promise<DetectionsPresenceByLabel>;
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 { AxiosEnvironment } from "../../types";
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<{
@@ -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, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
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, }: CountsParams): Promise<SegmentsPresenceByLabel>;
21
+ getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
22
22
  };
23
23
  googleCloudStorage: {
24
24
  listFiles(prefix?: string): Promise<{
@@ -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
  };