@evercam/api 1.0.0-1f181c009 → 1.0.0-1f78aff87

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 (82) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +168 -13
  2. package/dist/api/api/adminApi.d.ts +87 -83
  3. package/dist/api/api/aiApi.d.ts +58 -85
  4. package/dist/api/api/authzApi.d.ts +31 -15
  5. package/dist/api/api/client/axios.d.ts +2 -1
  6. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +121 -95
  8. package/dist/api/api/evercamLabsApi.d.ts +4 -3
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/ingestApi.d.ts +99 -46
  11. package/dist/api/api/ptzApi.d.ts +12 -3
  12. package/dist/api/api/videoWallApi.d.ts +2 -2
  13. package/dist/api/api/weatherApi.d.ts +2 -2
  14. package/dist/api/types/360.d.ts +164 -24
  15. package/dist/api/types/aconex.d.ts +9 -9
  16. package/dist/api/types/admin.d.ts +51 -0
  17. package/dist/api/types/analytics.d.ts +136 -59
  18. package/dist/api/types/anpr.d.ts +17 -2
  19. package/dist/api/types/auditLogs.d.ts +19 -1
  20. package/dist/api/types/authz.d.ts +61 -0
  21. package/dist/api/types/autodesk.d.ts +7 -7
  22. package/dist/api/types/automation.d.ts +37 -3
  23. package/dist/api/types/axios.d.ts +11 -5
  24. package/dist/api/types/bim.d.ts +28 -5
  25. package/dist/api/types/camera.d.ts +98 -99
  26. package/dist/api/types/comments.d.ts +8 -10
  27. package/dist/api/types/company.d.ts +42 -1
  28. package/dist/api/types/compare.d.ts +20 -5
  29. package/dist/api/types/connector.d.ts +3 -5
  30. package/dist/api/types/coolify.d.ts +18 -2
  31. package/dist/api/types/copilot.d.ts +11 -6
  32. package/dist/api/types/credentials.d.ts +1 -0
  33. package/dist/api/types/detections.d.ts +20 -17
  34. package/dist/api/types/drone.d.ts +96 -6
  35. package/dist/api/types/gateReport.d.ts +49 -158
  36. package/dist/api/types/hdd.d.ts +26 -1
  37. package/dist/api/types/index.d.ts +8 -1
  38. package/dist/api/types/ingest.d.ts +99 -3
  39. package/dist/api/types/kit.d.ts +31 -5
  40. package/dist/api/types/map.d.ts +12 -0
  41. package/dist/api/types/media.d.ts +2 -1
  42. package/dist/api/types/notification.d.ts +32 -2
  43. package/dist/api/types/oauth.d.ts +62 -0
  44. package/dist/api/types/planner.d.ts +101 -1
  45. package/dist/api/types/posthog.d.ts +15 -0
  46. package/dist/api/types/procore.d.ts +13 -6
  47. package/dist/api/types/progressPhoto.d.ts +6 -2
  48. package/dist/api/types/project.d.ts +136 -21
  49. package/dist/api/types/recording.d.ts +6 -4
  50. package/dist/api/types/recycleBin.d.ts +1 -1
  51. package/dist/api/types/ring.d.ts +53 -0
  52. package/dist/api/types/roi.d.ts +2 -2
  53. package/dist/api/types/router.d.ts +20 -1
  54. package/dist/api/types/shared.d.ts +30 -4
  55. package/dist/api/types/shares.d.ts +6 -144
  56. package/dist/api/types/sim.d.ts +6 -6
  57. package/dist/api/types/siteAnalytics.d.ts +171 -47
  58. package/dist/api/types/siteView.d.ts +74 -0
  59. package/dist/api/types/smartSeach.d.ts +5 -0
  60. package/dist/api/types/snapshots.d.ts +44 -4
  61. package/dist/api/types/storageProvider.d.ts +19 -0
  62. package/dist/api/types/storyblok.d.ts +40 -0
  63. package/dist/api/types/streaming.d.ts +3 -3
  64. package/dist/api/types/tag.d.ts +1 -1
  65. package/dist/api/types/time.d.ts +0 -18
  66. package/dist/api/types/timelapse.d.ts +8 -5
  67. package/dist/api/types/user.d.ts +105 -31
  68. package/dist/api/types/videoWall.d.ts +21 -21
  69. package/dist/api/types/weather.d.ts +75 -11
  70. package/dist/api/types/widget.d.ts +71 -12
  71. package/dist/api/types/xweather.d.ts +4 -4
  72. package/dist/index.js +1556 -946
  73. package/dist/index.js.map +1 -1
  74. package/dist/index.umd.cjs +1 -1
  75. package/dist/index.umd.cjs.map +1 -1
  76. package/dist/shared/types/components.d.ts +139 -16
  77. package/dist/shared/types/imagePlayer.d.ts +10 -3
  78. package/dist/shared/types/index.d.ts +1 -0
  79. package/dist/shared/types/rbac.d.ts +67 -0
  80. package/dist/shared/types/timeline.d.ts +2 -1
  81. package/package.json +2 -2
  82. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,9 +1,14 @@
