@evercam/api 1.0.0-0088ae60c → 1.0.0-01249112e
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 +3 -5
- package/dist/api/api/adminApi.d.ts +15 -12
- package/dist/api/api/aiApi.d.ts +32 -1
- package/dist/api/api/evercamApi.d.ts +6 -0
- package/dist/api/api/ingestApi.d.ts +3 -2
- package/dist/api/types/360.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +1 -0
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/axios.d.ts +0 -1
- package/dist/api/types/drone.d.ts +6 -5
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/recording.d.ts +0 -7
- package/dist/api/types/siteAnalytics.d.ts +1 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/user.d.ts +0 -1
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +650 -512
- 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/components.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch,
|
|
1
|
+
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getFirebaseDbApi: () => string;
|
|
4
4
|
export declare const getFirebaseStorageUrl: () => string;
|
|
@@ -7,7 +7,6 @@ export declare const getForgeTokenServerUrl: () => string;
|
|
|
7
7
|
export declare const _3dFirebaseApi: {
|
|
8
8
|
drone: {
|
|
9
9
|
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
|
|
10
|
-
getTransformInfo(projectExid: ProjectExid): Promise<DroneProjectTransform>;
|
|
11
10
|
getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
12
11
|
patchTags({ projectId, tags, }: {
|
|
13
12
|
projectId: ProjectExid;
|
|
@@ -146,13 +145,12 @@ export declare const _3dFirebaseApi: {
|
|
|
146
145
|
};
|
|
147
146
|
siteView: {
|
|
148
147
|
getCamerasList(): Promise<SiteViewCameraListItem[]>;
|
|
149
|
-
updateCamerasList(items: Record<
|
|
148
|
+
updateCamerasList(items: Record<number, SiteViewCameraListItem>): Promise<void>;
|
|
150
149
|
updateCamerasListItem(trueIndex: number, item: SiteViewCameraListItem): Promise<void>;
|
|
151
|
-
updateProjectData({ viewerType, projectId, data,
|
|
150
|
+
updateProjectData({ viewerType, projectId, data, }: {
|
|
152
151
|
viewerType: SiteViewerType;
|
|
153
152
|
projectId: ProjectExid;
|
|
154
153
|
data: ForgeProjectData | ItwinProjectData | DroneProjectDataPatch;
|
|
155
|
-
subPath?: string;
|
|
156
154
|
}): Promise<void>;
|
|
157
155
|
deleteProjectData(viewerType: SiteViewerType, projectId: ProjectExid): Promise<void>;
|
|
158
156
|
readAllData(dbLink: string): Promise<Record<string, unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
2
2
|
import type { OAuthClient, OAuthClientWithSecret, AdminCreateOAuthClientPayload, UpdateOAuthClientPayload } from "@evercam/api/types/oauth";
|
|
3
|
-
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider } from "@evercam/api/types";
|
|
3
|
+
import type { CamerasResponsePayload, CameraUpdateRequestPayload, PaginatedItems, AdminCamera, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, StorageProvidersResponsePayload, MediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQyeryParams, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, SaveNotePayload, CameraNote, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, SnapshotExtractionType, KitQueryParams, KitCreatePayload, AdminKit, KitMetricStatsEntry, CameraLogsQueryParams, CameraLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, SiteVisitCamerasQueryParams, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectUsers, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistoryResponse, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, WidgetPayload, PaginationParams, KitStorageRequestPayload, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, Automation, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, Comment, KitFootage, KitAlarmItem, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, CheckCameraPortPayload, CameraStatusLog, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider, AnprExtraction, AnprExtractionCreatePayload } from "@evercam/api/types";
|
|
4
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
5
5
|
import { Tag } from "@evercam/api/types/tag";
|
|
6
6
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -102,11 +102,6 @@ export declare const AdminApi: {
|
|
|
102
102
|
}): Promise<{
|
|
103
103
|
success: true;
|
|
104
104
|
}>;
|
|
105
|
-
reSyncCompanies(params: {
|
|
106
|
-
companyIds: string[];
|
|
107
|
-
}): Promise<{
|
|
108
|
-
success: true;
|
|
109
|
-
}>;
|
|
110
105
|
};
|
|
111
106
|
sso: {
|
|
112
107
|
getProviders(params: {
|
|
@@ -138,15 +133,23 @@ export declare const AdminApi: {
|
|
|
138
133
|
extractions: {
|
|
139
134
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
140
135
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
141
|
-
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
142
|
-
type: SnapshotExtractionType;
|
|
143
|
-
}): Promise<{
|
|
144
|
-
status: string;
|
|
145
|
-
jpegs: number;
|
|
146
|
-
}>;
|
|
147
136
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
148
137
|
type: SnapshotExtractionType;
|
|
138
|
+
hardDelete?: boolean;
|
|
149
139
|
}): Promise<void>;
|
|
140
|
+
getExtraction(cameraExid: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
141
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<void>;
|
|
142
|
+
};
|
|
143
|
+
anprExtractions: {
|
|
144
|
+
list(cameraExid: string): Promise<{
|
|
145
|
+
data: AnprExtraction[];
|
|
146
|
+
}>;
|
|
147
|
+
create(cameraExid: string, payload: AnprExtractionCreatePayload): Promise<{
|
|
148
|
+
data: AnprExtraction;
|
|
149
|
+
}>;
|
|
150
|
+
delete(cameraExid: string, id: number): Promise<{
|
|
151
|
+
message: string;
|
|
152
|
+
}>;
|
|
150
153
|
};
|
|
151
154
|
kits: {
|
|
152
155
|
getAllKits(params: AxiosRequestConfig & {
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse } from "@evercam/api/types";
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportManagedApp, GateReportManagementListParams, UpdateGateReportAppPayload } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getAiApiUrl: () => string;
|
|
4
4
|
export declare const getAiApiUrlV2: () => string;
|
|
@@ -125,4 +125,35 @@ export declare const AiApi: {
|
|
|
125
125
|
fovChanges: {
|
|
126
126
|
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
127
127
|
};
|
|
128
|
+
prompts: {
|
|
129
|
+
list(params?: AiPromptQueryParams): Promise<AiPromptListResponse>;
|
|
130
|
+
get(promptId: number): Promise<AiPrompt>;
|
|
131
|
+
create(payload: AiPromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
132
|
+
update(promptId: number, payload: AiPromptUpdatePayload): Promise<AiPromptUpdateResponse>;
|
|
133
|
+
delete(promptId: number): Promise<AiPromptDeleteResponse>;
|
|
134
|
+
};
|
|
135
|
+
apiKeys: {
|
|
136
|
+
list(params?: AiApiKeyQueryParams): Promise<AiApiKey[]>;
|
|
137
|
+
purposes(): Promise<string[]>;
|
|
138
|
+
get(keyId: number): Promise<AiApiKey>;
|
|
139
|
+
create(payload: AiApiKeyCreatePayload): Promise<AiApiKeyCreateResponse>;
|
|
140
|
+
update(keyId: number, payload: AiApiKeyUpdatePayload): Promise<AiApiKeyUpdateResponse>;
|
|
141
|
+
delete(keyId: number, revoke?: boolean): Promise<AiApiKeyDeleteResponse>;
|
|
142
|
+
};
|
|
143
|
+
gateReportManagement: {
|
|
144
|
+
listApps(params?: GateReportManagementListParams): Promise<PaginatedItems<GateReportManagedApp>>;
|
|
145
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
146
|
+
listAppEvents(projectExid?: ProjectExid): Promise<APIEnvelope<GateReportAppEvents[]>>;
|
|
147
|
+
createApp(payload: CreateGateReportAppPayload): Promise<CreateGateReportAppResponse>;
|
|
148
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateGateReportAppPayload): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
149
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<{
|
|
150
|
+
deleted: boolean;
|
|
151
|
+
count: number;
|
|
152
|
+
message: string;
|
|
153
|
+
}>;
|
|
154
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
155
|
+
listCoolifyProjects(): Promise<APIEnvelope<CoolifyProjectOption[]>>;
|
|
156
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
157
|
+
listImageTags(): Promise<APIEnvelope<string[]>>;
|
|
158
|
+
};
|
|
128
159
|
};
|
|
@@ -7,6 +7,12 @@ export declare const EvercamApi: {
|
|
|
7
7
|
};
|
|
8
8
|
users: {
|
|
9
9
|
signup(payload: SignupUserRequestPayload): Promise<User>;
|
|
10
|
+
zohoAuthUrl(payload: {
|
|
11
|
+
firstname: string;
|
|
12
|
+
lastname: string;
|
|
13
|
+
}): Promise<{
|
|
14
|
+
url: string;
|
|
15
|
+
}>;
|
|
10
16
|
fetchAccessFeatures(email: string): Promise<{
|
|
11
17
|
features: UserFeatureFlag[];
|
|
12
18
|
}>;
|
|
@@ -27,7 +27,7 @@ export declare const IngestApi: {
|
|
|
27
27
|
verifyToken(projectId: string, params: {
|
|
28
28
|
token: string;
|
|
29
29
|
}): Promise<JsonObject>;
|
|
30
|
-
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<JsonObject>;
|
|
30
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload, ingestUrl?: string): Promise<JsonObject>;
|
|
31
31
|
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
32
32
|
isInspectionEnabled(projectId: string, params?: JsonObject): Promise<JsonObject>;
|
|
33
33
|
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
@@ -68,7 +68,8 @@ export declare const IngestApi: {
|
|
|
68
68
|
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
69
69
|
fetchDrawingOverlay(id: number, params: {
|
|
70
70
|
view: boolean;
|
|
71
|
-
|
|
71
|
+
thumbnail?: boolean;
|
|
72
|
+
}, onDownloadProgress?: (progress: ProgressEvent) => void): Promise<string>;
|
|
72
73
|
getFloorArchive(id: number): Promise<string>;
|
|
73
74
|
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
74
75
|
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare enum AiApp {
|
|
2
|
+
GateReport = "gate_report",
|
|
3
|
+
Ppe = "ppe",
|
|
4
|
+
SiteAnalytics = "site_analytics"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AiProvider {
|
|
7
|
+
Gemini = "gemini",
|
|
8
|
+
OpenAi = "openai",
|
|
9
|
+
Anthropic = "anthropic"
|
|
10
|
+
}
|
|
11
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
12
|
+
Create = "create",
|
|
13
|
+
Edit = "edit",
|
|
14
|
+
View = "view"
|
|
15
|
+
}
|
|
16
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
17
|
+
Create = "create",
|
|
18
|
+
Rotate = "rotate",
|
|
19
|
+
Rename = "rename"
|
|
20
|
+
}
|
|
21
|
+
export interface AiAppConfig {
|
|
22
|
+
bg: string;
|
|
23
|
+
fg: string;
|
|
24
|
+
border: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
28
|
+
export interface AiProviderConfig {
|
|
29
|
+
bg: string;
|
|
30
|
+
fg: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
34
|
+
export declare enum AiPromptModel {
|
|
35
|
+
Gemini3Pro = "gemini-3-pro",
|
|
36
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
37
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
38
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
39
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
40
|
+
Gpt5 = "gpt-5",
|
|
41
|
+
Gpt5Mini = "gpt-5-mini",
|
|
42
|
+
Gpt4o = "gpt-4o",
|
|
43
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
44
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
45
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
|
+
}
|
|
48
|
+
export interface AiPrompt {
|
|
49
|
+
id: number;
|
|
50
|
+
title: string | null;
|
|
51
|
+
purpose: string | null;
|
|
52
|
+
app: string | null;
|
|
53
|
+
model: string | null;
|
|
54
|
+
prompt: string;
|
|
55
|
+
outputSchema: Record<string, unknown> | null;
|
|
56
|
+
createdBy: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AiPromptCreatePayload {
|
|
61
|
+
title?: string | null;
|
|
62
|
+
purpose: string;
|
|
63
|
+
app: string;
|
|
64
|
+
model?: string | null;
|
|
65
|
+
prompt: string;
|
|
66
|
+
outputSchema?: Record<string, unknown> | null;
|
|
67
|
+
}
|
|
68
|
+
export interface AiPromptUpdatePayload {
|
|
69
|
+
title?: string | null;
|
|
70
|
+
purpose?: string;
|
|
71
|
+
app?: string;
|
|
72
|
+
model?: string | null;
|
|
73
|
+
prompt?: string;
|
|
74
|
+
outputSchema?: Record<string, unknown> | null;
|
|
75
|
+
}
|
|
76
|
+
export type AiPromptQueryParams = {
|
|
77
|
+
app?: string;
|
|
78
|
+
purpose?: string;
|
|
79
|
+
model?: string;
|
|
80
|
+
search?: string;
|
|
81
|
+
createdBy?: string;
|
|
82
|
+
page?: number;
|
|
83
|
+
limit?: number;
|
|
84
|
+
};
|
|
85
|
+
export interface AiPromptListResponse {
|
|
86
|
+
items: AiPrompt[];
|
|
87
|
+
total: number;
|
|
88
|
+
page: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
from: number;
|
|
91
|
+
to: number;
|
|
92
|
+
}
|
|
93
|
+
export interface AiPromptCreateResponse {
|
|
94
|
+
created: boolean;
|
|
95
|
+
data: AiPrompt;
|
|
96
|
+
message: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AiPromptUpdateResponse {
|
|
99
|
+
updated: boolean;
|
|
100
|
+
id: number | string;
|
|
101
|
+
message: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AiPromptDeleteResponse {
|
|
104
|
+
deleted: boolean;
|
|
105
|
+
count: number;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export interface AiApiKey {
|
|
109
|
+
id: number;
|
|
110
|
+
projectExid: string;
|
|
111
|
+
provider: string;
|
|
112
|
+
name: string;
|
|
113
|
+
purpose: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
autoGenerated: boolean;
|
|
116
|
+
firstUsedAt: string | null;
|
|
117
|
+
lastUsedAt: string | null;
|
|
118
|
+
insertedAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AiApiKeyCreatePayload {
|
|
122
|
+
projectExid: string;
|
|
123
|
+
provider: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
purpose?: string;
|
|
126
|
+
apiKey?: string;
|
|
127
|
+
enabled?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface AiApiKeyUpdatePayload {
|
|
130
|
+
name?: string;
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
apiKey?: string;
|
|
133
|
+
}
|
|
134
|
+
export type AiApiKeyQueryParams = {
|
|
135
|
+
projectExid?: string;
|
|
136
|
+
provider?: string;
|
|
137
|
+
purpose?: string;
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
};
|
|
140
|
+
export interface AiApiKeyCreateResponse {
|
|
141
|
+
created: boolean;
|
|
142
|
+
data: AiApiKey;
|
|
143
|
+
message: string;
|
|
144
|
+
}
|
|
145
|
+
export interface AiApiKeyUpdateResponse {
|
|
146
|
+
updated: boolean;
|
|
147
|
+
id: number | string;
|
|
148
|
+
message: string;
|
|
149
|
+
}
|
|
150
|
+
export interface AiApiKeyDeleteResponse {
|
|
151
|
+
deleted: boolean;
|
|
152
|
+
count: number;
|
|
153
|
+
message: string;
|
|
154
|
+
}
|
|
@@ -302,6 +302,7 @@ export declare enum AnalyticsEvent {
|
|
|
302
302
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
303
303
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
304
304
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
305
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
305
306
|
ThreeSixtySaveComment = "SaveComment",
|
|
306
307
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
307
308
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -104,11 +104,40 @@ export declare enum AnprEventStatus {
|
|
|
104
104
|
export type AnprBulkUpdateRequestPayload = {
|
|
105
105
|
anprEventsIds: number[];
|
|
106
106
|
action: AnprEventStatus;
|
|
107
|
-
updatedBy: string;
|
|
108
107
|
};
|
|
109
108
|
export type AnprUpdateRequestPayload = {
|
|
110
109
|
plateNumber: string;
|
|
111
110
|
vehicleType: GateReportVehicleType;
|
|
112
111
|
direction: AnprDirection;
|
|
113
|
-
|
|
112
|
+
};
|
|
113
|
+
export declare enum AnprExtractionStatus {
|
|
114
|
+
Pending = "pending",
|
|
115
|
+
Running = "running",
|
|
116
|
+
Completed = "completed",
|
|
117
|
+
Failed = "failed"
|
|
118
|
+
}
|
|
119
|
+
export declare enum AnprExtractionSaveMode {
|
|
120
|
+
All = "all",
|
|
121
|
+
AiDbOnly = "ai_db_only",
|
|
122
|
+
ImagesOnly = "images_only"
|
|
123
|
+
}
|
|
124
|
+
export type AnprExtraction = {
|
|
125
|
+
id: number;
|
|
126
|
+
cameraId: number;
|
|
127
|
+
userId: number | null;
|
|
128
|
+
startDate: string;
|
|
129
|
+
endDate: string;
|
|
130
|
+
status: AnprExtractionStatus;
|
|
131
|
+
totalRecords: number;
|
|
132
|
+
error: string | null;
|
|
133
|
+
saveMode: AnprExtractionSaveMode;
|
|
134
|
+
startedAt: string | null;
|
|
135
|
+
completedAt: string | null;
|
|
136
|
+
insertedAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type AnprExtractionCreatePayload = {
|
|
140
|
+
startDate: string;
|
|
141
|
+
endDate: string;
|
|
142
|
+
saveMode?: AnprExtractionSaveMode;
|
|
114
143
|
};
|
|
@@ -13,7 +13,6 @@ export type AxiosEnvironment = {
|
|
|
13
13
|
ingestGpuApiUrl?: string | null;
|
|
14
14
|
posthogApiUrl?: string | null;
|
|
15
15
|
posthogProjectId?: string | null;
|
|
16
|
-
posthogPrivateApiKey?: string | null;
|
|
17
16
|
firebaseVideowallUrl?: string | null;
|
|
18
17
|
weatherApiBaseUrl?: string | null;
|
|
19
18
|
evercamLabsUrl?: string | null;
|
|
@@ -6,13 +6,13 @@ export type DroneCameraTransform = {
|
|
|
6
6
|
right: Point3D;
|
|
7
7
|
};
|
|
8
8
|
export type DroneModel = {
|
|
9
|
-
cesiumId:
|
|
10
|
-
cesiumId2D:
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
11
11
|
date: string;
|
|
12
12
|
cesiumPointCloudId: string;
|
|
13
13
|
cesiumGausianSplatId: string;
|
|
14
14
|
pointSize: string;
|
|
15
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
16
16
|
link: string;
|
|
17
17
|
trueIndex: number;
|
|
18
18
|
};
|
|
@@ -29,10 +29,11 @@ export type DroneProjectTransform = {
|
|
|
29
29
|
};
|
|
30
30
|
export type DroneProjectData = {
|
|
31
31
|
models?: DroneModel[];
|
|
32
|
+
transform?: DroneProjectTransform;
|
|
32
33
|
integrationType?: DroneProvider;
|
|
33
34
|
origin?: string;
|
|
34
|
-
params?:
|
|
35
|
-
pointSize?:
|
|
35
|
+
params?: string;
|
|
36
|
+
pointSize?: number;
|
|
36
37
|
};
|
|
37
38
|
export type DroneProjectDataPatch = {
|
|
38
39
|
models?: Record<number, Partial<DroneModel>>;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum VehicleClassifierSource {
|
|
3
|
+
Local = "local",
|
|
4
|
+
Api = "api"
|
|
5
|
+
}
|
|
6
|
+
export type GateReportCoolifyStatus = {
|
|
7
|
+
appUuid: string | null;
|
|
8
|
+
name: string | null;
|
|
9
|
+
serverUuid: string | null;
|
|
10
|
+
serverName: string | null;
|
|
11
|
+
appUrl: string | null;
|
|
12
|
+
status: string | null;
|
|
13
|
+
isRunning: boolean;
|
|
14
|
+
imageTag?: string | null;
|
|
15
|
+
fqdn: string | null;
|
|
16
|
+
updatedAt: string | null;
|
|
17
|
+
};
|
|
18
|
+
export type GateReportProjectMeta = {
|
|
19
|
+
exid: ProjectExid;
|
|
20
|
+
name: string | null;
|
|
21
|
+
timezone: string | null;
|
|
22
|
+
featureFlags: string[] | null;
|
|
23
|
+
};
|
|
24
|
+
export type GateReportCameraMeta = {
|
|
25
|
+
exid: CameraExid;
|
|
26
|
+
name: string | null;
|
|
27
|
+
status: string | null;
|
|
28
|
+
kitSerial: string | null;
|
|
29
|
+
kitAlarms: string[] | Record<string, unknown> | null;
|
|
30
|
+
};
|
|
31
|
+
export type GateReportManagedApp = {
|
|
32
|
+
id: number;
|
|
33
|
+
projectExid: ProjectExid;
|
|
34
|
+
anprCameraExid: CameraExid;
|
|
35
|
+
contextCameraExid: CameraExid | null;
|
|
36
|
+
coolifyAppId: string | null;
|
|
37
|
+
startDate: DateType | null;
|
|
38
|
+
endDate: DateType | null;
|
|
39
|
+
startHour: number;
|
|
40
|
+
endHour: number;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
enableEnrichments: boolean;
|
|
43
|
+
enableGemini: boolean;
|
|
44
|
+
geminiStartHour: number;
|
|
45
|
+
geminiEndHour: number;
|
|
46
|
+
reviewModel: string;
|
|
47
|
+
enrichmentModel: string;
|
|
48
|
+
reviewerPromptSlug: string | null;
|
|
49
|
+
geminiTimeoutSeconds: number;
|
|
50
|
+
geminiMaxAttempts: number;
|
|
51
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
52
|
+
snapshotDelaySeconds: number;
|
|
53
|
+
snapshotRequestTimeout: number;
|
|
54
|
+
plateClassifierThreshold: number;
|
|
55
|
+
plateClassifierHighConfidence: number;
|
|
56
|
+
maxPriorEvents: number;
|
|
57
|
+
recordsFetchInterval: number;
|
|
58
|
+
priorRecentLimit: number;
|
|
59
|
+
priorSimilarLimit: number;
|
|
60
|
+
insertedAt: DateType;
|
|
61
|
+
updatedAt: DateType;
|
|
62
|
+
coolify: GateReportCoolifyStatus | null;
|
|
63
|
+
project: GateReportProjectMeta | null;
|
|
64
|
+
anprCamera: GateReportCameraMeta | null;
|
|
65
|
+
contextCamera: GateReportCameraMeta | null;
|
|
66
|
+
anprHasRoi: boolean;
|
|
67
|
+
contextHasRoi: boolean;
|
|
68
|
+
lastProcessedEventAt: DateType | null;
|
|
69
|
+
lastUnprocessedEventAt: DateType | null;
|
|
70
|
+
};
|
|
71
|
+
export type GateReportAppEvents = {
|
|
72
|
+
anprCameraExid: CameraExid;
|
|
73
|
+
lastProcessedEventAt: DateType | null;
|
|
74
|
+
lastUnprocessedEventAt: DateType | null;
|
|
75
|
+
};
|
|
76
|
+
export type AppConfigFormValue = {
|
|
77
|
+
contextCameraExid: string | null;
|
|
78
|
+
startDate: DateType | null;
|
|
79
|
+
endDate: DateType | null;
|
|
80
|
+
startHour: number;
|
|
81
|
+
endHour: number;
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
enableEnrichments: boolean;
|
|
84
|
+
enableGemini: boolean;
|
|
85
|
+
geminiStartHour: number;
|
|
86
|
+
geminiEndHour: number;
|
|
87
|
+
reviewModel: string;
|
|
88
|
+
enrichmentModel: string;
|
|
89
|
+
reviewerPromptSlug: string | null;
|
|
90
|
+
geminiTimeoutSeconds: number;
|
|
91
|
+
geminiMaxAttempts: number;
|
|
92
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
93
|
+
snapshotDelaySeconds: number;
|
|
94
|
+
snapshotRequestTimeout: number;
|
|
95
|
+
plateClassifierThreshold: number;
|
|
96
|
+
plateClassifierHighConfidence: number;
|
|
97
|
+
recordsFetchInterval: number;
|
|
98
|
+
priorRecentLimit: number;
|
|
99
|
+
priorSimilarLimit: number;
|
|
100
|
+
};
|
|
101
|
+
export type CreateGateReportAppPayload = {
|
|
102
|
+
projectExid: ProjectExid;
|
|
103
|
+
anprCameraExid: CameraExid;
|
|
104
|
+
contextCameraExid?: CameraExid | null;
|
|
105
|
+
coolifyServerUuid: string;
|
|
106
|
+
imageTag?: string;
|
|
107
|
+
geminiApiKey?: string | null;
|
|
108
|
+
startDate?: DateType | null;
|
|
109
|
+
endDate?: DateType | null;
|
|
110
|
+
startHour?: number;
|
|
111
|
+
endHour?: number;
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
enableEnrichments?: boolean;
|
|
114
|
+
enableGemini?: boolean;
|
|
115
|
+
geminiStartHour?: number;
|
|
116
|
+
geminiEndHour?: number;
|
|
117
|
+
reviewModel?: string;
|
|
118
|
+
enrichmentModel?: string;
|
|
119
|
+
reviewerPromptSlug?: string | null;
|
|
120
|
+
geminiTimeoutSeconds?: number;
|
|
121
|
+
geminiMaxAttempts?: number;
|
|
122
|
+
vehicleClassifierSource?: VehicleClassifierSource;
|
|
123
|
+
snapshotDelaySeconds?: number;
|
|
124
|
+
snapshotRequestTimeout?: number;
|
|
125
|
+
plateClassifierThreshold?: number;
|
|
126
|
+
plateClassifierHighConfidence?: number;
|
|
127
|
+
maxPriorEvents?: number;
|
|
128
|
+
recordsFetchInterval?: number;
|
|
129
|
+
priorRecentLimit?: number;
|
|
130
|
+
priorSimilarLimit?: number;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
+
export type GateReportManagementListParams = {
|
|
134
|
+
projectExid?: ProjectExid;
|
|
135
|
+
includeStatus?: boolean;
|
|
136
|
+
page?: number;
|
|
137
|
+
limit?: number;
|
|
138
|
+
};
|
|
139
|
+
export type CoolifyProjectOption = {
|
|
140
|
+
uuid: string;
|
|
141
|
+
name: string;
|
|
142
|
+
description: string | null;
|
|
143
|
+
};
|
|
144
|
+
export type CoolifyServerOption = {
|
|
145
|
+
uuid: string;
|
|
146
|
+
name: string;
|
|
147
|
+
isReachable: boolean;
|
|
148
|
+
isUsable: boolean;
|
|
149
|
+
};
|
|
150
|
+
export declare enum AppRuntimeState {
|
|
151
|
+
Running = "running",
|
|
152
|
+
Stopped = "stopped",
|
|
153
|
+
Restarting = "restarting"
|
|
154
|
+
}
|
|
155
|
+
export type AppRuntimeStateRequest = {
|
|
156
|
+
state: AppRuntimeState;
|
|
157
|
+
};
|
|
158
|
+
export type AppActionResponse = {
|
|
159
|
+
success: boolean;
|
|
160
|
+
message: string | null;
|
|
161
|
+
appUuid: string | null;
|
|
162
|
+
state: AppRuntimeState | null;
|
|
163
|
+
};
|
|
164
|
+
export type APIEnvelope<T> = {
|
|
165
|
+
success: boolean;
|
|
166
|
+
data: T | null;
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
export type CreateGateReportAppResponse = {
|
|
170
|
+
created: boolean;
|
|
171
|
+
id: number | null;
|
|
172
|
+
data: GateReportManagedApp | null;
|
|
173
|
+
count: number | null;
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
104
104
|
}
|
|
105
105
|
export declare enum VpnServer {
|
|
106
106
|
None = "None",
|
|
107
|
-
OpenVPN1 = "OpenVPN1",
|
|
108
|
-
OpenVPN2 = "OpenVPN2",
|
|
109
|
-
OpenVPN3 = "OpenVPN3",
|
|
110
|
-
OpenVPN4 = "OpenVPN4",
|
|
111
|
-
OpenVPN5 = "OpenVPN5",
|
|
112
|
-
PPTP1 = "PPTP1",
|
|
113
|
-
PPTP2 = "PPTP2",
|
|
114
107
|
WireGuard1 = "WireGuard1",
|
|
115
108
|
WireGuard2 = "WireGuard2",
|
|
116
109
|
WireGuard3 = "WireGuard3",
|
|
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
|
5
5
|
status: SnapshotExtractionStatus;
|
|
6
6
|
};
|
|
7
7
|
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Cancelling = "canceling",
|
|
9
|
+
Cancelled = "cancelled",
|
|
8
10
|
Completed = "completed",
|
|
9
11
|
Failed = "failed",
|
|
12
|
+
Pending = "pending",
|
|
10
13
|
Processing = "processing"
|
|
11
14
|
}
|
|
12
15
|
export declare enum SnapshotExtractionType {
|
|
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
|
|
|
30
33
|
injectTo_cr: Boolean;
|
|
31
34
|
schedule: Schedule;
|
|
32
35
|
created_at: DateType;
|
|
36
|
+
jpegCount?: number;
|
|
37
|
+
obanJobId?: number;
|
|
33
38
|
};
|
|
34
39
|
export type SnapshotTestPayload = {
|
|
35
40
|
cameraExid?: CameraExid;
|
package/dist/api/types/user.d.ts
CHANGED
package/dist/api/utils.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
|
|
|
7
7
|
forceArrayBrackets?: boolean | undefined;
|
|
8
8
|
}) => string | undefined;
|
|
9
9
|
export declare function queryStringToObject(queryString?: string): QueryParams;
|
|
10
|
-
export declare function capitalizeFirstLetter(inputString: string): string;
|