@evercam/api 1.0.0-bc5229297 → 1.0.0-bc621a120

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.
Files changed (63) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +60 -34
  3. package/dist/api/api/adminApi.d.ts +19 -15
  4. package/dist/api/api/aiApi.d.ts +124 -2
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +32 -12
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -5
  8. package/dist/api/api/ingestApi.d.ts +21 -7
  9. package/dist/api/types/360.d.ts +122 -43
  10. package/dist/api/types/aiConfigs.d.ts +244 -0
  11. package/dist/api/types/analytics.d.ts +36 -9
  12. package/dist/api/types/anpr.d.ts +31 -2
  13. package/dist/api/types/auditLogs.d.ts +18 -0
  14. package/dist/api/types/authz.d.ts +71 -0
  15. package/dist/api/types/automation.d.ts +23 -4
  16. package/dist/api/types/axios.d.ts +8 -9
  17. package/dist/api/types/bim.d.ts +28 -5
  18. package/dist/api/types/camera.d.ts +7 -10
  19. package/dist/api/types/comments.d.ts +10 -7
  20. package/dist/api/types/connector.d.ts +2 -0
  21. package/dist/api/types/copilot.d.ts +0 -3
  22. package/dist/api/types/detections.d.ts +3 -10
  23. package/dist/api/types/drone.d.ts +7 -7
  24. package/dist/api/types/errors.d.ts +13 -1
  25. package/dist/api/types/gateReport.d.ts +1 -11
  26. package/dist/api/types/gateReportManagement.d.ts +170 -0
  27. package/dist/api/types/hammertech.d.ts +98 -0
  28. package/dist/api/types/index.d.ts +7 -1
  29. package/dist/api/types/ingest.d.ts +90 -3
  30. package/dist/api/types/kit.d.ts +41 -51
  31. package/dist/api/types/media.d.ts +8 -2
  32. package/dist/api/types/notification.d.ts +41 -2
  33. package/dist/api/types/observationEvents.d.ts +140 -0
  34. package/dist/api/types/observations.d.ts +84 -0
  35. package/dist/api/types/planner.d.ts +3 -11
  36. package/dist/api/types/posthog.d.ts +20 -0
  37. package/dist/api/types/project.d.ts +7 -0
  38. package/dist/api/types/recording.d.ts +5 -12
  39. package/dist/api/types/ring.d.ts +16 -16
  40. package/dist/api/types/roi.d.ts +2 -10
  41. package/dist/api/types/routeParams.d.ts +1 -0
  42. package/dist/api/types/shared.d.ts +1 -19
  43. package/dist/api/types/shares.d.ts +0 -13
  44. package/dist/api/types/siteAnalytics.d.ts +3 -5
  45. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  46. package/dist/api/types/siteView.d.ts +0 -1
  47. package/dist/api/types/snapshots.d.ts +13 -0
  48. package/dist/api/types/socket.d.ts +4 -0
  49. package/dist/api/types/storyblok.d.ts +0 -13
  50. package/dist/api/types/timelapse.d.ts +2 -13
  51. package/dist/api/types/user.d.ts +1 -4
  52. package/dist/api/utils.d.ts +0 -1
  53. package/dist/index.js +1453 -788
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.umd.cjs +1 -1
  56. package/dist/index.umd.cjs.map +1 -1
  57. package/dist/shared/types/components.d.ts +97 -33
  58. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  59. package/dist/shared/types/imagePlayer.d.ts +8 -1
  60. package/dist/shared/types/index.d.ts +2 -0
  61. package/dist/shared/types/observations.d.ts +25 -0
  62. package/package.json +4 -2
  63. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -0,0 +1,140 @@
