@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be

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 (86) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +100 -97
  4. package/dist/api/api/aiApi.d.ts +130 -7
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +52 -33
  7. package/dist/api/api/evercamLabsApi.d.ts +9 -17
  8. package/dist/api/api/exNvrApi.d.ts +1 -1
  9. package/dist/api/api/index.d.ts +1 -0
  10. package/dist/api/api/ingestApi.d.ts +56 -34
  11. package/dist/api/api/reportsApi.d.ts +15 -0
  12. package/dist/api/types/360.d.ts +178 -86
  13. package/dist/api/types/admin.d.ts +37 -3
  14. package/dist/api/types/aiConfigs.d.ts +244 -0
  15. package/dist/api/types/analytics.d.ts +57 -33
  16. package/dist/api/types/anpr.d.ts +36 -6
  17. package/dist/api/types/apiKey.d.ts +70 -0
  18. package/dist/api/types/auditLogs.d.ts +179 -21
  19. package/dist/api/types/authz.d.ts +71 -0
  20. package/dist/api/types/automation.d.ts +32 -4
  21. package/dist/api/types/axios.d.ts +10 -9
  22. package/dist/api/types/bim.d.ts +55 -12
  23. package/dist/api/types/camera.d.ts +236 -127
  24. package/dist/api/types/comments.d.ts +67 -26
  25. package/dist/api/types/company.d.ts +11 -5
  26. package/dist/api/types/compare.d.ts +1 -1
  27. package/dist/api/types/connector.d.ts +2 -0
  28. package/dist/api/types/detections.d.ts +6 -10
  29. package/dist/api/types/drone.d.ts +94 -6
  30. package/dist/api/types/emailMessages.d.ts +27 -0
  31. package/dist/api/types/errors.d.ts +19 -2
  32. package/dist/api/types/gateReport.d.ts +9 -23
  33. package/dist/api/types/gateReportManagement.d.ts +170 -0
  34. package/dist/api/types/hammertech.d.ts +98 -0
  35. package/dist/api/types/hdd.d.ts +1 -1
  36. package/dist/api/types/index.d.ts +11 -2
  37. package/dist/api/types/ingest.d.ts +194 -27
  38. package/dist/api/types/kit.d.ts +97 -117
  39. package/dist/api/types/map.d.ts +12 -0
  40. package/dist/api/types/media.d.ts +31 -3
  41. package/dist/api/types/notification.d.ts +52 -2
  42. package/dist/api/types/nvr.d.ts +39 -8
  43. package/dist/api/types/observationEvents.d.ts +167 -0
  44. package/dist/api/types/observations.d.ts +89 -0
  45. package/dist/api/types/planner.d.ts +56 -10
  46. package/dist/api/types/posthog.d.ts +56 -0
  47. package/dist/api/types/progressPhoto.d.ts +38 -25
  48. package/dist/api/types/project.d.ts +69 -22
  49. package/dist/api/types/recording.d.ts +7 -13
  50. package/dist/api/types/recycleBin.d.ts +8 -2
  51. package/dist/api/types/reports.d.ts +109 -0
  52. package/dist/api/types/ring.d.ts +16 -16
  53. package/dist/api/types/roi.d.ts +3 -11
  54. package/dist/api/types/routeParams.d.ts +1 -0
  55. package/dist/api/types/router.d.ts +15 -10
  56. package/dist/api/types/shared.d.ts +39 -29
  57. package/dist/api/types/shares.d.ts +0 -13
  58. package/dist/api/types/sim.d.ts +18 -6
  59. package/dist/api/types/siteAnalytics.d.ts +3 -5
  60. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  61. package/dist/api/types/siteView.d.ts +79 -0
  62. package/dist/api/types/snapshots.d.ts +63 -10
  63. package/dist/api/types/socket.d.ts +4 -0
  64. package/dist/api/types/sso.d.ts +11 -37
  65. package/dist/api/types/storageProvider.d.ts +16 -5
  66. package/dist/api/types/storyblok.d.ts +0 -13
  67. package/dist/api/types/timelapse.d.ts +4 -8
  68. package/dist/api/types/user.d.ts +48 -33
  69. package/dist/api/types/widget.d.ts +13 -4
  70. package/dist/api/utils.d.ts +1 -1
  71. package/dist/index.js +2242 -926
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.umd.cjs +1 -1
  74. package/dist/index.umd.cjs.map +1 -1
  75. package/dist/shared/types/components.d.ts +506 -46
  76. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  77. package/dist/shared/types/droneUpload.d.ts +93 -0
  78. package/dist/shared/types/imagePlayer.d.ts +8 -1
  79. package/dist/shared/types/index.d.ts +4 -0
  80. package/dist/shared/types/observations.d.ts +25 -0
  81. package/dist/shared/types/report.d.ts +107 -0
  82. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  83. package/dist/shared/utils/datePresets.d.ts +31 -0
  84. package/package.json +4 -2
  85. package/dist/api/types/copilot.d.ts +0 -162
  86. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,11 +1,32 @@
