@evercam/api 1.0.0-e03a0c41b → 1.0.0-e13c64fc3

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 (128) hide show
  1. package/README.md +5 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/api/adminApi.d.ts +366 -0
  4. package/dist/api/api/aiApi.d.ts +127 -0
  5. package/dist/api/api/authzApi.d.ts +38 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +329 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +46 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +13 -0
  15. package/dist/api/api/ingestApi.d.ts +147 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
  17. package/dist/api/api/videoWallApi.d.ts +9 -0
  18. package/dist/api/api/weatherApi.d.ts +9 -0
  19. package/dist/api/index.d.ts +3 -13
  20. package/dist/api/types/360.d.ts +276 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/{types → api/types}/analytics.d.ts +214 -103
  24. package/dist/{types → api/types}/anpr.d.ts +35 -19
  25. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  26. package/dist/api/types/authz.d.ts +60 -0
  27. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +95 -0
  29. package/dist/{types → api/types}/axios.d.ts +22 -2
  30. package/dist/{types → api/types}/bim.d.ts +11 -5
  31. package/dist/{types → api/types}/camera.d.ts +110 -125
  32. package/dist/api/types/comments.d.ts +55 -0
  33. package/dist/api/types/company.d.ts +115 -0
  34. package/dist/{types → api/types}/compare.d.ts +20 -5
  35. package/dist/{types → api/types}/connector.d.ts +9 -6
  36. package/dist/api/types/coolify.d.ts +36 -0
  37. package/dist/{types → api/types}/copilot.d.ts +19 -13
  38. package/dist/{types → api/types}/countries.d.ts +0 -7
  39. package/dist/{types → api/types}/credentials.d.ts +1 -0
  40. package/dist/api/types/detections.d.ts +121 -0
  41. package/dist/{types → api/types}/errors.d.ts +13 -0
  42. package/dist/{types → api/types}/gateReport.d.ts +46 -150
  43. package/dist/api/types/hdd.d.ts +88 -0
  44. package/dist/{types → api/types}/index.d.ts +15 -2
  45. package/dist/api/types/ingest.d.ts +134 -0
  46. package/dist/{types → api/types}/kit.d.ts +94 -6
  47. package/dist/{types → api/types}/media.d.ts +2 -1
  48. package/dist/api/types/notification.d.ts +57 -0
  49. package/dist/{types → api/types}/nvr.d.ts +2 -1
  50. package/dist/api/types/oauth.d.ts +62 -0
  51. package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +11 -2
  52. package/dist/api/types/posthog.d.ts +33 -0
  53. package/dist/api/types/procore.d.ts +229 -0
  54. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  55. package/dist/api/types/project.d.ts +242 -0
  56. package/dist/{types → api/types}/recording.d.ts +3 -4
  57. package/dist/api/types/recycleBin.d.ts +14 -0
  58. package/dist/api/types/ring.d.ts +53 -0
  59. package/dist/{types → api/types}/roi.d.ts +2 -1
  60. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  61. package/dist/{types → api/types}/router.d.ts +20 -1
  62. package/dist/{types → api/types}/shared.d.ts +14 -21
  63. package/dist/api/types/shares.d.ts +58 -0
  64. package/dist/{types → api/types}/sim.d.ts +6 -6
  65. package/dist/api/types/siteAnalytics.d.ts +287 -0
  66. package/dist/api/types/smartSeach.d.ts +5 -0
  67. package/dist/{types → api/types}/snapshots.d.ts +10 -1
  68. package/dist/api/types/sso.d.ts +55 -0
  69. package/dist/api/types/storyblok.d.ts +40 -0
  70. package/dist/api/types/streaming.d.ts +97 -0
  71. package/dist/api/types/systemCheck.d.ts +11 -0
  72. package/dist/api/types/tag.d.ts +12 -0
  73. package/dist/api/types/time.d.ts +7 -0
  74. package/dist/{types → api/types}/timelapse.d.ts +18 -4
  75. package/dist/{types → api/types}/user.d.ts +105 -35
  76. package/dist/api/types/videoWall.d.ts +66 -0
  77. package/dist/api/types/weather.d.ts +153 -0
  78. package/dist/{types → api/types}/widget.d.ts +103 -20
  79. package/dist/api/types/xweather.d.ts +12 -0
  80. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  81. package/dist/index.d.ts +2 -3
  82. package/dist/index.js +1741 -960
  83. package/dist/index.js.map +1 -1
  84. package/dist/index.umd.cjs +1 -1
  85. package/dist/index.umd.cjs.map +1 -1
  86. package/dist/shared/api/index.d.ts +3 -0
  87. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  88. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  89. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  90. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  91. package/dist/shared/types/components.d.ts +270 -0
  92. package/dist/shared/types/imagePlayer.d.ts +34 -0
  93. package/dist/shared/types/index.d.ts +4 -0
  94. package/dist/shared/types/timeline.d.ts +10 -0
  95. package/package.json +8 -7
  96. package/dist/api/3dFirebaseApi.d.ts +0 -9
  97. package/dist/api/adminApi.d.ts +0 -289
  98. package/dist/api/aiApi.d.ts +0 -76
  99. package/dist/api/authzApi.d.ts +0 -21
  100. package/dist/api/evercamApi.d.ts +0 -266
  101. package/dist/api/evercamLabsApi.d.ts +0 -50
  102. package/dist/api/ingestApi.d.ts +0 -65
  103. package/dist/api/videoWallApi.d.ts +0 -9
  104. package/dist/api/weatherApi.d.ts +0 -25
  105. package/dist/types/360.d.ts +0 -83
  106. package/dist/types/aconex.d.ts +0 -45
  107. package/dist/types/automation.d.ts +0 -6
  108. package/dist/types/comments.d.ts +0 -36
  109. package/dist/types/company.d.ts +0 -46
  110. package/dist/types/detections.d.ts +0 -70
  111. package/dist/types/devices.d.ts +0 -228
  112. package/dist/types/ingest.d.ts +0 -43
  113. package/dist/types/notification.d.ts +0 -27
  114. package/dist/types/procore.d.ts +0 -76
  115. package/dist/types/project.d.ts +0 -120
  116. package/dist/types/shares.d.ts +0 -192
  117. package/dist/types/siteAnalytics.d.ts +0 -5
  118. package/dist/types/streaming.d.ts +0 -119
  119. package/dist/types/time.d.ts +0 -19
  120. package/dist/types/videoWall.d.ts +0 -33
  121. package/dist/types/weather.d.ts +0 -83
  122. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  123. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  124. /package/dist/{types → api/types}/drone.d.ts +0 -0
  125. /package/dist/{types → api/types}/map.d.ts +0 -0
  126. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  127. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  128. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,229 @@
