@evercam/api 1.0.0-e1ad6ae1b → 1.0.0-e405b2c39

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 (104) hide show
  1. package/README.md +2 -0
  2. package/dist/api/{3dFirebaseApi.d.ts → api/3dFirebaseApi.d.ts} +8 -1
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +26 -52
  4. package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +18 -40
  5. package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +10 -1
  6. package/dist/api/{client → api/client}/axios.d.ts +1 -0
  7. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +12 -27
  8. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +5 -2
  9. package/dist/api/api/index.d.ts +13 -0
  10. package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +12 -4
  11. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +4 -0
  12. package/dist/api/api/videoWallApi.d.ts +9 -0
  13. package/dist/api/index.d.ts +3 -13
  14. package/dist/api/types/360.d.ts +274 -0
  15. package/dist/api/types/aconex.d.ts +143 -0
  16. package/dist/{types → api/types}/analytics.d.ts +68 -4
  17. package/dist/api/types/authz.d.ts +23 -0
  18. package/dist/api/types/automation.d.ts +61 -0
  19. package/dist/{types → api/types}/axios.d.ts +1 -0
  20. package/dist/{types → api/types}/camera.d.ts +12 -7
  21. package/dist/{types → api/types}/credentials.d.ts +1 -0
  22. package/dist/{types → api/types}/detections.d.ts +4 -18
  23. package/dist/{types → api/types}/gateReport.d.ts +4 -101
  24. package/dist/{types → api/types}/index.d.ts +1 -0
  25. package/dist/{types → api/types}/ingest.d.ts +4 -0
  26. package/dist/{types → api/types}/kit.d.ts +21 -0
  27. package/dist/{types → api/types}/planner.d.ts +4 -1
  28. package/dist/{types → api/types}/progressPhoto.d.ts +1 -31
  29. package/dist/{types → api/types}/project.d.ts +46 -3
  30. package/dist/{types → api/types}/recording.d.ts +1 -0
  31. package/dist/{types → api/types}/router.d.ts +19 -0
  32. package/dist/api/types/shares.d.ts +58 -0
  33. package/dist/api/types/siteAnalytics.d.ts +247 -0
  34. package/dist/{types → api/types}/time.d.ts +4 -0
  35. package/dist/{types → api/types}/user.d.ts +4 -0
  36. package/dist/api/types/videoWall.d.ts +66 -0
  37. package/dist/{types → api/types}/widget.d.ts +2 -0
  38. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  39. package/dist/index.d.ts +2 -3
  40. package/dist/index.js +753 -756
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.umd.cjs +1 -1
  43. package/dist/index.umd.cjs.map +1 -1
  44. package/dist/shared/api/index.d.ts +3 -0
  45. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  46. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  47. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  48. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  49. package/dist/shared/types/components.d.ts +199 -0
  50. package/dist/shared/types/imagePlayer.d.ts +34 -0
  51. package/dist/shared/types/index.d.ts +4 -0
  52. package/dist/shared/types/timeline.d.ts +9 -0
  53. package/package.json +4 -4
  54. package/dist/api/videoWallApi.d.ts +0 -9
  55. package/dist/types/360.d.ts +0 -139
  56. package/dist/types/aconex.d.ts +0 -45
  57. package/dist/types/automation.d.ts +0 -10
  58. package/dist/types/shares.d.ts +0 -196
  59. package/dist/types/siteAnalytics.d.ts +0 -142
  60. package/dist/types/videoWall.d.ts +0 -33
  61. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  62. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  63. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  64. /package/dist/api/{client → api/client}/swr/Swr.d.ts +0 -0
  65. /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
  66. /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
  67. /package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +0 -0
  68. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  69. /package/dist/{types → api/types}/anpr.d.ts +0 -0
  70. /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
  71. /package/dist/{types → api/types}/autodesk.d.ts +0 -0
  72. /package/dist/{types → api/types}/bim.d.ts +0 -0
  73. /package/dist/{types → api/types}/comments.d.ts +0 -0
  74. /package/dist/{types → api/types}/company.d.ts +0 -0
  75. /package/dist/{types → api/types}/compare.d.ts +0 -0
  76. /package/dist/{types → api/types}/connector.d.ts +0 -0
  77. /package/dist/{types → api/types}/coolify.d.ts +0 -0
  78. /package/dist/{types → api/types}/copilot.d.ts +0 -0
  79. /package/dist/{types → api/types}/countries.d.ts +0 -0
  80. /package/dist/{types → api/types}/drone.d.ts +0 -0
  81. /package/dist/{types → api/types}/errors.d.ts +0 -0
  82. /package/dist/{types → api/types}/hdd.d.ts +0 -0
  83. /package/dist/{types → api/types}/map.d.ts +0 -0
  84. /package/dist/{types → api/types}/media.d.ts +0 -0
  85. /package/dist/{types → api/types}/notification.d.ts +0 -0
  86. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  87. /package/dist/{types → api/types}/posthog.d.ts +0 -0
  88. /package/dist/{types → api/types}/procore.d.ts +0 -0
  89. /package/dist/{types → api/types}/recycleBin.d.ts +0 -0
  90. /package/dist/{types → api/types}/roi.d.ts +0 -0
  91. /package/dist/{types → api/types}/routeParams.d.ts +0 -0
  92. /package/dist/{types → api/types}/shared.d.ts +0 -0
  93. /package/dist/{types → api/types}/sim.d.ts +0 -0
  94. /package/dist/{types → api/types}/snapshots.d.ts +0 -0
  95. /package/dist/{types → api/types}/sso.d.ts +0 -0
  96. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  97. /package/dist/{types → api/types}/streaming.d.ts +0 -0
  98. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  99. /package/dist/{types → api/types}/tag.d.ts +0 -0
  100. /package/dist/{types → api/types}/timelapse.d.ts +0 -0
  101. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  102. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  103. /package/dist/{types → api/types}/weather.d.ts +0 -0
  104. /package/dist/{types → api/types}/xweather.d.ts +0 -0
