@evercam/api 1.0.0-4656f3be4 → 1.0.0-47847a4fe

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 (62) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +18 -3
  2. package/dist/api/api/adminApi.d.ts +82 -84
  3. package/dist/api/api/aiApi.d.ts +4 -4
  4. package/dist/api/api/evercamApi.d.ts +19 -27
  5. package/dist/api/api/evercamLabsApi.d.ts +5 -13
  6. package/dist/api/api/exNvrApi.d.ts +1 -1
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +38 -30
  9. package/dist/api/api/reportsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +17 -9
  11. package/dist/api/types/admin.d.ts +37 -3
  12. package/dist/api/types/analytics.d.ts +49 -15
  13. package/dist/api/types/anpr.d.ts +5 -4
  14. package/dist/api/types/apiKey.d.ts +70 -0
  15. package/dist/api/types/auditLogs.d.ts +161 -21
  16. package/dist/api/types/automation.d.ts +9 -0
  17. package/dist/api/types/axios.d.ts +1 -0
  18. package/dist/api/types/bim.d.ts +27 -7
  19. package/dist/api/types/camera.d.ts +224 -96
  20. package/dist/api/types/comments.d.ts +63 -25
  21. package/dist/api/types/company.d.ts +11 -5
  22. package/dist/api/types/compare.d.ts +1 -1
  23. package/dist/api/types/detections.d.ts +3 -0
  24. package/dist/api/types/emailMessages.d.ts +27 -0
  25. package/dist/api/types/errors.d.ts +7 -2
  26. package/dist/api/types/gateReport.d.ts +2 -1
  27. package/dist/api/types/hdd.d.ts +1 -1
  28. package/dist/api/types/index.d.ts +3 -1
  29. package/dist/api/types/ingest.d.ts +105 -25
  30. package/dist/api/types/kit.d.ts +56 -68
  31. package/dist/api/types/media.d.ts +25 -3
  32. package/dist/api/types/notification.d.ts +12 -1
  33. package/dist/api/types/nvr.d.ts +39 -8
  34. package/dist/api/types/observationEvents.d.ts +26 -0
  35. package/dist/api/types/observations.d.ts +14 -9
  36. package/dist/api/types/posthog.d.ts +36 -0
  37. package/dist/api/types/progressPhoto.d.ts +38 -25
  38. package/dist/api/types/project.d.ts +61 -22
  39. package/dist/api/types/recycleBin.d.ts +8 -2
  40. package/dist/api/types/reports.d.ts +109 -0
  41. package/dist/api/types/router.d.ts +15 -10
  42. package/dist/api/types/shared.d.ts +29 -19
  43. package/dist/api/types/sim.d.ts +18 -6
  44. package/dist/api/types/siteView.d.ts +14 -8
  45. package/dist/api/types/snapshots.d.ts +52 -12
  46. package/dist/api/types/sso.d.ts +11 -37
  47. package/dist/api/types/storageProvider.d.ts +16 -5
  48. package/dist/api/types/user.d.ts +32 -29
  49. package/dist/api/types/widget.d.ts +13 -4
  50. package/dist/api/utils.d.ts +1 -0
  51. package/dist/index.js +840 -691
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.umd.cjs +1 -1
  54. package/dist/index.umd.cjs.map +1 -1
  55. package/dist/shared/types/components.d.ts +406 -23
  56. package/dist/shared/types/droneUpload.d.ts +93 -0
  57. package/dist/shared/types/index.d.ts +2 -0
  58. package/dist/shared/types/report.d.ts +107 -0
  59. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  60. package/dist/shared/utils/datePresets.d.ts +31 -0
  61. package/package.json +1 -1
  62. package/dist/api/types/copilot.d.ts +0 -159
@@ -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,8 +29,17 @@ 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
  }
