@evercam/api 1.0.0-779bcb558 → 1.0.0-79849e0e7

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 (131) 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 +376 -0
  4. package/dist/api/api/aiApi.d.ts +128 -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 +337 -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 +148 -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 +222 -106
  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 +61 -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 -3
  30. package/dist/{types → api/types}/bim.d.ts +11 -5
  31. package/dist/{types → api/types}/camera.d.ts +113 -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 +20 -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 +124 -0
  41. package/dist/{types → api/types}/drone.d.ts +1 -0
  42. package/dist/{types → api/types}/errors.d.ts +13 -0
  43. package/dist/{types → api/types}/gateReport.d.ts +96 -151
  44. package/dist/api/types/hdd.d.ts +88 -0
  45. package/dist/{types → api/types}/index.d.ts +16 -3
  46. package/dist/api/types/ingest.d.ts +147 -0
  47. package/dist/{types → api/types}/kit.d.ts +100 -12
  48. package/dist/{types → api/types}/media.d.ts +2 -1
  49. package/dist/api/types/notification.d.ts +57 -0
  50. package/dist/{types → api/types}/nvr.d.ts +2 -1
  51. package/dist/api/types/oauth.d.ts +62 -0
  52. package/dist/api/types/planner.d.ts +79 -0
  53. package/dist/api/types/posthog.d.ts +33 -0
  54. package/dist/api/types/procore.d.ts +229 -0
  55. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  56. package/dist/api/types/project.d.ts +246 -0
  57. package/dist/{types → api/types}/recording.d.ts +4 -4
  58. package/dist/api/types/recycleBin.d.ts +14 -0
  59. package/dist/api/types/ring.d.ts +53 -0
  60. package/dist/{types → api/types}/roi.d.ts +2 -1
  61. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  62. package/dist/{types → api/types}/router.d.ts +20 -1
  63. package/dist/{types → api/types}/shared.d.ts +14 -21
  64. package/dist/api/types/shares.d.ts +58 -0
  65. package/dist/{types → api/types}/sim.d.ts +6 -6
  66. package/dist/api/types/siteAnalytics.d.ts +287 -0
  67. package/dist/api/types/smartSeach.d.ts +5 -0
  68. package/dist/{types → api/types}/snapshots.d.ts +42 -1
  69. package/dist/api/types/sso.d.ts +55 -0
  70. package/dist/api/types/storageProvider.d.ts +19 -0
  71. package/dist/api/types/storyblok.d.ts +40 -0
  72. package/dist/api/types/streaming.d.ts +97 -0
  73. package/dist/api/types/systemCheck.d.ts +11 -0
  74. package/dist/api/types/tag.d.ts +12 -0
  75. package/dist/api/types/time.d.ts +7 -0
  76. package/dist/{types → api/types}/timelapse.d.ts +20 -5
  77. package/dist/{types → api/types}/user.d.ts +105 -36
  78. package/dist/api/types/videoWall.d.ts +66 -0
  79. package/dist/api/types/weather.d.ts +153 -0
  80. package/dist/{types → api/types}/widget.d.ts +106 -20
  81. package/dist/api/types/xweather.d.ts +12 -0
  82. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  83. package/dist/index.d.ts +2 -3
  84. package/dist/index.js +1849 -999
  85. package/dist/index.js.map +1 -1
  86. package/dist/index.umd.cjs +1 -1
  87. package/dist/index.umd.cjs.map +1 -1
  88. package/dist/shared/api/index.d.ts +3 -0
  89. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  90. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  91. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  92. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  93. package/dist/shared/types/components.d.ts +303 -0
  94. package/dist/shared/types/imagePlayer.d.ts +34 -0
  95. package/dist/shared/types/index.d.ts +5 -0
  96. package/dist/shared/types/rbac.d.ts +67 -0
  97. package/dist/shared/types/timeline.d.ts +10 -0
  98. package/package.json +8 -7
  99. package/dist/api/3dFirebaseApi.d.ts +0 -9
  100. package/dist/api/adminApi.d.ts +0 -288
  101. package/dist/api/aiApi.d.ts +0 -73
  102. package/dist/api/authzApi.d.ts +0 -21
  103. package/dist/api/evercamApi.d.ts +0 -266
  104. package/dist/api/evercamLabsApi.d.ts +0 -51
  105. package/dist/api/ingestApi.d.ts +0 -65
  106. package/dist/api/videoWallApi.d.ts +0 -9
  107. package/dist/api/weatherApi.d.ts +0 -25
  108. package/dist/types/360.d.ts +0 -83
  109. package/dist/types/aconex.d.ts +0 -45
  110. package/dist/types/automation.d.ts +0 -6
  111. package/dist/types/comments.d.ts +0 -36
  112. package/dist/types/company.d.ts +0 -46
  113. package/dist/types/detections.d.ts +0 -62
  114. package/dist/types/devices.d.ts +0 -228
  115. package/dist/types/ingest.d.ts +0 -43
  116. package/dist/types/notification.d.ts +0 -27
  117. package/dist/types/procore.d.ts +0 -76
  118. package/dist/types/project.d.ts +0 -120
  119. package/dist/types/shares.d.ts +0 -192
  120. package/dist/types/siteAnalytics.d.ts +0 -5
  121. package/dist/types/sitePlanner.d.ts +0 -23
  122. package/dist/types/storageServers.d.ts +0 -4
  123. package/dist/types/streaming.d.ts +0 -119
  124. package/dist/types/time.d.ts +0 -19
  125. package/dist/types/videoWall.d.ts +0 -33
  126. package/dist/types/weather.d.ts +0 -83
  127. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  128. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  129. /package/dist/{types → api/types}/map.d.ts +0 -0
  130. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  131. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,246 @@
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
+ 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
+ archived: string;
114
+ };
115
+ export type ProjectCreateRequestPayload = {
116
+ projectExid?: string;
117
+ projectName: string;
118
+ ownerId: number;
119
+ cameras: string[];
120
+ };
121
+ export type ProjectCreateResponse = {
122
+ name: string;
123
+ exid: string;
124
+ id: number;
125
+ userId: number;
126
+ zohoId: string;
127
+ };
128
+ export type ProjectUpdateRequestPayload = {
129
+ name: string;
130
+ timezone: string;
131
+ featureFlags: ProjectFeatureFlag[];
132
+ cameras: string[];
133
+ };
134
+ export type ProjectStatusStats = {
135
+ nil: number;
136
+ Completed: number;
137
+ "In Progress": number;
138
+ "Not Applicable": number;
139
+ "To Start": number;
140
+ };
141
+ export type ProjectUserProperty = {
142
+ active: boolean;
143
+ activeOneMonth: boolean;
144
+ cameraExid: string;
145
+ cameraName: string;
146
+ cameraRights: string;
147
+ email: string;
148
+ eventsCount: number;
149
+ fullname: string;
150
+ id: number;
151
+ lastSeenAt: string;
152
+ persona: string;
153
+ };
154
+ export type ProjectUsers = {
155
+ cameras: {
156
+ exid: string;
157
+ name: string;
158
+ }[];
159
+ users: Record<string, ProjectUserProperty[]>;
160
+ };
161
+ export type ProjectRole = {
162
+ id: number;
163
+ name: string;
164
+ };
165
+ export type ProjectMember = {
166
+ id: string;
167
+ key?: string;
168
+ email: string;
169
+ fullname: string;
170
+ lastSeenAt?: string;
171
+ role: ProjectRole;
172
+ permissions?: string[];
173
+ subRoles?: Array<{
174
+ resourceId: string;
175
+ roleId: number;
176
+ }>;
177
+ company?: {
178
+ name: string;
179
+ } | null;
180
+ };
181
+ export type ProjectInvite = {
182
+ id?: string;
183
+ email: string;
184
+ role?: ProjectRole;
185
+ permissions?: string[];
186
+ subRoles?: Array<{
187
+ resourceId: string;
188
+ roleId: number;
189
+ }>;
190
+ invitedAt?: string;
191
+ };
192
+ export type ProjectMembersResponsePayload = {
193
+ users: ProjectMember[];
194
+ invites: ProjectInvite[];
195
+ errors: ProjectUserError[];
196
+ };
197
+ export type ProjectMembersRequestPayload = {
198
+ roleId: number;
199
+ emails: string[];
200
+ message?: string;
201
+ overrideRole?: Partial<{
202
+ permissions?: string[];
203
+ subRoles?: Array<{
204
+ resourceId: string;
205
+ roleId: number;
206
+ }>;
207
+ }>;
208
+ };
209
+ export type ProjectInviteMembersResponsePayload = {
210
+ users: ProjectMember[];
211
+ invites: ProjectInvite[];
212
+ };
213
+ export type PlaceholderThumbnailData = {
214
+ placeholder: string;
215
+ };
216
+ export type ProjectUserError = {
217
+ email: string;
218
+ error: Record<string, string[]>;
219
+ };
220
+ export type ProjectUsersResponsePayload = {
221
+ users: ProjectMember[];
222
+ invites: ProjectInvite[];
223
+ errors: ProjectUserError[];
224
+ };
225
+ export type ProjectStorageQueryParams = PaginationParams & {
226
+ cameraName: string;
227
+ cameraExid: CameraExid;
228
+ status: ProjectStorageStatus;
229
+ };
230
+ export type ProjectStorage = {
231
+ id: number;
232
+ cameraExid: CameraExid;
233
+ cameraName: string;
234
+ projectExid: string;
235
+ projectName: string;
236
+ status: ProjectStorageStatus;
237
+ requestor: string;
238
+ created_at: DateType;
239
+ };
240
+ export declare enum ProjectStorageStatus {
241
+ New = "new",
242
+ Pending = "pending",
243
+ Processing = "processing",
244
+ Completed = "completed",
245
+ Failed = "failed"
246
+ }
@@ -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,
@@ -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",
@@ -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
+ };
@@ -1,7 +1,13 @@
1
- import { DateType } from "@/types";
1
+ import { DateType } from "@evercam/api/types";
2
2
  type sortby = string;