1
+ export type ProcoreUserCompaniesResponsePayload = Array<{
2
+ id: number;
3
+ isActive?: boolean;
4
+ name: string;
5
+ }>;
6
+ export type ProcoreCompanyRequestPayload = {
7
+ companyId: number;
8
+ };
9
+ export type ProcoreProjectRequestPayload = {
10
+ companyId: number;
11
+ projectId: number;
12
+ };
13
+ export type ProcoreObservationListItem = {
14
+ id: number;
15
+ name: string;
16
+ };
17
+ export type ProcoreObservationDefaultList = Array<ProcoreObservationListItem & {
18
+ active: boolean;
19
+ global: boolean;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }>;
23
+ export type ProcoreObservationAssignee = ProcoreObservationListItem & {
24
+ vendor: ProcoreObservationListItem;
25
+ };
26
+ export type ProcoreObservationDistributionMember = ProcoreObservationListItem & {
27
+ login: string;
28
+ };
29
+ export type ProcoreObservationTrades = ProcoreObservationListItem & {
30
+ active: boolean;
31
+ updatedAt: string;
32
+ };
33
+ export type ProcoreObservationLocation = ProcoreObservationListItem & {
34
+ nodeName: string;
35
+ parentId: number;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ code: string;
39
+ };
40
+ export type ProcoreObservationSpecificationSection = {
41
+ id: number;
42
+ number: string;
43
+ description: string;
44
+ label: string;
45
+ currentRevisionId: number;
46
+ };
47
+ export type ProcoreUserProject = {
48
+ accountingProjectNumber?: number;
49
+ active: boolean;
50
+ address: string;
51
+ city: string;
52
+ company: {
53
+ id: number;
54
+ name: string;
55
+ };
56
+ completionDate: string;
57
+ countryCode: string;
58
+ county: string;
59
+ createdAt: string;
60
+ customFields?: object;
61
+ designatedMarketArea: string;
62
+ displayName: string;
63
+ estimatedValue: string;
64
+ id: number;
65
+ isDemo: boolean;
66
+ latitude: number;
67
+ longitude: number;
68
+ name: string;
69
+ originCode: string | number | null;
70
+ originData: string | null;
71
+ originId: number | null;
72
+ ownersProjectId: number | null;
73
+ parentJobId: number | null;
74
+ phone: string | number;
75
+ photoId: number;
76
+ projectBidTypeId: number | null;
77
+ projectNumber: string;
78
+ projectOwnerTypeId: number | null;
79
+ projectRegionId: number | null;
80
+ stage: string;
81
+ startDate: string;
82
+ stateCode: string;
83
+ storeNumber?: string;
84
+ timeZone: string;
85
+ totalValue: string;
86
+ updatedAt: string;
87
+ zip: number;
88
+ };
89
+ export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
90
+ export type ProcoreToolUserAccessLevel = {
91
+ id: ProcoreToolUserAccessLevelIds;
92
+ name: string;
93
+ };
94
+ export type ProcoreToolPermittedAction = {
95
+ id: number;
96
+ actionName: string;
97
+ label: string;
98
+ toolName: string;
99
+ };
100
+ export type ProcoreToolPermissions = {
101
+ id: number;
102
+ name: string;
103
+ friendlyName: string;
104
+ domainId: number;
105
+ tabGroup: string;
106
+ availableForUser: boolean;
107
+ url: string;
108
+ userAccessLevel: ProcoreToolUserAccessLevel;
109
+ permittedActions: Array<ProcoreToolPermittedAction>;
110
+ createUrl: string;
111
+ canCreate: boolean;
112
+ trial: boolean;
113
+ };
114
+ export type ProcoreUserProjectPermissionsResponsePayload = {
115
+ tools: Array<ProcoreToolPermissions>;
116
+ };
117
+ export type ProcoreEditedImageUploadRequestPayload = {
118
+ projectExid: string;
119
+ companyId: number;
120
+ projectId: number;
121
+ snapshot: string;
122
+ categoryId?: number;
123
+ };
124
+ export type ProcoreProjectAlbum = {
125
+ count: number;
126
+ coverPhoto: string | null;
127
+ createdAt: string;
128
+ id: number;
129
+ links: {
130
+ delete: string;
131
+ show: string;
132
+ update: string;
133
+ };
134
+ name: string;
135
+ position: number;
136
+ private: boolean;
137
+ updatedAt: string;
138
+ };
139
+ export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
140
+ export type ProcoreObservationType = {
141
+ id: number;
142
+ name: string;
143
+ localizedName: string;
144
+ category: string;
145
+ categoryKey: string;
146
+ companyActive: boolean;
147
+ active: boolean;
148
+ kind: string;
149
+ parentInactive: boolean;
150
+ isUse: boolean;
151
+ nameTranslations: string;
152
+ };
153
+ export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
154
+ export type ProcoreObservationFormRequestPayload = {
155
+ projectId: number;
156
+ companyId: number;
157
+ observationType: string;
158
+ };
159
+ export type ProcoreCustomFieldOptionsRequestPayload = {
160
+ optionsUrl: string;
161
+ companyId: number;
162
+ };
163
+ export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
164
+ export type ProcoreObservationField = {
165
+ name: string;
166
+ required: boolean;
167
+ visible: boolean;
168
+ };
169
+ export type ProcoreObservationCustomField = {
170
+ id: number;
171
+ required: boolean;
172
+ visible: boolean;
173
+ name: string;
174
+ label: string;
175
+ description: string;
176
+ customFieldDefinitionId: number;
177
+ dataType: ProcoreObservationCustomFieldDataType;
178
+ variant: string;
179
+ position: number;
180
+ row: number;
181
+ column: number;
182
+ columnWidth: number;
183
+ optionsUrl: string | null;
184
+ defaultValue: string | null;
185
+ };
186
+ export type ProcoreNextObservationAvailableNumber = {
187
+ nextAvailableNumber: number;
188
+ };
189
+ export declare enum ProcoreObservationCustomFieldDataType {
190
+ RichText = "rich_text",
191
+ Date = "date",
192
+ DateTime = "datetime",
193
+ LovEntry = "lov_entry",
194
+ LovEntries = "lov_entries",
195
+ Boolean = "boolean",
196
+ Vendor = "vendor",
197
+ Decimal = "decimal",
198
+ String = "string",
199
+ LoginInformation = "login_information",
200
+ LoginInformations = "login_informations",
201
+ Dropdown = "dropdown"
202
+ }
203
+ export declare enum ProcoreObservationDefaultFieldNames {
204
+ Number = "number",
205
+ Name = "name",
206
+ Status = "status",
207
+ Trade = "tradeId",
208
+ Assignee = "assigneeId",
209
+ DueDate = "dueDate",
210
+ SpecificationSection = "specificationSectionId",
211
+ Priority = "priority",
212
+ Location = "locationId",
213
+ DistributionMembers = "distributionMemberIds",
214
+ Personal = "personal",
215
+ Hazard = "hazardId",
216
+ ContributingBehavior = "contributingBehaviorId",
217
+ ContributingCondition = "contributingConditionId",
218
+ Description = "description"
219
+ }
220
+ export declare enum ProcoreTools {
221
+ Observations = "observations",
222
+ ProgressPhotos = "images"
223
+ }
224
+ export declare enum ProcoreToolUserAccessLevelIds {
225
+ NoAccess = 1,
226
+ ReadOnly = 2,
227
+ Standard = 3,
228
+ Admin = 4
229
+ }
@@ -1,29 +1,14 @@
1
- import { DateTime, DateType, PaginationParams } from "@/types";
2
- export type ProgressPhoto = {
3
- cameraIds: string;
4
- cameraNames: number;
5
- createdAt: string;
6
- id: number;
7
- provider: string;
8
- config: Partial<{
9
- recipients: string;
10
- projectId: number;
11
- companyId: number;
12
- }>;
13
- isPaused: boolean;
14
- notifyDays: string;
15
- notifyTime: string;
16
- requesterEmail: string;
17
- requesterName: string;
18
- timezone: string;
19
- title: string;
20
- };
1
+ import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
21
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
22
3
  cameraExids?: string;
