@evercam/api 1.0.0-095233f21 → 1.0.0-0a3924df5

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 (59) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +18 -3
  2. package/dist/api/api/adminApi.d.ts +78 -80
  3. package/dist/api/api/aiApi.d.ts +4 -4
  4. package/dist/api/api/evercamApi.d.ts +17 -26
  5. package/dist/api/api/evercamLabsApi.d.ts +5 -13
  6. package/dist/api/api/exNvrApi.d.ts +1 -1
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +38 -30
  9. package/dist/api/api/reportsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +15 -8
  11. package/dist/api/types/admin.d.ts +37 -3
  12. package/dist/api/types/analytics.d.ts +49 -15
  13. package/dist/api/types/anpr.d.ts +5 -4
  14. package/dist/api/types/apiKey.d.ts +70 -0
  15. package/dist/api/types/auditLogs.d.ts +161 -20
  16. package/dist/api/types/axios.d.ts +1 -0
  17. package/dist/api/types/bim.d.ts +27 -7
  18. package/dist/api/types/camera.d.ts +202 -82
  19. package/dist/api/types/comments.d.ts +56 -24
  20. package/dist/api/types/company.d.ts +11 -5
  21. package/dist/api/types/compare.d.ts +1 -1
  22. package/dist/api/types/detections.d.ts +3 -0
  23. package/dist/api/types/emailMessages.d.ts +27 -0
  24. package/dist/api/types/errors.d.ts +7 -2
  25. package/dist/api/types/gateReport.d.ts +2 -1
  26. package/dist/api/types/hdd.d.ts +1 -1
  27. package/dist/api/types/index.d.ts +3 -1
  28. package/dist/api/types/ingest.d.ts +105 -25
  29. package/dist/api/types/kit.d.ts +56 -68
  30. package/dist/api/types/media.d.ts +25 -3
  31. package/dist/api/types/nvr.d.ts +39 -8
  32. package/dist/api/types/observationEvents.d.ts +26 -0
  33. package/dist/api/types/observations.d.ts +14 -9
  34. package/dist/api/types/posthog.d.ts +36 -0
  35. package/dist/api/types/progressPhoto.d.ts +38 -25
  36. package/dist/api/types/project.d.ts +57 -22
  37. package/dist/api/types/recycleBin.d.ts +8 -2
  38. package/dist/api/types/reports.d.ts +109 -0
  39. package/dist/api/types/router.d.ts +15 -10
  40. package/dist/api/types/shared.d.ts +29 -19
  41. package/dist/api/types/sim.d.ts +18 -6
  42. package/dist/api/types/siteView.d.ts +15 -8
  43. package/dist/api/types/snapshots.d.ts +52 -12
  44. package/dist/api/types/sso.d.ts +11 -37
  45. package/dist/api/types/storageProvider.d.ts +16 -5
  46. package/dist/api/types/user.d.ts +32 -29
  47. package/dist/api/types/widget.d.ts +13 -4
  48. package/dist/index.js +752 -626
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.umd.cjs +1 -1
  51. package/dist/index.umd.cjs.map +1 -1
  52. package/dist/shared/types/components.d.ts +427 -14
  53. package/dist/shared/types/droneUpload.d.ts +93 -0
  54. package/dist/shared/types/index.d.ts +2 -0
  55. package/dist/shared/types/report.d.ts +107 -0
  56. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  57. package/dist/shared/utils/datePresets.d.ts +31 -0
  58. package/package.json +1 -1
  59. package/dist/api/types/copilot.d.ts +0 -159
