@evercam/api 1.0.0-d7a4e6c9d → 1.0.0-d9534755d

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 (82) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +175 -13
  2. package/dist/api/api/adminApi.d.ts +87 -83
  3. package/dist/api/api/aiApi.d.ts +58 -85
  4. package/dist/api/api/authzApi.d.ts +31 -15
  5. package/dist/api/api/client/axios.d.ts +2 -1
  6. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +118 -95
  8. package/dist/api/api/evercamLabsApi.d.ts +4 -3
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/ingestApi.d.ts +99 -46
  11. package/dist/api/api/ptzApi.d.ts +12 -3
  12. package/dist/api/api/videoWallApi.d.ts +2 -2
  13. package/dist/api/api/weatherApi.d.ts +2 -2
  14. package/dist/api/types/360.d.ts +164 -24
  15. package/dist/api/types/aconex.d.ts +9 -9
  16. package/dist/api/types/admin.d.ts +51 -0
  17. package/dist/api/types/analytics.d.ts +112 -60
  18. package/dist/api/types/anpr.d.ts +19 -2
  19. package/dist/api/types/auditLogs.d.ts +1 -1
  20. package/dist/api/types/authz.d.ts +61 -0
  21. package/dist/api/types/autodesk.d.ts +7 -7
  22. package/dist/api/types/automation.d.ts +37 -3
  23. package/dist/api/types/axios.d.ts +11 -5
  24. package/dist/api/types/bim.d.ts +11 -5
  25. package/dist/api/types/camera.d.ts +97 -98
  26. package/dist/api/types/comments.d.ts +7 -9
  27. package/dist/api/types/company.d.ts +42 -1
  28. package/dist/api/types/compare.d.ts +20 -5
  29. package/dist/api/types/connector.d.ts +3 -5
  30. package/dist/api/types/coolify.d.ts +18 -2
  31. package/dist/api/types/copilot.d.ts +11 -6
  32. package/dist/api/types/credentials.d.ts +1 -0
  33. package/dist/api/types/detections.d.ts +20 -8
  34. package/dist/api/types/drone.d.ts +92 -3
  35. package/dist/api/types/gateReport.d.ts +49 -158
  36. package/dist/api/types/hdd.d.ts +26 -1
  37. package/dist/api/types/index.d.ts +8 -1
  38. package/dist/api/types/ingest.d.ts +98 -2
  39. package/dist/api/types/kit.d.ts +31 -5
  40. package/dist/api/types/map.d.ts +12 -0
  41. package/dist/api/types/media.d.ts +2 -1
  42. package/dist/api/types/notification.d.ts +32 -2
  43. package/dist/api/types/oauth.d.ts +62 -0
  44. package/dist/api/types/planner.d.ts +102 -1
  45. package/dist/api/types/posthog.d.ts +15 -0
  46. package/dist/api/types/procore.d.ts +13 -6
  47. package/dist/api/types/progressPhoto.d.ts +6 -2
  48. package/dist/api/types/project.d.ts +136 -21
  49. package/dist/api/types/recording.d.ts +6 -4
  50. package/dist/api/types/recycleBin.d.ts +1 -1
  51. package/dist/api/types/ring.d.ts +53 -0
  52. package/dist/api/types/roi.d.ts +2 -2
  53. package/dist/api/types/router.d.ts +20 -1
  54. package/dist/api/types/shared.d.ts +29 -4
  55. package/dist/api/types/shares.d.ts +6 -144
  56. package/dist/api/types/sim.d.ts +6 -6
  57. package/dist/api/types/siteAnalytics.d.ts +170 -46
  58. package/dist/api/types/siteView.d.ts +74 -0
  59. package/dist/api/types/smartSeach.d.ts +5 -0
  60. package/dist/api/types/snapshots.d.ts +36 -4
  61. package/dist/api/types/storageProvider.d.ts +19 -0
  62. package/dist/api/types/storyblok.d.ts +40 -0
  63. package/dist/api/types/streaming.d.ts +3 -3
  64. package/dist/api/types/tag.d.ts +1 -1
  65. package/dist/api/types/time.d.ts +0 -18
  66. package/dist/api/types/timelapse.d.ts +12 -5
  67. package/dist/api/types/user.d.ts +105 -31
  68. package/dist/api/types/videoWall.d.ts +21 -21
  69. package/dist/api/types/weather.d.ts +75 -11
  70. package/dist/api/types/widget.d.ts +71 -12
  71. package/dist/api/types/xweather.d.ts +4 -4
  72. package/dist/index.js +1580 -940
  73. package/dist/index.js.map +1 -1
  74. package/dist/index.umd.cjs +1 -1
  75. package/dist/index.umd.cjs.map +1 -1
  76. package/dist/shared/types/components.d.ts +127 -14
  77. package/dist/shared/types/imagePlayer.d.ts +10 -3
  78. package/dist/shared/types/index.d.ts +1 -0
  79. package/dist/shared/types/rbac.d.ts +67 -0
  80. package/dist/shared/types/timeline.d.ts +2 -1
  81. package/package.json +2 -2
  82. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,25 +1,56 @@