23
4
  notifyDays?: string;
5
+ compareDelay?: AutomationType;
24
6
  notifyTime?: string;
25
7
  provider?: string;
8
+ type?: string;
26
9
  config?: {
10
+ compareDelay?: AutomationType;
11
+ period?: number;
27
12
  recipients?: string;
28
13
  projectId?: number;
29
14
  companyId?: number;
@@ -38,9 +23,12 @@ export type ProgressPhotosUnSubscribeParams = {
38
23
  token?: string;
39
24
  };
40
25
  export type ProgressPhotosResponsePayload = {
41
- progressPhotos: ProgressPhoto[];
26
+ progressPhotos: Automation[];
42
27
  };
43
- export declare enum ProgressPhotoDialogType {
28
+ export type ProgressPhotoItemResponsePayload = {
29
+ progressPhotos: Automation;
30
+ };
31
+ export declare enum AutomationDialogType {
44
32
  Create = "create",
45
33
  Edit = "edit",
46
34
  Pause = "pause"
@@ -86,5 +74,5 @@ export type ProgressPhotosHistory = {
86
74
  cameraIds: string;
87
75
  failedCameraIds: string;
88
76
  subject: string;
89
- recipients: DateTime;
77
+ recipients: string;
90
78
  };
@@ -0,0 +1,242 @@
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
2
+ export type ProjectExid = Exid;
3
+ export type ProjectsByExid = EntityByExid<Project>;
4
+ export type Project = {
5
+ archiveTier?: ProjectArchiveTier;
6
+ cameras?: Array<Camera | AdminCamera>;
7
+ camerasCount?: number;
8
+ camerasRestrictionType?: string;
9
+ companyId: number;
10
+ endDate: string;
11
+ exid: ProjectExid;
12
+ featureFlags: Array<ProjectFeatureFlag>;
13
+ geographicBounds?: unknown;
14
+ id: string | number;
15
+ insertedAt?: string;
16
+ name: string;
17
+ owner?: {
18
+ email?: string;
19
+ };
20
+ ownerEmail?: string;
21
+ ownerName?: string;
22
+ startedAt?: string;
23
+ status?: ProjectStatus;
24
+ timezone?: string;
25
+ unrestrictedCameras?: Camera[];
26
+ userId?: number;
27
+ zohoId?: string;
28
+ };
29
+ export type AdminProjectCameraRef = {
30
+ exid: string;
31
+ name: string;
32
+ };
33
+ export type AdminProjectListItem = {
34
+ id: number;
35
+ name: string;
36
+ status: ProjectStatus | string;
37
+ insertedAt: string;
38
+ timezone: string | null;
39
+ exid: ProjectExid;
40
+ endDate: string | null;
41
+ startDate: string | null;
42
+ archiveTier: ProjectArchiveTier | null;
43
+ featureFlags: Array<ProjectFeatureFlag | string>;
44
+ zohoId: string | null;
45
+ ownerEmail: string | null;
46
+ companyId: number | null;
47
+ companyName: string | null;
48
+ ownerName: string | null;
49
+ archived: boolean;
50
+ cameras?: AdminProjectCameraRef[];
51
+ };
52
+ export type AdminProjectDetail = AdminProjectListItem & {
53
+ userId: number;
54
+ };
55
+ export declare enum ProjectStatus {
56
+ ToStart = "To Start",
57
+ InProgress = "In Progress",
58
+ Completed = "Completed",
59
+ NotAplicable = "Not Applicable"
60
+ }
61
+ export declare enum ProjectArchiveTier {
62
+ Full = "Full",
63
+ Partial = "Partial",
64
+ Minimal = "Minimal",
65
+ ScheduledForDeletion = "Scheduled for Deletion"
66
+ }
67
+ export type UpdateCameraRestrictionPayload = {
68
+ isAccessRestricted?: boolean;
69
+ };
70
+ export type Logo = {
71
+ id: number;
72
+ projectId: number;
73
+ name: string;
74
+ url: string;
75
+ };
76
+ export type ProjectLogoResponsePayload = Logo[];
77
+ export declare enum ProjectFeatureFlag {
78
+ AnprLegacy = "anpr_legacy",
79
+ DroneView = "drone_view",
80
+ Bim = "4d_bim",
81
+ BimItwin = "4d_bim_itwin",
82
+ BimForge = "4d_bim_forge",
83
+ ThreeSixtyView = "360_view",
84
+ NdaMc = "NDA/MC",
85
+ GateReport = "gate_report",
86
+ GateReportMotionDetection = "motion_detection",
87
+ FullEmpty = "full_empty",
88
+ MediaHubSharing = "archives_sharing",
89
+ GateReportAnprBased = "anpr_sourced",
90
+ NoLicensePlate = "no_license_plate",
91
+ DefaultToProjectApp = "default_to_project_app",
92
+ SmartSearch = "smart_search",
93
+ PpeMonitoring = "ppe_monitoring",
94
+ NoGdpr = "no_gdpr"
95
+ }
96
+ export type ProjectBatteryReading = {
97
+ exid: number;
98
+ voltage: number;
99
+ lastSeen: DateType;
100
+ };
101
+ export type ThumbnailData = {
102
+ cameraExid: CameraExid;
103
+ custom: boolean;
104
+ image: string;
105
+ };
106
+ export type ProjectsQueryParams = PaginationParams & {
107
+ name: string;
108
+ exid: string;
109
+ status: ProjectStatus;
110
+ cameras: string;
111
+ featureFlags: Array<ProjectFeatureFlag>;
112
+ archived: string;
113
+ };
114
+ export type ProjectCreateRequestPayload = {
115
+ projectExid?: string;
116
+ projectName: string;
117
+ ownerId: number;
118
+ cameras: string[];
119
+ };
120
+ export type ProjectCreateResponse = {
121
+ name: string;
122
+ exid: string;
123
+ id: number;
124
+ userId: number;
125
+ zohoId: string;
126
+ };
127
+ export type ProjectUpdateRequestPayload = {
128
+ name: string;
129
+ timezone: string;
130
+ featureFlags: ProjectFeatureFlag[];
131
+ cameras: string[];
132
+ };
133
+ export type ProjectStatusStats = {
134
+ nil: number;
135
+ Completed: number;
136
+ "In Progress": number;
137
+ "Not Applicable": number;
138
+ "To Start": number;
139
+ };
140
+ export type ProjectUserProperty = {
141
+ active: boolean;
142
+ activeOneMonth: boolean;
143
+ cameraExid: string;
144
+ cameraName: string;
145
+ cameraRights: string;
146
+ email: string;
147
+ eventsCount: number;
148
+ fullname: string;
149
+ id: number;
150
+ lastSeenAt: string;
151
+ persona: string;
152
+ };
153
+ export type ProjectUsers = {
154
+ cameras: {
155
+ exid: string;
156
+ name: string;
157
+ }[];
158
+ users: Record<string, ProjectUserProperty[]>;
159
+ };
160
+ export type ProjectRole = {
161
+ id: number;
162
+ name: string;
163
+ };
164
+ export type ProjectMember = {
165
+ id: string;
166
+ email: string;
167
+ fullname: string;
168
+ lastSeenAt?: string;
169
+ role: ProjectRole;
170
+ permissions?: string[];
171
+ subRoles?: Array<{
172
+ resourceId: string;
173
+ roleId: number;
174
+ }>;
175
+ company?: string | null;
176
+ };
177
+ export type ProjectInvite = {
178
+ id?: string;
179
+ email: string;
180
+ role?: ProjectRole;
181
+ permissions?: string[];
182
+ subRoles?: Array<{
183
+ resourceId: string;
184
+ roleId: number;
185
+ }>;
186
+ invitedAt?: string;
187
+ };
188
+ export type ProjectMembersResponsePayload = {
189
+ users: ProjectMember[];
190
+ invites: ProjectInvite[];
191
+ errors: ProjectUserError[];
192
+ };
193
+ export type ProjectMembersRequestPayload = {
194
+ roleId: number;
195
+ emails: string[];
196
+ message?: string;
197
+ overrideRole?: Partial<{
198
+ permissions?: string[];
199
+ subRoles?: Array<{
200
+ resourceId: string;
201
+ roleId: number;
202
+ }>;
203
+ }>;
204
+ };
205
+ export type ProjectInviteMembersResponsePayload = {
206
+ users: ProjectMember[];
207
+ invites: ProjectInvite[];
208
+ };
209
+ export type PlaceholderThumbnailData = {
210
+ placeholder: string;
211
+ };
212
+ export type ProjectUserError = {
213
+ email: string;
214
+ error: Record<string, string[]>;
215
+ };
216
+ export type ProjectUsersResponsePayload = {
217
+ users: ProjectMember[];
218
+ invites: ProjectInvite[];
219
+ errors: ProjectUserError[];
220
+ };
221
+ export type ProjectStorageQueryParams = PaginationParams & {
222
+ cameraName: string;
223
+ cameraExid: CameraExid;
224
+ status: ProjectStorageStatus;
225
+ };
226
+ export type ProjectStorage = {
227
+ id: number;
228
+ cameraExid: CameraExid;
229
+ cameraName: string;
230
+ projectExid: string;
231
+ projectName: string;
232
+ status: ProjectStorageStatus;
233
+ requestor: string;
234
+ created_at: DateType;
235
+ };
236
+ export declare enum ProjectStorageStatus {
237
+ New = "new",
238
+ Pending = "pending",
239
+ Processing = "processing",
240
+ Completed = "completed",
241
+ Failed = "failed"
242
+ }
@@ -1,4 +1,4 @@
1
- import { ApiCredentials } from "@/types";
1
+ import { ApiCredentials } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
@@ -10,6 +10,7 @@ export type NearestSnapshotRequestPayload = {
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
+ includeImage?: boolean;
13
14
  };
14
15
  export type AvailableDaysRequestPayload = {
15
16
  cameraId: string;
@@ -55,9 +56,7 @@ export type SnapshotRangeResponsePayload = {
55
56
  snapshots: Array<SnapshotInstance>;
56
57
  };
57
58
  export declare enum BrainTool {
58
- Detections = "detections",
59
- Segmentation = "sam",
60
- DepthAnalysis = "depthAnalysis"
59
+ Detections = "detections"
61
60
  }
62
61
  export declare enum CloudRecordingFrequency {
63
62
  EverySecond = 60,
@@ -0,0 +1,14 @@
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
+ export type RecycleBin = {
3
+ id?: number;
4
+ exid: string;
5
+ name: string;
6
+ type: string;
7
+ deletedBy: string;
8
+ deletedAt: DateType;
9
+ };
10
+ export type RecycleBinQueryParams = PaginationParams & {
11
+ name: string;
12
+ type: string;
13
+ deletedBy: string;
14
+ };
@@ -0,0 +1,53 @@
1
+ export type RingDevice = {
2
+ deviceId: string;
3
+ name: string;
4
+ deviceType: string;
5
+ firmwareVersion: string | null;
6
+ batteryLife: number | null;
7
+ location: string | null;
8
+ imported: boolean;
9
+ cameraExid?: string;
10
+ projectExid?: string;
11
+ projectName?: string;
12
+ };
13
+ export type RingDevicesResponsePayload = {
14
+ devices: RingDevice[];
15
+ };
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
+ export type RingMoveDevicePayload = {
32
+ projectExid: string;
33
+ };
34
+ export type RingMoveDeviceResponsePayload = {
35
+ status: string;
36
+ cameraExid: string;
37
+ projectExid: string;
38
+ };
39
+ export type RingLiveViewPayload = {
40
+ sdpOffer: string;
41
+ };
42
+ export type RingLiveViewResponse = {
43
+ sdpAnswer: string;
44
+ sessionUrl: string;
45
+ iceServers: Array<{
46
+ urls: string;
47
+ username?: string;
48
+ credential?: string;
49
+ }>;
50
+ };
51
+ export type RingStopLiveViewResponse = {
52
+ status: string;
53
+ };
@@ -9,7 +9,8 @@ export declare enum RoiShapeType {
9
9
  Polygon = "polygon",
10
10
  Line = "line",
11
11
  Direction = "direction",
12
- Rectangle = "rectangle"
12
+ Rectangle = "rectangle",
13
+ ROIBox = "ROIBox"
13
14
  }
14
15
  export type RoiShape = {
15
16
  id: number | null;
@@ -16,8 +16,9 @@ export declare enum TimelineUrlParam {
16
16
  ToDate = "toDate",
17
17
  Live = "live",
18
18
  Video = "video",
19
- BeforeTimestamp = "beforeTimestamp",
20
19
  OverlayType = "overlayType",
20
+ ShowOverlay = "showOverlay",
21
+ ShowCompare = "showCompare",
21
22
  Sidebar = "sidebar",
22
23
  ThreeSixtyId = "_360Id",
23
24
  DroneId = "droneId",
@@ -45,6 +46,7 @@ export declare enum TimelineMobileCaptureUrlParams {
45
46
  ShowMobileCapture = "showMobileCapture"
46
47
  }
47
48
  export declare enum TimelineCommentsUrlParams {
48
- ShowComments = "showComments"
49
+ ShowComments = "showComments",
50
+ SelectedCommentId = "selectedCommentId"
49
51
  }
50
52
  export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@/types";
1
+ import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
2
2
  export type RouterBillPayer = {
3
3
  name: string;
4
4
  };
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
47
47
  Active = "active",
48
48
  Inactive = "inactive"
49
49
  }
50
+ export declare enum RouterScanInputMode {
51
+ Qr = "qr",
52
+ Manual = "manual"
53
+ }
50
54
  export type RouterQueryParams = PaginationParams & {
51
55
  routerType: string;
52
56
  vpnServer: string;
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
65
69
  vpnServer?: string;
66
70
  netbirdUrl?: string;
67
71
  };
72
+ export type RouterQRScanResult = {
73
+ raw: string;
74
+ timestamp: string;
75
+ sn?: string;
76
+ m?: string;
77
+ u?: string;
78
+ pw?: string;
79
+ t?: string;
80
+ s?: string;
81
+ p?: string;
82
+ i?: string;
83
+ b?: string;
84
+ boxId?: string;
85
+ isDuplicate?: boolean;
86
+ };