@evercam/api 1.0.0-c4d7a9505 → 1.0.0-c540355aa
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 +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +221 -0
- package/dist/api/api/adminApi.d.ts +394 -0
- package/dist/api/api/aiApi.d.ts +251 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- 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 +360 -0
- package/dist/api/api/evercamLabsApi.d.ts +34 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +14 -0
- package/dist/api/api/ingestApi.d.ts +166 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/reportsApi.d.ts +15 -0
- 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 +365 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +219 -56
- package/dist/{types → api/types}/anpr.d.ts +55 -13
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +242 -0
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +123 -0
- package/dist/{types → api/types}/axios.d.ts +32 -11
- package/dist/{types → api/types}/bim.d.ts +39 -10
- package/dist/{types → api/types}/camera.d.ts +139 -116
- package/dist/api/types/comments.d.ts +64 -0
- package/dist/api/types/company.d.ts +114 -0
- package/dist/{types → api/types}/compare.d.ts +21 -6
- package/dist/{types → api/types}/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +23 -33
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/{types → api/types}/errors.d.ts +30 -1
- package/dist/{types → api/types}/gateReport.d.ts +49 -168
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +20 -3
- package/dist/api/types/ingest.d.ts +301 -0
- package/dist/{types → api/types}/kit.d.ts +103 -105
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +9 -3
- package/dist/api/types/notification.d.ts +107 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +80 -0
- package/dist/api/types/planner.d.ts +125 -0
- package/dist/api/types/posthog.d.ts +53 -0
- package/dist/{types → api/types}/procore.d.ts +26 -16
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +259 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +3 -11
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +43 -31
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +78 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +104 -0
- package/dist/api/types/socket.d.ts +4 -0
- 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 +27 -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 +7 -11
- package/dist/{types → api/types}/user.d.ts +121 -40
- 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 +2934 -1067
- 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 +540 -0
- 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 +41 -0
- package/dist/shared/types/index.d.ts +9 -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 +10 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +7 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -10
- package/dist/api/adminApi.d.ts +0 -313
- package/dist/api/aiApi.d.ts +0 -139
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -294
- package/dist/api/evercamLabsApi.d.ts +0 -42
- package/dist/api/ingestApi.d.ts +0 -68
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -87
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -43
- package/dist/types/company.d.ts +0 -46
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/copilot.d.ts +0 -157
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/project.d.ts +0 -127
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -141
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -21
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -87
- /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
- /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}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type CompanyUser = {
|
|
3
|
+
id: number;
|
|
4
|
+
fullname: string;
|
|
5
|
+
email: string;
|
|
6
|
+
eventsCount: number;
|
|
7
|
+
lastLoginAt: string;
|
|
8
|
+
};
|
|
9
|
+
export type AdminCompanyUser = {
|
|
10
|
+
id: number;
|
|
11
|
+
email: string;
|
|
12
|
+
fullname: string;
|
|
13
|
+
lastLoginAt: string;
|
|
14
|
+
};
|
|
15
|
+
export type CompanyProject = {
|
|
16
|
+
exid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
status: string;
|
|
19
|
+
startedAt: DateType;
|
|
20
|
+
};
|
|
21
|
+
export type AdminCompanyProject = {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
status: string;
|
|
25
|
+
insertedAt: DateType;
|
|
26
|
+
exid: string;
|
|
27
|
+
endDate: string | null;
|
|
28
|
+
startDate: string | null;
|
|
29
|
+
archiveTier: string | null;
|
|
30
|
+
};
|
|
31
|
+
export type CompanyKit = {
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
serial: string;
|
|
35
|
+
status: string;
|
|
36
|
+
powerType: string;
|
|
37
|
+
countryName: string;
|
|
38
|
+
nvrId: string;
|
|
39
|
+
nvrSerial: string;
|
|
40
|
+
nvrVersion: string;
|
|
41
|
+
nvrNerves: boolean;
|
|
42
|
+
nvrModel: string;
|
|
43
|
+
nvrDeviceType: string;
|
|
44
|
+
routerId: string;
|
|
45
|
+
routerSerial: string;
|
|
46
|
+
projectExid: string;
|
|
47
|
+
projectName: string;
|
|
48
|
+
alarms: Array<string>;
|
|
49
|
+
sims: Array<{
|
|
50
|
+
id: number;
|
|
51
|
+
number: string;
|
|
52
|
+
}>;
|
|
53
|
+
cameras: Array<{
|
|
54
|
+
exid: string;
|
|
55
|
+
name: string;
|
|
56
|
+
status: string;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
export type Company = {
|
|
60
|
+
id: number;
|
|
61
|
+
exid: string;
|
|
62
|
+
name: string;
|
|
63
|
+
zohoId: string;
|
|
64
|
+
domains: string;
|
|
65
|
+
linkedinUrl: string;
|
|
66
|
+
sessions: number;
|
|
67
|
+
projects: number;
|
|
68
|
+
cameras: number;
|
|
69
|
+
users: number;
|
|
70
|
+
activeUsers: number;
|
|
71
|
+
insertedAt: DateType;
|
|
72
|
+
};
|
|
73
|
+
export type CompanySummary = {
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
users: number;
|
|
77
|
+
insertedAt: DateType;
|
|
78
|
+
exid: string;
|
|
79
|
+
sessions: number;
|
|
80
|
+
projects: number;
|
|
81
|
+
zohoId: string;
|
|
82
|
+
domains: string;
|
|
83
|
+
linkedinUrl: string | null;
|
|
84
|
+
ssoProviders: string[];
|
|
85
|
+
cameras: number;
|
|
86
|
+
kits: number;
|
|
87
|
+
};
|
|
88
|
+
export type CompanyCameraSummary = {
|
|
89
|
+
id: number;
|
|
90
|
+
name: string;
|
|
91
|
+
status: string;
|
|
92
|
+
exid: string;
|
|
93
|
+
projectExid: string | null;
|
|
94
|
+
ownerEmail: string;
|
|
95
|
+
ownerFullname: string;
|
|
96
|
+
usersCount: number;
|
|
97
|
+
};
|
|
98
|
+
export type CompanyQueryParams = PaginationParams & {
|
|
99
|
+
name: string;
|
|
100
|
+
exid: string;
|
|
101
|
+
domains: string;
|
|
102
|
+
projects: string;
|
|
103
|
+
cameras: string;
|
|
104
|
+
users: string;
|
|
105
|
+
activeUsers: string;
|
|
106
|
+
sessions: string;
|
|
107
|
+
};
|
|
108
|
+
export type CompanyUpdatePayload = {
|
|
109
|
+
name: string;
|
|
110
|
+
exid: string;
|
|
111
|
+
linkedinUrl?: string;
|
|
112
|
+
domains?: string;
|
|
113
|
+
zohoId?: string;
|
|
114
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateType, PaginationParams } from "
|
|
1
|
+
import { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type Compare = {
|
|
3
3
|
cameraExid: string;
|
|
4
4
|
createdAt: string;
|
|
@@ -28,14 +28,29 @@ export declare enum CompareStatus {
|
|
|
28
28
|
Failed = 2
|
|
29
29
|
}
|
|
30
30
|
export type CompareRequestPayload = {
|
|
31
|
+
compareExid: string;
|
|
31
32
|
name: string;
|
|
32
|
-
afterDate: string;
|
|
33
33
|
beforeDate: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
afterDate: string;
|
|
35
|
+
cameraExid: string;
|
|
36
|
+
embed?: string;
|
|
37
|
+
bim?: boolean;
|
|
38
|
+
custom?: boolean;
|
|
39
|
+
options?: {
|
|
40
|
+
type: string;
|
|
41
|
+
beforeSnap: string;
|
|
42
|
+
afterSnap: string;
|
|
43
|
+
};
|
|
37
44
|
createAnimation: boolean;
|
|
38
|
-
evercamWatermark
|
|
45
|
+
evercamWatermark: boolean;
|
|
46
|
+
logo?: CompareLogoPosition;
|
|
47
|
+
};
|
|
48
|
+
export type CompareLogoPosition = {
|
|
49
|
+
id?: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
39
54
|
};
|
|
40
55
|
export type AdminCompare = {
|
|
41
56
|
id: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ConnectorDetail = {
|
|
2
2
|
login: string;
|
|
3
3
|
hostname: string;
|
|
4
|
+
provider: string;
|
|
4
5
|
};
|
|
5
6
|
export declare enum Connector {
|
|
6
7
|
Aconex = "aconex",
|
|
@@ -8,14 +9,13 @@ export declare enum Connector {
|
|
|
8
9
|
Autodesk = "autodesk",
|
|
9
10
|
AutodeskViewer = "autodesk_viewer",
|
|
10
11
|
VoyageControl = "voyage_control",
|
|
12
|
+
Ring = "ring",
|
|
13
|
+
Email = "email",
|
|
14
|
+
Hammertech = "hammertech",
|
|
11
15
|
XWeather = "xweather"
|
|
12
16
|
}
|
|
13
17
|
export declare enum ProcoreType {
|
|
14
18
|
Observations = "observations",
|
|
15
19
|
Photos = "photos"
|
|
16
20
|
}
|
|
17
|
-
export type ConnectorResponsePayload = Array<
|
|
18
|
-
hostname: string;
|
|
19
|
-
login: string;
|
|
20
|
-
provider: string;
|
|
21
|
-
}>;
|
|
21
|
+
export type ConnectorResponsePayload = Array<ConnectorDetail>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export type CreateCoolifyAppRequestPayload = {
|
|
3
|
+
startDate: DateType;
|
|
4
|
+
modelVersion: string;
|
|
5
|
+
snapshotRequestTimeout: string | number;
|
|
6
|
+
serverUuid: string;
|
|
7
|
+
branch: string;
|
|
8
|
+
useThirdParty: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type SaveCoolifyAppRequestPayload = {
|
|
11
|
+
contextCameraExid: string;
|
|
12
|
+
coolifyServiceId: string;
|
|
13
|
+
modelVersion: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
branchName: string;
|
|
16
|
+
snapshotRequestTimeout: string | number;
|
|
17
|
+
serverUuid: string;
|
|
18
|
+
useThirdParty: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CoolifyApp = {
|
|
21
|
+
id: number;
|
|
22
|
+
projectExid: ProjectExid;
|
|
23
|
+
anprCameraExid: CameraExid;
|
|
24
|
+
contextCameraExid: CameraExid;
|
|
25
|
+
modelVersion: string;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
insertedAt: DateType;
|
|
28
|
+
updatedAt: DateType;
|
|
29
|
+
};
|
|
30
|
+
export type RegisterCoolifyAppResponsePayload = {
|
|
31
|
+
created: boolean;
|
|
32
|
+
id: number;
|
|
33
|
+
data: CoolifyApp;
|
|
34
|
+
count: number;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
@@ -490,13 +490,6 @@ export declare enum CountryCode {
|
|
|
490
490
|
Zambia = "zm",
|
|
491
491
|
Zimbabwe = "zw"
|
|
492
492
|
}
|
|
493
|
-
export declare enum Region {
|
|
494
|
-
Apac = "apac",
|
|
495
|
-
Emea = "emea",
|
|
496
|
-
Us = "us",
|
|
497
|
-
Latam = "latam",
|
|
498
|
-
Na = "na"
|
|
499
|
-
}
|
|
500
493
|
export declare enum CameraRegion {
|
|
501
494
|
APAC = "apac",
|
|
502
495
|
AU = "au",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, CameraDateRangeFilter } from "@evercam/api/types";
|
|
2
2
|
export type BaseDetectionsFilters = {
|
|
3
3
|
fromDate: string | Date;
|
|
4
4
|
toDate: string | Date;
|
|
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
|
|
|
13
13
|
cameraExid: CameraExid;
|
|
14
14
|
};
|
|
15
15
|
export type BBox = number[];
|
|
16
|
-
export type SelectedObjectPath = {
|
|
17
|
-
label: string;
|
|
18
|
-
trackId: string;
|
|
19
|
-
paths: Array<{
|
|
20
|
-
timestamp: number;
|
|
21
|
-
center: [number, number];
|
|
22
|
-
bbox: BBox;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
16
|
export type Label = DetectionLabel | PpeLabel;
|
|
26
17
|
export type Detection = {
|
|
27
18
|
bbox: BBox;
|
|
@@ -31,7 +22,8 @@ export type Detection = {
|
|
|
31
22
|
};
|
|
32
23
|
export type DetectionsGroup = {
|
|
33
24
|
timestamp: DateType;
|
|
34
|
-
|
|
25
|
+
cameraExid: CameraExid;
|
|
26
|
+
trackings: Detection[];
|
|
35
27
|
};
|
|
36
28
|
export type DetectionsCounts = {
|
|
37
29
|
timestamps: number;
|
|
@@ -72,38 +64,35 @@ export type SegmentSimilarityResult = {
|
|
|
72
64
|
distance: number;
|
|
73
65
|
segment: Segment;
|
|
74
66
|
};
|
|
75
|
-
export type SegmentsSimilaritySearchResult = {
|
|
76
|
-
firstSeen: DateType | null;
|
|
77
|
-
lastSeen: DateType | null;
|
|
78
|
-
similarSegments: SegmentSimilarityResult[];
|
|
79
|
-
};
|
|
80
67
|
export type SegmentsSimilaritySearchParams = {
|
|
81
68
|
cameraExid: CameraExid;
|
|
82
|
-
referenceId: string;
|
|
69
|
+
referenceId: string | number;
|
|
83
70
|
iouThreshold?: number;
|
|
84
71
|
fromDate: string;
|
|
85
72
|
toDate: string;
|
|
86
73
|
};
|
|
87
74
|
export type BaseCountsParams = {
|
|
88
|
-
fromDate
|
|
89
|
-
toDate
|
|
90
|
-
precision
|
|
91
|
-
trackId
|
|
92
|
-
labels
|
|
75
|
+
fromDate?: string;
|
|
76
|
+
toDate?: string;
|
|
77
|
+
precision?: TimelinePrecision;
|
|
78
|
+
trackId?: number;
|
|
79
|
+
labels?: DetectionLabel | DetectionLabel[];
|
|
93
80
|
};
|
|
94
81
|
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
-
projectExid: ProjectExid;
|
|
96
82
|
cameraExids?: CameraExid[];
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
83
|
+
projectExid?: ProjectExid;
|
|
84
|
+
modelId?: DetectionModel;
|
|
85
|
+
labels?: Label[];
|
|
86
|
+
excludeLabels?: Label[];
|
|
87
|
+
confidenceThreshold?: number;
|
|
88
|
+
mergedClasses?: string[];
|
|
89
|
+
};
|
|
90
|
+
export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
|
|
105
91
|
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
106
92
|
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
93
|
+
export type SegmentsPresenceResponse = {
|
|
94
|
+
intervals: SegmentsPresenceByLabel;
|
|
95
|
+
};
|
|
107
96
|
export type LuminanceReading = {
|
|
108
97
|
timestamp: string;
|
|
109
98
|
luminanceDelta: number;
|
|
@@ -121,7 +110,8 @@ export declare enum PpeLabel {
|
|
|
121
110
|
export declare enum DetectionModel {
|
|
122
111
|
Yolov10 = 1,
|
|
123
112
|
Yolov11 = 2,
|
|
124
|
-
|
|
113
|
+
Yolov112 = 3,
|
|
125
114
|
GroundingDino = 4,
|
|
126
|
-
Owlv2 = 5
|
|
115
|
+
Owlv2 = 5,
|
|
116
|
+
PpeV2 = 6
|
|
127
117
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Point3D } from "@evercam/api/types/shared";
|
|
2
|
+
export type DroneCameraTransform = {
|
|
3
|
+
position: Point3D;
|
|
4
|
+
direction: Point3D;
|
|
5
|
+
up: Point3D;
|
|
6
|
+
right: Point3D;
|
|
7
|
+
};
|
|
8
|
+
export type DroneModel = {
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
11
|
+
date: string;
|
|
12
|
+
cesiumPointCloudId: string;
|
|
13
|
+
cesiumGausianSplatId: string;
|
|
14
|
+
pointSize: string;
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
16
|
+
link: string;
|
|
17
|
+
trueIndex: number;
|
|
18
|
+
};
|
|
19
|
+
export type DroneProjectTransform = {
|
|
20
|
+
initialCameraTransform?: DroneCameraTransform;
|
|
21
|
+
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
+
markers?: Record<string, DroneMarker>;
|
|
23
|
+
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
24
|
+
bimData?: DroneBimData;
|
|
25
|
+
terrainPoints?: Record<string, Point3D[]>;
|
|
26
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
27
|
+
tags?: Record<string, DroneTag>;
|
|
28
|
+
};
|
|
29
|
+
export type DroneProjectData = {
|
|
30
|
+
models?: DroneModel[];
|
|
31
|
+
transform?: DroneProjectTransform;
|
|
32
|
+
integrationType?: DroneProvider;
|
|
33
|
+
origin?: string;
|
|
34
|
+
params?: string;
|
|
35
|
+
pointSize?: number;
|
|
36
|
+
};
|
|
37
|
+
export type DroneProjectDataPatch = {
|
|
38
|
+
models?: Record<number, Partial<DroneModel>>;
|
|
39
|
+
integrationType?: DroneProvider;
|
|
40
|
+
origin?: string;
|
|
41
|
+
params?: string;
|
|
42
|
+
};
|
|
43
|
+
export type DroneProjectCoordinates = {
|
|
44
|
+
lat: number | null;
|
|
45
|
+
lon: number | null;
|
|
46
|
+
alt: number | null;
|
|
47
|
+
};
|
|
48
|
+
export type DroneTransformPatch = {
|
|
49
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
50
|
+
};
|
|
51
|
+
export declare enum DroneTagType {
|
|
52
|
+
AerialShot = "AerialShot"
|
|
53
|
+
}
|
|
54
|
+
export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
55
|
+
id?: number;
|
|
56
|
+
type: T;
|
|
57
|
+
comment: string;
|
|
58
|
+
position?: Point3D;
|
|
59
|
+
cameraTransform?: string;
|
|
60
|
+
creationDate: string;
|
|
61
|
+
hyperlink?: string;
|
|
62
|
+
height?: number;
|
|
63
|
+
};
|
|
64
|
+
export type AerialShotPoint = DroneTag<DroneTagType.AerialShot>;
|
|
65
|
+
export type DroneMarkerTransform = {
|
|
66
|
+
fovAngle: number;
|
|
67
|
+
fovRadius: number;
|
|
68
|
+
heading: number;
|
|
69
|
+
height: number;
|
|
70
|
+
latitude: string;
|
|
71
|
+
longitude: string;
|
|
72
|
+
pitch: number;
|
|
73
|
+
roll: number;
|
|
74
|
+
scale: number;
|
|
75
|
+
};
|
|
76
|
+
export declare enum DroneMarkerType {
|
|
77
|
+
Default = "Default",
|
|
78
|
+
Gate = "Gate",
|
|
79
|
+
Indoor = "Indoor"
|
|
80
|
+
}
|
|
81
|
+
export type DroneMarker = {
|
|
82
|
+
type: DroneMarkerType;
|
|
83
|
+
name: string;
|
|
84
|
+
cameraExid: string;
|
|
85
|
+
transform: DroneMarkerTransform;
|
|
86
|
+
};
|
|
87
|
+
export type DroneImageryPlan = {
|
|
88
|
+
cesiumId: number;
|
|
89
|
+
uuid: string;
|
|
90
|
+
name: string;
|
|
91
|
+
alpha: number;
|
|
92
|
+
order: number;
|
|
93
|
+
};
|
|
94
|
+
export type DroneBimData = {
|
|
95
|
+
cesiumId: string | null;
|
|
96
|
+
iModelId: string | null;
|
|
97
|
+
changeSetId: string | null;
|
|
98
|
+
isItwin: boolean;
|
|
99
|
+
};
|
|
100
|
+
export declare enum DroneUrlParams {
|
|
101
|
+
Date = "date"
|
|
102
|
+
}
|
|
103
|
+
export declare enum DroneProvider {
|
|
104
|
+
Evercam = "Evercam",
|
|
105
|
+
DroneDeploy = "DroneDeploy"
|
|
106
|
+
}
|
|
@@ -14,17 +14,33 @@ export declare enum ErrorType {
|
|
|
14
14
|
UnhandledRejection = "UnhandledRejection",
|
|
15
15
|
TypeError = "TypeError"
|
|
16
16
|
}
|
|
17
|
+
export declare enum ErrorCode {
|
|
18
|
+
InternalServerError = 500,
|
|
19
|
+
BadGatewayError = 502,
|
|
20
|
+
ServiceUnavailableError = 503,
|
|
21
|
+
GatewayTimeoutError = 504,
|
|
22
|
+
BadRequestError = 400,
|
|
23
|
+
UnauthorizedError = 401,
|
|
24
|
+
ForbiddenError = 403,
|
|
25
|
+
NotFoundError = 404,
|
|
26
|
+
ConflictError = 409,
|
|
27
|
+
GoneError = 410,
|
|
28
|
+
TooManyRequestsError = 429
|
|
29
|
+
}
|
|
17
30
|
export declare enum EvercamApiErrorCode {
|
|
31
|
+
IntegrationError = "INTEGRATION_ERROR",
|
|
18
32
|
BadArgument = "BAD_ARGUMENT",
|
|
19
33
|
DeviceError = "DEVICE_ERROR",
|
|
20
34
|
UnsupportedOperation = "UNSUPPORTED_OPERATION",
|
|
21
35
|
QuotaExceeded = "QUOTA_EXCEEDED",
|
|
22
36
|
InvalidCredentials = "INVALID_CREDENTIALS",
|
|
37
|
+
InvalidToken = "INVALID_TOKEN",
|
|
23
38
|
ProviderAuthFailure = "PROVIDER_AUTH_FAILURE",
|
|
24
39
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
25
40
|
PasswordReset = "PASSWORD_RESET",
|
|
26
41
|
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
27
|
-
Generic = "GENERIC"
|
|
42
|
+
Generic = "GENERIC",
|
|
43
|
+
VideoWallInUse = "VIDEO_WALL_IN_USE"
|
|
28
44
|
}
|
|
29
45
|
type _EvercamApiError = {
|
|
30
46
|
code: EvercamApiErrorCode;
|
|
@@ -33,4 +49,17 @@ type _EvercamApiError = {
|
|
|
33
49
|
innerError?: _EvercamApiError;
|
|
34
50
|
};
|
|
35
51
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
52
|
+
export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
|
|
53
|
+
export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
|
|
54
|
+
export type AppError = {
|
|
55
|
+
statusCode?: number;
|
|
56
|
+
message?: string;
|
|
57
|
+
redirect?: {
|
|
58
|
+
url?: string;
|
|
59
|
+
label?: string;
|
|
60
|
+
delay?: number;
|
|
61
|
+
};
|
|
62
|
+
withSupportMessage?: boolean;
|
|
63
|
+
isWidget?: boolean;
|
|
64
|
+
};
|
|
36
65
|
export {};
|