@evercam/api 1.0.0-4976cdc31 → 1.0.0-4af288605
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 +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +1 -1
- package/dist/api/api/adminApi.d.ts +3 -6
- package/dist/api/types/camera.d.ts +1 -0
- package/dist/api/types/detections.d.ts +2 -1
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +26 -2
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/index.js +139 -136
- 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 +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ export declare const _3dFirebaseApi: {
|
|
|
70
70
|
updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
|
|
71
71
|
deleteProject(projectId: string): Promise<void>;
|
|
72
72
|
updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
|
|
73
|
-
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<
|
|
73
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Scene["floors"][number]>): Promise<_360ProjectJsonResponse>;
|
|
74
74
|
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
|
|
75
75
|
getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
|
|
76
76
|
getFloor({ projectId, dateId, floorId, }: {
|
|
@@ -133,15 +133,12 @@ export declare const AdminApi: {
|
|
|
133
133
|
extractions: {
|
|
134
134
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
135
135
|
addExtraction(cameraId: string, params: SnapshotExtractionQyeryParams): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
136
|
-
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
137
|
-
type: SnapshotExtractionType;
|
|
138
|
-
}): Promise<{
|
|
139
|
-
status: string;
|
|
140
|
-
jpegs: number;
|
|
141
|
-
}>;
|
|
142
136
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
143
137
|
type: SnapshotExtractionType;
|
|
138
|
+
hardDelete?: boolean;
|
|
144
139
|
}): Promise<void>;
|
|
140
|
+
getExtraction(cameraExid: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
141
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<void>;
|
|
145
142
|
};
|
|
146
143
|
anprExtractions: {
|
|
147
144
|
list(cameraExid: string): Promise<{
|
|
@@ -46,4 +46,15 @@ type _EvercamApiError = {
|
|
|
46
46
|
innerError?: _EvercamApiError;
|
|
47
47
|
};
|
|
48
48
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
statusCode?: number;
|
|
51
|
+
message?: string;
|
|
52
|
+
redirect?: {
|
|
53
|
+
url?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
delay?: number;
|
|
56
|
+
};
|
|
57
|
+
withSupportMessage?: boolean;
|
|
58
|
+
isWidget?: boolean;
|
|
59
|
+
};
|
|
49
60
|
export {};
|
|
@@ -11,6 +11,7 @@ export type GateReportCoolifyStatus = {
|
|
|
11
11
|
appUrl: string | null;
|
|
12
12
|
status: string | null;
|
|
13
13
|
isRunning: boolean;
|
|
14
|
+
imageTag?: string | null;
|
|
14
15
|
fqdn: string | null;
|
|
15
16
|
updatedAt: string | null;
|
|
16
17
|
};
|
|
@@ -39,8 +40,12 @@ export type GateReportManagedApp = {
|
|
|
39
40
|
endHour: number;
|
|
40
41
|
enabled: boolean;
|
|
41
42
|
enableEnrichments: boolean;
|
|
43
|
+
enableGemini: boolean;
|
|
44
|
+
geminiStartHour: number;
|
|
45
|
+
geminiEndHour: number;
|
|
42
46
|
reviewModel: string;
|
|
43
47
|
enrichmentModel: string;
|
|
48
|
+
reviewerPromptSlug: string | null;
|
|
44
49
|
geminiTimeoutSeconds: number;
|
|
45
50
|
geminiMaxAttempts: number;
|
|
46
51
|
vehicleClassifierSource: VehicleClassifierSource;
|
|
@@ -50,12 +55,16 @@ export type GateReportManagedApp = {
|
|
|
50
55
|
plateClassifierHighConfidence: number;
|
|
51
56
|
maxPriorEvents: number;
|
|
52
57
|
recordsFetchInterval: number;
|
|
58
|
+
priorRecentLimit: number;
|
|
59
|
+
priorSimilarLimit: number;
|
|
53
60
|
insertedAt: DateType;
|
|
54
61
|
updatedAt: DateType;
|
|
55
62
|
coolify: GateReportCoolifyStatus | null;
|
|
56
63
|
project: GateReportProjectMeta | null;
|
|
57
64
|
anprCamera: GateReportCameraMeta | null;
|
|
58
65
|
contextCamera: GateReportCameraMeta | null;
|
|
66
|
+
anprHasRoi: boolean;
|
|
67
|
+
contextHasRoi: boolean;
|
|
59
68
|
lastProcessedEventAt: DateType | null;
|
|
60
69
|
lastUnprocessedEventAt: DateType | null;
|
|
61
70
|
};
|
|
@@ -72,8 +81,12 @@ export type AppConfigFormValue = {
|
|
|
72
81
|
endHour: number;
|
|
73
82
|
enabled: boolean;
|
|
74
83
|
enableEnrichments: boolean;
|
|
84
|
+
enableGemini: boolean;
|
|
85
|
+
geminiStartHour: number;
|
|
86
|
+
geminiEndHour: number;
|
|
75
87
|
reviewModel: string;
|
|
76
88
|
enrichmentModel: string;
|
|
89
|
+
reviewerPromptSlug: string | null;
|
|
77
90
|
geminiTimeoutSeconds: number;
|
|
78
91
|
geminiMaxAttempts: number;
|
|
79
92
|
vehicleClassifierSource: VehicleClassifierSource;
|
|
@@ -81,8 +94,9 @@ export type AppConfigFormValue = {
|
|
|
81
94
|
snapshotRequestTimeout: number;
|
|
82
95
|
plateClassifierThreshold: number;
|
|
83
96
|
plateClassifierHighConfidence: number;
|
|
84
|
-
maxPriorEvents: number;
|
|
85
97
|
recordsFetchInterval: number;
|
|
98
|
+
priorRecentLimit: number;
|
|
99
|
+
priorSimilarLimit: number;
|
|
86
100
|
};
|
|
87
101
|
export type CreateGateReportAppPayload = {
|
|
88
102
|
projectExid: ProjectExid;
|
|
@@ -97,8 +111,12 @@ export type CreateGateReportAppPayload = {
|
|
|
97
111
|
endHour?: number;
|
|
98
112
|
enabled?: boolean;
|
|
99
113
|
enableEnrichments?: boolean;
|
|
114
|
+
enableGemini?: boolean;
|
|
115
|
+
geminiStartHour?: number;
|
|
116
|
+
geminiEndHour?: number;
|
|
100
117
|
reviewModel?: string;
|
|
101
118
|
enrichmentModel?: string;
|
|
119
|
+
reviewerPromptSlug?: string | null;
|
|
102
120
|
geminiTimeoutSeconds?: number;
|
|
103
121
|
geminiMaxAttempts?: number;
|
|
104
122
|
vehicleClassifierSource?: VehicleClassifierSource;
|
|
@@ -108,6 +126,8 @@ export type CreateGateReportAppPayload = {
|
|
|
108
126
|
plateClassifierHighConfidence?: number;
|
|
109
127
|
maxPriorEvents?: number;
|
|
110
128
|
recordsFetchInterval?: number;
|
|
129
|
+
priorRecentLimit?: number;
|
|
130
|
+
priorSimilarLimit?: number;
|
|
111
131
|
};
|
|
112
132
|
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
113
133
|
export type GateReportManagementListParams = {
|
|
@@ -127,7 +147,11 @@ export type CoolifyServerOption = {
|
|
|
127
147
|
isReachable: boolean;
|
|
128
148
|
isUsable: boolean;
|
|
129
149
|
};
|
|
130
|
-
export
|
|
150
|
+
export declare enum AppRuntimeState {
|
|
151
|
+
Running = "running",
|
|
152
|
+
Stopped = "stopped",
|
|
153
|
+
Restarting = "restarting"
|
|
154
|
+
}
|
|
131
155
|
export type AppRuntimeStateRequest = {
|
|
132
156
|
state: AppRuntimeState;
|
|
133
157
|
};
|
|
@@ -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;
|