@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c

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 (92) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +120 -96
  4. package/dist/api/api/aiApi.d.ts +188 -53
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/client/interceptors.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +86 -28
  8. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/index.d.ts +1 -0
  11. package/dist/api/api/ingestApi.d.ts +90 -65
  12. package/dist/api/api/reportsApi.d.ts +15 -0
  13. package/dist/api/types/360.d.ts +178 -86
  14. package/dist/api/types/admin.d.ts +41 -3
  15. package/dist/api/types/aiConfigs.d.ts +244 -0
  16. package/dist/api/types/analytics.d.ts +141 -71
  17. package/dist/api/types/anpr.d.ts +134 -0
  18. package/dist/api/types/apiKey.d.ts +70 -0
  19. package/dist/api/types/auditLogs.d.ts +179 -21
  20. package/dist/api/types/authz.d.ts +72 -0
  21. package/dist/api/types/automation.d.ts +40 -3
  22. package/dist/api/types/axios.d.ts +12 -11
  23. package/dist/api/types/bim.d.ts +70 -12
  24. package/dist/api/types/camera.d.ts +244 -128
  25. package/dist/api/types/comments.d.ts +67 -26
  26. package/dist/api/types/company.d.ts +11 -5
  27. package/dist/api/types/compare.d.ts +1 -1
  28. package/dist/api/types/connector.d.ts +3 -0
  29. package/dist/api/types/coolify.d.ts +18 -2
  30. package/dist/api/types/detections.d.ts +10 -11
  31. package/dist/api/types/drone.d.ts +95 -6
  32. package/dist/api/types/emailMessages.d.ts +27 -0
  33. package/dist/api/types/errors.d.ts +19 -2
  34. package/dist/api/types/gateReport.d.ts +59 -49
  35. package/dist/api/types/gateReportManagement.d.ts +170 -0
  36. package/dist/api/types/hammertech.d.ts +98 -0
  37. package/dist/api/types/hdd.d.ts +1 -1
  38. package/dist/api/types/index.d.ts +15 -3
  39. package/dist/api/types/ingest.d.ts +207 -20
  40. package/dist/api/types/kit.d.ts +97 -117
  41. package/dist/api/types/map.d.ts +12 -0
  42. package/dist/api/types/media.d.ts +32 -3
  43. package/dist/api/types/notification.d.ts +52 -2
  44. package/dist/api/types/nvr.d.ts +39 -8
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/observationEvents.d.ts +167 -0
  47. package/dist/api/types/observations.d.ts +89 -0
  48. package/dist/api/types/planner.d.ts +98 -8
  49. package/dist/api/types/posthog.d.ts +72 -0
  50. package/dist/api/types/progressPhoto.d.ts +39 -25
  51. package/dist/api/types/project.d.ts +77 -24
  52. package/dist/api/types/recording.d.ts +9 -15
  53. package/dist/api/types/recycleBin.d.ts +8 -2
  54. package/dist/api/types/reports.d.ts +109 -0
  55. package/dist/api/types/ring.d.ts +53 -0
  56. package/dist/api/types/roi.d.ts +3 -11
  57. package/dist/api/types/routeParams.d.ts +1 -0
  58. package/dist/api/types/router.d.ts +15 -10
  59. package/dist/api/types/shared.d.ts +39 -29
  60. package/dist/api/types/shares.d.ts +0 -13
  61. package/dist/api/types/sim.d.ts +18 -6
  62. package/dist/api/types/siteAnalytics.d.ts +7 -19
  63. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  64. package/dist/api/types/siteView.d.ts +80 -0
  65. package/dist/api/types/smartSeach.d.ts +5 -0
  66. package/dist/api/types/snapshots.d.ts +98 -13
  67. package/dist/api/types/socket.d.ts +4 -0
  68. package/dist/api/types/sso.d.ts +12 -37
  69. package/dist/api/types/storageProvider.d.ts +30 -0
  70. package/dist/api/types/storyblok.d.ts +0 -13
  71. package/dist/api/types/timelapse.d.ts +6 -9
  72. package/dist/api/types/user.d.ts +48 -34
  73. package/dist/api/types/widget.d.ts +13 -4
  74. package/dist/api/utils.d.ts +1 -1
  75. package/dist/index.js +2635 -1120
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/types/components.d.ts +702 -42
  80. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  81. package/dist/shared/types/droneUpload.d.ts +93 -0
  82. package/dist/shared/types/imagePlayer.d.ts +8 -1
  83. package/dist/shared/types/index.d.ts +5 -0
  84. package/dist/shared/types/observations.d.ts +25 -0
  85. package/dist/shared/types/rbac.d.ts +80 -0
  86. package/dist/shared/types/report.d.ts +108 -0
  87. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  88. package/dist/shared/utils/datePresets.d.ts +31 -0
  89. package/package.json +4 -2
  90. package/dist/api/types/copilot.d.ts +0 -157
  91. package/dist/api/types/storageServers.d.ts +0 -4
  92. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
