@evercam/api 1.0.0-003a1ed80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/api/adminApi.d.ts +355 -0
- package/dist/api/api/aiApi.d.ts +146 -0
- package/dist/api/api/authzApi.d.ts +21 -0
- package/dist/api/api/client/axios.d.ts +13 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- 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 +315 -0
- package/dist/api/api/evercamLabsApi.d.ts +43 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +73 -0
- package/dist/api/api/ptzApi.d.ts +36 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +99 -0
- package/dist/api/types/aconex.d.ts +45 -0
- package/dist/api/types/analytics.d.ts +489 -0
- package/dist/api/types/anpr.d.ts +103 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +10 -0
- package/dist/api/types/axios.d.ts +65 -0
- package/dist/api/types/bim.d.ts +147 -0
- package/dist/api/types/camera.d.ts +531 -0
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/api/types/company.d.ts +74 -0
- package/dist/api/types/compare.d.ts +57 -0
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/api/types/copilot.d.ts +157 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +5 -0
- package/dist/api/types/detections.d.ts +126 -0
- package/dist/api/types/drone.d.ts +17 -0
- package/dist/api/types/errors.d.ts +48 -0
- package/dist/api/types/gateReport.d.ts +441 -0
- package/dist/api/types/hdd.d.ts +63 -0
- package/dist/api/types/index.d.ts +57 -0
- package/dist/api/types/ingest.d.ts +47 -0
- package/dist/api/types/kit.d.ts +355 -0
- package/dist/api/types/map.d.ts +4 -0
- package/dist/api/types/media.d.ts +114 -0
- package/dist/api/types/notification.d.ts +27 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/planner.d.ts +32 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/api/types/progressPhoto.d.ts +104 -0
- package/dist/api/types/project.d.ts +129 -0
- package/dist/api/types/recording.d.ts +123 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +51 -0
- package/dist/api/types/router.d.ts +67 -0
- package/dist/api/types/shared.d.ts +194 -0
- package/dist/api/types/shares.d.ts +196 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/api/types/snapshots.d.ts +50 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageServers.d.ts +4 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +21 -0
- package/dist/api/types/timelapse.d.ts +99 -0
- package/dist/api/types/user.d.ts +271 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +33 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +87 -0
- package/dist/api/types/widget.d.ts +191 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2971 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- 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 +193 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +50 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, Schedule } from "@/types";
|
|
2
|
+
export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
3
|
+
camera: string;
|
|
4
|
+
cameraExid: CameraExid;
|
|
5
|
+
status: SnapshotExtractionStatus;
|
|
6
|
+
};
|
|
7
|
+
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Completed = "completed",
|
|
9
|
+
Failed = "failed",
|
|
10
|
+
Processing = "processing"
|
|
11
|
+
}
|
|
12
|
+
export declare enum SnapshotExtractionType {
|
|
13
|
+
Cloud = "cloud",
|
|
14
|
+
Local = "local",
|
|
15
|
+
Timelapse = "timelapse"
|
|
16
|
+
}
|
|
17
|
+
export type SnapshotExtraction = {
|
|
18
|
+
id: number;
|
|
19
|
+
cameraId: number;
|
|
20
|
+
cameraExid: CameraExid;
|
|
21
|
+
cameraName: string;
|
|
22
|
+
fromDate: DateType;
|
|
23
|
+
toDate: DateType;
|
|
24
|
+
type: SnapshotExtractionType;
|
|
25
|
+
notes: string;
|
|
26
|
+
status: SnapshotExtractionStatus;
|
|
27
|
+
interval: number;
|
|
28
|
+
requestor: string;
|
|
29
|
+
jpegsToDropbox: boolean;
|
|
30
|
+
injectTo_cr: Boolean;
|
|
31
|
+
schedule: Schedule;
|
|
32
|
+
created_at: DateType;
|
|
33
|
+
};
|
|
34
|
+
export type SnapshotTestPayload = {
|
|
35
|
+
cameraExid?: CameraExid;
|
|
36
|
+
camUsername: string;
|
|
37
|
+
camPassword: string;
|
|
38
|
+
externalUrl: string;
|
|
39
|
+
jpgUrl: string;
|
|
40
|
+
};
|
|
41
|
+
export type SnapshotTestResponse = {
|
|
42
|
+
status: string;
|
|
43
|
+
data: string;
|
|
44
|
+
};
|
|
45
|
+
export type DeleteSnapshotQueryParams = {
|
|
46
|
+
fromDate: DateType;
|
|
47
|
+
toDate: DateType;
|
|
48
|
+
adminEmail: string;
|
|
49
|
+
adminFullname: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type SsoProvider = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
exid: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
responseType: string;
|
|
9
|
+
loginUrl: string;
|
|
10
|
+
iconUrl: string;
|
|
11
|
+
options: {
|
|
12
|
+
showOnLogin: boolean;
|
|
13
|
+
showOnSignup: boolean;
|
|
14
|
+
};
|
|
15
|
+
tokenUri: string;
|
|
16
|
+
tokenIntrospectionUri: string;
|
|
17
|
+
userInfoUri: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type SsoUpdatePayload = {
|
|
21
|
+
name: string;
|
|
22
|
+
exid: string;
|
|
23
|
+
clientId: string;
|
|
24
|
+
clientSecret: string;
|
|
25
|
+
scope: string;
|
|
26
|
+
responseType: string;
|
|
27
|
+
loginUrl: string;
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
options: {
|
|
30
|
+
showOnLogin: boolean;
|
|
31
|
+
showOnSignup: boolean;
|
|
32
|
+
};
|
|
33
|
+
tokenUri: string;
|
|
34
|
+
tokenIntrospectionUri: string;
|
|
35
|
+
userInfoUri: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type SsoCreatePayload = {
|
|
39
|
+
name: string;
|
|
40
|
+
exid: string;
|
|
41
|
+
clientId: string;
|
|
42
|
+
clientSecret: string;
|
|
43
|
+
scope: string;
|
|
44
|
+
responseType: string;
|
|
45
|
+
loginUrl: string;
|
|
46
|
+
iconUrl: string;
|
|
47
|
+
options: {
|
|
48
|
+
showOnLogin: boolean;
|
|
49
|
+
showOnSignup: boolean;
|
|
50
|
+
};
|
|
51
|
+
tokenUri: string;
|
|
52
|
+
tokenIntrospectionUri: string;
|
|
53
|
+
userInfoUri: string;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { DateTime_Z_micros, KitMetricData } from "@/types";
|
|
2
|
+
export type ExNvrLoginResponse = {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
};
|
|
5
|
+
export type ExNvrRecordingInterval = {
|
|
6
|
+
active: boolean;
|
|
7
|
+
startDate: DateTime_Z_micros;
|
|
8
|
+
endDate: DateTime_Z_micros;
|
|
9
|
+
};
|
|
10
|
+
export type ExNvrDeviceConfig = {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
state: ExNvrDeviceState;
|
|
15
|
+
credentials: {
|
|
16
|
+
password: string;
|
|
17
|
+
username: string;
|
|
18
|
+
};
|
|
19
|
+
mac: string;
|
|
20
|
+
url: string;
|
|
21
|
+
insertedAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
settings: {
|
|
24
|
+
storageAddress: string;
|
|
25
|
+
overrideOnFullDisk: boolean;
|
|
26
|
+
overrideOnFullDiskThreshold: number;
|
|
27
|
+
generateBif: boolean;
|
|
28
|
+
};
|
|
29
|
+
vendor: string;
|
|
30
|
+
model: string;
|
|
31
|
+
streamConfig: {
|
|
32
|
+
filename: string | null;
|
|
33
|
+
duration: string | null;
|
|
34
|
+
temporaryPath: string | null;
|
|
35
|
+
snapshotUri: string;
|
|
36
|
+
streamUri: string;
|
|
37
|
+
subStreamUri: string;
|
|
38
|
+
};
|
|
39
|
+
timezone: string;
|
|
40
|
+
};
|
|
41
|
+
export declare enum ExNvrFootageAvailableStatus {
|
|
42
|
+
Available = "Available",
|
|
43
|
+
NotAvailable = "Not Available"
|
|
44
|
+
}
|
|
45
|
+
export declare enum ExNvrDeviceState {
|
|
46
|
+
Recording = "recording",
|
|
47
|
+
Failed = "failed",
|
|
48
|
+
Stopped = "stopped"
|
|
49
|
+
}
|
|
50
|
+
export type ExNvrCpuStatus = {
|
|
51
|
+
load: number[];
|
|
52
|
+
numCores: number;
|
|
53
|
+
};
|
|
54
|
+
export type ExNvrMemoryStatus = {
|
|
55
|
+
systemTotalMemory: number;
|
|
56
|
+
freeMemory: number;
|
|
57
|
+
totalMemory: number;
|
|
58
|
+
bufferedMemory: number;
|
|
59
|
+
cachedMemory: number;
|
|
60
|
+
totalSwap: number;
|
|
61
|
+
freeSwap: number;
|
|
62
|
+
availableMemory: number;
|
|
63
|
+
};
|
|
64
|
+
export type ExNvrSolarChargerStatus = {
|
|
65
|
+
v: number;
|
|
66
|
+
vpv: number;
|
|
67
|
+
ppv: number;
|
|
68
|
+
i: number;
|
|
69
|
+
il: number;
|
|
70
|
+
load: string;
|
|
71
|
+
relayState: string;
|
|
72
|
+
offReason: number;
|
|
73
|
+
h19: number;
|
|
74
|
+
h20: number;
|
|
75
|
+
h21: number;
|
|
76
|
+
h22: number;
|
|
77
|
+
h23: number;
|
|
78
|
+
err: number;
|
|
79
|
+
cs: string;
|
|
80
|
+
fw: string;
|
|
81
|
+
pid: string;
|
|
82
|
+
serialNumber: string;
|
|
83
|
+
};
|
|
84
|
+
export type ExNvrSystemStatus = {
|
|
85
|
+
version: string;
|
|
86
|
+
cpu: ExNvrCpuStatus;
|
|
87
|
+
memory: ExNvrMemoryStatus;
|
|
88
|
+
solarCharger: ExNvrSolarChargerStatus;
|
|
89
|
+
};
|
|
90
|
+
export declare enum ExNvrMetricId {
|
|
91
|
+
CpuLoad = "cpu_load",
|
|
92
|
+
RamUsage = "ram_usage"
|
|
93
|
+
}
|
|
94
|
+
export type ExNvrMetric = KitMetricData & {
|
|
95
|
+
metricId: ExNvrMetricId;
|
|
96
|
+
value: number;
|
|
97
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum PerformanceStatus {
|
|
2
|
+
Pending = "pending",
|
|
3
|
+
Done = "done"
|
|
4
|
+
}
|
|
5
|
+
export declare enum WebGLExtensions {
|
|
6
|
+
OESTextureFloat = "OES_texture_float",
|
|
7
|
+
EXTFloatBlend = "EXT_float_blend",
|
|
8
|
+
EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
|
|
9
|
+
OESElementIndexUint = "OES_element_index_uint",
|
|
10
|
+
WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Moment } from "moment-timezone";
|
|
2
|
+
export type DateType = Date | string | number;
|
|
3
|
+
export type ExtendedDateType = Moment | DateType;
|
|
4
|
+
type YYYY = number;
|
|
5
|
+
type MM = number;
|
|
6
|
+
type DD = number;
|
|
7
|
+
type HH = number;
|
|
8
|
+
type mm = number;
|
|
9
|
+
type ss = number;
|
|
10
|
+
type microS = number;
|
|
11
|
+
export type Date_YYYY = `${YYYY}` | string;
|
|
12
|
+
export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
|
|
13
|
+
export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
|
|
14
|
+
export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
|
|
15
|
+
export type Date_HH = `${HH}` | string;
|
|
16
|
+
export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
|
|
17
|
+
export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
|
|
18
|
+
export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
|
|
19
|
+
export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
|
|
20
|
+
export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { DateType, Schedule } from "@/types";
|
|
2
|
+
export declare enum TimelapseStatus {
|
|
3
|
+
Pending = 11,
|
|
4
|
+
Completed = 5,
|
|
5
|
+
Failed = 7
|
|
6
|
+
}
|
|
7
|
+
export declare enum TimelapseDuration {
|
|
8
|
+
ThirtySeconds = 30,
|
|
9
|
+
SixtySeconds = 60,
|
|
10
|
+
NintySeconds = 90
|
|
11
|
+
}
|
|
12
|
+
export type TimelapseVideoOptions = {
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
removeTimestamp: boolean;
|
|
16
|
+
smoothTransition: boolean;
|
|
17
|
+
evercamWatermark: boolean;
|
|
18
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
19
|
+
};
|
|
20
|
+
export type TimestampPositionCoordinates = {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
25
|
+
};
|
|
26
|
+
export type TimelapseLogoOptions = {
|
|
27
|
+
id: number;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
export type TimelapseSchedules = string | Schedule;
|
|
34
|
+
export declare enum TimelapseScheduleType {
|
|
35
|
+
Continuous = "continuous",
|
|
36
|
+
WorkingHours = "workingHours",
|
|
37
|
+
Custom = "custom"
|
|
38
|
+
}
|
|
39
|
+
export declare enum TimelapsePeriod {
|
|
40
|
+
Day = 1,
|
|
41
|
+
Week = 7,
|
|
42
|
+
Month = 30,
|
|
43
|
+
WholeProject = "whole_project",
|
|
44
|
+
Custom = "custom"
|
|
45
|
+
}
|
|
46
|
+
export declare enum TimelapseType {
|
|
47
|
+
Hour = "hour",
|
|
48
|
+
Day = "day",
|
|
49
|
+
Week = "week",
|
|
50
|
+
Month = "month",
|
|
51
|
+
Year = "year",
|
|
52
|
+
FullProject = "full_project"
|
|
53
|
+
}
|
|
54
|
+
export type TimelapseFilterQueryParams = {
|
|
55
|
+
from?: DateType;
|
|
56
|
+
to?: DateType;
|
|
57
|
+
period?: TimelapsePeriod;
|
|
58
|
+
duration?: number;
|
|
59
|
+
schedule?: TimelapseSchedules;
|
|
60
|
+
};
|
|
61
|
+
export type TimelapseCreationRequestPayload = {
|
|
62
|
+
title: string;
|
|
63
|
+
duration: number;
|
|
64
|
+
fromDatetime: string;
|
|
65
|
+
toDatetime: string;
|
|
66
|
+
cameraExid: string;
|
|
67
|
+
schedule: Schedule;
|
|
68
|
+
videoOptions: TimelapseVideoOptions;
|
|
69
|
+
logo?: TimelapseLogoOptions;
|
|
70
|
+
};
|
|
71
|
+
export type TimelapseCreationResponsePayload = {
|
|
72
|
+
Timelapse: {
|
|
73
|
+
camera: string;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
fromDate: string;
|
|
76
|
+
id: number;
|
|
77
|
+
duration: number;
|
|
78
|
+
requestor: string;
|
|
79
|
+
schedule: Schedule;
|
|
80
|
+
status: number;
|
|
81
|
+
toDate: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export type TimelapseSnapshotRequestPayload = {
|
|
86
|
+
from: string;
|
|
87
|
+
to: string;
|
|
88
|
+
schedule: string;
|
|
89
|
+
count: number;
|
|
90
|
+
};
|
|
91
|
+
export type TimelapseSnapshotResponsePayload = {
|
|
92
|
+
snapshots: string[];
|
|
93
|
+
};
|
|
94
|
+
export declare enum TimelapseExportStep {
|
|
95
|
+
Format = 1,
|
|
96
|
+
Effects = 2,
|
|
97
|
+
Confirm = 3,
|
|
98
|
+
Finish = 4
|
|
99
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import type { DateTime, PaginationParams } from "@/types";
|
|
2
|
+
export type User = {
|
|
3
|
+
id?: number;
|
|
4
|
+
fullname?: string;
|
|
5
|
+
firstname: string;
|
|
6
|
+
lastname: string;
|
|
7
|
+
email: string;
|
|
8
|
+
telephone: string;
|
|
9
|
+
country: string;
|
|
10
|
+
isAdmin: boolean;
|
|
11
|
+
persona: Persona;
|
|
12
|
+
companyId?: string;
|
|
13
|
+
companyName?: string;
|
|
14
|
+
companyExid?: string;
|
|
15
|
+
features?: Array<UserFeatureFlag>;
|
|
16
|
+
};
|
|
17
|
+
export type AdminUser = {
|
|
18
|
+
id: number;
|
|
19
|
+
fullname: string;
|
|
20
|
+
firstname: string;
|
|
21
|
+
email: string;
|
|
22
|
+
telephone: string;
|
|
23
|
+
country: string;
|
|
24
|
+
isAdmin: boolean;
|
|
25
|
+
companyId: string;
|
|
26
|
+
companyName: string;
|
|
27
|
+
companyExid: string;
|
|
28
|
+
features: Array<UserFeatureFlag>;
|
|
29
|
+
active: boolean;
|
|
30
|
+
cameraShares: number;
|
|
31
|
+
camerasCount: number;
|
|
32
|
+
camerasOwned: number;
|
|
33
|
+
countryId: number;
|
|
34
|
+
countryName: string;
|
|
35
|
+
createdAt: DateTime;
|
|
36
|
+
integrations: string[];
|
|
37
|
+
lastSeenAt: DateTime;
|
|
38
|
+
lastLoginAt: string;
|
|
39
|
+
lastname: string;
|
|
40
|
+
persona: string;
|
|
41
|
+
projects: string[];
|
|
42
|
+
projectsCount: number;
|
|
43
|
+
referralUrl?: string;
|
|
44
|
+
snapmailCount: number;
|
|
45
|
+
zohoId: string;
|
|
46
|
+
};
|
|
47
|
+
export declare enum UserFeatureFlag {
|
|
48
|
+
CompanyAdmin = "company-admin",
|
|
49
|
+
VideoWalls = "video-walls",
|
|
50
|
+
MassCameraSharing = "mass-camera-sharing",
|
|
51
|
+
Copilot = "copilot",
|
|
52
|
+
ProjectSharing = "project-sharing"
|
|
53
|
+
}
|
|
54
|
+
export type ProjectUser = User & {
|
|
55
|
+
lastSeenAt: string;
|
|
56
|
+
active: boolean;
|
|
57
|
+
activeOneMonth: boolean;
|
|
58
|
+
eventsCount: string;
|
|
59
|
+
cameraExid: string;
|
|
60
|
+
cameraRights: string;
|
|
61
|
+
};
|
|
62
|
+
export declare enum Persona {
|
|
63
|
+
HQ = "HQ",
|
|
64
|
+
PM = "PM",
|
|
65
|
+
QS = "QS",
|
|
66
|
+
Marketing = "Marketing",
|
|
67
|
+
HS = "H&S",
|
|
68
|
+
DI = "DI",
|
|
69
|
+
Other = "Other"
|
|
70
|
+
}
|
|
71
|
+
export type UpdatePasswordRequestPayload = {
|
|
72
|
+
token: string;
|
|
73
|
+
password: string;
|
|
74
|
+
};
|
|
75
|
+
export type Credentials = {
|
|
76
|
+
apiKey: string;
|
|
77
|
+
apiId: string;
|
|
78
|
+
};
|
|
79
|
+
export type LoginRequestPayload = {
|
|
80
|
+
username: string;
|
|
81
|
+
password: string;
|
|
82
|
+
redirectToZoho?: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type RemotePasswordUpdateRequestPayload = {
|
|
85
|
+
currentPassword: string;
|
|
86
|
+
newPassword: string;
|
|
87
|
+
};
|
|
88
|
+
export type LoginResponsePayload = {
|
|
89
|
+
confirmedAt?: string;
|
|
90
|
+
country?: string;
|
|
91
|
+
createdAt?: string;
|
|
92
|
+
email?: string;
|
|
93
|
+
firstname?: string;
|
|
94
|
+
id?: string;
|
|
95
|
+
isAdmin?: boolean;
|
|
96
|
+
lastLoginAt?: string;
|
|
97
|
+
lastname?: string;
|
|
98
|
+
persona?: Persona;
|
|
99
|
+
telephone?: string;
|
|
100
|
+
token?: string;
|
|
101
|
+
updatedAt?: string;
|
|
102
|
+
evercamAccount?: string;
|
|
103
|
+
};
|
|
104
|
+
export type LogoutParams = {
|
|
105
|
+
token: string;
|
|
106
|
+
fromAdmin?: boolean;
|
|
107
|
+
};
|
|
108
|
+
export type UserSession = {
|
|
109
|
+
browser: string;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
id: number;
|
|
112
|
+
ipAddress: string;
|
|
113
|
+
isCurrent: boolean;
|
|
114
|
+
lastUsedAt: string;
|
|
115
|
+
os: string;
|
|
116
|
+
};
|
|
117
|
+
export type SessionsListRequestPayload = {
|
|
118
|
+
authorization: string;
|
|
119
|
+
browser?: string;
|
|
120
|
+
os?: string;
|
|
121
|
+
ipAddress?: string;
|
|
122
|
+
sort: string;
|
|
123
|
+
limit: number;
|
|
124
|
+
page: number;
|
|
125
|
+
};
|
|
126
|
+
export type SessionActivityCamSettingsDetail = {
|
|
127
|
+
new: any;
|
|
128
|
+
old: any;
|
|
129
|
+
};
|
|
130
|
+
export type SessionActivityDetail = {
|
|
131
|
+
agent: string;
|
|
132
|
+
camSettings: SessionActivityCamSettingsDetail;
|
|
133
|
+
country: string;
|
|
134
|
+
countryCode: string;
|
|
135
|
+
ip: string;
|
|
136
|
+
};
|
|
137
|
+
export type SessionActivity = {
|
|
138
|
+
cameraExid: string;
|
|
139
|
+
details: SessionActivityDetail;
|
|
140
|
+
insertedAt: string;
|
|
141
|
+
type: string;
|
|
142
|
+
who: string;
|
|
143
|
+
};
|
|
144
|
+
export type SessionActivitiesListRequestPayload = {
|
|
145
|
+
limit: number;
|
|
146
|
+
from: string;
|
|
147
|
+
to: string;
|
|
148
|
+
};
|
|
149
|
+
export type SignupUserRequestPayload = {
|
|
150
|
+
telephone: string;
|
|
151
|
+
token: string;
|
|
152
|
+
firstname: string;
|
|
153
|
+
lastname: string;
|
|
154
|
+
email: string;
|
|
155
|
+
password: string;
|
|
156
|
+
shareRequestKey: string;
|
|
157
|
+
referralUrl: string;
|
|
158
|
+
persona: string;
|
|
159
|
+
disablePassword: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type UserUpdateRequestPayload = {
|
|
162
|
+
firstname: string;
|
|
163
|
+
lastname: string;
|
|
164
|
+
email: string;
|
|
165
|
+
telephone: string;
|
|
166
|
+
country: string;
|
|
167
|
+
persona: string;
|
|
168
|
+
};
|
|
169
|
+
export type UserDeleteRequestPayload = {
|
|
170
|
+
verifEmail: string;
|
|
171
|
+
};
|
|
172
|
+
export type GoogleAuthRequestPayload = {
|
|
173
|
+
code: string;
|
|
174
|
+
redirectUri: string;
|
|
175
|
+
};
|
|
176
|
+
export type UserStatsResponse = {
|
|
177
|
+
data: {
|
|
178
|
+
userStats: AdminUser;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export type UserCamera = {
|
|
182
|
+
id: number;
|
|
183
|
+
exid: string;
|
|
184
|
+
ownerFullname: string;
|
|
185
|
+
ownerEmail: string;
|
|
186
|
+
apiId: string;
|
|
187
|
+
apiKey: string;
|
|
188
|
+
};
|
|
189
|
+
export type UserCameraResponse = {
|
|
190
|
+
data: UserCamera[];
|
|
191
|
+
};
|
|
192
|
+
export type UserProject = {
|
|
193
|
+
id: number;
|
|
194
|
+
exid: string;
|
|
195
|
+
name: string;
|
|
196
|
+
startedAt: DateTime;
|
|
197
|
+
};
|
|
198
|
+
export type UserProjectResponse = {
|
|
199
|
+
data: UserProject[];
|
|
200
|
+
};
|
|
201
|
+
export type AdminUserUpdateRequestPayload = {
|
|
202
|
+
companyId: string;
|
|
203
|
+
email: string;
|
|
204
|
+
persona: Persona;
|
|
205
|
+
country: string;
|
|
206
|
+
features: UserFeatureFlag[];
|
|
207
|
+
};
|
|
208
|
+
export type AdminQueryParams = PaginationParams & {
|
|
209
|
+
email: string;
|
|
210
|
+
fullname: string;
|
|
211
|
+
};
|
|
212
|
+
export type Admin = {
|
|
213
|
+
id: number;
|
|
214
|
+
fullname: string;
|
|
215
|
+
email: string;
|
|
216
|
+
createdAt: DateTime;
|
|
217
|
+
updatedAt: DateTime;
|
|
218
|
+
lastSignInAt: DateTime;
|
|
219
|
+
signInCount: number;
|
|
220
|
+
lastSignInIp: string;
|
|
221
|
+
apiId: string;
|
|
222
|
+
apiKey: string;
|
|
223
|
+
};
|
|
224
|
+
export type ImpersonateUserResponse = {
|
|
225
|
+
id: string;
|
|
226
|
+
firstname: string;
|
|
227
|
+
lastname: string;
|
|
228
|
+
telephone: string;
|
|
229
|
+
email: string;
|
|
230
|
+
is_admin: boolean;
|
|
231
|
+
persona: Persona;
|
|
232
|
+
country: string;
|
|
233
|
+
companyId: number;
|
|
234
|
+
companyExid: string;
|
|
235
|
+
companyName: string;
|
|
236
|
+
evercamAccount: boolean;
|
|
237
|
+
createdAt: DateTime;
|
|
238
|
+
updatedAt: DateTime;
|
|
239
|
+
confirmedAt: DateTime;
|
|
240
|
+
last_loginAt: DateTime;
|
|
241
|
+
features: UserFeatureFlag[];
|
|
242
|
+
token: string;
|
|
243
|
+
};
|
|
244
|
+
export type AdminUserQueryParams = PaginationParams & {
|
|
245
|
+
fullname: string;
|
|
246
|
+
email: string;
|
|
247
|
+
telephone: string;
|
|
248
|
+
persona: Persona;
|
|
249
|
+
companyName: string;
|
|
250
|
+
camerasCount: string;
|
|
251
|
+
projectsCount: string;
|
|
252
|
+
snapmailCount: string;
|
|
253
|
+
camerasOwned: string;
|
|
254
|
+
cameraShares: string;
|
|
255
|
+
createdAtDate: string;
|
|
256
|
+
lastLoginAtDate: string;
|
|
257
|
+
integrations: "procore" | "aconex" | "autodesk";
|
|
258
|
+
features: UserFeatureFlag.ProjectSharing | UserFeatureFlag.VideoWalls;
|
|
259
|
+
};
|
|
260
|
+
export type SuppressionsQueryParams = PaginationParams & {
|
|
261
|
+
id: number;
|
|
262
|
+
email: string;
|
|
263
|
+
source: string;
|
|
264
|
+
};
|
|
265
|
+
export type Suppression = {
|
|
266
|
+
id: number;
|
|
267
|
+
email: string;
|
|
268
|
+
source: string;
|
|
269
|
+
insertedAt: DateTime;
|
|
270
|
+
updatedAt: DateTime;
|
|
271
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Camera, Media } from "@/types";
|
|
2
|
+
export declare enum VideoWallItemType {
|
|
3
|
+
LiveView = "live",
|
|
4
|
+
Video = "video",
|
|
5
|
+
Image = "image"
|
|
6
|
+
}
|
|
7
|
+
export type VideoWallItem<T extends Camera | Media> = {
|
|
8
|
+
value: T;
|
|
9
|
+
type: VideoWallItemType;
|
|
10
|
+
};
|
|
11
|
+
export type VideoWallPresetItemConfig = {
|
|
12
|
+
camera: Camera;
|
|
13
|
+
h: number;
|
|
14
|
+
i: string | number;
|
|
15
|
+
moved: boolean;
|
|
16
|
+
w: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
export type VideoWallPreset = {
|
|
21
|
+
name?: string;
|
|
22
|
+
configuration: Array<VideoWallPresetItemConfig>;
|
|
23
|
+
};
|
|
24
|
+
export type VideoWallPresetItem = {
|
|
25
|
+
i: string | number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
w: number;
|
|
29
|
+
h: number;
|
|
30
|
+
camera: Camera;
|
|
31
|
+
weather?: Record<string, unknown>;
|
|
32
|
+
media?: Media;
|
|
33
|
+
};
|