@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- 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 +56 -34
- 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 +57 -33
- 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 +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- 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 +6 -10
- package/dist/api/types/drone.d.ts +94 -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 +194 -27
- 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 +56 -10
- 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 +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -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 +63 -10
- 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 +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- 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 +4 -0
- package/dist/shared/types/observations.d.ts +25 -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
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;
|
|
31
38
|
schedule: Schedule;
|
|
32
|
-
|
|
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;
|
|
56
|
+
schedule: Schedule;
|
|
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,16 +78,23 @@ 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
99
|
export type SnapshotTransfer = {
|
|
52
100
|
id: number;
|
|
@@ -69,6 +117,7 @@ export type SnapshotTransferCamera = {
|
|
|
69
117
|
name: string;
|
|
70
118
|
};
|
|
71
119
|
export type SnapshotTransferRequestor = {
|
|
120
|
+
id: number;
|
|
72
121
|
email: string;
|
|
73
122
|
firstname: string;
|
|
74
123
|
lastname: string;
|
|
@@ -86,6 +135,10 @@ export type TransferCloudRecordingsQueryParams = PaginationParams & {
|
|
|
86
135
|
toDate: DateType;
|
|
87
136
|
overwriteExisting?: boolean;
|
|
88
137
|
deleteSource?: boolean;
|
|
89
|
-
|
|
90
|
-
|
|
138
|
+
};
|
|
139
|
+
export type SnapshotTransfersQueryParams = PaginationParams & {
|
|
140
|
+
sourceCamera?: string;
|
|
141
|
+
targetCamera?: string;
|
|
142
|
+
requestor?: string;
|
|
143
|
+
status?: string;
|
|
91
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;
|
|
@@ -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;
|