33
33
  email: string;
34
34
  name: string;
35
35
  }>;
36
- export type ShareCreateRequestPayload = {
37
- email: string[] | string;
38
- message?: string;
39
- permission?: string;
40
- rights: string;
41
- apiId?: string;
42
- apiKey?: string;
43
- };
44
36
  export type ShareCreateResponsePayload = {
45
37
  shares: Share[];
46
38
  shareRequests: ShareRequest[];
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
51
43
  Used = 1,
52
44
  Failed = -2
53
45
  }
54
- export declare enum ShareVisibility {
55
- PublicDiscoverable = "publicDiscoverable",
56
- PublicUndiscoverable = "publicUndiscoverable",
57
- Private = "private"
58
- }
@@ -1,4 +1,4 @@
1
- import { PaginationParams } from "@evercam/api/types";
1
+ import { PaginationParams, PowerType, PowerSchedule, RouterStatus } from "@evercam/api/types";
2
2
  export declare enum SmsCommands {
3
3
  Cellular = "cellular",
4
4
  Gpson = "gpson",
@@ -42,7 +42,6 @@ export type SimCreateUpdatePayload = {
42
42
  puk?: string;
43
43
  iccid?: string;
44
44
  description?: string;
45
- cameraId: string[];
46
45
  };
47
46
  export type SimsQueryParams = PaginationParams & {
48
47
  simProvider: string;
@@ -51,6 +50,11 @@ export type SimsQueryParams = PaginationParams & {
51
50
  iccid: string;
52
51
  cameraName: string;
53
52
  description: string;
53
+ powerType: PowerType;
54
+ serialNumber: string;
55
+ status: RouterStatus;
56
+ powerSchedule: PowerSchedule;
57
+ routerType: string;
54
58
  };
55
59
  export type Sim = {
56
60
  id: number;
@@ -69,13 +73,23 @@ export type Sim = {
69
73
  exid: string;
70
74
  id: number;
71
75
  }[];
76
+ rmsUrl?: string;
77
+ serialNumber: number | null;
78
+ routerType: string;
79
+ rmsId?: string;
80
+ powerType: PowerType;
81
+ powerSchedule: PowerSchedule;
82
+ status: RouterStatus;
72
83
  };
73
84
  export type SendSmsPayload = {
74
85
  number: string;
75
86
  smsMessage: string;
76
87
  };
88
+ export declare enum SendSmsStatus {
89
+ Success = "0"
90
+ }
77
91
  export type SendSmsResponse = {
78
- status: number;
92
+ status: SendSmsStatus | string;
79
93
  errorText: string;
80
94
  };
81
95
  export type SmsHistory = {
@@ -85,9 +99,6 @@ export type SmsHistory = {
85
99
  text: string;
86
100
  deliveryDatetime: string;
87
101
  };
88
- export type SmsHistoryResponse = {
89
- singleSimSms: SmsHistory[];
90
- };
91
102
  export type Sms = {
92
103
  id: number;
93
104
  from: string;
@@ -112,3 +123,4 @@ export type SmsQueryParams = PaginationParams & {
112
123
  smsStatus: SmsStatuses;
113
124
  deliveryDatetime: string;
114
125
  };
126
+ export type SimSummary = Pick<Sim, "id" | "number">;
@@ -1,4 +1,4 @@
1
- import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
1
+ import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
@@ -103,6 +103,7 @@ export type SmartSearchBackendQuery = {
103
103
  conditions: SmartSearchBackendQueryCondition[];
104
104
  }[];
105
105
  returnType: SmartSearchReturnType;
106
+ timeSchedule?: Schedule;
106
107
  };
107
108
  export declare enum SmartSearchTargets {
108
109
  Tracking = "tracking",
@@ -139,13 +140,9 @@ export declare enum SmartSearchConditionTypes {
139
140
  }
140
141
  export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | DateRangeFilter | SiteAnalyticsView;
141
142
  export type SmartSearchBackendQueryPayload = {
142
- cameraExid: string;
143
143
  name: string;
144
144
  description: string;
145
- query: {
146
- req: SmartSearchBackendQuery;
147
- timeSchedule?: Schedule | undefined;
148
- };
145
+ query: SmartSearchBackendQuery;
149
146
  fromDate?: DateType;
150
147
  toDate?: DateType;
151
148
  author: string;
@@ -158,10 +155,7 @@ export type SmartSearchBackendQueryPayload = {
158
155
  export type SavedQuery = {
159
156
  description: string;
160
157
  id: number;
161
- query: {
162
- req: SmartSearchBackendQuery;
163
- timeSchedule?: Schedule | undefined;
164
- };
158
+ query: SmartSearchBackendQuery;
165
159
  params: Record<string, string>;
166
160
  components?: Omit<SmartSearchPart, "id">[];
167
161
  toDate?: DateType;
@@ -190,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
190
184
  directDownload?: boolean;
191
185
  };
192
186
  export type SmartSearchHeatmapPoint = {
193
- coordinates: [number, number];
187
+ coordinates: TuplePoint2D;
194
188
  detectionsCount: number;
195
189
  };
196
190
  export type SmartSearchHeatmapData = {
@@ -238,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
238
232
  feature: CameraFeatureFlag;
239
233
  processedIntervals: TimelineDateInterval[];
240
234
  };
241
- export type SmartSearchRequestPayload = {
235
+ export type SmartSearchRequestPayload = PaginationParams & {
242
236
  cameraExids?: CameraExid[];
243
237
  drawingIds?: _360FloorId[];
244
238
  walkIds?: string[];
@@ -246,8 +240,6 @@ export type SmartSearchRequestPayload = {
246
240
  payload: SmartSearchBackendQuery;
247
241
  fromDate?: string;
248
242
  toDate?: string;
249
- page?: number;
250
- pageSize?: number;
251
243
  threshold?: number;
252
244
  };
253
245
  type SmartSearchResultItemBase = {
@@ -281,11 +273,7 @@ type SmartSearchResultItemByType = {
281
273
  [SmartSearchReturnType.FirstLastSeen]: SmartSearchResultItemFirstLastSeen;
282
274
  [SmartSearchReturnType.All]: SmartSearchResultItemAll;
283
275
  };
284
- export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> = {
285
- data: PaginatedItems<SmartSearchResultItemByType[R]>;
286
- message?: string;
287
- success: boolean;
288
- };
276
+ export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> = PaginatedItems<SmartSearchResultItemByType[R]>;
289
277
  export type SmartSearchMinifiedPart = {
290
278
  t: SmartSearchComponentType;
291
279
  v: unknown;
@@ -0,0 +1,127 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export declare enum VisionProvider {
3
+ Gemini = "gemini",
4
+ Gemma = "gemma"
5
+ }
6
+ export declare const VISION_PROVIDER_OPTIONS: {
7
+ text: string;
8
+ value: VisionProvider;
9
+ }[];
10
+ export type SiteAnalyticsCoolifyStatus = {
11
+ appUuid: string | null;
12
+ name: string | null;
13
+ serverUuid: string | null;
14
+ serverName: string | null;
15
+ appUrl: string | null;
16
+ status: string | null;
17
+ isRunning: boolean;
18
+ updatedAt: string | null;
19
+ };
20
+ export type SiteAnalyticsProjectMeta = {
21
+ exid: ProjectExid;
22
+ name: string | null;
23
+ timezone: string | null;
24
+ featureFlags: string[] | null;
25
+ };
26
+ export type SiteAnalyticsCameraMeta = {
27
+ exid: CameraExid;
28
+ name: string | null;
29
+ status: string | null;
30
+ featureFlags: string[] | null;
31
+ };
32
+ export type SiteAnalyticsManagedApp = {
33
+ id: number;
34
+ projectExid: ProjectExid;
35
+ cameraExid: CameraExid;
36
+ coolifyAppId: string | null;
37
+ appVersion: string;
38
+ modelId: number | null;
39
+ startDate: DateType | null;
40
+ endDate: DateType | null;
41
+ startHour: number;
42
+ endHour: number;
43
+ source: string;
44
+ override: boolean;
45
+ timeIncreaseFrequency: number;
46
+ skipWeekends: boolean;
47
+ tracking: boolean;
48
+ observations: boolean;
49
+ visionProvider?: VisionProvider | null;
50
+ insertedAt: DateType | null;
51
+ updatedAt: DateType | null;
52
+ coolify: SiteAnalyticsCoolifyStatus | null;
53
+ project: SiteAnalyticsProjectMeta | null;
54
+ camera: SiteAnalyticsCameraMeta | null;
55
+ lastTrackingAt: DateType | null;
56
+ };
57
+ export type CreateSiteAnalyticsAppPayload = {
58
+ projectExid: ProjectExid;
59
+ cameraExid: CameraExid;
60
+ coolifyServerUuid: string;
61
+ appVersion?: string;
62
+ modelId?: number | null;
63
+ startDate?: DateType | null;
64
+ endDate?: DateType | null;
65
+ startHour?: number;
66
+ endHour?: number;
67
+ source?: string;
68
+ override?: boolean;
69
+ skipWeekends?: boolean;
70
+ timeIncreaseFrequency?: number;
71
+ tracking?: boolean;
72
+ observations?: boolean;
73
+ observationPromptId?: number | null;
74
+ visionProvider?: VisionProvider;
75
+ };
76
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
77
+ export type ModelOption = {
78
+ modelId: number;
79
+ version: string;
80
+ };
81
+ export type SiteAnalyticsAppConfigFormValue = {
82
+ appVersion: string;
83
+ modelId: number | null;
84
+ startDate: string | null;
85
+ endDate: string | null;
86
+ startHour: number;
87
+ endHour: number;
88
+ source: string;
89
+ override: boolean;
90
+ timeIncreaseFrequency: number;
91
+ skipWeekends: boolean;
92
+ };
93
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
94
+ projectExid?: ProjectExid;
95
+ includeStatus?: boolean;
96
+ };
97
+ export type CreateSiteAnalyticsAppResponse = {
98
+ created: boolean;
99
+ id: number | null;
100
+ data: SiteAnalyticsManagedApp | null;
101
+ count: number | null;
102
+ message: string;
103
+ };
104
+ export type DeleteSiteAnalyticsAppResponse = {
105
+ deleted: boolean;
106
+ count: number;
107
+ message: string;
108
+ };
109
+ export type ObservationConfigActivity = {
110
+ observationTypeId: number;
111
+ every: number | null;
112
+ };
113
+ export type ObservationConfig = {
114
+ id: number;
115
+ cameraExid: CameraExid;
116
+ projectExid: ProjectExid | null;
117
+ enabled: boolean;
118
+ activities: ObservationConfigActivity[];
119
+ createdBy: string | null;
120
+ insertedAt: DateType | null;
121
+ updatedAt: DateType | null;
122
+ };
123
+ export type UpsertObservationConfigPayload = {
124
+ projectExid?: ProjectExid;
125
+ enabled: boolean;
126
+ activities: ObservationConfigActivity[];
127
+ };
@@ -0,0 +1,80 @@
1
+ import { ForgeView } from "@evercam/api/types/360";
2
+ import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ import { DroneProvider } from "@evercam/api/types/drone";
4
+ export declare enum SiteViewSoftwareType {
5
+ Revit = "Revit",
6
+ Navisworks = "Navisworks",
7
+ Drone = "Drone",
8
+ Synchro = "Synchro"
9
+ }
10
+ export declare enum SiteViewerType {
11
+ ITwin = "iTwin",
12
+ Cesium = "Cesium",
13
+ Forge = "Forge"
14
+ }
15
+ export type SiteViewCameraListItem = {
16
+ projectId: string;
17
+ projectName: string;
18
+ software: SiteViewSoftwareType;
19
+ type: SiteViewerType;
20
+ uniqueId: string;
21
+ integrationType?: DroneProvider;
22
+ };
23
+ export type ForgeUrn = {
24
+ id?: string;
25
+ displayName: string;
26
+ urn: string;
27
+ isModelHostedByEvercamACC?: boolean;
28
+ is4D?: boolean;
29
+ savedViews?: Record<string, ForgeView>;
30
+ };
31
+ export type ForgeAccAlignmentData = {
32
+ bbox: {
33
+ min: Point2D;
34
+ max: Point2D;
35
+ };
36
+ transform: number[];
37
+ coordinateSystem?: {
38
+ context?: {
39
+ type?: string;
40
+ };
41
+ } | null;
42
+ };
43
+ export type TimelineItem = {
44
+ taskNumber: number;
45
+ taskID: string;
46
+ actualStartDate: string;
47
+ actualEndDate: string;
48
+ plannedStartDate: string;
49
+ plannedEndDate: string;
50
+ objectIDs: number[];
51
+ };
52
+ export type ForgeMarkerTransform = {
53
+ position?: Point3D;
54
+ hidden?: boolean;
55
+ };
56
+ export type ForgeMarker = {
57
+ name: string;
58
+ cameraExid: string;
59
+ type: string;
60
+ transforms: Record<string, ForgeMarkerTransform>;
61
+ };
62
+ export type ForgeProjectData = {
63
+ urns?: ForgeUrn[];
64
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
65
+ timeline?: TimelineItem[];
66
+ cameraMarkers?: Record<string, ForgeMarker>;
67
+ };
68
+ export type ItwinModel = {
69
+ name: string;
70
+ iTwinId: string;
71
+ iModelId: string;
72
+ changeSetId?: string;
73
+ isIModel: boolean;
74
+ height?: number;
75
+ cesiumId?: number;
76
+ markerDistanceThreshold: number;
77
+ };
78
+ export type ItwinProjectData = {
79
+ models: ItwinModel[];
80
+ };
@@ -0,0 +1,5 @@
1
+ import { CameraExid } from "@evercam/api/types";
2
+ export type SmartSearchQueriesRequestPayload = {
3
+ camerasExid: CameraExid[];
4
+ name?: string;
5
+ };
@@ -1,12 +1,19 @@
1
1
  import { CameraExid, DateType, PaginationParams, Schedule } from "@evercam/api/types";
2
- export type SnapshotExtractionQyeryParams = PaginationParams & {
2
+ export type SnapshotExtractionQueryParams = PaginationParams & {
3
3
  camera: string;
4
4
  cameraExid: CameraExid;
5
5
  status: SnapshotExtractionStatus;
6
+ requestor: string;
7
+ type: SnapshotExtractionType;
8
+ from: string;
9
+ to: string;
6
10
  };
7
11
  export declare enum SnapshotExtractionStatus {
12
+ Cancelling = "canceling",
13
+ Cancelled = "cancelled",
8
14
  Completed = "completed",
9
15
  Failed = "failed",
16
+ Pending = "pending",
10
17
  Processing = "processing"
11
18
  }
12
19
  export declare enum SnapshotExtractionType {
@@ -22,14 +29,48 @@ export type SnapshotExtraction = {
22
29
  fromDate: DateType;
23
30
  toDate: DateType;
24
31
  type: SnapshotExtractionType;
25
- notes: string;
32
+ notes: string | null;
26
33
  status: SnapshotExtractionStatus;
27
34
  interval: number;
28
- requestor: string;
29
- jpegsToDropbox: boolean;
30
- injectTo_cr: Boolean;
35
+ requestor: string | null;
36
+ jpegsToDropbox: boolean | null;
37
+ injectToCr: boolean | null;
38
+ schedule: Schedule;
39
+ createdAt: DateType;
40
+ jpegCount: number;
41
+ expectedCount: number;
42
+ uploadCounts: Record<string, number>;
43
+ obanJobId: number | null;
44
+ };
45
+ export type CreatedSnapshotExtraction = {
46
+ id: number;
47
+ cameraExid: CameraExid;
48
+ cameraName: string;
49
+ cameraTimezone: string;
50
+ fromDate: DateType;
51
+ toDate: DateType;
52
+ type: SnapshotExtractionType;
53
+ status: SnapshotExtractionStatus;
54
+ interval: number;
55
+ requestor: string | null;
31
56
  schedule: Schedule;
32
- created_at: DateType;
57
+ createdAt: DateType;
58
+ updatedAt: DateType;
59
+ jpegCount: number;
60
+ expectedCount: number;
61
+ uploadCounts: Record<string, number>;
62
+ };
63
+ export type SnapshotExtractionCreatePayload = {
64
+ camera: string;
65
+ fromDate: DateType;
66
+ toDate: DateType;
67
+ schedule: Schedule | string;
68
+ interval: number;
69
+ jpegsToDropbox: boolean;
70
+ injectToCr: boolean;
71
+ requestor: string;
72
+ type: SnapshotExtractionType;
73
+ ignoreCasingFromParams?: string[];
33
74
  };
34
75
  export type SnapshotTestPayload = {
35
76
  cameraExid?: CameraExid;
@@ -37,23 +78,67 @@ export type SnapshotTestPayload = {
37
78
  camPassword: string;
38
79
  externalUrl: string;
39
80
  jpgUrl: string;
81
+ model?: string | null;
40
82
  };
41
83
  export type SnapshotTestResponse = {
42
84
  status: string;
43
85
  data: string;
44
86
  };
87
+ export type SnapshotEmailDeliveryRequestPayload = {
88
+ snapshot: string;
89
+ recipients?: string[];
90
+ message?: string;
91
+ };
92
+ export type SnapshotEmailDeliveryResponsePayload = {
93
+ warning?: string;
94
+ };
45
95
  export type DeleteSnapshotQueryParams = {
46
96
  fromDate: DateType;
47
97
  toDate: DateType;
48
- adminEmail: string;
49
- adminFullname: string;
50
98
  };
51
- export type TransferCloudRecordingsQueryParams = {
99
+ export type SnapshotTransfer = {
100
+ id: number;
101
+ sourceCamera: SnapshotTransferCamera;
102
+ targetCamera: SnapshotTransferCamera;
103
+ fromDate: DateType;
104
+ toDate: DateType;
105
+ overwriteExisting?: boolean | null;
106
+ deleteSource?: boolean | null;
107
+ requestor: SnapshotTransferRequestor;
108
+ status: SnapshotTransferStatus;
109
+ insertedAt: DateType;
110
+ attempts?: number | null;
111
+ errorMessage?: string | null;
112
+ snapshotsTransferred?: number | null;
113
+ };
114
+ export type SnapshotTransferCamera = {
115
+ id: number;
116
+ exid: CameraExid;
117
+ name: string;
118
+ };
119
+ export type SnapshotTransferRequestor = {
120
+ id: number;
121
+ email: string;
122
+ firstname: string;
123
+ lastname: string;
124
+ };
125
+ export declare enum SnapshotTransferStatus {
126
+ Completed = "completed",
127
+ Failed = "failed",
128
+ Processing = "processing",
129
+ Pending = "pending",
130
+ Cancelled = "cancelled"
131
+ }
132
+ export type TransferCloudRecordingsQueryParams = PaginationParams & {
52
133
  targetCameraExid: CameraExid;
53
134
  fromDate: DateType;
54
135
  toDate: DateType;
55
- overwriteExistingSnapshots?: boolean;
56
- keepSourceSnapshots?: boolean;
57
- adminEmail?: string;
58
- adminFullname?: string;
136
+ overwriteExisting?: boolean;
137
+ deleteSource?: boolean;
138
+ };
139
+ export type SnapshotTransfersQueryParams = PaginationParams & {
140
+ sourceCamera?: string;
141
+ targetCamera?: string;
142
+ requestor?: string;
143
+ status?: string;
59
144
  };
@@ -0,0 +1,4 @@
1
+ export type SocketAuthResponsePayload = {
2
+ wsToken: string;
3
+ expiresIn: number;
4
+ };
@@ -1,3 +1,9 @@
1
+ export type SsoUserInfoMappings = {
2
+ id: string;
3
+ email: string;
4
+ firstname: string;
5
+ lastname: string;
6
+ };
1
7
  export type SsoProvider = {
2
8
  id: number;
3
9
  name: string;
@@ -15,41 +21,10 @@ export type SsoProvider = {
15
21
  tokenUri: string;
16
22
  tokenIntrospectionUri: string;
17
23
  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;
24
+ prompt: string;
25
+ userInfoMappings: SsoUserInfoMappings;
26
+ createdAt: string;
55
27
  };
28
+ export type SsoProviderForm = Partial<SsoProvider>;
29
+ export type SsoUpdatePayload = Omit<SsoProvider, "id" | "createdAt">;
30
+ export type SsoCreatePayload = Omit<SsoProvider, "id" | "createdAt">;
@@ -0,0 +1,30 @@
1
+ import type { DateType } from "@evercam/api/types";
2
+ import type { CameraExid } from "@evercam/api/types/camera";
3
+ export type StorageProviderS3Config = {
4
+ bucket?: string;
5
+ accessKeyId?: string;
6
+ secretAccessKey?: string;
7
+ region?: string;
8
+ vendor?: string;
9
+ };
10
+ export type StorageProviderSeaweedfsConfig = {
11
+ jwtSigningKey?: string;
12
+ jwtReadSigningKey?: string;
13
+ };
14
+ export type StorageProviderConfig = StorageProviderS3Config & StorageProviderSeaweedfsConfig;
15
+ export type StorageProvider = {
16
+ id?: number;
17
+ cameraId: number | CameraExid;
18
+ type: string;
19
+ provider: string;
20
+ url: string;
21
+ startDate: DateType;
22
+ endDate: DateType;
23
+ config: StorageProviderConfig;
24
+ insertedAt?: DateType;
25
+ updatedAt?: DateType;
26
+ };
27
+ export declare enum ProjectStorageProvider {
28
+ Seaweedfs = "seaweedfs",
29
+ S3 = "s3"
30
+ }
@@ -1,17 +1,4 @@
1
1
  import type { JsonObject, JsonValue } from "@evercam/api/types";
2
- export type StoryblokAsset = {
3
- id: number | null;
4
- alt: string | null;
5
- name: string;
6
- focus: string | null;
7
- title: string | null;
8
- filename: string;
9
- copyright: string | null;
10
- fieldtype: "asset";
11
- source?: string;
12
- metaData?: JsonObject;
13
- isExternalUrl?: boolean;
14
- };
15
2
  export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
16
3
  id: number;
17
4
  uuid: string;
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@evercam/api/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -7,7 +7,8 @@ export declare enum TimelapseStatus {
7
7
  export declare enum TimelapseDuration {
8
8
  ThirtySeconds = 30,
9
9
  SixtySeconds = 60,
10
- NintySeconds = 90
10
+ NintySeconds = 90,
11
+ TwoMinutes = 120
11
12
  }
12
13
  export type TimelapseVideoOptions = {
13
14
  width?: number;
@@ -15,7 +16,9 @@ export type TimelapseVideoOptions = {
15
16
  removeTimestamp: boolean;
16
17
  smoothTransition: boolean;
17
18
  evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
18
20
  timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
19
22
  };
20
23
  export type TimestampPositionCoordinates = {
21
24
  x: number;
@@ -23,6 +26,7 @@ export type TimestampPositionCoordinates = {
23
26
  w: number;
24
27
  h: number;
25
28
  };
29
+ export type BlurRegionCoordinates = Point2D[];
26
30
  export type TimelapseLogoOptions = {
27
31
  id?: number;
28
32
  x: number;
@@ -50,13 +54,6 @@ export declare enum TimelapseType {
50
54
  Year = "year",
51
55
  FullProject = "full_project"
52
56
  }
53
- export type TimelapseFilterQueryParams = {
54
- from?: DateType;
55
- to?: DateType;
56
- period?: TimelapsePeriod;
57
- duration?: number;
58
- schedule?: Schedule;
59
- };
60
57
  export type TimelapseCreationRequestPayload = {
61
58
  title: string;
62
59
  duration: number;