@evercam/api 1.0.0-7efbe5a66 → 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.
Files changed (107) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -15
  3. package/dist/api/api/adminApi.d.ts +155 -139
  4. package/dist/api/api/aiApi.d.ts +192 -88
  5. package/dist/api/api/authzApi.d.ts +29 -17
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/interceptors.d.ts +1 -1
  8. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  9. package/dist/api/api/evercamApi.d.ts +150 -118
  10. package/dist/api/api/evercamLabsApi.d.ts +10 -17
  11. package/dist/api/api/exNvrApi.d.ts +2 -2
  12. package/dist/api/api/index.d.ts +1 -0
  13. package/dist/api/api/ingestApi.d.ts +133 -58
  14. package/dist/api/api/ptzApi.d.ts +12 -3
  15. package/dist/api/api/reportsApi.d.ts +15 -0
  16. package/dist/api/api/videoWallApi.d.ts +2 -2
  17. package/dist/api/api/weatherApi.d.ts +2 -2
  18. package/dist/api/types/360.d.ts +269 -48
  19. package/dist/api/types/aconex.d.ts +9 -9
  20. package/dist/api/types/admin.d.ts +89 -0
  21. package/dist/api/types/aiConfigs.d.ts +244 -0
  22. package/dist/api/types/analytics.d.ts +164 -76
  23. package/dist/api/types/anpr.d.ts +142 -2
  24. package/dist/api/types/apiKey.d.ts +70 -0
  25. package/dist/api/types/auditLogs.d.ts +179 -21
  26. package/dist/api/types/authz.d.ts +116 -6
  27. package/dist/api/types/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +65 -3
  29. package/dist/api/types/axios.d.ts +20 -14
  30. package/dist/api/types/bim.d.ts +80 -16
  31. package/dist/api/types/camera.d.ts +323 -199
  32. package/dist/api/types/comments.d.ts +68 -31
  33. package/dist/api/types/company.d.ts +53 -6
  34. package/dist/api/types/compare.d.ts +21 -6
  35. package/dist/api/types/connector.d.ts +5 -5
  36. package/dist/api/types/coolify.d.ts +18 -2
  37. package/dist/api/types/detections.d.ts +26 -18
  38. package/dist/api/types/drone.d.ts +95 -6
  39. package/dist/api/types/emailMessages.d.ts +27 -0
  40. package/dist/api/types/errors.d.ts +19 -2
  41. package/dist/api/types/gateReport.d.ts +86 -172
  42. package/dist/api/types/gateReportManagement.d.ts +170 -0
  43. package/dist/api/types/hammertech.d.ts +98 -0
  44. package/dist/api/types/hdd.d.ts +27 -2
  45. package/dist/api/types/index.d.ts +17 -3
  46. package/dist/api/types/ingest.d.ts +285 -17
  47. package/dist/api/types/kit.d.ts +121 -115
  48. package/dist/api/types/map.d.ts +12 -0
  49. package/dist/api/types/media.d.ts +33 -4
  50. package/dist/api/types/notification.d.ts +83 -3
  51. package/dist/api/types/nvr.d.ts +39 -8
  52. package/dist/api/types/oauth.d.ts +62 -0
  53. package/dist/api/types/observationEvents.d.ts +167 -0
  54. package/dist/api/types/observations.d.ts +89 -0
  55. package/dist/api/types/planner.d.ts +98 -8
  56. package/dist/api/types/posthog.d.ts +87 -0
  57. package/dist/api/types/procore.d.ts +13 -6
  58. package/dist/api/types/progressPhoto.d.ts +42 -25
  59. package/dist/api/types/project.d.ts +159 -33
  60. package/dist/api/types/recording.d.ts +9 -15
  61. package/dist/api/types/recycleBin.d.ts +9 -3
  62. package/dist/api/types/reports.d.ts +109 -0
  63. package/dist/api/types/ring.d.ts +53 -0
  64. package/dist/api/types/roi.d.ts +3 -11
  65. package/dist/api/types/routeParams.d.ts +1 -0
  66. package/dist/api/types/router.d.ts +34 -10
  67. package/dist/api/types/shared.d.ts +47 -30
  68. package/dist/api/types/shares.d.ts +6 -157
  69. package/dist/api/types/sim.d.ts +23 -11
  70. package/dist/api/types/siteAnalytics.d.ts +169 -47
  71. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  72. package/dist/api/types/siteView.d.ts +104 -0
  73. package/dist/api/types/smartSeach.d.ts +5 -0
  74. package/dist/api/types/snapshots.d.ts +99 -14
  75. package/dist/api/types/socket.d.ts +4 -0
  76. package/dist/api/types/sso.d.ts +12 -37
  77. package/dist/api/types/storageProvider.d.ts +30 -0
  78. package/dist/api/types/storyblok.d.ts +27 -0
  79. package/dist/api/types/streaming.d.ts +3 -3
  80. package/dist/api/types/tag.d.ts +1 -1
  81. package/dist/api/types/time.d.ts +0 -18
  82. package/dist/api/types/timelapse.d.ts +7 -11
  83. package/dist/api/types/user.d.ts +139 -54
  84. package/dist/api/types/videoWall.d.ts +21 -21
  85. package/dist/api/types/weather.d.ts +75 -11
  86. package/dist/api/types/widget.d.ts +83 -15
  87. package/dist/api/types/xweather.d.ts +4 -4
  88. package/dist/api/utils.d.ts +1 -1
  89. package/dist/index.js +2588 -1132
  90. package/dist/index.js.map +1 -1
  91. package/dist/index.umd.cjs +1 -1
  92. package/dist/index.umd.cjs.map +1 -1
  93. package/dist/shared/types/components.d.ts +769 -33
  94. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  95. package/dist/shared/types/droneUpload.d.ts +93 -0
  96. package/dist/shared/types/imagePlayer.d.ts +10 -3
  97. package/dist/shared/types/index.d.ts +5 -0
  98. package/dist/shared/types/observations.d.ts +25 -0
  99. package/dist/shared/types/rbac.d.ts +80 -0
  100. package/dist/shared/types/report.d.ts +108 -0
  101. package/dist/shared/types/timeline.d.ts +2 -1
  102. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  103. package/dist/shared/utils/datePresets.d.ts +31 -0
  104. package/package.json +4 -2
  105. package/dist/api/types/copilot.d.ts +0 -157
  106. package/dist/api/types/storageServers.d.ts +0 -4
  107. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -16,3 +16,90 @@ 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
