@evercam/api 1.0.0-5f834eeac → 1.0.0-602761634

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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -13
  3. package/dist/api/api/adminApi.d.ts +161 -161
  4. package/dist/api/api/aiApi.d.ts +184 -88
  5. package/dist/api/api/authzApi.d.ts +29 -17
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  8. package/dist/api/api/evercamApi.d.ts +157 -120
  9. package/dist/api/api/evercamLabsApi.d.ts +10 -17
  10. package/dist/api/api/exNvrApi.d.ts +2 -2
  11. package/dist/api/api/index.d.ts +1 -0
  12. package/dist/api/api/ingestApi.d.ts +132 -57
  13. package/dist/api/api/ptzApi.d.ts +12 -3
  14. package/dist/api/api/reportsApi.d.ts +15 -0
  15. package/dist/api/api/videoWallApi.d.ts +2 -2
  16. package/dist/api/api/weatherApi.d.ts +2 -2
  17. package/dist/api/types/360.d.ts +275 -48
  18. package/dist/api/types/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +85 -0
  20. package/dist/api/types/aiConfigs.d.ts +244 -0
  21. package/dist/api/types/analytics.d.ts +142 -75
  22. package/dist/api/types/anpr.d.ts +49 -2
  23. package/dist/api/types/apiKey.d.ts +70 -0
  24. package/dist/api/types/auditLogs.d.ts +179 -21
  25. package/dist/api/types/authz.d.ts +116 -6
  26. package/dist/api/types/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +65 -3
  28. package/dist/api/types/axios.d.ts +20 -14
  29. package/dist/api/types/bim.d.ts +65 -16
  30. package/dist/api/types/camera.d.ts +323 -199
  31. package/dist/api/types/comments.d.ts +68 -31
  32. package/dist/api/types/company.d.ts +53 -6
  33. package/dist/api/types/compare.d.ts +21 -6
  34. package/dist/api/types/connector.d.ts +5 -5
  35. package/dist/api/types/coolify.d.ts +18 -2
  36. package/dist/api/types/detections.d.ts +26 -18
  37. package/dist/api/types/drone.d.ts +95 -6
  38. package/dist/api/types/emailMessages.d.ts +27 -0
  39. package/dist/api/types/errors.d.ts +19 -2
  40. package/dist/api/types/gateReport.d.ts +51 -169
  41. package/dist/api/types/gateReportManagement.d.ts +170 -0
  42. package/dist/api/types/hammertech.d.ts +98 -0
  43. package/dist/api/types/hdd.d.ts +27 -2
  44. package/dist/api/types/index.d.ts +17 -3
  45. package/dist/api/types/ingest.d.ts +280 -17
  46. package/dist/api/types/kit.d.ts +121 -115
  47. package/dist/api/types/map.d.ts +12 -0
  48. package/dist/api/types/media.d.ts +33 -4
  49. package/dist/api/types/notification.d.ts +83 -3
  50. package/dist/api/types/nvr.d.ts +39 -8
  51. package/dist/api/types/oauth.d.ts +62 -0
  52. package/dist/api/types/observationEvents.d.ts +167 -0
  53. package/dist/api/types/observations.d.ts +89 -0
  54. package/dist/api/types/planner.d.ts +98 -8
  55. package/dist/api/types/posthog.d.ts +71 -0
  56. package/dist/api/types/procore.d.ts +13 -6
  57. package/dist/api/types/progressPhoto.d.ts +42 -25
  58. package/dist/api/types/project.d.ts +158 -33
  59. package/dist/api/types/recording.d.ts +9 -15
  60. package/dist/api/types/recycleBin.d.ts +9 -3
  61. package/dist/api/types/reports.d.ts +108 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +3 -11
  64. package/dist/api/types/routeParams.d.ts +1 -0
  65. package/dist/api/types/router.d.ts +34 -10
  66. package/dist/api/types/shared.d.ts +47 -30
  67. package/dist/api/types/shares.d.ts +6 -157
  68. package/dist/api/types/sim.d.ts +23 -11
  69. package/dist/api/types/siteAnalytics.d.ts +169 -47
  70. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  71. package/dist/api/types/siteView.d.ts +79 -0
  72. package/dist/api/types/smartSeach.d.ts +5 -0
  73. package/dist/api/types/snapshots.d.ts +99 -14
  74. package/dist/api/types/socket.d.ts +4 -0
  75. package/dist/api/types/sso.d.ts +11 -37
  76. package/dist/api/types/storageProvider.d.ts +30 -0
  77. package/dist/api/types/storyblok.d.ts +27 -0
  78. package/dist/api/types/streaming.d.ts +3 -3
  79. package/dist/api/types/tag.d.ts +1 -1
  80. package/dist/api/types/time.d.ts +0 -18
  81. package/dist/api/types/timelapse.d.ts +7 -11
  82. package/dist/api/types/user.d.ts +139 -54
  83. package/dist/api/types/videoWall.d.ts +21 -21
  84. package/dist/api/types/weather.d.ts +75 -11
  85. package/dist/api/types/widget.d.ts +83 -15
  86. package/dist/api/types/xweather.d.ts +4 -4
  87. package/dist/api/utils.d.ts +1 -1
  88. package/dist/index.js +2547 -1108
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.umd.cjs +1 -1
  91. package/dist/index.umd.cjs.map +1 -1
  92. package/dist/shared/types/components.d.ts +598 -34
  93. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  94. package/dist/shared/types/droneUpload.d.ts +93 -0
  95. package/dist/shared/types/imagePlayer.d.ts +10 -3
  96. package/dist/shared/types/index.d.ts +5 -0
  97. package/dist/shared/types/observations.d.ts +25 -0
  98. package/dist/shared/types/rbac.d.ts +67 -0
  99. package/dist/shared/types/report.d.ts +107 -0
  100. package/dist/shared/types/timeline.d.ts +2 -1
  101. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  102. package/dist/shared/utils/datePresets.d.ts +31 -0
  103. package/package.json +4 -2
  104. package/dist/api/types/copilot.d.ts +0 -157
  105. package/dist/api/types/storageServers.d.ts +0 -4
  106. package/dist/api/types/vendorModel.d.ts +0 -15
