@evercam/api 1.0.0-1e9dde45a → 1.0.0-1eef013f5

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 (75) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +77 -36
  3. package/dist/api/api/adminApi.d.ts +39 -22
  4. package/dist/api/api/aiApi.d.ts +125 -2
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +48 -25
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  8. package/dist/api/api/index.d.ts +1 -0
  9. package/dist/api/api/ingestApi.d.ts +56 -34
  10. package/dist/api/api/reportsApi.d.ts +15 -0
  11. package/dist/api/types/360.d.ts +127 -43
  12. package/dist/api/types/admin.d.ts +1 -1
  13. package/dist/api/types/aiConfigs.d.ts +244 -0
  14. package/dist/api/types/analytics.d.ts +57 -23
  15. package/dist/api/types/anpr.d.ts +31 -2
  16. package/dist/api/types/apiKey.d.ts +70 -0
  17. package/dist/api/types/auditLogs.d.ts +163 -20
  18. package/dist/api/types/authz.d.ts +71 -0
  19. package/dist/api/types/automation.d.ts +32 -4
  20. package/dist/api/types/axios.d.ts +9 -9
  21. package/dist/api/types/bim.d.ts +29 -6
  22. package/dist/api/types/camera.d.ts +39 -30
  23. package/dist/api/types/comments.d.ts +10 -3
  24. package/dist/api/types/company.d.ts +1 -2
  25. package/dist/api/types/compare.d.ts +1 -1
  26. package/dist/api/types/connector.d.ts +2 -0
  27. package/dist/api/types/detections.d.ts +3 -10
  28. package/dist/api/types/drone.d.ts +7 -7
  29. package/dist/api/types/emailMessages.d.ts +27 -0
  30. package/dist/api/types/errors.d.ts +18 -2
  31. package/dist/api/types/gateReport.d.ts +1 -11
  32. package/dist/api/types/gateReportManagement.d.ts +170 -0
  33. package/dist/api/types/hammertech.d.ts +98 -0
  34. package/dist/api/types/index.d.ts +10 -2
  35. package/dist/api/types/ingest.d.ts +194 -27
  36. package/dist/api/types/kit.d.ts +44 -101
  37. package/dist/api/types/media.d.ts +7 -2
  38. package/dist/api/types/notification.d.ts +52 -2
  39. package/dist/api/types/nvr.d.ts +8 -8
  40. package/dist/api/types/observationEvents.d.ts +141 -0
  41. package/dist/api/types/observations.d.ts +80 -0
  42. package/dist/api/types/planner.d.ts +3 -11
  43. package/dist/api/types/posthog.d.ts +20 -0
  44. package/dist/api/types/project.d.ts +15 -3
  45. package/dist/api/types/recording.d.ts +5 -12
  46. package/dist/api/types/reports.d.ts +108 -0
  47. package/dist/api/types/ring.d.ts +16 -16
  48. package/dist/api/types/roi.d.ts +2 -10
  49. package/dist/api/types/routeParams.d.ts +1 -0
  50. package/dist/api/types/shared.d.ts +15 -23
  51. package/dist/api/types/shares.d.ts +0 -13
  52. package/dist/api/types/siteAnalytics.d.ts +3 -5
  53. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  54. package/dist/api/types/siteView.d.ts +12 -8
  55. package/dist/api/types/snapshots.d.ts +13 -0
  56. package/dist/api/types/socket.d.ts +4 -0
  57. package/dist/api/types/storyblok.d.ts +0 -13
  58. package/dist/api/types/timelapse.d.ts +2 -13
  59. package/dist/api/types/user.d.ts +29 -4
  60. package/dist/api/utils.d.ts +1 -1
  61. package/dist/index.js +1780 -939
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.umd.cjs +1 -1
  64. package/dist/index.umd.cjs.map +1 -1
  65. package/dist/shared/types/components.d.ts +300 -44
  66. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  67. package/dist/shared/types/droneUpload.d.ts +93 -0
  68. package/dist/shared/types/index.d.ts +4 -0
  69. package/dist/shared/types/observations.d.ts +25 -0
  70. package/dist/shared/types/report.d.ts +107 -0
  71. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  72. package/dist/shared/utils/datePresets.d.ts +31 -0
  73. package/package.json +4 -2
  74. package/dist/api/types/copilot.d.ts +0 -162
  75. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,4 +1,4 @@
