@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c

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 (92) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +120 -96
  4. package/dist/api/api/aiApi.d.ts +188 -53
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/client/interceptors.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +86 -28
  8. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/index.d.ts +1 -0
  11. package/dist/api/api/ingestApi.d.ts +90 -65
  12. package/dist/api/api/reportsApi.d.ts +15 -0
  13. package/dist/api/types/360.d.ts +178 -86
  14. package/dist/api/types/admin.d.ts +41 -3
  15. package/dist/api/types/aiConfigs.d.ts +244 -0
  16. package/dist/api/types/analytics.d.ts +141 -71
  17. package/dist/api/types/anpr.d.ts +134 -0
  18. package/dist/api/types/apiKey.d.ts +70 -0
  19. package/dist/api/types/auditLogs.d.ts +179 -21
  20. package/dist/api/types/authz.d.ts +72 -0
  21. package/dist/api/types/automation.d.ts +40 -3
  22. package/dist/api/types/axios.d.ts +12 -11
  23. package/dist/api/types/bim.d.ts +70 -12
  24. package/dist/api/types/camera.d.ts +244 -128
  25. package/dist/api/types/comments.d.ts +67 -26
  26. package/dist/api/types/company.d.ts +11 -5
  27. package/dist/api/types/compare.d.ts +1 -1
  28. package/dist/api/types/connector.d.ts +3 -0
  29. package/dist/api/types/coolify.d.ts +18 -2
  30. package/dist/api/types/detections.d.ts +10 -11
  31. package/dist/api/types/drone.d.ts +95 -6
  32. package/dist/api/types/emailMessages.d.ts +27 -0
  33. package/dist/api/types/errors.d.ts +19 -2
  34. package/dist/api/types/gateReport.d.ts +59 -49
  35. package/dist/api/types/gateReportManagement.d.ts +170 -0
  36. package/dist/api/types/hammertech.d.ts +98 -0
  37. package/dist/api/types/hdd.d.ts +1 -1
  38. package/dist/api/types/index.d.ts +15 -3
  39. package/dist/api/types/ingest.d.ts +207 -20
  40. package/dist/api/types/kit.d.ts +97 -117
  41. package/dist/api/types/map.d.ts +12 -0
  42. package/dist/api/types/media.d.ts +32 -3
  43. package/dist/api/types/notification.d.ts +52 -2
  44. package/dist/api/types/nvr.d.ts +39 -8
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/observationEvents.d.ts +167 -0
  47. package/dist/api/types/observations.d.ts +89 -0
  48. package/dist/api/types/planner.d.ts +98 -8
  49. package/dist/api/types/posthog.d.ts +72 -0
  50. package/dist/api/types/progressPhoto.d.ts +39 -25
  51. package/dist/api/types/project.d.ts +77 -24
  52. package/dist/api/types/recording.d.ts +9 -15
  53. package/dist/api/types/recycleBin.d.ts +8 -2
  54. package/dist/api/types/reports.d.ts +109 -0
  55. package/dist/api/types/ring.d.ts +53 -0
  56. package/dist/api/types/roi.d.ts +3 -11
  57. package/dist/api/types/routeParams.d.ts +1 -0
  58. package/dist/api/types/router.d.ts +15 -10
  59. package/dist/api/types/shared.d.ts +39 -29
  60. package/dist/api/types/shares.d.ts +0 -13
  61. package/dist/api/types/sim.d.ts +18 -6
  62. package/dist/api/types/siteAnalytics.d.ts +7 -19
  63. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  64. package/dist/api/types/siteView.d.ts +80 -0
  65. package/dist/api/types/smartSeach.d.ts +5 -0
  66. package/dist/api/types/snapshots.d.ts +98 -13
  67. package/dist/api/types/socket.d.ts +4 -0
  68. package/dist/api/types/sso.d.ts +12 -37
  69. package/dist/api/types/storageProvider.d.ts +30 -0
  70. package/dist/api/types/storyblok.d.ts +0 -13
  71. package/dist/api/types/timelapse.d.ts +6 -9
  72. package/dist/api/types/user.d.ts +48 -34
  73. package/dist/api/types/widget.d.ts +13 -4
  74. package/dist/api/utils.d.ts +1 -1
  75. package/dist/index.js +2635 -1120
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/types/components.d.ts +702 -42
  80. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  81. package/dist/shared/types/droneUpload.d.ts +93 -0
  82. package/dist/shared/types/imagePlayer.d.ts +8 -1
  83. package/dist/shared/types/index.d.ts +5 -0
  84. package/dist/shared/types/observations.d.ts +25 -0
  85. package/dist/shared/types/rbac.d.ts +80 -0
  86. package/dist/shared/types/report.d.ts +108 -0
  87. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  88. package/dist/shared/utils/datePresets.d.ts +31 -0
  89. package/package.json +4 -2
  90. package/dist/api/types/copilot.d.ts +0 -157
  91. package/dist/api/types/storageServers.d.ts +0 -4
  92. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -0,0 +1,98 @@