+ email?: string;
31
+ productsActivityOnly?: boolean;
32
+ afterId?: string;
33
+ size?: number;
34
+ };
35
+ export type PosthogUserDetails = PosthogUser & {
36
+ createdAt?: string;
37
+ earliestEventTimestamp?: string;
38
+ earliestEventName?: string;
39
+ earliestEventBrowser?: string;
40
+ earliestEventOs?: string;
41
+ earliestEventIp?: string;
42
+ earliestEventProperties: Record<string, string>;
43
+ latestEventTimestamp?: string;
44
+ latestEventName?: string;
45
+ latestEventBrowser?: string;
46
+ latestEventOs?: string;
47
+ latestEventIp?: string;
48
+ latestEventProperties: Record<string, string>;
49
+ };
50
+ export type PosthogUsersResponse = {
51
+ data: PosthogUser[];
52
+ hasMore: boolean;
53
+ size: number;
54
+ };
55
+ export type PosthogEventsQueryParams = Partial<{
56
+ companyExid: string;
57
+ projectExid: string;
58
+ cameraExid: string;
59
+ email: string;
60
+ before: string;
61
+ after: string;
62
+ type: string;
63
+ period: string;
64
+ isStatsOnly: boolean;
65
+ whiteListedPages: string | null;
66
+ page: number;
67
+ size: number;
68
+ sort: string | null;
69
+ }>;
70
+ export type PosthogEventListItem = Partial<{
71
+ timestamp: string;
72
+ companyExid: string | null;
73
+ projectExid: string | null;
74
+ cameraExid: string | null;
75
+ email: string;
76
+ name: string;
77
+ page: string;
78
+ context: string;
79
+ action: string;
80
+ properties: Record<string, string>;
81
+ eventsCount: number;
82
+ }>;
83
+ export type PosthogEventsResponse<T = PosthogEventListItem> = {
84
+ data: T[];
85
+ size: number;
86
+ page: number;
87
+ total: number;
88
+ from: number;
89
+ to: number;
90
+ };
91
+ export type PosthogUserParams = {
92
+ firstname?: string;
93
+ lastname?: string;
94
+ email: string;
95
+ telephone?: string;
96
+ country?: string;
97
+ isAdmin?: boolean;
98
+ persona?: string;
99
+ companyExid: string;
100
+ companyName: string;
101
+ isImpersonationLogin: boolean;
102
+ ImpersonatedUserEmail?: string;
103
+ ImpersonatedUserFirstname?: string;
104
+ impersonatedUserLastname?: string;
105
+ };
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
44
44
  label: string;
45
45
  currentRevisionId: number;
46
46
  };
47
- export type ProcoreUserProjectsResponsePayload = Array<{
47
+ export type ProcoreUserProject = {
48
48
  accountingProjectNumber?: number;
49
49
  active: boolean;
50
50
  address: string;
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
85
85
  totalValue: string;
86
86
  updatedAt: string;
87
87
  zip: number;
88
- }>;
88
+ };
89
+ export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
89
90
  export type ProcoreToolUserAccessLevel = {
90
91
  id: ProcoreToolUserAccessLevelIds;
91
92
  name: string;
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
120
121
  snapshot: string;
121
122
  categoryId?: number;
122
123
  };
123
- export type ProcoreProjectsAlbumsPayload = Array<{
124
+ export type ProcoreProjectAlbum = {
124
125
  count: number;
125
126
  coverPhoto: string | null;
126
127
  createdAt: string;
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
134
135
  position: number;
135
136
  private: boolean;
136
137
  updatedAt: string;
137
- }>;
138
- export type ProcoreObservationTypesResponsePayload = Array<{
138
+ };
139
+ export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
140
+ export type ProcoreObservationType = {
139
141
  id: number;
140
142
  name: string;
141
143
  localizedName: string;
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
147
149
  parentInactive: boolean;
148
150
  isUse: boolean;
149
151
  nameTranslations: string;
150
- }>;
152
+ };
153
+ export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
151
154
  export type ProcoreObservationFormRequestPayload = {
152
155
  projectId: number;
153
156
  companyId: number;
154
157
  observationType: string;
155
158
  };
159
+ export type ProcoreCustomFieldOptionsRequestPayload = {
160
+ optionsUrl: string;
161
+ companyId: number;
162
+ };
156
163
  export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
