@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be

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 (86) 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 +100 -97
  4. package/dist/api/api/aiApi.d.ts +130 -7
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +52 -33
  7. package/dist/api/api/evercamLabsApi.d.ts +9 -17
  8. package/dist/api/api/exNvrApi.d.ts +1 -1
  9. package/dist/api/api/index.d.ts +1 -0
  10. package/dist/api/api/ingestApi.d.ts +56 -34
  11. package/dist/api/api/reportsApi.d.ts +15 -0
  12. package/dist/api/types/360.d.ts +178 -86
  13. package/dist/api/types/admin.d.ts +37 -3
  14. package/dist/api/types/aiConfigs.d.ts +244 -0
  15. package/dist/api/types/analytics.d.ts +57 -33
  16. package/dist/api/types/anpr.d.ts +36 -6
  17. package/dist/api/types/apiKey.d.ts +70 -0
  18. package/dist/api/types/auditLogs.d.ts +179 -21
  19. package/dist/api/types/authz.d.ts +71 -0
  20. package/dist/api/types/automation.d.ts +32 -4
  21. package/dist/api/types/axios.d.ts +10 -9
  22. package/dist/api/types/bim.d.ts +55 -12
  23. package/dist/api/types/camera.d.ts +236 -127
  24. package/dist/api/types/comments.d.ts +67 -26
  25. package/dist/api/types/company.d.ts +11 -5
  26. package/dist/api/types/compare.d.ts +1 -1
  27. package/dist/api/types/connector.d.ts +2 -0
  28. package/dist/api/types/detections.d.ts +6 -10
  29. package/dist/api/types/drone.d.ts +94 -6
  30. package/dist/api/types/emailMessages.d.ts +27 -0
  31. package/dist/api/types/errors.d.ts +19 -2
  32. package/dist/api/types/gateReport.d.ts +9 -23
  33. package/dist/api/types/gateReportManagement.d.ts +170 -0
  34. package/dist/api/types/hammertech.d.ts +98 -0
  35. package/dist/api/types/hdd.d.ts +1 -1
  36. package/dist/api/types/index.d.ts +11 -2
  37. package/dist/api/types/ingest.d.ts +194 -27
  38. package/dist/api/types/kit.d.ts +97 -117
  39. package/dist/api/types/map.d.ts +12 -0
  40. package/dist/api/types/media.d.ts +31 -3
  41. package/dist/api/types/notification.d.ts +52 -2
  42. package/dist/api/types/nvr.d.ts +39 -8
  43. package/dist/api/types/observationEvents.d.ts +167 -0
  44. package/dist/api/types/observations.d.ts +89 -0
  45. package/dist/api/types/planner.d.ts +56 -10
  46. package/dist/api/types/posthog.d.ts +56 -0
  47. package/dist/api/types/progressPhoto.d.ts +38 -25
  48. package/dist/api/types/project.d.ts +69 -22
  49. package/dist/api/types/recording.d.ts +7 -13
  50. package/dist/api/types/recycleBin.d.ts +8 -2
  51. package/dist/api/types/reports.d.ts +109 -0
  52. package/dist/api/types/ring.d.ts +16 -16
  53. package/dist/api/types/roi.d.ts +3 -11
  54. package/dist/api/types/routeParams.d.ts +1 -0
  55. package/dist/api/types/router.d.ts +15 -10
  56. package/dist/api/types/shared.d.ts +39 -29
  57. package/dist/api/types/shares.d.ts +0 -13
  58. package/dist/api/types/sim.d.ts +18 -6
  59. package/dist/api/types/siteAnalytics.d.ts +3 -5
  60. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  61. package/dist/api/types/siteView.d.ts +79 -0
  62. package/dist/api/types/snapshots.d.ts +63 -10
  63. package/dist/api/types/socket.d.ts +4 -0
  64. package/dist/api/types/sso.d.ts +11 -37
  65. package/dist/api/types/storageProvider.d.ts +16 -5
  66. package/dist/api/types/storyblok.d.ts +0 -13
  67. package/dist/api/types/timelapse.d.ts +4 -8
  68. package/dist/api/types/user.d.ts +48 -33
  69. package/dist/api/types/widget.d.ts +13 -4
  70. package/dist/api/utils.d.ts +1 -1
  71. package/dist/index.js +2242 -926
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.umd.cjs +1 -1
  74. package/dist/index.umd.cjs.map +1 -1
  75. package/dist/shared/types/components.d.ts +506 -46
  76. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  77. package/dist/shared/types/droneUpload.d.ts +93 -0
  78. package/dist/shared/types/imagePlayer.d.ts +8 -1
  79. package/dist/shared/types/index.d.ts +4 -0
  80. package/dist/shared/types/observations.d.ts +25 -0
  81. package/dist/shared/types/report.d.ts +107 -0
  82. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  83. package/dist/shared/utils/datePresets.d.ts +31 -0
  84. package/package.json +4 -2
  85. package/dist/api/types/copilot.d.ts +0 -162
  86. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -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,13 +9,15 @@ 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;
20
+ forgeTokenServerUrl?: string | null;
23
21
  snapshotsURL?: string | null;
24
22
  app?: string | null;
25
23
  getAuthToken?: () => string | null;
@@ -29,15 +27,18 @@ export type AxiosEnvironment = {
29
27
  export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
30
28
  export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
31
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
+ };
32
35
  export interface ExtendedAxiosInstance extends AxiosInstance {
33
36
  CancelToken: CancelTokenStatic;
34
37
  isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
35
38
  setToken: (token: string) => void;
36
39
  setHeader: (headerName: string, value: any) => void;
37
- generateCancelTokenSource: () => CancelTokenSource;
38
- addCancelToken: (token: CancelTokenSource) => void;
39
- resetCancelTokens: () => void;
40
- cancelRequests: () => void;
40
+ createRequestManager: () => RequestManager;
41
+ requestManager: RequestManager;
41
42
  env: AxiosEnvironment;
42
43
  addEnvironmentVariables: (vars: Record<string, any>) => void;
43
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",
@@ -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
- zIndex: number;
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,14 +152,12 @@ 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;
139
159
  };
140
- export type BimUploadsQueryParams = {
141
- page: number;
142
- limit: number;
160
+ export type BimUploadsQueryParams = PaginationParams & {
143
161
  projectId: string;
144
162
  id: string;
145
163
  uploadedBy: string;
@@ -151,3 +169,28 @@ export type BimUploadPayload = {
151
169
  fileExtension: string;
152
170
  }[];
153
171
  };
172
+ export declare enum ForgeBimUploadMethod {
173
+ FileUpload = "file_upload",
174
+ AutodeskAcc = "autodesk_acc"
175
+ }
176
+ export declare enum ForgeBimFileRejectionReason {
177
+ InvalidType = "invalid_type",
178
+ ExceedsSizeLimit = "exceeds_size_limit"
179
+ }
180
+ export declare enum ForgeBimUploadStage {
181
+ TusUpload = "tus_upload",
182
+ IngestUpload = "ingest_upload"
183
+ }
184
+ export declare enum ForgeBimDialogTrigger {
185
+ UpdateModel = "update_model",
186
+ AddModel = "add_model",
187
+ InitialSetup = "initial_setup"
188
+ }
189
+ export type BimUpdatedWebhookPayload = {
190
+ eventName: "bim.updated";
191
+ projectId: string;
192
+ data: {
193
+ updatedAt: string;
194
+ bimIdentifier: string;
195
+ };
196
+ };