36
44
  export declare enum AuditLogEntity {
37
45
  Cameras = "cameras",
@@ -49,31 +57,148 @@ export declare enum AuditLogEntity {
49
57
  Tags = "tags",
50
58
  KitsTags = "kits_tags",
51
59
  Oauth = "oauth",
60
+ ApiKeys = "api_keys",
52
61
  StorageProviders = "storage_providers"
53
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
+ };
54
182
  export type AuditLog = {
55
183
  id: number;
56
184
  action: AuditLogActionType;
57
- details: Record<string, any>;
185
+ details: AuditLogDetails;
58
186
  insertedAt: DateType;
59
- entity: string;
60
- user_details: {
61
- browser: string;
62
- country: string;
63
- countryCode: string;
64
- device: string | null;
65
- ip: string;
66
- os: string | null;
67
- };
187
+ entity: AuditLogEntity;
188
+ userDetails: AuditLogUserDetails;
68
189
  who: string;
69
190
  };
70
191
  export type AuditLogsParams = PaginationParams & {
71
- routerId: number;
72
- cameraId: number;
73
- entity: string;
74
- byRouter: boolean;
75
- byCamera: boolean;
76
- 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;
77
202
  action: string;
78
203
  };
79
204
  export type CameraLogsQueryParams = {
@@ -113,5 +238,20 @@ export type CameraAuditLog = {
113
238
  export type CameraAuditLogsQueryParams = PaginationParams & {
114
239
  from: string;
115
240
  to: string;
116
- action: AuditLogActionType[];
241
+ action: string[] | null;
242
+ routerId?: number | null;
243
+ };
244
+ export type CamerasStatusLogsQueryParams = {
245
+ projectId: string;
246
+ status?: CameraStatus[];
247
+ historyDays?: number;
248
+ from: DateType;
249
+ to: DateType;
250
+ };
251
+ export type CameraStatusLogItem = CameraLogItem & {
252
+ status: CameraStatus;
253
+ };
254
+ export type CamerasStatusLog = {
255
+ data: CameraStatusLogItem[];
256
+ measure: string;
117
257
  };
@@ -100,6 +100,15 @@ export type AutomationProviderOption = {
100
100
  iconSize?: string;
101
101
  requiresConnection: boolean;
102
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
+ };
103
112
  export type FormattedAutomation = {
104
113
  cameraExids?: string;
105
114
  name: string;
@@ -13,6 +13,7 @@ export type AxiosEnvironment = {
13
13
  weatherApiBaseUrl?: string | null;
14
14
  evercamLabsUrl?: string | null;
15
15
  isLabsStaging?: boolean;
16
+ reportsApiUrl?: string | null;
16
17
  firebaseDbLink?: string | null;
17
18
  firebaseStorageUrl?: string | null;
18
19
  firebaseStorageToken?: string | null;
@@ -21,6 +21,7 @@ export type BimModelRequestPayload = {
21
21
  apiId?: string;
22
22
  };
23
23
  export type BimModelResponsePayload = {
24
+ id?: number;
24
25
  dates?: [string];
25
26
  height?: number;
26
27
  imageUrl?: string;
@@ -40,7 +41,7 @@ export type BimCompareExportRequestPayload = {
40
41
  cameraExid: string;
41
42
  snapshotDate: string;
42
43
  bimDate: string;
43
- embed: string;
44
+ embed?: string;
44
45
  compareExid: string;
45
46
  createAnimation: boolean;
46
47
  bimTransparency?: number;
@@ -64,9 +65,19 @@ export declare enum BimUploadStatus {
64
65
  Success = 2,
65
66
  Failed = 3
66
67
  }
68
+ export declare enum BimSoftware {
69
+ Synchro = "synchro",
70
+ Navisworks = "navisworks",
71
+ Revit = "revit",
72
+ Tekla = "tekla",
73
+ Archicad = "archicad",
74
+ Solibri = "solibri",
75
+ Bim360 = "bim360",
76
+ Other = "other"
77
+ }
67
78
  export type BimCreationPayload = {
68
79
  title: string;
69
- software: "synchro" | "navisworks" | "revit" | "tekla" | "archicad" | "solibri" | "bim360" | "other";
80
+ software: BimSoftware;
70
81
  model: string;
71
82
  apiKey: string;
72
83
  apiId: string;
@@ -92,16 +103,21 @@ export declare enum BIMLayerTypes {
92
103
  ForgeBim4D = "forge_bim_4d",
93
104
  ForgeBimMep = "forge_bim_mep"
94
105
  }
95
- export type BimLayersQueryParams = {
106
+ export type BimLayersQueryParams = Partial<{
96
107
  layerType: BIMLayerTypes;
97
108
  timestamp: DateType;
98
- };
109
+ apiKey: string;
110
+ apiId: string;
111
+ }>;
99
112
  export type BIMLayerPostPayload = {
100
113
  name: string;
101
114
  layerType: BIMLayerTypes;
102
115
  startAt: DateType;
103
116
  shapes: string;
104
117
  zIndex?: number;
118
+ displayName?: string;
119
+ apiKey?: string;
120
+ apiId?: string;
105
121
  };
106
122
  export type BIMLayer = {
107
123
  id: number;
@@ -111,19 +127,23 @@ export type BIMLayer = {
111
127
  insertedAt: DateType;
112
128
  updatedAt: DateType;
113
129
  shapes: string;
130
+ displayName?: string;
114
131
  };
115
132
  export type BimPendingImage = {
116
133
  url: string;
117
- s3Url: string;
134
+ key: string;
135
+ date?: string;
118
136
  };
119
137
  export type BimUploadCameraParameters = {
120
- distortionFov: [number];
138
+ distortionCoeffs: number[];
121
139
  horizontalFov: number;
122
140
  verticalFov: number;
123
141
  focalLength1: number;
124
142
  focalLength2: number;
125
143
  centerX: number;
126
144
  centerY: number;
145
+ apiId?: string;
146
+ apiKey?: string;
127
147
  };
128
148
  export type PendingBimImagesParams = {
129
149
  model: string;
@@ -132,7 +152,7 @@ export type PendingBimImagesParams = {
132
152
  };
133
153
  export type ProcessPendingImagesBimParams = {
134
154
  model: string;
135
- names: string[];
155
+ names: BimPendingImage[];
136
156
  enableDistortion: boolean;
137
157
  apiId: string;
138
158
  apiKey: string;