@evercam/api 1.0.0-4fbaae5e7 → 1.0.0-5075fd146

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 (140) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +176 -0
  3. package/dist/api/api/adminApi.d.ts +380 -0
  4. package/dist/api/api/aiApi.d.ts +169 -0
  5. package/dist/api/api/authzApi.d.ts +37 -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 +1 -1
  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 +346 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +45 -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 +154 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  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 +292 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/api/types/aiConfigs.d.ts +154 -0
  24. package/dist/{types → api/types}/analytics.d.ts +234 -104
  25. package/dist/{types → api/types}/anpr.d.ts +56 -13
  26. package/dist/{types → api/types}/auditLogs.d.ts +19 -1
  27. package/dist/api/types/authz.d.ts +61 -0
  28. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  29. package/dist/api/types/automation.d.ts +95 -0
  30. package/dist/{types → api/types}/axios.d.ts +29 -7
  31. package/dist/{types → api/types}/bim.d.ts +36 -5
  32. package/dist/{types → api/types}/camera.d.ts +116 -144
  33. package/dist/api/types/comments.d.ts +57 -0
  34. package/dist/api/types/company.d.ts +115 -0
  35. package/dist/{types → api/types}/compare.d.ts +20 -5
  36. package/dist/api/types/connector.d.ts +20 -0
  37. package/dist/api/types/coolify.d.ts +36 -0
  38. package/dist/{types → api/types}/copilot.d.ts +11 -6
  39. package/dist/{types → api/types}/countries.d.ts +0 -7
  40. package/dist/{types → api/types}/credentials.d.ts +1 -0
  41. package/dist/api/types/detections.d.ts +116 -0
  42. package/dist/api/types/drone.d.ts +107 -0
  43. package/dist/{types → api/types}/errors.d.ts +24 -0
  44. package/dist/{types → api/types}/gateReport.d.ts +50 -158
  45. package/dist/api/types/gateReportManagement.d.ts +175 -0
  46. package/dist/{types → api/types}/hdd.d.ts +26 -1
  47. package/dist/{types → api/types}/index.d.ts +18 -3
  48. package/dist/api/types/ingest.d.ts +148 -0
  49. package/dist/{types → api/types}/kit.d.ts +92 -7
  50. package/dist/api/types/map.d.ts +16 -0
  51. package/dist/{types → api/types}/media.d.ts +8 -2
  52. package/dist/api/types/notification.d.ts +57 -0
  53. package/dist/api/types/oauth.d.ts +62 -0
  54. package/dist/api/types/planner.d.ts +132 -0
  55. package/dist/api/types/posthog.d.ts +33 -0
  56. package/dist/api/types/procore.d.ts +229 -0
  57. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  58. package/dist/api/types/project.d.ts +247 -0
  59. package/dist/{types → api/types}/recording.d.ts +9 -13
  60. package/dist/api/types/recycleBin.d.ts +14 -0
  61. package/dist/api/types/ring.d.ts +53 -0
  62. package/dist/{types → api/types}/roi.d.ts +3 -1
  63. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  64. package/dist/{types → api/types}/router.d.ts +20 -1
  65. package/dist/{types → api/types}/shared.d.ts +32 -20
  66. package/dist/api/types/shares.d.ts +58 -0
  67. package/dist/{types → api/types}/sim.d.ts +6 -6
  68. package/dist/api/types/siteAnalytics.d.ts +287 -0
  69. package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
  70. package/dist/api/types/siteView.d.ts +73 -0
  71. package/dist/api/types/smartSeach.d.ts +5 -0
  72. package/dist/api/types/snapshots.d.ts +104 -0
  73. package/dist/api/types/sso.d.ts +55 -0
  74. package/dist/api/types/storageProvider.d.ts +19 -0
  75. package/dist/api/types/storyblok.d.ts +40 -0
  76. package/dist/{types → api/types}/streaming.d.ts +4 -25
  77. package/dist/api/types/systemCheck.d.ts +11 -0
  78. package/dist/api/types/tag.d.ts +12 -0
  79. package/dist/api/types/time.d.ts +7 -0
  80. package/dist/{types → api/types}/timelapse.d.ts +8 -5
  81. package/dist/{types → api/types}/user.d.ts +106 -37
  82. package/dist/api/types/videoWall.d.ts +66 -0
  83. package/dist/api/types/weather.d.ts +153 -0
  84. package/dist/{types → api/types}/widget.d.ts +96 -16
  85. package/dist/api/types/xweather.d.ts +12 -0
  86. package/dist/index.d.ts +2 -3
  87. package/dist/index.js +2442 -1038
  88. package/dist/index.js.map +1 -1
  89. package/dist/index.umd.cjs +1 -1
  90. package/dist/index.umd.cjs.map +1 -1
  91. package/dist/shared/api/index.d.ts +3 -0
  92. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  93. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  94. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  95. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  96. package/dist/shared/types/components.d.ts +329 -0
  97. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  98. package/dist/shared/types/imagePlayer.d.ts +41 -0
  99. package/dist/shared/types/index.d.ts +6 -0
  100. package/dist/shared/types/rbac.d.ts +67 -0
  101. package/dist/shared/types/timeline.d.ts +10 -0
  102. package/package.json +8 -5
  103. package/dist/api/3dFirebaseApi.d.ts +0 -9
  104. package/dist/api/adminApi.d.ts +0 -304
  105. package/dist/api/aiApi.d.ts +0 -110
  106. package/dist/api/authzApi.d.ts +0 -21
  107. package/dist/api/evercamApi.d.ts +0 -266
  108. package/dist/api/evercamLabsApi.d.ts +0 -46
  109. package/dist/api/ingestApi.d.ts +0 -65
  110. package/dist/api/videoWallApi.d.ts +0 -9
  111. package/dist/api/weatherApi.d.ts +0 -25
  112. package/dist/types/360.d.ts +0 -83
  113. package/dist/types/aconex.d.ts +0 -45
  114. package/dist/types/automation.d.ts +0 -6
  115. package/dist/types/comments.d.ts +0 -36
  116. package/dist/types/company.d.ts +0 -46
  117. package/dist/types/connector.d.ts +0 -16
  118. package/dist/types/coolify.d.ts +0 -18
  119. package/dist/types/detections.d.ts +0 -76
  120. package/dist/types/devices.d.ts +0 -228
  121. package/dist/types/drone.d.ts +0 -17
  122. package/dist/types/ingest.d.ts +0 -43
  123. package/dist/types/map.d.ts +0 -4
  124. package/dist/types/notification.d.ts +0 -27
  125. package/dist/types/procore.d.ts +0 -76
  126. package/dist/types/project.d.ts +0 -120
  127. package/dist/types/shares.d.ts +0 -192
  128. package/dist/types/siteAnalytics.d.ts +0 -84
  129. package/dist/types/sitePlanner.d.ts +0 -28
  130. package/dist/types/snapshots.d.ts +0 -50
  131. package/dist/types/storageServers.d.ts +0 -4
  132. package/dist/types/time.d.ts +0 -19
  133. package/dist/types/videoWall.d.ts +0 -33
  134. package/dist/types/weather.d.ts +0 -83
  135. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  136. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  137. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  138. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  139. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  140. /package/dist/{utils.d.ts → api/utils.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,247 @@
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, 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
+ No = "No"
67
+ }
68
+ export type UpdateCameraRestrictionPayload = {
69
+ isAccessRestricted?: boolean;
70
+ };
71
+ export type Logo = {
72
+ id: number;
73
+ projectId: number;
74
+ name: string;
75
+ url: string;
76
+ };
77
+ export type ProjectLogoResponsePayload = Logo[];
78
+ export declare enum ProjectFeatureFlag {
79
+ AnprLegacy = "anpr_legacy",
80
+ DroneView = "drone_view",
81
+ Bim = "4d_bim",
82
+ BimItwin = "4d_bim_itwin",
83
+ BimForge = "4d_bim_forge",
84
+ ThreeSixtyView = "360_view",
85
+ NdaMc = "NDA/MC",
86
+ GateReport = "gate_report",
87
+ GateReportMotionDetection = "motion_detection",
88
+ FullEmpty = "full_empty",
89
+ MediaHubSharing = "archives_sharing",
90
+ GateReportAnprBased = "anpr_sourced",
91
+ NoLicensePlate = "no_license_plate",
92
+ DefaultToProjectApp = "default_to_project_app",
93
+ SmartSearch = "smart_search",
94
+ PpeMonitoring = "ppe_monitoring",
95
+ NoGdpr = "no_gdpr"
96
+ }
97
+ export type ProjectBatteryReading = {
98
+ exid: number;
99
+ voltage: number;
100
+ lastSeen: DateType;
101
+ };
102
+ export type ThumbnailData = {
103
+ cameraExid: CameraExid;
104
+ custom: boolean;
105
+ image: string;
106
+ };
107
+ export type ProjectsQueryParams = PaginationParams & {
108
+ name: string;
109
+ exid: string;
110
+ status: ProjectStatus;
111
+ cameras: string;
112
+ featureFlags: Array<ProjectFeatureFlag>;
113
+ featureFlagsOperator?: Operator;
114
+ archived: string;
115
+ };
116
+ export type ProjectCreateRequestPayload = {
117
+ projectExid?: string;
118
+ projectName: string;
119
+ ownerId: number;
120
+ cameras: string[];
121
+ };
122
+ export type ProjectCreateResponse = {
123
+ name: string;
124
+ exid: string;
125
+ id: number;
126
+ userId: number;
127
+ zohoId: string;
128
+ };
129
+ export type ProjectUpdateRequestPayload = {
130
+ name: string;
131
+ timezone: string;
132
+ featureFlags: ProjectFeatureFlag[];
133
+ cameras: string[];
134
+ };
135
+ export type ProjectStatusStats = {
136
+ nil: number;
137
+ Completed: number;
138
+ "In Progress": number;
139
+ "Not Applicable": number;
140
+ "To Start": number;
141
+ };
142
+ export type ProjectUserProperty = {
143
+ active: boolean;
144
+ activeOneMonth: boolean;
145
+ cameraExid: string;
146
+ cameraName: string;
147
+ cameraRights: string;
148
+ email: string;
149
+ eventsCount: number;
150
+ fullname: string;
151
+ id: number;
152
+ lastSeenAt: string;
153
+ persona: string;
154
+ };
155
+ export type ProjectUsers = {
156
+ cameras: {
157
+ exid: string;
158
+ name: string;
159
+ }[];
160
+ users: Record<string, ProjectUserProperty[]>;
161
+ };
162
+ export type ProjectRole = {
163
+ id: number;
164
+ name: string;
165
+ };
166
+ export type ProjectMember = {
167
+ id: string;
168
+ key?: string;
169
+ email: string;
170
+ fullname: string;
171
+ lastSeenAt?: string;
172
+ role: ProjectRole;
173
+ permissions?: string[];
174
+ subRoles?: Array<{
175
+ resourceId: string;
176
+ roleId: number;
177
+ }>;
178
+ company?: {
179
+ name: string;
180
+ } | null;
181
+ };
182
+ export type ProjectInvite = {
183
+ id?: string;
184
+ email: string;
185
+ role?: ProjectRole;
186
+ permissions?: string[];
187
+ subRoles?: Array<{
188
+ resourceId: string;
189
+ roleId: number;
190
+ }>;
191
+ invitedAt?: string;
192
+ };
193
+ export type ProjectMembersResponsePayload = {
194
+ users: ProjectMember[];
195
+ invites: ProjectInvite[];
196
+ errors: ProjectUserError[];
197
+ };
198
+ export type ProjectMembersRequestPayload = {
199
+ roleId: number;
200
+ emails: string[];
201
+ message?: string;
202
+ overrideRole?: Partial<{
203
+ permissions?: string[];
204
+ subRoles?: Array<{
205
+ resourceId: string;
206
+ roleId: number;
207
+ }>;
208
+ }>;
209
+ };
210
+ export type ProjectInviteMembersResponsePayload = {
211
+ users: ProjectMember[];
212
+ invites: ProjectInvite[];
213
+ };
214
+ export type PlaceholderThumbnailData = {
215
+ placeholder: string;
216
+ };
217
+ export type ProjectUserError = {
218
+ email: string;
219
+ error: Record<string, string[]>;
220
+ };
221
+ export type ProjectUsersResponsePayload = {
222
+ users: ProjectMember[];
223
+ invites: ProjectInvite[];
224
+ errors: ProjectUserError[];
225
+ };
226
+ export type ProjectStorageQueryParams = PaginationParams & {
227
+ cameraName: string;
228
+ cameraExid: CameraExid;
229
+ status: ProjectStorageStatus;
230
+ };
231
+ export type ProjectStorage = {
232
+ id: number;
233
+ cameraExid: CameraExid;
234
+ cameraName: string;
235
+ projectExid: string;
236
+ projectName: string;
237
+ status: ProjectStorageStatus;
238
+ requestor: string;
239
+ created_at: DateType;
240
+ };
241
+ export declare enum ProjectStorageStatus {
242
+ New = "new",
243
+ Pending = "pending",
244
+ Processing = "processing",
245
+ Completed = "completed",
246
+ Failed = "failed"
247
+ }
@@ -1,21 +1,24 @@
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;
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
+ includeImage?: boolean;
14
+ view?: boolean;
13
15
  };
