@evercam/api 1.0.0-e03a0c41b → 1.0.0-e13c64fc3
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 +5 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/api/adminApi.d.ts +366 -0
- package/dist/api/api/aiApi.d.ts +127 -0
- package/dist/api/api/authzApi.d.ts +38 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +329 -0
- package/dist/api/api/evercamLabsApi.d.ts +46 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +147 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +276 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/{types → api/types}/analytics.d.ts +214 -103
- package/dist/{types → api/types}/anpr.d.ts +35 -19
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +22 -2
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +110 -125
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +9 -6
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +19 -13
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +121 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/{types → api/types}/index.d.ts +15 -2
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +94 -6
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +11 -2
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +242 -0
- package/dist/{types → api/types}/recording.d.ts +3 -4
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +14 -21
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +10 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +18 -4
- package/dist/{types → api/types}/user.d.ts +105 -35
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +103 -20
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1741 -960
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +270 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +8 -7
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -289
- package/dist/api/aiApi.d.ts +0 -76
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/detections.d.ts +0 -70
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -5
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
package/dist/types/ingest.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { PaginationParams, DateType } from "@/types";
|
|
2
|
-
export declare enum IngestProcessingStatus {
|
|
3
|
-
Completed = "completed",
|
|
4
|
-
Uploading = "uploading",
|
|
5
|
-
Created = "created",
|
|
6
|
-
Failed = "failed",
|
|
7
|
-
Aborted = "aborted",
|
|
8
|
-
Paused = "paused",
|
|
9
|
-
InProgress = "inprogress",
|
|
10
|
-
Pending = "pending"
|
|
11
|
-
}
|
|
12
|
-
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
13
|
-
projectId: string;
|
|
14
|
-
consumed: string;
|
|
15
|
-
token: string;
|
|
16
|
-
processingStatus: IngestProcessingStatus;
|
|
17
|
-
};
|
|
18
|
-
export type DroneUploadUpdateRequestPayload = {
|
|
19
|
-
flightMetadata: {
|
|
20
|
-
dateTime: string;
|
|
21
|
-
gpsAltitude: string;
|
|
22
|
-
gpsCoordinates: string;
|
|
23
|
-
};
|
|
24
|
-
upload: {
|
|
25
|
-
url: string;
|
|
26
|
-
title: string;
|
|
27
|
-
fileExtension: string;
|
|
28
|
-
}[];
|
|
29
|
-
projectName: string;
|
|
30
|
-
};
|
|
31
|
-
export type CalculateMeasuringOperationRequestPayload = {
|
|
32
|
-
date: DateType;
|
|
33
|
-
points: [number, number][];
|
|
34
|
-
operation: string;
|
|
35
|
-
};
|
|
36
|
-
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
37
|
-
date: DateType;
|
|
38
|
-
};
|
|
39
|
-
export type InspectionToolRequestPayload = {
|
|
40
|
-
date: DateType;
|
|
41
|
-
gpsAltitude: string;
|
|
42
|
-
gpsCoordinates: string;
|
|
43
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum NotificationType {
|
|
2
|
-
CameraShare = "camera_share",
|
|
3
|
-
CameraStatusChange = "camera_status_changed",
|
|
4
|
-
Mention = "mention",
|
|
5
|
-
TimelapseCreated = "timelapse_created",
|
|
6
|
-
TimelapseFailed = "timelapse_failed",
|
|
7
|
-
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
9
|
-
}
|
|
10
|
-
export interface CameraShareContext {
|
|
11
|
-
cameraExid: string;
|
|
12
|
-
projectExid: string;
|
|
13
|
-
shareId: number;
|
|
14
|
-
}
|
|
15
|
-
export type Notification = {
|
|
16
|
-
id: number;
|
|
17
|
-
type: NotificationType;
|
|
18
|
-
insertedAt: string;
|
|
19
|
-
initiatorId: number;
|
|
20
|
-
initiatorFullname: string;
|
|
21
|
-
initiatorEmail: string;
|
|
22
|
-
targetId: number;
|
|
23
|
-
targetFullname: string;
|
|
24
|
-
targetEmail: string;
|
|
25
|
-
readTimestamp: string | null;
|
|
26
|
-
context: CameraShareContext;
|
|
27
|
-
};
|
package/dist/types/procore.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export type ProcoreUserCompaniesResponsePayload = Array<{
|
|
2
|
-
id: number;
|
|
3
|
-
isActive?: boolean;
|
|
4
|
-
name: string;
|
|
5
|
-
}>;
|
|
6
|
-
export type ProcoreUserProjectRequestPayload = {
|
|
7
|
-
companyId: number;
|
|
8
|
-
};
|
|
9
|
-
export type ProcoreUserProjectsResponsePayload = Array<{
|
|
10
|
-
accountingProjectNumber?: number;
|
|
11
|
-
active: boolean;
|
|
12
|
-
address: string;
|
|
13
|
-
city: string;
|
|
14
|
-
company: {
|
|
15
|
-
id: number;
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
completionDate: string;
|
|
19
|
-
countryCode: string;
|
|
20
|
-
county: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
customFields?: object;
|
|
23
|
-
designatedMarketArea: string;
|
|
24
|
-
displayName: string;
|
|
25
|
-
estimatedValue: string;
|
|
26
|
-
id: number;
|
|
27
|
-
isDemo: boolean;
|
|
28
|
-
latitude: number;
|
|
29
|
-
longitude: number;
|
|
30
|
-
name: string;
|
|
31
|
-
originCode: string | number | null;
|
|
32
|
-
originData: string | null;
|
|
33
|
-
originId: number | null;
|
|
34
|
-
ownersProjectId: number | null;
|
|
35
|
-
parentJobId: number | null;
|
|
36
|
-
phone: string | number;
|
|
37
|
-
photoId: number;
|
|
38
|
-
projectBidTypeId: number | null;
|
|
39
|
-
projectNumber: string;
|
|
40
|
-
projectOwnerTypeId: number | null;
|
|
41
|
-
projectRegionId: number | null;
|
|
42
|
-
stage: string;
|
|
43
|
-
startDate: string;
|
|
44
|
-
stateCode: string;
|
|
45
|
-
storeNumber?: string;
|
|
46
|
-
timeZone: string;
|
|
47
|
-
totalValue: string;
|
|
48
|
-
updatedAt: string;
|
|
49
|
-
zip: number;
|
|
50
|
-
}>;
|
|
51
|
-
export type ProcoreEditedImageUploadRequestPayload = {
|
|
52
|
-
projectExid: string;
|
|
53
|
-
companyId: number;
|
|
54
|
-
projectId: number;
|
|
55
|
-
snapshot: string;
|
|
56
|
-
categoryId?: number;
|
|
57
|
-
};
|
|
58
|
-
export type ProcoreProjectsAlbumsPayload = Array<{
|
|
59
|
-
count: number;
|
|
60
|
-
coverPhoto: string | null;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
id: number;
|
|
63
|
-
links: {
|
|
64
|
-
delete: string;
|
|
65
|
-
show: string;
|
|
66
|
-
update: string;
|
|
67
|
-
};
|
|
68
|
-
name: string;
|
|
69
|
-
position: number;
|
|
70
|
-
private: boolean;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
}>;
|
|
73
|
-
export type ProcoreProjectsAlbumsRequestPayload = {
|
|
74
|
-
companyId: number;
|
|
75
|
-
projectId: number;
|
|
76
|
-
};
|
package/dist/types/project.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
|
|
2
|
-
export type ProjectExid = Exid;
|
|
3
|
-
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
|
-
export type Project = {
|
|
5
|
-
id: string | number;
|
|
6
|
-
exid: ProjectExid;
|
|
7
|
-
name: string;
|
|
8
|
-
status?: ProjectStatus;
|
|
9
|
-
insertedAt?: string;
|
|
10
|
-
startedAt?: string;
|
|
11
|
-
timezone?: string;
|
|
12
|
-
zohoId?: string;
|
|
13
|
-
cameras?: Array<Camera | AdminCamera>;
|
|
14
|
-
featureFlags: Array<ProjectFeatureFlag>;
|
|
15
|
-
owner?: {
|
|
16
|
-
email?: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare enum ProjectStatus {
|
|
20
|
-
ToStart = "To Start",
|
|
21
|
-
InProgress = "In Progress",
|
|
22
|
-
Completed = "Completed",
|
|
23
|
-
NotAplicable = "Not Applicable"
|
|
24
|
-
}
|
|
25
|
-
export declare enum ProjectArchiveTier {
|
|
26
|
-
Full = "Full",
|
|
27
|
-
Partial = "Partial",
|
|
28
|
-
Minimal = "Minimal",
|
|
29
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
30
|
-
}
|
|
31
|
-
export type ProjectResponsePayload = {
|
|
32
|
-
data?: Project[];
|
|
33
|
-
};
|
|
34
|
-
export type Logo = {
|
|
35
|
-
name: string;
|
|
36
|
-
url: string;
|
|
37
|
-
};
|
|
38
|
-
export type ProjectLogoResponsePayload = Logo[];
|
|
39
|
-
export declare enum ProjectFeatureFlag {
|
|
40
|
-
AnprLegacy = "anpr_legacy",
|
|
41
|
-
DroneView = "drone_view",
|
|
42
|
-
Bim = "4d_bim",
|
|
43
|
-
BimItwin = "4d_bim_itwin",
|
|
44
|
-
BimForge = "4d_bim_forge",
|
|
45
|
-
ThreeSixtyView = "360_view",
|
|
46
|
-
NdaMc = "NDA/MC",
|
|
47
|
-
GateReport = "gate_report",
|
|
48
|
-
GateReportAutoVerify = "auto_publish",
|
|
49
|
-
GateReportMotionDetection = "motion_detection",
|
|
50
|
-
FullEmpty = "full_empty",
|
|
51
|
-
MediaHubSharing = "archives_sharing",
|
|
52
|
-
GateReportAnprBased = "anpr_sourced",
|
|
53
|
-
NoLicensePlate = "no_license_plate",
|
|
54
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
55
|
-
Go = "evercam_go"
|
|
56
|
-
}
|
|
57
|
-
export type ProjectBatteryReading = {
|
|
58
|
-
exid: number;
|
|
59
|
-
voltage: number;
|
|
60
|
-
lastSeen: DateType;
|
|
61
|
-
};
|
|
62
|
-
export type ThumbnailData = {
|
|
63
|
-
cameraExid: CameraExid;
|
|
64
|
-
custom: boolean;
|
|
65
|
-
image: string;
|
|
66
|
-
};
|
|
67
|
-
export type ProjectsQueryParams = PaginationParams & {
|
|
68
|
-
name: string;
|
|
69
|
-
exid: string;
|
|
70
|
-
status: ProjectStatus;
|
|
71
|
-
cameras: string;
|
|
72
|
-
featureFlags: Array<ProjectFeatureFlag>;
|
|
73
|
-
archived: string;
|
|
74
|
-
};
|
|
75
|
-
export type ProjectCreateRequestPayload = {
|
|
76
|
-
projectExid?: string;
|
|
77
|
-
projectName: string;
|
|
78
|
-
ownerId: number;
|
|
79
|
-
cameras: string[];
|
|
80
|
-
};
|
|
81
|
-
export type ProjectCreateResponse = {
|
|
82
|
-
name: string;
|
|
83
|
-
exid: string;
|
|
84
|
-
id: number;
|
|
85
|
-
userId: number;
|
|
86
|
-
zohoId: string;
|
|
87
|
-
};
|
|
88
|
-
export type ProjectUpdateRequestPayload = {
|
|
89
|
-
name: string;
|
|
90
|
-
timezone: string;
|
|
91
|
-
featureFlags: ProjectFeatureFlag[];
|
|
92
|
-
cameras: string[];
|
|
93
|
-
};
|
|
94
|
-
export type ProjectStatusStats = {
|
|
95
|
-
nil: number;
|
|
96
|
-
Completed: number;
|
|
97
|
-
"In Progress": number;
|
|
98
|
-
"Not Applicable": number;
|
|
99
|
-
"To Start": number;
|
|
100
|
-
};
|
|
101
|
-
export type ProjectUserProperty = {
|
|
102
|
-
active: boolean;
|
|
103
|
-
activeOneMonth: boolean;
|
|
104
|
-
cameraExid: string;
|
|
105
|
-
cameraName: string;
|
|
106
|
-
cameraRights: string;
|
|
107
|
-
email: string;
|
|
108
|
-
eventsCount: number;
|
|
109
|
-
fullname: string;
|
|
110
|
-
id: number;
|
|
111
|
-
lastSeenAt: DateTime;
|
|
112
|
-
persona: string;
|
|
113
|
-
};
|
|
114
|
-
export type ProjectUsers = {
|
|
115
|
-
cameras: {
|
|
116
|
-
exid: string;
|
|
117
|
-
name: string;
|
|
118
|
-
}[];
|
|
119
|
-
users: Record<string, ProjectUserProperty[]>;
|
|
120
|
-
};
|
package/dist/types/shares.d.ts
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import type { CameraExid, DateTime, DateType } from "@/types";
|
|
2
|
-
export type ShareRequest = {
|
|
3
|
-
cameraId: string;
|
|
4
|
-
createdAt: DateType | number;
|
|
5
|
-
email: string;
|
|
6
|
-
id: number;
|
|
7
|
-
rights: string;
|
|
8
|
-
sharerEmail: string;
|
|
9
|
-
sharerName: string;
|
|
10
|
-
userId: number;
|
|
11
|
-
};
|
|
12
|
-
export type Share = {
|
|
13
|
-
cameraId: string;
|
|
14
|
-
createdAt: DateType | number;
|
|
15
|
-
email: string;
|
|
16
|
-
fullname: string;
|
|
17
|
-
id: number;
|
|
18
|
-
lastSeenAt: DateType;
|
|
19
|
-
rights: string;
|
|
20
|
-
sessionCount: number;
|
|
21
|
-
sharerEmail: string;
|
|
22
|
-
sharerId: number;
|
|
23
|
-
sharerName: string;
|
|
24
|
-
userId: number;
|
|
25
|
-
};
|
|
26
|
-
export type ShareRequestsResponsePayload = {
|
|
27
|
-
shareRequests: ShareRequest[];
|
|
28
|
-
};
|
|
29
|
-
export type ShareOwner = {
|
|
30
|
-
email: string;
|
|
31
|
-
fullname: string;
|
|
32
|
-
lastSeenAt: DateType;
|
|
33
|
-
sessionCount: number;
|
|
34
|
-
};
|
|
35
|
-
export type SharesResponsePayload = {
|
|
36
|
-
owner: ShareOwner;
|
|
37
|
-
shares: Share[];
|
|
38
|
-
};
|
|
39
|
-
export type ShareDeletionRequestPayload = {
|
|
40
|
-
email?: string;
|
|
41
|
-
key?: string;
|
|
42
|
-
origin?: string;
|
|
43
|
-
};
|
|
44
|
-
export type SharedUsersResponsePayload = Array<{
|
|
45
|
-
email: string;
|
|
46
|
-
name: string;
|
|
47
|
-
}>;
|
|
48
|
-
export type ShareCreateRequestPayload = {
|
|
49
|
-
email: string[] | string;
|
|
50
|
-
message?: string;
|
|
51
|
-
permission?: string;
|
|
52
|
-
rights: string;
|
|
53
|
-
apiId?: string;
|
|
54
|
-
apiKey?: string;
|
|
55
|
-
};
|
|
56
|
-
export type ShareProjectCamerasRequestPayload = {
|
|
57
|
-
email: string[];
|
|
58
|
-
cameraExids: CameraExid[];
|
|
59
|
-
message: string;
|
|
60
|
-
permission?: string;
|
|
61
|
-
rights: string;
|
|
62
|
-
};
|
|
63
|
-
export type ShareCreateResponsePayload = {
|
|
64
|
-
shares: Share[];
|
|
65
|
-
shareRequests: ShareRequest[];
|
|
66
|
-
};
|
|
67
|
-
export type ShareRequestByKeyResponsePayload = {
|
|
68
|
-
shareRequests: Array<{
|
|
69
|
-
id: string;
|
|
70
|
-
email: string;
|
|
71
|
-
rights: string;
|
|
72
|
-
cameraId: string;
|
|
73
|
-
sharerName: string;
|
|
74
|
-
userId: string;
|
|
75
|
-
sharerEmail: string;
|
|
76
|
-
createdAt: DateType;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
export type ResendShareRequestPayload = {
|
|
80
|
-
email: string;
|
|
81
|
-
apiId?: string;
|
|
82
|
-
apiKey?: string;
|
|
83
|
-
};
|
|
84
|
-
export declare enum SharePermission {
|
|
85
|
-
Minimum = "minimum",
|
|
86
|
-
Share = "minimal+share",
|
|
87
|
-
Full = "full",
|
|
88
|
-
Custom = "custom"
|
|
89
|
-
}
|
|
90
|
-
export declare enum ShareType {
|
|
91
|
-
Share = "share",
|
|
92
|
-
Request = "request"
|
|
93
|
-
}
|
|
94
|
-
export declare enum ShareRequestStatus {
|
|
95
|
-
All = "",
|
|
96
|
-
Pending = -1,
|
|
97
|
-
Cancelled = -2,
|
|
98
|
-
Failed = -3,
|
|
99
|
-
Used = 1
|
|
100
|
-
}
|
|
101
|
-
export declare enum ShareVisibility {
|
|
102
|
-
PublicDiscoverable = "publicDiscoverable",
|
|
103
|
-
PublicUndiscoverable = "publicUndiscoverable",
|
|
104
|
-
Private = "private"
|
|
105
|
-
}
|
|
106
|
-
export type ProjectShare = {
|
|
107
|
-
id: number;
|
|
108
|
-
projectId: string;
|
|
109
|
-
userId: number;
|
|
110
|
-
email: string;
|
|
111
|
-
fullname: string;
|
|
112
|
-
sharerId: number;
|
|
113
|
-
sharerEmail: string;
|
|
114
|
-
sharerName: string;
|
|
115
|
-
role: "member" | "admin";
|
|
116
|
-
cameras: Record<string, string>;
|
|
117
|
-
message: string | null;
|
|
118
|
-
updatedAt: DateType;
|
|
119
|
-
insertedAt: DateType;
|
|
120
|
-
};
|
|
121
|
-
export type ProjectShareRequest = ProjectShare;
|
|
122
|
-
export type ProjectShareResponse = {
|
|
123
|
-
projectShares: ProjectShare[];
|
|
124
|
-
projectShareRequests: ProjectShareRequest[];
|
|
125
|
-
};
|
|
126
|
-
export type AdminShare = {
|
|
127
|
-
sharerId: number;
|
|
128
|
-
sharerFullname: string;
|
|
129
|
-
sharerApiId: string;
|
|
130
|
-
sharerApiKey: string;
|
|
131
|
-
shareeId: number;
|
|
132
|
-
shareeFullname: string;
|
|
133
|
-
shareeApiId: string;
|
|
134
|
-
shareeApiKey: string;
|
|
135
|
-
shareeEmail: string;
|
|
136
|
-
cameraId: number;
|
|
137
|
-
exid: string;
|
|
138
|
-
projectId: string;
|
|
139
|
-
name: string;
|
|
140
|
-
id: number;
|
|
141
|
-
message: string;
|
|
142
|
-
createdAt: DateType;
|
|
143
|
-
};
|
|
144
|
-
export type CameraShareRequestPayload = {
|
|
145
|
-
email: string[];
|
|
146
|
-
rights: string;
|
|
147
|
-
message?: string;
|
|
148
|
-
};
|
|
149
|
-
export type ShareQueryParams = {
|
|
150
|
-
exid: string;
|
|
151
|
-
sharerFullname: string;
|
|
152
|
-
shareeFullname: string;
|
|
153
|
-
shareeEmail: string;
|
|
154
|
-
};
|
|
155
|
-
export type CameraShare = {
|
|
156
|
-
sharerId: number;
|
|
157
|
-
sharerFullname: string;
|
|
158
|
-
sharerApiId: string;
|
|
159
|
-
sharerApiKey: string;
|
|
160
|
-
shareeId: number;
|
|
161
|
-
shareeFullname: string;
|
|
162
|
-
shareeApiId: string;
|
|
163
|
-
shareeApiKey: string;
|
|
164
|
-
shareeEmail: string;
|
|
165
|
-
cameraId: number;
|
|
166
|
-
exid: string;
|
|
167
|
-
projectId: string;
|
|
168
|
-
name: string;
|
|
169
|
-
id: number;
|
|
170
|
-
message: string;
|
|
171
|
-
createdAt: DateTime;
|
|
172
|
-
};
|
|
173
|
-
export type CameraShareRequestsQueryParams = {
|
|
174
|
-
shareeEmail: string;
|
|
175
|
-
camera: string;
|
|
176
|
-
sharer: string;
|
|
177
|
-
status: string;
|
|
178
|
-
};
|
|
179
|
-
export type CameraShareRequest = {
|
|
180
|
-
id: number;
|
|
181
|
-
shareeEmail: string;
|
|
182
|
-
camera: string;
|
|
183
|
-
sharer: string;
|
|
184
|
-
message: number;
|
|
185
|
-
rights: string;
|
|
186
|
-
status: number;
|
|
187
|
-
projectId: string;
|
|
188
|
-
cameraExid: string;
|
|
189
|
-
apiId: string;
|
|
190
|
-
apiKey: number;
|
|
191
|
-
createdAt: DateTime;
|
|
192
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
|
|
2
|
-
export declare enum ExNvrHealthCheckTaskId {
|
|
3
|
-
ExNvrLogin = "exNvrLogin",
|
|
4
|
-
ExNvrConfigCheck = "exNvrGetDeviceInfo",
|
|
5
|
-
ExNvrSystemStatus = "exNvrSystemStatus",
|
|
6
|
-
ExNvrRecordings = "exNvrGetRecordings",
|
|
7
|
-
CameraSystemConfigCheck = "getCameraSystemInfo",
|
|
8
|
-
CameraTimeConfigCheck = "getCameraTimeInfo",
|
|
9
|
-
CameraStreamsConfigCheck = "getCameraStreamsInfo",
|
|
10
|
-
CameraNetworkConfigCheck = "getCameraNetworkInfo",
|
|
11
|
-
CameraOsdConfigCheck = "getCameraOsdInfo",
|
|
12
|
-
CameraStorageConfigCheck = "getCameraStorageInfo"
|
|
13
|
-
}
|
|
14
|
-
export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
|
|
15
|
-
export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
|
|
16
|
-
id: T;
|
|
17
|
-
status: TaskStatus;
|
|
18
|
-
duration?: number;
|
|
19
|
-
result?: ExNvrHealthCheckTaskResult<T>;
|
|
20
|
-
error?: Error;
|
|
21
|
-
};
|
|
22
|
-
export type ExNvrLoginResponse = {
|
|
23
|
-
accessToken: string;
|
|
24
|
-
};
|
|
25
|
-
export type ExNvrRecordingInterval = {
|
|
26
|
-
active: boolean;
|
|
27
|
-
startDate: DateTime_Z_micros;
|
|
28
|
-
endDate: DateTime_Z_micros;
|
|
29
|
-
};
|
|
30
|
-
export type ExNvrDeviceConfig = {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
type: string;
|
|
34
|
-
state: ExNvrDeviceState;
|
|
35
|
-
credentials: {
|
|
36
|
-
password: string;
|
|
37
|
-
username: string;
|
|
38
|
-
};
|
|
39
|
-
mac: string;
|
|
40
|
-
url: string;
|
|
41
|
-
insertedAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
settings: {
|
|
44
|
-
storageAddress: string;
|
|
45
|
-
overrideOnFullDisk: boolean;
|
|
46
|
-
overrideOnFullDiskThreshold: number;
|
|
47
|
-
generateBif: boolean;
|
|
48
|
-
};
|
|
49
|
-
vendor: string;
|
|
50
|
-
model: string;
|
|
51
|
-
streamConfig: {
|
|
52
|
-
filename: string | null;
|
|
53
|
-
duration: string | null;
|
|
54
|
-
temporaryPath: string | null;
|
|
55
|
-
snapshotUri: string;
|
|
56
|
-
streamUri: string;
|
|
57
|
-
subStreamUri: string;
|
|
58
|
-
};
|
|
59
|
-
timezone: string;
|
|
60
|
-
};
|
|
61
|
-
export declare enum ExNvrFootageAvailableStatus {
|
|
62
|
-
Active = "Active",
|
|
63
|
-
NotActive = "Not Active",
|
|
64
|
-
NotAvailable = "Not Available"
|
|
65
|
-
}
|
|
66
|
-
export declare enum ExNvrDeviceState {
|
|
67
|
-
Recording = "recording",
|
|
68
|
-
Failed = "failed",
|
|
69
|
-
Stopped = "stopped"
|
|
70
|
-
}
|
|
71
|
-
export type ExNvrCpuStatus = {
|
|
72
|
-
load: number[];
|
|
73
|
-
numCores: number;
|
|
74
|
-
};
|
|
75
|
-
export type ExNvrMemoryStatus = {
|
|
76
|
-
systemTotalMemory: number;
|
|
77
|
-
freeMemory: number;
|
|
78
|
-
totalMemory: number;
|
|
79
|
-
bufferedMemory: number;
|
|
80
|
-
cachedMemory: number;
|
|
81
|
-
totalSwap: number;
|
|
82
|
-
freeSwap: number;
|
|
83
|
-
availableMemory: number;
|
|
84
|
-
};
|
|
85
|
-
export type ExNvrSolarChargerStatus = {
|
|
86
|
-
v: number;
|
|
87
|
-
vpv: number;
|
|
88
|
-
ppv: number;
|
|
89
|
-
i: number;
|
|
90
|
-
il: number;
|
|
91
|
-
load: string;
|
|
92
|
-
relayState: string;
|
|
93
|
-
offReason: number;
|
|
94
|
-
h19: number;
|
|
95
|
-
h20: number;
|
|
96
|
-
h21: number;
|
|
97
|
-
h22: number;
|
|
98
|
-
h23: number;
|
|
99
|
-
err: number;
|
|
100
|
-
cs: string;
|
|
101
|
-
fw: string;
|
|
102
|
-
pid: string;
|
|
103
|
-
serialNumber: string;
|
|
104
|
-
};
|
|
105
|
-
export type ExNvrSystemStatus = {
|
|
106
|
-
version: string;
|
|
107
|
-
cpu: ExNvrCpuStatus;
|
|
108
|
-
memory: ExNvrMemoryStatus;
|
|
109
|
-
solarCharger: ExNvrSolarChargerStatus;
|
|
110
|
-
};
|
|
111
|
-
export declare enum ExNvrMetricId {
|
|
112
|
-
CpuLoad = "cpu_load",
|
|
113
|
-
RamUsage = "ram_usage",
|
|
114
|
-
SwapUsage = "swap_usage"
|
|
115
|
-
}
|
|
116
|
-
export type ExNvrMetric = KitMetricData & {
|
|
117
|
-
metricId: ExNvrMetricId;
|
|
118
|
-
value: number;
|
|
119
|
-
};
|
package/dist/types/time.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type DateType = Date | string | number;
|
|
2
|
-
type YYYY = number;
|
|
3
|
-
type MM = number;
|
|
4
|
-
type DD = number;
|
|
5
|
-
type HH = number;
|
|
6
|
-
type mm = number;
|
|
7
|
-
type ss = number;
|
|
8
|
-
type microS = number;
|
|
9
|
-
export type Date_YYYY = `${YYYY}` | string;
|
|
10
|
-
export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
|
|
11
|
-
export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
|
|
12
|
-
export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
|
|
13
|
-
export type Date_HH = `${HH}` | string;
|
|
14
|
-
export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
|
|
15
|
-
export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
|
|
16
|
-
export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
|
|
17
|
-
export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
|
|
18
|
-
export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
|
|
19
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Camera, Media } from "@/types";
|
|
2
|
-
export declare enum VideoWallItemType {
|
|
3
|
-
LiveView = "live",
|
|
4
|
-
Video = "video",
|
|
5
|
-
Image = "image"
|
|
6
|
-
}
|
|
7
|
-
export type VideoWallItem<T extends Camera | Media> = {
|
|
8
|
-
value: T;
|
|
9
|
-
type: VideoWallItemType;
|
|
10
|
-
};
|
|
11
|
-
export type VideoWallPresetItemConfig = {
|
|
12
|
-
camera: Camera;
|
|
13
|
-
h: number;
|
|
14
|
-
i: string | number;
|
|
15
|
-
moved: boolean;
|
|
16
|
-
w: number;
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
export type VideoWallPreset = {
|
|
21
|
-
name?: string;
|
|
22
|
-
configuration: Array<VideoWallPresetItemConfig>;
|
|
23
|
-
};
|
|
24
|
-
export type VideoWallPresetItem = {
|
|
25
|
-
i: string | number;
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
w: number;
|
|
29
|
-
h: number;
|
|
30
|
-
camera: Camera;
|
|
31
|
-
weather?: Record<string, unknown>;
|
|
32
|
-
media?: Media;
|
|
33
|
-
};
|