@evercam/api 1.0.0-964e29308 → 1.0.0-97ed1b3dd
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.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +197 -15
- package/dist/api/api/adminApi.d.ts +25 -20
- package/dist/api/api/aiApi.d.ts +127 -4
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +37 -13
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +21 -7
- package/dist/api/types/360.d.ts +167 -83
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +37 -23
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -1
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +9 -9
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +35 -46
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +7 -22
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +8 -1
- package/dist/api/types/ingest.d.ts +98 -3
- package/dist/api/types/kit.d.ts +43 -51
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +11 -2
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +18 -18
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +16 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1870 -690
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +116 -39
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +4 -2
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum VisionProvider {
|
|
3
|
+
Gemini = "gemini",
|
|
4
|
+
Gemma = "gemma"
|
|
5
|
+
}
|
|
6
|
+
export declare const VISION_PROVIDER_OPTIONS: {
|
|
7
|
+
text: string;
|
|
8
|
+
value: VisionProvider;
|
|
9
|
+
}[];
|
|
10
|
+
export type SiteAnalyticsCoolifyStatus = {
|
|
11
|
+
appUuid: string | null;
|
|
12
|
+
name: string | null;
|
|
13
|
+
serverUuid: string | null;
|
|
14
|
+
serverName: string | null;
|
|
15
|
+
appUrl: string | null;
|
|
16
|
+
status: string | null;
|
|
17
|
+
isRunning: boolean;
|
|
18
|
+
updatedAt: string | null;
|
|
19
|
+
};
|
|
20
|
+
export type SiteAnalyticsProjectMeta = {
|
|
21
|
+
exid: ProjectExid;
|
|
22
|
+
name: string | null;
|
|
23
|
+
timezone: string | null;
|
|
24
|
+
featureFlags: string[] | null;
|
|
25
|
+
};
|
|
26
|
+
export type SiteAnalyticsCameraMeta = {
|
|
27
|
+
exid: CameraExid;
|
|
28
|
+
name: string | null;
|
|
29
|
+
status: string | null;
|
|
30
|
+
featureFlags: string[] | null;
|
|
31
|
+
};
|
|
32
|
+
export type SiteAnalyticsManagedApp = {
|
|
33
|
+
id: number;
|
|
34
|
+
projectExid: ProjectExid;
|
|
35
|
+
cameraExid: CameraExid;
|
|
36
|
+
coolifyAppId: string | null;
|
|
37
|
+
appVersion: string;
|
|
38
|
+
modelId: number | null;
|
|
39
|
+
startDate: DateType | null;
|
|
40
|
+
endDate: DateType | null;
|
|
41
|
+
startHour: number;
|
|
42
|
+
endHour: number;
|
|
43
|
+
source: string;
|
|
44
|
+
override: boolean;
|
|
45
|
+
timeIncreaseFrequency: number;
|
|
46
|
+
skipWeekends: boolean;
|
|
47
|
+
tracking: boolean;
|
|
48
|
+
observations: boolean;
|
|
49
|
+
visionProvider?: VisionProvider | null;
|
|
50
|
+
insertedAt: DateType | null;
|
|
51
|
+
updatedAt: DateType | null;
|
|
52
|
+
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
53
|
+
project: SiteAnalyticsProjectMeta | null;
|
|
54
|
+
camera: SiteAnalyticsCameraMeta | null;
|
|
55
|
+
lastTrackingAt: DateType | null;
|
|
56
|
+
};
|
|
57
|
+
export type CreateSiteAnalyticsAppPayload = {
|
|
58
|
+
projectExid: ProjectExid;
|
|
59
|
+
cameraExid: CameraExid;
|
|
60
|
+
coolifyServerUuid: string;
|
|
61
|
+
appVersion?: string;
|
|
62
|
+
modelId?: number | null;
|
|
63
|
+
startDate?: DateType | null;
|
|
64
|
+
endDate?: DateType | null;
|
|
65
|
+
startHour?: number;
|
|
66
|
+
endHour?: number;
|
|
67
|
+
source?: string;
|
|
68
|
+
override?: boolean;
|
|
69
|
+
skipWeekends?: boolean;
|
|
70
|
+
timeIncreaseFrequency?: number;
|
|
71
|
+
tracking?: boolean;
|
|
72
|
+
observations?: boolean;
|
|
73
|
+
observationPromptId?: number | null;
|
|
74
|
+
visionProvider?: VisionProvider;
|
|
75
|
+
};
|
|
76
|
+
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
77
|
+
export type ModelOption = {
|
|
78
|
+
modelId: number;
|
|
79
|
+
version: string;
|
|
80
|
+
};
|
|
81
|
+
export type SiteAnalyticsAppConfigFormValue = {
|
|
82
|
+
appVersion: string;
|
|
83
|
+
modelId: number | null;
|
|
84
|
+
startDate: string | null;
|
|
85
|
+
endDate: string | null;
|
|
86
|
+
startHour: number;
|
|
87
|
+
endHour: number;
|
|
88
|
+
source: string;
|
|
89
|
+
override: boolean;
|
|
90
|
+
timeIncreaseFrequency: number;
|
|
91
|
+
skipWeekends: boolean;
|
|
92
|
+
};
|
|
93
|
+
export type SiteAnalyticsManagementListParams = PaginationParams & {
|
|
94
|
+
projectExid?: ProjectExid;
|
|
95
|
+
includeStatus?: boolean;
|
|
96
|
+
};
|
|
97
|
+
export type CreateSiteAnalyticsAppResponse = {
|
|
98
|
+
created: boolean;
|
|
99
|
+
id: number | null;
|
|
100
|
+
data: SiteAnalyticsManagedApp | null;
|
|
101
|
+
count: number | null;
|
|
102
|
+
message: string;
|
|
103
|
+
};
|
|
104
|
+
export type DeleteSiteAnalyticsAppResponse = {
|
|
105
|
+
deleted: boolean;
|
|
106
|
+
count: number;
|
|
107
|
+
message: string;
|
|
108
|
+
};
|
|
109
|
+
export type ObservationConfigActivity = {
|
|
110
|
+
observationTypeId: number;
|
|
111
|
+
every: number | null;
|
|
112
|
+
};
|
|
113
|
+
export type ObservationConfig = {
|
|
114
|
+
id: number;
|
|
115
|
+
cameraExid: CameraExid;
|
|
116
|
+
projectExid: ProjectExid | null;
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
activities: ObservationConfigActivity[];
|
|
119
|
+
createdBy: string | null;
|
|
120
|
+
insertedAt: DateType | null;
|
|
121
|
+
updatedAt: DateType | null;
|
|
122
|
+
};
|
|
123
|
+
export type UpsertObservationConfigPayload = {
|
|
124
|
+
projectExid?: ProjectExid;
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
activities: ObservationConfigActivity[];
|
|
127
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ForgeView } from "@evercam/api/types/360";
|
|
2
|
+
import { Point2D, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
export declare enum SiteViewSoftwareType {
|
|
4
|
+
Revit = "Revit",
|
|
5
|
+
Navisworks = "Navisworks",
|
|
6
|
+
Drone = "Drone",
|
|
7
|
+
Synchro = "Synchro"
|
|
8
|
+
}
|
|
9
|
+
export declare enum SiteViewerType {
|
|
10
|
+
ITwin = "iTwin",
|
|
11
|
+
Cesium = "Cesium",
|
|
12
|
+
Forge = "Forge"
|
|
13
|
+
}
|
|
14
|
+
export type SiteViewCameraListItem = {
|
|
15
|
+
projectId: string;
|
|
16
|
+
projectName: string;
|
|
17
|
+
software: SiteViewSoftwareType;
|
|
18
|
+
type: SiteViewerType;
|
|
19
|
+
uniqueId: string;
|
|
20
|
+
integrationType?: string;
|
|
21
|
+
};
|
|
22
|
+
export type ForgeUrn = {
|
|
23
|
+
displayName: string;
|
|
24
|
+
urn: string;
|
|
25
|
+
isModelHostedByEvercamACC?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type ForgeAccAlignmentData = {
|
|
28
|
+
bbox: {
|
|
29
|
+
min: Point2D;
|
|
30
|
+
max: Point2D;
|
|
31
|
+
};
|
|
32
|
+
transform: number[];
|
|
33
|
+
};
|
|
34
|
+
export type TimelineItem = {
|
|
35
|
+
taskNumber: number;
|
|
36
|
+
taskID: string;
|
|
37
|
+
actualStartDate: string;
|
|
38
|
+
actualEndDate: string;
|
|
39
|
+
plannedStartDate: string;
|
|
40
|
+
plannedEndDate: string;
|
|
41
|
+
objectIDs: number[];
|
|
42
|
+
};
|
|
43
|
+
export type ForgeMarkerTransform = {
|
|
44
|
+
default: {
|
|
45
|
+
position: Point3D;
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type ForgeMarker = {
|
|
50
|
+
name: string;
|
|
51
|
+
cameraExid: string;
|
|
52
|
+
transforms: ForgeMarkerTransform;
|
|
53
|
+
};
|
|
54
|
+
export type ForgeProjectData = {
|
|
55
|
+
urns?: ForgeUrn[];
|
|
56
|
+
accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
|
|
57
|
+
timeline?: TimelineItem[];
|
|
58
|
+
savedView?: ForgeView;
|
|
59
|
+
markers?: ForgeMarker[];
|
|
60
|
+
};
|
|
61
|
+
export type ItwinModel = {
|
|
62
|
+
name: string;
|
|
63
|
+
iTwinId: string;
|
|
64
|
+
iModelId: string;
|
|
65
|
+
changeSetId?: string;
|
|
66
|
+
isIModel: boolean;
|
|
67
|
+
height?: number;
|
|
68
|
+
cesiumId?: number;
|
|
69
|
+
markerDistanceThreshold: number;
|
|
70
|
+
};
|
|
71
|
+
export type ItwinProjectData = {
|
|
72
|
+
models: ItwinModel[];
|
|
73
|
+
};
|
|
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
|
5
5
|
status: SnapshotExtractionStatus;
|
|
6
6
|
};
|
|
7
7
|
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Cancelling = "canceling",
|
|
9
|
+
Cancelled = "cancelled",
|
|
8
10
|
Completed = "completed",
|
|
9
11
|
Failed = "failed",
|
|
12
|
+
Pending = "pending",
|
|
10
13
|
Processing = "processing"
|
|
11
14
|
}
|
|
12
15
|
export declare enum SnapshotExtractionType {
|
|
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
|
|
|
30
33
|
injectTo_cr: Boolean;
|
|
31
34
|
schedule: Schedule;
|
|
32
35
|
created_at: DateType;
|
|
36
|
+
jpegCount?: number;
|
|
37
|
+
obanJobId?: number;
|
|
33
38
|
};
|
|
34
39
|
export type SnapshotTestPayload = {
|
|
35
40
|
cameraExid?: CameraExid;
|
|
@@ -42,6 +47,14 @@ export type SnapshotTestResponse = {
|
|
|
42
47
|
status: string;
|
|
43
48
|
data: string;
|
|
44
49
|
};
|
|
50
|
+
export type SnapshotEmailDeliveryRequestPayload = {
|
|
51
|
+
snapshot: string;
|
|
52
|
+
recipients?: string[];
|
|
53
|
+
message?: string;
|
|
54
|
+
};
|
|
55
|
+
export type SnapshotEmailDeliveryResponsePayload = {
|
|
56
|
+
warning?: string;
|
|
57
|
+
};
|
|
45
58
|
export type DeleteSnapshotQueryParams = {
|
|
46
59
|
fromDate: DateType;
|
|
47
60
|
toDate: DateType;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue } from "@evercam/api/types";
|
|
2
|
-
export type StoryblokAsset = {
|
|
3
|
-
id: number | null;
|
|
4
|
-
alt: string | null;
|
|
5
|
-
name: string;
|
|
6
|
-
focus: string | null;
|
|
7
|
-
title: string | null;
|
|
8
|
-
filename: string;
|
|
9
|
-
copyright: string | null;
|
|
10
|
-
fieldtype: "asset";
|
|
11
|
-
source?: string;
|
|
12
|
-
metaData?: JsonObject;
|
|
13
|
-
isExternalUrl?: boolean;
|
|
14
|
-
};
|
|
15
2
|
export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
|
|
16
3
|
id: number;
|
|
17
4
|
uuid: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Point2D, Schedule } from "@evercam/api/types";
|
|
2
2
|
export declare enum TimelapseStatus {
|
|
3
3
|
Pending = 11,
|
|
4
4
|
Completed = 5,
|
|
@@ -16,7 +16,9 @@ export type TimelapseVideoOptions = {
|
|
|
16
16
|
removeTimestamp: boolean;
|
|
17
17
|
smoothTransition: boolean;
|
|
18
18
|
evercamWatermark: boolean;
|
|
19
|
+
sectionBlur?: boolean;
|
|
19
20
|
timestampPosition?: TimestampPositionCoordinates;
|
|
21
|
+
blurRegions?: BlurRegionCoordinates[];
|
|
20
22
|
};
|
|
21
23
|
export type TimestampPositionCoordinates = {
|
|
22
24
|
x: number;
|
|
@@ -24,6 +26,7 @@ export type TimestampPositionCoordinates = {
|
|
|
24
26
|
w: number;
|
|
25
27
|
h: number;
|
|
26
28
|
};
|
|
29
|
+
export type BlurRegionCoordinates = Point2D[];
|
|
27
30
|
export type TimelapseLogoOptions = {
|
|
28
31
|
id?: number;
|
|
29
32
|
x: number;
|
|
@@ -51,13 +54,6 @@ export declare enum TimelapseType {
|
|
|
51
54
|
Year = "year",
|
|
52
55
|
FullProject = "full_project"
|
|
53
56
|
}
|
|
54
|
-
export type TimelapseFilterQueryParams = {
|
|
55
|
-
from?: DateType;
|
|
56
|
-
to?: DateType;
|
|
57
|
-
period?: TimelapsePeriod;
|
|
58
|
-
duration?: number;
|
|
59
|
-
schedule?: Schedule;
|
|
60
|
-
};
|
|
61
57
|
export type TimelapseCreationRequestPayload = {
|
|
62
58
|
title: string;
|
|
63
59
|
duration: number;
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -151,6 +151,21 @@ export type SessionsListRequestPayload = {
|
|
|
151
151
|
limit: number;
|
|
152
152
|
page: number;
|
|
153
153
|
};
|
|
154
|
+
export type AuthorizedApp = {
|
|
155
|
+
id: number;
|
|
156
|
+
clientId: string;
|
|
157
|
+
clientName: string;
|
|
158
|
+
clientDescription: string | null;
|
|
159
|
+
logoUrl: string | null;
|
|
160
|
+
scopes: string[];
|
|
161
|
+
grantedAt: string;
|
|
162
|
+
};
|
|
163
|
+
export type AuthorizedAppsListRequestPayload = {
|
|
164
|
+
search?: string;
|
|
165
|
+
sort?: string;
|
|
166
|
+
limit?: number;
|
|
167
|
+
page?: number;
|
|
168
|
+
};
|
|
154
169
|
export type SessionActivityCamSettingsDetail = {
|
|
155
170
|
new: any;
|
|
156
171
|
old: any;
|
|
@@ -176,7 +191,6 @@ export type SessionActivitiesListRequestPayload = {
|
|
|
176
191
|
};
|
|
177
192
|
export type SignupUserRequestPayload = {
|
|
178
193
|
telephone: string;
|
|
179
|
-
token: string;
|
|
180
194
|
firstname: string;
|
|
181
195
|
lastname: string;
|
|
182
196
|
email: string;
|
|
@@ -194,9 +208,6 @@ export type UserUpdateRequestPayload = {
|
|
|
194
208
|
country: string;
|
|
195
209
|
persona: string;
|
|
196
210
|
};
|
|
197
|
-
export type UserDeleteRequestPayload = {
|
|
198
|
-
verifEmail: string;
|
|
199
|
-
};
|
|
200
211
|
export type GoogleAuthRequestPayload = {
|
|
201
212
|
code: string;
|
|
202
213
|
redirectUri: string;
|
|
@@ -338,6 +349,7 @@ export type ProjectUserWithRole = {
|
|
|
338
349
|
name: string;
|
|
339
350
|
exid: string;
|
|
340
351
|
};
|
|
352
|
+
persona: Persona;
|
|
341
353
|
permissions: string[];
|
|
342
354
|
role: Role;
|
|
343
355
|
subRoles: RoleSubRole[];
|
package/dist/api/utils.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
|
|
|
7
7
|
forceArrayBrackets?: boolean | undefined;
|
|
8
8
|
}) => string | undefined;
|
|
9
9
|
export declare function queryStringToObject(queryString?: string): QueryParams;
|
|
10
|
-
export declare function capitalizeFirstLetter(inputString: string): string;
|