@evercam/api 1.0.0-0cb54ffb7 → 1.0.0-0ff26c649

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.
Files changed (43) hide show
  1. package/README.md +2 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +3 -0
  3. package/dist/api/api/adminApi.d.ts +25 -30
  4. package/dist/api/api/aiApi.d.ts +14 -31
  5. package/dist/api/api/authzApi.d.ts +7 -0
  6. package/dist/api/api/evercamApi.d.ts +16 -11
  7. package/dist/api/api/evercamLabsApi.d.ts +3 -2
  8. package/dist/api/api/ingestApi.d.ts +30 -8
  9. package/dist/api/api/ptzApi.d.ts +4 -0
  10. package/dist/api/api/videoWallApi.d.ts +7 -7
  11. package/dist/api/types/360.d.ts +50 -2
  12. package/dist/api/types/aconex.d.ts +102 -4
  13. package/dist/api/types/analytics.d.ts +76 -4
  14. package/dist/api/types/anpr.d.ts +5 -11
  15. package/dist/api/types/authz.d.ts +22 -0
  16. package/dist/api/types/automation.d.ts +51 -0
  17. package/dist/api/types/camera.d.ts +14 -8
  18. package/dist/api/types/coolify.d.ts +2 -0
  19. package/dist/api/types/credentials.d.ts +1 -0
  20. package/dist/api/types/detections.d.ts +4 -18
  21. package/dist/api/types/gateReport.d.ts +1 -101
  22. package/dist/api/types/index.d.ts +1 -0
  23. package/dist/api/types/ingest.d.ts +4 -0
  24. package/dist/api/types/kit.d.ts +2 -0
  25. package/dist/api/types/planner.d.ts +4 -1
  26. package/dist/api/types/progressPhoto.d.ts +1 -31
  27. package/dist/api/types/project.d.ts +41 -3
  28. package/dist/api/types/recording.d.ts +1 -0
  29. package/dist/api/types/routeParams.d.ts +2 -1
  30. package/dist/api/types/siteAnalytics.d.ts +28 -7
  31. package/dist/api/types/time.d.ts +4 -0
  32. package/dist/api/types/user.d.ts +4 -0
  33. package/dist/api/types/videoWall.d.ts +34 -1
  34. package/dist/api/types/weather.d.ts +2 -0
  35. package/dist/api/types/widget.d.ts +6 -4
  36. package/dist/api/utils.d.ts +1 -0
  37. package/dist/index.js +714 -651
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.umd.cjs +1 -1
  40. package/dist/index.umd.cjs.map +1 -1
  41. package/dist/shared/types/components.d.ts +8 -2
  42. package/dist/shared/types/imagePlayer.d.ts +1 -1
  43. package/package.json +4 -4
@@ -1,6 +1,9 @@
1
1
  export declare enum EDistortImageModes {
2
2
  FreeRotate = "freeRotate",
3
- Lock = "lock"
3
+ Lock = "lock",
4
+ Rotate = "rotate",
5
+ Scale = "scale",
6
+ Pan = "drag"
4
7
  }
