@evercam/api 1.0.0-7f2a06308 → 1.0.0-7f640ff6f

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 (107) 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 +152 -120
  4. package/dist/api/api/aiApi.d.ts +192 -57
  5. package/dist/api/api/authzApi.d.ts +26 -16
  6. package/dist/api/api/client/axios.d.ts +1 -1
  7. package/dist/api/api/client/interceptors.d.ts +1 -1
  8. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  9. package/dist/api/api/evercamApi.d.ts +150 -95
  10. package/dist/api/api/evercamLabsApi.d.ts +10 -19
  11. package/dist/api/api/exNvrApi.d.ts +2 -2
  12. package/dist/api/api/index.d.ts +1 -0
  13. package/dist/api/api/ingestApi.d.ts +133 -59
  14. package/dist/api/api/ptzApi.d.ts +9 -4
  15. package/dist/api/api/reportsApi.d.ts +15 -0
  16. package/dist/api/api/videoWallApi.d.ts +2 -2
  17. package/dist/api/api/weatherApi.d.ts +2 -2
  18. package/dist/api/types/360.d.ts +182 -88
  19. package/dist/api/types/aconex.d.ts +9 -9
  20. package/dist/api/types/admin.d.ts +89 -0
  21. package/dist/api/types/aiConfigs.d.ts +244 -0
  22. package/dist/api/types/analytics.d.ts +163 -75
  23. package/dist/api/types/anpr.d.ts +142 -2
  24. package/dist/api/types/apiKey.d.ts +70 -0
  25. package/dist/api/types/auditLogs.d.ts +179 -21
  26. package/dist/api/types/authz.d.ts +115 -6
  27. package/dist/api/types/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +65 -3
  29. package/dist/api/types/axios.d.ts +20 -15
  30. package/dist/api/types/bim.d.ts +80 -16
  31. package/dist/api/types/camera.d.ts +316 -193
  32. package/dist/api/types/comments.d.ts +68 -31
  33. package/dist/api/types/company.d.ts +53 -6
  34. package/dist/api/types/compare.d.ts +21 -6
  35. package/dist/api/types/connector.d.ts +5 -5
  36. package/dist/api/types/coolify.d.ts +18 -2
  37. package/dist/api/types/detections.d.ts +26 -18
  38. package/dist/api/types/drone.d.ts +95 -6
  39. package/dist/api/types/emailMessages.d.ts +27 -0
  40. package/dist/api/types/errors.d.ts +19 -2
  41. package/dist/api/types/gateReport.d.ts +84 -73
  42. package/dist/api/types/gateReportManagement.d.ts +170 -0
  43. package/dist/api/types/hammertech.d.ts +98 -0
  44. package/dist/api/types/hdd.d.ts +27 -2
  45. package/dist/api/types/index.d.ts +17 -3
  46. package/dist/api/types/ingest.d.ts +285 -17
  47. package/dist/api/types/kit.d.ts +108 -121
  48. package/dist/api/types/map.d.ts +12 -0
  49. package/dist/api/types/media.d.ts +33 -4
  50. package/dist/api/types/notification.d.ts +83 -3
  51. package/dist/api/types/nvr.d.ts +39 -8
  52. package/dist/api/types/oauth.d.ts +62 -0
  53. package/dist/api/types/observationEvents.d.ts +167 -0
  54. package/dist/api/types/observations.d.ts +89 -0
  55. package/dist/api/types/planner.d.ts +98 -8
  56. package/dist/api/types/posthog.d.ts +87 -0
  57. package/dist/api/types/procore.d.ts +13 -6
  58. package/dist/api/types/progressPhoto.d.ts +42 -25
  59. package/dist/api/types/project.d.ts +154 -33
  60. package/dist/api/types/recording.d.ts +9 -15
  61. package/dist/api/types/recycleBin.d.ts +9 -3
  62. package/dist/api/types/reports.d.ts +109 -0
  63. package/dist/api/types/ring.d.ts +53 -0
  64. package/dist/api/types/roi.d.ts +3 -11
  65. package/dist/api/types/routeParams.d.ts +1 -0
  66. package/dist/api/types/router.d.ts +15 -10
  67. package/dist/api/types/shared.d.ts +47 -30
  68. package/dist/api/types/shares.d.ts +1 -14
  69. package/dist/api/types/sim.d.ts +23 -11
  70. package/dist/api/types/siteAnalytics.d.ts +81 -43
  71. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  72. package/dist/api/types/siteView.d.ts +104 -0
  73. package/dist/api/types/smartSeach.d.ts +5 -0
  74. package/dist/api/types/snapshots.d.ts +99 -14
  75. package/dist/api/types/socket.d.ts +4 -0
  76. package/dist/api/types/sso.d.ts +12 -37
  77. package/dist/api/types/storageProvider.d.ts +30 -0
  78. package/dist/api/types/storyblok.d.ts +27 -0
  79. package/dist/api/types/streaming.d.ts +3 -3
  80. package/dist/api/types/tag.d.ts +1 -1
  81. package/dist/api/types/time.d.ts +0 -18
  82. package/dist/api/types/timelapse.d.ts +7 -11
  83. package/dist/api/types/user.d.ts +139 -54
  84. package/dist/api/types/videoWall.d.ts +21 -21
  85. package/dist/api/types/weather.d.ts +75 -11
  86. package/dist/api/types/widget.d.ts +83 -15
  87. package/dist/api/types/xweather.d.ts +4 -4
  88. package/dist/api/utils.d.ts +1 -1
  89. package/dist/index.js +2497 -953
  90. package/dist/index.js.map +1 -1
  91. package/dist/index.umd.cjs +1 -1
  92. package/dist/index.umd.cjs.map +1 -1
  93. package/dist/shared/types/components.d.ts +769 -33
  94. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  95. package/dist/shared/types/droneUpload.d.ts +93 -0
  96. package/dist/shared/types/imagePlayer.d.ts +9 -2
  97. package/dist/shared/types/index.d.ts +5 -0
  98. package/dist/shared/types/observations.d.ts +25 -0
  99. package/dist/shared/types/rbac.d.ts +80 -0
  100. package/dist/shared/types/report.d.ts +108 -0
  101. package/dist/shared/types/timeline.d.ts +2 -1
  102. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  103. package/dist/shared/utils/datePresets.d.ts +31 -0
  104. package/package.json +4 -2
  105. package/dist/api/types/copilot.d.ts +0 -157
  106. package/dist/api/types/storageServers.d.ts +0 -4
  107. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -7,13 +7,45 @@ export declare enum AutomationProvider {
7
7
  }