1
- import { MoveParams, ZoomParams } from "@/types";
1
+ import { MoveParams, ZoomParams } from "@evercam/api/types";
2
2
  export declare const PtzApi: {
3
3
  presets: {
4
- index({ cameraExid }: {
4
+ index({ cameraExid, }: {
5
5
  cameraExid: string;
6
- }): Promise<import("axios").AxiosResponse<any, any>>;
6
+ }): Promise<{
7
+ presets: Array<{
8
+ name: string;
9
+ token: string;
10
+ }>;
11
+ }>;
7
12
  go({ cameraExid, presetId, }: {
8
13
  cameraExid: string;
9
14
  presetId: string | number;
@@ -21,6 +26,10 @@ export declare const PtzApi: {
21
26
  presetId: string | number;
22
27
  presetName: string;
23
28
  }): Promise<import("axios").AxiosResponse<any, any>>;
29
+ updateHome({ cameraExid, presetName, }: {
30
+ cameraExid: string;
31
+ presetName: string;
32
+ }): Promise<import("axios").AxiosResponse<any, any>>;
24
33
  delete({ cameraExid, presetId, }: {
25
34
  cameraExid: string;
26
35
  presetId: string | number;
@@ -1,7 +1,7 @@
1
1
  import { type PaginatedItems } from "@evercam/shared/types";
2
- import { VideoWall, ListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
2
+ import { VideoWall, VideoWallListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
3
3
  export declare const VideoWallApi: {
4
- list(params?: ListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
4
+ list(params?: VideoWallListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
5
5
  create(body: VideoWallCreateUpdatePayload): Promise<import("axios").AxiosResponse<VideoWall, any>>;
6
6
  get(exid: string | number): Promise<import("axios").AxiosResponse<VideoWall, any>>;
7
7
  update(exid: string | number, body: Partial<VideoWallCreateUpdatePayload>): Promise<import("axios").AxiosResponse<VideoWall, any>>;
@@ -1,9 +1,9 @@
1
- import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
1
+ import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherReportRequestPayload, WeatherResponsePayload } from "@evercam/api/types";
2
2
  import { AxiosRequestConfig } from "axios";
3
3
  export declare const WeatherApi: {
4
4
  current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
5
5
  historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
6
- report(projectExid: string, payload: HistoryWeatherRequestPayload, config?: AxiosRequestConfig): Promise<{
6
+ report(projectExid: string, payload: WeatherReportRequestPayload, config?: AxiosRequestConfig): Promise<{
7
7
  data: WeatherDataResponse[];
8
8
  }> | undefined;
9
9
  };
@@ -1,25 +1,180 @@
1
- import { DateType } from "@/types/time";
2
- export type _360CameraParams = {
1
+ import { DateType } from "@evercam/api/types/time";
2
+ import { GeoPoint, Point3D } from "@evercam/api/types/shared";
3
+ export type _360OverlayPosition = {
4
+ northEast: GeoPoint;
5
+ northWest: GeoPoint;
6
+ southEast: GeoPoint;
7
+ southWest: GeoPoint;
8
+ };
9
+ export type ForgeViewport = {
10
+ name: string;
11
+ eye: number[];
12
+ target: number[];
13
+ worldUpVector?: number[];
14
+ };
15
+ export type ForgeView = {
16
+ name: string;
17
+ viewport: ForgeViewport;
18
+ timestamp: string;
19
+ };
20
+ export type _360CameraRotation = {
3
21
  azimuthAngle: number;
4
22
  polarAngle: number;
5
23
  };
24
+ export type _360Geolocation = {
25
+ latitude: number;
26
+ longitude: number;
27
+ };
28
+ export type _360Marker3D = {
29
+ cameraPosition: Point3D;
30
+ geolocation: _360Geolocation;
31
+ nextRoomId: _360MakerId;
32
+ position: Point3D;
33
+ rotation: {
34
+ _order: "XYZ" | string;
35
+ _x: number;
36
+ _y: number;
37
+ _z: number;
38
+ isEuler: boolean;
39
+ };
40
+ };
41
+ export type _360Tag = {
42
+ id: string;
43
+ tagType: string;
44
+ comment: string;
45
+ creationDate: number;
46
+ currentRoom: _360MakerId;
47
+ position: Point3D;
48
+ cameraRotation: _360CameraRotation;
49
+ };
50
+ export type _360FloorId = string | number;
51
+ export type _360Walk = Record<_360FloorId, _360Floor>;
52
+ export type _360MakerId = string;
6
53
  export type _360Floor = {
7
- floorID: string;
54
+ _3DMarkers: _360Marker3D[];
55
+ cameraRotation: _360CameraRotation;
56
+ fbxModel: string;
57
+ fbxModelHQ?: string;
58
+ pointCloudModelHQ?: string;
59
+ initialMarker: _360MakerId;
60
+ modelViewerFeatureFlag: boolean;
61
+ imagesOnlyFeatureFlag?: boolean;
62
+ forgeBIMFeatureFlag?: boolean;
63
+ isForgeGravityEnabled?: boolean;
64
+ initialForgeView?: ForgeView | null;
65
+ enhancedLightFeatureFlag?: boolean;
66
+ calibrationDetails?: Record<string, unknown>;
67
+ route: {
68
+ cameraHeadingOffset: string;
69
+ overlayID: number;
70
+ track: string;
71
+ };
72
+ sceneScale: number;
73
+ steps: number;
74
+ tags?: Record<string, _360Tag>;
75
+ };
76
+ export type _360WalkV2 = {
77
+ archive: string;
78
+ date: string;
79
+ deviceSerial: string | null;
80
+ endPosition: unknown | null;
81
+ floor: string;
82
+ floorId: number;
83
+ id: number;
84
+ images: string[];
85
+ insertedAt: string;
86
+ mobileAudios: string[];
87
+ mobileAudiosArchive: string;
88
+ mobilePhotos: string[];
89
+ mobilePhotosArchive: string;
90
+ model: string;
91
+ name: string;
92
+ processingStatus: string;
93
+ projectId: string;
94
+ report: string;
95
+ route: unknown | null;
96
+ startPosition: unknown | null;
97
+ tusLinks: unknown | null;
98
+ updatedAt: string;
99
+ uploadedBy: string;
100
+ videoArchive: string;
101
+ videos: string[];
102
+ };
103
+ export type _360FloorV2 = {
104
+ id: _360FloorId;
105
+ assets: _360WalkV2[];
106
+ projectId: string;
8
107
  name: string;
108
+ mapStyle: string;
109
+ hasOverlay: boolean;
110
+ isCalibrated: boolean;
111
+ createdBy: string | null;
112
+ overlayPosition: _360OverlayPosition;
113
+ insertedAt: string;
114
+ updatedAt: string;
9
115
  };
10
116
  export type _360Scene = {
11
117
  date: string;
12
- dateID: string;
13
- floors: _360Floor[];
118
+ dateID: number;
119
+ floors: {
120
+ floorID: _360FloorId;
121
+ name: string;
122
+ }[];
14
123
  polarAngle: number;
15
124
  azimuthAngle: number;
16
125
  };
126
+ export declare enum _360PinType {
127
+ Default = "Default"
128
+ }
129
+ export type _360Pin = {
130
+ position: Point3D;
131
+ pinType: _360PinType;
132
+ pinId?: string;
133
+ cameraExid?: string;
134
+ name: string;
135
+ currentRoom?: _360MakerId;
136
+ cameraRotation?: _360CameraRotation;
137
+ };
138
+ export type _360SceneRoute = {
139
+ cameraHeadingOffset?: number;
140
+ overlayID?: number;
141
+ track?: string;
142
+ };
143
+ export type _360ProjectListItem = {
144
+ integrationType: string;
145
+ projectId: string;
146
+ projectName: string;
147
+ providerID: string;
148
+ providerPrefix: string;
149
+ providerSuffix: string;
150
+ timeline: string;
151
+ uniqueId: string;
152
+ };
153
+ export type _360FullProject = {
154
+ dates: _360SceneWithFloors[];
155
+ integrationType: string;
156
+ projectId: string;
157
+ projectName: string;
158
+ providerID: string;
159
+ providerPrefix: string;
160
+ providerSuffix: string;
161
+ timeline: string;
162
+ uniqueId: string;
163
+ };
164
+ export type _360FullFloor = _360Floor & {
165
+ id: _360FloorId;
166
+ name: string;
167
+ };
168
+ export type _360SceneWithFloors = _360Scene & {
169
+ floors: _360FullFloor[];
170
+ };
17
171
  export type _360ProjectJsonResponse = {
18
172
  dates: _360Scene[];
19
173
  [key: string]: any;
20
174
  };
21
175
  export type MobileCaptureSnapshot = {
22
- id: string;
176
+ id: string | number;
177
+ projectId?: string;
23
178
  uploadedBy: string;
24
179
  updatedAt: string;
25
180
  assetType: string;
@@ -27,6 +182,7 @@ export type MobileCaptureSnapshot = {
27
182
  };
28
183
  export declare enum _360UrlParams {
29
184
  DateId = "date_id",
185
+ Date = "date",
30
186
  Floor = "floor",
31
187
  Marker = "marker",
32
188
  PolarAngle = "polarAngle",
@@ -86,6 +242,7 @@ export type DrawingsRequestPayload = {
86
242
  page?: number;
87
243
  limit?: number;
88
244
  paginate?: boolean;
245
+ withAsset?: boolean;
89
246
  };
90
247
  export type GenerateFloorPayload = {
91
248
  overlay?: {
@@ -96,24 +253,7 @@ export type GenerateFloorPayload = {
96
253
  changedBy: string;
97
254
  name?: string;
98
255
  mapStyle?: string;
99
- overlayPositionCorners: {
100
- northEast: {
101
- lat: number;
102
- lng: number;
103
- };
104
- northWest: {
105
- lat: number;
106
- lng: number;
107
- };
108
- southWest: {
109
- lat: number;
110
- lng: number;
111
- };
112
- southEast: {
113
- lat: number;
114
- lng: number;
115
- };
116
- };
256
+ overlayPositionCorners: _360OverlayPosition;
117
257
  };
118
258
  export type _360QueueQueryParams = {
119
259
  projectId?: string;
@@ -1,4 +1,4 @@
1
- export type AconexUserProjectsResponsePayload = Array<{
1
+ export type AconexUserProject = {
2
2
  id: number;
3
3
  name: string;
4
4
  shortName: string;
@@ -6,8 +6,8 @@ export type AconexUserProjectsResponsePayload = Array<{
6
6
  endDate: string;
7
7
  active: boolean;
8
8
  hidden: boolean;
9
- }>;
10
- export type AconexDocumentSchemaResponsePayload = Array<{
9
+ };
10
+ export type AconexDocumentSchema = {
11
11
  dataType: AconexDocumentDataType;
12
12
  identifier: AconexIdentifiers;
13
13
  fieldName: string;
@@ -17,18 +17,18 @@ export type AconexDocumentSchemaResponsePayload = Array<{
17
17
  id: string;
18
18
  value: string;
19
19
  }>;
20
- }>;
21
- export type AconexDocumentTypeSchemaResponsePayload = Array<{
20
+ };
21
+ export type AconexDocumentTypeSchema = {
22
22
  dataType: AconexDocumentDataType;
23
- identifier: string;
23
+ identifier: AconexIdentifiers;
24
24
  fieldName: string;
25
25
  modifiedFieldName?: string;
26
- mandatoryStatus: string;
26
+ mandatoryStatus: AconexMandatoryStatus;
27
27
  specifications?: Array<AconexFieldSpecification>;
28
- }>;
28
+ };
29
29
  export type AconexDocumentSchemaField = {
30
30
  dataType: AconexDocumentDataType;
31
- identifier: AconexIdentifiers | string;
31
+ identifier: AconexIdentifiers;
32
32
  schemaValues?: Array<{
33
33
  id: string;
34
34
  value: string;
@@ -0,0 +1,51 @@
1
+ import type { JsonObject } from "@evercam/api/types";
2
+ export type WithZohoParams = {
3
+ with_zoho?: boolean;
4
+ };
5
+ export type AdminSearchProjectItem = {
6
+ id: number;
7
+ name: string;
8
+ status: string;
9
+ exid: string;
10
+ featureFlags: string[];
11
+ };
12
+ export type AdminSearchItem = AdminSearchProjectItem | JsonObject;
13
+ export type AdminInviteRole = {
14
+ id: number;
15
+ name: string;
16
+ resourceType: string;
17
+ };
18
+ export type AdminInviteAssigner = {
19
+ id: number;
20
+ email: string;
21
+ fullname: string;
22
+ };
23
+ export type AdminInviteAuthContextSubRole = {
24
+ resourceId: string;
25
+ roleId: number;
26
+ };
27
+ export type AdminInviteAuthContext = {
28
+ permissions: string[] | null;
29
+ subRoles: AdminInviteAuthContextSubRole[];
30
+ hasOverride: boolean;
31
+ };
32
+ export type AdminInvite = {
33
+ id: number;
34
+ message: string | null;
35
+ status: number;
36
+ email: string;
37
+ key: string;
38
+ updatedAt: string;
39
+ role: AdminInviteRole;
40
+ createdAt: string;
41
+ resourceId: string;
42
+ assigner: AdminInviteAssigner;
43
+ sentCount: number;
44
+ lastSentAt: string;
45
+ authContext: AdminInviteAuthContext;
46
+ statusName: string;
47
+ };
48
+ export type ZohoDeskTicketSearchResponse = {
49
+ data: JsonObject[];
50
+ count: number;
51
+ };