5
8
  export declare enum EMapTypes {
6
9
  Blank = "Blank",
@@ -1,34 +1,4 @@
1
- import { AutomationType, DateTime, DateType, PaginationParams } from "@/types";
2
- export type Automation = {
3
- name?: string;
4
- cameraIds: string;
5
- cameraNames: number;
6
- cameraExids?: string[];
7
- createdAt: string;
8
- id: number;
9
- provider: string;
10
- type: AutomationType;
11
- config: Partial<{
12
- recipients: string | Record<string, string>[];
13
- companyId: number;
14
- compareDelay: number;
15
- categoryId: string;
16
- hubId: string;
17
- folderId: string;
18
- projectId: number;
19
- }>;
20
- isPaused: boolean;
21
- notifyDays: string | string[];
22
- notifyTime: string;
23
- requesterEmail: string;
24
- requesterName: string;
25
- timezone: string;
26
- title: string;
27
- compareDelay?: number;
28
- selectedProvider?: string;
29
- restrictedCameraExids?: string[];
30
- recipients?: string | string[];
31
- };
1
+ import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/types";
32
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
33
3
  cameraExids?: string;
34
4
  notifyDays?: string;
@@ -1,4 +1,4 @@
1
- import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
1
+ import { AdminCamera, Camera, CameraExid, DateRangeFilter, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
@@ -53,7 +53,6 @@ export declare enum ProjectFeatureFlag {
53
53
  ThreeSixtyView = "360_view",
54
54
  NdaMc = "NDA/MC",
55
55
  GateReport = "gate_report",
56
- GateReportAutoVerify = "auto_publish",
57
56
  GateReportMotionDetection = "motion_detection",
58
57
  FullEmpty = "full_empty",
59
58
  MediaHubSharing = "archives_sharing",
@@ -61,7 +60,8 @@ export declare enum ProjectFeatureFlag {
61
60
  NoLicensePlate = "no_license_plate",
62
61
  DefaultToProjectApp = "default_to_project_app",
63
62
  SmartSearch = "smart_search",
64
- PpeMonitoring = "ppe_monitoring"
63
+ PpeMonitoring = "ppe_monitoring",
64
+ NoGdpr = "no_gdpr"
65
65
  }
66
66
  export type ProjectBatteryReading = {
67
67
  exid: number;
@@ -127,3 +127,41 @@ export type ProjectUsers = {
127
127
  }[];
128
128
  users: Record<string, ProjectUserProperty[]>;
129
129
  };
130
+ export type ProjectDateRangeFilter = DateRangeFilter & {
131
+ projectExid: ProjectExid;
132
+ };
133
+ export type ProjectRole = {
134
+ id: string;
135
+ name: string;
136
+ };
137
+ export type ProjectMember = {
138
+ id: string;
139
+ email: string;
140
+ fullname: string;
141
+ role: ProjectRole;
142
+ };
143
+ export type ProjectInvite = {
144
+ id?: string;
145
+ email: string;
146
+ role?: ProjectRole;
147
+ invitedAt?: string;
148
+ };
149
+ export type ProjectMembersResponsePayload = {
150
+ users: ProjectMember[];
151
+ invites: ProjectInvite[];
152
+ };
153
+ export type ProjectMembersRequestPayload = {
154
+ roleId: number;
155
+ emails: string[];
156
+ overrideRole?: Partial<{
157
+ permissions?: string[];
158
+ subRoles?: Array<{
159
+ resourceId: string;
160
+ roleId: number;
161
+ }>;
162
+ }>;
163
+ };
164
+ export type ProjectInviteMembersResponsePayload = {
165
+ users: ProjectMember[];
166
+ invites: ProjectInvite[];
167
+ };
@@ -10,6 +10,7 @@ export type NearestSnapshotRequestPayload = {
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
+ includeImage?: boolean;
13
14
  };
14
15
  export type AvailableDaysRequestPayload = {
15
16
  cameraId: string;
@@ -46,6 +46,7 @@ export declare enum TimelineMobileCaptureUrlParams {
46
46
  ShowMobileCapture = "showMobileCapture"
47
47
  }
48
48
  export declare enum TimelineCommentsUrlParams {
49
- ShowComments = "showComments"
49
+ ShowComments = "showComments",
50
+ SelectedCommentId = "selectedCommentId"
50
51
  }
51
52
  export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
@@ -1,15 +1,15 @@
1
- import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
1
+ import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
5
5
  Segments = "segments"
6
6
  }
7
- export type SmartSearchOptionData = {
7
+ export type SmartSearchQueryPartData = {
8
8
  id?: string;
9
- type: SmartSearchQueryComponentType;
9
+ type: SmartSearchQueryPartType;
10
10
  value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
11
11
  };
12
- export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
12
+ export type SmartSearchQueryPart = SmartSearchQueryPartData | SmartSearchQueryPartData[];
13
13
  export declare enum SmartSearchQueryComponentType {
14
14
  Condition = "condition",
15
15
  Object = "object",
@@ -17,8 +17,10 @@ export declare enum SmartSearchQueryComponentType {
17
17
  Time = "time",
18
18
  Operator = "operator",
19
19
  Camera = "camera",
20
- DateRange = "date_range"
20
+ DateRange = "date_range",
21
+ Heatmap = "heatmap"
21
22
  }
23
+ export type SmartSearchQueryPartType = SmartSearchQueryComponentType | SmartSearchCondition;
22
24
  export type SmartSearchDateRange = {
23
25
  start: DateType;
24
26
  end: DateType;
@@ -26,7 +28,7 @@ export type SmartSearchDateRange = {
26
28
  export type SmartSearchQueryComponentData = {
27
29
  id: string;
28
30
  type: SmartSearchQueryComponentType;
29
- parts: [SmartSearchQueryPart];
31
+ parts: SmartSearchQueryPart;
30
32
  };
31
33
  export declare enum SmartSearchCondition {
32
34
  InArea = "in_area",
@@ -114,7 +116,7 @@ export type SavedQuery = {
114
116
  timeSchedule?: Schedule | undefined;
115
117
  };
116
118
  params: Record<string, string>;
117
- components?: Omit<SmartSearchOptionData, "id">[];
119
+ components?: Omit<SmartSearchQueryPartData, "id">[];
118
120
  toDate?: DateType;
119
121
  createdAt?: DateType;
120
122
  cameraExid: string;
@@ -140,3 +142,22 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
140
142
  columns?: string[];
141
143
  directDownload?: boolean;
142
144
  };
145
+ export type SmartSearchHeatmapPoint = {
146
+ coordinates: [number, number];
147
+ detectionsCount: number;
148
+ };
149
+ export type SmartSearchHeatmapData = {
150
+ label: string;
151
+ points: SmartSearchHeatmapPoint[];
152
+ };
153
+ export type SmartSearchNearConfig = {
154
+ sourceLabels: DetectionLabel[];
155
+ targetLabel?: DetectionLabel;
156
+ };
157
+ export type HeatmapIntersectionsRequestParams = CameraDateRangeFilter & SmartSearchNearConfig;
158
+ export type SmartSearchSidebarItem = {
159
+ key: string;
160
+ displayLabel: string;
161
+ data: SmartSearchHeatmapData;
162
+ imagePath?: string;
163
+ };
@@ -18,4 +18,8 @@ export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:
18
18
  export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
19
19
  export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
20
20
  export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
21
+ export type DateRangeFilter = {
22
+ fromDate: DateType;
23
+ toDate: DateType;
24
+ };
21
25
  export {};
@@ -59,6 +59,10 @@ export type ProjectUser = User & {
59
59
  cameraExid: string;
60
60
  cameraRights: string;
61
61
  };
62
+ export declare enum ContactRole {
63
+ SalesExecutive = "Sales Executive",
64
+ CustomerSuccessManager = "Customer Success Manager"
65
+ }
62
66
  export declare enum Persona {
63
67
  HQ = "HQ",
64
68
  PM = "PM",
@@ -1,4 +1,4 @@
1
- import { Camera, Media } from "@/types";
1
+ import { Camera, Media, PaginationParams } from "@/types";
2
2
  export declare enum VideoWallItemType {
3
3
  LiveView = "live",
4
4
  Video = "video",
@@ -31,3 +31,36 @@ export type VideoWallPresetItem = {
31
31
  weather?: Record<string, unknown>;
32
32
  media?: Media;
33
33
  };
34
+ export type VideoWallSource = "default" | "widget";
35
+ export interface VideoWall {
36
+ id: number;
37
+ exid: string;
38
+ name: string;
39
+ source: VideoWallSource;
40
+ config: Record<string, any>;
41
+ inserted_at: string;
42
+ updated_at: string;
43
+ user: {
44
+ id: number;
45
+ firstname: string;
46
+ lastname: string;
47
+ email: string;
48
+ };
49
+ }
50
+ export interface ListParams extends PaginationParams {
51
+ project_exid?: string;
52
+ id?: number;
53
+ exid?: string;
54
+ project_id?: number;
55
+ user_id?: number;
56
+ name?: string;
57
+ project?: string;
58
+ user?: string;
59
+ source?: VideoWallSource;
60
+ }
61
+ export type VideoWallCreateUpdatePayload = {
62
+ project_exid: string;
63
+ name: string;
64
+ source?: VideoWallSource;
65
+ config: Record<string, unknown>;
66
+ };
@@ -5,6 +5,8 @@ export type HistoryWeatherRequestPayload = {
5
5
  };
6
6
  export type CurrentWeatherRequestPayload = {
7
7
  provider: WeatherProvider;
8
+ includeForecast?: boolean;
9
+ forecastDays?: number;
8
10
  };
9
11
  export type WeatherResponsePayload = Array<{
10
12
  hour?: number;
@@ -78,6 +78,8 @@ export type RecordingsWidgetSettings = CommonWidgetSettings & {
78
78
  hasDelay: boolean;
79
79
  delay: number;
80
80
  delayUnit: DelayUnit;
81
+ hasRange: boolean;
82
+ dateRange: [DateTime, DateTime] | null;
81
83
  };
82
84
  export type LiveViewWidgetSettings = CommonWidgetSettings & {
83
85
  fullscreen: boolean;
@@ -118,7 +120,7 @@ export type WidgetsListRequestPayload = PaginationParams & {
118
120
  active: boolean;
119
121
  settings: WidgetSettings;
120
122
  widgetType: WidgetType;
121
- isPublic: boolean;
123
+ domainRestricted: boolean;
122
124
  allowedOrigin: string;
123
125
  };
124
126
  export type Widget = {
@@ -138,7 +140,7 @@ export type Widget = {
138
140
  widgetType: WidgetType;
139
141
  settings: WidgetSettings;
140
142
  allowedOrigin: string;
141
- isPublic: boolean;
143
+ domainRestricted: boolean;
142
144
  active: boolean;
143
145
  user: {
144
146
  id: number;
@@ -174,7 +176,7 @@ export type WidgetFull = {
174
176
  settings: WidgetSettings;
175
177
  sessionSettings: any;
176
178
  allowedOrigin: string;
177
- isPublic: boolean;
179
+ domainRestricted: boolean;
178
180
  insertedAt: DateTime;
179
181
  updatedAt: DateTime;
180
182
  };
@@ -186,6 +188,6 @@ export type WidgetPayload = {
186
188
  widgetType: WidgetType;
187
189
  active: boolean;
188
190
  settings: WidgetSettings;
189
- isPublic: boolean;
191
+ domainRestricted: boolean;
190
192
  allowedOrigin: string;
191
193
  };
@@ -7,3 +7,4 @@ 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;