@evercam/api 1.0.0-4976cdc31 → 1.0.0-49fa7f1d4
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 +59 -19
- package/dist/api/api/adminApi.d.ts +8 -10
- package/dist/api/api/aiApi.d.ts +58 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +23 -12
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +19 -6
- package/dist/api/types/360.d.ts +136 -42
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +12 -1
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +8 -8
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +5 -8
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +3 -1
- package/dist/api/types/drone.d.ts +1 -1
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +1 -11
- package/dist/api/types/gateReportManagement.d.ts +28 -9
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/ingest.d.ts +88 -1
- package/dist/api/types/kit.d.ts +41 -51
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +0 -8
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +5 -5
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +2 -10
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +0 -19
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +1 -8
- package/dist/api/types/user.d.ts +1 -3
- package/dist/index.js +1215 -713
- 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 +82 -31
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +3 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -5,7 +5,26 @@ export declare enum NotificationType {
|
|
|
5
5
|
TimelapseCreated = "timelapse_created",
|
|
6
6
|
TimelapseFailed = "timelapse_failed",
|
|
7
7
|
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
8
|
+
Processing360 = "three_sixty_done",
|
|
9
|
+
SmartSearchExportReady = "smart_search_export_ready",
|
|
10
|
+
SmartSearchExportFailed = "smart_search_export_failed",
|
|
11
|
+
GateReportExportReady = "gate_report_export_ready",
|
|
12
|
+
GateReportExportFailed = "gate_report_export_failed",
|
|
13
|
+
PpeExportReady = "ppe_export_ready",
|
|
14
|
+
PpeExportFailed = "ppe_export_failed",
|
|
15
|
+
WeatherExportReady = "weather_export_ready",
|
|
16
|
+
WeatherExportFailed = "weather_export_failed",
|
|
17
|
+
CompareReady = "compare_ready",
|
|
18
|
+
CompareFailed = "compare_failed",
|
|
19
|
+
ClipExportReady = "clip_export_ready",
|
|
20
|
+
ClipExportFailed = "clip_export_failed",
|
|
21
|
+
NvrClipReady = "nvr_clip_ready",
|
|
22
|
+
NvrClipFailed = "nvr_clip_failed",
|
|
23
|
+
UploadComplete = "upload_complete",
|
|
24
|
+
UploadFailed = "upload_failed",
|
|
25
|
+
RingCamerasImported = "ring_cameras_imported",
|
|
26
|
+
StorageWarning = "storage_warning",
|
|
27
|
+
Other = "other"
|
|
9
28
|
}
|
|
10
29
|
export interface NotificationContextBase {
|
|
11
30
|
cameraExid?: string;
|
|
@@ -41,7 +60,27 @@ export interface Processing360Context extends NotificationContextBase {
|
|
|
41
60
|
date: string;
|
|
42
61
|
floor: string;
|
|
43
62
|
}
|
|
44
|
-
export
|
|
63
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
64
|
+
projectExid: string;
|
|
65
|
+
archiveExid?: string;
|
|
66
|
+
compareExid?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface UploadNotificationContext extends NotificationContextBase {
|
|
69
|
+
projectExid: string;
|
|
70
|
+
}
|
|
71
|
+
export interface RingCamerasImportedContext extends NotificationContextBase {
|
|
72
|
+
projectExid: string;
|
|
73
|
+
projectName: string;
|
|
74
|
+
cameras: Array<{
|
|
75
|
+
exid: string;
|
|
76
|
+
name: string;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
export interface StorageWarningContext extends NotificationContextBase {
|
|
80
|
+
projectExid: string;
|
|
81
|
+
cameraName: string;
|
|
82
|
+
}
|
|
83
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext;
|
|
45
84
|
export type Notification = {
|
|
46
85
|
id: number;
|
|
47
86
|
type: NotificationType;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare enum ObservationEventStatus {
|
|
2
|
+
Detected = "detected",
|
|
3
|
+
Approved = "approved",
|
|
4
|
+
Disapproved = "disapproved",
|
|
5
|
+
Unsure = "unsure"
|
|
6
|
+
}
|
|
7
|
+
export interface ObservationEventStatusConfig {
|
|
8
|
+
bg: string;
|
|
9
|
+
fg: string;
|
|
10
|
+
border: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
|
|
14
|
+
export interface SiteAnalyticsObservationEvent {
|
|
15
|
+
id: number;
|
|
16
|
+
observationTypeId: number;
|
|
17
|
+
observationName: string | null;
|
|
18
|
+
observationCode: string | null;
|
|
19
|
+
cameraExid: string;
|
|
20
|
+
projectExid: string | null;
|
|
21
|
+
startTime: string;
|
|
22
|
+
endTime: string | null;
|
|
23
|
+
confidence: number | null;
|
|
24
|
+
status: ObservationEventStatus;
|
|
25
|
+
aiEvidence: string | null;
|
|
26
|
+
bbox: number[] | null;
|
|
27
|
+
model: string | null;
|
|
28
|
+
promptId: number | null;
|
|
29
|
+
observationMetadata: Record<string, unknown> | null;
|
|
30
|
+
trigger: string;
|
|
31
|
+
reviewedBy: string | null;
|
|
32
|
+
reviewedAt: string | null;
|
|
33
|
+
insertedAt: string;
|
|
34
|
+
}
|
|
35
|
+
export type ObservationEventQueryParams = {
|
|
36
|
+
cameraExid?: string;
|
|
37
|
+
projectExid?: string;
|
|
38
|
+
observationTypeIds?: string;
|
|
39
|
+
status?: ObservationEventStatus | string;
|
|
40
|
+
sortBy?: string;
|
|
41
|
+
sortDir?: "asc" | "desc";
|
|
42
|
+
page?: number;
|
|
43
|
+
limit?: number;
|
|
44
|
+
};
|
|
45
|
+
export interface ObservationEventListResponse {
|
|
46
|
+
items: SiteAnalyticsObservationEvent[];
|
|
47
|
+
total: number;
|
|
48
|
+
page: number;
|
|
49
|
+
limit: number;
|
|
50
|
+
from: number;
|
|
51
|
+
to: number;
|
|
52
|
+
}
|
|
53
|
+
export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
|
|
54
|
+
export interface ObservationEventReviewPayload {
|
|
55
|
+
status: ObservationEventVerdict;
|
|
56
|
+
}
|
|
57
|
+
export interface ObservationEventReviewResponse {
|
|
58
|
+
updated: boolean;
|
|
59
|
+
id: number | string;
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ProjectExid, type CameraExid, type DateType, type BBox, PpeLabel, DownloadFileType } from "@evercam/api/types";
|
|
2
|
+
export declare enum ObservationItemState {
|
|
3
|
+
Absent = 0,
|
|
4
|
+
Present = 1,
|
|
5
|
+
NotVisible = 2
|
|
6
|
+
}
|
|
7
|
+
export type ObservationEventEquipment = {
|
|
8
|
+
score: number;
|
|
9
|
+
bbox: BBox;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationEvent = {
|
|
12
|
+
id: number;
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
projectExid: ProjectExid;
|
|
15
|
+
capturedAt: DateType;
|
|
16
|
+
personIndex: number;
|
|
17
|
+
personBbox: BBox;
|
|
18
|
+
personScore: number;
|
|
19
|
+
ppe: Partial<Record<PpeLabel, ObservationEventEquipment>>;
|
|
20
|
+
hasHelmet: ObservationItemState | null;
|
|
21
|
+
hasHighVisVest: ObservationItemState | null;
|
|
22
|
+
hasGloves: ObservationItemState | null;
|
|
23
|
+
hasGlasses: ObservationItemState | null;
|
|
24
|
+
modelVersion: string;
|
|
25
|
+
createdAt: DateType;
|
|
26
|
+
compliant: boolean;
|
|
27
|
+
reason: string | null;
|
|
28
|
+
isApproved: boolean | null;
|
|
29
|
+
};
|
|
30
|
+
export type ObservationEventsQueryParams = {
|
|
31
|
+
cameraExid?: CameraExid;
|
|
32
|
+
fromDate?: string;
|
|
33
|
+
toDate?: string;
|
|
34
|
+
required?: string;
|
|
35
|
+
compliant?: boolean;
|
|
36
|
+
hasHelmet?: boolean;
|
|
37
|
+
hasHighVisVest?: boolean;
|
|
38
|
+
hasGloves?: boolean;
|
|
39
|
+
hasGlasses?: boolean;
|
|
40
|
+
sort?: string;
|
|
41
|
+
page?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
};
|
|
44
|
+
export type ObservationEventsExportQueryParams = {
|
|
45
|
+
cameraExid?: CameraExid;
|
|
46
|
+
fromDate: string;
|
|
47
|
+
toDate: string;
|
|
48
|
+
required?: string;
|
|
49
|
+
compliant?: boolean;
|
|
50
|
+
fileType: DownloadFileType;
|
|
51
|
+
directDownload?: boolean;
|
|
52
|
+
includeInvalid?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type ObservationApprovalUpdateResponse = {
|
|
55
|
+
updated: boolean;
|
|
56
|
+
id: number | string | null;
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
export declare enum ObservationCountsGranularity {
|
|
60
|
+
Day = "day",
|
|
61
|
+
Week = "week",
|
|
62
|
+
Month = "month"
|
|
63
|
+
}
|
|
64
|
+
export type ObservationEventsCountsQueryParams = {
|
|
65
|
+
cameraExid?: CameraExid;
|
|
66
|
+
fromDate?: string;
|
|
67
|
+
toDate?: string;
|
|
68
|
+
required?: string;
|
|
69
|
+
compliant?: boolean;
|
|
70
|
+
hasHelmet?: boolean;
|
|
71
|
+
hasHighVisVest?: boolean;
|
|
72
|
+
hasGloves?: boolean;
|
|
73
|
+
hasGlasses?: boolean;
|
|
74
|
+
granularity?: ObservationCountsGranularity;
|
|
75
|
+
};
|
|
76
|
+
export type ObservationEventCount = {
|
|
77
|
+
bucket: DateType;
|
|
78
|
+
total: number;
|
|
79
|
+
compliant: number;
|
|
80
|
+
nonCompliant: number;
|
|
81
|
+
};
|
|
82
|
+
export declare enum ObservationRequiredItem {
|
|
83
|
+
Helmet = "has_helmet",
|
|
84
|
+
HighVisVest = "has_high_vis_vest"
|
|
85
|
+
}
|
|
@@ -51,14 +51,6 @@ export declare enum EPageType {
|
|
|
51
51
|
List = "list",
|
|
52
52
|
Item = "item"
|
|
53
53
|
}
|
|
54
|
-
export declare enum EPaths {
|
|
55
|
-
Home = "/",
|
|
56
|
-
Session = "/session"
|
|
57
|
-
}
|
|
58
|
-
export declare enum EProjectItems {
|
|
59
|
-
Camera = "camera",
|
|
60
|
-
Overlay = "overlay"
|
|
61
|
-
}
|
|
62
54
|
export declare enum ERoles {
|
|
63
55
|
Admin = "admin",
|
|
64
56
|
User = "user"
|
|
@@ -16,6 +16,26 @@ 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
|
+
};
|
|
19
39
|
export type PosthogUserParams = {
|
|
20
40
|
firstname?: string;
|
|
21
41
|
lastname?: string;
|
|
@@ -68,6 +68,13 @@ export declare enum ProjectArchiveTier {
|
|
|
68
68
|
export type UpdateCameraRestrictionPayload = {
|
|
69
69
|
isAccessRestricted?: boolean;
|
|
70
70
|
};
|
|
71
|
+
export type CameraPosition = {
|
|
72
|
+
cameraExid: CameraExid;
|
|
73
|
+
position: number;
|
|
74
|
+
};
|
|
75
|
+
export type ReorderCamerasPayload = {
|
|
76
|
+
positions: CameraPosition[];
|
|
77
|
+
};
|
|
71
78
|
export type Logo = {
|
|
72
79
|
id: number;
|
|
73
80
|
projectId: number;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { ApiCredentials } from "@evercam/api/types";
|
|
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
|
};
|
package/dist/api/types/ring.d.ts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
export type RingCompleteLinkingPayload = {
|
|
2
|
+
nonce: string;
|
|
3
|
+
time: string;
|
|
4
|
+
};
|
|
5
|
+
/** The only auto-import status complete-linking returns today. */
|
|
6
|
+
export declare const RING_AUTO_IMPORT_QUEUED = "queued";
|
|
7
|
+
export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
|
|
8
|
+
export type RingCompleteLinkingResponsePayload = {
|
|
9
|
+
status: string;
|
|
10
|
+
/** Absent when the API did not schedule an import. */
|
|
11
|
+
autoImport?: RingAutoImportStatus;
|
|
12
|
+
};
|
|
1
13
|
export type RingDevice = {
|
|
2
14
|
deviceId: string;
|
|
3
15
|
name: string;
|
|
4
|
-
|
|
16
|
+
/** Resolved from Ring's `device-status`; null when Ring did not return it. */
|
|
17
|
+
online: boolean | null;
|
|
18
|
+
deviceType: string | null;
|
|
5
19
|
firmwareVersion: string | null;
|
|
20
|
+
/** Always null — Ring's API does not expose device power level. */
|
|
6
21
|
batteryLife: number | null;
|
|
7
22
|
location: string | null;
|
|
8
23
|
imported: boolean;
|
|
@@ -13,21 +28,6 @@ export type RingDevice = {
|
|
|
13
28
|
export type RingDevicesResponsePayload = {
|
|
14
29
|
devices: RingDevice[];
|
|
15
30
|
};
|
|
16
|
-
export type RingImportDevicesPayload = {
|
|
17
|
-
deviceIds: string[];
|
|
18
|
-
projectExid: string;
|
|
19
|
-
deviceNames?: Record<string, string>;
|
|
20
|
-
};
|
|
21
|
-
export type RingImportResponsePayload = {
|
|
22
|
-
cameras: Array<{
|
|
23
|
-
exid: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}>;
|
|
26
|
-
project: {
|
|
27
|
-
exid: string;
|
|
28
|
-
name: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
31
|
export type RingMoveDevicePayload = {
|
|
32
32
|
projectExid: string;
|
|
33
33
|
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare enum RoiType {
|
|
|
3
3
|
AnprContext = "anpr_context",
|
|
4
4
|
ExclusionZone = "exclusion_zone",
|
|
5
5
|
WorkflowArea = "workflow_area",
|
|
6
|
-
SiteAnalytics = "site_analytics"
|
|
6
|
+
SiteAnalytics = "site_analytics",
|
|
7
|
+
Ppe = "ppe_roi"
|
|
7
8
|
}
|
|
8
9
|
export declare enum RoiShapeType {
|
|
9
10
|
Polygon = "polygon",
|
|
@@ -11,15 +12,6 @@ export declare enum RoiShapeType {
|
|
|
11
12
|
Direction = "direction",
|
|
12
13
|
Rectangle = "rectangle"
|
|
13
14
|
}
|
|
14
|
-
export type RoiShape = {
|
|
15
|
-
id: number | null;
|
|
16
|
-
name: string;
|
|
17
|
-
x1: number;
|
|
18
|
-
x2: number;
|
|
19
|
-
y1: number;
|
|
20
|
-
y2: number;
|
|
21
|
-
points?: [number, number][];
|
|
22
|
-
};
|
|
23
15
|
export declare enum RoiDirection {
|
|
24
16
|
Arrived = "arrived",
|
|
25
17
|
Left = "left",
|
|
@@ -128,15 +128,6 @@ export type FeedbackPayload = {
|
|
|
128
128
|
messageId?: number;
|
|
129
129
|
conversationId?: number;
|
|
130
130
|
};
|
|
131
|
-
export type Stringified<T> = string & {
|
|
132
|
-
[P in keyof T]: {
|
|
133
|
-
"_ value": T[P];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
export interface JSON {
|
|
137
|
-
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
138
|
-
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
139
|
-
}
|
|
140
131
|
export type TuplePoint2D = [number, number];
|
|
141
132
|
export type TuplePoint3D = [number, number, number];
|
|
142
133
|
export type Point2D = {
|
|
@@ -178,16 +169,6 @@ export declare enum TimelinePrecision {
|
|
|
178
169
|
Minute = "minute",
|
|
179
170
|
Events = "events"
|
|
180
171
|
}
|
|
181
|
-
export type EntityStatsQueryParams = {
|
|
182
|
-
period: "day" | "week" | "month";
|
|
183
|
-
startDate: string;
|
|
184
|
-
endDate: string;
|
|
185
|
-
};
|
|
186
|
-
export type EntityStat = {
|
|
187
|
-
period: string;
|
|
188
|
-
name: string;
|
|
189
|
-
count: number;
|
|
190
|
-
};
|
|
191
172
|
export declare enum TaskStatus {
|
|
192
173
|
Idle = "idle",
|
|
193
174
|
Loading = "loading",
|
|
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
|
|
|
33
33
|
email: string;
|
|
34
34
|
name: string;
|
|
35
35
|
}>;
|
|
36
|
-
export type ShareCreateRequestPayload = {
|
|
37
|
-
email: string[] | string;
|
|
38
|
-
message?: string;
|
|
39
|
-
permission?: string;
|
|
40
|
-
rights: string;
|
|
41
|
-
apiId?: string;
|
|
42
|
-
apiKey?: string;
|
|
43
|
-
};
|
|
44
36
|
export type ShareCreateResponsePayload = {
|
|
45
37
|
shares: Share[];
|
|
46
38
|
shareRequests: ShareRequest[];
|
|
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
|
|
|
51
43
|
Used = 1,
|
|
52
44
|
Failed = -2
|
|
53
45
|
}
|
|
54
|
-
export declare enum ShareVisibility {
|
|
55
|
-
PublicDiscoverable = "publicDiscoverable",
|
|
56
|
-
PublicUndiscoverable = "publicUndiscoverable",
|
|
57
|
-
Private = "private"
|
|
58
|
-
}
|
|
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
|
|
|
232
232
|
feature: CameraFeatureFlag;
|
|
233
233
|
processedIntervals: TimelineDateInterval[];
|
|
234
234
|
};
|
|
235
|
-
export type SmartSearchRequestPayload = {
|
|
235
|
+
export type SmartSearchRequestPayload = PaginationParams & {
|
|
236
236
|
cameraExids?: CameraExid[];
|
|
237
237
|
drawingIds?: _360FloorId[];
|
|
238
238
|
walkIds?: string[];
|
|
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
|
|
|
240
240
|
payload: SmartSearchBackendQuery;
|
|
241
241
|
fromDate?: string;
|
|
242
242
|
toDate?: string;
|
|
243
|
-
page?: number;
|
|
244
|
-
limit?: number;
|
|
245
243
|
threshold?: number;
|
|
246
244
|
};
|
|
247
245
|
type SmartSearchResultItemBase = {
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export type SiteAnalyticsCoolifyStatus = {
|
|
3
|
+
appUuid: string | null;
|
|
4
|
+
name: string | null;
|
|
5
|
+
serverUuid: string | null;
|
|
6
|
+
serverName: string | null;
|
|
7
|
+
appUrl: string | null;
|
|
8
|
+
status: string | null;
|
|
9
|
+
isRunning: boolean;
|
|
10
|
+
updatedAt: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type SiteAnalyticsProjectMeta = {
|
|
13
|
+
exid: ProjectExid;
|
|
14
|
+
name: string | null;
|
|
15
|
+
timezone: string | null;
|
|
16
|
+
featureFlags: string[] | null;
|
|
17
|
+
};
|
|
18
|
+
export type SiteAnalyticsCameraMeta = {
|
|
19
|
+
exid: CameraExid;
|
|
20
|
+
name: string | null;
|
|
21
|
+
status: string | null;
|
|
22
|
+
featureFlags: string[] | null;
|
|
23
|
+
};
|
|
24
|
+
export type SiteAnalyticsManagedApp = {
|
|
25
|
+
id: number;
|
|
26
|
+
projectExid: ProjectExid;
|
|
27
|
+
cameraExid: CameraExid;
|
|
28
|
+
coolifyAppId: string | null;
|
|
29
|
+
appVersion: string;
|
|
30
|
+
modelId: number | null;
|
|
31
|
+
startDate: DateType | null;
|
|
32
|
+
endDate: DateType | null;
|
|
33
|
+
startHour: number;
|
|
34
|
+
endHour: number;
|
|
35
|
+
source: string;
|
|
36
|
+
override: boolean;
|
|
37
|
+
timeIncreaseFrequency: number;
|
|
38
|
+
skipWeekends: boolean;
|
|
39
|
+
tracking: boolean;
|
|
40
|
+
observations: boolean;
|
|
41
|
+
insertedAt: DateType | null;
|
|
42
|
+
updatedAt: DateType | null;
|
|
43
|
+
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
44
|
+
project: SiteAnalyticsProjectMeta | null;
|
|
45
|
+
camera: SiteAnalyticsCameraMeta | null;
|
|
46
|
+
lastTrackingAt: DateType | null;
|
|
47
|
+
};
|
|
48
|
+
export type CreateSiteAnalyticsAppPayload = {
|
|
49
|
+
projectExid: ProjectExid;
|
|
50
|
+
cameraExid: CameraExid;
|
|
51
|
+
coolifyServerUuid: string;
|
|
52
|
+
appVersion?: string;
|
|
53
|
+
modelId?: number | null;
|
|
54
|
+
startDate?: DateType | null;
|
|
55
|
+
endDate?: DateType | null;
|
|
56
|
+
startHour?: number;
|
|
57
|
+
endHour?: number;
|
|
58
|
+
source?: string;
|
|
59
|
+
override?: boolean;
|
|
60
|
+
skipWeekends?: boolean;
|
|
61
|
+
timeIncreaseFrequency?: number;
|
|
62
|
+
tracking?: boolean;
|
|
63
|
+
observations?: boolean;
|
|
64
|
+
observationPromptId?: number | null;
|
|
65
|
+
};
|
|
66
|
+
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
67
|
+
export type ModelOption = {
|
|
68
|
+
modelId: number;
|
|
69
|
+
version: string;
|
|
70
|
+
};
|
|
71
|
+
export type SiteAnalyticsAppConfigFormValue = {
|
|
72
|
+
appVersion: string;
|
|
73
|
+
modelId: number | null;
|
|
74
|
+
startDate: string | null;
|
|
75
|
+
endDate: string | null;
|
|
76
|
+
startHour: number;
|
|
77
|
+
endHour: number;
|
|
78
|
+
source: string;
|
|
79
|
+
override: boolean;
|
|
80
|
+
timeIncreaseFrequency: number;
|
|
81
|
+
skipWeekends: boolean;
|
|
82
|
+
};
|
|
83
|
+
export type SiteAnalyticsManagementListParams = PaginationParams & {
|
|
84
|
+
projectExid?: ProjectExid;
|
|
85
|
+
includeStatus?: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type CreateSiteAnalyticsAppResponse = {
|
|
88
|
+
created: boolean;
|
|
89
|
+
id: number | null;
|
|
90
|
+
data: SiteAnalyticsManagedApp | null;
|
|
91
|
+
count: number | null;
|
|
92
|
+
message: string;
|
|
93
|
+
};
|
|
94
|
+
export type DeleteSiteAnalyticsAppResponse = {
|
|
95
|
+
deleted: boolean;
|
|
96
|
+
count: number;
|
|
97
|
+
message: string;
|
|
98
|
+
};
|
|
99
|
+
export type ObservationConfigActivity = {
|
|
100
|
+
observationTypeId: number;
|
|
101
|
+
every: number | null;
|
|
102
|
+
};
|
|
103
|
+
export type ObservationConfig = {
|
|
104
|
+
id: number;
|
|
105
|
+
cameraExid: CameraExid;
|
|
106
|
+
projectExid: ProjectExid | null;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
activities: ObservationConfigActivity[];
|
|
109
|
+
createdBy: string | null;
|
|
110
|
+
insertedAt: DateType | null;
|
|
111
|
+
updatedAt: DateType | null;
|
|
112
|
+
};
|
|
113
|
+
export type UpsertObservationConfigPayload = {
|
|
114
|
+
projectExid?: ProjectExid;
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
activities: ObservationConfigActivity[];
|
|
117
|
+
};
|
|
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
|
5
5
|
status: SnapshotExtractionStatus;
|
|
6
6
|
};
|
|
7
7
|
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Cancelling = "canceling",
|
|
9
|
+
Cancelled = "cancelled",
|
|
8
10
|
Completed = "completed",
|
|
9
11
|
Failed = "failed",
|
|
12
|
+
Pending = "pending",
|
|
10
13
|
Processing = "processing"
|
|
11
14
|
}
|
|
12
15
|
export declare enum SnapshotExtractionType {
|
|
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
|
|
|
30
33
|
injectTo_cr: Boolean;
|
|
31
34
|
schedule: Schedule;
|
|
32
35
|
created_at: DateType;
|
|
36
|
+
jpegCount?: number;
|
|
37
|
+
obanJobId?: number;
|
|
33
38
|
};
|
|
34
39
|
export type SnapshotTestPayload = {
|
|
35
40
|
cameraExid?: CameraExid;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue } from "@evercam/api/types";
|
|
2
|
-
export type StoryblokAsset = {
|
|
3
|
-
id: number | null;
|
|
4
|
-
alt: string | null;
|
|
5
|
-
name: string;
|
|
6
|
-
focus: string | null;
|
|
7
|
-
title: string | null;
|
|
8
|
-
filename: string;
|
|
9
|
-
copyright: string | null;
|
|
10
|
-
fieldtype: "asset";
|
|
11
|
-
source?: string;
|
|
12
|
-
metaData?: JsonObject;
|
|
13
|
-
isExternalUrl?: boolean;
|
|
14
|
-
};
|
|
15
2
|
export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
|
|
16
3
|
id: number;
|
|
17
4
|
uuid: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Point2D, Schedule } from "@evercam/api/types";
|
|
2
2
|
export declare enum TimelapseStatus {
|
|
3
3
|
Pending = 11,
|
|
4
4
|
Completed = 5,
|
|
@@ -54,13 +54,6 @@ export declare enum TimelapseType {
|
|
|
54
54
|
Year = "year",
|
|
55
55
|
FullProject = "full_project"
|
|
56
56
|
}
|
|
57
|
-
export type TimelapseFilterQueryParams = {
|
|
58
|
-
from?: DateType;
|
|
59
|
-
to?: DateType;
|
|
60
|
-
period?: TimelapsePeriod;
|
|
61
|
-
duration?: number;
|
|
62
|
-
schedule?: Schedule;
|
|
63
|
-
};
|
|
64
57
|
export type TimelapseCreationRequestPayload = {
|
|
65
58
|
title: string;
|
|
66
59
|
duration: number;
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -193,9 +193,6 @@ export type UserUpdateRequestPayload = {
|
|
|
193
193
|
country: string;
|
|
194
194
|
persona: string;
|
|
195
195
|
};
|
|
196
|
-
export type UserDeleteRequestPayload = {
|
|
197
|
-
verifEmail: string;
|
|
198
|
-
};
|
|
199
196
|
export type GoogleAuthRequestPayload = {
|
|
200
197
|
code: string;
|
|
201
198
|
redirectUri: string;
|
|
@@ -337,6 +334,7 @@ export type ProjectUserWithRole = {
|
|
|
337
334
|
name: string;
|
|
338
335
|
exid: string;
|
|
339
336
|
};
|
|
337
|
+
persona: Persona;
|
|
340
338
|
permissions: string[];
|
|
341
339
|
role: Role;
|
|
342
340
|
subRoles: RoleSubRole[];
|