@evercam/api 1.0.0-c526e2564 → 1.0.0-c540355aa

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 (35) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +7 -1
  2. package/dist/api/api/adminApi.d.ts +15 -3
  3. package/dist/api/api/evercamApi.d.ts +7 -12
  4. package/dist/api/api/index.d.ts +1 -1
  5. package/dist/api/api/ingestApi.d.ts +31 -26
  6. package/dist/api/api/{workflowsApi.d.ts → reportsApi.d.ts} +2 -2
  7. package/dist/api/types/360.d.ts +1 -0
  8. package/dist/api/types/admin.d.ts +1 -1
  9. package/dist/api/types/analytics.d.ts +9 -0
  10. package/dist/api/types/apiKey.d.ts +70 -0
  11. package/dist/api/types/auditLogs.d.ts +145 -19
  12. package/dist/api/types/axios.d.ts +1 -1
  13. package/dist/api/types/bim.d.ts +1 -1
  14. package/dist/api/types/camera.d.ts +1 -1
  15. package/dist/api/types/compare.d.ts +1 -1
  16. package/dist/api/types/errors.d.ts +6 -2
  17. package/dist/api/types/index.d.ts +2 -1
  18. package/dist/api/types/ingest.d.ts +92 -25
  19. package/dist/api/types/kit.d.ts +1 -50
  20. package/dist/api/types/observations.d.ts +3 -7
  21. package/dist/api/types/project.d.ts +1 -1
  22. package/dist/api/types/{workflows.d.ts → reports.d.ts} +4 -4
  23. package/dist/api/types/shared.d.ts +13 -1
  24. package/dist/api/types/siteView.d.ts +6 -6
  25. package/dist/index.js +800 -673
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.umd.cjs +1 -1
  28. package/dist/index.umd.cjs.map +1 -1
  29. package/dist/shared/types/components.d.ts +40 -12
  30. package/dist/shared/types/droneUpload.d.ts +93 -0
  31. package/dist/shared/types/index.d.ts +2 -0
  32. package/dist/shared/types/report.d.ts +107 -0
  33. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  34. package/dist/shared/utils/datePresets.d.ts +31 -0
  35. package/package.json +1 -1
@@ -28,8 +28,6 @@ export declare enum IngestTypes {
28
28
  }
29
29
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
30
30
  projectId: string;
31
- consumed: string;
32
- token: string;
33
31
  processingStatus: IngestProcessingStatus;
34
32
  };