157
164
  export type ProcoreObservationField = {
158
165
  name: string;
@@ -1,22 +1,24 @@
1
- import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/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
- recipients?: string;
12
- projectId?: number;
13
- companyId?: number;
14
- catergoryId?: string;
15
- };
16
- subject?: string;
17
- isPaused?: boolean;
18
- timezone?: string;
19
- };
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
+ }>;
20
22
  export type ProgressPhotosUnSubscribeParams = {
21
23
  email: string;
22
24
  token?: string;
@@ -24,6 +26,18 @@ export type ProgressPhotosUnSubscribeParams = {
24
26
  export type ProgressPhotosResponsePayload = {
25
27
  progressPhotos: Automation[];
26
28
  };
29
+ export type ProgressPhotoItemResponsePayload = {
30
+ progressPhotos: Automation;
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
+ };
27
41
  export declare enum AutomationDialogType {
28
42
  Create = "create",
29
43
  Edit = "edit",
@@ -35,18 +49,20 @@ export type CameraOption = {
35
49
  };
36
50
  export interface ProgressPhotoItem {
37
51
  id: number;
38
- cameras: CameraOption[] | string[] | string;
52
+ name: string;
53
+ type: string;
54
+ cameras: Array<CameraOption | string> | string;
39
55
  insertedAt: string;
40
56
  provider: string;
41
57
  config: {
42
- recipients: string | string[];
58
+ recipients: string | AutomationEmailRecipient[];
43
59
  sendSnapshotAs: string;
44
60
  };
45
61
  isPaused: boolean;
46
62
  notifyDays: string | string[];
47
63
  notifyTime: string;
48
- api_id: string;
49
- api_key: string;
64
+ apiId: string;
65
+ apiKey: string;
50
66
  timezone: string;
51
67
  exid: string;
52
68
  fullname: string;
@@ -58,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
58
74
  timezone: string;
59
75
  cameras: string;
60
76
  };
61
- export type progressPhotosHistoryQueryParams = {
77
+ export type progressPhotosHistoryQueryParams = PaginationParams & {
62
78
  insertedAt: DateType[];
63
79
  recipients: string;
64
80
  subject: string;
@@ -70,5 +86,6 @@ export type ProgressPhotosHistory = {
70
86
  cameraIds: string;
71
87
  failedCameraIds: string;
72
88
  subject: string;
73
- recipients: DateTime;
89
+ recipients: string;
90
+ insertedAt: string;
74
91
  };
@@ -1,25 +1,58 @@
1
- import { AdminCamera, Camera, CameraExid, DateRangeFilter, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, GeoJSONPolygon, Operator, PaginationParams, ProjectUserWithRole, RoleSubRole } from "@evercam/api/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
5
- id: string | number;
6
- exid: ProjectExid;
7
- name: string;
8
- status?: ProjectStatus;
9
- insertedAt?: string;
10
- startedAt?: string;
11
- timezone?: string;
12
- zohoId?: string;
13
- userId?: number;
5
+ archiveTier?: ProjectArchiveTier;
14
6
  cameras?: Array<Camera | AdminCamera>;
15
- unrestrictedCameras?: Array<Camera | AdminCamera>;
7
+ camerasCount?: number;
8
+ camerasRestrictionType?: string;
9
+ companyId: number;
10
+ endDate: string;
11
+ exid: ProjectExid;
16
12
  featureFlags: Array<ProjectFeatureFlag>;
13
+ geographicBounds?: GeoJSONPolygon | null;
14
+ id: string | number;
15
+ insertedAt?: string;
16
+ name: string;
17
17
  owner?: {
18
18
  email?: string;
19
19
  };
20
20
  ownerEmail?: string;
21
21
  ownerName?: string;
22
- camerasRestrictionType?: string;
22
+ startedAt?: string;
23
+ startDate?: string | null;
24
+ status?: ProjectStatus;
25
+ timezone?: string;
26
+ unrestrictedCameras?: Camera[];
27
+ userId?: number;
28
+ zohoId?: string;
29
+ };
30
+ export type AdminProjectCameraRef = {
31
+ exid: string;
32
+ name: string;
33
+ };
34
+ export type AdminProjectListItem = {
35
+ id: number;
36
+ name: string;
37
+ status: ProjectStatus | string;
38
+ insertedAt: string;
39
+ timezone: string | null;
40
+ exid: ProjectExid;
41
+ endDate: string | null;
42
+ startDate: string | null;
43
+ archiveTier: ProjectArchiveTier | null;
44
+ featureFlags: Array<ProjectFeatureFlag>;
45
+ zohoId: string | null;
46
+ ownerEmail: string | null;
47
+ companyId: number | null;
48
+ companyName: string | null;
49
+ ownerName: string | null;
50
+ archived: boolean;
51
+ cameras?: AdminProjectCameraRef[];
52
+ geographicBounds: GeoJSONPolygon | null;
53
+ };
54
+ export type AdminProjectDetail = AdminProjectListItem & {
55
+ userId: number;
23
56
  };
24
57
  export declare enum ProjectStatus {
25
58
  ToStart = "To Start",
@@ -31,15 +64,22 @@ export declare enum ProjectArchiveTier {
31
64
  Full = "Full",
32
65
  Partial = "Partial",
33
66
  Minimal = "Minimal",
34
- ScheduledForDeletion = "Scheduled for Deletion"
67
+ ScheduledForDeletion = "Scheduled for Deletion",
68
+ No = "No"
35
69
  }
36
- export type ProjectResponsePayload = {
37
- data?: Project[];
38
- };
39
70
  export type UpdateCameraRestrictionPayload = {
40
71
  isAccessRestricted?: boolean;
41
72
  };
73
+ export type CameraPosition = {
74
+ cameraExid: CameraExid;
75
+ position: number;
76
+ };
77
+ export type ReorderCamerasPayload = {
78
+ positions: CameraPosition[];
79
+ };
42
80
  export type Logo = {
81
+ id: number;
82
+ projectId: number;
43
83
  name: string;
44
84
  url: string;
45
85
  };
@@ -53,16 +93,15 @@ export declare enum ProjectFeatureFlag {
53
93
  ThreeSixtyView = "360_view",
54
94
  NdaMc = "NDA/MC",
55
95
  GateReport = "gate_report",
56
- GateReportAutoVerify = "auto_publish",
57
96
  GateReportMotionDetection = "motion_detection",
58
97
  FullEmpty = "full_empty",
59
98
  MediaHubSharing = "archives_sharing",
60
99
  GateReportAnprBased = "anpr_sourced",
61
100
  NoLicensePlate = "no_license_plate",
62
- DefaultToProjectApp = "default_to_project_app",
63
101
  SmartSearch = "smart_search",
64
102
  PpeMonitoring = "ppe_monitoring",
65
- NoGdpr = "no_gdpr"
103
+ NoGdpr = "no_gdpr",
104
+ Chat = "chat"
66
105
  }
67
106
  export type ProjectBatteryReading = {
68
107
  exid: number;
@@ -80,6 +119,7 @@ export type ProjectsQueryParams = PaginationParams & {
80
119
  status: ProjectStatus;
81
120
  cameras: string;
82
121
  featureFlags: Array<ProjectFeatureFlag>;
122
+ featureFlagsOperator?: Operator;
83
123
  archived: string;
84
124
  };
85
125
  export type ProjectCreateRequestPayload = {
@@ -88,18 +128,30 @@ export type ProjectCreateRequestPayload = {
88
128
  ownerId: number;
89
129
  cameras: string[];
90
130
  };
91
- export type ProjectCreateResponse = {
92
- name: string;
131
+ export type CreatedProject = {
132
+ id: number;
93
133
  exid: string;
134
+ name: string;
135
+ userId: number;
136
+ zohoId: string | null;
137
+ geographicBounds: GeoJSONPolygon | null;
138
+ };
139
+ export type ProjectCreateResponse = Record<"project", CreatedProject>;
140
+ export type TransferOwnershipProject = {
94
141
  id: number;
142
+ exid: string;
143
+ name: string;
95
144
  userId: number;
96
- zohoId: string;
145
+ zohoId: string | null;
146
+ status: ProjectStatus;
97
147
  };
148
+ export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
98
149
  export type ProjectUpdateRequestPayload = {
99
150
  name: string;
100
151
  timezone: string;
101
152
  featureFlags: ProjectFeatureFlag[];
102
153
  cameras: string[];
154
+ geographicBounds: GeoJSONPolygon | null;
103
155
  };
104
156
  export type ProjectStatusStats = {
105
157
  nil: number;
@@ -118,42 +170,61 @@ export type ProjectUserProperty = {
118
170
  eventsCount: number;
119
171
  fullname: string;
120
172
  id: number;
121
- lastSeenAt: DateTime;
173
+ lastSeenAt: string;
122
174
  persona: string;
123
175
  };
124
- export type ProjectUsers = {
125
- cameras: {
126
- exid: string;
127
- name: string;
128
- }[];
129
- users: Record<string, ProjectUserProperty[]>;
176
+ export type AdminProjectInvite = {
177
+ id: number;
178
+ email: string;
179
+ role: ProjectRole;
180
+ permissions: string[];
181
+ subRoles: RoleSubRole[];
130
182
  };
131
- export type ProjectDateRangeFilter = DateRangeFilter & {
132
- projectExid: ProjectExid;
183
+ export type AdminProjectUsersResponsePayload = {
184
+ users: ProjectUserWithRole[];
185
+ invites: AdminProjectInvite[];
186
+ errors: ProjectUserError[];
133
187
  };
134
188
  export type ProjectRole = {
135
- id: string;
189
+ id: number;
136
190
  name: string;
137
191
  };
138
192
  export type ProjectMember = {
139
193
  id: string;
194
+ key?: string;
140
195
  email: string;
141
196
  fullname: string;
197
+ lastSeenAt?: string;
142
198
  role: ProjectRole;
199
+ permissions?: string[];
200
+ subRoles?: Array<{
201
+ resourceId: string;
202
+ roleId: number;
203
+ }>;
204
+ company?: {
205
+ name: string;
206
+ } | null;
143
207
  };
144
208
  export type ProjectInvite = {
145
- id?: string;
209
+ id: number;
146
210
  email: string;
147
211
  role?: ProjectRole;
212
+ permissions?: string[];
213
+ subRoles?: Array<{
214
+ resourceId: string;
215
+ roleId: number;
216
+ }>;
148
217
  invitedAt?: string;
149
218
  };
150
219
  export type ProjectMembersResponsePayload = {
151
220
  users: ProjectMember[];
152
221
  invites: ProjectInvite[];
222
+ errors: ProjectUserError[];
153
223
  };
154
224
  export type ProjectMembersRequestPayload = {
155
225
  roleId: number;
156
226
  emails: string[];
227
+ message?: string;
157
228
  overrideRole?: Partial<{
158
229
  permissions?: string[];
159
230
  subRoles?: Array<{
@@ -166,3 +237,58 @@ export type ProjectInviteMembersResponsePayload = {
166
237
  users: ProjectMember[];
167
238
  invites: ProjectInvite[];
168
239
  };
240
+ export type PlaceholderThumbnailData = {
241
+ placeholder: string;
242
+ };
243
+ export type ProjectUserError = {
244
+ email: string;
245
+ error: Record<string, string[]>;
246
+ };
247
+ export type ProjectUsersResponsePayload = {
248
+ users: ProjectMember[];
249
+ invites: ProjectInvite[];
250
+ errors: ProjectUserError[];
251
+ };
252
+ export type MentionableUser = {
253
+ id: number;
254
+ fullname: string;
255
+ email: string;
256
+ };
257
+ export type ProjectStorageQueryParams = PaginationParams & {
258
+ cameraName: string;
259
+ cameraExid: CameraExid;
260
+ projectName: string;
261
+ projectExid: string;
262
+ archiveTier: ProjectArchiveTier;
263
+ status: ProjectStorageStatus;
264
+ requester: string;
265
+ createdAtFrom: string;
266
+ createdAtTo: string;
267
+ scheduleAtFrom: string;
268
+ scheduleAtTo: string;
269
+ };
270
+ export type ProjectStorageCamera = {
271
+ archiveId: number;
272
+ name: string;
273
+ exid: CameraExid;
274
+ status: ProjectStorageStatus;
275
+ errorMessage: string | null;
276
+ };
277
+ export type ProjectStorage = {
278
+ id: number;
279
+ exid: string;
280
+ name: string;
281
+ archiveTier: ProjectArchiveTier | null;
282
+ endDate: string | null;
283
+ requester: string | null;
284
+ scheduleAt: string | null;
285
+ insertedAt: DateType;
286
+ cameras: ProjectStorageCamera[];
287
+ };
288
+ export declare enum ProjectStorageStatus {
289
+ New = "new",
290
+ Pending = "pending",
291
+ Processing = "processing",
292
+ Completed = "completed",
293
+ Failed = "failed"
294
+ }
@@ -1,22 +1,24 @@
1
- import { ApiCredentials } from "@/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
  };
@@ -56,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
56
56
  snapshots: Array<SnapshotInstance>;
57
57
  };
58
58
  export declare enum BrainTool {
59
- Detections = "detections",
60
- Segmentation = "sam"
59
+ Detections = "detections"
61
60
  }
62
61
  export declare enum CloudRecordingFrequency {
63
62
  EverySecond = 60,
@@ -77,6 +76,7 @@ export declare enum CloudRecordingDuration {
77
76
  Month = 30,
78
77
  ThreeMonths = 90
79
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
80
80
  export declare enum CloudRecordingStatus {
81
81
  On = "on",
82
82
  Off = "off",
@@ -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",
@@ -120,5 +113,6 @@ export declare enum VpnServer {
120
113
  WireGuard7 = "WireGuard7",
121
114
  WireGuard8 = "WireGuard8",
122
115
  WireGuard9 = "WireGuard9",
123
- WireGuard10 = "WireGuard10"
116
+ WireGuard10 = "WireGuard10",
117
+ WgHub = "WgHub"
124
118
  }
@@ -1,13 +1,19 @@
1
- import type { DateType, PaginationParams } from "@/types";
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
+ export declare enum RecycleBinItemType {
3
+ Camera = "camera",
4
+ Project = "project",
5
+ Kit = "kit"
6
+ }
2
7
  export type RecycleBin = {
3
- id?: number;
8
+ id: number;
4
9
  exid: string;
5
10
  name: string;
6
- type: string;
11
+ type: RecycleBinItemType;
7
12
  deletedBy: string;
8
13
  deletedAt: DateType;
9
14
  };
10
15
  export type RecycleBinQueryParams = PaginationParams & {
16
+ exid: string;
11
17
  name: string;
12
18
  type: string;
13
19
  deletedBy: string;