1
- import { CameraStatus, DateType, PaginationParams } from "@evercam/api/types";
1
+ import { CameraStatus, DateType, JsonValue, PaginationParams } from "@evercam/api/types";
2
2
  export declare enum AuditLogActionType {
3
3
  VH_STATUS = "vh_status",
4
4
  CR_UPDATED = "cr_updated",
@@ -12,7 +12,6 @@ export declare enum AuditLogActionType {
12
12
  WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
13
13
  SMS = "sms",
14
14
  CUSTOM = "custom",
15
- PUBLIC_NOTE = "public_note",
16
15
  SIM = "sim",
17
16
  LOGIN = "login",
18
17
  LOGOUT = "logout",
@@ -30,32 +29,176 @@ export declare enum AuditLogActionType {
30
29
  SHARE_REQUEST = "share_request",
31
30
  DELETE_SHARE_REQUEST = "delete_share_request",
32
31
  TRANSFER_OWNERSHIP = "transfer_ownership",
33
- BIM_NOTE = "bim_note",
34
- GATE_REPORT_NOTE = "gate_report_note"
32
+ TRANSFER_PROJECT = "transfer_project",
33
+ ASSIGN = "assign",
34
+ UNASSIGN = "unassign",
35
+ OAUTH_AUTHORIZE = "oauth_authorize",
36
+ OAUTH_TOKEN_ISSUE = "oauth_token_issue",
37
+ OAUTH_TOKEN_REFRESH = "oauth_token_refresh",
38
+ OAUTH_TOKEN_REVOKE = "oauth_token_revoke",
39
+ OAUTH_CLIENT_CREATE = "oauth_client_create",
40
+ OAUTH_CLIENT_DELETE = "oauth_client_delete",
41
+ API_KEY_REGENERATE = "api_key_regenerate",
42
+ API_KEY_REVOKE = "api_key_revoke"
35
43
  }
44
+ export declare enum AuditLogEntity {
45
+ Cameras = "cameras",
46
+ Projects = "projects",
47
+ Layers = "layers",
48
+ Routers = "routers",
49
+ Sims = "sims",
50
+ Hdds = "hdds",
51
+ Nvr = "nvr",
52
+ Archives = "archives",
53
+ Users = "users",
54
+ Rois = "rois",
55
+ Kits = "kits",
56
+ Roles = "roles",
57
+ Tags = "tags",
58
+ KitsTags = "kits_tags",
59
+ Oauth = "oauth",
60
+ ApiKeys = "api_keys",
61
+ StorageProviders = "storage_providers"
62
+ }
63
+ export type AuditLogDiff = {
64
+ old: Record<string, JsonValue>;
65
+ new: Record<string, JsonValue>;
66
+ };
67
+ export type AuditLogHddInfoItem = {
68
+ name?: string;
69
+ capacity?: string;
70
+ freeSpace?: string;
71
+ status?: string;
72
+ property?: string;
73
+ };
74
+ export type AuditLogCameraDetails = {
75
+ exid?: string;
76
+ name?: string;
77
+ with?: string;
78
+ errorBody?: string;
79
+ reason?: string;
80
+ settings?: AuditLogDiff;
81
+ };
82
+ export type AuditLogRouterDetails = {
83
+ serialNumber?: string;
84
+ cameraExid?: string;
85
+ cameraName?: string;
86
+ simNumber?: string;
87
+ settings?: AuditLogDiff;
88
+ deviceSettings?: Record<string, JsonValue>;
89
+ };
90
+ export type AuditLogUserEntityDetails = {
91
+ firstname?: string;
92
+ lastname?: string;
93
+ settings?: AuditLogDiff;
94
+ };
95
+ export type AuditLogProjectDetails = {
96
+ exid?: string;
97
+ name?: string;
98
+ settings?: AuditLogDiff;
99
+ };
100
+ export type AuditLogApiKeyDetails = {
101
+ name?: string;
102
+ maskedKey?: string;
103
+ userId?: number;
104
+ };
105
+ export type AuditLogDetails = {
106
+ id?: number;
107
+ exid?: string;
108
+ name?: string;
109
+ displayName?: string;
110
+ layerId?: number;
111
+ serial?: string;
112
+ type?: string;
113
+ note?: string;
114
+ with?: string;
115
+ message?: string;
116
+ config?: Record<string, JsonValue>;
117
+ settings?: AuditLogDiff;
118
+ camera?: AuditLogCameraDetails;
119
+ router?: AuditLogRouterDetails;
120
+ user?: AuditLogUserEntityDetails;
121
+ project?: AuditLogProjectDetails;
122
+ sim?: {
123
+ number?: string;
124
+ };
125
+ kit?: {
126
+ name?: string;
127
+ };
128
+ hdd?: {
129
+ serialNumber?: string;
130
+ settings?: AuditLogDiff;
131
+ };
132
+ roi?: {
133
+ settings?: AuditLogDiff;
134
+ };
135
+ hddInfo?: AuditLogHddInfoItem[];
136
+ oldOwner?: string;
137
+ newOwner?: string;
138
+ oldProjectExid?: string;
139
+ oldProjectName?: string;
140
+ newProjectExid?: string;
141
+ newProjectName?: string;
142
+ fromAdmin?: boolean;
143
+ who?: string;
144
+ email?: string;
145
+ scope?: string;
146
+ resourceId?: string;
147
+ clientId?: string;
148
+ clientName?: string;
149
+ oauthClientId?: string;
150
+ scopes?: string[];
151
+ grantType?: string;
152
+ tokenType?: string;
153
+ maskedKey?: string;
154
+ userId?: number;
155
+ apiKey?: AuditLogApiKeyDetails;
156
+ revoked?: AuditLogApiKeyDetails;
157
+ };
158
+ export declare enum AuditLogAuthMethod {
159
+ Password = "password",
160
+ ApiKeyV2 = "api_key_v2",
161
+ Widget = "widget",
162
+ OauthAccess = "oauth_access",
163
+ Impersonation = "impersonation",
164
+ Sso = "sso"
165
+ }
166
+ export type AuditLogUserDetails = {
167
+ browser: string;
168
+ country: string;
169
+ countryCode: string;
170
+ device: string | null;
171
+ ip: string;
172
+ os: string | null;
173
+ authMethod?: AuditLogAuthMethod;
174
+ apiKeyId?: number;
175
+ apiKeyName?: string;
176
+ apiKeyMasked?: string;
177
+ widgetId?: number;
178
+ oauthClientId?: string;
179
+ impersonatedBy?: string;
180
+ who?: string;
181
+ };
36
182
  export type AuditLog = {
37
183
  id: number;
38
184
  action: AuditLogActionType;
39
- details: Record<string, any>;
185
+ details: AuditLogDetails;
40
186
  insertedAt: DateType;
41
- entity: string;
42
- user_details: {
43
- browser: string;
44
- country: string;
45
- countryCode: string;
46
- device: string | null;
47
- ip: string;
48
- os: string | null;
49
- };
187
+ entity: AuditLogEntity;
188
+ userDetails: AuditLogUserDetails;
50
189
  who: string;
51
190
  };
52
191
  export type AuditLogsParams = PaginationParams & {
53
- routerId: number;
54
- cameraId: number;
55
- entity: string;
56
- byRouter: boolean;
57
- byCamera: boolean;
58
- byProject: boolean;
192
+ routerId: number | null;
193
+ cameraId: number | null;
194
+ entity: AuditLogEntity[] | "";
195
+ byRouter: string;
196
+ byCamera: string;
197
+ byProject: string;
198
+ userId: number;
199
+ byIp: string;
200
+ from: string;
201
+ to: string;
59
202
  action: string;
60
203
  };
61
204
  export type CameraLogsQueryParams = {
@@ -3,6 +3,10 @@ export declare enum RoleResourceType {
3
3
  Camera = "camera",
4
4
  Project = "project"
5
5
  }
6
+ export declare enum RoleAssignmentLogAction {
7
+ Assign = "assign",
8
+ Unassign = "unassign"
9
+ }
6
10
  export type RoleSubRole = {
7
11
  resourceId: string;
8
12
  roleId: number;
@@ -59,3 +63,70 @@ export type AuthzScopeCreatePayload = {
59
63
  export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
60
64
  export declare function isProjectRole(role: Role): role is ProjectResourceRole;
61
65
  export declare function isCameraRole(role: Role): role is CameraResourceRole;
66
+ export type RoleAssignmentUserDetails = {
67
+ browser?: string | null;
68
+ device?: string | null;
69
+ os?: string | null;
70
+ country?: string | null;
71
+ countryCode?: string | null;
72
+ ip?: string | null;
73
+ impersonatedBy?: string | null;
74
+ };
75
+ export type RoleAssignmentRowUserDetails = RoleAssignmentUserDetails & {
76
+ via?: string | null;
77
+ inviteId?: number | null;
78
+ inviteEmail?: string | null;
79
+ };
80
+ export type RoleAssignmentLog = {
81
+ id: number;
82
+ action: RoleAssignmentLogAction;
83
+ assignerId: number | null;
84
+ assignerEmail: string | null;
85
+ assigneeId: number | null;
86
+ assigneeEmail: string;
87
+ roleId: number | null;
88
+ roleName: string | null;
89
+ previousRoleId: number | null;
90
+ previousRoleName: string | null;
91
+ scope: RoleResourceType;
92
+ projectExid: string | null;
93
+ cameraExid: string | null;
94
+ cameraName: string | null;
95
+ projectName: string | null;
96
+ ip: string | null;
97
+ userDetails: RoleAssignmentRowUserDetails | null;
98
+ insertedAt: string;
99
+ };
100
+ export type RoleAssignmentResourceRef = {
101
+ exid: string;
102
+ name: string | null;
103
+ };
104
+ export type RoleAssignmentLogBatch = {
105
+ groupId: string;
106
+ batchId: string | null;
107
+ batchSize: number;
108
+ assigneeId: number | null;
109
+ assigneeEmail: string;
110
+ actions: RoleAssignmentLogAction[];
111
+ projects: RoleAssignmentResourceRef[];
112
+ ip: string | null;
113
+ userDetails: RoleAssignmentUserDetails | null;
114
+ insertedAt: string;
115
+ children: RoleAssignmentLog[];
116
+ };
117
+ export type RoleAssignmentLogsParams = {
118
+ page?: number;
119
+ limit?: number;
120
+ sort?: string;
121
+ action?: RoleAssignmentLogAction;
122
+ roleId?: number;
123
+ roleName?: string;
124
+ assigneeEmail?: string;
125
+ assignerEmail?: string;
126
+ scope?: RoleResourceType;
127
+ projectExid?: string;
128
+ cameraExid?: string;
129
+ ip?: string;
130
+ from?: string;
131
+ to?: string;
132
+ };
@@ -8,8 +8,28 @@ export declare enum AutomationProvider {
8
8
  export declare enum AutomationType {
9
9
  Photo = "photo",
10
10
  Compare = "compare",
11
- GateReport = "gate_report"
11
+ GateReport = "gate_report",
12
+ Weather = "weather"
12
13
  }
14
+ export declare enum AutomationWeatherReportType {
15
+ Forecast = "forecast",
16
+ History = "history"
17
+ }
18
+ export declare enum AutomationExportFormat {
19
+ Pdf = "pdf",
20
+ Csv = "csv"
21
+ }
22
+ export declare enum AutomationWeatherDataGranularity {
23
+ Daily = "daily",
24
+ Hourly = "hourly"
25
+ }
26
+ export type AutomationWeatherConfig = {
27
+ reportType: AutomationWeatherReportType;
28
+ exportFormat: AutomationExportFormat;
29
+ dataGranularity?: AutomationWeatherDataGranularity;
30
+ selectedColumns?: string[];
31
+ forecastDays?: number;
32
+ };
13
33
  export type AutomationCompareConfig = {
14
34
  compareDelay: number;
15
35
  };
@@ -22,7 +42,6 @@ export type AutomationGateReportConfig = {
22
42
  fileType: string;
23
43
  period: number;
24
44
  columns: string[];
25
- recipients: string | string[];
26
45
  };
27
46
  export type AutomationEmailProviderConfig = {
28
47
  cameraExids?: CameraExid[];
@@ -51,7 +70,7 @@ export type AutomationAutodeskProviderConfig = {
51
70
  folderName: string;
52
71
  };
53
72
  export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
54
- export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
73
+ export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
55
74
  export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
56
75
  export type Automation = {
57
76
  id?: number;
@@ -81,8 +100,17 @@ export type AutomationProviderOption = {
81
100
  iconSize?: string;
82
101
  requiresConnection: boolean;
83
102
  };
103
+ export type AutomationTypeOption = {
104
+ labelTranslationKey: string;
105
+ descriptionTranslationKey: string;
106
+ label?: string;
107
+ description?: string;
108
+ value: AutomationType;
109
+ icon: string;
110
+ iconType?: string;
111
+ };
84
112
  export type FormattedAutomation = {
85
- cameraExids: string;
113
+ cameraExids?: string;
86
114
  name: string;
87
115
  subject: string;
88
116
  provider: AutomationProvider;
@@ -1,9 +1,5 @@
1
1
  import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
2
2
  import { Swr } from "@evercam/api/api/client/swr/Swr";
3
- export type TimedRequest<T> = Promise<AxiosResponse<T> & {
4
- duration: number;
5
- error?: AxiosError;
6
- }>;
7
3
  export type AxiosEnvironment = {
8
4
  baseUrl?: string | null;
9
5
  stagingAiApiUrl?: string | null;
@@ -13,10 +9,11 @@ export type AxiosEnvironment = {
13
9
  ingestGpuApiUrl?: string | null;
14
10
  posthogApiUrl?: string | null;
15
11
  posthogProjectId?: string | null;
16
- posthogPrivateApiKey?: string | null;
17
12
  firebaseVideowallUrl?: string | null;
18
13
  weatherApiBaseUrl?: string | null;
19
14
  evercamLabsUrl?: string | null;
15
+ isLabsStaging?: boolean;
16
+ reportsApiUrl?: string | null;
20
17
  firebaseDbLink?: string | null;
21
18
  firebaseStorageUrl?: string | null;
22
19
  firebaseStorageToken?: string | null;
@@ -30,15 +27,18 @@ export type AxiosEnvironment = {
30
27
  export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
31
28
  export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
32
29
  export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
30
+ export type RequestManager = {
31
+ createToken: (key: string) => CancelTokenSource["token"];
32
+ cancelToken: (key: string) => void;
33
+ cancelAll: () => void;
34
+ };
33
35
  export interface ExtendedAxiosInstance extends AxiosInstance {
34
36
  CancelToken: CancelTokenStatic;
35
37
  isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
36
38
  setToken: (token: string) => void;
37
39
  setHeader: (headerName: string, value: any) => void;
38
- generateCancelTokenSource: () => CancelTokenSource;
39
- addCancelToken: (token: CancelTokenSource) => void;
40
- resetCancelTokens: () => void;
41
- cancelRequests: () => void;
40
+ createRequestManager: () => RequestManager;
41
+ requestManager: RequestManager;
42
42
  env: AxiosEnvironment;
43
43
  addEnvironmentVariables: (vars: Record<string, any>) => void;
44
44
  addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
@@ -1,4 +1,4 @@
1
- import { CompareLogoPosition, DateType } from "@evercam/api/types";
1
+ import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
2
2
  export declare enum BimModelType {
3
3
  Architectural = "Architectural",
4
4
  Structural = "Structural",
@@ -40,7 +40,7 @@ export type BimCompareExportRequestPayload = {
40
40
  cameraExid: string;
41
41
  snapshotDate: string;
42
42
  bimDate: string;
43
- embed: string;
43
+ embed?: string;
44
44
  compareExid: string;
45
45
  createAnimation: boolean;
46
46
  bimTransparency?: number;
@@ -101,7 +101,7 @@ export type BIMLayerPostPayload = {
101
101
  layerType: BIMLayerTypes;
102
102
  startAt: DateType;
103
103
  shapes: string;
104
- zIndex: number;
104
+ zIndex?: number;
105
105
  };
106
106
  export type BIMLayer = {
107
107
  id: number;
@@ -137,9 +137,7 @@ export type ProcessPendingImagesBimParams = {
137
137
  apiId: string;
138
138
  apiKey: string;
139
139
  };
140
- export type BimUploadsQueryParams = {
141
- page: number;
142
- limit: number;
140
+ export type BimUploadsQueryParams = PaginationParams & {
143
141
  projectId: string;
144
142
  id: string;
145
143
  uploadedBy: string;
@@ -151,3 +149,28 @@ export type BimUploadPayload = {
151
149
  fileExtension: string;
152
150
  }[];
153
151
  };
152
+ export declare enum ForgeBimUploadMethod {
153
+ FileUpload = "file_upload",
154
+ AutodeskAcc = "autodesk_acc"
155
+ }
156
+ export declare enum ForgeBimFileRejectionReason {
157
+ InvalidType = "invalid_type",
158
+ ExceedsSizeLimit = "exceeds_size_limit"
159
+ }
160
+ export declare enum ForgeBimUploadStage {
161
+ TusUpload = "tus_upload",
162
+ IngestUpload = "ingest_upload"
163
+ }
164
+ export declare enum ForgeBimDialogTrigger {
165
+ UpdateModel = "update_model",
166
+ AddModel = "add_model",
167
+ InitialSetup = "initial_setup"
168
+ }
169
+ export type BimUpdatedWebhookPayload = {
170
+ eventName: "bim.updated";
171
+ projectId: string;
172
+ data: {
173
+ updatedAt: string;
174
+ bimIdentifier: string;
175
+ };
176
+ };
@@ -1,6 +1,6 @@
1
- import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
1
+ import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
2
2
  import { DateRangeFilter } from "@evercam/api/types/time";
3
- import { GeoPoint } from "@evercam/api/types/shared";
3
+ import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
4
4
  export type CameraExid = string;
5
5
  export type CamerasByExid = EntityByExid<Camera>;
6
6
  export type Camera = {
@@ -80,6 +80,8 @@ export type Camera = {
80
80
  vendorName: string;
81
81
  isAccessRestricted?: boolean;
82
82
  kitAlarms?: KitAlarm[];
83
+ timestampPosition?: TimestampPositionCoordinates;
84
+ position?: number | null;
83
85
  };
84
86
  export type AdminCamera = {
85
87
  id: number;
@@ -199,17 +201,12 @@ export declare enum CameraFeatureFlag {
199
201
  PpeOwlv2 = "ppe_owlv2",
200
202
  PpeGemini = "ppe_gemini",
201
203
  PpeYolo = "ppe_yolo",
204
+ PpeV2 = "ppe_v2",
202
205
  NoLiveView = "no_live_view",
206
+ NoRecordings = "no_recordings",
203
207
  Ring = "ring",
204
208
  CloudOnly = "cloud_only"
205
209
  }
206
- export type CameraLogsRequestPayload = {
207
- limit: number;
208
- page: number;
209
- types: string;
210
- from: string;
211
- to: string;
212
- };
213
210
  export type CameraUpdateRequestPayload = {
214
211
  status?: string;
215
212
  timezone?: string;
@@ -250,13 +247,17 @@ export type CameraUpdateRequestPayload = {
250
247
  export type CamerasResponsePayload = {
251
248
  cameras?: Camera[];
252
249
  };
253
- export type CameraLogsResponsePayload = {
254
- cameraExid: string;
255
- cameraName: string;
256
- logs?: Log[];
257
- details?: {
258
- customMessage?: string;
250
+ export type CameraNoteResponsePayload = {
251
+ id: number;
252
+ camera: {
253
+ exid: string;
254
+ name: string;
259
255
  };
256
+ who: string;
257
+ noteType: string;
258
+ content: string;
259
+ pinned: boolean;
260
+ insertedAt: string;
260
261
  };
261
262
  export type CameraStatusLog = {
262
263
  start: string;
@@ -296,7 +297,9 @@ export declare enum NvrModel {
296
297
  Avigilion = "avigilion",
297
298
  Hanwha = "hanwha",
298
299
  Nxwitness = "nxwitness",
299
- ExNvr = "ex_nvr"
300
+ ExNvr = "ex_nvr",
301
+ None = "none",
302
+ Other = "other"
300
303
  }
301
304
  export declare enum CameraModel {
302
305
  YCam = "y-cam",
@@ -350,7 +353,7 @@ export type CameraCreateRequestPayload = {
350
353
  isPowerScheduleActive?: boolean;
351
354
  ptz?: boolean;
352
355
  name: string;
353
- coordinates?: [number, number];
356
+ coordinates?: TuplePoint2D;
354
357
  recordingFromNvr?: boolean;
355
358
  CameraConfig: {
356
359
  model: CameraModel;
@@ -368,10 +371,10 @@ export type CameraCreateRequestPayload = {
368
371
  serial?: string;
369
372
  deviceType?: NvrDeviceType;
370
373
  macAddress?: string;
371
- username: string;
372
- password: string;
373
- httpUrl: string;
374
- rtspUrl?: string;
374
+ username: string | null;
375
+ password: string | null;
376
+ httpUrl: string | null;
377
+ rtspUrl?: string | null;
375
378
  };
376
379
  cloudRecording?: {
377
380
  id?: number;
@@ -387,22 +390,26 @@ export type CameraDeletePayload = {
387
390
  verify: string;
388
391
  password: string;
389
392
  };
390
- export type SaveNotePayload = {
391
- noteType: string;
392
- content: string;
393
- };
394
393
  export type CameraNote = {
395
394
  id: number;
396
395
  cameraId: number;
396
+ who: string;
397
397
  noteType: string;
398
398
  content: string;
399
+ pinned: boolean;
399
400
  insertedAt: DateType;
400
401
  };
402
+ export type GetCameraNotesParams = {
403
+ noteType?: string;
404
+ pinned?: boolean;
405
+ sort?: string;
406
+ page?: number;
407
+ limit?: number;
408
+ };
401
409
  export type CreateCameraNotePayload = {
402
- id?: number;
403
- cameraExid: CameraExid;
404
- customMessage: string;
405
- action: string;
410
+ noteType: string;
411
+ content: string;
412
+ pinned?: boolean;
406
413
  };
407
414
  export declare enum HddStatus {
408
415
  Error = "error",
@@ -486,7 +493,7 @@ export declare enum DuplicatedCameraFields {
486
493
  export type DuplicatedCameraObject = {
487
494
  exid: string;
488
495
  name: string;
489
- cameraStatus: string;
496
+ cameraStatus: CameraStatus;
490
497
  crStatus: string;
491
498
  };
492
499
  export type DuplicatedCameraResponse = {
@@ -502,6 +509,8 @@ export type MergeDuplicatedCameraPayload = {
502
509
  shareeCameras: Record<string, unknown>;
503
510
  };
504
511
  export type FetchCameraQueryParams = PaginationParams & {
512
+ /** Narrows the index to one project. Sent as `project_exid`. */
513
+ projectExid: ProjectExid;
505
514
  status: CameraStatus;
506
515
  isPublic: boolean;
507
516
  featureFlags: CameraFeatureFlag[];
@@ -1,4 +1,4 @@
1
- import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint2D } from "@evercam/api/types";
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
2
2
  export declare enum CommentsScope {
3
3
  Recordings = "recordings",
4
4
  ThreeSixty = "360",
@@ -37,7 +37,7 @@ export type Comment = {
37
37
  creatorEmail?: string;
38
38
  creatorName?: string;
39
39
  position2d?: TuplePoint2D;
40
- position3d?: [number, number, number];
40
+ position3d?: TuplePoint3D;
41
41
  context?: Record<string, unknown>;
42
42
  canDelete?: boolean;
43
43
  archivedAt?: string;
@@ -48,10 +48,17 @@ export type CommentCreationRequestPayload = {
48
48
  toDate?: DateType;
49
49
  timestamp?: DateType;
50
50
  scope?: CommentsScope;
51
- projectExid: ProjectExid;
51
+ projectExid?: ProjectExid;
52
52
  cameraExid?: CameraExid;
53
53
  content: string;
54
+ label?: CommentsLabel;
54
55
  position2d?: TuplePoint2D;
55
56
  position3d?: [number, number, number];
56
57
  context?: Record<string, unknown>;
57
58
  };
59
+ export type CommentThreeSixtyContext = {
60
+ floorId: string;
61
+ dateId: string;
62
+ currentRoom: string;
63
+ cameraRotation: _360CameraRotation;
64
+ };
@@ -4,8 +4,7 @@ export type CompanyUser = {
4
4
  fullname: string;
5
5
  email: string;
6
6
  eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
7
+ lastLoginAt: string;
9
8
  };
10
9
  export type AdminCompanyUser = {
11
10
  id: number;
@@ -33,7 +33,7 @@ export type CompareRequestPayload = {
33
33
  beforeDate: string;
34
34
  afterDate: string;
35
35
  cameraExid: string;
36
- embed: string;
36
+ embed?: string;
37
37
  bim?: boolean;
38
38
  custom?: boolean;
39
39
  options?: {
@@ -10,6 +10,8 @@ export declare enum Connector {
10
10
  AutodeskViewer = "autodesk_viewer",
11
11
  VoyageControl = "voyage_control",
12
12
  Ring = "ring",
13
+ Email = "email",
14
+ Hammertech = "hammertech",
13
15
  XWeather = "xweather"
14
16
  }
15
17
  export declare enum ProcoreType {