@evercam/api 1.0.0-a405572ff → 1.0.0-b275917d0

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/README.md CHANGED
@@ -1,3 +1 @@
1
1
  # @evercam/api
2
-
3
- ??
@@ -1,4 +1,5 @@
1
1
  import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Project, Hdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, ProgressPhoto, 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, PaginationParams, GateReportProject, KitQueryParams, KitCreatePayload, AdminKit, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, EntityStatsQueryParams, EntityStat, UserSession, 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 } from "@evercam/api/types";
2
+ import { KitMetricId } from "@evercam/api/types";
2
3
  export declare const AdminApi: {
3
4
  mediaHub: {
4
5
  getAllMedia(params: {
@@ -107,6 +108,12 @@ export declare const AdminApi: {
107
108
  createKit(params: KitCreatePayload): Promise<AdminKit>;
108
109
  updateKit(id: string, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
109
110
  deleteKit(id: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
111
+ getKitStats({ kitId, metric, fromDate, toDate, }: {
112
+ kitId: number;
113
+ metric: KitMetricId;
114
+ fromDate: string;
115
+ toDate: string;
116
+ }): Promise<import("axios").AxiosResponse<any, any>>;
110
117
  };
111
118
  logs: {
112
119
  getAllCamerasStatusLogs(params: {
@@ -117,6 +124,7 @@ export declare const AdminApi: {
117
124
  getCameraLogs(cameraId: string, payload: {
118
125
  params: CameraAuditLogsQueryParams;
119
126
  }): Promise<PaginatedItems<CameraAuditLog[]>>;
127
+ togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
120
128
  };
121
129
  nvrs: {
122
130
  getNvrs(params: {
@@ -1,4 +1,4 @@
1
- import type { 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 } from "@evercam/api/types";
1
+ import type { 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 } from "@evercam/api/types";
2
2
  import type { AxiosPromise, AxiosRequestConfig } from "axios";
3
3
  export declare const getAiApiUrl: () => string | null | undefined;
4
4
  export declare const AiApi: {
@@ -70,4 +70,7 @@ export declare const AiApi: {
70
70
  updatedBy: string;
71
71
  }): Promise<import("axios").AxiosResponse<any, any>>;
72
72
  };
73
+ detections: {
74
+ getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
75
+ };
73
76
  };
@@ -1,4 +1,5 @@
1
- import type { MilesightCameraVideoConfig, MilesightRequestParams, MilesightCameraNetworkConfiguration, MilesightCameraSystemSettings, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, CopilotConversation, CopilotMessage, PaginatedItems, CopilotMessageStep, DetectionsFilters, TrackingsByLabel, CameraExid, CountsParams, CountByPeriod, DetectionsPresenceByLabel, FeedbackPayload, LabsPaginationParams, SegmentsPresenceByLabel, SegmentsByLabel, SegmentsSimilaritySearchParams, LuminanceReading, GrafanaKitMetrics, GrafanaMetricId } from "@evercam/api/types";
1
+ import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountByPeriod, CountsParams, DetectionsFilters, DetectionsPresenceByLabel, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, PaginatedItems, SegmentsByLabel, SegmentsPresenceByLabel, TrackingsByLabel } from "@evercam/api/types";
2
+ import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
2
3
  export declare function getLabsBaseUrl(): string | null | undefined;
3
4
  export declare const EvercamLabsApi: {
4
5
  milesight: {
@@ -26,7 +27,6 @@ export declare const EvercamLabsApi: {
26
27
  getDetectionsPresenceDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<DetectionsPresenceByLabel>;
27
28
  getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
28
29
  getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
29
- getSimilarSegmentsInTimeIntervals({ cameraExid, segmentId, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
30
30
  };
31
31
  googleCloudStorage: {
32
32
  listFiles(prefix?: string): Promise<{
@@ -45,6 +45,6 @@ export declare const EvercamLabsApi: {
45
45
  }): Promise<LuminanceReading[]>;
46
46
  };
47
47
  kits: {
48
- getMetrics(kitId: string, metrics: GrafanaMetricId[]): Promise<GrafanaKitMetrics>;
48
+ getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
49
49
  };
50
50
  };