1
+ import { CommentsScope, CommentThreeSixtyContext } from "./comments";
1
2
  export declare enum NotificationType {
2
3
  CameraShare = "camera_share",
3
4
  CameraStatusChange = "camera_status_changed",
4
5
  Mention = "mention",
6
+ CommentMention = "comment_mention",
5
7
  TimelapseCreated = "timelapse_created",
6
8
  TimelapseFailed = "timelapse_failed",
7
9
  DroneProcessing = "drone_processing_done",
8
- Processing360 = "three_sixty_done"
10
+ Processing360 = "three_sixty_done",
11
+ SmartSearchExportReady = "smart_search_export_ready",
12
+ SmartSearchExportFailed = "smart_search_export_failed",
13
+ GateReportExportReady = "gate_report_export_ready",
14
+ GateReportExportFailed = "gate_report_export_failed",
15
+ PpeExportReady = "ppe_export_ready",
16
+ PpeExportFailed = "ppe_export_failed",
17
+ WeatherExportReady = "weather_export_ready",
18
+ WeatherExportFailed = "weather_export_failed",
19
+ CompareReady = "compare_ready",
20
+ CompareFailed = "compare_failed",
21
+ ClipExportReady = "clip_export_ready",
22
+ ClipExportFailed = "clip_export_failed",
23
+ NvrClipReady = "nvr_clip_ready",
24
+ NvrClipFailed = "nvr_clip_failed",
25
+ UploadComplete = "upload_complete",
26
+ UploadFailed = "upload_failed",
27
+ RingCamerasImported = "ring_cameras_imported",
28
+ StorageWarning = "storage_warning",
29
+ Other = "other"
9
30
  }