@@ -1,23 +1,24 @@
1
- import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
2
- export type ProgressPhotosCreateUpdateRequestPayload = {
3
- cameraExids?: string;
4
- notifyDays?: string;
5
- compareDelay?: AutomationType;
6
- notifyTime?: string;
7
- provider?: string;
8
- type?: string;
9
- config?: {
10
- compareDelay?: AutomationType;
11
- period?: number;
12
- recipients?: string;
13
- projectId?: number;
14
- companyId?: number;
15
- catergoryId?: string;
16
- };
17
- subject?: string;
18
- isPaused?: boolean;
19
- timezone?: string;
20
- };
1
+ import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
2
+ export type ProgressPhotosConfig = Partial<{
3
+ compareDelay: number;
4
+ period: number;
5
+ recipients: string;
6
+ projectId: number;
7
+ companyId: number;
8
+ categoryId: string;
9
+ }>;
10
+ export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
11
+ cameraExids: string;
12
+ notifyDays: string;
13
+ compareDelay: number;
14
+ notifyTime: string;
15
+ provider: string;
16
+ type: string;
17
+ config: ProgressPhotosConfig;
18
+ subject: string;
19
+ isPaused: boolean;
20
+ timezone: string;
21
+ }>;
21
22
  export type ProgressPhotosUnSubscribeParams = {
22
23
  email: string;
23
24
  token?: string;
@@ -28,6 +29,15 @@ export type ProgressPhotosResponsePayload = {
28
29
  export type ProgressPhotoItemResponsePayload = {
29
30
  progressPhotos: Automation;
30
31
  };
32
+ export type ProgressPhotoUpdateResponse = {
33
+ id: string;
34
+ cameraIds: string;
35
+ cameraNames: string;
36
+ requesterName: string;
37
+ requesterEmail: string;
38
+ createdAt: string;
39
+ notifyDays: string;
40
+ };
31
41
  export declare enum AutomationDialogType {
32
42
  Create = "create",
33
43
  Edit = "edit",
@@ -39,18 +49,20 @@ export type CameraOption = {
39
49
  };
40
50
  export interface ProgressPhotoItem {
41
51
  id: number;
42
- cameras: CameraOption[] | string[] | string;
52
+ name: string;
53
+ type: string;
54
+ cameras: Array<CameraOption | string> | string;
43
55
  insertedAt: string;
44
56
  provider: string;
45
57
  config: {
46
- recipients: string | string[];
58
+ recipients: string | AutomationEmailRecipient[];
47
59
  sendSnapshotAs: string;
48
60
  };
49
61
  isPaused: boolean;
50
62
  notifyDays: string | string[];
51
63
  notifyTime: string;
52
- api_id: string;
53
- api_key: string;
64
+ apiId: string;
65
+ apiKey: string;
54
66
  timezone: string;
55
67
  exid: string;
56
68
  fullname: string;
@@ -62,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
62
74
  timezone: string;
63
75
  cameras: string;
64
76
  };
65
- export type progressPhotosHistoryQueryParams = {
77
+ export type progressPhotosHistoryQueryParams = PaginationParams & {
66
78
  insertedAt: DateType[];
67
79
  recipients: string;
68
80
  subject: string;
@@ -75,4 +87,5 @@ export type ProgressPhotosHistory = {
75
87
  failedCameraIds: string;
76
88
  subject: string;
77
89
  recipients: string;
90
+ insertedAt: string;
78
91
  };
@@ -1,4 +1,4 @@
1
- import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, GeoJSONPolygon, Operator, PaginationParams, ProjectUserWithRole, RoleSubRole } from "@evercam/api/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
@@ -10,7 +10,7 @@ export type Project = {
10
10
  endDate: string;
11
11
  exid: ProjectExid;
12
12
  featureFlags: Array<ProjectFeatureFlag>;
13
- geographicBounds?: unknown;
13
+ geographicBounds?: GeoJSONPolygon | null;
14
14
  id: string | number;
15
15
  insertedAt?: string;
16
16
  name: string;
@@ -20,6 +20,7 @@ export type Project = {
20
20
  ownerEmail?: string;
21
21
  ownerName?: string;
22
22
  startedAt?: string;
23
+ startDate?: string | null;
23
24
  status?: ProjectStatus;
24
25
  timezone?: string;
25
26
  unrestrictedCameras?: Camera[];
@@ -40,7 +41,7 @@ export type AdminProjectListItem = {
40
41
  endDate: string | null;
41
42
  startDate: string | null;
42
43
  archiveTier: ProjectArchiveTier | null;
43
- featureFlags: Array<ProjectFeatureFlag | string>;
44
+ featureFlags: Array<ProjectFeatureFlag>;
44
45
  zohoId: string | null;
45
46
  ownerEmail: string | null;
46
47
  companyId: number | null;
@@ -48,6 +49,7 @@ export type AdminProjectListItem = {
48
49
  ownerName: string | null;
49
50
  archived: boolean;
50
51
  cameras?: AdminProjectCameraRef[];
52
+ geographicBounds: GeoJSONPolygon | null;
51
53
  };
52
54
  export type AdminProjectDetail = AdminProjectListItem & {
53
55
  userId: number;
@@ -96,10 +98,10 @@ export declare enum ProjectFeatureFlag {
96
98
  MediaHubSharing = "archives_sharing",
97
99
  GateReportAnprBased = "anpr_sourced",
98
100
  NoLicensePlate = "no_license_plate",
99
- DefaultToProjectApp = "default_to_project_app",
100
101
  SmartSearch = "smart_search",
101
102
  PpeMonitoring = "ppe_monitoring",
102
- NoGdpr = "no_gdpr"
103
+ NoGdpr = "no_gdpr",
104
+ Chat = "chat"
103
105
  }
104
106
  export type ProjectBatteryReading = {
105
107
  exid: number;
@@ -126,18 +128,30 @@ export type ProjectCreateRequestPayload = {
126
128
  ownerId: number;
127
129
  cameras: string[];
128
130
  };
129
- export type ProjectCreateResponse = {
130
- name: string;
131
+ export type CreatedProject = {
132
+ id: number;
131
133
  exid: string;
134
+ name: string;
135
+ userId: number;
136
+ zohoId: string | null;
137
+ geographicBounds: GeoJSONPolygon | null;
138
+ };
139
+ export type ProjectCreateResponse = Record<"project", CreatedProject>;
140
+ export type TransferOwnershipProject = {
132
141
  id: number;
142
+ exid: string;
143
+ name: string;
133
144
  userId: number;
134
- zohoId: string;
145
+ zohoId: string | null;
146
+ status: ProjectStatus;
135
147
  };
148
+ export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
136
149
  export type ProjectUpdateRequestPayload = {
137
150
  name: string;
138
151
  timezone: string;
139
152
  featureFlags: ProjectFeatureFlag[];
140
153
  cameras: string[];
154
+ geographicBounds: GeoJSONPolygon | null;
141
155
  };
142
156
  export type ProjectStatusStats = {
143
157
  nil: number;
@@ -159,12 +173,17 @@ export type ProjectUserProperty = {
159
173
  lastSeenAt: string;
160
174
  persona: string;
161
175
  };
162
- export type ProjectUsers = {
163
- cameras: {
164
- exid: string;
165
- name: string;
166
- }[];
167
- users: Record<string, ProjectUserProperty[]>;
176
+ export type AdminProjectInvite = {
177
+ id: number;
178
+ email: string;
179
+ role: ProjectRole;
180
+ permissions: string[];
181
+ subRoles: RoleSubRole[];
182
+ };
183
+ export type AdminProjectUsersResponsePayload = {
184
+ users: ProjectUserWithRole[];
185
+ invites: AdminProjectInvite[];
186
+ errors: ProjectUserError[];
168
187
  };
169
188
  export type ProjectRole = {
170
189
  id: number;
@@ -187,7 +206,7 @@ export type ProjectMember = {
187
206
  } | null;
188
207
  };
189
208
  export type ProjectInvite = {
190
- id?: string;
209
+ id: number;
191
210
  email: string;
192
211
  role?: ProjectRole;
193
212
  permissions?: string[];
@@ -238,17 +257,33 @@ export type MentionableUser = {
238
257
  export type ProjectStorageQueryParams = PaginationParams & {
239
258
  cameraName: string;
240
259
  cameraExid: CameraExid;
260
+ projectName: string;
261
+ projectExid: string;
262
+ archiveTier: ProjectArchiveTier;
241
263
  status: ProjectStorageStatus;
264
+ requester: string;
265
+ createdAtFrom: string;
266
+ createdAtTo: string;
267
+ scheduleAtFrom: string;
268
+ scheduleAtTo: string;
269
+ };
270
+ export type ProjectStorageCamera = {
271
+ archiveId: number;
272
+ name: string;
273
+ exid: CameraExid;
274
+ status: ProjectStorageStatus;
275
+ errorMessage: string | null;
242
276
  };
243
277
  export type ProjectStorage = {
244
278
  id: number;
245
- cameraExid: CameraExid;
246
- cameraName: string;
247
- projectExid: string;
248
- projectName: string;
249
- status: ProjectStorageStatus;
250
- requestor: string;
251
- created_at: DateType;
279
+ exid: string;
280
+ name: string;
281
+ archiveTier: ProjectArchiveTier | null;
282
+ endDate: string | null;
283
+ requester: string | null;
284
+ scheduleAt: string | null;
285
+ insertedAt: DateType;
286
+ cameras: ProjectStorageCamera[];
252
287
  };
253
288
  export declare enum ProjectStorageStatus {
254
289
  New = "new",
@@ -1,13 +1,19 @@
1
1
  import type { DateType, PaginationParams } from "@evercam/api/types";
2
+ export declare enum RecycleBinItemType {
3
+ Camera = "camera",
4
+ Project = "project",
5
+ Kit = "kit"
6
+ }
2
7
  export type RecycleBin = {
3
- id?: number;
8
+ id: number;
4
9
  exid: string;
5
10
  name: string;
6
- type: string;
11
+ type: RecycleBinItemType;
7
12
  deletedBy: string;
8
13
  deletedAt: DateType;
9
14
  };
10
15
  export type RecycleBinQueryParams = PaginationParams & {
16
+ exid: string;
11
17
  name: string;
12
18
  type: string;
13
19
  deletedBy: string;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * The Evercam Reports engine (evercam-agent-kit), as the admin app sees it.
3
+ *
4
+ * These mirror `evercam_reports/api/schemas.py`. The engine speaks camelCase over
5
+ * the wire, so the admin client reads it with `preserveCasing: true` and these are
6
+ * the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
7
+ * own workflow types live in `packages/agent`, unreachable here.
8
+ */
9
+ /** What kind of conversation this is. Chat only ever opens `chat`. */
10
+ export declare enum ChatMode {
11
+ Report = "report",
12
+ Chat = "chat"
13
+ }
14
+ /** Whose conversations a list covers. Only an admin is ever given `all`. */
15
+ export declare enum ChatScope {
16
+ Mine = "mine",
17
+ Account = "account",
18
+ All = "all"
19
+ }
20
+ /** A flat token tally, as the engine reports it. */
21
+ export type ChatUsage = {
22
+ inputTokens?: number;
23
+ outputTokens?: number;
24
+ cacheCreationInputTokens?: number;
25
+ cacheReadInputTokens?: number;
26
+ };
27
+ /** One recorded tool step in a turn's trace, compacted by the engine. */
28
+ export type ChatTraceStep = {
29
+ step?: number | null;
30
+ tool?: string | null;
31
+ result?: string | null;
32
+ durationMs?: number | null;
33
+ usage?: ChatUsage | null;
34
+ args?: unknown;
35
+ };
36
+ /** One stored turn, as the engine returns it inside a conversation. */
37
+ export type ChatTurn = {
38
+ id: string;
39
+ userText?: string | null;
40
+ assistantText?: string | null;
41
+ thinkingSummary?: string | null;
42
+ artifact?: unknown;
43
+ /** The agent's tool steps for this answer. Absent on turns stored before traces. */
44
+ trace?: ChatTraceStep[] | null;
45
+ /** This turn's own token usage. */
46
+ usage?: ChatUsage | null;
47
+ runId?: string | null;
48
+ at?: string | null;
49
+ };
50
+ /** A conversation in full, with its transcript, cost ledger and per-turn traces. */
51
+ export type ChatSession = {
52
+ id: string;
53
+ environment: string;
54
+ mode: string;
55
+ title: string | null;
56
+ projectExid: string | null;
57
+ projectName: string | null;
58
+ cameraExids: string[] | null;
59
+ turns: ChatTurn[];
60
+ savedReportId: string | null;
61
+ createdBy: string | null;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ usage?: ChatUsage | null;
65
+ usageByModel?: Record<string, ChatUsage> | null;
66
+ model?: string | null;
67
+ /** Money as a string, or `null` (never `0`) when the conversation is unpriced. */
68
+ costUsd?: string | null;
69
+ priceBasis?: Record<string, unknown> | null;
70
+ };
71
+ /** One conversation as a list row — metadata and cost, without the transcript. */
72
+ export type ChatSummary = {
73
+ id: string;
74
+ environment: string;
75
+ mode: string;
76
+ title: string | null;
77
+ projectExid: string | null;
78
+ projectName: string | null;
79
+ cameraExids: string[] | null;
80
+ createdBy: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ turnCount: number;
84
+ usage?: ChatUsage | null;
85
+ model?: string | null;
86
+ costUsd?: string | null;
87
+ };
88
+ /** A page of conversations for the admin viewer. */
89
+ export type ChatListPage = {
90
+ chats: ChatSummary[];
91
+ total: number;
92
+ /** The scope the engine actually applied. */
93
+ scope: ChatScope;
94
+ };
95
+ /** Query params the admin conversations list accepts. */
96
+ export type ChatListParams = {
97
+ scope?: ChatScope;
98
+ mode?: ChatMode;
99
+ projectExid?: string;
100
+ createdBy?: string;
101
+ excludeEvercam?: boolean;
102
+ q?: string;
103
+ from?: string;
104
+ to?: string;
105
+ sort?: string;
106
+ direction?: "asc" | "desc";
107
+ offset?: number;
108
+ limit?: number;
109
+ };
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
1
+ import { PaginationParams, SimSummary } from "@evercam/api/types";
2
2
  export type RouterBillPayer = {
3
3
  name: string;
4
4
  };
@@ -7,30 +7,31 @@ export type SimProvider = {
7
7
  };
8
8
  export type Router = {
9
9
  id?: number;
10
- kitId: number | null;
10
+ kitSerial?: string;
11
+ kitName?: string;
12
+ rmsId?: number | null;
11
13
  routerType: string;
12
14
  routerUserId: string;
13
15
  routerPassword: string;
14
16
  serialNumber: number | null;
15
17
  rmsUrl?: string;
16
- externalHost?: string;
17
18
  routerHttpPort: number | null;
18
19
  vpnPassword: string;
19
20
  vpnUserId: string;
20
21
  vpnServer: string;
21
- netbirdUrl: string;
22
+ netbirdUrl?: string;
22
23
  status: RouterStatus;
23
24
  powerType: PowerType;
24
- powerSchedule: string;
25
- battery?: {
25
+ powerSchedule: PowerSchedule;
26
+ battery: {
26
27
  lastVoltage: number;
27
28
  lastSeen: string;
28
- };
29
- sims: Array<Pick<Sim, "id" | "number">>;
29
+ } | null;
30
+ sims: SimSummary[];
30
31
  billPayers?: Array<RouterBillPayer>;
31
32
  simProviders?: Array<SimProvider>;
32
- projects?: Pick<Project, "exid" | "id" | "name">[];
33
- cameras?: Pick<Camera, "id" | "name">[];
33
+ lastSms?: string;
34
+ lastSmsAt?: string;
34
35
  };
35
36
  export declare enum PowerType {
36
37
  Mains = "mains",
@@ -66,9 +67,13 @@ export type RouterCreatePayload = {
66
67
  routerHttpPort: number;
67
68
  powerType: PowerType;
68
69
  powerSchedule: PowerSchedule;
70
+ status: RouterStatus;
69
71
  vpnServer?: string;
70
72
  netbirdUrl?: string;
71
73
  };
74
+ export type RouterUpdatePayload = Partial<RouterCreatePayload> & {
75
+ kitId?: number | null;
76
+ };
72
77
  export type RouterQRScanResult = {
73
78
  raw: string;
74
79
  timestamp: string;
@@ -109,25 +109,27 @@ export declare enum InfoPage {
109
109
  DroneView = "drone-view",
110
110
  Compare = "compare",
111
111
  Timeline = "timeline",
112
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
113
114
  }
114
115
  export declare enum DownloadFileType {
115
116
  Jpeg = "jpeg",
116
117
  Pdf = "pdf",
117
118
  Csv = "csv"
118
119
  }
119
- export declare enum FeedbackContext {
120
- CopilotMessage = "copilot_message"
120
+ export declare enum PromiseSettledStatus {
121
+ Fulfilled = "fulfilled",
122
+ Rejected = "rejected"
123
+ }
124
+ export type Stringified<T> = string & {
125
+ [P in keyof T]: {
126
+ "_ value": T[P];
127
+ };
128
+ };
129
+ export interface JSON {
130
+ stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
131
+ parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
121
132
  }
122
- export type FeedbackPayload = {
123
- id?: number;
124
- user: string;
125
- text: string;
126
- type: string;
127
- context: FeedbackContext;
128
- messageId?: number;
129
- conversationId?: number;
130
- };
131
133
  export type TuplePoint2D = [number, number];
132
134
  export type TuplePoint3D = [number, number, number];
133
135
  export type Point2D = {
@@ -144,17 +146,25 @@ export type GeoPoint = {
144
146
  lng: number;
145
147
  };
146
148
  export type Exid = string;
147
- export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
149
+ export type EntityByExid<Entity> = Record<Exid, Entity>;
148
150
  export type BatteryVoltage = {
149
151
  date: DateType;
150
- max_value: number;
151
- min_value: number;
152
- };
152
+ maxValue: number;
153
+ minValue: number;
154
+ };
155
+ export declare enum GlobalSearchResource {
156
+ Projects = "projects",
157
+ Users = "users",
158
+ Cameras = "cameras",
159
+ Companies = "companies",
160
+ Sims = "sims",
161
+ Routers = "routers"
162
+ }
153
163
  export type GlobalSearchQueryParams = PaginationParams & {
154
- resource: "projects" | "users" | "cameras" | "companies" | "sims" | "routers";
164
+ resource: GlobalSearchResource;
155
165
  term: string;
156
- email: string;
157
- featureFlag: string;
166
+ email?: string;
167
+ featureFlag?: string;
158
168
  };
159
169
  export type TimelineDateInterval = {
160
170
  fromDate: string;
@@ -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,5 +1,6 @@
1
1
  import { ForgeView } from "@evercam/api/types/360";
2
2
  import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ import { DroneProvider } from "@evercam/api/types/drone";
3
4
  export declare enum SiteViewSoftwareType {
4
5
  Revit = "Revit",
5
6
  Navisworks = "Navisworks",
@@ -17,12 +18,15 @@ export type SiteViewCameraListItem = {
17
18
  software: SiteViewSoftwareType;
18
19
  type: SiteViewerType;
19
20
  uniqueId: string;
20
- integrationType?: string;
21
+ integrationType?: DroneProvider;
21
22
  };
22
23
  export type ForgeUrn = {
24
+ id?: string;
23
25
  displayName: string;
24
26
  urn: string;
25
27
  isModelHostedByEvercamACC?: boolean;
28
+ is4D?: boolean;
29
+ savedViews?: Record<string, ForgeView>;
26
30
  };
27
31
  export type ForgeAccAlignmentData = {
28
32
  bbox: {
@@ -30,6 +34,11 @@ export type ForgeAccAlignmentData = {
30
34
  max: Point2D;
31
35
  };
32
36
  transform: number[];
37
+ coordinateSystem?: {
38
+ context?: {
39
+ type?: string;
40
+ };
41
+ } | null;
33
42
  };
34
43
  export type TimelineItem = {
35
44
  taskNumber: number;
@@ -41,22 +50,20 @@ export type TimelineItem = {
41
50
  objectIDs: number[];
42
51
  };
43
52
  export type ForgeMarkerTransform = {
44
- default: {
45
- position: Point3D;
46
- type: string;
47
- };
53
+ position?: Point3D;
54
+ hidden?: boolean;
48
55
  };
49
56
  export type ForgeMarker = {
50
57
  name: string;
51
58
  cameraExid: string;
52
- transforms: ForgeMarkerTransform;
59
+ type: string;
60
+ transforms: Record<string, ForgeMarkerTransform>;
53
61
  };
54
62
  export type ForgeProjectData = {
55
63
  urns?: ForgeUrn[];
56
64
  accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
57
65
  timeline?: TimelineItem[];
58
- savedView?: ForgeView;
59
- markers?: ForgeMarker[];
66
+ cameraMarkers?: Record<string, ForgeMarker>;
60
67
  };
61
68
  export type ItwinModel = {
62
69
  name: string;