3
3
  type sortDirection = "asc" | "desc";
4
4
  export type SortingUrlParam = `${sortby}|${sortDirection}`;
5
+ export type JsonPrimitive = string | number | boolean | null;
6
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
7
+ export type JsonObject = {
8
+ [key: string]: JsonValue;
9
+ };
10
+ export type JsonArray = JsonValue[];
5
11
  export type BatteryReading = {
6
12
  id: number;
7
13
  voltage: number;
@@ -53,7 +59,7 @@ export declare enum UnitSystem {
53
59
  Metric = "metric"
54
60
  }
55
61
  export type Timestamp = string | number;
56
- export type Schedule = {
62
+ export type ScheduleUppercase = {
57
63
  Friday: string[];
58
64
  Monday: string[];
59
65
  Saturday: string[];
@@ -71,6 +77,7 @@ export type ScheduleLowercase = {
71
77
  tuesday: string[];
72
78
  wednesday: string[];
73
79
  };
80
+ export type Schedule = ScheduleUppercase | ScheduleLowercase;
74
81
  export type PaginationParams = {
75
82
  sort?: SortingUrlParam;
76
83
  page?: number;
@@ -90,11 +97,6 @@ export declare enum _3dViewer {
90
97
  Itwin = "itwin",
91
98
  Cesium = "cesium"
92
99
  }
93
- export declare enum SsoProvider {
94
- Microsoft = "microsoft",
95
- Google = "google",
96
- Evercam = "evercam"
97
- }
98
100
  export declare enum InfoPage {
99
101
  ThreeSixtyView = "360",
100
102
  BIMView = "bim",
@@ -103,18 +105,9 @@ export declare enum InfoPage {
103
105
  DroneView = "drone-view",
104
106
  Compare = "compare",
105
107
  Timeline = "timeline",
106
- WeatherReport = "weather-report",
107
- EvercamGo = "evercam-go"
108
+ WeatherReport = "weather-report"
108
109
  }
109
- export declare enum EvercamGoFeatures {
110
- XRay = "xray",
111
- MagicWand = "magic-wand",
112
- Weather = "weather",
113
- DownloadSnapshot = "download-snapshot",
114
- LocalRecordings = "local-recordings",
115
- MarkupTool = "markup-tool"
116
- }
117
- export declare enum DownloadTypes {
110
+ export declare enum DownloadFileType {
118
111
  Jpeg = "jpeg",
119
112
  Pdf = "pdf",
120
113
  Csv = "csv"
@@ -122,11 +115,11 @@ export declare enum DownloadTypes {
122
115
  export declare enum FeedbackContext {
123
116
  CopilotMessage = "copilot_message"
124
117
  }
125
- export type FeedbackPayload<T> = {
118
+ export type FeedbackPayload = {
126
119
  id?: number;
127
120
  user: string;
128
121
  text: string;
129
- type: T;
122
+ type: string;
130
123
  context: FeedbackContext;
131
124
  messageId?: number;
132
125
  conversationId?: number;
@@ -194,7 +187,7 @@ export declare enum PtzDirection {
194
187
  export type MoveParams = {
195
188
  cameraExid: string;
196
189
  direction: PtzDirection;
197
- isRecordingFromNvr: boolean;
190
+ useContinuous: boolean;
198
191
  };
199
192
  export declare enum ZoomDirection {
200
193
  In = "in",
@@ -0,0 +1,58 @@
1
+ import type { DateType } from "@evercam/api/types";
2
+ export type ShareRequest = {
3
+ cameraId: string;
4
+ createdAt: DateType | number;
5
+ email: string;
6
+ id: number;
7
+ rights: string;
8
+ sharerEmail: string;
9
+ sharerName: string;
10
+ userId: number;
11
+ };
12
+ export type Share = {
13
+ cameraId: string;
14
+ createdAt: DateType | number;
15
+ email: string;
16
+ fullname: string;
17
+ id: number;
18
+ lastSeenAt: DateType;
19
+ rights: string;
20
+ sessionCount: number;
21
+ sharerEmail: string;
22
+ sharerId: number;
23
+ sharerName: string;
24
+ userId: number;
25
+ isUserAccessRestricted: boolean;
26
+ };
27
+ export type ShareDeletionRequestPayload = {
28
+ email?: string;
29
+ key?: string;
30
+ origin?: string;
31
+ };
32
+ export type SharedUsersResponsePayload = Array<{
33
+ email: string;
34
+ name: string;
35
+ }>;
36
+ export type ShareCreateRequestPayload = {
37
+ email: string[] | string;
38
+ message?: string;
39
+ permission?: string;
40
+ rights: string;
41
+ apiId?: string;
42
+ apiKey?: string;
43
+ };
44
+ export type ShareCreateResponsePayload = {
45
+ shares: Share[];
46
+ shareRequests: ShareRequest[];
47
+ };
48
+ export declare enum InviteStatus {
49
+ Pending = 0,
50
+ Cancelled = -1,
51
+ Used = 1,
52
+ Failed = -2
53
+ }
54
+ export declare enum ShareVisibility {
55
+ PublicDiscoverable = "publicDiscoverable",
56
+ PublicUndiscoverable = "publicUndiscoverable",
57
+ Private = "private"
58
+ }
@@ -1,4 +1,4 @@
1
- import { DateTime, PaginationParams } from "@/types";
1
+ import { PaginationParams } from "@evercam/api/types";
2
2
  export declare enum SmsCommands {
3
3
  Cellular = "cellular",
4
4
  Gpson = "gpson",
@@ -63,7 +63,7 @@ export type Sim = {
63
63
  puk: string;
64
64
  iccid: string;
65
65
  description: string;
66
- lastSmsAt: DateTime;
66
+ lastSmsAt: string;
67
67
  cameras: {
68
68
  name: string;
69
69
  exid: string;
@@ -79,11 +79,11 @@ export type SendSmsResponse = {
79
79
  errorText: string;
80
80
  };
81
81
  export type SmsHistory = {
82
- insertedAt: DateTime;
82
+ insertedAt: string;
83
83
  type: string;
84
84
  status: string;
85
85
  text: string;
86
- deliveryDatetime: DateTime;
86
+ deliveryDatetime: string;
87
87
  };
88
88
  export type SmsHistoryResponse = {
89
89
  singleSimSms: SmsHistory[];
@@ -98,8 +98,8 @@ export type Sms = {
98
98
  status: string;
99
99
  text: string;
100
100
  type: string;
101
- insertedAt: DateTime;
102
- deliveryDatetime: DateTime;
101
+ insertedAt: string;
102
+ deliveryDatetime: string;
103
103
  };
104
104
  export type SmsQueryParams = PaginationParams & {
105
105
  dateRange: string;