10
31
  export interface NotificationContextBase {
11
32
  cameraExid?: string;
@@ -41,7 +62,36 @@ export interface Processing360Context extends NotificationContextBase {
41
62
  date: string;
42
63
  floor: string;
43
64
  }
44
- export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
65
+ export interface ExportNotificationContext extends NotificationContextBase {
66
+ projectExid: string;
67
+ archiveExid?: string;
68
+ compareExid?: string;
69
+ }
70
+ export interface UploadNotificationContext extends NotificationContextBase {
71
+ projectExid: string;
72
+ }
73
+ export interface RingCamerasImportedContext extends NotificationContextBase {
74
+ projectExid: string;
75
+ projectName: string;
76
+ cameras: Array<{
77
+ exid: string;
78
+ name: string;
79
+ }>;
80
+ }
81
+ export interface StorageWarningContext extends NotificationContextBase {
82
+ projectExid: string;
83
+ cameraName: string;
84
+ }
85
+ export interface CommentMentionContext extends NotificationContextBase {
86
+ projectExid: string;
87
+ commentId: number;
88
+ scope: CommentsScope;
89
+ commentContext: CommentThreeSixtyContext;
90
+ content?: string;
91
+ label?: string;
92
+ projectName?: string;
93
+ }
94
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
45
95
  export type Notification = {
46
96
  id: number;
47
97
  type: NotificationType;
@@ -1,15 +1,17 @@
1
1
  import type { NvrModel } from "@evercam/api/types";
2
2
  export type Nvr = {
3
3
  id?: number;
4
+ kitId?: number;
4
5
  deviceType: NvrDeviceType;
5
6
  serial: string;
6
7
  model: NvrModel;
7
- httpUrl: string;
8
- rtspUrl: string;
8
+ httpUrl: string | null;
9
+ rtspUrl: string | null;
9
10
  macAddress: string;
10
- username: string;
11
- password: string;
11
+ username: string | null;
12
+ password: string | null;
12
13
  nerves: boolean;
14
+ version?: string;
13
15
  };
14
16
  export declare enum NvrDeviceType {
15
17
  Rpi4 = "rpi4",
@@ -26,11 +28,40 @@ export declare enum NvrHddStatus {
26
28
  }
27
29
  export type NvrCreatePayload = {
28
30
  serial?: string;
29
- httpUrl: string;
30
- rtspUrl?: string;
31
+ httpUrl?: string | null;
32
+ rtspUrl?: string | null;
31
33
  deviceType?: NvrDeviceType;
32
34
  model: NvrModel;
33
- username: string;
34
- password: string;
35
+ username?: string | null;
36
+ password?: string | null;
35
37
  kitId?: number;
36
38
  };
39
+ export type NvrConnectionFields = Pick<NvrCreatePayload, "username" | "password" | "httpUrl" | "rtspUrl">;
40
+ export type AdminNvr = {
41
+ name: string;
42
+ exid: string;
43
+ externalHost: string | null;
44
+ model: string | null;
45
+ deviceName: string | null;
46
+ macAddress: string | null;
47
+ firmwareVersion: string | null;
48
+ resolution: string | null;
49
+ bitrateType: string | null;
50
+ videoQuality: string | null;
51
+ frameRate: number | null;
52
+ bitrate: string | null;
53
+ videoEncoding: string | null;
54
+ hddName: string | null;
55
+ hddCapacity: string | null;
56
+ freeSpace: string | null;
57
+ hddStatus: string | null;
58
+ hddProperty: string | null;
59
+ nvrStatus: string;
60
+ timeMode: string | null;
61
+ localTime: string | null;
62
+ timezone: string | null;
63
+ addressingFormatType: string | null;
64
+ hostName: string | null;
65
+ portNo: string | null;
66
+ synchronizeInterval: string | null;
67
+ };
@@ -0,0 +1,167 @@
1
+ import type { VisionProvider } from "@evercam/api/types";
2
+ export declare enum ObservationEventStatus {
3
+ Detected = "detected",
4
+ Approved = "approved",
5
+ Disapproved = "disapproved",
6
+ Unsure = "unsure"
7
+ }
8
+ export interface ObservationEventStatusConfig {
9
+ bg: string;
10
+ fg: string;
11
+ border: string;
12
+ label: string;
13
+ }
14
+ export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
15
+ export interface SiteAnalyticsObservationEvent {
16
+ id: number;
17
+ sourceType?: ObservationSourceType;
18
+ sessionId?: string | null;
19
+ markerId?: string | null;
20
+ drawingId?: string | null;
21
+ drawingName?: string | null;
22
+ walkName?: string | null;
23
+ sightings?: Array<Record<string, unknown>> | null;
24
+ observationTypeId: number;
25
+ observationName: string | null;
26
+ observationCode: string | null;
27
+ cameraExid: string;
28
+ projectExid: string | null;
29
+ startTime: string;
30
+ endTime: string | null;
31
+ confidence: number | null;
32
+ status: ObservationEventStatus;
33
+ aiEvidence: string | null;
34
+ bbox: number[] | null;
35
+ model: string | null;
36
+ promptId: number | null;
37
+ observationMetadata: Record<string, unknown> | null;
38
+ trigger: ObservationEventTrigger | string;
39
+ reviewedBy: string | null;
40
+ reviewedAt: string | null;
41
+ insertedAt: string;
42
+ }
43
+ export type ObservationEventQueryParams = {
44
+ cameraExid?: string;
45
+ projectExid?: string;
46
+ observationTypeIds?: string;
47
+ status?: ObservationEventStatus | string;
48
+ sourceType?: ObservationSourceType | string;
49
+ modelName?: string;
50
+ sortBy?: string;
51
+ sortDir?: "asc" | "desc";
52
+ page?: number;
53
+ limit?: number;
54
+ };
55
+ export interface ObservationModelOption {
56
+ modelName: string;
57
+ total: number;
58
+ }
59
+ export interface ObservationEventListResponse {
60
+ items: SiteAnalyticsObservationEvent[];
61
+ total: number;
62
+ page: number;
63
+ limit: number;
64
+ from: number;
65
+ to: number;
66
+ }
67
+ export interface SiteAnalyticsObservationEventRaw {
68
+ id: number;
69
+ observationTypeId: number;
70
+ observationCode: string | null;
71
+ cameraExid: string;
72
+ projectExid: string | null;
73
+ capturedAt: string;
74
+ endTime: string | null;
75
+ confidence: number | null;
76
+ status: ObservationEventStatus;
77
+ reason: string | null;
78
+ personBbox: number[] | null;
79
+ modelVersion: string | null;
80
+ observationMetadata: Record<string, unknown> | null;
81
+ trigger: string;
82
+ reviewedBy: string | null;
83
+ reviewedAt: string | null;
84
+ }
85
+ export interface ObservationEventListResponseRaw {
86
+ items: SiteAnalyticsObservationEventRaw[];
87
+ total: number;
88
+ page: number;
89
+ limit: number;
90
+ from: number;
91
+ to: number;
92
+ }
93
+ export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
94
+ export interface ObservationEventReviewPayload {
95
+ status: ObservationEventVerdict;
96
+ }
97
+ export interface ObservationEventReviewResponse {
98
+ updated: boolean;
99
+ id: number | string;
100
+ message: string;
101
+ }
102
+ export declare enum ObservationSourceType {
103
+ Camera = "camera",
104
+ Walk360 = "walk360",
105
+ Drone = "drone"
106
+ }
107
+ export declare enum ObservationEventTrigger {
108
+ CameraDetection = "camera_detection",
109
+ Walk = "walk"
110
+ }
111
+ export declare enum Walk360ProcessedSessionStatus {
112
+ Done = "done",
113
+ Processing = "processing",
114
+ Retryable = "retryable",
115
+ Error = "error"
116
+ }
117
+ export interface Walk360Activity {
118
+ observationTypeId: number;
119
+ }
120
+ export interface Walk360WorkerInfo {
121
+ coolifyAppId?: string | null;
122
+ workerStatus?: string | null;
123
+ workerIsRunning?: boolean;
124
+ appUrl?: string | null;
125
+ visionProvider?: VisionProvider;
126
+ }
127
+ export interface Walk360Config extends Walk360WorkerInfo {
128
+ projectExid: string;
129
+ enabled: boolean;
130
+ startDate: string | null;
131
+ activities: Walk360Activity[];
132
+ configured: boolean;
133
+ maxParallelWalks?: number;
134
+ }
135
+ export interface Walk360ConfigSummary extends Walk360WorkerInfo {
136
+ projectExid: string;
137
+ projectName?: string | null;
138
+ enabled: boolean;
139
+ startDate: string | null;
140
+ activities: Walk360Activity[];
141
+ maxParallelWalks: number;
142
+ walksDone: number;
143
+ walksProcessing: number;
144
+ walksRetryable: number;
145
+ eventsCreated: number;
146
+ lastProcessedAt: string | null;
147
+ updatedAt: string | null;
148
+ }
149
+ export interface Walk360WorkerAction {
150
+ projectExid: string;
151
+ appUuid: string | null;
152
+ message: string;
153
+ state: string;
154
+ }
155
+ export interface Walk360ProcessedSession {
156
+ id: number;
157
+ projectExid: string;
158
+ sourceType: ObservationSourceType;
159
+ sessionId: string;
160
+ status: Walk360ProcessedSessionStatus;
161
+ markersTotal: number | null;
162
+ markersProcessed: number | null;
163
+ eventsCreated: number | null;
164
+ error: string | null;
165
+ startedAt: string;
166
+ finishedAt: string | null;
167
+ }
@@ -0,0 +1,89 @@
1
+ import { type ProjectExid, type CameraExid, type DateType, type BBox, AiObservationFeasibilityStatus, ObservationEventStatus, ObservationSourceType, 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 | null;
8
+ projectExid: ProjectExid | null;
9
+ sourceType: ObservationSourceType;
10
+ sessionId?: string | null;
11
+ markerId?: string | null;
12
+ drawingId?: string | null;
13
+ drawingName?: string | null;
14
+ walkName?: string | null;
15
+ capturedAt: DateType;
16
+ endTime: DateType | null;
17
+ confidence: number | null;
18
+ status: ObservationEventStatus;
19
+ isApproved: ObservationApproval;
20
+ reason: string | null;
21
+ personBbox: BBox | null;
22
+ modelVersion: string | null;
23
+ observationMetadata: Record<string, unknown> | null;
24
+ trigger: string;
25
+ reviewedBy: string | null;
26
+ reviewedAt: DateType | null;
27
+ };
28
+ export type ObservationType = {
29
+ id: number;
30
+ observationCode: string;
31
+ name: string;
32
+ description: string | null;
33
+ type: string;
34
+ severity: number | null;
35
+ feasibilityStatus: AiObservationFeasibilityStatus;
36
+ };
37
+ export declare enum ObservationMissingItem {
38
+ Helmet = "helmet",
39
+ HighVisVest = "high_vis_vest",
40
+ Gloves = "gloves",
41
+ Glasses = "glasses"
42
+ }
43
+ export type ObservationEventsQueryParams = {
44
+ cameraExid?: CameraExid;
45
+ observationCode?: string;
46
+ type?: string;
47
+ fromDate?: string;
48
+ toDate?: string;
49
+ missingItems?: string;
50
+ status?: ObservationEventStatus;
51
+ sort?: string;
52
+ page?: number;
53
+ limit?: number;
54
+ };
55
+ export type ObservationEventsExportQueryParams = {
56
+ cameraExid?: CameraExid;
57
+ observationCode?: string;
58
+ type?: string;
59
+ missingItems?: string;
60
+ status?: ObservationEventStatus;
61
+ fromDate: string;
62
+ toDate: string;
63
+ fileType: DownloadFileType;
64
+ directDownload?: boolean;
65
+ };
66
+ export type ObservationApprovalUpdateResponse = {
67
+ updated: boolean;
68
+ id: number | string | null;
69
+ message: string;
70
+ };
71
+ export declare enum ObservationCountsGranularity {
72
+ Day = "day",
73
+ Week = "week",
74
+ Month = "month"
75
+ }
76
+ export type ObservationEventsCountsQueryParams = {
77
+ cameraExid?: CameraExid;
78
+ observationCode?: string;
79
+ type?: string;
80
+ fromDate?: string;
81
+ toDate?: string;
82
+ missingItems?: string;
83
+ status?: ObservationEventStatus;
84
+ granularity?: ObservationCountsGranularity;
85
+ };
86
+ export type ObservationEventCount = {
87
+ bucket: DateType;
88
+ total: number;
89
+ };
@@ -1,5 +1,21 @@
1
- export type Coordinate = [number, number];
2
- export type PolygonPath = Coordinate[];
1
+ import { GeoPoint, TuplePoint2D } from "./shared";
2
+ import { MapType } from "./map";
3
+ export type PlannerListItem = {
4
+ id: string;
5
+ projectId: string;
6
+ projectName: string;
7
+ projectLocation: string;
8
+ createdDate: string;
9
+ updatedDate: string;
10
+ owner?: string;
11
+ lastUpdatedBy?: string;
12
+ camerasCount?: number;
13
+ hasPlan?: boolean;
14
+ thumbnailUrl?: string;
15
+ projectMapType?: MapType;
16
+ sessionId?: string;
17
+ };
18
+ export type PolygonPath = TuplePoint2D[];
3
19
  export type PolygonCoordinates = PolygonPath[];
4
20
  export interface GeoJSONPolygon {
5
21
  type: "Polygon";
@@ -13,6 +29,7 @@ export declare enum PlannerUrlParams {
13
29
  DealId = "deal_id"
14
30
  }
15
31
  export declare enum EDistortImageModes {
32
+ Edit = "edit",
16
33
  FreeRotate = "freeRotate",
17
34
  Lock = "lock",
18
35
  Rotate = "rotate",
@@ -35,18 +52,47 @@ export declare enum EPageType {
35
52
  List = "list",
36
53
  Item = "item"
37
54
  }
38
- export declare enum EPaths {
39
- Home = "/",
40
- Session = "/session"
41
- }
42
- export declare enum EProjectItems {
43
- Camera = "camera",
44
- Overlay = "overlay"
45
- }
46
55
  export declare enum ERoles {
47
56
  Admin = "admin",
48
57
  User = "user"
49
58
  }
59
+ export type PlannerOverlay = {
60
+ imageUrl?: string;
61
+ corners?: {
62
+ topLeft: GeoPoint;
63
+ topRight: GeoPoint;
64
+ bottomLeft: GeoPoint;
65
+ bottomRight: GeoPoint;
66
+ } | null;
67
+ };
68
+ export type PlannerCameraMarker = {
69
+ name?: string;
70
+ location?: GeoPoint;
71
+ heading?: number;
72
+ fovAngle?: number;
73
+ fovRadius?: number;
74
+ isVisible?: boolean;
75
+ color?: string;
76
+ };
77
+ export type SitePlanBounds = {
78
+ northEast: GeoPoint;
79
+ southWest: GeoPoint;
80
+ };
81
+ export type SitePlan = {
82
+ id?: string;
83
+ projectId?: string;
84
+ owner?: string;
85
+ lastUpdatedBy?: string;
86
+ projectName?: string;
87
+ projectLocation?: string;
88
+ projectMapType?: EMapTypes;
89
+ projectBounds?: SitePlanBounds;
90
+ overlay?: PlannerOverlay;
91
+ markers?: PlannerCameraMarker[];
92
+ thumbnailUrl?: string;
93
+ createdDate?: string;
94
+ updatedDate?: string;
95
+ };
50
96
  export interface IDrawControl {
51
97
  _toolbars: {
52
98
  draw: {
@@ -16,6 +16,62 @@ 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
+ };
39
+ export type PosthogEventsQueryParams = Partial<{
40
+ companyExid: string;
41
+ projectExid: string;
42
+ cameraExid: string;
43
+ email: string;
44
+ before: string;
45
+ after: string;
46
+ type: string;
47
+ period: string;
48
+ isStatsOnly: boolean;
49
+ whiteListedPages: string | null;
50
+ page: number;
51
+ size: number;
52
+ sort: string | null;
53
+ }>;
54
+ export type PosthogEventListItem = Partial<{
55
+ timestamp: string;
56
+ companyExid: string | null;
57
+ projectExid: string | null;
58
+ cameraExid: string | null;
59
+ email: string;
60
+ name: string;
61
+ page: string;
62
+ context: string;
63
+ action: string;
64
+ properties: Record<string, string>;
65
+ eventsCount: number;
66
+ }>;
67
+ export type PosthogEventsResponse<T = PosthogEventListItem> = {
68
+ data: T[];
69
+ size: number;
70
+ page: number;
71
+ total: number;
72
+ from: number;
73
+ to: number;
74
+ };
19
75
  export type PosthogUserParams = {
20
76
  firstname?: string;
21
77
  lastname?: string;
@@ -1,23 +1,24 @@
1
- import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
2
- export type ProgressPhotosCreateUpdateRequestPayload = {
3
- cameraExids?: string;
4
- notifyDays?: string;
5
- compareDelay?: AutomationType;
6
- notifyTime?: string;
7
- provider?: string;
8
- type?: string;
9
- config?: {
10
- compareDelay?: AutomationType;
11
- period?: number;
12
- recipients?: string;
13
- projectId?: number;
14
- companyId?: number;
15
- catergoryId?: string;
16
- };
17
- subject?: string;
18
- isPaused?: boolean;
19
- timezone?: string;
20
- };
1
+ import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
2
+ export type ProgressPhotosConfig = Partial<{
3
+ compareDelay: number;
4
+ period: number;
5
+ recipients: string;
6
+ projectId: number;
7
+ companyId: number;
8
+ categoryId: string;
9
+ }>;
10
+ export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
11
+ cameraExids: string;
12
+ notifyDays: string;
13
+ compareDelay: number;
14
+ notifyTime: string;
15
+ provider: string;
16
+ type: string;
17
+ config: ProgressPhotosConfig;
18
+ subject: string;
19
+ isPaused: boolean;
20
+ timezone: string;
21
+ }>;
21
22
  export type ProgressPhotosUnSubscribeParams = {
22
23
  email: string;
23
24
  token?: string;
@@ -28,6 +29,15 @@ export type ProgressPhotosResponsePayload = {
28
29
  export type ProgressPhotoItemResponsePayload = {
29
30
  progressPhotos: Automation;
30
31
  };
32
+ export type ProgressPhotoUpdateResponse = {
33
+ id: string;
34
+ cameraIds: string;
35
+ cameraNames: string;
36
+ requesterName: string;
37
+ requesterEmail: string;
38
+ createdAt: string;
39
+ notifyDays: string;
40
+ };
31
41
  export declare enum AutomationDialogType {
32
42
  Create = "create",
33
43
  Edit = "edit",
@@ -39,18 +49,20 @@ export type CameraOption = {
39
49
  };
40
50
  export interface ProgressPhotoItem {
41
51
  id: number;
42
- cameras: CameraOption[] | string[] | string;
52
+ name: string;
53
+ type: string;
54
+ cameras: Array<CameraOption | string> | string;
43
55
  insertedAt: string;
44
56
  provider: string;
45
57
  config: {
46
- recipients: string | string[];
58
+ recipients: string | AutomationEmailRecipient[];
47
59
  sendSnapshotAs: string;
48
60
  };
49
61
  isPaused: boolean;
50
62
  notifyDays: string | string[];
51
63
  notifyTime: string;
52
- api_id: string;
53
- api_key: string;
64
+ apiId: string;
65
+ apiKey: string;
54
66
  timezone: string;
55
67
  exid: string;
56
68
  fullname: string;
@@ -62,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
62
74
  timezone: string;
63
75
  cameras: string;
64
76
  };
65
- export type progressPhotosHistoryQueryParams = {
77
+ export type progressPhotosHistoryQueryParams = PaginationParams & {
66
78
  insertedAt: DateType[];
67
79
  recipients: string;
68
80
  subject: string;
@@ -75,4 +87,5 @@ export type ProgressPhotosHistory = {
75
87
  failedCameraIds: string;
76
88
  subject: string;
77
89
  recipients: string;
90
+ insertedAt: string;
78
91
  };