@evercam/api 1.0.0-7f2a06308 → 1.0.0-7f640ff6f
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 +212 -15
- package/dist/api/api/adminApi.d.ts +152 -120
- package/dist/api/api/aiApi.d.ts +192 -57
- package/dist/api/api/authzApi.d.ts +26 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +150 -95
- package/dist/api/api/evercamLabsApi.d.ts +10 -19
- package/dist/api/api/exNvrApi.d.ts +2 -2
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +133 -59
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +182 -88
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +89 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +163 -75
- package/dist/api/types/anpr.d.ts +142 -2
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +115 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +65 -3
- package/dist/api/types/axios.d.ts +20 -15
- package/dist/api/types/bim.d.ts +80 -16
- package/dist/api/types/camera.d.ts +316 -193
- package/dist/api/types/comments.d.ts +68 -31
- package/dist/api/types/company.d.ts +53 -6
- package/dist/api/types/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +26 -18
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +84 -73
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +27 -2
- package/dist/api/types/index.d.ts +17 -3
- package/dist/api/types/ingest.d.ts +285 -17
- package/dist/api/types/kit.d.ts +108 -121
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +83 -3
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +87 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +42 -25
- package/dist/api/types/project.d.ts +154 -33
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +9 -3
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +47 -30
- package/dist/api/types/shares.d.ts +1 -14
- package/dist/api/types/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +81 -43
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +104 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +99 -14
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +12 -37
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +7 -11
- package/dist/api/types/user.d.ts +139 -54
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +83 -15
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2497 -953
- 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 +769 -33
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +80 -0
- package/dist/shared/types/report.d.ts +108 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection,
|
|
1
|
+
import { AnprDirection, AnprEnrichmentFilter, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiDirection, RoiShapeType, RoiType, Timestamp, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum GateReportDetectionType {
|
|
3
3
|
Auto = "auto",
|
|
4
4
|
Manual = "manual",
|
|
@@ -147,8 +147,8 @@ export declare enum GateReportVehicleType {
|
|
|
147
147
|
Unknown = "unknown"
|
|
148
148
|
}
|
|
149
149
|
export type GateReportVehicleTypeItem = {
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
label: string;
|
|
151
|
+
value: GateReportVehicleType;
|
|
152
152
|
};
|
|
153
153
|
export type GateReportEvent = {
|
|
154
154
|
id: number;
|
|
@@ -166,64 +166,73 @@ export type GateReportEvent = {
|
|
|
166
166
|
truckType: GateReportVehicleType;
|
|
167
167
|
thumbnailUrl?: string;
|
|
168
168
|
};
|
|
169
|
-
export type GateReportArrivedEvent = GateReportEvent & {
|
|
170
|
-
eventType: GateReportEventType.Arrived;
|
|
171
|
-
};
|
|
172
|
-
export type GateReportLeftEvent = GateReportEvent & {
|
|
173
|
-
eventType: GateReportEventType.Left;
|
|
174
|
-
};
|
|
175
169
|
export type GateReportVerifiedDay = {
|
|
176
170
|
id: number;
|
|
177
|
-
day:
|
|
171
|
+
day: string;
|
|
178
172
|
isMatched: boolean;
|
|
179
|
-
insertedAt:
|
|
180
|
-
updatedAt:
|
|
173
|
+
insertedAt: string;
|
|
174
|
+
updatedAt: string;
|
|
181
175
|
verifiedBy: string;
|
|
182
176
|
cameraExid: CameraExid;
|
|
183
177
|
projectExid: ProjectExid;
|
|
184
178
|
};
|
|
179
|
+
export type GateReportVerifiedDayEntry = Pick<GateReportVerifiedDay, "day" | "verifiedBy" | "cameraExid" | "projectExid"> & {
|
|
180
|
+
insertedAt?: GateReportVerifiedDay["insertedAt"];
|
|
181
|
+
};
|
|
185
182
|
export type BoundingBox = {
|
|
186
183
|
xmax: number;
|
|
187
184
|
xmin: number;
|
|
188
185
|
ymax: number;
|
|
189
186
|
ymin: number;
|
|
190
187
|
};
|
|
191
|
-
export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
|
|
192
188
|
export type EventsCount = {
|
|
193
189
|
in: number;
|
|
194
190
|
out: number;
|
|
191
|
+
unknown?: number;
|
|
195
192
|
source: GateReportDataSource;
|
|
196
193
|
};
|
|
197
|
-
export type YearlyEventCount = EventsCount & {
|
|
198
|
-
year:
|
|
194
|
+
export type YearlyEventCount = Omit<EventsCount, "source"> & {
|
|
195
|
+
year: string;
|
|
199
196
|
};
|
|
200
|
-
export type MonthlyEventCount = EventsCount & {
|
|
201
|
-
month:
|
|
197
|
+
export type MonthlyEventCount = Omit<EventsCount, "source"> & {
|
|
198
|
+
month: string;
|
|
202
199
|
};
|
|
203
200
|
export type DailyEventCount = EventsCount & {
|
|
204
|
-
day:
|
|
205
|
-
};
|
|
206
|
-
export type HourlyEventCount = {
|
|
207
|
-
hour: Date_HH;
|
|
208
|
-
count: number;
|
|
201
|
+
day: string;
|
|
209
202
|
};
|
|
210
203
|
export type EventCountRequestPayload = {
|
|
211
204
|
vehicleTypes?: GateReportVehicleType[];
|
|
212
205
|
isPublic?: boolean;
|
|
213
206
|
camerasExid?: string[];
|
|
214
|
-
|
|
207
|
+
plateNumber?: string;
|
|
208
|
+
} & AnprEnrichmentFilter;
|
|
215
209
|
export type EventCountResponsePayload = {
|
|
216
210
|
days?: DailyEventCount[];
|
|
217
211
|
months?: MonthlyEventCount[];
|
|
218
212
|
years?: YearlyEventCount[];
|
|
219
213
|
};
|
|
214
|
+
export type VehicleTypeCountsResponsePayload = {
|
|
215
|
+
vehicleTypes: {
|
|
216
|
+
vehicleType: GateReportVehicleType;
|
|
217
|
+
days: DailyEventCount[];
|
|
218
|
+
}[];
|
|
219
|
+
};
|
|
220
|
+
export type GateReportHourCount = {
|
|
221
|
+
hour: number;
|
|
222
|
+
in: number;
|
|
223
|
+
out: number;
|
|
224
|
+
unknown: number;
|
|
225
|
+
};
|
|
226
|
+
export type HourCountsResponsePayload = {
|
|
227
|
+
hours: GateReportHourCount[];
|
|
228
|
+
};
|
|
220
229
|
export declare enum GateReportDataSource {
|
|
221
230
|
Anpr = "anpr",
|
|
222
231
|
Events = "events"
|
|
223
232
|
}
|
|
224
233
|
export type GateReportResponsePayload = {
|
|
225
234
|
source: GateReportDataSource;
|
|
226
|
-
results: PaginatedItems<
|
|
235
|
+
results: PaginatedItems<AnprEvent>;
|
|
227
236
|
};
|
|
228
237
|
export declare enum GateReportEventDirection {
|
|
229
238
|
In = "in",
|
|
@@ -233,53 +242,59 @@ export declare enum GateReportEventDirection {
|
|
|
233
242
|
export type GatReportRequestPayload = {
|
|
234
243
|
camerasExid?: CameraExid[];
|
|
235
244
|
eventType?: GateReportEventType;
|
|
236
|
-
fromDate?:
|
|
245
|
+
fromDate?: string;
|
|
237
246
|
isPublic?: boolean;
|
|
238
|
-
toDate?:
|
|
247
|
+
toDate?: string;
|
|
239
248
|
vehicleTypes?: GateReportVehicleType[];
|
|
240
|
-
|
|
249
|
+
plateNumber?: string;
|
|
250
|
+
} & AnprEnrichmentFilter & PaginationParams;
|
|
251
|
+
export declare enum GateReportFilter {
|
|
252
|
+
Cameras = "cameras",
|
|
253
|
+
Types = "types",
|
|
254
|
+
Plate = "plate",
|
|
255
|
+
Direction = "direction",
|
|
256
|
+
Enrichment = "enrichment"
|
|
257
|
+
}
|
|
258
|
+
export declare enum GateReportCancelToken {
|
|
259
|
+
HourCounts = "gate-report-hour-counts",
|
|
260
|
+
TypeCounts = "gate-report-type-counts",
|
|
261
|
+
Companies = "gate-report-companies"
|
|
262
|
+
}
|
|
241
263
|
export declare enum GateReportExportType {
|
|
242
264
|
Pdf = "pdf",
|
|
243
265
|
Csv = "csv"
|
|
244
266
|
}
|
|
245
|
-
export type
|
|
246
|
-
vehicleTypes: GateReportVehicleType[];
|
|
247
|
-
fileType: GateReportExportType;
|
|
248
|
-
fromDate: DateTimeSpaceSeparated;
|
|
249
|
-
toDate: DateTimeSpaceSeparated;
|
|
250
|
-
camerasExid: CameraExid[];
|
|
251
|
-
eventType: GateReportEventType;
|
|
252
|
-
};
|
|
253
|
-
export type AnprBasedGateReportExportRequestParams = {
|
|
267
|
+
export type AnprExportBaseParams = {
|
|
254
268
|
vehicleTypes?: GateReportVehicleType[];
|
|
255
269
|
fileType?: GateReportExportType;
|
|
256
|
-
fromDate?:
|
|
257
|
-
toDate?:
|
|
270
|
+
fromDate?: string;
|
|
271
|
+
toDate?: string;
|
|
258
272
|
camerasExid?: CameraExid[];
|
|
273
|
+
isPublic?: boolean;
|
|
274
|
+
columns?: string[];
|
|
275
|
+
};
|
|
276
|
+
export type EventsExportRequestParameters = AnprExportBaseParams & {
|
|
277
|
+
eventType: GateReportEventType;
|
|
278
|
+
};
|
|
279
|
+
export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & AnprEnrichmentFilter & {
|
|
280
|
+
direction?: AnprDirection;
|
|
281
|
+
};
|
|
282
|
+
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
259
283
|
direction?: AnprDirection;
|
|
260
284
|
};
|
|
261
|
-
type X1 = number;
|
|
262
|
-
type Y1 = number;
|
|
263
|
-
type X2 = number;
|
|
264
|
-
type Y2 = number;
|
|
265
|
-
export declare enum GateReportROIShapeType {
|
|
266
|
-
Rectangle = "rectangle",
|
|
267
|
-
Direction = "direction",
|
|
268
|
-
Line = "line"
|
|
269
|
-
}
|
|
270
285
|
export type GateReportROIShape = {
|
|
271
|
-
coordinates: [
|
|
272
|
-
type:
|
|
286
|
+
coordinates: TuplePoint2D[];
|
|
287
|
+
type: RoiShapeType;
|
|
273
288
|
};
|
|
274
289
|
export type GateReportROI = {
|
|
275
290
|
cameraex?: string;
|
|
276
291
|
fromDate?: string;
|
|
277
|
-
directionFilter?:
|
|
292
|
+
directionFilter?: RoiDirection;
|
|
278
293
|
id?: number;
|
|
279
294
|
insertedAt?: Timestamp;
|
|
280
|
-
|
|
295
|
+
isActive?: boolean;
|
|
281
296
|
name?: string;
|
|
282
|
-
roiType?:
|
|
297
|
+
roiType?: RoiType;
|
|
283
298
|
updatedAt?: Timestamp;
|
|
284
299
|
shapes?: GateReportROIShape[];
|
|
285
300
|
};
|
|
@@ -301,15 +316,15 @@ export type VerifiedDaysQueryParams = PaginationParams & {
|
|
|
301
316
|
camerasExid: CameraExid[];
|
|
302
317
|
verifiedBy: string;
|
|
303
318
|
isMatched: boolean;
|
|
304
|
-
insertedAt:
|
|
305
|
-
updatedAt:
|
|
319
|
+
insertedAt: string[];
|
|
320
|
+
updatedAt: string[];
|
|
306
321
|
day: string;
|
|
307
322
|
};
|
|
308
323
|
export type VerifyDayUpdateRequestPayload = {
|
|
309
324
|
camerasExid: string[];
|
|
310
325
|
projectExid: string;
|
|
311
|
-
day:
|
|
312
|
-
isMatched
|
|
326
|
+
day: string;
|
|
327
|
+
isMatched?: boolean;
|
|
313
328
|
verifiedBy: string;
|
|
314
329
|
};
|
|
315
330
|
export type ProcessedDaysQueryParams = {
|
|
@@ -318,27 +333,23 @@ export type ProcessedDaysQueryParams = {
|
|
|
318
333
|
eventType: GateReportEventType;
|
|
319
334
|
};
|
|
320
335
|
export type RoisQueryParams = {
|
|
321
|
-
|
|
336
|
+
camerasExid: CameraExid[];
|
|
322
337
|
id: number;
|
|
323
338
|
name: string;
|
|
324
339
|
fromDate: string;
|
|
325
|
-
roiType:
|
|
326
|
-
|
|
340
|
+
roiType: RoiType;
|
|
341
|
+
isActive: boolean;
|
|
327
342
|
directionFilter: string;
|
|
328
343
|
sort: string;
|
|
329
344
|
};
|
|
330
|
-
export type
|
|
331
|
-
id
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
note: string;
|
|
341
|
-
};
|
|
342
|
-
createdBy: string;
|
|
345
|
+
export type GateReportRoiRequestPayload = {
|
|
346
|
+
id: number;
|
|
347
|
+
cameraExid: string;
|
|
348
|
+
name: string;
|
|
349
|
+
roiType: RoiType;
|
|
350
|
+
isActive: true;
|
|
351
|
+
fromDate: string;
|
|
352
|
+
shapes: GateReportROIShape[];
|
|
353
|
+
directionFilter: string;
|
|
354
|
+
note: string;
|
|
343
355
|
};
|
|
344
|
-
export {};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, 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 GateReportAppsQueryParams = PaginationParams & {
|
|
134
|
+
projectExid?: ProjectExid;
|
|
135
|
+
includeStatus?: boolean;
|
|
136
|
+
};
|
|
137
|
+
export type CoolifyProjectOption = {
|
|
138
|
+
uuid: string;
|
|
139
|
+
name: string;
|
|
140
|
+
description: string | null;
|
|
141
|
+
};
|
|
142
|
+
export type CoolifyServerOption = {
|
|
143
|
+
uuid: string;
|
|
144
|
+
name: string;
|
|
145
|
+
isReachable: boolean;
|
|
146
|
+
isUsable: boolean;
|
|
147
|
+
};
|
|
148
|
+
export declare enum AppRuntimeState {
|
|
149
|
+
Running = "running",
|
|
150
|
+
Stopped = "stopped",
|
|
151
|
+
Restarting = "restarting"
|
|
152
|
+
}
|
|
153
|
+
export type AppActionResponse = {
|
|
154
|
+
success: boolean;
|
|
155
|
+
message: string | null;
|
|
156
|
+
appUuid: string | null;
|
|
157
|
+
state: AppRuntimeState | null;
|
|
158
|
+
};
|
|
159
|
+
export type APIEnvelope<T> = {
|
|
160
|
+
success: boolean;
|
|
161
|
+
data: T | null;
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
export type CreateGateReportAppResponse = {
|
|
165
|
+
created: boolean;
|
|
166
|
+
id: number | null;
|
|
167
|
+
data: GateReportManagedApp | null;
|
|
168
|
+
count: number | null;
|
|
169
|
+
message: string;
|
|
170
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare enum HammertechRegion {
|
|
2
|
+
US = "us",
|
|
3
|
+
AU = "au",
|
|
4
|
+
EU = "eu"
|
|
5
|
+
}
|
|
6
|
+
export type HammertechConnectPayload = {
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
tenant: string;
|
|
10
|
+
region: HammertechRegion;
|
|
11
|
+
};
|
|
12
|
+
export type HammertechProject = {
|
|
13
|
+
projectId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type HammertechLocation = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
parentId: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
|
|
22
|
+
export type HammertechCustomField = {
|
|
23
|
+
id: string;
|
|
24
|
+
internalName: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
customFieldType: HammertechCustomFieldDataType;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
answerOptions?: string[];
|
|
29
|
+
};
|
|
30
|
+
export type HammertechCustomFieldForm = {
|
|
31
|
+
id: string;
|
|
32
|
+
customFields: HammertechCustomField[];
|
|
33
|
+
};
|
|
34
|
+
export declare enum HammertechPriority {
|
|
35
|
+
Low = "Low",
|
|
36
|
+
Medium = "Medium",
|
|
37
|
+
High = "High",
|
|
38
|
+
Critical = "Critical"
|
|
39
|
+
}
|
|
40
|
+
export declare enum HammertechClassification {
|
|
41
|
+
Undefined = "Undefined",
|
|
42
|
+
Positive = "Positive",
|
|
43
|
+
Negative = "Negative",
|
|
44
|
+
Neutral = "Neutral"
|
|
45
|
+
}
|
|
46
|
+
export type HammertechIssueType = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
forcePriority?: boolean;
|
|
50
|
+
suggestedPriority?: HammertechPriority | null;
|
|
51
|
+
canBeNegative?: boolean;
|
|
52
|
+
canBeNeutral?: boolean;
|
|
53
|
+
canBePositive?: boolean;
|
|
54
|
+
openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
|
|
55
|
+
};
|
|
56
|
+
export type HammertechCustomFieldValue = {
|
|
57
|
+
customFieldId: string;
|
|
58
|
+
value?: unknown;
|
|
59
|
+
storedFileId?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
|
|
62
|
+
export declare function isHammertechFileFieldType(type?: string): boolean;
|
|
63
|
+
export declare function isHammertechSignatureWithName(type?: string): boolean;
|
|
64
|
+
export type HammertechStoredFilePayload = {
|
|
65
|
+
fileName?: string;
|
|
66
|
+
base64FileContent: string;
|
|
67
|
+
annotation?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
};
|
|
70
|
+
export type HammertechStoredFileResponse = {
|
|
71
|
+
isSuccess: boolean;
|
|
72
|
+
httpStatusCode: number;
|
|
73
|
+
messageText: string;
|
|
74
|
+
createdEntityId: string;
|
|
75
|
+
xRequestId: string;
|
|
76
|
+
};
|
|
77
|
+
export type HammertechFileFieldValue = {
|
|
78
|
+
file: File | null;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
export type HammertechCreateIssuePayload = {
|
|
82
|
+
projectId: string;
|
|
83
|
+
issueTypeId: string;
|
|
84
|
+
snapshot: string;
|
|
85
|
+
issueDate?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
priority?: HammertechPriority;
|
|
88
|
+
dueDate?: string;
|
|
89
|
+
classification?: HammertechClassification;
|
|
90
|
+
locationId?: string;
|
|
91
|
+
isPositiveObservation?: boolean;
|
|
92
|
+
isPhotoForFixRequired?: boolean;
|
|
93
|
+
openIssueCustomFieldFormId?: string;
|
|
94
|
+
openIssueCustomFieldValues?: HammertechCustomFieldValue[];
|
|
95
|
+
};
|
|
96
|
+
export type HammertechIssueResponse = {
|
|
97
|
+
id: string;
|
|
98
|
+
};
|
package/dist/api/types/hdd.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams } from "
|
|
1
|
+
import { PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum HddFormat {
|
|
3
3
|
ExFat = "ExFAT",
|
|
4
4
|
HikFs = "HikFS"
|
|
@@ -46,7 +46,7 @@ export type HDDCreateUpdatePayload = {
|
|
|
46
46
|
size: string;
|
|
47
47
|
type: string;
|
|
48
48
|
format: string;
|
|
49
|
-
locationId: string;
|
|
49
|
+
locationId: WarehouseLocationIndex | string;
|
|
50
50
|
serialNumber: string;
|
|
51
51
|
hddStatus: string;
|
|
52
52
|
shelfBlock: string;
|
|
@@ -61,3 +61,28 @@ export type HDDsQueryParams = PaginationParams & {
|
|
|
61
61
|
type: string;
|
|
62
62
|
hddStatus: string;
|
|
63
63
|
};
|
|
64
|
+
export type AdminHddFootage = {
|
|
65
|
+
id: number;
|
|
66
|
+
cameraExid: string;
|
|
67
|
+
cameraName: string;
|
|
68
|
+
startDate: string | null;
|
|
69
|
+
endDate: string | null;
|
|
70
|
+
};
|
|
71
|
+
export type AdminHdd = {
|
|
72
|
+
id: number;
|
|
73
|
+
size: string;
|
|
74
|
+
type: string;
|
|
75
|
+
format: string;
|
|
76
|
+
location: string;
|
|
77
|
+
errorStatus: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
serialNumber: string;
|
|
80
|
+
hddStatus: string;
|
|
81
|
+
reportedCapacity: string | null;
|
|
82
|
+
reportedFreeSpace: string | null;
|
|
83
|
+
reportedHddType: string | null;
|
|
84
|
+
reportedPath: string | null;
|
|
85
|
+
reportedProperty: string | null;
|
|
86
|
+
shelfBlock: string;
|
|
87
|
+
footages: AdminHddFootage[];
|
|
88
|
+
};
|
|
@@ -2,12 +2,12 @@ export * from "./360";
|
|
|
2
2
|
export * from "./aconex";
|
|
3
3
|
export * from "./analytics";
|
|
4
4
|
export * from "./anpr";
|
|
5
|
+
export * from "./admin";
|
|
5
6
|
export * from "./media";
|
|
6
7
|
export * from "./autodesk";
|
|
7
8
|
export * from "./bim";
|
|
8
9
|
export * from "./camera";
|
|
9
10
|
export * from "./compare";
|
|
10
|
-
export * from "./copilot";
|
|
11
11
|
export * from "./credentials";
|
|
12
12
|
export * from "./drone";
|
|
13
13
|
export * from "./errors";
|
|
@@ -29,17 +29,19 @@ export * from "./shares";
|
|
|
29
29
|
export * from "./sim";
|
|
30
30
|
export * from "./systemCheck";
|
|
31
31
|
export * from "./planner";
|
|
32
|
-
export * from "./
|
|
32
|
+
export * from "./storageProvider";
|
|
33
33
|
export * from "./streaming";
|
|
34
|
+
export * from "./storyblok";
|
|
34
35
|
export * from "./time";
|
|
35
36
|
export * from "./timelapse";
|
|
36
37
|
export * from "./user";
|
|
37
|
-
export * from "./vendorModel";
|
|
38
38
|
export * from "./videoWall";
|
|
39
39
|
export * from "./voyageControl";
|
|
40
|
+
export * from "./hammertech";
|
|
40
41
|
export * from "./weather";
|
|
41
42
|
export * from "./comments";
|
|
42
43
|
export * from "./detections";
|
|
44
|
+
export * from "./observations";
|
|
43
45
|
export * from "./axios";
|
|
44
46
|
export * from "./shared";
|
|
45
47
|
export * from "./company";
|
|
@@ -47,6 +49,7 @@ export * from "./kit";
|
|
|
47
49
|
export * from "./auditLogs";
|
|
48
50
|
export * from "./snapshots";
|
|
49
51
|
export * from "./siteAnalytics";
|
|
52
|
+
export * from "./siteAnalyticsManagement";
|
|
50
53
|
export * from "./widget";
|
|
51
54
|
export * from "./countries";
|
|
52
55
|
export * from "./automation";
|
|
@@ -57,3 +60,14 @@ export * from "./xweather";
|
|
|
57
60
|
export * from "./posthog";
|
|
58
61
|
export * from "./recycleBin";
|
|
59
62
|
export * from "./authz";
|
|
63
|
+
export * from "./oauth";
|
|
64
|
+
export * from "./apiKey";
|
|
65
|
+
export * from "./ring";
|
|
66
|
+
export * from "./smartSeach";
|
|
67
|
+
export * from "./siteView";
|
|
68
|
+
export * from "./aiConfigs";
|
|
69
|
+
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
71
|
+
export * from "./reports";
|
|
72
|
+
export * from "./observationEvents";
|
|
73
|
+
export * from "./emailMessages";
|