@@ -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
- };
@@ -1,142 +0,0 @@
1
- import type { BBox, BoundingBox, DateType, Schedule, CameraExid, DateTime, DetectionModel, PaginationParams, PpeLabel, ProjectExid } from "@evercam/api/types";
2
- import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
- export declare enum SiteAnalyticsMode {
4
- Detections = "detections",
5
- Segments = "segments"
6
- }
7
- export type SmartSearchOptionData = {
8
- id?: string;
9
- type: SmartSearchQueryComponentType;
10
- value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
11
- };
12
- export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
13
- export declare enum SmartSearchQueryComponentType {
14
- Condition = "condition",
15
- Object = "object",
16
- Area = "in_area",
17
- Time = "time",
18
- Operator = "operator",
19
- Camera = "camera",
20
- DateRange = "date_range"
21
- }
22
- export type SmartSearchDateRange = {
23
- start: DateType;
24
- end: DateType;
25
- };
26
- export type SmartSearchQueryComponentData = {
27
- id: string;
28
- type: SmartSearchQueryComponentType;
29
- parts: [SmartSearchQueryPart];
30
- };
31
- export declare enum SmartSearchCondition {
32
- InArea = "in_area",
33
- Intersects = "intersects",
34
- Time = "time"
35
- }
36
- export type SmartSearchConditionData = {
37
- condition: SmartSearchCondition;
38
- value: string | BoundingBox | DetectionLabel | Date;
39
- };
40
- export type SmartSearchQueryCondition = {
41
- type: SmartSearchQueryConditionTypes;
42
- target: SmartSearchQueryTargets;
43
- operator?: SmartSearchQueryOperators;
44
- attribute?: string;
45
- value: string | number | string[];
46
- reference?: {
47
- target: SmartSearchQueryTargets;
48
- attribute: string;
49
- value: string | number | string[];
50
- };
51
- polygon?: BBox;
52
- };
53
- export type SmartSearchQuery = {
54
- returnTargets: SmartSearchQueryTargets[];
55
- rulesLogic: SmartSearchOperatorType;
56
- rules: {
57
- logic: SmartSearchOperatorType;
58
- conditions: SmartSearchQueryCondition[];
59
- }[];
60
- returnType: SmartSearchQueryReturnType;
61
- };
62
- export declare enum SmartSearchQueryTargets {
63
- Tracking = "tracking",
64
- Segments = "segments"
65
- }
66
- export declare enum SmartSearchQueryReturnType {
67
- All = "all",
68
- FirstLastSeen = "first_last_seen"
69
- }
70
- export declare enum SmartSearchOperatorType {
71
- And = "AND",
72
- Or = "OR"
73
- }
74
- export declare enum SmartSearchQueryOperators {
75
- Near = "near",
76
- Far = "far",
77
- Intersects = "intersects",
78
- DoesNotIntersect = "does_not_intersect",
79
- Inside = "inside",
80
- Outside = "outside",
81
- DistanceBelow = "distance_below",
82
- DistanceAbove = "distance_above",
83
- Area = "in_area",
84
- Equal = "="
85
- }
86
- export declare enum SmartSearchQueryConditionTypes {
87
- Selection = "selection",
88
- Spatial = "spatial",
89
- Area = "area",
90
- Iou = "iou",
91
- Near = "near",
92
- Far = "far"
93
- }
94
- export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
95
- export type SmartSearchQueryParams = {
96
- cameraExid: string;
97
- name: string;
98
- description: string;
99
- query: {
100
- req: SmartSearchQuery;
101
- timeSchedule?: Schedule | undefined;
102
- };
103
- fromDate?: DateType;
104
- toDate?: DateType;
105
- author: string;
106
- createdAt: DateType;
107
- params?: Record<string, unknown>;
108
- };
109
- export type SavedQuery = {
110
- description: string;
111
- id: number;
112
- query: {
113
- req: SmartSearchQuery;
114
- timeSchedule?: Schedule | undefined;
115
- };
116
- params: Record<string, string>;
117
- components?: Omit<SmartSearchOptionData, "id">[];
118
- toDate?: DateType;
119
- createdAt?: DateType;
120
- cameraExid: string;
121
- name: string;
122
- fromDate?: DateType;
123
- author?: string;
124
- };
125
- export type DetectionsRequestParams = {
126
- projectExid: ProjectExid;
127
- cameraExids: CameraExid[];
128
- fromDate?: DateTime;
129
- toDate?: DateTime;
130
- labels?: Array<DetectionLabel | PpeLabel>;
131
- modelId?: DetectionModel;
132
- trackId?: number;
133
- thresholds?: string[];
134
- excludeLabels?: Array<DetectionLabel | PpeLabel>;
135
- mergedClasses?: Array<string>;
136
- confidenceThreshold?: number;
137
- } & PaginationParams;
138
- export type DetectionsExportRequestParams = DetectionsRequestParams & {
139
- fileType: DownloadFileType;
140
- columns?: string[];
141
- directDownload?: boolean;
142
- };
@@ -1,33 +0,0 @@
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
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes