@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5
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 +212 -15
- package/dist/api/api/adminApi.d.ts +105 -96
- package/dist/api/api/aiApi.d.ts +131 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +62 -35
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +89 -66
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +66 -37
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +12 -12
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +238 -126
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +9 -10
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +200 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +75 -24
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +108 -0
- 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/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- 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 +79 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +42 -32
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2331 -966
- 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 +530 -43
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types";
|
|
2
|
+
export declare enum Operator {
|
|
3
|
+
AND = "and",
|
|
4
|
+
OR = "or"
|
|
5
|
+
}
|
|
2
6
|
type sortby = string;
|
|
3
7
|
type sortDirection = "asc" | "desc";
|
|
4
8
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
@@ -105,25 +109,18 @@ export declare enum InfoPage {
|
|
|
105
109
|
DroneView = "drone-view",
|
|
106
110
|
Compare = "compare",
|
|
107
111
|
Timeline = "timeline",
|
|
108
|
-
WeatherReport = "weather-report"
|
|
112
|
+
WeatherReport = "weather-report",
|
|
113
|
+
Cameras = "cameras"
|
|
109
114
|
}
|
|
110
115
|
export declare enum DownloadFileType {
|
|
111
116
|
Jpeg = "jpeg",
|
|
112
117
|
Pdf = "pdf",
|
|
113
118
|
Csv = "csv"
|
|
114
119
|
}
|
|
115
|
-
export declare enum
|
|
116
|
-
|
|
120
|
+
export declare enum PromiseSettledStatus {
|
|
121
|
+
Fulfilled = "fulfilled",
|
|
122
|
+
Rejected = "rejected"
|
|
117
123
|
}
|
|
118
|
-
export type FeedbackPayload = {
|
|
119
|
-
id?: number;
|
|
120
|
-
user: string;
|
|
121
|
-
text: string;
|
|
122
|
-
type: string;
|
|
123
|
-
context: FeedbackContext;
|
|
124
|
-
messageId?: number;
|
|
125
|
-
conversationId?: number;
|
|
126
|
-
};
|
|
127
124
|
export type Stringified<T> = string & {
|
|
128
125
|
[P in keyof T]: {
|
|
129
126
|
"_ value": T[P];
|
|
@@ -133,18 +130,41 @@ export interface JSON {
|
|
|
133
130
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
134
131
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
135
132
|
}
|
|
133
|
+
export type TuplePoint2D = [number, number];
|
|
134
|
+
export type TuplePoint3D = [number, number, number];
|
|
135
|
+
export type Point2D = {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
};
|
|
139
|
+
export type Point3D = {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
z: number;
|
|
143
|
+
};
|
|
144
|
+
export type GeoPoint = {
|
|
145
|
+
lat: number;
|
|
146
|
+
lng: number;
|
|
147
|
+
};
|
|
136
148
|
export type Exid = string;
|
|
137
|
-
export type EntityByExid<Entity
|
|
149
|
+
export type EntityByExid<Entity> = Record<Exid, Entity>;
|
|
138
150
|
export type BatteryVoltage = {
|
|
139
151
|
date: DateType;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
};
|
|
152
|
+
maxValue: number;
|
|
153
|
+
minValue: number;
|
|
154
|
+
};
|
|
155
|
+
export declare enum GlobalSearchResource {
|
|
156
|
+
Projects = "projects",
|
|
157
|
+
Users = "users",
|
|
158
|
+
Cameras = "cameras",
|
|
159
|
+
Companies = "companies",
|
|
160
|
+
Sims = "sims",
|
|
161
|
+
Routers = "routers"
|
|
162
|
+
}
|
|
143
163
|
export type GlobalSearchQueryParams = PaginationParams & {
|
|
144
|
-
resource:
|
|
164
|
+
resource: GlobalSearchResource;
|
|
145
165
|
term: string;
|
|
146
|
-
email
|
|
147
|
-
featureFlag
|
|
166
|
+
email?: string;
|
|
167
|
+
featureFlag?: string;
|
|
148
168
|
};
|
|
149
169
|
export type TimelineDateInterval = {
|
|
150
170
|
fromDate: string;
|
|
@@ -159,16 +179,6 @@ export declare enum TimelinePrecision {
|
|
|
159
179
|
Minute = "minute",
|
|
160
180
|
Events = "events"
|
|
161
181
|
}
|
|
162
|
-
export type EntityStatsQueryParams = {
|
|
163
|
-
period: "day" | "week" | "month";
|
|
164
|
-
startDate: string;
|
|
165
|
-
endDate: string;
|
|
166
|
-
};
|
|
167
|
-
export type EntityStat = {
|
|
168
|
-
period: string;
|
|
169
|
-
name: string;
|
|
170
|
-
count: number;
|
|
171
|
-
};
|
|
172
182
|
export declare enum TaskStatus {
|
|
173
183
|
Idle = "idle",
|
|
174
184
|
Loading = "loading",
|
|
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
|
|
|
33
33
|
email: string;
|
|
34
34
|
name: string;
|
|
35
35
|
}>;
|
|
36
|
-
export type ShareCreateRequestPayload = {
|
|
37
|
-
email: string[] | string;
|
|
38
|
-
message?: string;
|
|
39
|
-
permission?: string;
|
|
40
|
-
rights: string;
|
|
41
|
-
apiId?: string;
|
|
42
|
-
apiKey?: string;
|
|
43
|
-
};
|
|
44
36
|
export type ShareCreateResponsePayload = {
|
|
45
37
|
shares: Share[];
|
|
46
38
|
shareRequests: ShareRequest[];
|
|
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
|
|
|
51
43
|
Used = 1,
|
|
52
44
|
Failed = -2
|
|
53
45
|
}
|
|
54
|
-
export declare enum ShareVisibility {
|
|
55
|
-
PublicDiscoverable = "publicDiscoverable",
|
|
56
|
-
PublicUndiscoverable = "publicUndiscoverable",
|
|
57
|
-
Private = "private"
|
|
58
|
-
}
|
package/dist/api/types/sim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, PowerType, PowerSchedule, RouterStatus } from "@evercam/api/types";
|
|
2
2
|
export declare enum SmsCommands {
|
|
3
3
|
Cellular = "cellular",
|
|
4
4
|
Gpson = "gpson",
|
|
@@ -42,7 +42,6 @@ export type SimCreateUpdatePayload = {
|
|
|
42
42
|
puk?: string;
|
|
43
43
|
iccid?: string;
|
|
44
44
|
description?: string;
|
|
45
|
-
cameraId: string[];
|
|
46
45
|
};
|
|
47
46
|
export type SimsQueryParams = PaginationParams & {
|
|
48
47
|
simProvider: string;
|
|
@@ -51,6 +50,11 @@ export type SimsQueryParams = PaginationParams & {
|
|
|
51
50
|
iccid: string;
|
|
52
51
|
cameraName: string;
|
|
53
52
|
description: string;
|
|
53
|
+
powerType: PowerType;
|
|
54
|
+
serialNumber: string;
|
|
55
|
+
status: RouterStatus;
|
|
56
|
+
powerSchedule: PowerSchedule;
|
|
57
|
+
routerType: string;
|
|
54
58
|
};
|
|
55
59
|
export type Sim = {
|
|
56
60
|
id: number;
|
|
@@ -69,13 +73,23 @@ export type Sim = {
|
|
|
69
73
|
exid: string;
|
|
70
74
|
id: number;
|
|
71
75
|
}[];
|
|
76
|
+
rmsUrl?: string;
|
|
77
|
+
serialNumber: number | null;
|
|
78
|
+
routerType: string;
|
|
79
|
+
rmsId?: string;
|
|
80
|
+
powerType: PowerType;
|
|
81
|
+
powerSchedule: PowerSchedule;
|
|
82
|
+
status: RouterStatus;
|
|
72
83
|
};
|
|
73
84
|
export type SendSmsPayload = {
|
|
74
85
|
number: string;
|
|
75
86
|
smsMessage: string;
|
|
76
87
|
};
|
|
88
|
+
export declare enum SendSmsStatus {
|
|
89
|
+
Success = "0"
|
|
90
|
+
}
|
|
77
91
|
export type SendSmsResponse = {
|
|
78
|
-
status:
|
|
92
|
+
status: SendSmsStatus | string;
|
|
79
93
|
errorText: string;
|
|
80
94
|
};
|
|
81
95
|
export type SmsHistory = {
|
|
@@ -85,9 +99,6 @@ export type SmsHistory = {
|
|
|
85
99
|
text: string;
|
|
86
100
|
deliveryDatetime: string;
|
|
87
101
|
};
|
|
88
|
-
export type SmsHistoryResponse = {
|
|
89
|
-
singleSimSms: SmsHistory[];
|
|
90
|
-
};
|
|
91
102
|
export type Sms = {
|
|
92
103
|
id: number;
|
|
93
104
|
from: string;
|
|
@@ -112,3 +123,4 @@ export type SmsQueryParams = PaginationParams & {
|
|
|
112
123
|
smsStatus: SmsStatuses;
|
|
113
124
|
deliveryDatetime: string;
|
|
114
125
|
};
|
|
126
|
+
export type SimSummary = Pick<Sim, "id" | "number">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
|
|
1
|
+
import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
|
|
3
3
|
export declare enum SiteAnalyticsMode {
|
|
4
4
|
Detections = "detections",
|
|
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
|
|
|
184
184
|
directDownload?: boolean;
|
|
185
185
|
};
|
|
186
186
|
export type SmartSearchHeatmapPoint = {
|
|
187
|
-
coordinates:
|
|
187
|
+
coordinates: TuplePoint2D;
|
|
188
188
|
detectionsCount: number;
|
|
189
189
|
};
|
|
190
190
|
export type SmartSearchHeatmapData = {
|
|
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
|
|
|
232
232
|
feature: CameraFeatureFlag;
|
|
233
233
|
processedIntervals: TimelineDateInterval[];
|
|
234
234
|
};
|
|
235
|
-
export type SmartSearchRequestPayload = {
|
|
235
|
+
export type SmartSearchRequestPayload = PaginationParams & {
|
|
236
236
|
cameraExids?: CameraExid[];
|
|
237
237
|
drawingIds?: _360FloorId[];
|
|
238
238
|
walkIds?: string[];
|
|
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
|
|
|
240
240
|
payload: SmartSearchBackendQuery;
|
|
241
241
|
fromDate?: string;
|
|
242
242
|
toDate?: string;
|
|
243
|
-
page?: number;
|
|
244
|
-
pageSize?: number;
|
|
245
243
|
threshold?: number;
|
|
246
244
|
};
|
|
247
245
|
type SmartSearchResultItemBase = {
|
|
@@ -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,79 @@
|
|
|
1
|
+
import { ForgeView } from "@evercam/api/types/360";
|
|
2
|
+
import { Point2D, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
import { DroneProvider } from "@evercam/api/types/drone";
|
|
4
|
+
export declare enum SiteViewSoftwareType {
|
|
5
|
+
Revit = "Revit",
|
|
6
|
+
Navisworks = "Navisworks",
|
|
7
|
+
Drone = "Drone",
|
|
8
|
+
Synchro = "Synchro"
|
|
9
|
+
}
|
|
10
|
+
export declare enum SiteViewerType {
|
|
11
|
+
ITwin = "iTwin",
|
|
12
|
+
Cesium = "Cesium",
|
|
13
|
+
Forge = "Forge"
|
|
14
|
+
}
|
|
15
|
+
export type SiteViewCameraListItem = {
|
|
16
|
+
projectId: string;
|
|
17
|
+
projectName: string;
|
|
18
|
+
software: SiteViewSoftwareType;
|
|
19
|
+
type: SiteViewerType;
|
|
20
|
+
uniqueId: string;
|
|
21
|
+
integrationType?: DroneProvider;
|
|
22
|
+
};
|
|
23
|
+
export type ForgeUrn = {
|
|
24
|
+
id?: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
urn: string;
|
|
27
|
+
isModelHostedByEvercamACC?: boolean;
|
|
28
|
+
savedViews?: Record<string, ForgeView>;
|
|
29
|
+
};
|
|
30
|
+
export type ForgeAccAlignmentData = {
|
|
31
|
+
bbox: {
|
|
32
|
+
min: Point2D;
|
|
33
|
+
max: Point2D;
|
|
34
|
+
};
|
|
35
|
+
transform: number[];
|
|
36
|
+
coordinateSystem?: {
|
|
37
|
+
context?: {
|
|
38
|
+
type?: string;
|
|
39
|
+
};
|
|
40
|
+
} | null;
|
|
41
|
+
};
|
|
42
|
+
export type TimelineItem = {
|
|
43
|
+
taskNumber: number;
|
|
44
|
+
taskID: string;
|
|
45
|
+
actualStartDate: string;
|
|
46
|
+
actualEndDate: string;
|
|
47
|
+
plannedStartDate: string;
|
|
48
|
+
plannedEndDate: string;
|
|
49
|
+
objectIDs: number[];
|
|
50
|
+
};
|
|
51
|
+
export type ForgeMarkerTransform = {
|
|
52
|
+
position?: Point3D;
|
|
53
|
+
hidden?: boolean;
|
|
54
|
+
};
|
|
55
|
+
export type ForgeMarker = {
|
|
56
|
+
name: string;
|
|
57
|
+
cameraExid: string;
|
|
58
|
+
type: string;
|
|
59
|
+
transforms: Record<string, ForgeMarkerTransform>;
|
|
60
|
+
};
|
|
61
|
+
export type ForgeProjectData = {
|
|
62
|
+
urns?: ForgeUrn[];
|
|
63
|
+
accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
|
|
64
|
+
timeline?: TimelineItem[];
|
|
65
|
+
cameraMarkers?: Record<string, ForgeMarker>;
|
|
66
|
+
};
|
|
67
|
+
export type ItwinModel = {
|
|
68
|
+
name: string;
|
|
69
|
+
iTwinId: string;
|
|
70
|
+
iModelId: string;
|
|
71
|
+
changeSetId?: string;
|
|
72
|
+
isIModel: boolean;
|
|
73
|
+
height?: number;
|
|
74
|
+
cesiumId?: number;
|
|
75
|
+
markerDistanceThreshold: number;
|
|
76
|
+
};
|
|
77
|
+
export type ItwinProjectData = {
|
|
78
|
+
models: ItwinModel[];
|
|
79
|
+
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { CameraExid, DateType, PaginationParams, Schedule } from "@evercam/api/types";
|
|
2
|
-
export type
|
|
2
|
+
export type SnapshotExtractionQueryParams = PaginationParams & {
|
|
3
3
|
camera: string;
|
|
4
4
|
cameraExid: CameraExid;
|
|
5
5
|
status: SnapshotExtractionStatus;
|
|
6
|
+
requestor: string;
|
|
7
|
+
type: SnapshotExtractionType;
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
6
10
|
};
|
|
7
11
|
export declare enum SnapshotExtractionStatus {
|
|
12
|
+
Cancelling = "canceling",
|
|
13
|
+
Cancelled = "cancelled",
|
|
8
14
|
Completed = "completed",
|
|
9
15
|
Failed = "failed",
|
|
16
|
+
Pending = "pending",
|
|
10
17
|
Processing = "processing"
|
|
11
18
|
}
|
|
12
19
|
export declare enum SnapshotExtractionType {
|
|
@@ -22,14 +29,48 @@ export type SnapshotExtraction = {
|
|
|
22
29
|
fromDate: DateType;
|
|
23
30
|
toDate: DateType;
|
|
24
31
|
type: SnapshotExtractionType;
|
|
25
|
-
notes: string;
|
|
32
|
+
notes: string | null;
|
|
26
33
|
status: SnapshotExtractionStatus;
|
|
27
34
|
interval: number;
|
|
28
|
-
requestor: string;
|
|
29
|
-
jpegsToDropbox: boolean;
|
|
30
|
-
|
|
35
|
+
requestor: string | null;
|
|
36
|
+
jpegsToDropbox: boolean | null;
|
|
37
|
+
injectToCr: boolean | null;
|
|
38
|
+
schedule: Schedule;
|
|
39
|
+
createdAt: DateType;
|
|
40
|
+
jpegCount: number;
|
|
41
|
+
expectedCount: number;
|
|
42
|
+
uploadCounts: Record<string, number>;
|
|
43
|
+
obanJobId: number | null;
|
|
44
|
+
};
|
|
45
|
+
export type CreatedSnapshotExtraction = {
|
|
46
|
+
id: number;
|
|
47
|
+
cameraExid: CameraExid;
|
|
48
|
+
cameraName: string;
|
|
49
|
+
cameraTimezone: string;
|
|
50
|
+
fromDate: DateType;
|
|
51
|
+
toDate: DateType;
|
|
52
|
+
type: SnapshotExtractionType;
|
|
53
|
+
status: SnapshotExtractionStatus;
|
|
54
|
+
interval: number;
|
|
55
|
+
requestor: string | null;
|
|
31
56
|
schedule: Schedule;
|
|
32
|
-
|
|
57
|
+
createdAt: DateType;
|
|
58
|
+
updatedAt: DateType;
|
|
59
|
+
jpegCount: number;
|
|
60
|
+
expectedCount: number;
|
|
61
|
+
uploadCounts: Record<string, number>;
|
|
62
|
+
};
|
|
63
|
+
export type SnapshotExtractionCreatePayload = {
|
|
64
|
+
camera: string;
|
|
65
|
+
fromDate: DateType;
|
|
66
|
+
toDate: DateType;
|
|
67
|
+
schedule: Schedule | string;
|
|
68
|
+
interval: number;
|
|
69
|
+
jpegsToDropbox: boolean;
|
|
70
|
+
injectToCr: boolean;
|
|
71
|
+
requestor: string;
|
|
72
|
+
type: SnapshotExtractionType;
|
|
73
|
+
ignoreCasingFromParams?: string[];
|
|
33
74
|
};
|
|
34
75
|
export type SnapshotTestPayload = {
|
|
35
76
|
cameraExid?: CameraExid;
|
|
@@ -37,23 +78,67 @@ export type SnapshotTestPayload = {
|
|
|
37
78
|
camPassword: string;
|
|
38
79
|
externalUrl: string;
|
|
39
80
|
jpgUrl: string;
|
|
81
|
+
model?: string | null;
|
|
40
82
|
};
|
|
41
83
|
export type SnapshotTestResponse = {
|
|
42
84
|
status: string;
|
|
43
85
|
data: string;
|
|
44
86
|
};
|
|
87
|
+
export type SnapshotEmailDeliveryRequestPayload = {
|
|
88
|
+
snapshot: string;
|
|
89
|
+
recipients?: string[];
|
|
90
|
+
message?: string;
|
|
91
|
+
};
|
|
92
|
+
export type SnapshotEmailDeliveryResponsePayload = {
|
|
93
|
+
warning?: string;
|
|
94
|
+
};
|
|
45
95
|
export type DeleteSnapshotQueryParams = {
|
|
46
96
|
fromDate: DateType;
|
|
47
97
|
toDate: DateType;
|
|
48
|
-
adminEmail: string;
|
|
49
|
-
adminFullname: string;
|
|
50
98
|
};
|
|
51
|
-
export type
|
|
99
|
+
export type SnapshotTransfer = {
|
|
100
|
+
id: number;
|
|
101
|
+
sourceCamera: SnapshotTransferCamera;
|
|
102
|
+
targetCamera: SnapshotTransferCamera;
|
|
103
|
+
fromDate: DateType;
|
|
104
|
+
toDate: DateType;
|
|
105
|
+
overwriteExisting?: boolean | null;
|
|
106
|
+
deleteSource?: boolean | null;
|
|
107
|
+
requestor: SnapshotTransferRequestor;
|
|
108
|
+
status: SnapshotTransferStatus;
|
|
109
|
+
insertedAt: DateType;
|
|
110
|
+
attempts?: number | null;
|
|
111
|
+
errorMessage?: string | null;
|
|
112
|
+
snapshotsTransferred?: number | null;
|
|
113
|
+
};
|
|
114
|
+
export type SnapshotTransferCamera = {
|
|
115
|
+
id: number;
|
|
116
|
+
exid: CameraExid;
|
|
117
|
+
name: string;
|
|
118
|
+
};
|
|
119
|
+
export type SnapshotTransferRequestor = {
|
|
120
|
+
id: number;
|
|
121
|
+
email: string;
|
|
122
|
+
firstname: string;
|
|
123
|
+
lastname: string;
|
|
124
|
+
};
|
|
125
|
+
export declare enum SnapshotTransferStatus {
|
|
126
|
+
Completed = "completed",
|
|
127
|
+
Failed = "failed",
|
|
128
|
+
Processing = "processing",
|
|
129
|
+
Pending = "pending",
|
|
130
|
+
Cancelled = "cancelled"
|
|
131
|
+
}
|
|
132
|
+
export type TransferCloudRecordingsQueryParams = PaginationParams & {
|
|
52
133
|
targetCameraExid: CameraExid;
|
|
53
134
|
fromDate: DateType;
|
|
54
135
|
toDate: DateType;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
136
|
+
overwriteExisting?: boolean;
|
|
137
|
+
deleteSource?: boolean;
|
|
138
|
+
};
|
|
139
|
+
export type SnapshotTransfersQueryParams = PaginationParams & {
|
|
140
|
+
sourceCamera?: string;
|
|
141
|
+
targetCamera?: string;
|
|
142
|
+
requestor?: string;
|
|
143
|
+
status?: string;
|
|
59
144
|
};
|
package/dist/api/types/sso.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export type SsoUserInfoMappings = {
|
|
2
|
+
id: string;
|
|
3
|
+
email: string;
|
|
4
|
+
firstname: string;
|
|
5
|
+
lastname: string;
|
|
6
|
+
};
|
|
1
7
|
export type SsoProvider = {
|
|
2
8
|
id: number;
|
|
3
9
|
name: string;
|
|
@@ -15,41 +21,9 @@ export type SsoProvider = {
|
|
|
15
21
|
tokenUri: string;
|
|
16
22
|
tokenIntrospectionUri: string;
|
|
17
23
|
userInfoUri: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
name: string;
|
|
22
|
-
exid: string;
|
|
23
|
-
clientId: string;
|
|
24
|
-
clientSecret: string;
|
|
25
|
-
scope: string;
|
|
26
|
-
responseType: string;
|
|
27
|
-
loginUrl: string;
|
|
28
|
-
iconUrl: string;
|
|
29
|
-
options: {
|
|
30
|
-
showOnLogin: boolean;
|
|
31
|
-
showOnSignup: boolean;
|
|
32
|
-
};
|
|
33
|
-
tokenUri: string;
|
|
34
|
-
tokenIntrospectionUri: string;
|
|
35
|
-
userInfoUri: string;
|
|
36
|
-
enabled: boolean;
|
|
37
|
-
};
|
|
38
|
-
export type SsoCreatePayload = {
|
|
39
|
-
name: string;
|
|
40
|
-
exid: string;
|
|
41
|
-
clientId: string;
|
|
42
|
-
clientSecret: string;
|
|
43
|
-
scope: string;
|
|
44
|
-
responseType: string;
|
|
45
|
-
loginUrl: string;
|
|
46
|
-
iconUrl: string;
|
|
47
|
-
options: {
|
|
48
|
-
showOnLogin: boolean;
|
|
49
|
-
showOnSignup: boolean;
|
|
50
|
-
};
|
|
51
|
-
tokenUri: string;
|
|
52
|
-
tokenIntrospectionUri: string;
|
|
53
|
-
userInfoUri: string;
|
|
54
|
-
enabled: boolean;
|
|
24
|
+
prompt: string;
|
|
25
|
+
userInfoMappings: SsoUserInfoMappings;
|
|
26
|
+
createdAt: string;
|
|
55
27
|
};
|
|
28
|
+
export type SsoUpdatePayload = Omit<SsoProvider, "id" | "createdAt">;
|
|
29
|
+
export type SsoCreatePayload = Omit<SsoProvider, "id" | "createdAt">;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import type { DateType } from "@evercam/api/types";
|
|
2
|
+
import type { CameraExid } from "@evercam/api/types/camera";
|
|
3
|
+
export type StorageProviderS3Config = {
|
|
4
|
+
bucket?: string;
|
|
5
|
+
accessKeyId?: string;
|
|
6
|
+
secretAccessKey?: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
vendor?: string;
|
|
9
|
+
};
|
|
10
|
+
export type StorageProviderSeaweedfsConfig = {
|
|
11
|
+
jwtSigningKey?: string;
|
|
12
|
+
jwtReadSigningKey?: string;
|
|
13
|
+
};
|
|
14
|
+
export type StorageProviderConfig = StorageProviderS3Config & StorageProviderSeaweedfsConfig;
|
|
2
15
|
export type StorageProvider = {
|
|
3
16
|
id?: number;
|
|
4
|
-
cameraId: number;
|
|
17
|
+
cameraId: number | CameraExid;
|
|
5
18
|
type: string;
|
|
6
19
|
provider: string;
|
|
7
20
|
url: string;
|
|
8
21
|
startDate: DateType;
|
|
9
22
|
endDate: DateType;
|
|
10
|
-
config:
|
|
23
|
+
config: StorageProviderConfig;
|
|
11
24
|
insertedAt?: DateType;
|
|
12
|
-
|
|
13
|
-
export type StorageProvidersResponsePayload = {
|
|
14
|
-
providers: StorageProvider[];
|
|
25
|
+
updatedAt?: DateType;
|
|
15
26
|
};
|
|
16
27
|
export declare enum ProjectStorageProvider {
|
|
17
28
|
Seaweedfs = "seaweedfs",
|
|
@@ -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;
|