package/README.md CHANGED
@@ -4,3 +4,4 @@
4
4
 
5
5
 
6
6
 
7
+
@@ -1,21 +1,224 @@
1
- import { _360ProjectJsonResponse, DroneProjectJsonResponse, ProjectExid } from "@evercam/api/types";
2
- export declare const getFirebaseDbApi: () => string | null | undefined;
3
- export declare const getFirebaseStorageUrl: () => string | null | undefined;
4
- export declare const getFirebaseStorageToken: () => string | null | undefined;
1
+ import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360CalibrationDetails, _360FloorData, _360FloorRef, _360PinData, _360Route, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeUrn, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform, EmailingSettings } from "@evercam/api/types";
2
+ import { AxiosRequestConfig } from "axios";
3
+ export declare const getFirebaseDbApi: () => string;
4
+ export declare const getFirebaseStorageUrl: () => string;
5
+ export declare const getFirebaseStorageToken: () => string;
6
+ export declare const getForgeTokenServerUrl: () => string;
5
7
  export declare const _3dFirebaseApi: {
8
+ emailing: {
9
+ getSettings(): Promise<EmailingSettings | null>;
10
+ };
6
11
  drone: {
7
- getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
8
- getProjectTags(projectExid: ProjectExid): Promise<DroneProjectJsonResponse>;
12
+ getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
13
+ getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
14
+ patchTags({ projectId, tags, }: {
15
+ projectId: ProjectExid;
16
+ tags: Record<string, DroneTag | null>;
17
+ }): Promise<void>;
18
+ saveMarkers({ projectId, markers, }: {
19
+ projectId: ProjectExid;
20
+ markers: Record<string, DroneMarker>;
21
+ }): Promise<void>;
22
+ patchTransform({ projectId, data, }: {
23
+ projectId: ProjectExid;
24
+ data: DroneTransformPatch;
25
+ }): Promise<void>;
26
+ saveTerrainPoints({ projectId, dateId, points, }: {
27
+ projectId: ProjectExid;
28
+ dateId: string;
29
+ points: Point3D[];
30
+ }): Promise<void>;
31
+ patchImageryPlan({ projectId, plan, }: {
32
+ projectId: ProjectExid;
33
+ plan: Record<string, DroneImageryPlan>;
34
+ }): Promise<void>;
35
+ deleteImageryPlan({ projectId, uuid, }: {
36
+ projectId: ProjectExid;
37
+ uuid: string;
38
+ }): Promise<void>;
39
+ saveImageryPlans({ projectId, plans, }: {
40
+ projectId: ProjectExid;
41
+ plans: Record<string, DroneImageryPlan>;
42
+ }): Promise<void>;
43
+ saveModel({ projectId, model, }: {
44
+ projectId: ProjectExid;
45
+ model: DroneModel;
46
+ }): Promise<void>;
47
+ saveModels({ projectId, models, }: {
48
+ projectId: ProjectExid;
49
+ models: DroneModel[];
50
+ }): Promise<void>;
51
+ saveBimData({ projectId, data, }: {
52
+ projectId: ProjectExid;
53
+ data: DroneBimData;
54
+ }): Promise<void>;
55
+ getBimTransparencyFlag(projectId: ProjectExid): Promise<boolean | null>;
56
+ saveCameraTransform({ projectId, isScene3D, transform, }: {
57
+ projectId: ProjectExid;
58
+ isScene3D: boolean;
59
+ transform: Record<string, DroneCameraTransform>;
60
+ }): Promise<void>;
9
61
  };
10
62
  _360: {
11
- getProjectInfo(projectExid: ProjectExid): Promise<_360ProjectJsonResponse>;
12
- updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<_360ProjectJsonResponse>;
13
- updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: any): Promise<any>;
14
- updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<any>;
15
- saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<any>;
16
- updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: any): Promise<any>;
63
+ getProjectInfo(projectExid: ProjectExid, params?: {
64
+ config?: AxiosRequestConfig;
65
+ }): Promise<_360ProjectJsonResponse>;
66
+ getProjectsList(): Promise<_360ProjectListItem[]>;
67
+ updateProjectsList(items: Record<string, _360ProjectListItem>): Promise<void>;
68
+ updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
69
+ deleteProject(projectId: string): Promise<void>;
70
+ updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
71
+ updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Scene["floors"][number]>): Promise<_360ProjectJsonResponse>;
72
+ getFloor({ projectId, dateId, floorId, }: {
73
+ projectId: ProjectExid;
74
+ dateId: number;
75
+ floorId: _360FloorId;
76
+ }): Promise<_360Floor>;
77
+ getAerialShotsFloor({ projectId, dateId, floorId, }: {
78
+ projectId: ProjectExid;
79
+ dateId: number;
80
+ floorId: _360FloorId;
81
+ }): Promise<_360Floor>;
82
+ update3DMarkers({ projectId, dateId, floorId, markers, }: {
83
+ projectId: ProjectExid;
84
+ dateId: number;
85
+ floorId: _360FloorId;
86
+ markers: Record<string, _360Marker3D>;
87
+ }): Promise<void>;
88
+ updateFloors({ projectId, dateId, floors, }: {
89
+ projectId: ProjectExid;
90
+ dateId: number;
91
+ floors: _360Scene["floors"];
92
+ }): Promise<void>;
93
+ deleteFloor({ projectId, dateId, floorId, }: {
94
+ projectId: ProjectExid;
95
+ dateId: number;
96
+ floorId: _360FloorId;
97
+ }): Promise<void>;
98
+ updateDates(projectId: ProjectExid, dates: _360Scene[]): Promise<void>;
99
+ updatePins({ projectId, dateId, floorId, pins, }: {
100
+ projectId: ProjectExid;
101
+ dateId: number;
102
+ floorId: _360FloorId;
103
+ pins: Record<string, _360Pin>;
104
+ }): Promise<void>;
105
+ getGPXText(url: string): Promise<string>;
106
+ updateRoute(projectExid: ProjectExid, dateId: string | number, floorIndex: string, body: Partial<_360SceneRoute>): Promise<Partial<_360SceneRoute>>;
107
+ updateFeatureFlag(projectID: string, dateID: string | number, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
108
+ saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<void>;
109
+ getDates({ projectID, prefix, }: {
110
+ projectID: string;
111
+ prefix?: string;
112
+ }): Promise<_360Scene[] | null>;
113
+ getFloorData({ projectID, dateID, floorID, prefix, }: _360FloorRef & {
114
+ prefix?: string;
115
+ }): Promise<_360FloorData>;
116
+ patchFloor({ projectID, dateID, floorID, body, }: _360FloorRef & {
117
+ body: Record<string, unknown>;
118
+ }): Promise<Record<string, unknown>>;
119
+ deleteMarkers({ projectID, dateID, floorID }: _360FloorRef): Promise<void>;
120
+ patchMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
121
+ markers: Record<string, unknown>;
122
+ }): Promise<Record<string, unknown>>;
123
+ putMarkers({ projectID, dateID, floorID, markers, }: _360FloorRef & {
124
+ markers: Record<string, unknown>;
125
+ }): Promise<any>;
126
+ putFloors({ projectID, dateID, floors, }: {
127
+ projectID: string;
128
+ dateID: string | number;
129
+ floors: unknown[];
130
+ }): Promise<unknown[]>;
131
+ deleteFloorData({ projectID, dateID, floorID, }: _360FloorRef): Promise<void>;
132
+ putDates({ projectID, dates, }: {
133
+ projectID: string;
134
+ dates: _360Scene[];
135
+ }): Promise<_360Scene[]>;
136
+ deleteDate({ projectID, dateID, }: {
137
+ projectID: string;
138
+ dateID: string | number;
139
+ }): Promise<void>;
140
+ getPins({ projectID, dateID, floorID, }: _360FloorRef): Promise<Record<string, _360PinData> | null>;
141
+ putPins({ projectID, dateID, floorID, pins, }: _360FloorRef & {
142
+ pins: Record<string, _360PinData>;
143
+ }): Promise<Record<string, _360PinData> | null>;
144
+ patchCalibrationDetails({ projectID, dateID, floorID, details, }: _360FloorRef & {
145
+ details: Partial<_360CalibrationDetails>;
146
+ }): Promise<Partial<_360CalibrationDetails>>;
147
+ getDateWalks(projectExid: ProjectExid, dateId: string): Promise<Record<string, unknown> | null>;
148
+ getRoute({ projectID, dateID, floorID, }: _360FloorRef): Promise<_360Route | null>;
149
+ deleteRoute({ projectID, dateID, floorID }: _360FloorRef): Promise<void>;
150
+ getAerialShotDate({ projectID, dateID, }: {
151
+ projectID: string;
152
+ dateID: string;
153
+ }): Promise<string>;
154
+ updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: string): Promise<void>;
155
+ getProjectDates(projectId: ProjectExid): Promise<_360Scene[]>;
156
+ getProjectAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
157
+ getProjectDateFloors({ projectId, dateId, prefix, }: {
158
+ projectId: ProjectExid;
159
+ dateId: string | number;
160
+ prefix?: string;
161
+ }): Promise<_360Walk>;
162
+ getFloorMarkers({ projectId, dateId, floorId, prefix, }: {
163
+ projectId: ProjectExid;
164
+ dateId: string | number;
165
+ floorId: _360FloorId;
166
+ prefix?: string;
167
+ }): Promise<_360Marker3D[] | Record<string, _360Marker3D> | null>;
17
168
  };
