@evercam/api 1.0.0-e1ad6ae1b → 1.0.0-e424632fd

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 (120) hide show
  1. package/README.md +2 -0
  2. package/dist/api/{3dFirebaseApi.d.ts → api/3dFirebaseApi.d.ts} +8 -1
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +87 -83
  4. package/dist/api/api/aiApi.d.ts +128 -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}/swr/Swr.d.ts +1 -1
  8. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +118 -94
  9. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -4
  10. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  11. package/dist/api/api/index.d.ts +13 -0
  12. package/dist/api/api/ingestApi.d.ts +148 -0
  13. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  14. package/dist/api/api/videoWallApi.d.ts +9 -0
  15. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  16. package/dist/api/index.d.ts +3 -13
  17. package/dist/api/types/360.d.ts +276 -0
  18. package/dist/api/types/aconex.d.ts +143 -0
  19. package/dist/api/types/admin.d.ts +51 -0
  20. package/dist/{types → api/types}/analytics.d.ts +141 -41
  21. package/dist/{types → api/types}/anpr.d.ts +19 -2
  22. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  23. package/dist/api/types/authz.d.ts +61 -0
  24. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  25. package/dist/api/types/automation.d.ts +95 -0
  26. package/dist/{types → api/types}/axios.d.ts +10 -5
  27. package/dist/{types → api/types}/bim.d.ts +11 -5
  28. package/dist/{types → api/types}/camera.d.ts +97 -78
  29. package/dist/{types → api/types}/comments.d.ts +4 -8
  30. package/dist/{types → api/types}/company.d.ts +42 -1
  31. package/dist/{types → api/types}/compare.d.ts +20 -5
  32. package/dist/{types → api/types}/connector.d.ts +3 -5
  33. package/dist/{types → api/types}/coolify.d.ts +18 -2
  34. package/dist/{types → api/types}/copilot.d.ts +11 -6
  35. package/dist/{types → api/types}/credentials.d.ts +1 -0
  36. package/dist/{types → api/types}/detections.d.ts +20 -22
  37. package/dist/{types → api/types}/drone.d.ts +1 -0
  38. package/dist/{types → api/types}/gateReport.d.ts +48 -157
  39. package/dist/{types → api/types}/hdd.d.ts +26 -1
  40. package/dist/{types → api/types}/index.d.ts +7 -1
  41. package/dist/api/types/ingest.d.ts +147 -0
  42. package/dist/{types → api/types}/kit.d.ts +33 -5
  43. package/dist/{types → api/types}/media.d.ts +2 -1
  44. package/dist/api/types/notification.d.ts +57 -0
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/planner.d.ts +79 -0
  47. package/dist/api/types/posthog.d.ts +33 -0
  48. package/dist/{types → api/types}/procore.d.ts +13 -6
  49. package/dist/{types → api/types}/progressPhoto.d.ts +6 -32
  50. package/dist/api/types/project.d.ts +246 -0
  51. package/dist/{types → api/types}/recording.d.ts +4 -3
  52. package/dist/{types → api/types}/recycleBin.d.ts +1 -1
  53. package/dist/api/types/ring.d.ts +53 -0
  54. package/dist/{types → api/types}/router.d.ts +20 -1
  55. package/dist/{types → api/types}/shared.d.ts +16 -4
  56. package/dist/api/types/shares.d.ts +58 -0
  57. package/dist/{types → api/types}/sim.d.ts +6 -6
  58. package/dist/api/types/siteAnalytics.d.ts +287 -0
  59. package/dist/api/types/smartSeach.d.ts +5 -0
  60. package/dist/{types → api/types}/snapshots.d.ts +36 -4
  61. package/dist/api/types/storageProvider.d.ts +19 -0
  62. package/dist/api/types/storyblok.d.ts +40 -0
  63. package/dist/{types → api/types}/streaming.d.ts +3 -3
  64. package/dist/{types → api/types}/tag.d.ts +1 -1
  65. package/dist/api/types/time.d.ts +7 -0
  66. package/dist/{types → api/types}/timelapse.d.ts +12 -5
  67. package/dist/{types → api/types}/user.d.ts +105 -31
  68. package/dist/api/types/videoWall.d.ts +66 -0
  69. package/dist/{types → api/types}/weather.d.ts +75 -11
  70. package/dist/{types → api/types}/widget.d.ts +72 -11
  71. package/dist/{types → api/types}/xweather.d.ts +4 -4
  72. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  73. package/dist/index.d.ts +2 -3
  74. package/dist/index.js +1104 -917
  75. package/dist/index.js.map +1 -1
  76. package/dist/index.umd.cjs +1 -1
  77. package/dist/index.umd.cjs.map +1 -1
  78. package/dist/shared/api/index.d.ts +3 -0
  79. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  80. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  81. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  82. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  83. package/dist/shared/types/components.d.ts +301 -0
  84. package/dist/shared/types/imagePlayer.d.ts +34 -0
  85. package/dist/shared/types/index.d.ts +5 -0
  86. package/dist/shared/types/rbac.d.ts +67 -0
  87. package/dist/shared/types/timeline.d.ts +10 -0
  88. package/package.json +4 -4
  89. package/dist/api/aiApi.d.ts +0 -146
  90. package/dist/api/authzApi.d.ts +0 -21
  91. package/dist/api/ingestApi.d.ts +0 -88
  92. package/dist/api/videoWallApi.d.ts +0 -9
  93. package/dist/types/360.d.ts +0 -139
  94. package/dist/types/aconex.d.ts +0 -45
  95. package/dist/types/automation.d.ts +0 -10
  96. package/dist/types/ingest.d.ts +0 -47
  97. package/dist/types/notification.d.ts +0 -27
  98. package/dist/types/planner.d.ts +0 -32
  99. package/dist/types/posthog.d.ts +0 -18
  100. package/dist/types/project.d.ts +0 -129
  101. package/dist/types/shares.d.ts +0 -196
  102. package/dist/types/siteAnalytics.d.ts +0 -142
  103. package/dist/types/storageServers.d.ts +0 -4
  104. package/dist/types/time.d.ts +0 -21
  105. package/dist/types/videoWall.d.ts +0 -33
  106. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  107. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  108. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  109. /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
  110. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  111. /package/dist/{types → api/types}/countries.d.ts +0 -0
  112. /package/dist/{types → api/types}/errors.d.ts +0 -0
  113. /package/dist/{types → api/types}/map.d.ts +0 -0
  114. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  115. /package/dist/{types → api/types}/roi.d.ts +0 -0
  116. /package/dist/{types → api/types}/routeParams.d.ts +0 -0
  117. /package/dist/{types → api/types}/sso.d.ts +0 -0
  118. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  119. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  120. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,62 @@