1
- import { AdminCamera, Camera, CameraExid, DateRangeFilter, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
5
- id: string | number;
6
- exid: ProjectExid;
7
- name: string;
8
- status?: ProjectStatus;
9
- insertedAt?: string;
10
- startedAt?: string;
11
- timezone?: string;
12
- zohoId?: string;
13
- userId?: number;
5
+ archiveTier?: ProjectArchiveTier;
14
6
  cameras?: Array<Camera | AdminCamera>;
15
- unrestrictedCameras?: Array<Camera | AdminCamera>;
7
+ camerasCount?: number;
8
+ camerasRestrictionType?: string;
9
+ companyId: number;
10
+ endDate: string;
11
+ exid: ProjectExid;
16
12
  featureFlags: Array<ProjectFeatureFlag>;
13
+ geographicBounds?: unknown;
14
+ id: string | number;
15
+ insertedAt?: string;
16
+ name: string;
17
17
  owner?: {
18
18
  email?: string;
19
19
  };
20
20
  ownerEmail?: string;
21
21
  ownerName?: string;
22
- camerasRestrictionType?: string;
22
+ startedAt?: string;
23
+ status?: ProjectStatus;
24
+ timezone?: string;
25
+ unrestrictedCameras?: Camera[];
26
+ userId?: number;
27
+ zohoId?: string;
28
+ };
29
+ export type AdminProjectCameraRef = {
30
+ exid: string;
31
+ name: string;
32
+ };
33
+ export type AdminProjectListItem = {
34
+ id: number;
35
+ name: string;
36
+ status: ProjectStatus | string;
37
+ insertedAt: string;
38
+ timezone: string | null;
39
+ exid: ProjectExid;
40
+ endDate: string | null;
41
+ startDate: string | null;
42
+ archiveTier: ProjectArchiveTier | null;
43
+ featureFlags: Array<ProjectFeatureFlag | string>;
44
+ zohoId: string | null;
45
+ ownerEmail: string | null;
46
+ companyId: number | null;
47
+ companyName: string | null;
48
+ ownerName: string | null;
49
+ archived: boolean;
50
+ cameras?: AdminProjectCameraRef[];
51
+ };
52
+ export type AdminProjectDetail = AdminProjectListItem & {
53
+ userId: number;
23
54
  };
