@evercam/api 1.0.0-591fdcb25 → 1.0.0-5c25db0fc
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +120 -63
- package/dist/api/api/aiApi.d.ts +128 -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 +1 -1
- 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 +337 -0
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -4
- 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} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- 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 +187 -41
- package/dist/{types → api/types}/anpr.d.ts +26 -13
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +61 -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 -6
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +108 -74
- package/dist/{types → api/types}/comments.d.ts +21 -9
- 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 +7 -5
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- 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 +124 -0
- package/dist/{types → api/types}/drone.d.ts +1 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +10 -1
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +64 -9
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +79 -0
- 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 +245 -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}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +12 -10
- 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/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -5
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +3 -4
- package/dist/{types → api/types}/user.d.ts +105 -36
- 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 +96 -16
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1558 -877
- 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 +275 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -10
- package/dist/api/aiApi.d.ts +0 -121
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -273
- package/dist/api/ingestApi.d.ts +0 -68
- package/dist/api/videoWallApi.d.ts +0 -9
- 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/company.d.ts +0 -46
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -124
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -123
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -87
- /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}/map.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/roi.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.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/planner.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare enum EMapTypes {
|
|
2
|
-
Blank = "Blank",
|
|
3
|
-
Satellite = "Satellite",
|
|
4
|
-
Street = "Street",
|
|
5
|
-
GoogleSatellite = "hybrid",
|
|
6
|
-
GoogleStreet = "roadmap",
|
|
7
|
-
GoogleTerrain = "terrain"
|
|
8
|
-
}
|
|
9
|
-
export declare enum EMarkers {
|
|
10
|
-
CameraMarker = "cameraMarker",
|
|
11
|
-
ThreeSixtyMarker = "threeSixtyMarkers"
|
|
12
|
-
}
|
|
13
|
-
export declare enum EPageType {
|
|
14
|
-
List = "list",
|
|
15
|
-
Item = "item"
|
|
16
|
-
}
|
|
17
|
-
export declare enum EPaths {
|
|
18
|
-
Home = "/",
|
|
19
|
-
Session = "/session"
|
|
20
|
-
}
|
|
21
|
-
export declare enum EProjectItems {
|
|
22
|
-
Camera = "camera",
|
|
23
|
-
Overlay = "overlay"
|
|
24
|
-
}
|
|
25
|
-
export declare enum ERoles {
|
|
26
|
-
Admin = "admin",
|
|
27
|
-
User = "user"
|
|
28
|
-
}
|
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,124 +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
|
-
camerasRestrictionType?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare enum ProjectStatus {
|
|
21
|
-
ToStart = "To Start",
|
|
22
|
-
InProgress = "In Progress",
|
|
23
|
-
Completed = "Completed",
|
|
24
|
-
NotAplicable = "Not Applicable"
|
|
25
|
-
}
|
|
26
|
-
export declare enum ProjectArchiveTier {
|
|
27
|
-
Full = "Full",
|
|
28
|
-
Partial = "Partial",
|
|
29
|
-
Minimal = "Minimal",
|
|
30
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
31
|
-
}
|
|
32
|
-
export type ProjectResponsePayload = {
|
|
33
|
-
data?: Project[];
|
|
34
|
-
};
|
|
35
|
-
export type UpdateCameraRestrictionPayload = {
|
|
36
|
-
isAccessRestricted?: boolean;
|
|
37
|
-
};
|
|
38
|
-
export type Logo = {
|
|
39
|
-
name: string;
|
|
40
|
-
url: string;
|
|
41
|
-
};
|
|
42
|
-
export type ProjectLogoResponsePayload = Logo[];
|
|
43
|
-
export declare enum ProjectFeatureFlag {
|
|
44
|
-
AnprLegacy = "anpr_legacy",
|
|
45
|
-
DroneView = "drone_view",
|
|
46
|
-
Bim = "4d_bim",
|
|
47
|
-
BimItwin = "4d_bim_itwin",
|
|
48
|
-
BimForge = "4d_bim_forge",
|
|
49
|
-
ThreeSixtyView = "360_view",
|
|
50
|
-
NdaMc = "NDA/MC",
|
|
51
|
-
GateReport = "gate_report",
|
|
52
|
-
GateReportAutoVerify = "auto_publish",
|
|
53
|
-
GateReportMotionDetection = "motion_detection",
|
|
54
|
-
FullEmpty = "full_empty",
|
|
55
|
-
MediaHubSharing = "archives_sharing",
|
|
56
|
-
GateReportAnprBased = "anpr_sourced",
|
|
57
|
-
NoLicensePlate = "no_license_plate",
|
|
58
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
59
|
-
SmartSearch = "smart_search"
|
|
60
|
-
}
|
|
61
|
-
export type ProjectBatteryReading = {
|
|
62
|
-
exid: number;
|
|
63
|
-
voltage: number;
|
|
64
|
-
lastSeen: DateType;
|
|
65
|
-
};
|
|
66
|
-
export type ThumbnailData = {
|
|
67
|
-
cameraExid: CameraExid;
|
|
68
|
-
custom: boolean;
|
|
69
|
-
image: string;
|
|
70
|
-
};
|
|
71
|
-
export type ProjectsQueryParams = PaginationParams & {
|
|
72
|
-
name: string;
|
|
73
|
-
exid: string;
|
|
74
|
-
status: ProjectStatus;
|
|
75
|
-
cameras: string;
|
|
76
|
-
featureFlags: Array<ProjectFeatureFlag>;
|
|
77
|
-
archived: string;
|
|
78
|
-
};
|
|
79
|
-
export type ProjectCreateRequestPayload = {
|
|
80
|
-
projectExid?: string;
|
|
81
|
-
projectName: string;
|
|
82
|
-
ownerId: number;
|
|
83
|
-
cameras: string[];
|
|
84
|
-
};
|
|
85
|
-
export type ProjectCreateResponse = {
|
|
86
|
-
name: string;
|
|
87
|
-
exid: string;
|
|
88
|
-
id: number;
|
|
89
|
-
userId: number;
|
|
90
|
-
zohoId: string;
|
|
91
|
-
};
|
|
92
|
-
export type ProjectUpdateRequestPayload = {
|
|
93
|
-
name: string;
|
|
94
|
-
timezone: string;
|
|
95
|
-
featureFlags: ProjectFeatureFlag[];
|
|
96
|
-
cameras: string[];
|
|
97
|
-
};
|
|
98
|
-
export type ProjectStatusStats = {
|
|
99
|
-
nil: number;
|
|
100
|
-
Completed: number;
|
|
101
|
-
"In Progress": number;
|
|
102
|
-
"Not Applicable": number;
|
|
103
|
-
"To Start": number;
|
|
104
|
-
};
|
|
105
|
-
export type ProjectUserProperty = {
|
|
106
|
-
active: boolean;
|
|
107
|
-
activeOneMonth: boolean;
|
|
108
|
-
cameraExid: string;
|
|
109
|
-
cameraName: string;
|
|
110
|
-
cameraRights: string;
|
|
111
|
-
email: string;
|
|
112
|
-
eventsCount: number;
|
|
113
|
-
fullname: string;
|
|
114
|
-
id: number;
|
|
115
|
-
lastSeenAt: DateTime;
|
|
116
|
-
persona: string;
|
|
117
|
-
};
|
|
118
|
-
export type ProjectUsers = {
|
|
119
|
-
cameras: {
|
|
120
|
-
exid: string;
|
|
121
|
-
name: string;
|
|
122
|
-
}[];
|
|
123
|
-
users: Record<string, ProjectUserProperty[]>;
|
|
124
|
-
};
|
package/dist/types/shares.d.ts
DELETED
|
@@ -1,196 +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
|
-
isUserAccessRestricted: boolean;
|
|
26
|
-
};
|
|
27
|
-
export type ShareRequestsResponsePayload = {
|
|
28
|
-
shareRequests: ShareRequest[];
|
|
29
|
-
};
|
|
30
|
-
export type ShareOwner = {
|
|
31
|
-
email: string;
|
|
32
|
-
fullname: string;
|
|
33
|
-
lastSeenAt: DateType;
|
|
34
|
-
sessionCount: number;
|
|
35
|
-
};
|
|
36
|
-
export type SharesResponsePayload = {
|
|
37
|
-
owner: ShareOwner;
|
|
38
|
-
shares: Share[];
|
|
39
|
-
};
|
|
40
|
-
export type ShareDeletionRequestPayload = {
|
|
41
|
-
email?: string;
|
|
42
|
-
key?: string;
|
|
43
|
-
origin?: string;
|
|
44
|
-
};
|
|
45
|
-
export type SharedUsersResponsePayload = Array<{
|
|
46
|
-
email: string;
|
|
47
|
-
name: string;
|
|
48
|
-
}>;
|
|
49
|
-
export type ShareCreateRequestPayload = {
|
|
50
|
-
email: string[] | string;
|
|
51
|
-
message?: string;
|
|
52
|
-
permission?: string;
|
|
53
|
-
rights: string;
|
|
54
|
-
apiId?: string;
|
|
55
|
-
apiKey?: string;
|
|
56
|
-
};
|
|
57
|
-
export type ShareProjectCamerasRequestPayload = {
|
|
58
|
-
email: string[];
|
|
59
|
-
cameraExids: CameraExid[];
|
|
60
|
-
message: string;
|
|
61
|
-
permission?: string;
|
|
62
|
-
rights: string;
|
|
63
|
-
};
|
|
64
|
-
export type UpdateUserRestrictionPayload = {
|
|
65
|
-
email: string[];
|
|
66
|
-
isUserAccessRestricted: boolean;
|
|
67
|
-
};
|
|
68
|
-
export type ShareCreateResponsePayload = {
|
|
69
|
-
shares: Share[];
|
|
70
|
-
shareRequests: ShareRequest[];
|
|
71
|
-
};
|
|
72
|
-
export type ShareRequestByKeyResponsePayload = {
|
|
73
|
-
shareRequests: Array<{
|
|
74
|
-
id: string;
|
|
75
|
-
email: string;
|
|
76
|
-
rights: string;
|
|
77
|
-
cameraId: string;
|
|
78
|
-
sharerName: string;
|
|
79
|
-
userId: string;
|
|
80
|
-
sharerEmail: string;
|
|
81
|
-
createdAt: DateType;
|
|
82
|
-
}>;
|
|
83
|
-
};
|
|
84
|
-
export type ResendShareRequestPayload = {
|
|
85
|
-
email: string;
|
|
86
|
-
apiId?: string;
|
|
87
|
-
apiKey?: string;
|
|
88
|
-
};
|
|
89
|
-
export declare enum SharePermission {
|
|
90
|
-
Minimum = "minimum",
|
|
91
|
-
Share = "minimal+share",
|
|
92
|
-
Full = "full",
|
|
93
|
-
Custom = "custom"
|
|
94
|
-
}
|
|
95
|
-
export declare enum ShareType {
|
|
96
|
-
Share = "share",
|
|
97
|
-
Request = "request"
|
|
98
|
-
}
|
|
99
|
-
export declare enum ShareRequestStatus {
|
|
100
|
-
Pending = -1,
|
|
101
|
-
Cancelled = -2,
|
|
102
|
-
Failed = -3,
|
|
103
|
-
Used = 1
|
|
104
|
-
}
|
|
105
|
-
export declare enum ShareVisibility {
|
|
106
|
-
PublicDiscoverable = "publicDiscoverable",
|
|
107
|
-
PublicUndiscoverable = "publicUndiscoverable",
|
|
108
|
-
Private = "private"
|
|
109
|
-
}
|
|
110
|
-
export type ProjectShare = {
|
|
111
|
-
id: number;
|
|
112
|
-
projectId: string;
|
|
113
|
-
userId: number;
|
|
114
|
-
email: string;
|
|
115
|
-
fullname: string;
|
|
116
|
-
sharerId: number;
|
|
117
|
-
sharerEmail: string;
|
|
118
|
-
sharerName: string;
|
|
119
|
-
role: "member" | "admin";
|
|
120
|
-
cameras: Record<string, string>;
|
|
121
|
-
message: string | null;
|
|
122
|
-
updatedAt: DateType;
|
|
123
|
-
insertedAt: DateType;
|
|
124
|
-
};
|
|
125
|
-
export type ProjectShareRequest = ProjectShare;
|
|
126
|
-
export type ProjectShareResponse = {
|
|
127
|
-
projectShares: ProjectShare[];
|
|
128
|
-
projectShareRequests: ProjectShareRequest[];
|
|
129
|
-
};
|
|
130
|
-
export type AdminShare = {
|
|
131
|
-
sharerId: number;
|
|
132
|
-
sharerFullname: string;
|
|
133
|
-
sharerApiId: string;
|
|
134
|
-
sharerApiKey: string;
|
|
135
|
-
shareeId: number;
|
|
136
|
-
shareeFullname: string;
|
|
137
|
-
shareeApiId: string;
|
|
138
|
-
shareeApiKey: string;
|
|
139
|
-
shareeEmail: string;
|
|
140
|
-
cameraId: number;
|
|
141
|
-
exid: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
name: string;
|
|
144
|
-
id: number;
|
|
145
|
-
message: string;
|
|
146
|
-
createdAt: DateType;
|
|
147
|
-
};
|
|
148
|
-
export type CameraShareRequestPayload = {
|
|
149
|
-
email: string[];
|
|
150
|
-
rights: string;
|
|
151
|
-
message?: string;
|
|
152
|
-
};
|
|
153
|
-
export type ShareQueryParams = {
|
|
154
|
-
exid: string;
|
|
155
|
-
sharerFullname: string;
|
|
156
|
-
shareeFullname: string;
|
|
157
|
-
shareeEmail: string;
|
|
158
|
-
};
|
|
159
|
-
export type CameraShare = {
|
|
160
|
-
sharerId: number;
|
|
161
|
-
sharerFullname: string;
|
|
162
|
-
sharerApiId: string;
|
|
163
|
-
sharerApiKey: string;
|
|
164
|
-
shareeId: number;
|
|
165
|
-
shareeFullname: string;
|
|
166
|
-
shareeApiId: string;
|
|
167
|
-
shareeApiKey: string;
|
|
168
|
-
shareeEmail: string;
|
|
169
|
-
cameraId: number;
|
|
170
|
-
exid: string;
|
|
171
|
-
projectId: string;
|
|
172
|
-
name: string;
|
|
173
|
-
id: number;
|
|
174
|
-
message: string;
|
|
175
|
-
createdAt: DateTime;
|
|
176
|
-
};
|
|
177
|
-
export type CameraShareRequestsQueryParams = {
|
|
178
|
-
shareeEmail: string;
|
|
179
|
-
camera: string;
|
|
180
|
-
sharer: string;
|
|
181
|
-
status: string;
|
|
182
|
-
};
|
|
183
|
-
export type CameraShareRequest = {
|
|
184
|
-
id: number;
|
|
185
|
-
shareeEmail: string;
|
|
186
|
-
camera: string;
|
|
187
|
-
sharer: string;
|
|
188
|
-
message: number;
|
|
189
|
-
rights: string;
|
|
190
|
-
status: number;
|
|
191
|
-
projectId: string;
|
|
192
|
-
cameraExid: string;
|
|
193
|
-
apiId: string;
|
|
194
|
-
apiKey: number;
|
|
195
|
-
createdAt: DateTime;
|
|
196
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { BBox, BoundingBox, DateType, DetectionLabel, Schedule } from "@evercam/api/types";
|
|
2
|
-
export declare enum SiteAnalyticsMode {
|
|
3
|
-
Detections = "detections",
|
|
4
|
-
Segments = "segments"
|
|
5
|
-
}
|
|
6
|
-
export type SmartSearchOptionData = {
|
|
7
|
-
id?: string;
|
|
8
|
-
type: SmartSearchQueryComponentType;
|
|
9
|
-
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
|
|
10
|
-
};
|
|
11
|
-
export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
|
|
12
|
-
export declare enum SmartSearchQueryComponentType {
|
|
13
|
-
Condition = "condition",
|
|
14
|
-
Object = "object",
|
|
15
|
-
Area = "in_area",
|
|
16
|
-
Time = "time",
|
|
17
|
-
Operator = "operator",
|
|
18
|
-
Camera = "camera",
|
|
19
|
-
DateRange = "date_range"
|
|
20
|
-
}
|
|
21
|
-
export type SmartSearchDateRange = {
|
|
22
|
-
start: DateType;
|
|
23
|
-
end: DateType;
|
|
24
|
-
};
|
|
25
|
-
export type SmartSearchQueryComponentData = {
|
|
26
|
-
id: string;
|
|
27
|
-
type: SmartSearchQueryComponentType;
|
|
28
|
-
parts: [SmartSearchQueryPart];
|
|
29
|
-
};
|
|
30
|
-
export declare enum SmartSearchCondition {
|
|
31
|
-
InArea = "in_area",
|
|
32
|
-
Intersects = "intersects",
|
|
33
|
-
Time = "time"
|
|
34
|
-
}
|
|
35
|
-
export type SmartSearchConditionData = {
|
|
36
|
-
condition: SmartSearchCondition;
|
|
37
|
-
value: string | BoundingBox | DetectionLabel | Date;
|
|
38
|
-
};
|
|
39
|
-
export type SmartSearchQueryCondition = {
|
|
40
|
-
type: SmartSearchQueryConditionTypes;
|
|
41
|
-
target: SmartSearchQueryTargets;
|
|
42
|
-
operator?: SmartSearchQueryOperators;
|
|
43
|
-
attribute?: string;
|
|
44
|
-
value: string | number | string[];
|
|
45
|
-
reference?: {
|
|
46
|
-
target: SmartSearchQueryTargets;
|
|
47
|
-
attribute: string;
|
|
48
|
-
value: string | number | string[];
|
|
49
|
-
};
|
|
50
|
-
polygon?: BBox;
|
|
51
|
-
};
|
|
52
|
-
export type SmartSearchQuery = {
|
|
53
|
-
returnTargets: SmartSearchQueryTargets[];
|
|
54
|
-
rulesLogic: SmartSearchOperatorType;
|
|
55
|
-
rules: {
|
|
56
|
-
logic: SmartSearchOperatorType;
|
|
57
|
-
conditions: SmartSearchQueryCondition[];
|
|
58
|
-
}[];
|
|
59
|
-
returnType: SmartSearchQueryReturnType;
|
|
60
|
-
};
|
|
61
|
-
export declare enum SmartSearchQueryTargets {
|
|
62
|
-
Tracking = "tracking",
|
|
63
|
-
Segments = "segments"
|
|
64
|
-
}
|
|
65
|
-
export declare enum SmartSearchQueryReturnType {
|
|
66
|
-
All = "all",
|
|
67
|
-
FirstLastSeen = "first_last_seen"
|
|
68
|
-
}
|
|
69
|
-
export declare enum SmartSearchOperatorType {
|
|
70
|
-
And = "AND",
|
|
71
|
-
Or = "OR"
|
|
72
|
-
}
|
|
73
|
-
export declare enum SmartSearchQueryOperators {
|
|
74
|
-
Near = "near",
|
|
75
|
-
Far = "far",
|
|
76
|
-
Intersects = "intersects",
|
|
77
|
-
DoesNotIntersect = "does_not_intersect",
|
|
78
|
-
Inside = "inside",
|
|
79
|
-
Outside = "outside",
|
|
80
|
-
DistanceBelow = "distance_below",
|
|
81
|
-
DistanceAbove = "distance_above",
|
|
82
|
-
Area = "in_area",
|
|
83
|
-
Equal = "="
|
|
84
|
-
}
|
|
85
|
-
export declare enum SmartSearchQueryConditionTypes {
|
|
86
|
-
Selection = "selection",
|
|
87
|
-
Spatial = "spatial",
|
|
88
|
-
Area = "area",
|
|
89
|
-
Iou = "iou",
|
|
90
|
-
Near = "near",
|
|
91
|
-
Far = "far"
|
|
92
|
-
}
|
|
93
|
-
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
94
|
-
export type SmartSearchQueryParams = {
|
|
95
|
-
cameraExid: string;
|
|
96
|
-
name: string;
|
|
97
|
-
description: string;
|
|
98
|
-
query: {
|
|
99
|
-
req: SmartSearchQuery;
|
|
100
|
-
timeSchedule?: Schedule | undefined;
|
|
101
|
-
};
|
|
102
|
-
fromDate?: DateType;
|
|
103
|
-
toDate?: DateType;
|
|
104
|
-
author: string;
|
|
105
|
-
createdAt: DateType;
|
|
106
|
-
params?: Record<string, unknown>;
|
|
107
|
-
};
|
|
108
|
-
export type SavedQuery = {
|
|
109
|
-
description: string;
|
|
110
|
-
id: number;
|
|
111
|
-
query: {
|
|
112
|
-
req: SmartSearchQuery;
|
|
113
|
-
timeSchedule?: Schedule | undefined;
|
|
114
|
-
};
|
|
115
|
-
params: Record<string, string>;
|
|
116
|
-
components?: Omit<SmartSearchOptionData, "id">[];
|
|
117
|
-
toDate?: DateType;
|
|
118
|
-
createdAt?: DateType;
|
|
119
|
-
cameraExid: string;
|
|
120
|
-
name: string;
|
|
121
|
-
fromDate?: DateType;
|
|
122
|
-
author?: string;
|
|
123
|
-
};
|
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
|
-
};
|