@evercam/api 1.0.0-7fa1a601b → 1.0.0-802693295
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 +216 -13
- package/dist/api/api/adminApi.d.ts +161 -161
- package/dist/api/api/aiApi.d.ts +184 -88
- package/dist/api/api/authzApi.d.ts +29 -17
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +157 -120
- package/dist/api/api/evercamLabsApi.d.ts +10 -17
- package/dist/api/api/exNvrApi.d.ts +2 -2
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +132 -57
- package/dist/api/api/ptzApi.d.ts +12 -3
- 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 +275 -48
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +189 -76
- package/dist/api/types/anpr.d.ts +49 -2
- 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 +116 -6
- 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 -14
- package/dist/api/types/bim.d.ts +65 -16
- package/dist/api/types/camera.d.ts +323 -199
- package/dist/api/types/comments.d.ts +68 -31
- package/dist/api/types/company.d.ts +53 -6
- 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 +26 -18
- 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 +51 -169
- 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 +27 -2
- package/dist/api/types/index.d.ts +17 -3
- package/dist/api/types/ingest.d.ts +280 -17
- package/dist/api/types/kit.d.ts +121 -115
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +83 -3
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/oauth.d.ts +62 -0
- 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 +71 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +42 -25
- package/dist/api/types/project.d.ts +158 -33
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +9 -3
- package/dist/api/types/reports.d.ts +109 -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 +34 -10
- package/dist/api/types/shared.d.ts +47 -30
- package/dist/api/types/shares.d.ts +6 -157
- package/dist/api/types/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +169 -47
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +99 -14
- 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 +30 -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 +139 -54
- 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 +83 -15
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2545 -1106
- 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 +598 -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 +10 -3
- 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
|
@@ -16,3 +16,74 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUser = {
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
isWeeklyActiveUser: number;
|
|
23
|
+
isMonthlyActiveUser: number;
|
|
24
|
+
eventsCount: number;
|
|
25
|
+
};
|
|
26
|
+
export type PosthogUsersRequestParams = {
|
|
27
|
+
companyExid?: string;
|
|
28
|
+
projectExid?: string;
|
|
29
|
+
cameraExid?: string;
|
|
30
|
+
productsActivityOnly?: boolean;
|
|
31
|
+
afterId?: string;
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export type PosthogUsersResponse = {
|
|
35
|
+
data: PosthogUser[];
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
size: number;
|
|
38
|
+
};
|
|
39
|
+
export type PosthogEventsQueryParams = Partial<{
|
|
40
|
+
companyExid: string;
|
|
41
|
+
projectExid: string;
|
|
42
|
+
cameraExid: string;
|
|
43
|
+
email: string;
|
|
44
|
+
before: string;
|
|
45
|
+
after: string;
|
|
46
|
+
type: string;
|
|
47
|
+
period: string;
|
|
48
|
+
isStatsOnly: boolean;
|
|
49
|
+
whiteListedPages: string | null;
|
|
50
|
+
page: number;
|
|
51
|
+
size: number;
|
|
52
|
+
sort: string | null;
|
|
53
|
+
}>;
|
|
54
|
+
export type PosthogEventListItem = Partial<{
|
|
55
|
+
timestamp: string;
|
|
56
|
+
companyExid: string | null;
|
|
57
|
+
projectExid: string | null;
|
|
58
|
+
cameraExid: string | null;
|
|
59
|
+
email: string;
|
|
60
|
+
name: string;
|
|
61
|
+
page: string;
|
|
62
|
+
context: string;
|
|
63
|
+
action: string;
|
|
64
|
+
properties: Record<string, string>;
|
|
65
|
+
eventsCount: number;
|
|
66
|
+
}>;
|
|
67
|
+
export type PosthogEventsResponse<T = PosthogEventListItem> = {
|
|
68
|
+
data: T[];
|
|
69
|
+
size: number;
|
|
70
|
+
page: number;
|
|
71
|
+
total: number;
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
};
|
|
75
|
+
export type PosthogUserParams = {
|
|
76
|
+
firstname?: string;
|
|
77
|
+
lastname?: string;
|
|
78
|
+
email: string;
|
|
79
|
+
telephone?: string;
|
|
80
|
+
country?: string;
|
|
81
|
+
isAdmin?: boolean;
|
|
82
|
+
persona?: string;
|
|
83
|
+
companyExid: string;
|
|
84
|
+
companyName: string;
|
|
85
|
+
isImpersonationLogin: boolean;
|
|
86
|
+
ImpersonatedUserEmail?: string;
|
|
87
|
+
ImpersonatedUserFirstname?: string;
|
|
88
|
+
impersonatedUserLastname?: string;
|
|
89
|
+
};
|
|
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
|
|
|
44
44
|
label: string;
|
|
45
45
|
currentRevisionId: number;
|
|
46
46
|
};
|
|
47
|
-
export type
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
48
|
accountingProjectNumber?: number;
|
|
49
49
|
active: boolean;
|
|
50
50
|
address: string;
|
|
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
|
|
|
85
85
|
totalValue: string;
|
|
86
86
|
updatedAt: string;
|
|
87
87
|
zip: number;
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
89
90
|
export type ProcoreToolUserAccessLevel = {
|
|
90
91
|
id: ProcoreToolUserAccessLevelIds;
|
|
91
92
|
name: string;
|
|
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
|
|
|
120
121
|
snapshot: string;
|
|
121
122
|
categoryId?: number;
|
|
122
123
|
};
|
|
123
|
-
export type
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
124
125
|
count: number;
|
|
125
126
|
coverPhoto: string | null;
|
|
126
127
|
createdAt: string;
|
|
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
|
|
|
134
135
|
position: number;
|
|
135
136
|
private: boolean;
|
|
136
137
|
updatedAt: string;
|
|
137
|
-
}
|
|
138
|
-
export type
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
139
141
|
id: number;
|
|
140
142
|
name: string;
|
|
141
143
|
localizedName: string;
|
|
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
|
|
|
147
149
|
parentInactive: boolean;
|
|
148
150
|
isUse: boolean;
|
|
149
151
|
nameTranslations: string;
|
|
150
|
-
}
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
151
154
|
export type ProcoreObservationFormRequestPayload = {
|
|
152
155
|
projectId: number;
|
|
153
156
|
companyId: number;
|
|
154
157
|
observationType: string;
|
|
155
158
|
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
156
163
|
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
157
164
|
export type ProcoreObservationField = {
|
|
158
165
|
name: string;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { Automation,
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type ProgressPhotosConfig = Partial<{
|
|
3
|
+
compareDelay: number;
|
|
4
|
+
period: number;
|
|
5
|
+
recipients: string;
|
|
6
|
+
projectId: number;
|
|
7
|
+
companyId: number;
|
|
8
|
+
categoryId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
|
|
11
|
+
cameraExids: string;
|
|
12
|
+
notifyDays: string;
|
|
13
|
+
compareDelay: number;
|
|
14
|
+
notifyTime: string;
|
|
15
|
+
provider: string;
|
|
16
|
+
type: string;
|
|
17
|
+
config: ProgressPhotosConfig;
|
|
18
|
+
subject: string;
|
|
19
|
+
isPaused: boolean;
|
|
20
|
+
timezone: string;
|
|
21
|
+
}>;
|
|
20
22
|
export type ProgressPhotosUnSubscribeParams = {
|
|
21
23
|
email: string;
|
|
22
24
|
token?: string;
|
|
@@ -24,6 +26,18 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
24
26
|
export type ProgressPhotosResponsePayload = {
|
|
25
27
|
progressPhotos: Automation[];
|
|
26
28
|
};
|
|
29
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
30
|
+
progressPhotos: Automation;
|
|
31
|
+
};
|
|
32
|
+
export type ProgressPhotoUpdateResponse = {
|
|
33
|
+
id: string;
|
|
34
|
+
cameraIds: string;
|
|
35
|
+
cameraNames: string;
|
|
36
|
+
requesterName: string;
|
|
37
|
+
requesterEmail: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
notifyDays: string;
|
|
40
|
+
};
|
|
27
41
|
export declare enum AutomationDialogType {
|
|
28
42
|
Create = "create",
|
|
29
43
|
Edit = "edit",
|
|
@@ -35,18 +49,20 @@ export type CameraOption = {
|
|
|
35
49
|
};
|
|
36
50
|
export interface ProgressPhotoItem {
|
|
37
51
|
id: number;
|
|
38
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
cameras: Array<CameraOption | string> | string;
|
|
39
55
|
insertedAt: string;
|
|
40
56
|
provider: string;
|
|
41
57
|
config: {
|
|
42
|
-
recipients: string |
|
|
58
|
+
recipients: string | AutomationEmailRecipient[];
|
|
43
59
|
sendSnapshotAs: string;
|
|
44
60
|
};
|
|
45
61
|
isPaused: boolean;
|
|
46
62
|
notifyDays: string | string[];
|
|
47
63
|
notifyTime: string;
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
apiId: string;
|
|
65
|
+
apiKey: string;
|
|
50
66
|
timezone: string;
|
|
51
67
|
exid: string;
|
|
52
68
|
fullname: string;
|
|
@@ -58,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
|
|
|
58
74
|
timezone: string;
|
|
59
75
|
cameras: string;
|
|
60
76
|
};
|
|
61
|
-
export type progressPhotosHistoryQueryParams = {
|
|
77
|
+
export type progressPhotosHistoryQueryParams = PaginationParams & {
|
|
62
78
|
insertedAt: DateType[];
|
|
63
79
|
recipients: string;
|
|
64
80
|
subject: string;
|
|
@@ -70,5 +86,6 @@ export type ProgressPhotosHistory = {
|
|
|
70
86
|
cameraIds: string;
|
|
71
87
|
failedCameraIds: string;
|
|
72
88
|
subject: string;
|
|
73
|
-
recipients:
|
|
89
|
+
recipients: string;
|
|
90
|
+
insertedAt: string;
|
|
74
91
|
};
|
|
@@ -1,25 +1,58 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid,
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, GeoJSONPolygon, Operator, PaginationParams, ProjectUserWithRole, RoleSubRole } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
5
|
-
|
|
6
|
-
exid: ProjectExid;
|
|
7
|
-
name: string;
|
|
8
|
-
status?: ProjectStatus;
|
|
9
|
-
insertedAt?: string;
|
|
10
|
-
startedAt?: string;
|
|
11
|
-
timezone?: string;
|
|
12
|
-
zohoId?: string;
|
|
13
|
-
userId?: number;
|
|
5
|
+
archiveTier?: ProjectArchiveTier;
|
|
14
6
|
cameras?: Array<Camera | AdminCamera>;
|
|
15
|
-
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
16
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: GeoJSONPolygon | null;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
17
17
|
owner?: {
|
|
18
18
|
email?: string;
|
|
19
19
|
};
|
|
20
20
|
ownerEmail?: string;
|
|
21
21
|
ownerName?: string;
|
|
22
|
-
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
startDate?: string | null;
|
|
24
|
+
status?: ProjectStatus;
|
|
25
|
+
timezone?: string;
|
|
26
|
+
unrestrictedCameras?: Camera[];
|
|
27
|
+
userId?: number;
|
|
28
|
+
zohoId?: string;
|
|
29
|
+
};
|
|
30
|
+
export type AdminProjectCameraRef = {
|
|
31
|
+
exid: string;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
export type AdminProjectListItem = {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
status: ProjectStatus | string;
|
|
38
|
+
insertedAt: string;
|
|
39
|
+
timezone: string | null;
|
|
40
|
+
exid: ProjectExid;
|
|
41
|
+
endDate: string | null;
|
|
42
|
+
startDate: string | null;
|
|
43
|
+
archiveTier: ProjectArchiveTier | null;
|
|
44
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
45
|
+
zohoId: string | null;
|
|
46
|
+
ownerEmail: string | null;
|
|
47
|
+
companyId: number | null;
|
|
48
|
+
companyName: string | null;
|
|
49
|
+
ownerName: string | null;
|
|
50
|
+
archived: boolean;
|
|
51
|
+
cameras?: AdminProjectCameraRef[];
|
|
52
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
53
|
+
};
|
|
54
|
+
export type AdminProjectDetail = AdminProjectListItem & {
|
|
55
|
+
userId: number;
|
|
23
56
|
};
|
|
24
57
|
export declare enum ProjectStatus {
|
|
25
58
|
ToStart = "To Start",
|
|
@@ -31,15 +64,22 @@ export declare enum ProjectArchiveTier {
|
|
|
31
64
|
Full = "Full",
|
|
32
65
|
Partial = "Partial",
|
|
33
66
|
Minimal = "Minimal",
|
|
34
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
67
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
68
|
+
No = "No"
|
|
35
69
|
}
|
|
36
|
-
export type ProjectResponsePayload = {
|
|
37
|
-
data?: Project[];
|
|
38
|
-
};
|
|
39
70
|
export type UpdateCameraRestrictionPayload = {
|
|
40
71
|
isAccessRestricted?: boolean;
|
|
41
72
|
};
|
|
73
|
+
export type CameraPosition = {
|
|
74
|
+
cameraExid: CameraExid;
|
|
75
|
+
position: number;
|
|
76
|
+
};
|
|
77
|
+
export type ReorderCamerasPayload = {
|
|
78
|
+
positions: CameraPosition[];
|
|
79
|
+
};
|
|
42
80
|
export type Logo = {
|
|
81
|
+
id: number;
|
|
82
|
+
projectId: number;
|
|
43
83
|
name: string;
|
|
44
84
|
url: string;
|
|
45
85
|
};
|
|
@@ -53,16 +93,15 @@ export declare enum ProjectFeatureFlag {
|
|
|
53
93
|
ThreeSixtyView = "360_view",
|
|
54
94
|
NdaMc = "NDA/MC",
|
|
55
95
|
GateReport = "gate_report",
|
|
56
|
-
GateReportAutoVerify = "auto_publish",
|
|
57
96
|
GateReportMotionDetection = "motion_detection",
|
|
58
97
|
FullEmpty = "full_empty",
|
|
59
98
|
MediaHubSharing = "archives_sharing",
|
|
60
99
|
GateReportAnprBased = "anpr_sourced",
|
|
61
100
|
NoLicensePlate = "no_license_plate",
|
|
62
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
63
101
|
SmartSearch = "smart_search",
|
|
64
102
|
PpeMonitoring = "ppe_monitoring",
|
|
65
|
-
NoGdpr = "no_gdpr"
|
|
103
|
+
NoGdpr = "no_gdpr",
|
|
104
|
+
Chat = "chat"
|
|
66
105
|
}
|
|
67
106
|
export type ProjectBatteryReading = {
|
|
68
107
|
exid: number;
|
|
@@ -80,6 +119,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
80
119
|
status: ProjectStatus;
|
|
81
120
|
cameras: string;
|
|
82
121
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
122
|
+
featureFlagsOperator?: Operator;
|
|
83
123
|
archived: string;
|
|
84
124
|
};
|
|
85
125
|
export type ProjectCreateRequestPayload = {
|
|
@@ -88,13 +128,24 @@ export type ProjectCreateRequestPayload = {
|
|
|
88
128
|
ownerId: number;
|
|
89
129
|
cameras: string[];
|
|
90
130
|
};
|
|
91
|
-
export type
|
|
92
|
-
|
|
131
|
+
export type CreatedProject = {
|
|
132
|
+
id: number;
|
|
93
133
|
exid: string;
|
|
134
|
+
name: string;
|
|
135
|
+
userId: number;
|
|
136
|
+
zohoId: string | null;
|
|
137
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
138
|
+
};
|
|
139
|
+
export type ProjectCreateResponse = Record<"project", CreatedProject>;
|
|
140
|
+
export type TransferOwnershipProject = {
|
|
94
141
|
id: number;
|
|
142
|
+
exid: string;
|
|
143
|
+
name: string;
|
|
95
144
|
userId: number;
|
|
96
|
-
zohoId: string;
|
|
145
|
+
zohoId: string | null;
|
|
146
|
+
status: ProjectStatus;
|
|
97
147
|
};
|
|
148
|
+
export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
|
|
98
149
|
export type ProjectUpdateRequestPayload = {
|
|
99
150
|
name: string;
|
|
100
151
|
timezone: string;
|
|
@@ -118,42 +169,61 @@ export type ProjectUserProperty = {
|
|
|
118
169
|
eventsCount: number;
|
|
119
170
|
fullname: string;
|
|
120
171
|
id: number;
|
|
121
|
-
lastSeenAt:
|
|
172
|
+
lastSeenAt: string;
|
|
122
173
|
persona: string;
|
|
123
174
|
};
|
|
124
|
-
export type
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
175
|
+
export type AdminProjectInvite = {
|
|
176
|
+
id: number;
|
|
177
|
+
email: string;
|
|
178
|
+
role: ProjectRole;
|
|
179
|
+
permissions: string[];
|
|
180
|
+
subRoles: RoleSubRole[];
|
|
130
181
|
};
|
|
131
|
-
export type
|
|
132
|
-
|
|
182
|
+
export type AdminProjectUsersResponsePayload = {
|
|
183
|
+
users: ProjectUserWithRole[];
|
|
184
|
+
invites: AdminProjectInvite[];
|
|
185
|
+
errors: ProjectUserError[];
|
|
133
186
|
};
|
|
134
187
|
export type ProjectRole = {
|
|
135
|
-
id:
|
|
188
|
+
id: number;
|
|
136
189
|
name: string;
|
|
137
190
|
};
|
|
138
191
|
export type ProjectMember = {
|
|
139
192
|
id: string;
|
|
193
|
+
key?: string;
|
|
140
194
|
email: string;
|
|
141
195
|
fullname: string;
|
|
196
|
+
lastSeenAt?: string;
|
|
142
197
|
role: ProjectRole;
|
|
198
|
+
permissions?: string[];
|
|
199
|
+
subRoles?: Array<{
|
|
200
|
+
resourceId: string;
|
|
201
|
+
roleId: number;
|
|
202
|
+
}>;
|
|
203
|
+
company?: {
|
|
204
|
+
name: string;
|
|
205
|
+
} | null;
|
|
143
206
|
};
|
|
144
207
|
export type ProjectInvite = {
|
|
145
|
-
id
|
|
208
|
+
id: number;
|
|
146
209
|
email: string;
|
|
147
210
|
role?: ProjectRole;
|
|
211
|
+
permissions?: string[];
|
|
212
|
+
subRoles?: Array<{
|
|
213
|
+
resourceId: string;
|
|
214
|
+
roleId: number;
|
|
215
|
+
}>;
|
|
148
216
|
invitedAt?: string;
|
|
149
217
|
};
|
|
150
218
|
export type ProjectMembersResponsePayload = {
|
|
151
219
|
users: ProjectMember[];
|
|
152
220
|
invites: ProjectInvite[];
|
|
221
|
+
errors: ProjectUserError[];
|
|
153
222
|
};
|
|
154
223
|
export type ProjectMembersRequestPayload = {
|
|
155
224
|
roleId: number;
|
|
156
225
|
emails: string[];
|
|
226
|
+
message?: string;
|
|
157
227
|
overrideRole?: Partial<{
|
|
158
228
|
permissions?: string[];
|
|
159
229
|
subRoles?: Array<{
|
|
@@ -166,3 +236,58 @@ export type ProjectInviteMembersResponsePayload = {
|
|
|
166
236
|
users: ProjectMember[];
|
|
167
237
|
invites: ProjectInvite[];
|
|
168
238
|
};
|
|
239
|
+
export type PlaceholderThumbnailData = {
|
|
240
|
+
placeholder: string;
|
|
241
|
+
};
|
|
242
|
+
export type ProjectUserError = {
|
|
243
|
+
email: string;
|
|
244
|
+
error: Record<string, string[]>;
|
|
245
|
+
};
|
|
246
|
+
export type ProjectUsersResponsePayload = {
|
|
247
|
+
users: ProjectMember[];
|
|
248
|
+
invites: ProjectInvite[];
|
|
249
|
+
errors: ProjectUserError[];
|
|
250
|
+
};
|
|
251
|
+
export type MentionableUser = {
|
|
252
|
+
id: number;
|
|
253
|
+
fullname: string;
|
|
254
|
+
email: string;
|
|
255
|
+
};
|
|
256
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
257
|
+
cameraName: string;
|
|
258
|
+
cameraExid: CameraExid;
|
|
259
|
+
projectName: string;
|
|
260
|
+
projectExid: string;
|
|
261
|
+
archiveTier: ProjectArchiveTier;
|
|
262
|
+
status: ProjectStorageStatus;
|
|
263
|
+
requester: string;
|
|
264
|
+
createdAtFrom: string;
|
|
265
|
+
createdAtTo: string;
|
|
266
|
+
scheduleAtFrom: string;
|
|
267
|
+
scheduleAtTo: string;
|
|
268
|
+
};
|
|
269
|
+
export type ProjectStorageCamera = {
|
|
270
|
+
archiveId: number;
|
|
271
|
+
name: string;
|
|
272
|
+
exid: CameraExid;
|
|
273
|
+
status: ProjectStorageStatus;
|
|
274
|
+
errorMessage: string | null;
|
|
275
|
+
};
|
|
276
|
+
export type ProjectStorage = {
|
|
277
|
+
id: number;
|
|
278
|
+
exid: string;
|
|
279
|
+
name: string;
|
|
280
|
+
archiveTier: ProjectArchiveTier | null;
|
|
281
|
+
endDate: string | null;
|
|
282
|
+
requester: string | null;
|
|
283
|
+
scheduleAt: string | null;
|
|
284
|
+
insertedAt: DateType;
|
|
285
|
+
cameras: ProjectStorageCamera[];
|
|
286
|
+
};
|
|
287
|
+
export declare enum ProjectStorageStatus {
|
|
288
|
+
New = "new",
|
|
289
|
+
Pending = "pending",
|
|
290
|
+
Processing = "processing",
|
|
291
|
+
Completed = "completed",
|
|
292
|
+
Failed = "failed"
|
|
293
|
+
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { ApiCredentials } from "
|
|
1
|
+
import { ApiCredentials, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
5
5
|
data: string;
|
|
6
6
|
status?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type SnapshotRequestPayload = {
|
|
9
9
|
apiKey?: string;
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
13
|
includeImage?: boolean;
|
|
14
|
+
view?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export type AvailableDaysRequestPayload = {
|
|
16
17
|
cameraId: string;
|
|
17
18
|
year: string;
|
|
18
19
|
month: string;
|
|
19
20
|
payload?: ApiCredentials;
|
|
21
|
+
cancelToken?: CancelToken;
|
|
20
22
|
};
|
|
21
23
|
export type AvailableDaysResponsePayload = {
|
|
22
24
|
days: Array<number>;
|
|
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
39
41
|
notes?: string;
|
|
40
42
|
}>;
|
|
41
43
|
};
|
|
42
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
43
45
|
from: string;
|
|
44
46
|
to: string;
|
|
45
|
-
limit?: number;
|
|
46
|
-
page?: number;
|
|
47
47
|
schedule?: boolean;
|
|
48
48
|
count?: number;
|
|
49
49
|
};
|
|
@@ -56,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
56
56
|
snapshots: Array<SnapshotInstance>;
|
|
57
57
|
};
|
|
58
58
|
export declare enum BrainTool {
|
|
59
|
-
Detections = "detections"
|
|
60
|
-
Segmentation = "sam"
|
|
59
|
+
Detections = "detections"
|
|
61
60
|
}
|
|
62
61
|
export declare enum CloudRecordingFrequency {
|
|
63
62
|
EverySecond = 60,
|
|
@@ -77,6 +76,7 @@ export declare enum CloudRecordingDuration {
|
|
|
77
76
|
Month = 30,
|
|
78
77
|
ThreeMonths = 90
|
|
79
78
|
}
|
|
79
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
80
80
|
export declare enum CloudRecordingStatus {
|
|
81
81
|
On = "on",
|
|
82
82
|
Off = "off",
|
|
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
104
104
|
}
|
|
105
105
|
export declare enum VpnServer {
|
|
106
106
|
None = "None",
|
|
107
|
-
OpenVPN1 = "OpenVPN1",
|
|
108
|
-
OpenVPN2 = "OpenVPN2",
|
|
109
|
-
OpenVPN3 = "OpenVPN3",
|
|
110
|
-
OpenVPN4 = "OpenVPN4",
|
|
111
|
-
OpenVPN5 = "OpenVPN5",
|
|
112
|
-
PPTP1 = "PPTP1",
|
|
113
|
-
PPTP2 = "PPTP2",
|
|
114
107
|
WireGuard1 = "WireGuard1",
|
|
115
108
|
WireGuard2 = "WireGuard2",
|
|
116
109
|
WireGuard3 = "WireGuard3",
|
|
@@ -120,5 +113,6 @@ export declare enum VpnServer {
|
|
|
120
113
|
WireGuard7 = "WireGuard7",
|
|
121
114
|
WireGuard8 = "WireGuard8",
|
|
122
115
|
WireGuard9 = "WireGuard9",
|
|
123
|
-
WireGuard10 = "WireGuard10"
|
|
116
|
+
WireGuard10 = "WireGuard10",
|
|
117
|
+
WgHub = "WgHub"
|
|
124
118
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import type { DateType, PaginationParams } from "
|
|
1
|
+
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum RecycleBinItemType {
|
|
3
|
+
Camera = "camera",
|
|
4
|
+
Project = "project",
|
|
5
|
+
Kit = "kit"
|
|
6
|
+
}
|
|
2
7
|
export type RecycleBin = {
|
|
3
|
-
id
|
|
8
|
+
id: number;
|
|
4
9
|
exid: string;
|
|
5
10
|
name: string;
|
|
6
|
-
type:
|
|
11
|
+
type: RecycleBinItemType;
|
|
7
12
|
deletedBy: string;
|
|
8
13
|
deletedAt: DateType;
|
|
9
14
|
};
|
|
10
15
|
export type RecycleBinQueryParams = PaginationParams & {
|
|
16
|
+
exid: string;
|
|
11
17
|
name: string;
|
|
12
18
|
type: string;
|
|
13
19
|
deletedBy: string;
|