1
+ export declare enum HammertechRegion {
2
+ US = "us",
3
+ AU = "au",
4
+ EU = "eu"
5
+ }
6
+ export type HammertechConnectPayload = {
7
+ email: string;
8
+ password: string;
9
+ tenant: string;
10
+ region: HammertechRegion;
11
+ };
12
+ export type HammertechProject = {
13
+ projectId: string;
14
+ name: string;
15
+ };
16
+ export type HammertechLocation = {
17
+ id: string;
18
+ name: string;
19
+ parentId: string | null;
20
+ };
21
+ export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
22
+ export type HammertechCustomField = {
23
+ id: string;
24
+ internalName: string;
25
+ name?: string;
26
+ customFieldType: HammertechCustomFieldDataType;
27
+ isRequired?: boolean;
28
+ answerOptions?: string[];
29
+ };
30
+ export type HammertechCustomFieldForm = {
31
+ id: string;
32
+ customFields: HammertechCustomField[];
33
+ };
34
+ export declare enum HammertechPriority {
35
+ Low = "Low",
36
+ Medium = "Medium",
37
+ High = "High",
38
+ Critical = "Critical"
39
+ }
40
+ export declare enum HammertechClassification {
41
+ Undefined = "Undefined",
42
+ Positive = "Positive",
43
+ Negative = "Negative",
44
+ Neutral = "Neutral"
45
+ }
46
+ export type HammertechIssueType = {
47
+ id: string;
48
+ name: string;
49
+ forcePriority?: boolean;
50
+ suggestedPriority?: HammertechPriority | null;
51
+ canBeNegative?: boolean;
52
+ canBeNeutral?: boolean;
53
+ canBePositive?: boolean;
54
+ openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
55
+ };
56
+ export type HammertechCustomFieldValue = {
57
+ customFieldId: string;
58
+ value?: unknown;
59
+ storedFileId?: string;
60
+ };
61
+ export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
62
+ export declare function isHammertechFileFieldType(type?: string): boolean;
63
+ export declare function isHammertechSignatureWithName(type?: string): boolean;
64
+ export type HammertechStoredFilePayload = {
65
+ fileName?: string;
66
+ base64FileContent: string;
67
+ annotation?: string;
68
+ id?: string;
69
+ };
70
+ export type HammertechStoredFileResponse = {
71
+ isSuccess: boolean;
72
+ httpStatusCode: number;
73
+ messageText: string;
74
+ createdEntityId: string;
75
+ xRequestId: string;
76
+ };
77
+ export type HammertechFileFieldValue = {
78
+ file: File | null;
79
+ name: string;
80
+ };
81
+ export type HammertechCreateIssuePayload = {
82
+ projectId: string;
83
+ issueTypeId: string;
84
+ snapshot: string;
85
+ issueDate?: string;
86
+ description?: string;
87
+ priority?: HammertechPriority;
88
+ dueDate?: string;
89
+ classification?: HammertechClassification;
90
+ locationId?: string;
91
+ isPositiveObservation?: boolean;
92
+ isPhotoForFixRequired?: boolean;
93
+ openIssueCustomFieldFormId?: string;
94
+ openIssueCustomFieldValues?: HammertechCustomFieldValue[];
95
+ };
96
+ export type HammertechIssueResponse = {
97
+ id: string;
98
+ };
@@ -46,7 +46,7 @@ export type HDDCreateUpdatePayload = {
46
46
  size: string;
47
47
  type: string;
48
48
  format: string;
49
- locationId: string;
49
+ locationId: WarehouseLocationIndex | string;
50
50
  serialNumber: string;
51
51
  hddStatus: string;
52
52
  shelfBlock: string;
@@ -8,7 +8,6 @@ export * from "./autodesk";
8
8
  export * from "./bim";
9
9
  export * from "./camera";
10
10
  export * from "./compare";
11
- export * from "./copilot";
12
11
  export * from "./credentials";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
@@ -30,18 +29,19 @@ export * from "./shares";
30
29
  export * from "./sim";
31
30
  export * from "./systemCheck";
32
31
  export * from "./planner";
33
- export * from "./storageServers";
32
+ export * from "./storageProvider";
34
33
  export * from "./streaming";
35
34
  export * from "./storyblok";
36
35
  export * from "./time";
37
36
  export * from "./timelapse";
38
37
  export * from "./user";
39
- export * from "./vendorModel";
40
38
  export * from "./videoWall";
41
39
  export * from "./voyageControl";
40
+ export * from "./hammertech";
42
41
  export * from "./weather";
43
42
  export * from "./comments";
44
43
  export * from "./detections";
44
+ export * from "./observations";
45
45
  export * from "./axios";
46
46
  export * from "./shared";
47
47
  export * from "./company";
@@ -49,6 +49,7 @@ export * from "./kit";
49
49
  export * from "./auditLogs";
50
50
  export * from "./snapshots";
51
51
  export * from "./siteAnalytics";
52
+ export * from "./siteAnalyticsManagement";
52
53
  export * from "./widget";
53
54
  export * from "./countries";
54
55
  export * from "./automation";
@@ -59,3 +60,14 @@ export * from "./xweather";
59
60
  export * from "./posthog";
60
61
  export * from "./recycleBin";
61
62
  export * from "./authz";
63
+ export * from "./oauth";
64
+ export * from "./apiKey";
65
+ export * from "./ring";
66
+ export * from "./smartSeach";
67
+ export * from "./siteView";
68
+ export * from "./aiConfigs";
69
+ export * from "./gateReportManagement";
70
+ export * from "./socket";
71
+ export * from "./reports";
72
+ export * from "./observationEvents";
73
+ export * from "./emailMessages";
@@ -1,4 +1,4 @@
1
- import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
1
+ import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
2
2
  import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
3
3
  export declare enum IngestProcessingStatus {
4
4
  Completed = "completed",
@@ -8,7 +8,8 @@ export declare enum IngestProcessingStatus {
8
8
  Aborted = "aborted",
9
9
  Paused = "paused",
10
10
  InProgress = "inprogress",
11
- Pending = "pending"
11
+ Pending = "pending",
12
+ Downloading = "downloading"
12
13
  }
13
14
  export declare enum MobileAssetsType {
14
15
  Audio = "mobile_audios",
@@ -16,12 +17,22 @@ export declare enum MobileAssetsType {
16
17
  }
17
18
  export declare enum IngestVersions {
18
19
  V1 = "v1",
19
- V2 = "v2"
20
+ V2 = "v2",
21
+ V3 = "v3",
22
+ V4 = "v4",
23
+ V5 = "v5"
24
+ }
25
+ export declare enum IngestDurationType {
26
+ Queued = "queued",
27
+ Processed = "processed",
28
+ Total = "total"
29
+ }
30
+ export declare enum IngestTypes {
31
+ Drone = "drone",
32
+ ThreeSixty = "360"
20
33
  }
21
34
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
22
35
  projectId: string;
23
- consumed: string;
24
- token: string;
25
36
  processingStatus: IngestProcessingStatus;
26
37
  };
27
38
  export type IngestPaginatedResponse<T> = {
@@ -31,48 +42,224 @@ export type IngestPaginatedResponse<T> = {
31
42
  total: number;
32
43
  pageCount?: number;
33
44
  };
45
+ export declare enum IngestProcessingStepStatus {
46
+ Running = "running",
47
+ Completed = "completed",
48
+ Failed = "failed",
49
+ Skipped = "skipped"
50
+ }
51
+ export declare enum IngestProcessingRunStatus {
52
+ Processing = "processing",
53
+ Completed = "completed",
54
+ Failed = "failed"
55
+ }
56
+ export type IngestProcessingMetricStat = {
57
+ avg?: number;
58
+ peak?: number;
59
+ };
60
+ export type IngestProcessingStepMetrics = {
61
+ cpu?: IngestProcessingMetricStat;
62
+ ram?: IngestProcessingMetricStat;
63
+ gpuUtil?: IngestProcessingMetricStat;
64
+ gpuMemDevice?: IngestProcessingMetricStat;
65
+ gpuMemStep?: IngestProcessingMetricStat;
66
+ ramTotalMb?: number;
67
+ diskTotalMb?: number;
68
+ };
69
+ export type IngestProcessingStepDetail = {
70
+ input?: Record<string, JsonValue>;
71
+ params?: Record<string, JsonValue>;
72
+ output?: Record<string, JsonValue>;
73
+ metrics?: IngestProcessingStepMetrics;
74
+ error?: string;
75
+ };
76
+ export type IngestProcessingStep = {
77
+ name: string;
78
+ tool?: string;
79
+ status: IngestProcessingStepStatus | string;
80
+ startedAt?: string;
81
+ endedAt?: string;
82
+ durationSec?: number;
83
+ durationPct?: number;
84
+ detail?: IngestProcessingStepDetail;
85
+ };
86
+ export type IngestProcessingDiskUsage = {
87
+ sourceMb?: number;
88
+ framesMb?: number;
89
+ resultMb?: number;
90
+ totalMb?: number;
91
+ };
92
+ export type IngestProcessingPeakUsage = {
93
+ cpu?: number;
94
+ ram?: number;
95
+ gpuUtil?: number;
96
+ gpuMemDevice?: number;
97
+ gpuMemStep?: number;
98
+ };
99
+ export type IngestProcessingFootprint = {
100
+ disk?: IngestProcessingDiskUsage;
101
+ peak?: IngestProcessingPeakUsage;
102
+ };
103
+ export type IngestProcessingProgress = {
104
+ available: boolean;
105
+ status?: IngestProcessingRunStatus | string;
106
+ processingStatus?: IngestProcessingStatus | string;
107
+ currentStep?: string | null;
108
+ error?: string | null;
109
+ startedAt?: string;
110
+ steps: IngestProcessingStep[];
111
+ footprint?: IngestProcessingFootprint;
112
+ };
113
+ export type IngestTrackedAsset = {
114
+ id: number;
115
+ projectId: string;
116
+ name?: string;
117
+ processingStatus?: IngestProcessingStatus | string;
118
+ };
34
119
  export type DroneUploadItem = {
35
120
  id: number;
36
121
  projectId: string;
37
- consumed: boolean;
38
- token: string;
39
122
  flightDate: string;
40
123
  flightGeolocation: string;
41
124
  modelZip: string;
42
125
  orthomosaicZip: string;
43
126
  reportPdf: string;
127
+ processingLog: string;
44
128
  uploadedBy: string;
45
129
  processingStatus: IngestProcessingStatus | string;
46
130
  modelCesiumAssetId: string;
47
131
  updatedAt: string;
48
- hasTusLinks: boolean;
132
+ canDelete: boolean;
133
+ canReprocess: boolean;
134
+ hasSteps: boolean;
135
+ aerialShotsCount: number;
49
136
  };
50
137
  export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
51
138
  export type DroneQueueResponse = {
52
139
  size: number;
53
140
  assetsDrone: DroneUploadItem[];
54
141
  };
55
- export type DroneUploadUpdateRequestPayload = {
56
- flightMetadata: {
57
- dateTime: string;
58
- gpsAltitude: string;
59
- gpsCoordinates: string;
60
- };
61
- upload: {
62
- url: string;
63
- title: string;
64
- fileExtension: string;
142
+ export type DroneFlightMetadata = {
143
+ dateTime: string;
144
+ gpsAltitude: string;
145
+ gpsCoordinates: string;
146
+ };
147
+ export type DroneFileAllocation = {
148
+ filename: string;
149
+ contentType: string;
150
+ };
151
+ export declare enum UploadFileStatus {
152
+ Allocated = "allocated",
153
+ Acknowledged = "acknowledged"
154
+ }
155
+ export type DroneFileState = DroneFileAllocation & {
156
+ status: UploadFileStatus;
157
+ uploadUrl?: string;
158
+ };
159
+ export type DroneFileError = {
160
+ filename?: string;
161
+ id?: number;
162
+ code: string;
163
+ detail: string;
164
+ retryable: boolean;
165
+ };
166
+ export type DroneFileStates = {
167
+ files: DroneFileState[];
168
+ errors: DroneFileError[];
169
+ nextCursor?: string | null;
170
+ };
171
+ export type DroneCompletion = DroneFileStates & {
172
+ processingId: number;
173
+ processingStatus: IngestProcessingStatus;
174
+ };
175
+ export type DroneReprocessResponse = Pick<DroneCompletion, "processingId" | "processingStatus">;
176
+ export type AerialAllocation = DroneFileAllocation & {
177
+ gpsLatitude: string;
178
+ gpsLongitude: string;
179
+ gpsAltitude: string;
180
+ };
181
+ export type AerialUploadState = AerialAllocation & {
182
+ id: number;
183
+ status: UploadFileStatus;
184
+ processingStatus: IngestProcessingStatus;
185
+ uploadUrl?: string;
186
+ fileLink?: string;
187
+ thumbnailLink?: string;
188
+ };
189
+ export type AerialUploadStates = {
190
+ aerialShots: AerialUploadState[];
191
+ errors: DroneFileError[];
192
+ nextCursor?: string | null;
193
+ complete: boolean;
194
+ };
195
+ export type AerialShotState = {
196
+ id: number;
197
+ filename?: string | null;
198
+ status?: UploadFileStatus | null;
199
+ contentType?: string | null;
200
+ processingStatus?: AerialUploadState["processingStatus"] | null;
201
+ gpsLatitude: string;
202
+ gpsLongitude: string;
203
+ gpsAltitude: string;
204
+ fileLink?: string | null;
205
+ thumbnailLink?: string | null;
206
+ };
207
+ export type AerialShotPage = Omit<AerialUploadStates, "aerialShots"> & {
208
+ aerialShots: AerialShotState[];
209
+ };
210
+ export type DroneCreation = {
211
+ projectId: string;
212
+ flightMetadata: DroneFlightMetadata;
213
+ aerialShots?: AerialAllocation[];
214
+ };
215
+ export type DroneProcessingTarget = {
216
+ ingestUrl: string;
217
+ id: number;
218
+ };
219
+ export type DroneCreated = {
220
+ id: number;
221
+ projectId: string;
222
+ processingStatus: IngestProcessingStatus;
223
+ aerialShots: AerialUploadState[];
224
+ errors: DroneFileError[];
225
+ };
226
+ export type DroneDeletion = {
227
+ deleted: {
228
+ filename: string;
229
+ id?: number;
65
230
  }[];
66
- projectName: string;
231
+ errors: DroneFileError[];
232
+ };
233
+ export type DroneComparisonFrames = {
234
+ beforeImage?: string;
235
+ afterImage: string;
236
+ beforeDate?: string;
237
+ afterDate: string;
238
+ };
239
+ export type DronePreviewImages = Pick<DroneComparisonFrames, "beforeImage" | "afterImage">;
240
+ export type DronePreview = {
241
+ mimeType: "image/gif" | "image/jpeg";
242
+ content: string;
243
+ width: number;
244
+ height: number;
67
245
  };
68
246
  export type CalculateMeasuringOperationRequestPayload = {
69
247
  date: DateType;
70
- points: [number, number][];
248
+ points: TuplePoint2D[];
71
249
  operation: string;
72
250
  };
73
251
  export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
74
252
  date: DateType;
75
253
  };
254
+ export type AerialShotItem = {
255
+ id: number;
256
+ droneUploadId: number;
257
+ fileLink: string;
258
+ thumbnailLink: string;
259
+ gpsLatitude: string;
260
+ gpsLongitude: string;
261
+ gpsAltitude: string;
262
+ };
76
263
  export type InspectionToolRequestPayload = {
77
264
  date: DateType;
78
265
  gpsAltitude: string;