@evercam/api 1.0.0-c4d7a9505 → 1.0.0-c526e2564
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 +215 -0
- package/dist/api/api/adminApi.d.ts +382 -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 +365 -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 +161 -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/api/workflowsApi.d.ts +15 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +364 -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 +210 -56
- package/dist/{types → api/types}/anpr.d.ts +55 -13
- package/dist/{types → api/types}/auditLogs.d.ts +19 -2
- 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 +38 -9
- package/dist/{types → api/types}/camera.d.ts +138 -115
- 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 +20 -5
- 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 +25 -0
- 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 +19 -3
- package/dist/api/types/ingest.d.ts +234 -0
- package/dist/{types → api/types}/kit.d.ts +106 -59
- 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 +84 -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/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 +31 -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/api/types/workflows.d.ts +108 -0
- 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 +2776 -1036
- 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 +512 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +7 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -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/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
package/dist/types/copilot.d.ts
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/types";
|
|
2
|
-
export declare enum CopilotMessageAuthor {
|
|
3
|
-
Copilot = "copilot",
|
|
4
|
-
User = "user",
|
|
5
|
-
System = "system"
|
|
6
|
-
}
|
|
7
|
-
export declare enum CopilotMessageType {
|
|
8
|
-
Text = "text",
|
|
9
|
-
Progress = "progress",
|
|
10
|
-
Error = "error",
|
|
11
|
-
Json = "json"
|
|
12
|
-
}
|
|
13
|
-
export type CopilotMessage = {
|
|
14
|
-
content: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
type: CopilotMessageType;
|
|
17
|
-
id?: number;
|
|
18
|
-
conversationId?: number;
|
|
19
|
-
};
|
|
20
|
-
export declare enum CopilotStepId {
|
|
21
|
-
SendToLLM = "send_to_llm",
|
|
22
|
-
FunctionCallRequest = "function_call_request",
|
|
23
|
-
ExecFunctionCall = "exec_function_call",
|
|
24
|
-
SendToUser = "send_to_user",
|
|
25
|
-
RequestMissingFields = "request_missing_fields",
|
|
26
|
-
CompletedFieldsResponse = "completed_fields_response",
|
|
27
|
-
SendRawToolCallResponse = "send_raw_tool_call_response",
|
|
28
|
-
SubmitToolOutputsToLLM = "submit_tool_outputs_to_llm",
|
|
29
|
-
CancelCall = "cancel_call"
|
|
30
|
-
}
|
|
31
|
-
export declare enum CopilotMissingFieldsLabels {
|
|
32
|
-
ProjectExid = "Project",
|
|
33
|
-
CameraExid = "Camera",
|
|
34
|
-
FromDate = "Start date",
|
|
35
|
-
ToDate = "End date"
|
|
36
|
-
}
|
|
37
|
-
export type CopilotMissingField<T = any> = {
|
|
38
|
-
name: string;
|
|
39
|
-
label: string;
|
|
40
|
-
value: any;
|
|
41
|
-
type: string;
|
|
42
|
-
toolId: string;
|
|
43
|
-
error?: T;
|
|
44
|
-
};
|
|
45
|
-
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
46
|
-
export type UserConversations = CopilotConversation & {
|
|
47
|
-
Message: CopilotMessage[];
|
|
48
|
-
};
|
|
49
|
-
export declare enum CopilotSocketEvent {
|
|
50
|
-
ConversationStart = "conversation:start",
|
|
51
|
-
ConversationCreated = "conversation:created",
|
|
52
|
-
LLMMessageChunk = "llm:message:chunk",
|
|
53
|
-
LLMMessageComplete = "llm:message:complete",
|
|
54
|
-
LLMMessageLoading = "llm:message:loading",
|
|
55
|
-
LLMRequestCancel = "llm:request:cancel",
|
|
56
|
-
LLMRequestCanceled = "llm:request:canceled",
|
|
57
|
-
UserMessage = "user:message",
|
|
58
|
-
ContextError = "chat:contextError",
|
|
59
|
-
ChatError = "chat:chatError",
|
|
60
|
-
MissingFields = "chat:missingFields",
|
|
61
|
-
MissingFieldsCompleted = "chat:missingFields:completed",
|
|
62
|
-
SystemToolCallResponse = "system:toolCall:response",
|
|
63
|
-
ChangeProvider = "chat:changeProvider"
|
|
64
|
-
}
|
|
65
|
-
export type CopilotConversation = {
|
|
66
|
-
id: number;
|
|
67
|
-
user: string;
|
|
68
|
-
model: string;
|
|
69
|
-
context: string;
|
|
70
|
-
cameraExid: CameraExid;
|
|
71
|
-
projectExid: ProjectExid;
|
|
72
|
-
startDate: string;
|
|
73
|
-
endDate: string;
|
|
74
|
-
messagesCount: number;
|
|
75
|
-
};
|
|
76
|
-
export declare enum CopilotProvider {
|
|
77
|
-
Gemini = "gemini",
|
|
78
|
-
ChatGPT = "chatgpt"
|
|
79
|
-
}
|
|
80
|
-
export declare enum CopilotSuggestion {
|
|
81
|
-
UserManual = "user_manual",
|
|
82
|
-
GateReport = "gate_report",
|
|
83
|
-
Weather = "weather",
|
|
84
|
-
Clip = "clip",
|
|
85
|
-
Timelapse = "timelapse",
|
|
86
|
-
Chart = "chart"
|
|
87
|
-
}
|
|
88
|
-
export declare enum CopilotChatProvider {
|
|
89
|
-
Gemini = "gemini",
|
|
90
|
-
ChatGpt = "chatGpt"
|
|
91
|
-
}
|
|
92
|
-
export declare enum CopilotLayout {
|
|
93
|
-
Floating = "floating"
|
|
94
|
-
}
|
|
95
|
-
export declare enum CopilotToolId {
|
|
96
|
-
GetReports = "getReports",
|
|
97
|
-
GetVehiclesDetections = "getVehiclesDetections",
|
|
98
|
-
GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
|
|
99
|
-
GetWeather = "getWeather",
|
|
100
|
-
CreateClip = "createClip",
|
|
101
|
-
NavigateToPage = "navigateToPage",
|
|
102
|
-
CreateTimelapse = "createTimelapse",
|
|
103
|
-
RequestMissingFields = "requestMissingFields",
|
|
104
|
-
RenderCharts = "renderCharts"
|
|
105
|
-
}
|
|
106
|
-
export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
|
|
107
|
-
toolId?: CopilotToolId;
|
|
108
|
-
input?: I;
|
|
109
|
-
output?: O;
|
|
110
|
-
};
|
|
111
|
-
export type CopilotCamera = {
|
|
112
|
-
name: string;
|
|
113
|
-
exid: CameraExid;
|
|
114
|
-
status: CameraStatus;
|
|
115
|
-
featureFlags?: CameraFeatureFlag[];
|
|
116
|
-
};
|
|
117
|
-
export type CopilotProject = {
|
|
118
|
-
name: string;
|
|
119
|
-
exid: ProjectExid;
|
|
120
|
-
status: ProjectStatus;
|
|
121
|
-
featureFlags?: ProjectFeatureFlag[];
|
|
122
|
-
cameras?: CopilotCamera[];
|
|
123
|
-
};
|
|
124
|
-
export type CopilotMessageContext = {
|
|
125
|
-
pageId?: AnalyticsEventPageId;
|
|
126
|
-
selectedCamera?: CopilotCamera;
|
|
127
|
-
selectedProject?: CopilotProject;
|
|
128
|
-
};
|
|
129
|
-
export type CopilotMessageStep = {
|
|
130
|
-
args: string[];
|
|
131
|
-
depth: number;
|
|
132
|
-
id?: number;
|
|
133
|
-
message_id?: number;
|
|
134
|
-
step: CopilotStepId;
|
|
135
|
-
timestamp: string;
|
|
136
|
-
};
|
|
137
|
-
export declare enum CopilotMissingFieldComponent {
|
|
138
|
-
Select = "SelectField",
|
|
139
|
-
DateTime = "DateTimeField",
|
|
140
|
-
Schedule = "ScheduleField",
|
|
141
|
-
MultiOptions = "MultiOptionsField",
|
|
142
|
-
Switch = "SwitchField"
|
|
143
|
-
}
|
|
144
|
-
export declare enum CopilotMissingFieldName {
|
|
145
|
-
ProjectExid = "projectExid",
|
|
146
|
-
CameraExid = "cameraExid",
|
|
147
|
-
FromDate = "fromDate",
|
|
148
|
-
ToDate = "toDate",
|
|
149
|
-
Schedule = "schedule",
|
|
150
|
-
Duration = "duration"
|
|
151
|
-
}
|
|
152
|
-
export declare enum CopilotMissingFieldType {
|
|
153
|
-
Boolean = "boolean",
|
|
154
|
-
String = "string",
|
|
155
|
-
Number = "number"
|
|
156
|
-
}
|
|
157
|
-
export type CopilotCompletedFields = Record<string, unknown>;
|
package/dist/types/drone.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type DroneModel = {
|
|
2
|
-
cesiumId: string;
|
|
3
|
-
cesiumId2D: string;
|
|
4
|
-
date: string;
|
|
5
|
-
cesiumPointCloudId: string;
|
|
6
|
-
pointSize: string;
|
|
7
|
-
maximumScreenSpaceError: string;
|
|
8
|
-
link: string;
|
|
9
|
-
trueIndex: number;
|
|
10
|
-
};
|
|
11
|
-
export type DroneProjectJsonResponse = {
|
|
12
|
-
models: DroneModel[];
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
export declare enum DroneUrlParams {
|
|
16
|
-
Date = "date"
|
|
17
|
-
}
|
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
|
-
};
|
package/dist/types/map.d.ts
DELETED
|
@@ -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/project.d.ts
DELETED
|
@@ -1,127 +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
|
-
ownerEmail?: string;
|
|
19
|
-
ownerName?: string;
|
|
20
|
-
camerasRestrictionType?: string;
|
|
21
|
-
};
|
|
22
|
-
export declare enum ProjectStatus {
|
|
23
|
-
ToStart = "To Start",
|
|
24
|
-
InProgress = "In Progress",
|
|
25
|
-
Completed = "Completed",
|
|
26
|
-
NotAplicable = "Not Applicable"
|
|
27
|
-
}
|
|
28
|
-
export declare enum ProjectArchiveTier {
|
|
29
|
-
Full = "Full",
|
|
30
|
-
Partial = "Partial",
|
|
31
|
-
Minimal = "Minimal",
|
|
32
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
33
|
-
}
|
|
34
|
-
export type ProjectResponsePayload = {
|
|
35
|
-
data?: Project[];
|
|
36
|
-
};
|
|
37
|
-
export type UpdateCameraRestrictionPayload = {
|
|
38
|
-
isAccessRestricted?: boolean;
|
|
39
|
-
};
|
|
40
|
-
export type Logo = {
|
|
41
|
-
name: string;
|
|
42
|
-
url: string;
|
|
43
|
-
};
|
|
44
|
-
export type ProjectLogoResponsePayload = Logo[];
|
|
45
|
-
export declare enum ProjectFeatureFlag {
|
|
46
|
-
AnprLegacy = "anpr_legacy",
|
|
47
|
-
DroneView = "drone_view",
|
|
48
|
-
Bim = "4d_bim",
|
|
49
|
-
BimItwin = "4d_bim_itwin",
|
|
50
|
-
BimForge = "4d_bim_forge",
|
|
51
|
-
ThreeSixtyView = "360_view",
|
|
52
|
-
NdaMc = "NDA/MC",
|
|
53
|
-
GateReport = "gate_report",
|
|
54
|
-
GateReportAutoVerify = "auto_publish",
|
|
55
|
-
GateReportMotionDetection = "motion_detection",
|
|
56
|
-
FullEmpty = "full_empty",
|
|
57
|
-
MediaHubSharing = "archives_sharing",
|
|
58
|
-
GateReportAnprBased = "anpr_sourced",
|
|
59
|
-
NoLicensePlate = "no_license_plate",
|
|
60
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
61
|
-
SmartSearch = "smart_search",
|
|
62
|
-
PpeMonitoring = "ppe_monitoring"
|
|
63
|
-
}
|
|
64
|
-
export type ProjectBatteryReading = {
|
|
65
|
-
exid: number;
|
|
66
|
-
voltage: number;
|
|
67
|
-
lastSeen: DateType;
|
|
68
|
-
};
|
|
69
|
-
export type ThumbnailData = {
|
|
70
|
-
cameraExid: CameraExid;
|
|
71
|
-
custom: boolean;
|
|
72
|
-
image: string;
|
|
73
|
-
};
|
|
74
|
-
export type ProjectsQueryParams = PaginationParams & {
|
|
75
|
-
name: string;
|
|
76
|
-
exid: string;
|
|
77
|
-
status: ProjectStatus;
|
|
78
|
-
cameras: string;
|
|
79
|
-
featureFlags: Array<ProjectFeatureFlag>;
|
|
80
|
-
archived: string;
|
|
81
|
-
};
|
|
82
|
-
export type ProjectCreateRequestPayload = {
|
|
83
|
-
projectExid?: string;
|
|
84
|
-
projectName: string;
|
|
85
|
-
ownerId: number;
|
|
86
|
-
cameras: string[];
|
|
87
|
-
};
|
|
88
|
-
export type ProjectCreateResponse = {
|
|
89
|
-
name: string;
|
|
90
|
-
exid: string;
|
|
91
|
-
id: number;
|
|
92
|
-
userId: number;
|
|
93
|
-
zohoId: string;
|
|
94
|
-
};
|
|
95
|
-
export type ProjectUpdateRequestPayload = {
|
|
96
|
-
name: string;
|
|
97
|
-
timezone: string;
|
|
98
|
-
featureFlags: ProjectFeatureFlag[];
|
|
99
|
-
cameras: string[];
|
|
100
|
-
};
|
|
101
|
-
export type ProjectStatusStats = {
|
|
102
|
-
nil: number;
|
|
103
|
-
Completed: number;
|
|
104
|
-
"In Progress": number;
|
|
105
|
-
"Not Applicable": number;
|
|
106
|
-
"To Start": number;
|
|
107
|
-
};
|
|
108
|
-
export type ProjectUserProperty = {
|
|
109
|
-
active: boolean;
|
|
110
|
-
activeOneMonth: boolean;
|
|
111
|
-
cameraExid: string;
|
|
112
|
-
cameraName: string;
|
|
113
|
-
cameraRights: string;
|
|
114
|
-
email: string;
|
|
115
|
-
eventsCount: number;
|
|
116
|
-
fullname: string;
|
|
117
|
-
id: number;
|
|
118
|
-
lastSeenAt: DateTime;
|
|
119
|
-
persona: string;
|
|
120
|
-
};
|
|
121
|
-
export type ProjectUsers = {
|
|
122
|
-
cameras: {
|
|
123
|
-
exid: string;
|
|
124
|
-
name: string;
|
|
125
|
-
}[];
|
|
126
|
-
users: Record<string, ProjectUserProperty[]>;
|
|
127
|
-
};
|
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
|
-
};
|