1
+ export declare enum ObservationEventStatus {
2
+ Detected = "detected",
3
+ Approved = "approved",
4
+ Disapproved = "disapproved",
5
+ Unsure = "unsure"
6
+ }
7
+ export interface ObservationEventStatusConfig {
8
+ bg: string;
9
+ fg: string;
10
+ border: string;
11
+ label: string;
12
+ }
13
+ export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
14
+ export interface SiteAnalyticsObservationEvent {
15
+ id: number;
16
+ sourceType?: ObservationSourceType;
17
+ sessionId?: string | null;
18
+ markerId?: string | null;
19
+ drawingId?: string | null;
20
+ drawingName?: string | null;
21
+ walkName?: string | null;
22
+ sightings?: Array<Record<string, unknown>> | null;
23
+ observationTypeId: number;
24
+ observationName: string | null;
25
+ observationCode: string | null;
26
+ cameraExid: string;
27
+ projectExid: string | null;
28
+ startTime: string;
29
+ endTime: string | null;
30
+ confidence: number | null;
31
+ status: ObservationEventStatus;
32
+ aiEvidence: string | null;
33
+ bbox: number[] | null;
34
+ model: string | null;
35
+ promptId: number | null;
36
+ observationMetadata: Record<string, unknown> | null;
37
+ trigger: ObservationEventTrigger | string;
38
+ reviewedBy: string | null;
39
+ reviewedAt: string | null;
40
+ insertedAt: string;
41
+ }
42
+ export type ObservationEventQueryParams = {
43
+ cameraExid?: string;
44
+ projectExid?: string;
45
+ observationTypeIds?: string;
46
+ status?: ObservationEventStatus | string;
47
+ sourceType?: ObservationSourceType | string;
48
+ modelName?: string;
49
+ sortBy?: string;
50
+ sortDir?: "asc" | "desc";
51
+ page?: number;
52
+ limit?: number;
53
+ };
54
+ export interface ObservationModelOption {
55
+ modelName: string;
56
+ total: number;
57
+ }
58
+ export interface ObservationEventListResponse {
59
+ items: SiteAnalyticsObservationEvent[];
60
+ total: number;
61
+ page: number;
62
+ limit: number;
63
+ from: number;
64
+ to: number;
65
+ }
66
+ export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
67
+ export interface ObservationEventReviewPayload {
68
+ status: ObservationEventVerdict;
69
+ }
70
+ export interface ObservationEventReviewResponse {
71
+ updated: boolean;
72
+ id: number | string;
73
+ message: string;
74
+ }
75
+ export declare enum ObservationSourceType {
76
+ Camera = "camera",
77
+ Walk360 = "walk360",
78
+ Drone = "drone"
79
+ }
80
+ export declare enum ObservationEventTrigger {
81
+ CameraDetection = "camera_detection",
82
+ Walk = "walk"
83
+ }
84
+ export declare enum Walk360ProcessedSessionStatus {
85
+ Done = "done",
86
+ Processing = "processing",
87
+ Retryable = "retryable",
88
+ Error = "error"
89
+ }
90
+ export interface Walk360Activity {
91
+ observationTypeId: number;
92
+ }
93
+ export interface Walk360WorkerInfo {
94
+ coolifyAppId?: string | null;
95
+ workerStatus?: string | null;
96
+ workerIsRunning?: boolean;
97
+ appUrl?: string | null;
98
+ visionProvider?: string;
99
+ }
100
+ export interface Walk360Config extends Walk360WorkerInfo {
101
+ projectExid: string;
102
+ enabled: boolean;
103
+ startDate: string | null;
104
+ activities: Walk360Activity[];
105
+ configured: boolean;
106
+ maxParallelWalks?: number;
107
+ }
108
+ export interface Walk360ConfigSummary extends Walk360WorkerInfo {
109
+ projectExid: string;
110
+ projectName?: string | null;
111
+ enabled: boolean;
112
+ startDate: string | null;
113
+ activities: Walk360Activity[];
114
+ maxParallelWalks: number;
115
+ walksDone: number;
116
+ walksProcessing: number;
117
+ walksRetryable: number;
118
+ eventsCreated: number;
119
+ lastProcessedAt: string | null;
120
+ updatedAt: string | null;
121
+ }
122
+ export interface Walk360WorkerAction {
123
+ projectExid: string;
124
+ appUuid: string | null;
125
+ message: string;
126
+ state: string;
127
+ }
128
+ export interface Walk360ProcessedSession {
129
+ id: number;
130
+ projectExid: string;
131
+ sourceType: ObservationSourceType;
132
+ sessionId: string;
133
+ status: Walk360ProcessedSessionStatus;
134
+ markersTotal: number | null;
135
+ markersProcessed: number | null;
136
+ eventsCreated: number | null;
137
+ error: string | null;
138
+ startedAt: string;
139
+ finishedAt: string | null;
140
+ }
@@ -0,0 +1,84 @@
1
+ import { type ProjectExid, type CameraExid, type DateType, type BBox, AiObservationFeasibilityStatus, ObservationEventStatus, DownloadFileType } from "@evercam/api/types";
2
+ export type ObservationApproval = boolean | ObservationEventStatus.Unsure | null;
3
+ export type ObservationEvent = {
4
+ id: number;
5
+ observationTypeId: number;
6
+ observationCode: string | null;
7
+ cameraExid: CameraExid;
8
+ projectExid: ProjectExid | null;
9
+ capturedAt: DateType;
10
+ endTime: DateType | null;
11
+ confidence: number | null;
12
+ status: ObservationEventStatus;
13
+ isApproved: ObservationApproval;
14
+ reason: string | null;
15
+ personBbox: BBox | null;
16
+ modelVersion: string | null;
17
+ observationMetadata: Record<string, unknown> | null;
18
+ trigger: string;
19
+ reviewedBy: string | null;
20
+ reviewedAt: DateType | null;
21
+ };
22
+ export type ObservationType = {
23
+ id: number;
24
+ observationCode: string;
25
+ name: string;
26
+ description: string | null;
27
+ type: string;
28
+ severity: number | null;
29
+ feasibilityStatus: AiObservationFeasibilityStatus;
30
+ };
31
+ export declare enum ObservationMissingItem {
32
+ Helmet = "helmet",
33
+ HighVisVest = "high_vis_vest",
34
+ Gloves = "gloves",
35
+ Glasses = "glasses"
36
+ }
37
+ export type ObservationEventsQueryParams = {
38
+ cameraExid?: CameraExid;
39
+ observationCode?: string;
40
+ fromDate?: string;
41
+ toDate?: string;
42
+ missingItems?: string;
43
+ status?: ObservationEventStatus;
44
+ sort?: string;
45
+ page?: number;
46
+ limit?: number;
47
+ };
48
+ export type ObservationEventsExportQueryParams = {
49
+ cameraExid?: CameraExid;
50
+ fromDate: string;
51
+ toDate: string;
52
+ required?: string;
53
+ compliant?: boolean;
54
+ fileType: DownloadFileType;
55
+ directDownload?: boolean;
56
+ includeInvalid?: boolean;
57
+ };
58
+ export type ObservationApprovalUpdateResponse = {
59
+ updated: boolean;
60
+ id: number | string | null;
61
+ message: string;
62
+ };
63
+ export declare enum ObservationCountsGranularity {
64
+ Day = "day",
65
+ Week = "week",
66
+ Month = "month"
67
+ }
68
+ export type ObservationEventsCountsQueryParams = {
69
+ cameraExid?: CameraExid;
70
+ observationCode?: string;
71
+ fromDate?: string;
72
+ toDate?: string;
73
+ missingItems?: string;
74
+ status?: ObservationEventStatus;
75
+ granularity?: ObservationCountsGranularity;
76
+ };
77
+ export type ObservationEventCount = {
78
+ bucket: DateType;
79
+ total: number;
80
+ };
81
+ export declare enum ObservationRequiredItem {
82
+ Helmet = "has_helmet",
83
+ HighVisVest = "has_high_vis_vest"
84
+ }
@@ -1,4 +1,4 @@
1
- import { GeoPoint } from "./shared";
1
+ import { GeoPoint, TuplePoint2D } from "./shared";
2
2
  import { MapType } from "./map";
