@evercam/api 1.0.0-095233f21 → 1.0.0-0a3924df5
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/dist/api/api/3dFirebaseApi.d.ts +18 -3
- package/dist/api/api/adminApi.d.ts +78 -80
- package/dist/api/api/aiApi.d.ts +4 -4
- package/dist/api/api/evercamApi.d.ts +17 -26
- package/dist/api/api/evercamLabsApi.d.ts +5 -13
- 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 +38 -30
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +15 -8
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/analytics.d.ts +49 -15
- package/dist/api/types/anpr.d.ts +5 -4
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +161 -20
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/bim.d.ts +27 -7
- package/dist/api/types/camera.d.ts +202 -82
- package/dist/api/types/comments.d.ts +56 -24
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/detections.d.ts +3 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +2 -1
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +3 -1
- package/dist/api/types/ingest.d.ts +105 -25
- package/dist/api/types/kit.d.ts +56 -68
- package/dist/api/types/media.d.ts +25 -3
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +26 -0
- package/dist/api/types/observations.d.ts +14 -9
- package/dist/api/types/posthog.d.ts +36 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +57 -22
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +29 -19
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteView.d.ts +15 -8
- package/dist/api/types/snapshots.d.ts +52 -12
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/user.d.ts +32 -29
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/index.js +752 -626
- 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 +427 -14
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/index.d.ts +2 -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 +1 -1
- package/dist/api/types/copilot.d.ts +0 -159
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraStatus, DateType, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { CameraStatus, DateType, JsonValue, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum AuditLogActionType {
|
|
3
3
|
VH_STATUS = "vh_status",
|
|
4
4
|
CR_UPDATED = "cr_updated",
|
|
@@ -29,8 +29,17 @@ export declare enum AuditLogActionType {
|
|
|
29
29
|
SHARE_REQUEST = "share_request",
|
|
30
30
|
DELETE_SHARE_REQUEST = "delete_share_request",
|
|
31
31
|
TRANSFER_OWNERSHIP = "transfer_ownership",
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
TRANSFER_PROJECT = "transfer_project",
|
|
33
|
+
ASSIGN = "assign",
|
|
34
|
+
UNASSIGN = "unassign",
|
|
35
|
+
OAUTH_AUTHORIZE = "oauth_authorize",
|
|
36
|
+
OAUTH_TOKEN_ISSUE = "oauth_token_issue",
|
|
37
|
+
OAUTH_TOKEN_REFRESH = "oauth_token_refresh",
|
|
38
|
+
OAUTH_TOKEN_REVOKE = "oauth_token_revoke",
|
|
39
|
+
OAUTH_CLIENT_CREATE = "oauth_client_create",
|
|
40
|
+
OAUTH_CLIENT_DELETE = "oauth_client_delete",
|
|
41
|
+
API_KEY_REGENERATE = "api_key_regenerate",
|
|
42
|
+
API_KEY_REVOKE = "api_key_revoke"
|
|
34
43
|
}
|
|
35
44
|
export declare enum AuditLogEntity {
|
|
36
45
|
Cameras = "cameras",
|
|
@@ -48,31 +57,148 @@ export declare enum AuditLogEntity {
|
|
|
48
57
|
Tags = "tags",
|
|
49
58
|
KitsTags = "kits_tags",
|
|
50
59
|
Oauth = "oauth",
|
|
60
|
+
ApiKeys = "api_keys",
|
|
51
61
|
StorageProviders = "storage_providers"
|
|
52
62
|
}
|
|
63
|
+
export type AuditLogDiff = {
|
|
64
|
+
old: Record<string, JsonValue>;
|
|
65
|
+
new: Record<string, JsonValue>;
|
|
66
|
+
};
|
|
67
|
+
export type AuditLogHddInfoItem = {
|
|
68
|
+
name?: string;
|
|
69
|
+
capacity?: string;
|
|
70
|
+
freeSpace?: string;
|
|
71
|
+
status?: string;
|
|
72
|
+
property?: string;
|
|
73
|
+
};
|
|
74
|
+
export type AuditLogCameraDetails = {
|
|
75
|
+
exid?: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
with?: string;
|
|
78
|
+
errorBody?: string;
|
|
79
|
+
reason?: string;
|
|
80
|
+
settings?: AuditLogDiff;
|
|
81
|
+
};
|
|
82
|
+
export type AuditLogRouterDetails = {
|
|
83
|
+
serialNumber?: string;
|
|
84
|
+
cameraExid?: string;
|
|
85
|
+
cameraName?: string;
|
|
86
|
+
simNumber?: string;
|
|
87
|
+
settings?: AuditLogDiff;
|
|
88
|
+
deviceSettings?: Record<string, JsonValue>;
|
|
89
|
+
};
|
|
90
|
+
export type AuditLogUserEntityDetails = {
|
|
91
|
+
firstname?: string;
|
|
92
|
+
lastname?: string;
|
|
93
|
+
settings?: AuditLogDiff;
|
|
94
|
+
};
|
|
95
|
+
export type AuditLogProjectDetails = {
|
|
96
|
+
exid?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
settings?: AuditLogDiff;
|
|
99
|
+
};
|
|
100
|
+
export type AuditLogApiKeyDetails = {
|
|
101
|
+
name?: string;
|
|
102
|
+
maskedKey?: string;
|
|
103
|
+
userId?: number;
|
|
104
|
+
};
|
|
105
|
+
export type AuditLogDetails = {
|
|
106
|
+
id?: number;
|
|
107
|
+
exid?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
displayName?: string;
|
|
110
|
+
layerId?: number;
|
|
111
|
+
serial?: string;
|
|
112
|
+
type?: string;
|
|
113
|
+
note?: string;
|
|
114
|
+
with?: string;
|
|
115
|
+
message?: string;
|
|
116
|
+
config?: Record<string, JsonValue>;
|
|
117
|
+
settings?: AuditLogDiff;
|
|
118
|
+
camera?: AuditLogCameraDetails;
|
|
119
|
+
router?: AuditLogRouterDetails;
|
|
120
|
+
user?: AuditLogUserEntityDetails;
|
|
121
|
+
project?: AuditLogProjectDetails;
|
|
122
|
+
sim?: {
|
|
123
|
+
number?: string;
|
|
124
|
+
};
|
|
125
|
+
kit?: {
|
|
126
|
+
name?: string;
|
|
127
|
+
};
|
|
128
|
+
hdd?: {
|
|
129
|
+
serialNumber?: string;
|
|
130
|
+
settings?: AuditLogDiff;
|
|
131
|
+
};
|
|
132
|
+
roi?: {
|
|
133
|
+
settings?: AuditLogDiff;
|
|
134
|
+
};
|
|
135
|
+
hddInfo?: AuditLogHddInfoItem[];
|
|
136
|
+
oldOwner?: string;
|
|
137
|
+
newOwner?: string;
|
|
138
|
+
oldProjectExid?: string;
|
|
139
|
+
oldProjectName?: string;
|
|
140
|
+
newProjectExid?: string;
|
|
141
|
+
newProjectName?: string;
|
|
142
|
+
fromAdmin?: boolean;
|
|
143
|
+
who?: string;
|
|
144
|
+
email?: string;
|
|
145
|
+
scope?: string;
|
|
146
|
+
resourceId?: string;
|
|
147
|
+
clientId?: string;
|
|
148
|
+
clientName?: string;
|
|
149
|
+
oauthClientId?: string;
|
|
150
|
+
scopes?: string[];
|
|
151
|
+
grantType?: string;
|
|
152
|
+
tokenType?: string;
|
|
153
|
+
maskedKey?: string;
|
|
154
|
+
userId?: number;
|
|
155
|
+
apiKey?: AuditLogApiKeyDetails;
|
|
156
|
+
revoked?: AuditLogApiKeyDetails;
|
|
157
|
+
};
|
|
158
|
+
export declare enum AuditLogAuthMethod {
|
|
159
|
+
Password = "password",
|
|
160
|
+
ApiKeyV2 = "api_key_v2",
|
|
161
|
+
Widget = "widget",
|
|
162
|
+
OauthAccess = "oauth_access",
|
|
163
|
+
Impersonation = "impersonation",
|
|
164
|
+
Sso = "sso"
|
|
165
|
+
}
|
|
166
|
+
export type AuditLogUserDetails = {
|
|
167
|
+
browser: string;
|
|
168
|
+
country: string;
|
|
169
|
+
countryCode: string;
|
|
170
|
+
device: string | null;
|
|
171
|
+
ip: string;
|
|
172
|
+
os: string | null;
|
|
173
|
+
authMethod?: AuditLogAuthMethod;
|
|
174
|
+
apiKeyId?: number;
|
|
175
|
+
apiKeyName?: string;
|
|
176
|
+
apiKeyMasked?: string;
|
|
177
|
+
widgetId?: number;
|
|
178
|
+
oauthClientId?: string;
|
|
179
|
+
impersonatedBy?: string;
|
|
180
|
+
who?: string;
|
|
181
|
+
};
|
|
53
182
|
export type AuditLog = {
|
|
54
183
|
id: number;
|
|
55
184
|
action: AuditLogActionType;
|
|
56
|
-
details:
|
|
185
|
+
details: AuditLogDetails;
|
|
57
186
|
insertedAt: DateType;
|
|
58
|
-
entity:
|
|
59
|
-
|
|
60
|
-
browser: string;
|
|
61
|
-
country: string;
|
|
62
|
-
countryCode: string;
|
|
63
|
-
device: string | null;
|
|
64
|
-
ip: string;
|
|
65
|
-
os: string | null;
|
|
66
|
-
};
|
|
187
|
+
entity: AuditLogEntity;
|
|
188
|
+
userDetails: AuditLogUserDetails;
|
|
67
189
|
who: string;
|
|
68
190
|
};
|
|
69
191
|
export type AuditLogsParams = PaginationParams & {
|
|
70
|
-
routerId: number;
|
|
71
|
-
cameraId: number;
|
|
72
|
-
entity:
|
|
73
|
-
byRouter:
|
|
74
|
-
byCamera:
|
|
75
|
-
byProject:
|
|
192
|
+
routerId: number | null;
|
|
193
|
+
cameraId: number | null;
|
|
194
|
+
entity: AuditLogEntity[] | "";
|
|
195
|
+
byRouter: string;
|
|
196
|
+
byCamera: string;
|
|
197
|
+
byProject: string;
|
|
198
|
+
userId: number;
|
|
199
|
+
byIp: string;
|
|
200
|
+
from: string;
|
|
201
|
+
to: string;
|
|
76
202
|
action: string;
|
|
77
203
|
};
|
|
78
204
|
export type CameraLogsQueryParams = {
|
|
@@ -112,5 +238,20 @@ export type CameraAuditLog = {
|
|
|
112
238
|
export type CameraAuditLogsQueryParams = PaginationParams & {
|
|
113
239
|
from: string;
|
|
114
240
|
to: string;
|
|
115
|
-
action:
|
|
241
|
+
action: string[] | null;
|
|
242
|
+
routerId?: number | null;
|
|
243
|
+
};
|
|
244
|
+
export type CamerasStatusLogsQueryParams = {
|
|
245
|
+
projectId: string;
|
|
246
|
+
status?: CameraStatus[];
|
|
247
|
+
historyDays?: number;
|
|
248
|
+
from: DateType;
|
|
249
|
+
to: DateType;
|
|
250
|
+
};
|
|
251
|
+
export type CameraStatusLogItem = CameraLogItem & {
|
|
252
|
+
status: CameraStatus;
|
|
253
|
+
};
|
|
254
|
+
export type CamerasStatusLog = {
|
|
255
|
+
data: CameraStatusLogItem[];
|
|
256
|
+
measure: string;
|
|
116
257
|
};
|
|
@@ -13,6 +13,7 @@ export type AxiosEnvironment = {
|
|
|
13
13
|
weatherApiBaseUrl?: string | null;
|
|
14
14
|
evercamLabsUrl?: string | null;
|
|
15
15
|
isLabsStaging?: boolean;
|
|
16
|
+
reportsApiUrl?: string | null;
|
|
16
17
|
firebaseDbLink?: string | null;
|
|
17
18
|
firebaseStorageUrl?: string | null;
|
|
18
19
|
firebaseStorageToken?: string | null;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export type BimModelRequestPayload = {
|
|
|
21
21
|
apiId?: string;
|
|
22
22
|
};
|
|
23
23
|
export type BimModelResponsePayload = {
|
|
24
|
+
id?: number;
|
|
24
25
|
dates?: [string];
|
|
25
26
|
height?: number;
|
|
26
27
|
imageUrl?: string;
|
|
@@ -40,7 +41,7 @@ export type BimCompareExportRequestPayload = {
|
|
|
40
41
|
cameraExid: string;
|
|
41
42
|
snapshotDate: string;
|
|
42
43
|
bimDate: string;
|
|
43
|
-
embed
|
|
44
|
+
embed?: string;
|
|
44
45
|
compareExid: string;
|
|
45
46
|
createAnimation: boolean;
|
|
46
47
|
bimTransparency?: number;
|
|
@@ -64,9 +65,19 @@ export declare enum BimUploadStatus {
|
|
|
64
65
|
Success = 2,
|
|
65
66
|
Failed = 3
|
|
66
67
|
}
|
|
68
|
+
export declare enum BimSoftware {
|
|
69
|
+
Synchro = "synchro",
|
|
70
|
+
Navisworks = "navisworks",
|
|
71
|
+
Revit = "revit",
|
|
72
|
+
Tekla = "tekla",
|
|
73
|
+
Archicad = "archicad",
|
|
74
|
+
Solibri = "solibri",
|
|
75
|
+
Bim360 = "bim360",
|
|
76
|
+
Other = "other"
|
|
77
|
+
}
|
|
67
78
|
export type BimCreationPayload = {
|
|
68
79
|
title: string;
|
|
69
|
-
software:
|
|
80
|
+
software: BimSoftware;
|
|
70
81
|
model: string;
|
|
71
82
|
apiKey: string;
|
|
72
83
|
apiId: string;
|
|
@@ -92,16 +103,21 @@ export declare enum BIMLayerTypes {
|
|
|
92
103
|
ForgeBim4D = "forge_bim_4d",
|
|
93
104
|
ForgeBimMep = "forge_bim_mep"
|
|
94
105
|
}
|
|
95
|
-
export type BimLayersQueryParams = {
|
|
106
|
+
export type BimLayersQueryParams = Partial<{
|
|
96
107
|
layerType: BIMLayerTypes;
|
|
97
108
|
timestamp: DateType;
|
|
98
|
-
|
|
109
|
+
apiKey: string;
|
|
110
|
+
apiId: string;
|
|
111
|
+
}>;
|
|
99
112
|
export type BIMLayerPostPayload = {
|
|
100
113
|
name: string;
|
|
101
114
|
layerType: BIMLayerTypes;
|
|
102
115
|
startAt: DateType;
|
|
103
116
|
shapes: string;
|
|
104
117
|
zIndex?: number;
|
|
118
|
+
displayName?: string;
|
|
119
|
+
apiKey?: string;
|
|
120
|
+
apiId?: string;
|
|
105
121
|
};
|
|
106
122
|
export type BIMLayer = {
|
|
107
123
|
id: number;
|
|
@@ -111,19 +127,23 @@ export type BIMLayer = {
|
|
|
111
127
|
insertedAt: DateType;
|
|
112
128
|
updatedAt: DateType;
|
|
113
129
|
shapes: string;
|
|
130
|
+
displayName?: string;
|
|
114
131
|
};
|
|
115
132
|
export type BimPendingImage = {
|
|
116
133
|
url: string;
|
|
117
|
-
|
|
134
|
+
key: string;
|
|
135
|
+
date?: string;
|
|
118
136
|
};
|
|
119
137
|
export type BimUploadCameraParameters = {
|
|
120
|
-
|
|
138
|
+
distortionCoeffs: number[];
|
|
121
139
|
horizontalFov: number;
|
|
122
140
|
verticalFov: number;
|
|
123
141
|
focalLength1: number;
|
|
124
142
|
focalLength2: number;
|
|
125
143
|
centerX: number;
|
|
126
144
|
centerY: number;
|
|
145
|
+
apiId?: string;
|
|
146
|
+
apiKey?: string;
|
|
127
147
|
};
|
|
128
148
|
export type PendingBimImagesParams = {
|
|
129
149
|
model: string;
|
|
@@ -132,7 +152,7 @@ export type PendingBimImagesParams = {
|
|
|
132
152
|
};
|
|
133
153
|
export type ProcessPendingImagesBimParams = {
|
|
134
154
|
model: string;
|
|
135
|
-
names:
|
|
155
|
+
names: BimPendingImage[];
|
|
136
156
|
enableDistortion: boolean;
|
|
137
157
|
apiId: string;
|
|
138
158
|
apiKey: string;
|