24
55
  export declare enum ProjectStatus {
25
56
  ToStart = "To Start",
@@ -31,15 +62,15 @@ export declare enum ProjectArchiveTier {
31
62
  Full = "Full",
32
63
  Partial = "Partial",
33
64
  Minimal = "Minimal",
34
- ScheduledForDeletion = "Scheduled for Deletion"
65
+ ScheduledForDeletion = "Scheduled for Deletion",
66
+ No = "No"
35
67
  }
36
- export type ProjectResponsePayload = {
37
- data?: Project[];
38
- };
39
68
  export type UpdateCameraRestrictionPayload = {
40
69
  isAccessRestricted?: boolean;
41
70
  };
42
71
  export type Logo = {
72
+ id: number;
73
+ projectId: number;
43
74
  name: string;
44
75
  url: string;
45
76
  };
@@ -53,7 +84,6 @@ export declare enum ProjectFeatureFlag {
53
84
  ThreeSixtyView = "360_view",
54
85
  NdaMc = "NDA/MC",
55
86
  GateReport = "gate_report",
56
- GateReportAutoVerify = "auto_publish",
57
87
  GateReportMotionDetection = "motion_detection",
58
88
  FullEmpty = "full_empty",
59
89
  MediaHubSharing = "archives_sharing",
@@ -61,7 +91,8 @@ export declare enum ProjectFeatureFlag {
61
91
  NoLicensePlate = "no_license_plate",
62
92
  DefaultToProjectApp = "default_to_project_app",
63
93
  SmartSearch = "smart_search",
64
- PpeMonitoring = "ppe_monitoring"
94
+ PpeMonitoring = "ppe_monitoring",
95
+ NoGdpr = "no_gdpr"
65
96
  }
66
97
  export type ProjectBatteryReading = {
67
98
  exid: number;
@@ -79,6 +110,7 @@ export type ProjectsQueryParams = PaginationParams & {
79
110
  status: ProjectStatus;
80
111
  cameras: string;
81
112
  featureFlags: Array<ProjectFeatureFlag>;
113
+ featureFlagsOperator?: Operator;
82
114
  archived: string;
83
115
  };
84
116
  export type ProjectCreateRequestPayload = {
@@ -117,7 +149,7 @@ export type ProjectUserProperty = {
117
149
  eventsCount: number;
118
150
  fullname: string;
119
151
  id: number;
120
- lastSeenAt: DateTime;
152
+ lastSeenAt: string;
121
153
  persona: string;
122
154
  };
123
155
  export type ProjectUsers = {
@@ -127,6 +159,89 @@ export type ProjectUsers = {
127
159
  }[];
128
160
  users: Record<string, ProjectUserProperty[]>;
129
161
  };
130
- export type ProjectDateRangeFilter = DateRangeFilter & {
131
- projectExid: ProjectExid;
162
+ export type ProjectRole = {
163
+ id: number;
164
+ name: string;
165
+ };
166
+ export type ProjectMember = {
167
+ id: string;
168
+ key?: string;
169
+ email: string;
170
+ fullname: string;
171
+ lastSeenAt?: string;
172
+ role: ProjectRole;
173
+ permissions?: string[];
174
+ subRoles?: Array<{
175
+ resourceId: string;
176
+ roleId: number;
177
+ }>;
178
+ company?: {
179
+ name: string;
180
+ } | null;
181
+ };
182
+ export type ProjectInvite = {
183
+ id?: string;
184
+ email: string;
185
+ role?: ProjectRole;
186
+ permissions?: string[];
187
+ subRoles?: Array<{
188
+ resourceId: string;
189
+ roleId: number;
190
+ }>;
191
+ invitedAt?: string;
192
+ };
193
+ export type ProjectMembersResponsePayload = {
194
+ users: ProjectMember[];
195
+ invites: ProjectInvite[];
196
+ errors: ProjectUserError[];
197
+ };
198
+ export type ProjectMembersRequestPayload = {
199
+ roleId: number;
200
+ emails: string[];
201
+ message?: string;
202
+ overrideRole?: Partial<{
203
+ permissions?: string[];
204
+ subRoles?: Array<{
205
+ resourceId: string;
206
+ roleId: number;
207
+ }>;
208
+ }>;
209
+ };
210
+ export type ProjectInviteMembersResponsePayload = {
211
+ users: ProjectMember[];
212
+ invites: ProjectInvite[];
132
213
  };
214
+ export type PlaceholderThumbnailData = {
215
+ placeholder: string;
216
+ };
217
+ export type ProjectUserError = {
218
+ email: string;
219
+ error: Record<string, string[]>;
220
+ };
221
+ export type ProjectUsersResponsePayload = {
222
+ users: ProjectMember[];
223
+ invites: ProjectInvite[];
224
+ errors: ProjectUserError[];
225
+ };
226
+ export type ProjectStorageQueryParams = PaginationParams & {
227
+ cameraName: string;
228
+ cameraExid: CameraExid;
229
+ status: ProjectStorageStatus;
230
+ };
231
+ export type ProjectStorage = {
232
+ id: number;
233
+ cameraExid: CameraExid;
234
+ cameraName: string;
235
+ projectExid: string;
236
+ projectName: string;
237
+ status: ProjectStorageStatus;
238
+ requestor: string;
239
+ created_at: DateType;
240
+ };
241
+ export declare enum ProjectStorageStatus {
242
+ New = "new",
243
+ Pending = "pending",
244
+ Processing = "processing",
245
+ Completed = "completed",
246
+ Failed = "failed"
247
+ }
@@ -1,4 +1,4 @@
1
- import { ApiCredentials } from "@/types";
1
+ import { ApiCredentials } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
@@ -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;
@@ -55,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
55
56
  snapshots: Array<SnapshotInstance>;
56
57
  };
57
58
  export declare enum BrainTool {
58
- Detections = "detections",
59
- Segmentation = "sam"
59
+ Detections = "detections"
60
60
  }
61
61
  export declare enum CloudRecordingFrequency {
62
62
  EverySecond = 60,
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
76
76
  Month = 30,
77
77
  ThreeMonths = 90
78
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
79
80
  export declare enum CloudRecordingStatus {
80
81
  On = "on",
81
82
  Off = "off",
@@ -119,5 +120,6 @@ export declare enum VpnServer {
119
120
  WireGuard7 = "WireGuard7",
120
121
  WireGuard8 = "WireGuard8",
121
122
  WireGuard9 = "WireGuard9",
122
- WireGuard10 = "WireGuard10"
123
+ WireGuard10 = "WireGuard10",
124
+ WgHub = "WgHub"
123
125
  }
@@ -1,4 +1,4 @@
1
- import type { DateType, PaginationParams } from "@/types";
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
2
  export type RecycleBin = {
3
3
  id?: number;
4
4
  exid: string;
@@ -0,0 +1,53 @@
1
+ export type RingDevice = {
2
+ deviceId: string;
3
+ name: string;
4
+ deviceType: string;
5
+ firmwareVersion: string | null;
6
+ batteryLife: number | null;
7
+ location: string | null;
8
+ imported: boolean;
9
+ cameraExid?: string;
10
+ projectExid?: string;
11
+ projectName?: string;
12
+ };
13
+ export type RingDevicesResponsePayload = {
14
+ devices: RingDevice[];
15
+ };
16
+ export type RingImportDevicesPayload = {
17
+ deviceIds: string[];
18
+ projectExid: string;
19
+ deviceNames?: Record<string, string>;
20
+ };
21
+ export type RingImportResponsePayload = {
22
+ cameras: Array<{
23
+ exid: string;
24
+ name: string;
25
+ }>;
26
+ project: {
27
+ exid: string;
28
+ name: string;
29
+ };
30
+ };
31
+ export type RingMoveDevicePayload = {
32
+ projectExid: string;
33
+ };
34
+ export type RingMoveDeviceResponsePayload = {
35
+ status: string;
36
+ cameraExid: string;
37
+ projectExid: string;
38
+ };
39
+ export type RingLiveViewPayload = {
40
+ sdpOffer: string;
41
+ };
42
+ export type RingLiveViewResponse = {
43
+ sdpAnswer: string;
44
+ sessionUrl: string;
45
+ iceServers: Array<{
46
+ urls: string;
47
+ username?: string;
48
+ credential?: string;
49
+ }>;
50
+ };
51
+ export type RingStopLiveViewResponse = {
52
+ status: string;
53
+ };
@@ -9,8 +9,7 @@ export declare enum RoiShapeType {
9
9
  Polygon = "polygon",
10
10
  Line = "line",
11
11
  Direction = "direction",
12
- Rectangle = "rectangle",
13
- ROIBox = "ROIBox"
12
+ Rectangle = "rectangle"
14
13
  }
15
14
  export type RoiShape = {
16
15
  id: number | null;
@@ -19,6 +18,7 @@ export type RoiShape = {
19
18
  x2: number;
20
19
  y1: number;
21
20
  y2: number;
21
+ points?: [number, number][];
22
22
  };
23
23
  export declare enum RoiDirection {
24
24
  Arrived = "arrived",
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@/types";
1
+ import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
2
2
  export type RouterBillPayer = {
3
3
  name: string;
4
4
  };
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
47
47
  Active = "active",
48
48
  Inactive = "inactive"
49
49
  }
50
+ export declare enum RouterScanInputMode {
51
+ Qr = "qr",
52
+ Manual = "manual"
53
+ }
50
54
  export type RouterQueryParams = PaginationParams & {
51
55
  routerType: string;
52
56
  vpnServer: string;
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
65
69
  vpnServer?: string;
66
70
  netbirdUrl?: string;
67
71
  };
72
+ export type RouterQRScanResult = {
73
+ raw: string;
74
+ timestamp: string;
75
+ sn?: string;
76
+ m?: string;
77
+ u?: string;
78
+ pw?: string;
79
+ t?: string;
80
+ s?: string;
81
+ p?: string;
82
+ i?: string;
83
+ b?: string;
84
+ boxId?: string;
85
+ isDuplicate?: boolean;
86
+ };
@@ -1,7 +1,17 @@
1
- import { DateType } from "@/types";
1
+ import { DateType } from "@evercam/api/types";
2
+ export declare enum Operator {
3
+ AND = "and",
4
+ OR = "or"
5
+ }
2
6
  type sortby = string;
3
7
  type sortDirection = "asc" | "desc";
4
8
  export type SortingUrlParam = `${sortby}|${sortDirection}`;
9
+ export type JsonPrimitive = string | number | boolean | null;
10
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
11
+ export type JsonObject = {
12
+ [key: string]: JsonValue;
13
+ };
14
+ export type JsonArray = JsonValue[];
5
15
  export type BatteryReading = {
6
16
  id: number;
7
17
  voltage: number;
@@ -53,7 +63,7 @@ export declare enum UnitSystem {
53
63
  Metric = "metric"
54
64
  }
55
65
  export type Timestamp = string | number;
56
- export type Schedule = {
66
+ export type ScheduleUppercase = {
57
67
  Friday: string[];
58
68
  Monday: string[];
59
69
  Saturday: string[];
@@ -71,6 +81,7 @@ export type ScheduleLowercase = {
71
81
  tuesday: string[];
72
82
  wednesday: string[];
73
83
  };
84
+ export type Schedule = ScheduleUppercase | ScheduleLowercase;
74
85
  export type PaginationParams = {
75
86
  sort?: SortingUrlParam;
76
87
  page?: number;
@@ -108,11 +119,11 @@ export declare enum DownloadFileType {
108
119
  export declare enum FeedbackContext {
109
120
  CopilotMessage = "copilot_message"
110
121
  }
111
- export type FeedbackPayload<T> = {
122
+ export type FeedbackPayload = {
112
123
  id?: number;
113
124
  user: string;
114
125
  text: string;
115
- type: T;
126
+ type: string;
116
127
  context: FeedbackContext;
117
128
  messageId?: number;
118
129
  conversationId?: number;
@@ -126,6 +137,20 @@ export interface JSON {
126
137
  stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
127
138
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
128
139
  }
140
+ export type TuplePoint2D = [number, number];
141
+ export type Point2D = {
142
+ x: number;
143
+ y: number;
144
+ };
145
+ export type Point3D = {
146
+ x: number;
147
+ y: number;
148
+ z: number;
149
+ };
150
+ export type GeoPoint = {
151
+ lat: number;
152
+ lng: number;
153
+ };
129
154
  export type Exid = string;
130
155
  export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
131
156
  export type BatteryVoltage = {
@@ -1,4 +1,4 @@
1
- import type { CameraExid, DateTime, DateType } from "@/types";
1
+ import type { DateType } from "@evercam/api/types";
2
2
  export type ShareRequest = {
3
3
  cameraId: string;
4
4
  createdAt: DateType | number;
@@ -24,19 +24,6 @@ export type Share = {
24
24
  userId: number;
25
25
  isUserAccessRestricted: boolean;
26
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
27
  export type ShareDeletionRequestPayload = {
41
28
  email?: string;
42
29
  key?: string;
@@ -54,143 +41,18 @@ export type ShareCreateRequestPayload = {
54
41
  apiId?: string;
55
42
  apiKey?: string;
56
43
  };
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
44
  export type ShareCreateResponsePayload = {
69
45
  shares: Share[];
70
46
  shareRequests: ShareRequest[];
71
47
  };
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
48
+ export declare enum InviteStatus {
49
+ Pending = 0,
50
+ Cancelled = -1,
51
+ Used = 1,
52
+ Failed = -2
104
53
  }
105
54
  export declare enum ShareVisibility {
106
55
  PublicDiscoverable = "publicDiscoverable",
107
56
  PublicUndiscoverable = "publicUndiscoverable",
108
57
  Private = "private"
109
58
  }
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,4 +1,4 @@
1
- import { DateTime, PaginationParams } from "@/types";
1
+ import { PaginationParams } from "@evercam/api/types";
2
2
  export declare enum SmsCommands {
3
3
  Cellular = "cellular",
4
4
  Gpson = "gpson",
@@ -63,7 +63,7 @@ export type Sim = {
63
63
  puk: string;
64
64
  iccid: string;
65
65
  description: string;
66
- lastSmsAt: DateTime;
66
+ lastSmsAt: string;
67
67
  cameras: {
68
68
  name: string;
69
69
  exid: string;
@@ -79,11 +79,11 @@ export type SendSmsResponse = {
79
79
  errorText: string;
80
80
  };
81
81
  export type SmsHistory = {
82
- insertedAt: DateTime;
82
+ insertedAt: string;
83
83
  type: string;
84
84
  status: string;
85
85
  text: string;
86
- deliveryDatetime: DateTime;
86
+ deliveryDatetime: string;
87
87
  };
88
88
  export type SmsHistoryResponse = {
89
89
  singleSimSms: SmsHistory[];
@@ -98,8 +98,8 @@ export type Sms = {
98
98
  status: string;
99
99
  text: string;
100
100
  type: string;
101
- insertedAt: DateTime;
102
- deliveryDatetime: DateTime;
101
+ insertedAt: string;
102
+ deliveryDatetime: string;
103
103
  };
104
104
  export type SmsQueryParams = PaginationParams & {
105
105
  dateRange: string;