3
3
  export type PlannerListItem = {
4
4
  id: string;
@@ -15,8 +15,7 @@ export type PlannerListItem = {
15
15
  projectMapType?: MapType;
16
16
  sessionId?: string;
17
17
  };
18
- export type Coordinate = [number, number];
19
- export type PolygonPath = Coordinate[];
18
+ export type PolygonPath = TuplePoint2D[];
20
19
  export type PolygonCoordinates = PolygonPath[];
21
20
  export interface GeoJSONPolygon {
22
21
  type: "Polygon";
@@ -30,6 +29,7 @@ export declare enum PlannerUrlParams {
30
29
  DealId = "deal_id"
31
30
  }
32
31
  export declare enum EDistortImageModes {
32
+ Edit = "edit",
33
33
  FreeRotate = "freeRotate",
34
34
  Lock = "lock",
35
35
  Rotate = "rotate",
@@ -52,14 +52,6 @@ export declare enum EPageType {
52
52
  List = "list",
53
53
  Item = "item"
54
54
  }
55
- export declare enum EPaths {
56
- Home = "/",
57
- Session = "/session"
58
- }
59
- export declare enum EProjectItems {
60
- Camera = "camera",
61
- Overlay = "overlay"
62
- }
63
55
  export declare enum ERoles {
64
56
  Admin = "admin",
65
57
  User = "user"
@@ -16,6 +16,26 @@ export declare enum ActiveUsersMetric {
16
16
  WAU = "wau",
17
17
  MAU = "mau"
18
18
  }
19
+ export type PosthogUser = {
20
+ id: string;
21
+ email: string;
22
+ isWeeklyActiveUser: number;
23
+ isMonthlyActiveUser: number;
24
+ eventsCount: number;
25
+ };
26
+ export type PosthogUsersRequestParams = {
27
+ companyExid?: string;
28
+ projectExid?: string;
29
+ cameraExid?: string;
30
+ productsActivityOnly?: boolean;
31
+ afterId?: string;
32
+ size?: number;
33
+ };
34
+ export type PosthogUsersResponse = {
35
+ data: PosthogUser[];
36
+ hasMore: boolean;
37
+ size: number;
38
+ };
19
39
  export type PosthogUserParams = {
20
40
  firstname?: string;
21
41
  lastname?: string;
@@ -68,6 +68,13 @@ export declare enum ProjectArchiveTier {
68
68
  export type UpdateCameraRestrictionPayload = {
69
69
  isAccessRestricted?: boolean;
70
70
  };
71
+ export type CameraPosition = {
72
+ cameraExid: CameraExid;
73
+ position: number;
74
+ };
75
+ export type ReorderCamerasPayload = {
76
+ positions: CameraPosition[];
77
+ };
71
78
  export type Logo = {
72
79
  id: number;
73
80
  projectId: number;
@@ -1,22 +1,24 @@
1
- import { ApiCredentials } from "@evercam/api/types";
1
+ import { ApiCredentials, PaginationParams } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
5
5
  data: string;
6
6
  status?: string;
7
7
  };
8
- export type NearestSnapshotRequestPayload = {
8
+ export type SnapshotRequestPayload = {
9
9
  apiKey?: string;
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
13
  includeImage?: boolean;
14
+ view?: boolean;
14
15
  };
15
16
  export type AvailableDaysRequestPayload = {
16
17
  cameraId: string;
17
18
  year: string;
18
19
  month: string;
19
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
20
22
  };
21
23
  export type AvailableDaysResponsePayload = {
22
24
  days: Array<number>;
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
39
41
  notes?: string;
40
42
  }>;
41
43
  };
42
- export type SnapshotRangeRequestPayload = {
44
+ export type SnapshotRangeRequestPayload = PaginationParams & {
43
45
  from: string;
44
46
  to: string;
45
- limit?: number;
46
- page?: number;
47
47
  schedule?: boolean;
48
48
  count?: number;
49
49
  };
@@ -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",
@@ -1,8 +1,23 @@
1
+ export type RingCompleteLinkingPayload = {
2
+ nonce: string;
3
+ time: string;
4
+ };
5
+ /** The only auto-import status complete-linking returns today. */
6
+ export declare const RING_AUTO_IMPORT_QUEUED = "queued";
7
+ export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
8
+ export type RingCompleteLinkingResponsePayload = {
9
+ status: string;
10
+ /** Absent when the API did not schedule an import. */
11
+ autoImport?: RingAutoImportStatus;
12
+ };
1
13
  export type RingDevice = {
2
14
  deviceId: string;
3
15
  name: string;
4
- deviceType: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
5
19
  firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
6
21
  batteryLife: number | null;
7
22
  location: string | null;
8
23
  imported: boolean;
@@ -13,21 +28,6 @@ export type RingDevice = {
13
28
  export type RingDevicesResponsePayload = {
14
29
  devices: RingDevice[];
15
30
  };
16
- export type RingImportDevicesPayload = {
17
- deviceIds: string[];
18
- projectExid: string;
19
- deviceNames?: Record<string, string>;
20
- };
21
- export type RingImportResponsePayload = {
22
- cameras: Array<{
23
- exid: string;
24
- name: string;
25
- }>;
26
- project: {
27
- exid: string;
28
- name: string;
29
- };
30
- };
31
31
  export type RingMoveDevicePayload = {
32
32
  projectExid: string;
33
33
  };
@@ -3,7 +3,8 @@ export declare enum RoiType {
3
3
  AnprContext = "anpr_context",
4
4
  ExclusionZone = "exclusion_zone",
5
5
  WorkflowArea = "workflow_area",
6
- SiteAnalytics = "site_analytics"
6
+ SiteAnalytics = "site_analytics",
7
+ Ppe = "ppe_roi"
7
8
  }
8
9
  export declare enum RoiShapeType {
9
10
  Polygon = "polygon",
@@ -11,15 +12,6 @@ export declare enum RoiShapeType {
11
12
  Direction = "direction",
12
13
  Rectangle = "rectangle"
13
14
  }
14
- export type RoiShape = {
15
- id: number | null;
16
- name: string;
17
- x1: number;
18
- x2: number;
19
- y1: number;
20
- y2: number;
21
- points?: [number, number][];
22
- };
23
15
  export declare enum RoiDirection {
24
16
  Arrived = "arrived",
25
17
  Left = "left",
@@ -1,6 +1,7 @@
1
1
  export type RouteParams = {
2
2
  projectExid?: string;
3
3
  cameraExid?: string;
4
+ mediaExid?: string;
4
5
  timestamp?: string;
5
6
  fromDate?: string;
6
7
  toDate?: string;
@@ -128,16 +128,8 @@ export type FeedbackPayload = {
128
128
  messageId?: number;
129
129
  conversationId?: number;
130
130
  };
131
- export type Stringified<T> = string & {
132
- [P in keyof T]: {
133
- "_ value": T[P];
134
- };
135
- };
136
- export interface JSON {
137
- stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
138
- parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
139
- }
140
131
  export type TuplePoint2D = [number, number];
132
+ export type TuplePoint3D = [number, number, number];
141
133
  export type Point2D = {
142
134
  x: number;
143
135
  y: number;
@@ -177,16 +169,6 @@ export declare enum TimelinePrecision {
177
169
  Minute = "minute",
178
170
  Events = "events"
179
171
  }
180
- export type EntityStatsQueryParams = {
181
- period: "day" | "week" | "month";
182
- startDate: string;
183
- endDate: string;
184
- };
185
- export type EntityStat = {
186
- period: string;
187
- name: string;
188
- count: number;
189
- };
190
172
  export declare enum TaskStatus {
191
173
  Idle = "idle",
192
174
  Loading = "loading",
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
33
33
  email: string;
34
34
  name: string;
35
35
  }>;
36
- export type ShareCreateRequestPayload = {
37
- email: string[] | string;
38
- message?: string;
39
- permission?: string;
40
- rights: string;
41
- apiId?: string;
42
- apiKey?: string;
43
- };
44
36
  export type ShareCreateResponsePayload = {
45
37
  shares: Share[];
46
38
  shareRequests: ShareRequest[];
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
51
43
  Used = 1,
52
44
  Failed = -2
53
45
  }
54
- export declare enum ShareVisibility {
55
- PublicDiscoverable = "publicDiscoverable",
56
- PublicUndiscoverable = "publicUndiscoverable",
57
- Private = "private"
58
- }
@@ -1,4 +1,4 @@
1
- import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
1
+ import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
184
184
  directDownload?: boolean;
185
185
  };
186
186
  export type SmartSearchHeatmapPoint = {
187
- coordinates: [number, number];
187
+ coordinates: TuplePoint2D;
188
188
  detectionsCount: number;
189
189
  };
190
190
  export type SmartSearchHeatmapData = {
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
232
232
  feature: CameraFeatureFlag;
233
233
  processedIntervals: TimelineDateInterval[];
234
234
  };
235
- export type SmartSearchRequestPayload = {
235
+ export type SmartSearchRequestPayload = PaginationParams & {
236
236
  cameraExids?: CameraExid[];
237
237
  drawingIds?: _360FloorId[];
238
238
  walkIds?: string[];
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
240
240
  payload: SmartSearchBackendQuery;
241
241
  fromDate?: string;
242
242
  toDate?: string;
243
- page?: number;
244
- pageSize?: number;
245
243
  threshold?: number;
246
244
  };
247
245
  type SmartSearchResultItemBase = {
@@ -0,0 +1,117 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export type SiteAnalyticsCoolifyStatus = {
3
+ appUuid: string | null;
4
+ name: string | null;
5
+ serverUuid: string | null;
6
+ serverName: string | null;
7
+ appUrl: string | null;
8
+ status: string | null;
9
+ isRunning: boolean;
10
+ updatedAt: string | null;
11
+ };
12
+ export type SiteAnalyticsProjectMeta = {
13
+ exid: ProjectExid;
14
+ name: string | null;
15
+ timezone: string | null;
16
+ featureFlags: string[] | null;
17
+ };
18
+ export type SiteAnalyticsCameraMeta = {
19
+ exid: CameraExid;
20
+ name: string | null;
21
+ status: string | null;
22
+ featureFlags: string[] | null;
23
+ };
24
+ export type SiteAnalyticsManagedApp = {
25
+ id: number;
26
+ projectExid: ProjectExid;
27
+ cameraExid: CameraExid;
28
+ coolifyAppId: string | null;
29
+ appVersion: string;
30
+ modelId: number | null;
31
+ startDate: DateType | null;
32
+ endDate: DateType | null;
33
+ startHour: number;
34
+ endHour: number;
35
+ source: string;
36
+ override: boolean;
37
+ timeIncreaseFrequency: number;
38
+ skipWeekends: boolean;
39
+ tracking: boolean;
40
+ observations: boolean;
41
+ insertedAt: DateType | null;
42
+ updatedAt: DateType | null;
43
+ coolify: SiteAnalyticsCoolifyStatus | null;
44
+ project: SiteAnalyticsProjectMeta | null;
45
+ camera: SiteAnalyticsCameraMeta | null;
46
+ lastTrackingAt: DateType | null;
47
+ };
48
+ export type CreateSiteAnalyticsAppPayload = {
49
+ projectExid: ProjectExid;
50
+ cameraExid: CameraExid;
51
+ coolifyServerUuid: string;
52
+ appVersion?: string;
53
+ modelId?: number | null;
54
+ startDate?: DateType | null;
55
+ endDate?: DateType | null;
56
+ startHour?: number;
57
+ endHour?: number;
58
+ source?: string;
59
+ override?: boolean;
60
+ skipWeekends?: boolean;
61
+ timeIncreaseFrequency?: number;
62
+ tracking?: boolean;
63
+ observations?: boolean;
64
+ observationPromptId?: number | null;
65
+ };
66
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
67
+ export type ModelOption = {
68
+ modelId: number;
69
+ version: string;
70
+ };
71
+ export type SiteAnalyticsAppConfigFormValue = {
72
+ appVersion: string;
73
+ modelId: number | null;
74
+ startDate: string | null;
75
+ endDate: string | null;
76
+ startHour: number;
77
+ endHour: number;
78
+ source: string;
79
+ override: boolean;
80
+ timeIncreaseFrequency: number;
81
+ skipWeekends: boolean;
82
+ };
83
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
84
+ projectExid?: ProjectExid;
85
+ includeStatus?: boolean;
86
+ };
87
+ export type CreateSiteAnalyticsAppResponse = {
88
+ created: boolean;
89
+ id: number | null;
90
+ data: SiteAnalyticsManagedApp | null;
91
+ count: number | null;
92
+ message: string;
93
+ };
94
+ export type DeleteSiteAnalyticsAppResponse = {
95
+ deleted: boolean;
96
+ count: number;
97
+ message: string;
98
+ };
99
+ export type ObservationConfigActivity = {
100
+ observationTypeId: number;
101
+ every: number | null;
102
+ };
103
+ export type ObservationConfig = {
104
+ id: number;
105
+ cameraExid: CameraExid;
106
+ projectExid: ProjectExid | null;
107
+ enabled: boolean;
108
+ activities: ObservationConfigActivity[];
109
+ createdBy: string | null;
110
+ insertedAt: DateType | null;
111
+ updatedAt: DateType | null;
112
+ };
113
+ export type UpsertObservationConfigPayload = {
114
+ projectExid?: ProjectExid;
115
+ enabled: boolean;
116
+ activities: ObservationConfigActivity[];
117
+ };
@@ -53,7 +53,6 @@ export type ForgeMarker = {
53
53
  };
54
54
  export type ForgeProjectData = {
55
55
  urns?: ForgeUrn[];
56
- isEvercamAccount?: boolean;
57
56
  accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
58
57
  timeline?: TimelineItem[];
59
58
  savedView?: ForgeView;
@@ -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;
@@ -42,6 +47,14 @@ export type SnapshotTestResponse = {
42
47
  status: string;
43
48
  data: string;
44
49
  };
50
+ export type SnapshotEmailDeliveryRequestPayload = {
51
+ snapshot: string;
52
+ recipients?: string[];
53
+ message?: string;
54
+ };
55
+ export type SnapshotEmailDeliveryResponsePayload = {
56
+ warning?: string;
57
+ };
45
58
  export type DeleteSnapshotQueryParams = {
46
59
  fromDate: DateType;
47
60
  toDate: DateType;