@evercam/api 1.0.0-eef6c21fd → 1.0.0-f0709bb7a
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 +53 -21
- package/dist/api/api/adminApi.d.ts +19 -15
- package/dist/api/api/aiApi.d.ts +60 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +23 -8
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +13 -3
- package/dist/api/types/360.d.ts +142 -4
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +32 -1
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +8 -5
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +3 -1
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -1
- package/dist/api/types/drone.d.ts +6 -5
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/ingest.d.ts +13 -1
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/recording.d.ts +3 -8
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/siteAnalytics.d.ts +1 -1
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1158 -687
- 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 +64 -2
- 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 +4 -2
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { CameraExid, DateType, 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
|
+
insertedAt: DateType | null;
|
|
39
|
+
updatedAt: DateType | null;
|
|
40
|
+
coolify: SiteAnalyticsCoolifyStatus | null;
|
|
41
|
+
project: SiteAnalyticsProjectMeta | null;
|
|
42
|
+
camera: SiteAnalyticsCameraMeta | null;
|
|
43
|
+
lastTrackingAt: DateType | null;
|
|
44
|
+
};
|
|
45
|
+
export type CreateSiteAnalyticsAppPayload = {
|
|
46
|
+
projectExid: ProjectExid;
|
|
47
|
+
cameraExid: CameraExid;
|
|
48
|
+
coolifyServerUuid: string;
|
|
49
|
+
appVersion?: string;
|
|
50
|
+
modelId?: number | null;
|
|
51
|
+
startDate?: DateType | null;
|
|
52
|
+
endDate?: DateType | null;
|
|
53
|
+
startHour?: number;
|
|
54
|
+
endHour?: number;
|
|
55
|
+
source?: string;
|
|
56
|
+
override?: boolean;
|
|
57
|
+
timeIncreaseFrequency?: number;
|
|
58
|
+
};
|
|
59
|
+
export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
|
|
60
|
+
export type ModelOption = {
|
|
61
|
+
modelId: number;
|
|
62
|
+
version: string;
|
|
63
|
+
};
|
|
64
|
+
export type SiteAnalyticsAppConfigFormValue = {
|
|
65
|
+
appVersion: string;
|
|
66
|
+
modelId: number | null;
|
|
67
|
+
startDate: string | null;
|
|
68
|
+
endDate: string | null;
|
|
69
|
+
startHour: number;
|
|
70
|
+
endHour: number;
|
|
71
|
+
source: string;
|
|
72
|
+
override: boolean;
|
|
73
|
+
timeIncreaseFrequency: number;
|
|
74
|
+
};
|
|
75
|
+
export type SiteAnalyticsManagementListParams = {
|
|
76
|
+
projectExid?: ProjectExid;
|
|
77
|
+
includeStatus?: boolean;
|
|
78
|
+
page?: number;
|
|
79
|
+
limit?: number;
|
|
80
|
+
};
|
|
81
|
+
export type CreateSiteAnalyticsAppResponse = {
|
|
82
|
+
created: boolean;
|
|
83
|
+
id: number | null;
|
|
84
|
+
data: SiteAnalyticsManagedApp | null;
|
|
85
|
+
count: number | null;
|
|
86
|
+
message: string;
|
|
87
|
+
};
|
|
88
|
+
export type DeleteSiteAnalyticsAppResponse = {
|
|
89
|
+
deleted: boolean;
|
|
90
|
+
count: number;
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
@@ -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;
|
package/dist/api/types/user.d.ts
CHANGED
|
@@ -176,7 +176,6 @@ export type SessionActivitiesListRequestPayload = {
|
|
|
176
176
|
};
|
|
177
177
|
export type SignupUserRequestPayload = {
|
|
178
178
|
telephone: string;
|
|
179
|
-
token: string;
|
|
180
179
|
firstname: string;
|
|
181
180
|
lastname: string;
|
|
182
181
|
email: string;
|
|
@@ -194,9 +193,6 @@ export type UserUpdateRequestPayload = {
|
|
|
194
193
|
country: string;
|
|
195
194
|
persona: string;
|
|
196
195
|
};
|
|
197
|
-
export type UserDeleteRequestPayload = {
|
|
198
|
-
verifEmail: string;
|
|
199
|
-
};
|
|
200
196
|
export type GoogleAuthRequestPayload = {
|
|
201
197
|
code: string;
|
|
202
198
|
redirectUri: string;
|
|
@@ -338,6 +334,7 @@ export type ProjectUserWithRole = {
|
|
|
338
334
|
name: string;
|
|
339
335
|
exid: string;
|
|
340
336
|
};
|
|
337
|
+
persona: Persona;
|
|
341
338
|
permissions: string[];
|
|
342
339
|
role: Role;
|
|
343
340
|
subRoles: RoleSubRole[];
|
package/dist/api/utils.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
|
|
|
7
7
|
forceArrayBrackets?: boolean | undefined;
|
|
8
8
|
}) => string | undefined;
|
|
9
9
|
export declare function queryStringToObject(queryString?: string): QueryParams;
|
|
10
|
-
export declare function capitalizeFirstLetter(inputString: string): string;
|