1
+ export type OAuthClient = {
2
+ id: number;
3
+ name: string;
4
+ clientId: string;
5
+ redirectUris: string[];
6
+ logoUrl: string | null;
7
+ scopes: string[];
8
+ active: boolean;
9
+ description: string | null;
10
+ owner: {
11
+ id: number;
12
+ name: string;
13
+ email: string;
14
+ } | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ };
18
+ export type OAuthClientWithSecret = OAuthClient & {
19
+ clientSecret: string;
20
+ };
21
+ export type CreateOAuthClientPayload = {
22
+ name: string;
23
+ redirectUris: string[];
24
+ scopes?: string[];
25
+ description?: string;
26
+ logoUrl?: string;
27
+ };
28
+ export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
29
+ clientId?: string;
30
+ clientSecret?: string;
31
+ };
32
+ export type UpdateOAuthClientPayload = {
33
+ name?: string;
34
+ redirectUris?: string[];
35
+ scopes?: string[];
36
+ description?: string;
37
+ logoUrl?: string;
38
+ active?: boolean;
39
+ };
40
+ export type OAuthScopeDetail = {
41
+ scope: string;
42
+ description: string;
43
+ group: string;
44
+ };
45
+ export type OAuthConsentInfo = {
46
+ client: {
47
+ name: string;
48
+ logoUrl: string | null;
49
+ description: string | null;
50
+ };
51
+ scopes: OAuthScopeDetail[];
52
+ };
53
+ export type OAuthConsentPayload = {
54
+ clientId: string;
55
+ scope: string;
56
+ redirectUri: string;
57
+ state: string;
58
+ decision: "allow" | "deny";
59
+ };
60
+ export type OAuthConsentResponse = {
61
+ redirectUrl: string;
62
+ };
@@ -0,0 +1,79 @@
1
+ export type Coordinate = [number, number];
2
+ export type PolygonPath = Coordinate[];
3
+ export type PolygonCoordinates = PolygonPath[];
4
+ export interface GeoJSONPolygon {
5
+ type: "Polygon";
6
+ coordinates: PolygonCoordinates;
7
+ }
8
+ export declare enum PlannerUrlParams {
9
+ SitePlanId = "site_plan_id",
10
+ IsNewSitePlan = "is_new_site_plan",
11
+ IsBoundsMode = "is_bounds_mode",
12
+ ProjectPosition = "project_position",
13
+ DealId = "deal_id"
14
+ }
15
+ export declare enum EDistortImageModes {
16
+ FreeRotate = "freeRotate",
17
+ Lock = "lock",
18
+ Rotate = "rotate",
19
+ Scale = "scale",
20
+ Pan = "drag"
21
+ }
22
+ export declare enum EMapTypes {
23
+ Blank = "Blank",
24
+ Satellite = "Satellite",
25
+ Street = "Street",
26
+ GoogleSatellite = "hybrid",
27
+ GoogleStreet = "roadmap",
28
+ GoogleTerrain = "terrain"
29
+ }
30
+ export declare enum EMarkers {
31
+ CameraMarker = "cameraMarker",
32
+ ThreeSixtyMarker = "threeSixtyMarkers"
33
+ }
34
+ export declare enum EPageType {
35
+ List = "list",
36
+ Item = "item"
37
+ }
38
+ export declare enum EPaths {
39
+ Home = "/",
40
+ Session = "/session"
41
+ }
42
+ export declare enum EProjectItems {
43
+ Camera = "camera",
44
+ Overlay = "overlay"
45
+ }
46
+ export declare enum ERoles {
47
+ Admin = "admin",
48
+ User = "user"
49
+ }
50
+ export interface IDrawControl {
51
+ _toolbars: {
52
+ draw: {
53
+ _activeMode: {
54
+ handler: {
55
+ disable(): void;
56
+ completeShape(): void;
57
+ };
58
+ };
59
+ _modes: {
60
+ polygon: {
61
+ handler: {
62
+ enable(): void;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ edit: {
68
+ _modes: {
69
+ edit: {
70
+ handler: {
71
+ enable(): void;
72
+ disable(): void;
73
+ save(): void;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ }
@@ -0,0 +1,33 @@
1
+ export type ActiveUsersRequestPayload = {
2
+ from?: string;
3
+ to?: string;
4
+ companyExid?: string;
5
+ projectExid?: string;
6
+ cameraExid?: string;
7
+ };
8
+ export type ActiveUsersResponsePayload = Array<{
9
+ date?: string;
10
+ dau?: number;
11
+ wau?: number;
12
+ mau?: number;
13
+ }>;
14
+ export declare enum ActiveUsersMetric {
15
+ DAU = "dau",
16
+ WAU = "wau",
17
+ MAU = "mau"
18
+ }
19
+ export type PosthogUserParams = {
20
+ firstname?: string;
21
+ lastname?: string;
22
+ email: string;
23
+ telephone?: string;
24
+ country?: string;
25
+ isAdmin?: boolean;
26
+ persona?: string;
27
+ companyExid: string;
28
+ companyName: string;
29
+ isImpersonationLogin: boolean;
30
+ ImpersonatedUserEmail?: string;
31
+ ImpersonatedUserFirstname?: string;
32
+ impersonatedUserLastname?: string;
33
+ };
@@ -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,34 +1,4 @@
1
- import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
2
- export type Automation = {
3
- name?: string;
4
- cameraIds: string;
5
- cameraNames: number;
6
- cameraExids?: string[];
7
- createdAt: string;
8
- id: number;
9
- provider: string;
10
- type: AutomationType;
11
- config: Partial<{
12
- recipients: string | Record<string, string>[];
13
- companyId: number;
14
- compareDelay: number;
15
- categoryId: string;
16
- hubId: string;
17
- folderId: string;
18
- projectId: number;
19
- }>;
20
- isPaused: boolean;
21
- notifyDays: string | string[];
22
- notifyTime: string;
23
- requesterEmail: string;
24
- requesterName: string;
25
- timezone: string;
26
- title: string;
27
- compareDelay?: number;
28
- selectedProvider?: string;
29
- restrictedCameraExids?: string[];
30
- recipients?: string | string[];
31
- };
1
+ import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
32
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
33
3
  cameraExids?: string;
34
4
  notifyDays?: string;
@@ -38,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
38
8
  type?: string;
39
9
  config?: {
40
10
  compareDelay?: AutomationType;
11
+ period?: number;
41
12
  recipients?: string;
42
13
  projectId?: number;
43
14
  companyId?: number;
@@ -54,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
54
25
  export type ProgressPhotosResponsePayload = {
55
26
  progressPhotos: Automation[];
56
27
  };
28
+ export type ProgressPhotoItemResponsePayload = {
29
+ progressPhotos: Automation;
30
+ };
57
31
  export declare enum AutomationDialogType {
58
32
  Create = "create",
59
33
  Edit = "edit",
@@ -100,5 +74,5 @@ export type ProgressPhotosHistory = {
100
74
  cameraIds: string;
101
75
  failedCameraIds: string;
102
76
  subject: string;
103
- recipients: DateTime;
77
+ recipients: string;
104
78
  };
@@ -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,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
55
56
  snapshots: Array<SnapshotInstance>;
56
57
  };
57
58
  export declare enum BrainTool {
58
- Detections = "detections",
59
- Segmentation = "sam"
59
+ Detections = "detections"
60
60
  }
61
61
  export declare enum CloudRecordingFrequency {
62
62
  EverySecond = 60,
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
76
76
  Month = 30,
77
77
  ThreeMonths = 90
78
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
79
80
  export declare enum CloudRecordingStatus {
80
81
  On = "on",
81
82
  Off = "off",
@@ -1,4 +1,4 @@
1
- import type { DateType, PaginationParams } from "@/types";
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
2
  export type RecycleBin = {
3
3
  id?: number;
4
4
  exid: string;
@@ -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
+ };
@@ -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
+ };