14
16
  export type AvailableDaysRequestPayload = {
15
17
  cameraId: string;
16
18
  year: string;
17
19
  month: string;
18
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
19
22
  };
20
23
  export type AvailableDaysResponsePayload = {
21
24
  days: Array<number>;
@@ -55,9 +58,7 @@ export type SnapshotRangeResponsePayload = {
55
58
  snapshots: Array<SnapshotInstance>;
56
59
  };
57
60
  export declare enum BrainTool {
58
- Detections = "detections",
59
- Segmentation = "sam",
60
- DepthAnalysis = "depthAnalysis"
61
+ Detections = "detections"
61
62
  }
62
63
  export declare enum CloudRecordingFrequency {
63
64
  EverySecond = 60,
@@ -77,6 +78,7 @@ export declare enum CloudRecordingDuration {
77
78
  Month = 30,
78
79
  ThreeMonths = 90
79
80
  }
81
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
80
82
  export declare enum CloudRecordingStatus {
81
83
  On = "on",
82
84
  Off = "off",
@@ -104,13 +106,6 @@ export declare enum SnapshotExtractionInterval {
104
106
  }
105
107
  export declare enum VpnServer {
106
108
  None = "None",
107
- OpenVPN1 = "OpenVPN1",
108
- OpenVPN2 = "OpenVPN2",
109
- OpenVPN3 = "OpenVPN3",
110
- OpenVPN4 = "OpenVPN4",
111
- OpenVPN5 = "OpenVPN5",
112
- PPTP1 = "PPTP1",
113
- PPTP2 = "PPTP2",
114
109
  WireGuard1 = "WireGuard1",
115
110
  WireGuard2 = "WireGuard2",
116
111
  WireGuard3 = "WireGuard3",
@@ -120,5 +115,6 @@ export declare enum VpnServer {
120
115
  WireGuard7 = "WireGuard7",
121
116
  WireGuard8 = "WireGuard8",
122
117
  WireGuard9 = "WireGuard9",
123
- WireGuard10 = "WireGuard10"
118
+ WireGuard10 = "WireGuard10",
119
+ WgHub = "WgHub"
124
120
  }
@@ -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
+ };
@@ -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",
@@ -18,6 +19,7 @@ export type RoiShape = {
18
19
  x2: number;
19
20
  y1: number;
20
21
  y2: number;
22
+ points?: [number, number][];
21
23
  };
22
24
  export declare enum RoiDirection {
23
25
  Arrived = "arrived",
@@ -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>;