8
8
  export declare enum AutomationType {
9
9
  Photo = "photo",
10
- Compare = "compare"
10
+ Compare = "compare",
11
+ GateReport = "gate_report",
12
+ Weather = "weather"
11
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
+ };
12
33
  export type AutomationCompareConfig = {
13
34
  compareDelay: number;
14
35
  };
36
+ export type AutomationEmailRecipient = string | {
37
+ email: string;
38
+ };
39
+ export type AutomationGateReportConfig = {
40
+ projectExid: string;
41
+ vehicleTypes: string[];
42
+ fileType: string;
43
+ period: number;
44
+ columns: string[];
45
+ };
15
46
  export type AutomationEmailProviderConfig = {
16
- recipients: string | string[];
47
+ cameraExids?: CameraExid[];
48
+ recipients: string | AutomationEmailRecipient[];
17
49
  };
18
50
  export type AutomationProcoreProviderConfig = {
19
51
  companyId: number;
@@ -38,9 +70,10 @@ export type AutomationAutodeskProviderConfig = {
38
70
  folderName: string;
39
71
  };
40
72
  export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
41
- export type AutomationOptionsConfig = AutomationCompareConfig | {};
73
+ export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
42
74
  export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
43
75
  export type Automation = {
76
+ id?: number;
44
77
  cameraExids: CameraExid[];
45
78
  name: string;
46
79
  subject?: string;
@@ -59,3 +92,32 @@ export declare enum AutomationConfigStep {
59
92
  Settings = "settings",
60
93
  Destination = "destination"
61
94
  }
95
+ export type AutomationProviderOption = {
96
+ labelTranslationKey: string;
97
+ descriptionTranslationKey: string;
98
+ value: AutomationProvider;
99
+ icon: string;
100
+ iconSize?: string;
101
+ requiresConnection: boolean;
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
+ };
112
+ export type FormattedAutomation = {
113
+ cameraExids?: string;
114
+ name: string;
115
+ subject: string;
116
+ provider: AutomationProvider;
117
+ type: AutomationType;
118
+ config: Partial<AutomationProviderConfig> & Partial<AutomationOptionsConfig>;
119
+ notifyDays: string;
120
+ notifyTime: string;
121
+ timezone: string;
122
+ isPaused: boolean;
123
+ };
@@ -1,25 +1,23 @@
1
1
  import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
2
- import { Swr } from "@/api/client/swr/Swr";
3
- export type TimedRequest<T> = Promise<AxiosResponse<T> & {
4
- duration: number;
5
- error?: AxiosError;
6
- }>;
2
+ import { Swr } from "@evercam/api/api/client/swr/Swr";
7
3
  export type AxiosEnvironment = {
8
4
  baseUrl?: string | null;
9
5
  stagingAiApiUrl?: string | null;
10
6
  aiApiUrl?: string | null;
11
- aiApiUrlV2?: string | null;
12
- ingestApiUrl?: string | null;
7
+ ingestDroneApi?: string | null;
8
+ ingest360Api?: string | null;
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
- isCancel: (value: AxiosResponse | AxiosError | never) => boolean;
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;
@@ -50,6 +51,10 @@ export type SwrResponse<T> = {
50
51
  cachedValue: ResponseValue<T>;
51
52
  freshPromise: Promise<ResponseValue<T>>;
52
53
  };
54
+ export type SwrRequestConfig<T> = Omit<AxiosRequestConfig, "onSwrHit" | "onSwrRefresh"> & {
55
+ onSwrHit?: (data: T) => unknown;
56
+ onSwrRefresh?: (data: T) => unknown;
57
+ };
53
58
  declare module "axios" {
54
59
  interface AxiosRequestConfig {
55
60
  raw?: boolean;
@@ -59,8 +64,8 @@ declare module "axios" {
59
64
  startTime: number;
60
65
  };
61
66
  swr?: boolean;
62
- onSwrHit?: <T>(data: T) => unknown;
63
- onSwrRefresh?: <T>(data: T) => unknown;
67
+ onSwrHit?: (data: any) => unknown;
68
+ onSwrRefresh?: (data: any) => unknown;
64
69
  onSwrError?: (error: Error) => unknown;
65
70
  }
66
71
  }
@@ -1,4 +1,4 @@
1
- import { DateTime, DateType } from "@/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;
@@ -48,14 +49,15 @@ export type BimCompareExportRequestPayload = {
48
49
  layerId?: number;
49
50
  maskId?: number;
50
51
  evercamWatermark?: boolean;
52
+ logo?: CompareLogoPosition;
51
53
  };
52
54
  export type BimLayerResponsePayload = {
53
55
  id: number;
54
56
  name: string;
55
- insertedAt: DateTime;
56
- updatedAt: DateTime;
57
+ insertedAt: string;
58
+ updatedAt: string;
57
59
  shapes: string;
58
- startAt: DateTime;
60
+ startAt: string;
59
61
  };
60
62
  export declare enum BimUploadStatus {
61
63
  Initial = 0,
@@ -63,9 +65,19 @@ export declare enum BimUploadStatus {
63
65
  Success = 2,
64
66
  Failed = 3
65
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
+ }
66
78
  export type BimCreationPayload = {
67
79
  title: string;
68
- software: "synchro" | "navisworks" | "revit" | "tekla" | "archicad" | "solibri" | "bim360" | "other";
80
+ software: BimSoftware;
69
81
  model: string;
70
82
  apiKey: string;
71
83
  apiId: string;
@@ -78,24 +90,34 @@ export type BimCreationPayload = {
78
90
  };
79
91
  export declare enum BIMLayerTypes {
80
92
  Mask = "mask",
93
+ BimMask = "bim_mask",
81
94
  MeasuringGrid = "measuring_grid",
82
95
  BimArchitectural = "bim_architectural",
83
96
  BimStructural = "bim_structural",
84
97
  Bim4D = "bim_4d",
85
98
  BimMep = "bim_mep",
86
99
  RecordingsTag = "recordings_tag",
87
- Milestone = "milestone"
100
+ Milestone = "milestone",
101
+ ForgeBimArchitectural = "forge_bim_architectural",
102
+ ForgeBimStructural = "forge_bim_structural",
103
+ ForgeBim4D = "forge_bim_4d",
104
+ ForgeBimMep = "forge_bim_mep"
88
105
  }
89
- export type BimLayersQueryParams = {
106
+ export type BimLayersQueryParams = Partial<{
90
107
  layerType: BIMLayerTypes;
91
108
  timestamp: DateType;
92
- };
109
+ apiKey: string;
110
+ apiId: string;
111
+ }>;
93
112
  export type BIMLayerPostPayload = {
94
113
  name: string;
95
114
  layerType: BIMLayerTypes;
96
115
  startAt: DateType;
97
116
  shapes: string;
98
- zIndex: number;
117
+ zIndex?: number;
118
+ displayName?: string;
119
+ apiKey?: string;
120
+ apiId?: string;
99
121
  };
100
122
  export type BIMLayer = {
101
123
  id: number;
@@ -105,19 +127,38 @@ export type BIMLayer = {
105
127
  insertedAt: DateType;
106
128
  updatedAt: DateType;
107
129
  shapes: string;
130
+ displayName?: string;
108
131
  };
132
+ export type ForgeBIMLayerShapes = {
133
+ urn?: string;
134
+ forgeLayerViewpoint?: Record<string, unknown>;
135
+ hiddenElements?: number[];
136
+ };
137
+ export type ForgeBIMLayer = BIMLayer & ForgeBIMLayerShapes;
109
138
  export type BimPendingImage = {
110
139
  url: string;
111
- s3Url: string;
140
+ key: string;
141
+ date?: string;
142
+ };
143
+ export type BimCameraParametersFile = {
144
+ distortion_coeffs: number[];
145
+ horizontal_FOV: number;
146
+ vertical_FOV: number;
147
+ focal_length1: number;
148
+ focal_length2: number;
149
+ centerX: number;
150
+ centerY: number;
112
151
  };
113
152
  export type BimUploadCameraParameters = {
114
- distortionFov: [number];
153
+ distortionCoeffs: number[];
115
154
  horizontalFov: number;
116
155
  verticalFov: number;
117
156
  focalLength1: number;
118
157
  focalLength2: number;
119
158
  centerX: number;
120
159
  centerY: number;
160
+ apiId?: string;
161
+ apiKey?: string;
121
162
  };
122
163
  export type PendingBimImagesParams = {
123
164
  model: string;
@@ -126,14 +167,12 @@ export type PendingBimImagesParams = {
126
167
  };
127
168
  export type ProcessPendingImagesBimParams = {
128
169
  model: string;
129
- names: string[];
170
+ names: BimPendingImage[];
130
171
  enableDistortion: boolean;
131
172
  apiId: string;
132
173
  apiKey: string;
133
174
  };
134
- export type BimUploadsQueryParams = {
135
- page: number;
136
- limit: number;
175
+ export type BimUploadsQueryParams = PaginationParams & {
137
176
  projectId: string;
138
177
  id: string;
139
178
  uploadedBy: string;
@@ -145,3 +184,28 @@ export type BimUploadPayload = {
145
184
  fileExtension: string;
146
185
  }[];
147
186
  };
187
+ export declare enum ForgeBimUploadMethod {
188
+ FileUpload = "file_upload",
189
+ AutodeskAcc = "autodesk_acc"
190
+ }
191
+ export declare enum ForgeBimFileRejectionReason {
192
+ InvalidType = "invalid_type",
193
+ ExceedsSizeLimit = "exceeds_size_limit"
194
+ }
195
+ export declare enum ForgeBimUploadStage {
196
+ TusUpload = "tus_upload",
197
+ IngestUpload = "ingest_upload"
198
+ }
199
+ export declare enum ForgeBimDialogTrigger {
200
+ UpdateModel = "update_model",
201
+ AddModel = "add_model",
202
+ InitialSetup = "initial_setup"
203
+ }
204
+ export type BimUpdatedWebhookPayload = {
205
+ eventName: "bim.updated";
206
+ projectId: string;
207
+ data: {
208
+ updatedAt: string;
209
+ bimIdentifier: string;
210
+ };
211
+ };