@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +212 -15
- package/dist/api/api/adminApi.d.ts +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +56 -34
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +57 -33
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +6 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +194 -27
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +63 -10
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- 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 +8 -1
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { AerialAllocation, DroneFlightMetadata, DroneFileState, DroneFileError } from "@evercam/api/types";
|
|
2
|
+
export declare enum DroneUploadErrorCode {
|
|
3
|
+
Offline = "offline",
|
|
4
|
+
UploadStalled = "upload_stalled",
|
|
5
|
+
AuthorizationExpired = "upload_authorization_expired",
|
|
6
|
+
UploadRejected = "upload_rejected",
|
|
7
|
+
ServerUnreachable = "server_unreachable",
|
|
8
|
+
UploadStopped = "upload_stopped",
|
|
9
|
+
UploadCancelled = "upload_cancelled",
|
|
10
|
+
DuplicateFilenames = "duplicate_filenames",
|
|
11
|
+
DifferentFlight = "different_flight",
|
|
12
|
+
ProcessingClosed = "processing_closed",
|
|
13
|
+
PartialUploadFailed = "partial_upload_failed",
|
|
14
|
+
NotSubmitted = "not_submitted"
|
|
15
|
+
}
|
|
16
|
+
export declare enum DroneUploadStage {
|
|
17
|
+
Prepare = "prepare",
|
|
18
|
+
ChooseIngestUrl = "choose_ingest_url",
|
|
19
|
+
CreateProcessing = "create_processing",
|
|
20
|
+
GetProcessing = "get_processing",
|
|
21
|
+
Allocate = "allocate",
|
|
22
|
+
Put = "put",
|
|
23
|
+
Acknowledge = "acknowledge",
|
|
24
|
+
Complete = "complete"
|
|
25
|
+
}
|
|
26
|
+
export declare enum DroneUploadRetryTrigger {
|
|
27
|
+
Manual = "manual",
|
|
28
|
+
Online = "online",
|
|
29
|
+
Timer = "timer"
|
|
30
|
+
}
|
|
31
|
+
export type DroneUploadEventProps = {
|
|
32
|
+
processingId?: number;
|
|
33
|
+
isAerialOnly: boolean;
|
|
34
|
+
uploadedFiles: number;
|
|
35
|
+
totalFiles: number;
|
|
36
|
+
uploadedBytes: number;
|
|
37
|
+
totalBytes: number;
|
|
38
|
+
connectionType?: string;
|
|
39
|
+
};
|
|
40
|
+
export type AerialUploadFile = {
|
|
41
|
+
file: File;
|
|
42
|
+
allocation: AerialAllocation;
|
|
43
|
+
};
|
|
44
|
+
export declare enum DroneUploadStatus {
|
|
45
|
+
Queued = "queued",
|
|
46
|
+
Uploading = "uploading",
|
|
47
|
+
Failed = "failed",
|
|
48
|
+
Completed = "completed"
|
|
49
|
+
}
|
|
50
|
+
export type DroneUploadProgress = {
|
|
51
|
+
status: DroneUploadStatus;
|
|
52
|
+
uploadedFiles: number;
|
|
53
|
+
totalFiles: number;
|
|
54
|
+
uploadedBytes: number;
|
|
55
|
+
totalBytes: number;
|
|
56
|
+
percentage: number;
|
|
57
|
+
startedAt: number;
|
|
58
|
+
initialBytes: number;
|
|
59
|
+
error?: Error;
|
|
60
|
+
};
|
|
61
|
+
export type DroneUploadOptions = {
|
|
62
|
+
label?: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
processingId?: number;
|
|
65
|
+
flightMetadata: DroneFlightMetadata;
|
|
66
|
+
files: File[];
|
|
67
|
+
aerialShots: AerialUploadFile[];
|
|
68
|
+
onProgress?: (progress: DroneUploadProgress) => void;
|
|
69
|
+
};
|
|
70
|
+
export type AerialUploadOptions = Pick<DroneUploadOptions, "label" | "aerialShots" | "onProgress"> & {
|
|
71
|
+
processingId: number;
|
|
72
|
+
};
|
|
73
|
+
export type DroneUploadJob = {
|
|
74
|
+
readonly projectId?: string;
|
|
75
|
+
readonly initialProcessingId?: number;
|
|
76
|
+
readonly label: string;
|
|
77
|
+
readonly aerialFilenames: string[];
|
|
78
|
+
readonly createdAt: number;
|
|
79
|
+
processingId?: number;
|
|
80
|
+
ingestUrl?: string;
|
|
81
|
+
stage?: DroneUploadStage;
|
|
82
|
+
progress: DroneUploadProgress;
|
|
83
|
+
run: () => Promise<void>;
|
|
84
|
+
cancel: () => Promise<void>;
|
|
85
|
+
};
|
|
86
|
+
export type UploadCollection = {
|
|
87
|
+
files: File[];
|
|
88
|
+
initialStates?: DroneFileState[];
|
|
89
|
+
allocate: (files: File[]) => Promise<DroneFileState[]>;
|
|
90
|
+
acknowledge: (filenames: string[]) => Promise<{
|
|
91
|
+
errors: DroneFileError[];
|
|
92
|
+
}>;
|
|
93
|
+
};
|
|
@@ -13,7 +13,7 @@ export type EventMarker<T extends {}> = T & {
|
|
|
13
13
|
label: string;
|
|
14
14
|
thumbnailUrl: string;
|
|
15
15
|
isActive: boolean;
|
|
16
|
-
|
|
16
|
+
markerType?: RecordingsMarker;
|
|
17
17
|
};
|
|
18
18
|
export type SnapshotEvent<T extends {}> = T & {
|
|
19
19
|
eventTime: Timestamp;
|
|
@@ -22,6 +22,13 @@ export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
|
|
|
22
22
|
frameIndex: number;
|
|
23
23
|
snapshotTimestamp: Timestamp;
|
|
24
24
|
};
|
|
25
|
+
export declare enum RecordingsMarker {
|
|
26
|
+
Comment = "comment",
|
|
27
|
+
GateReport = "gate-report",
|
|
28
|
+
Anpr = "anpr",
|
|
29
|
+
Detection = "detection",
|
|
30
|
+
SmartSearch = "smart-search"
|
|
31
|
+
}
|
|
25
32
|
export declare enum ImageQuality {
|
|
26
33
|
ThreeSixty = "360",
|
|
27
34
|
FourEighty = "480",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from "@evercam/api/types";
|
|
2
2
|
export * from "./components";
|
|
3
|
+
export * from "./report";
|
|
4
|
+
export * from "./customDataTableFilters";
|
|
3
5
|
export * from "./imagePlayer";
|
|
4
6
|
export * from "./timeline";
|
|
5
7
|
export * from "./rbac";
|
|
8
|
+
export * from "./observations";
|
|
9
|
+
export * from "./droneUpload";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ObservationsTableHeader = {
|
|
2
|
+
isThumbnail?: boolean;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
sortable: boolean;
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
class: string;
|
|
9
|
+
align: string;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationsCountDay = {
|
|
12
|
+
day: string;
|
|
13
|
+
};
|
|
14
|
+
export type ObservationsTableOptionsUpdate = {
|
|
15
|
+
page: number;
|
|
16
|
+
sortBy: string[];
|
|
17
|
+
sortDesc: boolean[];
|
|
18
|
+
};
|
|
19
|
+
export type ObservationsEventsTableState = {
|
|
20
|
+
height: number | string;
|
|
21
|
+
};
|
|
22
|
+
export type ObservationTypeOption = {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type Vue from "vue";
|
|
2
|
+
import type { CancelToken } from "axios";
|
|
3
|
+
import type { GlobalSearchResource, Operator } from "@evercam/api/types";
|
|
4
|
+
import type { DateRangeOption } from "@evercam/shared/utils/datePresets";
|
|
5
|
+
export type ReportTableHeaderParams<TItem = unknown> = {
|
|
6
|
+
value: string;
|
|
7
|
+
text: string;
|
|
8
|
+
align?: string;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
width?: number | string;
|
|
12
|
+
copyable?: boolean;
|
|
13
|
+
toStringFn?: (item: TItem, key: string) => string;
|
|
14
|
+
sort?(a: unknown, b: unknown): number;
|
|
15
|
+
togglable?: boolean;
|
|
16
|
+
filterable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare enum ReportSortDirection {
|
|
19
|
+
Asc = "asc",
|
|
20
|
+
Desc = "desc"
|
|
21
|
+
}
|
|
22
|
+
export declare enum ReportFilterComponent {
|
|
23
|
+
Text = "TextFieldSearchFilter",
|
|
24
|
+
Select = "SelectSearchFilter",
|
|
25
|
+
DatePicker = "DatePickerSearchFilter",
|
|
26
|
+
CountField = "CountFieldSearchFilter",
|
|
27
|
+
Tag = "TagSearchFilter",
|
|
28
|
+
Autocomplete = "AutocompleteSearchFilter",
|
|
29
|
+
DateTimeRange = "DateTimeRangeSearchFilter"
|
|
30
|
+
}
|
|
31
|
+
export type ReportFilterCell = {
|
|
32
|
+
header: ReportTableHeaderParams;
|
|
33
|
+
field?: ReportFilterField;
|
|
34
|
+
};
|
|
35
|
+
export type OfflineCamerasReportContext = Vue & {
|
|
36
|
+
report: string;
|
|
37
|
+
};
|
|
38
|
+
export type ReportFilterItem = {
|
|
39
|
+
name?: string;
|
|
40
|
+
value: string | number | boolean | null;
|
|
41
|
+
};
|
|
42
|
+
export type ReportSearchParamValue = string | number | boolean | null | undefined | (string | number | boolean | null)[];
|
|
43
|
+
export type ReportSearchParams = Record<string, ReportSearchParamValue>;
|
|
44
|
+
export type ReportItem = Record<string, unknown>;
|
|
45
|
+
export type ReportProviderResponse<TItem = ReportItem> = {
|
|
46
|
+
total?: number;
|
|
47
|
+
[dataField: string]: TItem[] | number | undefined;
|
|
48
|
+
};
|
|
49
|
+
export type ReportTableProvider<TItem = ReportItem> = (request: {
|
|
50
|
+
cancelToken: CancelToken;
|
|
51
|
+
params: ReportSearchParams;
|
|
52
|
+
}) => Promise<ReportProviderResponse<TItem>>;
|
|
53
|
+
export type ReportTableOptions = {
|
|
54
|
+
page?: number;
|
|
55
|
+
itemsPerPage?: number | string;
|
|
56
|
+
sortBy?: string[];
|
|
57
|
+
sortDesc?: boolean[];
|
|
58
|
+
};
|
|
59
|
+
export type ReportFilterFieldNamesMap = {
|
|
60
|
+
fromField: string;
|
|
61
|
+
toField: string;
|
|
62
|
+
};
|
|
63
|
+
export type ReportFilterOperatorItem = {
|
|
64
|
+
value: Operator;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
export type ReportFilterAttributes = {
|
|
68
|
+
items?: ReportFilterItem[];
|
|
69
|
+
multiple?: boolean;
|
|
70
|
+
isAutocomplete?: boolean;
|
|
71
|
+
value?: string | number | string[];
|
|
72
|
+
label?: string;
|
|
73
|
+
textFieldAttrs?: {
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
};
|
|
76
|
+
isRange?: boolean;
|
|
77
|
+
convertToIso?: boolean;
|
|
78
|
+
minDate?: string;
|
|
79
|
+
maxDate?: string;
|
|
80
|
+
options?: DateRangeOption[];
|
|
81
|
+
withOperator?: boolean;
|
|
82
|
+
operatorFieldName?: string;
|
|
83
|
+
operatorLabel?: string;
|
|
84
|
+
operatorItems?: ReportFilterOperatorItem[];
|
|
85
|
+
showToolTip?: boolean;
|
|
86
|
+
toolTipText?: string;
|
|
87
|
+
"menu-props"?: {
|
|
88
|
+
offsetY?: boolean;
|
|
89
|
+
};
|
|
90
|
+
itemText?: string;
|
|
91
|
+
resource?: GlobalSearchResource;
|
|
92
|
+
fromField?: string;
|
|
93
|
+
toField?: string;
|
|
94
|
+
};
|
|
95
|
+
export type ReportFilterField<TItem = ReportItem> = {
|
|
96
|
+
component: ReportFilterComponent;
|
|
97
|
+
name?: string;
|
|
98
|
+
width?: number;
|
|
99
|
+
attributes?: ReportFilterAttributes;
|
|
100
|
+
listeners?: {
|
|
101
|
+
keypress?: (event: KeyboardEvent) => boolean | void;
|
|
102
|
+
};
|
|
103
|
+
fieldNamesMap?: ReportFilterFieldNamesMap;
|
|
104
|
+
isGlobalFilter?: boolean;
|
|
105
|
+
offline?: boolean;
|
|
106
|
+
customFilter?: (item: TItem, fieldName: string, search: ReportSearchParamValue) => boolean;
|
|
107
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DateRange, DayMeta } from "@evercam/ui";
|
|
2
|
+
/**
|
|
3
|
+
* EDatePicker works in plain local `Date`s; this app stores dates as
|
|
4
|
+
* "YYYY-MM-DD" strings. Both helpers carry the wall-clock reading across that
|
|
5
|
+
* boundary — never the instant — so a date never shifts by a day.
|
|
6
|
+
*/
|
|
7
|
+
export declare function toCalendarDate(value?: string | number | Date | null, { timezone, withHour }?: {
|
|
8
|
+
timezone?: string;
|
|
9
|
+
withHour?: boolean;
|
|
10
|
+
}): Date | undefined;
|
|
11
|
+
export declare function toIsoDay(date?: Date | null): string;
|
|
12
|
+
export declare function toCalendarDayEnd(value?: string | number | Date | null, timezone?: string): Date | undefined;
|
|
13
|
+
export declare function toCalendarRange(value?: string[] | null): DateRange;
|
|
14
|
+
export declare function fromCalendarRange(range?: DateRange | null): string[];
|
|
15
|
+
export declare function toCssColor(color?: string): string | undefined;
|
|
16
|
+
export declare function toDayMeta({ date, events, eventColor, }: {
|
|
17
|
+
date: Date;
|
|
18
|
+
events?: string[] | ((day: string) => boolean);
|
|
19
|
+
eventColor?: string | ((day: string) => string | undefined);
|
|
20
|
+
}): DayMeta | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Days inside the current selection carry no marker; everything else keeps the
|
|
23
|
+
* "available footage" dot. An empty or half-made selection marks every day.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getOutsideRangeColor(day: string, range?: string[] | null, color?: string): string | undefined;
|
|
26
|
+
export declare function orderDayRange(range?: string[] | null): {
|
|
27
|
+
fromDate: string;
|
|
28
|
+
toDate: string;
|
|
29
|
+
} | null;
|
|
30
|
+
export declare function toDayBounds({ fromDate, toDate, }: {
|
|
31
|
+
fromDate: string;
|
|
32
|
+
toDate: string;
|
|
33
|
+
}): {
|
|
34
|
+
fromDate: string;
|
|
35
|
+
toDate: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DatePreset as EDatePickerPreset, WeekStart } from "@evercam/ui";
|
|
2
|
+
export declare enum DateRangeOption {
|
|
3
|
+
Today = 0,
|
|
4
|
+
Yesterday = -1,
|
|
5
|
+
Last7Days = -7,
|
|
6
|
+
Last30Days = -30,
|
|
7
|
+
Last90Days = -90,
|
|
8
|
+
Last365Days = -365,
|
|
9
|
+
Next7Days = 7,
|
|
10
|
+
Next30Days = 30,
|
|
11
|
+
Next60Days = 60,
|
|
12
|
+
ThisMonth = "__thisMonth__",
|
|
13
|
+
LastCalendarMonth = "__lastCalendarMonth__",
|
|
14
|
+
DataRange = "__dataRange__",
|
|
15
|
+
CalendarRange = "__calendarRange__"
|
|
16
|
+
}
|
|
17
|
+
export declare const DefaultDateRangeOptions: DateRangeOption[];
|
|
18
|
+
export type DateRangePresetOptions = {
|
|
19
|
+
min?: Date;
|
|
20
|
+
max?: Date;
|
|
21
|
+
dataRangeLabel?: string;
|
|
22
|
+
weekStartsOn?: WeekStart;
|
|
23
|
+
};
|
|
24
|
+
export declare function toDateRangePresets(options: DateRangeOption[], $t: (key: string) => string, { min, max, dataRangeLabel, weekStartsOn }?: DateRangePresetOptions): EDatePickerPreset[];
|
|
25
|
+
export declare function matchDateRangePreset({ range, presets, min, max, weekStartsOn, }: {
|
|
26
|
+
range?: string[] | null;
|
|
27
|
+
presets: EDatePickerPreset[];
|
|
28
|
+
min?: Date;
|
|
29
|
+
max?: Date;
|
|
30
|
+
weekStartsOn?: WeekStart;
|
|
31
|
+
}): EDatePickerPreset | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-7e19ed0be",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
|
|
32
|
+
"bootstrap": "node ../shared/ci-scripts/bootstrap.js",
|
|
31
33
|
"clean": "rimraf dist",
|
|
32
34
|
"typecheck": "tsc --noEmit",
|
|
33
35
|
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
41
|
+
"@types/node": "^25.9.1",
|
|
40
42
|
"vite": "latest",
|
|
41
43
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
44
|
"vite-plugin-dts": "^4.5.4"
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@evercam/api/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
|
-
RequestAgentCall = "request_agent_call",
|
|
31
|
-
ExecAgentCall = "exec_agent_call"
|
|
32
|
-
}
|
|
33
|
-
export declare enum CopilotMissingFieldsLabels {
|
|
34
|
-
ProjectExid = "Project",
|
|
35
|
-
CameraExid = "Camera",
|
|
36
|
-
FromDate = "Start date",
|
|
37
|
-
ToDate = "End date"
|
|
38
|
-
}
|
|
39
|
-
export type CopilotMissingField<T = unknown> = {
|
|
40
|
-
name: string;
|
|
41
|
-
label: string;
|
|
42
|
-
value: unknown;
|
|
43
|
-
type: string;
|
|
44
|
-
toolId: string;
|
|
45
|
-
error?: T;
|
|
46
|
-
};
|
|
47
|
-
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
48
|
-
export type UserConversations = CopilotConversation & {
|
|
49
|
-
Message: CopilotMessage[];
|
|
50
|
-
};
|
|
51
|
-
export declare enum CopilotSocketEvent {
|
|
52
|
-
ConversationStart = "conversation:start",
|
|
53
|
-
ConversationCreated = "conversation:created",
|
|
54
|
-
LLMMessageChunk = "llm:message:chunk",
|
|
55
|
-
LLMMessageComplete = "llm:message:complete",
|
|
56
|
-
LLMMessageLoading = "llm:message:loading",
|
|
57
|
-
LLMRequestCancel = "llm:request:cancel",
|
|
58
|
-
LLMRequestCanceled = "llm:request:canceled",
|
|
59
|
-
UserMessage = "user:message",
|
|
60
|
-
ContextError = "chat:contextError",
|
|
61
|
-
ChatError = "chat:chatError",
|
|
62
|
-
MissingFields = "chat:missingFields",
|
|
63
|
-
MissingFieldsCompleted = "chat:missingFields:completed",
|
|
64
|
-
SystemToolCallResponse = "system:toolCall:response",
|
|
65
|
-
ChangeProvider = "chat:changeProvider"
|
|
66
|
-
}
|
|
67
|
-
export type CopilotConversation = {
|
|
68
|
-
id: number;
|
|
69
|
-
user: string;
|
|
70
|
-
model: string;
|
|
71
|
-
context: string;
|
|
72
|
-
cameraExid: CameraExid;
|
|
73
|
-
projectExid: ProjectExid;
|
|
74
|
-
startDate: string;
|
|
75
|
-
endDate: string;
|
|
76
|
-
messagesCount: number;
|
|
77
|
-
};
|
|
78
|
-
export declare enum CopilotProvider {
|
|
79
|
-
Gemini = "gemini",
|
|
80
|
-
ChatGPT = "chatgpt"
|
|
81
|
-
}
|
|
82
|
-
export declare enum CopilotSuggestion {
|
|
83
|
-
UserManual = "user_manual",
|
|
84
|
-
GateReport = "gate_report",
|
|
85
|
-
Weather = "weather",
|
|
86
|
-
Clip = "clip",
|
|
87
|
-
Timelapse = "timelapse",
|
|
88
|
-
Chart = "chart",
|
|
89
|
-
SmartSearch = "smart_search"
|
|
90
|
-
}
|
|
91
|
-
export declare enum CopilotChatProvider {
|
|
92
|
-
Gemini = "gemini",
|
|
93
|
-
ChatGpt = "chatGpt"
|
|
94
|
-
}
|
|
95
|
-
export declare enum CopilotLayout {
|
|
96
|
-
Floating = "floating"
|
|
97
|
-
}
|
|
98
|
-
export declare enum CopilotToolId {
|
|
99
|
-
GetReports = "getReports",
|
|
100
|
-
GetVehiclesDetections = "getVehiclesDetections",
|
|
101
|
-
GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
|
|
102
|
-
GetWeather = "getWeather",
|
|
103
|
-
CreateClip = "createClip",
|
|
104
|
-
NavigateToPage = "navigateToPage",
|
|
105
|
-
CreateTimelapse = "createTimelapse",
|
|
106
|
-
RequestMissingFields = "requestMissingFields",
|
|
107
|
-
RenderCharts = "renderCharts",
|
|
108
|
-
SmartSearch = "smartSearch"
|
|
109
|
-
}
|
|
110
|
-
export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
|
|
111
|
-
toolId?: CopilotToolId;
|
|
112
|
-
input?: I;
|
|
113
|
-
output?: O;
|
|
114
|
-
isAgent?: boolean;
|
|
115
|
-
};
|
|
116
|
-
export type CopilotCamera = {
|
|
117
|
-
name: string;
|
|
118
|
-
exid: CameraExid;
|
|
119
|
-
status: CameraStatus;
|
|
120
|
-
featureFlags?: CameraFeatureFlag[];
|
|
121
|
-
};
|
|
122
|
-
export type CopilotProject = {
|
|
123
|
-
name: string;
|
|
124
|
-
exid: ProjectExid;
|
|
125
|
-
status: ProjectStatus;
|
|
126
|
-
featureFlags?: ProjectFeatureFlag[];
|
|
127
|
-
cameras?: CopilotCamera[];
|
|
128
|
-
};
|
|
129
|
-
export type CopilotMessageContext = {
|
|
130
|
-
pageId?: AnalyticsEventPageId;
|
|
131
|
-
selectedCamera?: CopilotCamera;
|
|
132
|
-
selectedProject?: CopilotProject;
|
|
133
|
-
};
|
|
134
|
-
export type CopilotMessageStep = {
|
|
135
|
-
args: string[];
|
|
136
|
-
depth: number;
|
|
137
|
-
id?: number;
|
|
138
|
-
message_id?: number;
|
|
139
|
-
step: CopilotStepId;
|
|
140
|
-
timestamp: string;
|
|
141
|
-
};
|
|
142
|
-
export declare enum CopilotMissingFieldComponent {
|
|
143
|
-
Select = "SelectField",
|
|
144
|
-
DateTime = "DateTimeField",
|
|
145
|
-
Schedule = "ScheduleField",
|
|
146
|
-
MultiOptions = "MultiOptionsField",
|
|
147
|
-
Switch = "SwitchField"
|
|
148
|
-
}
|
|
149
|
-
export declare enum CopilotMissingFieldName {
|
|
150
|
-
ProjectExid = "projectExid",
|
|
151
|
-
CameraExid = "cameraExid",
|
|
152
|
-
FromDate = "fromDate",
|
|
153
|
-
ToDate = "toDate",
|
|
154
|
-
Schedule = "schedule",
|
|
155
|
-
Duration = "duration"
|
|
156
|
-
}
|
|
157
|
-
export declare enum CopilotMissingFieldType {
|
|
158
|
-
Boolean = "boolean",
|
|
159
|
-
String = "string",
|
|
160
|
-
Number = "number"
|
|
161
|
-
}
|
|
162
|
-
export type CopilotCompletedFields = Record<string, unknown>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type VendorModel = {
|
|
2
|
-
cameraCount: number;
|
|
3
|
-
exid: string;
|
|
4
|
-
h264Url: string;
|
|
5
|
-
jpgUrl: string;
|
|
6
|
-
name: string;
|
|
7
|
-
online: number;
|
|
8
|
-
playbackUrl: string;
|
|
9
|
-
};
|
|
10
|
-
export type VendorModelRequestPayload = {
|
|
11
|
-
sort: string;
|
|
12
|
-
};
|
|
13
|
-
export type VendorModelResponsePayload = {
|
|
14
|
-
data: VendorModel[];
|
|
15
|
-
};
|