35
33
  export type IngestPaginatedResponse<T> = {
@@ -116,8 +114,6 @@ export type IngestTrackedAsset = {
116
114
  export type DroneUploadItem = {
117
115
  id: number;
118
116
  projectId: string;
119
- consumed: boolean;
120
- token: string;
121
117
  flightDate: string;
122
118
  flightGeolocation: string;
123
119
  modelZip: string;
@@ -128,35 +124,106 @@ export type DroneUploadItem = {
128
124
  processingStatus: IngestProcessingStatus | string;
129
125
  modelCesiumAssetId: string;
130
126
  updatedAt: string;
131
- hasTusLinks: boolean;
127
+ canDelete: boolean;
128
+ canReprocess: boolean;
132
129
  hasSteps: boolean;
133
- aerialShots: AerialShotItem[];
130
+ aerialShotsCount: number;
134
131
  };
135
132
  export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
136
133
  export type DroneQueueResponse = {
137
134
  size: number;
138
135
  assetsDrone: DroneUploadItem[];
139
136
  };
140
- export type DroneUploadUpdateRequestPayload = {
141
- flightMetadata: {
142
- dateTime: string;
143
- gpsAltitude: string;
144
- gpsCoordinates: string;
145
- };
146
- upload: {
147
- url: string;
148
- title: string;
149
- fileExtension: string;
150
- }[];
151
- aerialShots: {
152
- url: string;
153
- title: string;
154
- fileExtension: string;
155
- gpsLatitude: string;
156
- gpsLongitude: string;
157
- gpsAltitude: string;
137
+ export type DroneFlightMetadata = {
138
+ dateTime: string;
139
+ gpsAltitude: string;
140
+ gpsCoordinates: string;
141
+ };
142
+ export type DroneFileAllocation = {
143
+ filename: string;
144
+ contentType: string;
145
+ };
146
+ export declare enum UploadFileStatus {
147
+ Allocated = "allocated",
148
+ Acknowledged = "acknowledged"
149
+ }
150
+ export type DroneFileState = DroneFileAllocation & {
151
+ status: UploadFileStatus;
152
+ uploadUrl?: string;
153
+ };
154
+ export type DroneFileError = {
155
+ filename?: string;
156
+ id?: number;
157
+ code: string;
158
+ detail: string;
159
+ retryable: boolean;
160
+ };
161
+ export type DroneFileStates = {
162
+ files: DroneFileState[];
163
+ errors: DroneFileError[];
164
+ nextCursor?: string | null;
165
+ };
166
+ export type DroneCompletion = DroneFileStates & {
167
+ processingId: number;
168
+ processingStatus: IngestProcessingStatus;
169
+ };
170
+ export type DroneReprocessResponse = Pick<DroneCompletion, "processingId" | "processingStatus">;
171
+ export type AerialAllocation = DroneFileAllocation & {
172
+ gpsLatitude: string;
173
+ gpsLongitude: string;
174
+ gpsAltitude: string;
175
+ };
176
+ export type AerialUploadState = AerialAllocation & {
177
+ id: number;
178
+ status: UploadFileStatus;
179
+ processingStatus: IngestProcessingStatus;
180
+ uploadUrl?: string;
181
+ fileLink?: string;
182
+ thumbnailLink?: string;
183
+ };
184
+ export type AerialUploadStates = {
185
+ aerialShots: AerialUploadState[];
186
+ errors: DroneFileError[];
187
+ nextCursor?: string | null;
188
+ complete: boolean;
189
+ };
190
+ export type AerialShotState = {
191
+ id: number;
192
+ filename?: string | null;
193
+ status?: UploadFileStatus | null;
194
+ contentType?: string | null;
195
+ processingStatus?: AerialUploadState["processingStatus"] | null;
196
+ gpsLatitude: string;
197
+ gpsLongitude: string;
198
+ gpsAltitude: string;
199
+ fileLink?: string | null;
200
+ thumbnailLink?: string | null;
201
+ };
202
+ export type AerialShotPage = Omit<AerialUploadStates, "aerialShots"> & {
203
+ aerialShots: AerialShotState[];
204
+ };
205
+ export type DroneCreation = {
206
+ projectId: string;
207
+ flightMetadata: DroneFlightMetadata;
208
+ aerialShots?: AerialAllocation[];
209
+ };
210
+ export type DroneProcessingTarget = {
211
+ ingestUrl: string;
212
+ id: number;
213
+ };
214
+ export type DroneCreated = {
215
+ id: number;
216
+ projectId: string;
217
+ processingStatus: IngestProcessingStatus;
218
+ aerialShots: AerialUploadState[];
219
+ errors: DroneFileError[];
220
+ };
221
+ export type DroneDeletion = {
222
+ deleted: {
223
+ filename: string;
224
+ id?: number;
158
225
  }[];
159
- projectName: string;
226
+ errors: DroneFileError[];
160
227
  };
161
228
  export type CalculateMeasuringOperationRequestPayload = {
162
229
  date: DateType;
@@ -1,4 +1,4 @@
1
- import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
1
+ import { CameraExid, CountryCode, CountryId, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -242,55 +242,6 @@ export type KitQueryParams = PaginationParams & {
242
242
  status: KitStatus;
243
243
  tagId: number | number[];
244
244
  };
245
- export type AdminKit = {
246
- id: number;
247
- name: string;
248
- serial: string;
249
- status: string;
250
- powerType: PowerType;
251
- location: string;
252
- countryId: number;
253
- countryName: string;
254
- countryRegion: string;
255
- nvr: Nvr;
256
- router: {
257
- id: number;
258
- serialNumber: number;
259
- vpnUserId: string;
260
- vpnPassword: string;
261
- routerType: string;
262
- routerUserId: string;
263
- routerPassword: string;
264
- routerHttpPort: number;
265
- powerType: PowerType;
266
- powerSchedule: Schedule;
267
- vpnServer: string;
268
- netbirdUrl: string;
269
- sims: {
270
- id: number;
271
- number: string;
272
- }[];
273
- };
274
- project: {
275
- id: number;
276
- exid: string;
277
- name: string;
278
- timezone: string;
279
- status: string;
280
- zohoId: string;
281
- insertedAt: DateType;
282
- };
283
- };
284
- export type KitCreatePayload = {
285
- projectId?: number;
286
- countryCode?: string;
287
- name: string;
288
- status: KitStatus;
289
- powerType: PowerType;
290
- config: {
291
- region: KitRegion;
292
- };
293
- };
294
245
  export type KitMetricStatsEntry = {
295
246
  timestamp: string;
296
247
  voltage: number;
@@ -47,13 +47,13 @@ export type ObservationEventsQueryParams = {
47
47
  };
48
48
  export type ObservationEventsExportQueryParams = {
49
49
  cameraExid?: CameraExid;
50
+ observationCode?: string;
51
+ missingItems?: string;
52
+ status?: ObservationEventStatus;
50
53
  fromDate: string;
51
54
  toDate: string;
52
- required?: string;
53
- compliant?: boolean;
54
55
  fileType: DownloadFileType;
55
56
  directDownload?: boolean;
56
- includeInvalid?: boolean;
57
57
  };
58
58
  export type ObservationApprovalUpdateResponse = {
59
59
  updated: boolean;
@@ -78,7 +78,3 @@ export type ObservationEventCount = {
78
78
  bucket: DateType;
79
79
  total: number;
80
80
  };
81
- export declare enum ObservationRequiredItem {
82
- Helmet = "has_helmet",
83
- HighVisVest = "has_high_vis_vest"
84
- }
@@ -187,7 +187,7 @@ export type ProjectMember = {
187
187
  } | null;
188
188
  };
189
189
  export type ProjectInvite = {
190
- id?: string;
190
+ id: number;
191
191
  email: string;
192
192
  role?: ProjectRole;
193
193
  permissions?: string[];
@@ -1,14 +1,14 @@
1
1
  /**
2
- * The Evercam Workflows engine (evercam-agent-kit), as the admin app sees it.
2
+ * The Evercam Reports engine (evercam-agent-kit), as the admin app sees it.
3
3
  *
4
- * These mirror `evercam_workflows/api/schemas.py`. The engine speaks camelCase over
4
+ * These mirror `evercam_reports/api/schemas.py`. The engine speaks camelCase over
5
5
  * the wire, so the admin client reads it with `preserveCasing: true` and these are
6
6
  * the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
7
7
  * own workflow types live in `packages/agent`, unreachable here.
8
8
  */
9
9
  /** What kind of conversation this is. Chat only ever opens `chat`. */
10
10
  export declare enum ChatMode {
11
- Workflow = "workflow",
11
+ Report = "report",
12
12
  Chat = "chat"
13
13
  }
14
14
  /** Whose conversations a list covers. Only an admin is ever given `all`. */
@@ -57,7 +57,7 @@ export type ChatSession = {
57
57
  projectName: string | null;
58
58
  cameraExids: string[] | null;
59
59
  turns: ChatTurn[];
60
- savedWorkflowId: string | null;
60
+ savedReportId: string | null;
61
61
  createdBy: string | null;
62
62
  createdAt: string;
63
63
  updatedAt: string;
@@ -117,6 +117,10 @@ export declare enum DownloadFileType {
117
117
  Pdf = "pdf",
118
118
  Csv = "csv"
119
119
  }
120
+ export declare enum PromiseSettledStatus {
121
+ Fulfilled = "fulfilled",
122
+ Rejected = "rejected"
123
+ }
120
124
  export type Stringified<T> = string & {
121
125
  [P in keyof T]: {
122
126
  "_ value": T[P];
@@ -148,8 +152,16 @@ export type BatteryVoltage = {
148
152
  max_value: number;
149
153
  min_value: number;
150
154
  };
155
+ export declare enum GlobalSearchResource {
156
+ Projects = "projects",
157
+ Users = "users",
158
+ Cameras = "cameras",
159
+ Companies = "companies",
160
+ Sims = "sims",
161
+ Routers = "routers"
162
+ }
151
163
  export type GlobalSearchQueryParams = PaginationParams & {
152
- resource: "projects" | "users" | "cameras" | "companies" | "sims" | "routers";
164
+ resource: GlobalSearchResource;
153
165
  term: string;
154
166
  email: string;
155
167
  featureFlag: string;
@@ -20,6 +20,7 @@ export type SiteViewCameraListItem = {
20
20
  integrationType?: string;
21
21
  };
22
22
  export type ForgeUrn = {
23
+ id?: string;
23
24
  displayName: string;
24
25
  urn: string;
25
26
  isModelHostedByEvercamACC?: boolean;
@@ -47,21 +48,20 @@ export type TimelineItem = {
47
48
  objectIDs: number[];
48
49
  };
49
50
  export type ForgeMarkerTransform = {
50
- default: {
51
- position: Point3D;
52
- type: string;
53
- };
51
+ position?: Point3D;
52
+ hidden?: boolean;
54
53
  };
55
54
  export type ForgeMarker = {
56
55
  name: string;
57
56
  cameraExid: string;
58
- transforms: ForgeMarkerTransform;
57
+ type: string;
58
+ transforms: Record<string, ForgeMarkerTransform>;
59
59
  };
60
60
  export type ForgeProjectData = {
61
61
  urns?: ForgeUrn[];
62
62
  accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
63
63
  timeline?: TimelineItem[];
64
- markers?: ForgeMarker[];
64
+ cameraMarkers?: Record<string, ForgeMarker>;
65
65
  };
66
66
  export type ItwinModel = {
67
67
  name: string;