@evercam/api 1.0.0-a59703ab2 → 1.0.0-a5ed7fc12
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 +209 -15
- package/dist/api/api/adminApi.d.ts +104 -57
- package/dist/api/api/aiApi.d.ts +182 -55
- package/dist/api/api/authzApi.d.ts +26 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +152 -90
- package/dist/api/api/evercamLabsApi.d.ts +6 -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 +128 -58
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +176 -85
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +134 -74
- package/dist/api/types/anpr.d.ts +48 -2
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +163 -20
- package/dist/api/types/authz.d.ts +116 -12
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +65 -3
- package/dist/api/types/axios.d.ts +20 -15
- package/dist/api/types/bim.d.ts +39 -10
- package/dist/api/types/camera.d.ts +127 -120
- package/dist/api/types/comments.d.ts +16 -11
- package/dist/api/types/company.d.ts +43 -3
- package/dist/api/types/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +23 -18
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/errors.d.ts +18 -2
- package/dist/api/types/gateReport.d.ts +46 -68
- 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 +26 -1
- package/dist/api/types/index.d.ts +16 -3
- package/dist/api/types/ingest.d.ts +267 -17
- package/dist/api/types/kit.d.ts +55 -105
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +9 -3
- package/dist/api/types/notification.d.ts +83 -3
- package/dist/api/types/nvr.d.ts +8 -8
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +80 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +35 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +111 -25
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +53 -0
- 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 +1 -1
- package/dist/api/types/shared.d.ts +42 -25
- package/dist/api/types/shares.d.ts +1 -14
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +81 -43
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +78 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +49 -4
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +7 -11
- package/dist/api/types/user.d.ts +106 -37
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2453 -962
- 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 +375 -34
- 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 +9 -2
- 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/types/timeline.d.ts +2 -1
- 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 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -40,7 +40,7 @@ export type BimCompareExportRequestPayload = {
|
|
|
40
40
|
cameraExid: string;
|
|
41
41
|
snapshotDate: string;
|
|
42
42
|
bimDate: string;
|
|
43
|
-
embed
|
|
43
|
+
embed?: string;
|
|
44
44
|
compareExid: string;
|
|
45
45
|
createAnimation: boolean;
|
|
46
46
|
bimTransparency?: number;
|
|
@@ -48,14 +48,15 @@ export type BimCompareExportRequestPayload = {
|
|
|
48
48
|
layerId?: number;
|
|
49
49
|
maskId?: number;
|
|
50
50
|
evercamWatermark?: boolean;
|
|
51
|
+
logo?: CompareLogoPosition;
|
|
51
52
|
};
|
|
52
53
|
export type BimLayerResponsePayload = {
|
|
53
54
|
id: number;
|
|
54
55
|
name: string;
|
|
55
|
-
insertedAt:
|
|
56
|
-
updatedAt:
|
|
56
|
+
insertedAt: string;
|
|
57
|
+
updatedAt: string;
|
|
57
58
|
shapes: string;
|
|
58
|
-
startAt:
|
|
59
|
+
startAt: string;
|
|
59
60
|
};
|
|
60
61
|
export declare enum BimUploadStatus {
|
|
61
62
|
Initial = 0,
|
|
@@ -78,13 +79,18 @@ export type BimCreationPayload = {
|
|
|
78
79
|
};
|
|
79
80
|
export declare enum BIMLayerTypes {
|
|
80
81
|
Mask = "mask",
|
|
82
|
+
BimMask = "bim_mask",
|
|
81
83
|
MeasuringGrid = "measuring_grid",
|
|
82
84
|
BimArchitectural = "bim_architectural",
|
|
83
85
|
BimStructural = "bim_structural",
|
|
84
86
|
Bim4D = "bim_4d",
|
|
85
87
|
BimMep = "bim_mep",
|
|
86
88
|
RecordingsTag = "recordings_tag",
|
|
87
|
-
Milestone = "milestone"
|
|
89
|
+
Milestone = "milestone",
|
|
90
|
+
ForgeBimArchitectural = "forge_bim_architectural",
|
|
91
|
+
ForgeBimStructural = "forge_bim_structural",
|
|
92
|
+
ForgeBim4D = "forge_bim_4d",
|
|
93
|
+
ForgeBimMep = "forge_bim_mep"
|
|
88
94
|
}
|
|
89
95
|
export type BimLayersQueryParams = {
|
|
90
96
|
layerType: BIMLayerTypes;
|
|
@@ -95,7 +101,7 @@ export type BIMLayerPostPayload = {
|
|
|
95
101
|
layerType: BIMLayerTypes;
|
|
96
102
|
startAt: DateType;
|
|
97
103
|
shapes: string;
|
|
98
|
-
zIndex
|
|
104
|
+
zIndex?: number;
|
|
99
105
|
};
|
|
100
106
|
export type BIMLayer = {
|
|
101
107
|
id: number;
|
|
@@ -131,9 +137,7 @@ export type ProcessPendingImagesBimParams = {
|
|
|
131
137
|
apiId: string;
|
|
132
138
|
apiKey: string;
|
|
133
139
|
};
|
|
134
|
-
export type BimUploadsQueryParams = {
|
|
135
|
-
page: number;
|
|
136
|
-
limit: number;
|
|
140
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
137
141
|
projectId: string;
|
|
138
142
|
id: string;
|
|
139
143
|
uploadedBy: string;
|
|
@@ -145,3 +149,28 @@ export type BimUploadPayload = {
|
|
|
145
149
|
fileExtension: string;
|
|
146
150
|
}[];
|
|
147
151
|
};
|
|
152
|
+
export declare enum ForgeBimUploadMethod {
|
|
153
|
+
FileUpload = "file_upload",
|
|
154
|
+
AutodeskAcc = "autodesk_acc"
|
|
155
|
+
}
|
|
156
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
157
|
+
InvalidType = "invalid_type",
|
|
158
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
159
|
+
}
|
|
160
|
+
export declare enum ForgeBimUploadStage {
|
|
161
|
+
TusUpload = "tus_upload",
|
|
162
|
+
IngestUpload = "ingest_upload"
|
|
163
|
+
}
|
|
164
|
+
export declare enum ForgeBimDialogTrigger {
|
|
165
|
+
UpdateModel = "update_model",
|
|
166
|
+
AddModel = "add_model",
|
|
167
|
+
InitialSetup = "initial_setup"
|
|
168
|
+
}
|
|
169
|
+
export type BimUpdatedWebhookPayload = {
|
|
170
|
+
eventName: "bim.updated";
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: {
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
bimIdentifier: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { AuditLogActionType,
|
|
2
|
-
import { DateRangeFilter } from "
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
|
+
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
3
4
|
export type CameraExid = string;
|
|
4
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
5
|
-
export type Cartesian3 = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
z: number;
|
|
9
|
-
};
|
|
10
6
|
export type Camera = {
|
|
11
7
|
cameraPowerSchedule?: Schedule;
|
|
12
8
|
camPassword?: string;
|
|
@@ -17,7 +13,8 @@ export type Camera = {
|
|
|
17
13
|
status: string;
|
|
18
14
|
storageDuration: string;
|
|
19
15
|
};
|
|
20
|
-
|
|
16
|
+
liveViewFrequency: number | null;
|
|
17
|
+
createdAt: string;
|
|
21
18
|
description: string | null;
|
|
22
19
|
discoverable: boolean;
|
|
23
20
|
external: {
|
|
@@ -37,18 +34,15 @@ export type Camera = {
|
|
|
37
34
|
featureFlags: Array<CameraFeatureFlag>;
|
|
38
35
|
fovAngle: number;
|
|
39
36
|
fovRadius: number;
|
|
40
|
-
heading:
|
|
37
|
+
heading: number;
|
|
41
38
|
id: CameraExid;
|
|
42
39
|
exid: CameraExid;
|
|
43
40
|
isOnline: boolean;
|
|
44
41
|
isPowerScheduleActive: boolean;
|
|
45
42
|
isPublic: boolean;
|
|
46
|
-
lastOnlineAt:
|
|
47
|
-
lastPolledAt:
|
|
48
|
-
location:
|
|
49
|
-
lat: number;
|
|
50
|
-
lng: number;
|
|
51
|
-
};
|
|
43
|
+
lastOnlineAt: string;
|
|
44
|
+
lastPolledAt: string;
|
|
45
|
+
location: GeoPoint;
|
|
52
46
|
modelId: string;
|
|
53
47
|
modelName: string;
|
|
54
48
|
name: string;
|
|
@@ -73,6 +67,8 @@ export type Camera = {
|
|
|
73
67
|
rtmp: string;
|
|
74
68
|
};
|
|
75
69
|
ptz: boolean;
|
|
70
|
+
recordingFromNvr: boolean;
|
|
71
|
+
model?: CameraModel;
|
|
76
72
|
roll: string | null;
|
|
77
73
|
routerId: number;
|
|
78
74
|
status: CameraStatus;
|
|
@@ -80,88 +76,90 @@ export type Camera = {
|
|
|
80
76
|
thumbnailUrl: string;
|
|
81
77
|
largeThumbnailUrl?: string;
|
|
82
78
|
timezone: string;
|
|
83
|
-
updatedAt:
|
|
79
|
+
updatedAt: string;
|
|
84
80
|
vendorName: string;
|
|
85
81
|
isAccessRestricted?: boolean;
|
|
86
|
-
kitAlarms?:
|
|
82
|
+
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
87
85
|
};
|
|
88
86
|
export type AdminCamera = {
|
|
89
|
-
cameraHost: string;
|
|
90
|
-
cameraHttpPort: number;
|
|
91
|
-
cameraModel: string;
|
|
92
|
-
cameraPassword: string;
|
|
93
|
-
cameraPictureEndpoint: string;
|
|
94
|
-
cameraRtspPort: number;
|
|
95
|
-
cameraScheme: string;
|
|
96
|
-
cameraUsername: string;
|
|
97
|
-
cameraFirmwareVersion: string;
|
|
98
|
-
cameraTimezone: string;
|
|
99
|
-
cloudRecordingFrequency: number;
|
|
100
|
-
cloudRecordingId: number;
|
|
101
|
-
cloudRecordingSchedule: Schedule;
|
|
102
|
-
cloudRecordingStatus: string;
|
|
103
|
-
cloudRecordingStorageDuration: number;
|
|
104
|
-
createdAt: DateTime_Z_micros;
|
|
105
|
-
description: null;
|
|
106
|
-
discoverable: false;
|
|
107
|
-
exid: CameraExid;
|
|
108
|
-
featureFlags: CameraFeatureFlag[];
|
|
109
|
-
fovAngle: 45.0;
|
|
110
|
-
fovRadius: number;
|
|
111
|
-
heading: null;
|
|
112
87
|
id: number;
|
|
113
|
-
|
|
114
|
-
isPublic: false;
|
|
115
|
-
kitId?: number;
|
|
116
|
-
lastOnlineAt: DateTime_Z_micros;
|
|
117
|
-
lastPolledAt: DateTime_Z_micros;
|
|
118
|
-
location: {
|
|
119
|
-
lat: number;
|
|
120
|
-
lng: number;
|
|
121
|
-
};
|
|
122
|
-
macAddress: string;
|
|
88
|
+
exid: CameraExid;
|
|
123
89
|
name: string;
|
|
124
|
-
nvrChannel: null;
|
|
125
|
-
nvrDeviceId: string;
|
|
126
|
-
nvrHost: string;
|
|
127
|
-
nvrHttpPort: number;
|
|
128
|
-
nvrModel: NvrModel;
|
|
129
|
-
nvrPassword: string;
|
|
130
|
-
nvrPictureEndpoint: string;
|
|
131
|
-
nvrRtspPort: number;
|
|
132
|
-
nvrScheme: string;
|
|
133
|
-
nvrUsername: string;
|
|
134
|
-
offlineReason: null;
|
|
135
|
-
pitch: null;
|
|
136
|
-
powerSchedule: Schedule;
|
|
137
|
-
projectExid: string;
|
|
138
|
-
projectFeatureFlags: ProjectFeatureFlag[];
|
|
139
|
-
projectId: number;
|
|
140
|
-
projectName: string;
|
|
141
|
-
ptz: false;
|
|
142
|
-
recordingFromNvr: false;
|
|
143
|
-
roll: null;
|
|
144
|
-
routerId: number;
|
|
145
90
|
status: string;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
91
|
+
description: string | null;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
lastOnlineAt: string | null;
|
|
95
|
+
lastPolledAt: string | null;
|
|
96
|
+
decommissionedAt: string | null;
|
|
97
|
+
deletedAt?: string | null;
|
|
98
|
+
projectId: number | null;
|
|
99
|
+
projectExid: string | null;
|
|
100
|
+
projectName: string | null;
|
|
101
|
+
projectFeatureFlags: Array<ProjectFeatureFlag | string>;
|
|
102
|
+
userId: number | null;
|
|
152
103
|
userEmail: string;
|
|
153
104
|
userFullname: string;
|
|
154
|
-
|
|
155
|
-
|
|
105
|
+
userApiId?: string;
|
|
106
|
+
userApiKey?: string;
|
|
107
|
+
isPublic: boolean;
|
|
108
|
+
sharedWithConstruction?: boolean;
|
|
109
|
+
timezone: string | null;
|
|
110
|
+
location?: GeoPoint | null;
|
|
111
|
+
fovAngle?: number | null;
|
|
112
|
+
fovRadius?: number | null;
|
|
113
|
+
heading?: number | null;
|
|
114
|
+
pitch?: number | null;
|
|
115
|
+
roll?: number | null;
|
|
116
|
+
cameraModel?: string | null;
|
|
117
|
+
cameraHost?: string | null;
|
|
118
|
+
cameraHttpPort?: number | null;
|
|
119
|
+
cameraRtspPort?: number | null;
|
|
120
|
+
cameraScheme?: string | null;
|
|
121
|
+
cameraUsername?: string | null;
|
|
122
|
+
cameraPassword?: string | null;
|
|
123
|
+
cameraPictureEndpoint?: string | null;
|
|
124
|
+
rtspUrl?: string | null;
|
|
125
|
+
httpUrl?: string | null;
|
|
126
|
+
deviceId?: string | null;
|
|
127
|
+
nvrId?: number | null;
|
|
128
|
+
nvrDeviceId?: string | null;
|
|
129
|
+
nvrModel?: NvrModel | string | null;
|
|
130
|
+
nvrHost?: string | null;
|
|
131
|
+
nvrHttpPort?: number | null;
|
|
132
|
+
nvrRtspPort?: number | null;
|
|
133
|
+
nvrScheme?: string | null;
|
|
134
|
+
nvrUsername?: string | null;
|
|
135
|
+
nvrPassword?: string | null;
|
|
136
|
+
nvrPictureEndpoint?: string | null;
|
|
137
|
+
streamEndpoint?: string | null;
|
|
138
|
+
routerId?: number | null;
|
|
139
|
+
kitId?: number | null;
|
|
140
|
+
powerType?: string | null;
|
|
141
|
+
powerSchedule?: ScheduleLowercase | Record<string, string[]>;
|
|
142
|
+
isPowerScheduleActive?: boolean;
|
|
143
|
+
discoverable?: boolean;
|
|
144
|
+
recordingFromNvr?: boolean;
|
|
145
|
+
cloudRecordingFrequency?: number | null;
|
|
146
|
+
cloudRecordingId?: number | null;
|
|
147
|
+
cloudRecordingStatus?: string | null;
|
|
148
|
+
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
149
|
+
cloudRecordingStorageDuration?: number | null;
|
|
150
|
+
liveViewFrequency?: number | null;
|
|
151
|
+
anprSources?: string[];
|
|
152
|
+
storageProviders?: string[];
|
|
153
|
+
featureFlags?: CameraFeatureFlag[];
|
|
154
|
+
zohoId?: string | null;
|
|
155
|
+
offlineReason?: string | null;
|
|
156
|
+
macAddress?: string | null;
|
|
157
|
+
type?: string[];
|
|
156
158
|
thumbnailUrl?: string;
|
|
157
|
-
sharedWithConstruction: boolean;
|
|
158
159
|
};
|
|
159
160
|
export type CameraMapMarker = {
|
|
160
161
|
isOnline: boolean;
|
|
161
|
-
location:
|
|
162
|
-
lat: number;
|
|
163
|
-
lng: number;
|
|
164
|
-
};
|
|
162
|
+
location: GeoPoint;
|
|
165
163
|
needFov: boolean;
|
|
166
164
|
rotation: number;
|
|
167
165
|
fovAngle: number;
|
|
@@ -199,15 +197,16 @@ export declare enum CameraFeatureFlag {
|
|
|
199
197
|
ObjectDetection = "object_detection",
|
|
200
198
|
Segmentation = "segmentation",
|
|
201
199
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
202
|
-
PpeMonitoring = "ppe_monitoring"
|
|
200
|
+
PpeMonitoring = "ppe_monitoring",
|
|
201
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
202
|
+
PpeGemini = "ppe_gemini",
|
|
203
|
+
PpeYolo = "ppe_yolo",
|
|
204
|
+
PpeV2 = "ppe_v2",
|
|
205
|
+
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
207
|
+
Ring = "ring",
|
|
208
|
+
CloudOnly = "cloud_only"
|
|
203
209
|
}
|
|
204
|
-
export type CameraLogsRequestPayload = {
|
|
205
|
-
limit: number;
|
|
206
|
-
page: number;
|
|
207
|
-
types: string;
|
|
208
|
-
from: string;
|
|
209
|
-
to: string;
|
|
210
|
-
};
|
|
211
210
|
export type CameraUpdateRequestPayload = {
|
|
212
211
|
status?: string;
|
|
213
212
|
timezone?: string;
|
|
@@ -243,17 +242,22 @@ export type CameraUpdateRequestPayload = {
|
|
|
243
242
|
fovRadius?: number;
|
|
244
243
|
featureFlags: CameraFeatureFlag[];
|
|
245
244
|
isAccessRestricted?: boolean;
|
|
245
|
+
liveViewFrequency?: number | null;
|
|
246
246
|
};
|
|
247
247
|
export type CamerasResponsePayload = {
|
|
248
248
|
cameras?: Camera[];
|
|
249
249
|
};
|
|
250
|
-
export type
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
256
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
257
261
|
};
|
|
258
262
|
export type CameraStatusLog = {
|
|
259
263
|
start: string;
|
|
@@ -293,7 +297,9 @@ export declare enum NvrModel {
|
|
|
293
297
|
Avigilion = "avigilion",
|
|
294
298
|
Hanwha = "hanwha",
|
|
295
299
|
Nxwitness = "nxwitness",
|
|
296
|
-
ExNvr = "ex_nvr"
|
|
300
|
+
ExNvr = "ex_nvr",
|
|
301
|
+
None = "none",
|
|
302
|
+
Other = "other"
|
|
297
303
|
}
|
|
298
304
|
export declare enum CameraModel {
|
|
299
305
|
YCam = "y-cam",
|
|
@@ -304,14 +310,9 @@ export declare enum CameraModel {
|
|
|
304
310
|
Hikvision = "hikvision",
|
|
305
311
|
Avigilion = "avigilion",
|
|
306
312
|
Hanwha = "hanwha",
|
|
307
|
-
Other = "other"
|
|
313
|
+
Other = "other",
|
|
314
|
+
Ring = "ring"
|
|
308
315
|
}
|
|
309
|
-
export type DroneCameraTransform = {
|
|
310
|
-
position: Cartesian3;
|
|
311
|
-
direction: Cartesian3;
|
|
312
|
-
up: Cartesian3;
|
|
313
|
-
right: Cartesian3;
|
|
314
|
-
};
|
|
315
316
|
export type Footage = {
|
|
316
317
|
cameraExid: string;
|
|
317
318
|
cameraName: string;
|
|
@@ -352,7 +353,7 @@ export type CameraCreateRequestPayload = {
|
|
|
352
353
|
isPowerScheduleActive?: boolean;
|
|
353
354
|
ptz?: boolean;
|
|
354
355
|
name: string;
|
|
355
|
-
coordinates?:
|
|
356
|
+
coordinates?: TuplePoint2D;
|
|
356
357
|
recordingFromNvr?: boolean;
|
|
357
358
|
CameraConfig: {
|
|
358
359
|
model: CameraModel;
|
|
@@ -370,10 +371,10 @@ export type CameraCreateRequestPayload = {
|
|
|
370
371
|
serial?: string;
|
|
371
372
|
deviceType?: NvrDeviceType;
|
|
372
373
|
macAddress?: string;
|
|
373
|
-
username: string;
|
|
374
|
-
password: string;
|
|
375
|
-
httpUrl: string;
|
|
376
|
-
rtspUrl?: string;
|
|
374
|
+
username: string | null;
|
|
375
|
+
password: string | null;
|
|
376
|
+
httpUrl: string | null;
|
|
377
|
+
rtspUrl?: string | null;
|
|
377
378
|
};
|
|
378
379
|
cloudRecording?: {
|
|
379
380
|
id?: number;
|
|
@@ -389,22 +390,26 @@ export type CameraDeletePayload = {
|
|
|
389
390
|
verify: string;
|
|
390
391
|
password: string;
|
|
391
392
|
};
|
|
392
|
-
export type SaveNotePayload = {
|
|
393
|
-
noteType: string;
|
|
394
|
-
content: string;
|
|
395
|
-
};
|
|
396
393
|
export type CameraNote = {
|
|
397
394
|
id: number;
|
|
398
395
|
cameraId: number;
|
|
396
|
+
who: string;
|
|
399
397
|
noteType: string;
|
|
400
398
|
content: string;
|
|
399
|
+
pinned: boolean;
|
|
401
400
|
insertedAt: DateType;
|
|
402
401
|
};
|
|
402
|
+
export type GetCameraNotesParams = {
|
|
403
|
+
noteType?: string;
|
|
404
|
+
pinned?: boolean;
|
|
405
|
+
sort?: string;
|
|
406
|
+
page?: number;
|
|
407
|
+
limit?: number;
|
|
408
|
+
};
|
|
403
409
|
export type CreateCameraNotePayload = {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
action: string;
|
|
410
|
+
noteType: string;
|
|
411
|
+
content: string;
|
|
412
|
+
pinned?: boolean;
|
|
408
413
|
};
|
|
409
414
|
export declare enum HddStatus {
|
|
410
415
|
Error = "error",
|
|
@@ -488,7 +493,7 @@ export declare enum DuplicatedCameraFields {
|
|
|
488
493
|
export type DuplicatedCameraObject = {
|
|
489
494
|
exid: string;
|
|
490
495
|
name: string;
|
|
491
|
-
cameraStatus:
|
|
496
|
+
cameraStatus: CameraStatus;
|
|
492
497
|
crStatus: string;
|
|
493
498
|
};
|
|
494
499
|
export type DuplicatedCameraResponse = {
|
|
@@ -504,6 +509,8 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
504
509
|
shareeCameras: Record<string, unknown>;
|
|
505
510
|
};
|
|
506
511
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
512
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
513
|
+
projectExid: ProjectExid;
|
|
507
514
|
status: CameraStatus;
|
|
508
515
|
isPublic: boolean;
|
|
509
516
|
featureFlags: CameraFeatureFlag[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams } from "
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
5
|
-
Drone = "drone"
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Timeline = "timeline"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CommentsLabel {
|
|
8
9
|
Info = "Info",
|
|
@@ -10,12 +11,8 @@ export declare enum CommentsLabel {
|
|
|
10
11
|
Restricted = "Restricted"
|
|
11
12
|
}
|
|
12
13
|
export type CommentsRequestPayload = {
|
|
13
|
-
cameraExid: CameraExid;
|
|
14
|
-
fromDate: string;
|
|
15
|
-
toDate: string;
|
|
16
14
|
scope: CommentsScope;
|
|
17
|
-
|
|
18
|
-
limit?: number;
|
|
15
|
+
cameraExid?: CameraExid;
|
|
19
16
|
};
|
|
20
17
|
export type CommentsListRequestPayload = PaginationParams & {
|
|
21
18
|
projectExid?: ProjectExid;
|
|
@@ -39,21 +36,29 @@ export type Comment = {
|
|
|
39
36
|
createdAt?: string;
|
|
40
37
|
creatorEmail?: string;
|
|
41
38
|
creatorName?: string;
|
|
42
|
-
position2d?:
|
|
43
|
-
position3d?:
|
|
39
|
+
position2d?: TuplePoint2D;
|
|
40
|
+
position3d?: TuplePoint3D;
|
|
44
41
|
context?: Record<string, unknown>;
|
|
45
42
|
canDelete?: boolean;
|
|
46
43
|
archivedAt?: string;
|
|
44
|
+
label?: CommentsLabel;
|
|
47
45
|
};
|
|
48
46
|
export type CommentCreationRequestPayload = {
|
|
49
47
|
fromDate?: DateType;
|
|
50
48
|
toDate?: DateType;
|
|
51
49
|
timestamp?: DateType;
|
|
52
50
|
scope?: CommentsScope;
|
|
53
|
-
projectExid
|
|
51
|
+
projectExid?: ProjectExid;
|
|
54
52
|
cameraExid?: CameraExid;
|
|
55
53
|
content: string;
|
|
56
|
-
|
|
54
|
+
label?: CommentsLabel;
|
|
55
|
+
position2d?: TuplePoint2D;
|
|
57
56
|
position3d?: [number, number, number];
|
|
58
57
|
context?: Record<string, unknown>;
|
|
59
58
|
};
|
|
59
|
+
export type CommentThreeSixtyContext = {
|
|
60
|
+
floorId: string;
|
|
61
|
+
dateId: string;
|
|
62
|
+
currentRoom: string;
|
|
63
|
+
cameraRotation: _360CameraRotation;
|
|
64
|
+
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import type { DateType, PaginationParams } from "
|
|
1
|
+
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type CompanyUser = {
|
|
3
3
|
id: number;
|
|
4
4
|
fullname: string;
|
|
5
5
|
email: string;
|
|
6
6
|
eventsCount: number;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
lastLoginAt: string;
|
|
8
|
+
};
|
|
9
|
+
export type AdminCompanyUser = {
|
|
10
|
+
id: number;
|
|
11
|
+
email: string;
|
|
12
|
+
fullname: string;
|
|
13
|
+
lastLoginAt: string;
|
|
9
14
|
};
|
|
10
15
|
export type CompanyProject = {
|
|
11
16
|
exid: string;
|
|
@@ -13,6 +18,16 @@ export type CompanyProject = {
|
|
|
13
18
|
status: string;
|
|
14
19
|
startedAt: DateType;
|
|
15
20
|
};
|
|
21
|
+
export type AdminCompanyProject = {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
status: string;
|
|
25
|
+
insertedAt: DateType;
|
|
26
|
+
exid: string;
|
|
27
|
+
endDate: string | null;
|
|
28
|
+
startDate: string | null;
|
|
29
|
+
archiveTier: string | null;
|
|
30
|
+
};
|
|
16
31
|
export type CompanyKit = {
|
|
17
32
|
id: number;
|
|
18
33
|
name: string;
|
|
@@ -55,6 +70,31 @@ export type Company = {
|
|
|
55
70
|
activeUsers: number;
|
|
56
71
|
insertedAt: DateType;
|
|
57
72
|
};
|
|
73
|
+
export type CompanySummary = {
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
users: number;
|
|
77
|
+
insertedAt: DateType;
|
|
78
|
+
exid: string;
|
|
79
|
+
sessions: number;
|
|
80
|
+
projects: number;
|
|
81
|
+
zohoId: string;
|
|
82
|
+
domains: string;
|
|
83
|
+
linkedinUrl: string | null;
|
|
84
|
+
ssoProviders: string[];
|
|
85
|
+
cameras: number;
|
|
86
|
+
kits: number;
|
|
87
|
+
};
|
|
88
|
+
export type CompanyCameraSummary = {
|
|
89
|
+
id: number;
|
|
90
|
+
name: string;
|
|
91
|
+
status: string;
|
|
92
|
+
exid: string;
|
|
93
|
+
projectExid: string | null;
|
|
94
|
+
ownerEmail: string;
|
|
95
|
+
ownerFullname: string;
|
|
96
|
+
usersCount: number;
|
|
97
|
+
};
|
|
58
98
|
export type CompanyQueryParams = PaginationParams & {
|
|
59
99
|
name: string;
|
|
60
100
|
exid: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateType, PaginationParams } from "
|
|
1
|
+
import { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type Compare = {
|
|
3
3
|
cameraExid: string;
|
|
4
4
|
createdAt: string;
|
|
@@ -28,14 +28,29 @@ export declare enum CompareStatus {
|
|
|
28
28
|
Failed = 2
|
|
29
29
|
}
|
|
30
30
|
export type CompareRequestPayload = {
|
|
31
|
+
compareExid: string;
|
|
31
32
|
name: string;
|
|
32
|
-
afterDate: string;
|
|
33
33
|
beforeDate: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
afterDate: string;
|
|
35
|
+
cameraExid: string;
|
|
36
|
+
embed?: string;
|
|
37
|
+
bim?: boolean;
|
|
38
|
+
custom?: boolean;
|
|
39
|
+
options?: {
|
|
40
|
+
type: string;
|
|
41
|
+
beforeSnap: string;
|
|
42
|
+
afterSnap: string;
|
|
43
|
+
};
|
|
37
44
|
createAnimation: boolean;
|
|
38
|
-
evercamWatermark
|
|
45
|
+
evercamWatermark: boolean;
|
|
46
|
+
logo?: CompareLogoPosition;
|
|
47
|
+
};
|
|
48
|
+
export type CompareLogoPosition = {
|
|
49
|
+
id?: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
39
54
|
};
|
|
40
55
|
export type AdminCompare = {
|
|
41
56
|
id: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ConnectorDetail = {
|
|
2
2
|
login: string;
|
|
3
3
|
hostname: string;
|
|
4
|
+
provider: string;
|
|
4
5
|
};
|
|
5
6
|
export declare enum Connector {
|
|
6
7
|
Aconex = "aconex",
|
|
@@ -8,14 +9,13 @@ export declare enum Connector {
|
|
|
8
9
|
Autodesk = "autodesk",
|
|
9
10
|
AutodeskViewer = "autodesk_viewer",
|
|
10
11
|
VoyageControl = "voyage_control",
|
|
12
|
+
Ring = "ring",
|
|
13
|
+
Email = "email",
|
|
14
|
+
Hammertech = "hammertech",
|
|
11
15
|
XWeather = "xweather"
|
|
12
16
|
}
|
|
13
17
|
export declare enum ProcoreType {
|
|
14
18
|
Observations = "observations",
|
|
15
19
|
Photos = "photos"
|
|
16
20
|
}
|
|
17
|
-
export type ConnectorResponsePayload = Array<
|
|
18
|
-
hostname: string;
|
|
19
|
-
login: string;
|
|
20
|
-
provider: string;
|
|
21
|
-
}>;
|
|
21
|
+
export type ConnectorResponsePayload = Array<ConnectorDetail>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DateType } from "
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
2
|
export type CreateCoolifyAppRequestPayload = {
|
|
3
|
-
cameraExid: string;
|
|
4
3
|
startDate: DateType;
|
|
5
4
|
modelVersion: string;
|
|
6
5
|
snapshotRequestTimeout: string | number;
|
|
@@ -18,3 +17,20 @@ export type SaveCoolifyAppRequestPayload = {
|
|
|
18
17
|
serverUuid: string;
|
|
19
18
|
useThirdParty: boolean;
|
|
20
19
|
};
|
|
20
|
+
export type CoolifyApp = {
|
|
21
|
+
id: number;
|
|
22
|
+
projectExid: ProjectExid;
|
|
23
|
+
anprCameraExid: CameraExid;
|
|
24
|
+
contextCameraExid: CameraExid;
|
|
25
|
+
modelVersion: string;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
insertedAt: DateType;
|
|
28
|
+
updatedAt: DateType;
|
|
29
|
+
};
|
|
30
|
+
export type RegisterCoolifyAppResponsePayload = {
|
|
31
|
+
created: boolean;
|
|
32
|
+
id: number;
|
|
33
|
+
data: CoolifyApp;
|
|
34
|
+
count: number;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|