18
169
  forge: {
19
- getProjectInfo(projectExid: ProjectExid): Promise<any>;
170
+ getAccessToken(): Promise<{
171
+ access_token: string;
172
+ }>;
173
+ getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
174
+ getUrns(projectExid: ProjectExid): Promise<ForgeUrn[] | null>;
175
+ saveModelView({ projectId, modelIndex, viewId, view, }: {
176
+ projectId: ProjectExid;
177
+ modelIndex: number;
178
+ viewId: string;
179
+ view: ForgeView;
180
+ }): Promise<void>;
181
+ saveModelId({ projectId, modelIndex, id, }: {
182
+ projectId: ProjectExid;
183
+ modelIndex: number;
184
+ id: string;
185
+ }): Promise<void>;
186
+ patchCameraMarkers(projectId: ProjectExid, markers: Record<string, ForgeMarker | null>): Promise<void>;
187
+ patchCameraMarkerNames(projectId: ProjectExid, names: Record<string, string>): Promise<void>;
188
+ };
189
+ itwin: {
190
+ getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
191
+ clearBimCompare(projectId: string): Promise<void>;
192
+ clearSiteView(projectId: string, modelIndex: number): Promise<void>;
193
+ };
194
+ siteView: {
195
+ getCamerasList(): Promise<SiteViewCameraListItem[]>;
196
+ updateCamerasList(items: Record<number, SiteViewCameraListItem>): Promise<void>;
197
+ updateCamerasListItem(trueIndex: number, item: SiteViewCameraListItem): Promise<void>;
198
+ updateProjectData({ viewerType, projectId, data, }: {
199
+ viewerType: SiteViewerType;
200
+ projectId: ProjectExid;
201
+ data: ForgeProjectData | ItwinProjectData | DroneProjectDataPatch;
202
+ }): Promise<void>;
203
+ deleteProjectData(viewerType: SiteViewerType, projectId: ProjectExid): Promise<void>;
204
+ readAllData(dbLink: string): Promise<Record<string, unknown>>;
205
+ writeAllData(dbLink: string, data: Record<string, unknown>): Promise<void>;
206
+ };
207
+ map: {
208
+ getMapViews(projectExid: ProjectExid): Promise<MapView[]>;
209
+ updateMapViews(projectExid: ProjectExid, mapViews: Record<string, MapView>): Promise<void>;
210
+ };
211
+ safety: {
212
+ getTPulseLink(projectExid: ProjectExid): Promise<{
213
+ link?: string;
214
+ } | null>;
215
+ updateTPulseLink(projectExid: ProjectExid, link: string): Promise<void>;
216
+ };
217
+ planner: {
218
+ getPlannerList(): Promise<Record<string, PlannerListItem>>;
219
+ getPlannerItem(sitePlanId: string): Promise<PlannerListItem | null>;
220
+ saveSitePlanMetaData(sitePlanId: string, payload: PlannerListItem): Promise<void>;
221
+ getSitePlan(sitePlanId: string): Promise<SitePlan | null>;
222
+ saveSitePlan(sitePlanId: string, payload: SitePlan): Promise<void>;
20
223
  };
21
224
  };