@evercam/api 1.0.0-ba679d695 → 1.0.0-babd9ee76
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 +4 -1
- package/dist/api/api/adminApi.d.ts +7 -5
- package/dist/api/api/aiApi.d.ts +9 -40
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/client/axios.d.ts +1 -0
- package/dist/api/api/evercamLabsApi.d.ts +3 -1
- package/dist/api/api/ingestApi.d.ts +1 -0
- package/dist/api/api/ptzApi.d.ts +4 -0
- package/dist/api/types/360.d.ts +130 -3
- package/dist/api/types/analytics.d.ts +1 -1
- package/dist/api/types/authz.d.ts +1 -0
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/camera.d.ts +8 -6
- package/dist/api/types/gateReport.d.ts +4 -101
- package/dist/api/types/kit.d.ts +19 -0
- package/dist/api/types/project.d.ts +5 -1
- package/dist/api/types/router.d.ts +19 -0
- package/dist/api/types/shares.d.ts +5 -5
- package/dist/api/types/siteAnalytics.d.ts +111 -27
- package/dist/index.js +320 -360
- 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/imagePlayer.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const getFirebaseDbApi: () => string | null | undefined;
|
|
3
4
|
export declare const getFirebaseStorageUrl: () => string | null | undefined;
|
|
4
5
|
export declare const getFirebaseStorageToken: () => string | null | undefined;
|
|
@@ -8,7 +9,9 @@ export declare const _3dFirebaseApi: {
|
|
|
8
9
|
getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
|
|
9
10
|
};
|
|
10
11
|
_360: {
|
|
11
|
-
getProjectInfo(projectExid: ProjectExid
|
|
12
|
+
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}): Promise<_360ProjectJsonResponse>;
|
|
12
15
|
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
|
|
13
16
|
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<any>;
|
|
14
17
|
getGPXText(url: string): Promise<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@/types/hdd";
|
|
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, SsoProvider, SsoUpdatePayload, SsoCreatePayload, 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,
|
|
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, SsoProvider, SsoUpdatePayload, SsoCreatePayload, 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, 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, PaginationParams, KitStorageRequestPayload, CompanyUser, CompanyProject, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams } from "@evercam/api/types";
|
|
3
3
|
import { KitMetricId } from "@evercam/api/types";
|
|
4
4
|
import { Tag } from "@/types/tag";
|
|
5
5
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -154,6 +154,10 @@ export declare const AdminApi: {
|
|
|
154
154
|
params?: KitFootageRequestPayload;
|
|
155
155
|
}): Promise<KitFootage[]>;
|
|
156
156
|
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
157
|
+
getBoxes(params: {
|
|
158
|
+
params: Partial<KitBoxQueryParams>;
|
|
159
|
+
}): Promise<PaginatedItems<KitBox>>;
|
|
160
|
+
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
157
161
|
};
|
|
158
162
|
logs: {
|
|
159
163
|
getAllCamerasStatusLogs(params: {
|
|
@@ -161,9 +165,7 @@ export declare const AdminApi: {
|
|
|
161
165
|
}): Promise<{
|
|
162
166
|
data: CameraLog[];
|
|
163
167
|
}>;
|
|
164
|
-
getCameraLogs(cameraId: string,
|
|
165
|
-
params: CameraAuditLogsQueryParams;
|
|
166
|
-
}): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
168
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
167
169
|
togglePinNote(id: string): Promise<PaginatedItems<CameraAuditLog[]>>;
|
|
168
170
|
};
|
|
169
171
|
nvrs: {
|
|
@@ -269,7 +271,7 @@ export declare const AdminApi: {
|
|
|
269
271
|
}>;
|
|
270
272
|
};
|
|
271
273
|
shares: {
|
|
272
|
-
|
|
274
|
+
getInvites(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
273
275
|
getShares(params: {
|
|
274
276
|
params: Partial<ShareQueryParams>;
|
|
275
277
|
}): Promise<PaginatedItems<AdminShare[]>>;
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, Schedule, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload } 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;
|
|
5
5
|
export declare const AiApi: {
|
|
6
|
-
analyticsParameters: {
|
|
7
|
-
getParameters(cameraId: CameraExid, params?: Record<string, unknown>): Promise<AnalyticsParameters>;
|
|
8
|
-
createParameters(params: Omit<AnalyticsParameters, "id">): Promise<AnalyticsParameters>;
|
|
9
|
-
updateParameters({ updatedBy, id, ...payload }: Partial<AnalyticsParameters> & {
|
|
10
|
-
updatedBy: string;
|
|
11
|
-
}): Promise<AnalyticsParameters>;
|
|
12
|
-
};
|
|
13
6
|
anpr: {
|
|
14
7
|
exportAnprLegacyEvents(projectExid: ProjectExid, params: AnprQueryParams): AxiosPromise<any>;
|
|
15
8
|
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
@@ -19,25 +12,13 @@ export declare const AiApi: {
|
|
|
19
12
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
20
13
|
};
|
|
21
14
|
gateReport: {
|
|
22
|
-
getLastVerified(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
deleteEvent(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
dismissEvents(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
15
|
exportEvents(projectExid: string, params: EventsExportRequestParameters): AxiosPromise<any>;
|
|
26
16
|
exportEventsProgress(projectExid: string, params: {
|
|
27
17
|
exportDate: string;
|
|
28
18
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
19
|
generateAnprThumbnail(cameraExid: CameraExid, captureTime: DateTime): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
getAllEvents(projectExid: ProjectExid, params: EventsRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventsResponsePayload>;
|
|
31
|
-
getEventCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
32
20
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
33
|
-
updateEventById(eventId: number, { updatedBy, payload, }: {
|
|
34
|
-
updatedBy: string;
|
|
35
|
-
payload: Partial<EventUpdateRequestPayload>;
|
|
36
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
21
|
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
-
regenerateThumbnail(id: number, params: {
|
|
39
|
-
cameraExid: string;
|
|
40
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
22
|
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
23
|
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
43
24
|
cameraExid: string;
|
|
@@ -45,15 +26,8 @@ export declare const AiApi: {
|
|
|
45
26
|
eventTime: DateTime;
|
|
46
27
|
token: string;
|
|
47
28
|
}): string;
|
|
48
|
-
getEventSnapshot({ cameraExid, eventType, eventTime, token, }: {
|
|
49
|
-
cameraExid: string;
|
|
50
|
-
eventType: GateReportEventType;
|
|
51
|
-
eventTime: DateTime;
|
|
52
|
-
token: string;
|
|
53
|
-
}): string;
|
|
54
29
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
55
30
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
56
|
-
getGateReportApplications(projectExid: string, anprCameraExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
31
|
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
32
|
};
|
|
59
33
|
brainTool: {
|
|
@@ -85,26 +59,21 @@ export declare const AiApi: {
|
|
|
85
59
|
siteAnalytics: {
|
|
86
60
|
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
87
61
|
cameraExid: CameraExid;
|
|
88
|
-
payload:
|
|
89
|
-
fromDate
|
|
90
|
-
toDate
|
|
62
|
+
payload: SmartSearchBackendQuery;
|
|
63
|
+
fromDate: string;
|
|
64
|
+
toDate: string;
|
|
91
65
|
page?: number;
|
|
92
66
|
pageSize?: number;
|
|
93
67
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
|
-
|
|
68
|
+
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
69
|
+
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
70
|
+
saveQuery(payload: SmartSearchBackendQueryPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
95
71
|
getQueries(cameraExid: CameraExid, params: {
|
|
96
72
|
name?: string;
|
|
97
73
|
}): Promise<SavedQuery[]>;
|
|
98
|
-
getQueryById(cameraExid: CameraExid, queryId: number): Promise<
|
|
74
|
+
getQueryById(cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
99
75
|
updateQuery(cameraExid: CameraExid, queryId: number, payload: Partial<SavedQuery>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
100
76
|
deleteQuery(cameraExid: CameraExid, queryId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
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
77
|
exportResultsData({ cameraExid, fromDate, toDate, query, fileType, directDownload, payload, }: {
|
|
109
78
|
cameraExid: CameraExid;
|
|
110
79
|
fromDate?: DateType;
|
|
@@ -113,7 +82,7 @@ export declare const AiApi: {
|
|
|
113
82
|
fileType: DownloadFileType;
|
|
114
83
|
directDownload?: boolean;
|
|
115
84
|
payload: {
|
|
116
|
-
req:
|
|
85
|
+
req: SmartSearchBackendQuery;
|
|
117
86
|
timeSchedule?: Schedule;
|
|
118
87
|
columns?: string[];
|
|
119
88
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload } from "@/types";
|
|
1
|
+
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@/types";
|
|
2
2
|
export declare const AuthzApi: {
|
|
3
3
|
roles: {
|
|
4
4
|
get(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -11,10 +11,12 @@ export declare const AuthzApi: {
|
|
|
11
11
|
getRoleUsers(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
12
|
assignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
13
|
unassignUsers(id: number, emails: Array<string>, resource_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
-
getUserRoles(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
15
|
};
|
|
16
16
|
projectRoles: {
|
|
17
|
-
get(projectExid: ProjectExid): Promise<
|
|
17
|
+
get(projectExid: ProjectExid): Promise<{
|
|
18
|
+
roles: Role[];
|
|
19
|
+
}>;
|
|
18
20
|
create(projectExid: ProjectExid, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
19
21
|
update(projectExid: ProjectExid, roleId: number, params: ProjectRoleRequestPayload): Promise<ProjectResourceRole>;
|
|
20
22
|
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
4
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
5
|
export declare const EvercamLabsApi: {
|
|
5
6
|
posthog: {
|
|
@@ -19,6 +20,7 @@ export declare const EvercamLabsApi: {
|
|
|
19
20
|
submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
21
|
};
|
|
21
22
|
siteAnalytics: {
|
|
23
|
+
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: AxiosRequestConfig): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
22
24
|
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
23
25
|
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
24
26
|
};
|
|
@@ -58,6 +58,7 @@ export declare const IngestApi: {
|
|
|
58
58
|
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
59
59
|
getDrawings(payload: {
|
|
60
60
|
params: DrawingsRequestPayload;
|
|
61
|
+
config: AxiosRequestConfig;
|
|
61
62
|
}, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
63
|
getDrawingById(id: number, projectExid: string, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
64
|
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload, version?: IngestVersions): Promise<import("axios").AxiosResponse<any, any>>;
|
package/dist/api/api/ptzApi.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare const PtzApi: {
|
|
|
21
21
|
presetId: string | number;
|
|
22
22
|
presetName: string;
|
|
23
23
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
+
updateHome({ cameraExid, presetName, }: {
|
|
25
|
+
cameraExid: string;
|
|
26
|
+
presetName: string;
|
|
27
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
28
|
delete({ cameraExid, presetId, }: {
|
|
25
29
|
cameraExid: string;
|
|
26
30
|
presetId: string | number;
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -3,14 +3,123 @@ export type _360CameraParams = {
|
|
|
3
3
|
azimuthAngle: number;
|
|
4
4
|
polarAngle: number;
|
|
5
5
|
};
|
|
6
|
+
export type _360Vector3D = {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
z: number;
|
|
10
|
+
};
|
|
11
|
+
export type _360Geolocation = {
|
|
12
|
+
latitude: number;
|
|
13
|
+
longitude: number;
|
|
14
|
+
};
|
|
15
|
+
export type _360CameraRotation = {
|
|
16
|
+
azimuthAngle: number;
|
|
17
|
+
polarAngle: number;
|
|
18
|
+
};
|
|
19
|
+
export type _360Marker3D = {
|
|
20
|
+
cameraPosition: _360Vector3D;
|
|
21
|
+
geolocation: _360Geolocation;
|
|
22
|
+
nextRoomId: _360MakerId;
|
|
23
|
+
position: _360Vector3D;
|
|
24
|
+
rotation: {
|
|
25
|
+
_order: "XYZ" | string;
|
|
26
|
+
_x: number;
|
|
27
|
+
_y: number;
|
|
28
|
+
_z: number;
|
|
29
|
+
isEuler: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type _360Tag = {
|
|
33
|
+
id: string;
|
|
34
|
+
tagType: string;
|
|
35
|
+
comment: string;
|
|
36
|
+
creationDate: number;
|
|
37
|
+
currentRoom: _360MakerId;
|
|
38
|
+
position: _360Vector3D;
|
|
39
|
+
cameraRotation: _360CameraRotation;
|
|
40
|
+
};
|
|
41
|
+
export type _360FloorId = string | number;
|
|
42
|
+
export type _360Walk = Record<_360FloorId, _360Floor>;
|
|
43
|
+
export type _360MakerId = string;
|
|
6
44
|
export type _360Floor = {
|
|
7
|
-
|
|
45
|
+
_3DMarkers: _360Marker3D[];
|
|
46
|
+
cameraRotation: _360CameraRotation;
|
|
47
|
+
fbxModel: string;
|
|
48
|
+
initialMarker: _360MakerId;
|
|
49
|
+
modelViewerFeatureFlag: boolean;
|
|
50
|
+
route: {
|
|
51
|
+
cameraHeadingOffset: string;
|
|
52
|
+
overlayID: number;
|
|
53
|
+
track: string;
|
|
54
|
+
};
|
|
55
|
+
sceneScale: number;
|
|
56
|
+
steps: number;
|
|
57
|
+
tags: Record<string, _360Tag>;
|
|
58
|
+
};
|
|
59
|
+
export type _360WalkV2 = {
|
|
60
|
+
archive: string;
|
|
61
|
+
date: string;
|
|
62
|
+
deviceSerial: string | null;
|
|
63
|
+
endPosition: unknown | null;
|
|
64
|
+
floor: string;
|
|
65
|
+
floorId: number;
|
|
66
|
+
id: number;
|
|
67
|
+
images: string[];
|
|
68
|
+
insertedAt: string;
|
|
69
|
+
mobileAudios: string[];
|
|
70
|
+
mobileAudiosArchive: string;
|
|
71
|
+
mobilePhotos: string[];
|
|
72
|
+
mobilePhotosArchive: string;
|
|
73
|
+
model: string;
|
|
8
74
|
name: string;
|
|
75
|
+
processingStatus: string;
|
|
76
|
+
projectId: string;
|
|
77
|
+
report: string;
|
|
78
|
+
route: unknown | null;
|
|
79
|
+
startPosition: unknown | null;
|
|
80
|
+
tusLinks: unknown | null;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
uploadedBy: string;
|
|
83
|
+
videoArchive: string;
|
|
84
|
+
videos: string[];
|
|
85
|
+
};
|
|
86
|
+
export type _360FloorV2 = {
|
|
87
|
+
id: _360FloorId;
|
|
88
|
+
assets: _360WalkV2[];
|
|
89
|
+
projectId: string;
|
|
90
|
+
name: string;
|
|
91
|
+
mapStyle: string;
|
|
92
|
+
hasOverlay: boolean;
|
|
93
|
+
isCalibrated: boolean;
|
|
94
|
+
createdBy: string | null;
|
|
95
|
+
overlayPosition: {
|
|
96
|
+
northEast: {
|
|
97
|
+
lat: number;
|
|
98
|
+
lng: number;
|
|
99
|
+
};
|
|
100
|
+
northWest: {
|
|
101
|
+
lat: number;
|
|
102
|
+
lng: number;
|
|
103
|
+
};
|
|
104
|
+
southEast: {
|
|
105
|
+
lat: number;
|
|
106
|
+
lng: number;
|
|
107
|
+
};
|
|
108
|
+
southWest: {
|
|
109
|
+
lat: number;
|
|
110
|
+
lng: number;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
insertedAt: string;
|
|
114
|
+
updatedAt: string;
|
|
9
115
|
};
|
|
10
116
|
export type _360Scene = {
|
|
11
117
|
date: string;
|
|
12
|
-
dateID:
|
|
13
|
-
floors:
|
|
118
|
+
dateID: number;
|
|
119
|
+
floors: {
|
|
120
|
+
floorID: _360FloorId;
|
|
121
|
+
name: string;
|
|
122
|
+
}[];
|
|
14
123
|
polarAngle: number;
|
|
15
124
|
azimuthAngle: number;
|
|
16
125
|
};
|
|
@@ -19,6 +128,24 @@ export type _360SceneRoute = {
|
|
|
19
128
|
overlayID?: number;
|
|
20
129
|
track?: string;
|
|
21
130
|
};
|
|
131
|
+
export type _360FullProject = {
|
|
132
|
+
dates: _360SceneWithFloors[];
|
|
133
|
+
integrationType: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
projectName: string;
|
|
136
|
+
providerID: string;
|
|
137
|
+
providerPrefix: string;
|
|
138
|
+
providerSuffix: string;
|
|
139
|
+
timeline: string;
|
|
140
|
+
uniqueId: string;
|
|
141
|
+
};
|
|
142
|
+
export type _360FullFloor = _360Floor & {
|
|
143
|
+
id: _360FloorId;
|
|
144
|
+
name: string;
|
|
145
|
+
};
|
|
146
|
+
export type _360SceneWithFloors = _360Scene & {
|
|
147
|
+
floors: _360FullFloor[];
|
|
148
|
+
};
|
|
22
149
|
export type _360ProjectJsonResponse = {
|
|
23
150
|
dates: _360Scene[];
|
|
24
151
|
[key: string]: any;
|
|
@@ -550,7 +550,7 @@ export declare enum AnalyticsEvent {
|
|
|
550
550
|
SmartSearchFilterSavedQueries = "SmartSearch-FilterSavedQueries",
|
|
551
551
|
SmartSearchThumbnailHover = "SmartSearch-ThumbnailHover",
|
|
552
552
|
SmartSearchThumbnailError = "SmartSearch-ThumbnailError",
|
|
553
|
-
|
|
553
|
+
SmartSearchViewSelected = "SmartSearch-ViewSelected",
|
|
554
554
|
SmartSearchOptionClicked = "SmartSearch-OptionClicked",
|
|
555
555
|
SmartSearchEditQuery = "SmartSearch-EditQuery",
|
|
556
556
|
SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
|
|
@@ -155,6 +155,7 @@ export type AdminCamera = {
|
|
|
155
155
|
userId: number;
|
|
156
156
|
zohoId: string;
|
|
157
157
|
thumbnailUrl?: string;
|
|
158
|
+
sharedWithConstruction: boolean;
|
|
158
159
|
};
|
|
159
160
|
export type CameraMapMarker = {
|
|
160
161
|
isOnline: boolean;
|
|
@@ -177,13 +178,14 @@ export declare enum CameraStatus {
|
|
|
177
178
|
UnderMaintenance = "under_maintenance",
|
|
178
179
|
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
179
180
|
}
|
|
180
|
-
export declare enum
|
|
181
|
-
High = "
|
|
182
|
-
Moderate = "
|
|
183
|
-
Low = "
|
|
184
|
-
NoChange = "
|
|
185
|
-
Default = "
|
|
181
|
+
export declare enum IntensityChange {
|
|
182
|
+
High = "High",
|
|
183
|
+
Moderate = "Moderate",
|
|
184
|
+
Low = "Low",
|
|
185
|
+
NoChange = "No change",
|
|
186
|
+
Default = "Default"
|
|
186
187
|
}
|
|
188
|
+
export declare const IntensityChangeColorMap: Record<IntensityChange, string>;
|
|
187
189
|
export declare enum CameraFeatureFlag {
|
|
188
190
|
EdgeVideo = "edge_video",
|
|
189
191
|
BimCompare = "bim_compare",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid,
|
|
1
|
+
import { AnprDirection, CameraExid, Date_HH, Date_YYYY, Date_YYYY_MM, Date_YYYY_MM_DD, DateTime, DateTimeSpaceSeparated, DateType, PaginatedItems, PaginationParams, ProjectExid, Timestamp } from "@/types";
|
|
2
2
|
export declare enum GateReportDetectionType {
|
|
3
3
|
Auto = "auto",
|
|
4
4
|
Manual = "manual",
|
|
@@ -59,16 +59,19 @@ export declare enum DetectionLabel {
|
|
|
59
59
|
ConcreteBlock = "concrete_block",
|
|
60
60
|
ConcretePipe = "concrete_pipe",
|
|
61
61
|
ConcreteSlab = "concrete_slab",
|
|
62
|
+
Door = "door",
|
|
62
63
|
PlasticWrap = "plastic_wrap",
|
|
63
64
|
ContainerOffice = "container_office",
|
|
64
65
|
ElectricalPole = "electrical_pole",
|
|
65
66
|
ElectricalBox = "electrical_box",
|
|
66
67
|
FireHydrant = "fire_hydrant",
|
|
68
|
+
FireExtinguisher = "fire-extinguisher",
|
|
67
69
|
HoseReel = "hose_reel",
|
|
68
70
|
Ladder = "ladder",
|
|
69
71
|
MetalBeam = "metal_beam",
|
|
70
72
|
MetalPipe = "metal_pipe",
|
|
71
73
|
Pallet = "pallet",
|
|
74
|
+
Person = "person",
|
|
72
75
|
Pillar = "pillar",
|
|
73
76
|
PlasticBin = "plastic_bin",
|
|
74
77
|
PlasticBucket = "plastic_bucket",
|
|
@@ -214,24 +217,6 @@ export type EventCountResponsePayload = {
|
|
|
214
217
|
months?: MonthlyEventCount[];
|
|
215
218
|
years?: YearlyEventCount[];
|
|
216
219
|
};
|
|
217
|
-
export type ProcessedDaysRequestPayload = {
|
|
218
|
-
apiId?: string;
|
|
219
|
-
apiKey?: string;
|
|
220
|
-
isPublic?: Boolean;
|
|
221
|
-
};
|
|
222
|
-
export type EventsRequestPayload = {
|
|
223
|
-
apiId?: string;
|
|
224
|
-
apiKey?: string;
|
|
225
|
-
camerasExid?: CameraExid[];
|
|
226
|
-
cameras?: string[];
|
|
227
|
-
eventType?: GateReportEventType;
|
|
228
|
-
fromDate?: DateTime;
|
|
229
|
-
isPublic?: boolean;
|
|
230
|
-
toDate?: DateTime;
|
|
231
|
-
truckTypes?: GateReportVehicleType[];
|
|
232
|
-
vehicleTypes?: string[];
|
|
233
|
-
} & PaginationParams;
|
|
234
|
-
export type EventsResponsePayload = PaginatedItems<GateReportEvent>;
|
|
235
220
|
export declare enum GateReportDataSource {
|
|
236
221
|
Anpr = "anpr",
|
|
237
222
|
Events = "events"
|
|
@@ -311,52 +296,6 @@ export type GateReportCamera = {
|
|
|
311
296
|
last_published_day: DateType;
|
|
312
297
|
last_processed_day: DateType;
|
|
313
298
|
};
|
|
314
|
-
export type GateReportProject = {
|
|
315
|
-
exid: string;
|
|
316
|
-
name: string;
|
|
317
|
-
status: string;
|
|
318
|
-
featureFlags: ProjectFeatureFlag;
|
|
319
|
-
cameras: GateReportCamera[];
|
|
320
|
-
};
|
|
321
|
-
export type AnalyticsParameters = {
|
|
322
|
-
id: number;
|
|
323
|
-
cameraex: string;
|
|
324
|
-
processingType: string;
|
|
325
|
-
startDate: DateTime;
|
|
326
|
-
endDate: DateTime;
|
|
327
|
-
skipWeekend: boolean;
|
|
328
|
-
hourSiteOpening: number;
|
|
329
|
-
hourSiteClosure: number;
|
|
330
|
-
gateReportActive: boolean;
|
|
331
|
-
countingActive: boolean;
|
|
332
|
-
queueSystem: string;
|
|
333
|
-
reprocess: boolean;
|
|
334
|
-
framesToSkip: number;
|
|
335
|
-
detection_model: string;
|
|
336
|
-
detectionThreshold: number;
|
|
337
|
-
printLogsFrame: number;
|
|
338
|
-
crossingVectorAngleLimit: number;
|
|
339
|
-
minTruckLife: number;
|
|
340
|
-
insideMinTime: number;
|
|
341
|
-
trackerMaxAge: number;
|
|
342
|
-
trackerMinHit: number;
|
|
343
|
-
snapshotUpload: boolean;
|
|
344
|
-
snapshotPerSecond: number;
|
|
345
|
-
detectionClasses: string;
|
|
346
|
-
deepEventEndpointUrl: string;
|
|
347
|
-
timestampCalculation: string;
|
|
348
|
-
matchingEmbeddedDstCoeff: number;
|
|
349
|
-
matchingTimeCoeff: number;
|
|
350
|
-
matchingQueueOrderCoeff: number;
|
|
351
|
-
rabbitmqServerUrl: string;
|
|
352
|
-
rabbitmqEventsQueue: string;
|
|
353
|
-
rabbitmqEventsExchange: string;
|
|
354
|
-
rabbitmqCountingQueue: string;
|
|
355
|
-
rabbitmqCountingExchange: string;
|
|
356
|
-
dangerZones: boolean;
|
|
357
|
-
workflows: boolean;
|
|
358
|
-
linkedAnprCameras: Record<string, unknown>;
|
|
359
|
-
};
|
|
360
299
|
export type VerifiedDaysQueryParams = PaginationParams & {
|
|
361
300
|
projectExid: ProjectExid;
|
|
362
301
|
camerasExid: CameraExid[];
|
|
@@ -366,30 +305,6 @@ export type VerifiedDaysQueryParams = PaginationParams & {
|
|
|
366
305
|
updatedAt: DateTime[];
|
|
367
306
|
day: string;
|
|
368
307
|
};
|
|
369
|
-
export type EventUpdateRequestPayload = {
|
|
370
|
-
cameraex: string;
|
|
371
|
-
roiId: number;
|
|
372
|
-
eventType: string;
|
|
373
|
-
eventTime: "2024-12-13T14:25:58.066Z";
|
|
374
|
-
truckType: string;
|
|
375
|
-
isPublic: boolean;
|
|
376
|
-
boundingBox: {
|
|
377
|
-
additionalProp1: number;
|
|
378
|
-
additionalProp2: number;
|
|
379
|
-
additionalProp3: number;
|
|
380
|
-
};
|
|
381
|
-
valid: boolean;
|
|
382
|
-
loadState: string;
|
|
383
|
-
embeddingId: number;
|
|
384
|
-
embedding: number[];
|
|
385
|
-
similarityDst: number;
|
|
386
|
-
detectionType: string;
|
|
387
|
-
trackingId: number;
|
|
388
|
-
deliveriesId: number;
|
|
389
|
-
edited: boolean;
|
|
390
|
-
isDeleted: boolean;
|
|
391
|
-
modelVersion: string;
|
|
392
|
-
};
|
|
393
308
|
export type VerifyDayUpdateRequestPayload = {
|
|
394
309
|
camerasExid: string[];
|
|
395
310
|
projectExid: string;
|
|
@@ -402,18 +317,6 @@ export type ProcessedDaysQueryParams = {
|
|
|
402
317
|
isPublic: boolean;
|
|
403
318
|
eventType: GateReportEventType;
|
|
404
319
|
};
|
|
405
|
-
export type SecurityMeasurementQueryParams = {
|
|
406
|
-
cameraex: string;
|
|
407
|
-
timestamp: DateTime;
|
|
408
|
-
prompt: string;
|
|
409
|
-
snapshotUrl: string;
|
|
410
|
-
};
|
|
411
|
-
export type ObjectDetectionQueryParams = {
|
|
412
|
-
cameraex: string;
|
|
413
|
-
timestamp: DateTime;
|
|
414
|
-
base64Img: string;
|
|
415
|
-
snapshotUrl: string;
|
|
416
|
-
};
|
|
417
320
|
export type RoisQueryParams = {
|
|
418
321
|
cameraExid: string;
|
|
419
322
|
id: number;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -355,3 +355,22 @@ export type KitAlarmItem = {
|
|
|
355
355
|
startDate: DateTime;
|
|
356
356
|
endDate: DateTime | null;
|
|
357
357
|
};
|
|
358
|
+
export type KitBox = {
|
|
359
|
+
id: string;
|
|
360
|
+
gatewaySerial: string;
|
|
361
|
+
gatewayMac: string;
|
|
362
|
+
gatewayConfig: Record<string, unknown> | null;
|
|
363
|
+
insertedAt: DateTime;
|
|
364
|
+
updatedAt: DateTime;
|
|
365
|
+
};
|
|
366
|
+
export type KitBoxCreatePayload = {
|
|
367
|
+
id?: string;
|
|
368
|
+
gatewaySerial: string;
|
|
369
|
+
gatewayMac: string;
|
|
370
|
+
gatewayConfig?: Record<string, unknown>;
|
|
371
|
+
};
|
|
372
|
+
export type KitBoxQueryParams = PaginationParams & {
|
|
373
|
+
id: string;
|
|
374
|
+
gatewaySerial: string;
|
|
375
|
+
gatewayMac: string;
|
|
376
|
+
};
|
|
@@ -53,7 +53,6 @@ export declare enum ProjectFeatureFlag {
|
|
|
53
53
|
ThreeSixtyView = "360_view",
|
|
54
54
|
NdaMc = "NDA/MC",
|
|
55
55
|
GateReport = "gate_report",
|
|
56
|
-
GateReportAutoVerify = "auto_publish",
|
|
57
56
|
GateReportMotionDetection = "motion_detection",
|
|
58
57
|
FullEmpty = "full_empty",
|
|
59
58
|
MediaHubSharing = "archives_sharing",
|
|
@@ -140,6 +139,11 @@ export type ProjectMember = {
|
|
|
140
139
|
email: string;
|
|
141
140
|
fullname: string;
|
|
142
141
|
role: ProjectRole;
|
|
142
|
+
permissions?: string[];
|
|
143
|
+
subRoles?: Array<{
|
|
144
|
+
resourceId: string;
|
|
145
|
+
roleId: number;
|
|
146
|
+
}>;
|
|
143
147
|
};
|
|
144
148
|
export type ProjectInvite = {
|
|
145
149
|
id?: string;
|
|
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
|
|
|
47
47
|
Active = "active",
|
|
48
48
|
Inactive = "inactive"
|
|
49
49
|
}
|
|
50
|
+
export declare enum RouterScanInputMode {
|
|
51
|
+
Qr = "qr",
|
|
52
|
+
Manual = "manual"
|
|
53
|
+
}
|
|
50
54
|
export type RouterQueryParams = PaginationParams & {
|
|
51
55
|
routerType: string;
|
|
52
56
|
vpnServer: string;
|
|
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
|
|
|
65
69
|
vpnServer?: string;
|
|
66
70
|
netbirdUrl?: string;
|
|
67
71
|
};
|
|
72
|
+
export type RouterQRScanResult = {
|
|
73
|
+
raw: string;
|
|
74
|
+
timestamp: string;
|
|
75
|
+
sn?: string;
|
|
76
|
+
m?: string;
|
|
77
|
+
u?: string;
|
|
78
|
+
pw?: string;
|
|
79
|
+
t?: string;
|
|
80
|
+
s?: string;
|
|
81
|
+
p?: string;
|
|
82
|
+
i?: string;
|
|
83
|
+
b?: string;
|
|
84
|
+
boxId?: string;
|
|
85
|
+
isDuplicate?: boolean;
|
|
86
|
+
};
|