@evercam/api 1.0.0-3b6f67124 → 1.0.0-3c7f69373

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 (63) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +63 -24
  2. package/dist/api/api/adminApi.d.ts +10 -9
  3. package/dist/api/api/aiApi.d.ts +95 -3
  4. package/dist/api/api/authzApi.d.ts +4 -1
  5. package/dist/api/api/evercamApi.d.ts +32 -13
  6. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +20 -8
  9. package/dist/api/api/workflowsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +125 -42
  11. package/dist/api/types/aiConfigs.d.ts +102 -12
  12. package/dist/api/types/analytics.d.ts +26 -24
  13. package/dist/api/types/auditLogs.d.ts +0 -1
  14. package/dist/api/types/authz.d.ts +71 -0
  15. package/dist/api/types/automation.d.ts +32 -4
  16. package/dist/api/types/axios.d.ts +9 -8
  17. package/dist/api/types/bim.d.ts +11 -5
  18. package/dist/api/types/camera.d.ts +28 -22
  19. package/dist/api/types/comments.d.ts +9 -2
  20. package/dist/api/types/company.d.ts +1 -2
  21. package/dist/api/types/connector.d.ts +2 -0
  22. package/dist/api/types/detections.d.ts +1 -0
  23. package/dist/api/types/drone.d.ts +1 -2
  24. package/dist/api/types/errors.d.ts +13 -1
  25. package/dist/api/types/gateReport.d.ts +0 -11
  26. package/dist/api/types/gateReportManagement.d.ts +2 -7
  27. package/dist/api/types/hammertech.d.ts +98 -0
  28. package/dist/api/types/index.d.ts +6 -2
  29. package/dist/api/types/ingest.d.ts +88 -1
  30. package/dist/api/types/kit.d.ts +43 -51
  31. package/dist/api/types/media.d.ts +7 -2
  32. package/dist/api/types/notification.d.ts +52 -2
  33. package/dist/api/types/observationEvents.d.ts +141 -0
  34. package/dist/api/types/observations.d.ts +84 -0
  35. package/dist/api/types/planner.d.ts +1 -8
  36. package/dist/api/types/posthog.d.ts +20 -0
  37. package/dist/api/types/project.d.ts +14 -2
  38. package/dist/api/types/recording.d.ts +5 -5
  39. package/dist/api/types/ring.d.ts +16 -16
  40. package/dist/api/types/roi.d.ts +2 -10
  41. package/dist/api/types/routeParams.d.ts +1 -0
  42. package/dist/api/types/shared.d.ts +2 -23
  43. package/dist/api/types/shares.d.ts +0 -13
  44. package/dist/api/types/siteAnalytics.d.ts +1 -3
  45. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  46. package/dist/api/types/siteView.d.ts +6 -1
  47. package/dist/api/types/socket.d.ts +4 -0
  48. package/dist/api/types/storyblok.d.ts +0 -13
  49. package/dist/api/types/timelapse.d.ts +1 -8
  50. package/dist/api/types/user.d.ts +16 -3
  51. package/dist/api/types/workflows.d.ts +108 -0
  52. package/dist/api/utils.d.ts +1 -0
  53. package/dist/index.js +1372 -803
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.umd.cjs +1 -1
  56. package/dist/index.umd.cjs.map +1 -1
  57. package/dist/shared/types/components.d.ts +221 -33
  58. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  59. package/dist/shared/types/index.d.ts +2 -0
  60. package/dist/shared/types/observations.d.ts +25 -0
  61. package/package.json +3 -1
  62. package/dist/api/types/copilot.d.ts +0 -162
  63. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,12 +1,26 @@
1
- import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
2
- import type { IngestUploadInitResponse } from "@evercam/api/types";
1
+ import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, type HammertechProject, type HammertechIssueType, type HammertechPriority, type HammertechClassification, type HammertechFileFieldValue, Tag, TuplePoint2D, CameraStatus } from "@evercam/shared/types";
2
+ import type { _360AssetType, AdminCamera, Camera, IngestUploadInitResponse } from "@evercam/api/types";
3
3
  import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
4
4
  import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
5
5
  import { SeriesOptionsType } from "highcharts";
6
+ export type ReorderableCamera = Camera & {
7
+ thumbnailSrc?: string;
8
+ batteryLevel?: {
9
+ voltage: number;
10
+ level: string;
11
+ icon: string;
12
+ color: string;
13
+ } | null;
14
+ };
6
15
  export type SelectItem = {
7
16
  text: string;
8
17
  value: string | number;
9
18
  };
19
+ export type RoiProjectGroup = {
20
+ exid: string;
21
+ name: string;
22
+ cameras: AdminCamera[];
23
+ };
10
24
  export declare enum IframeMessageType {
11
25
  LiveView = "liveView",
12
26
  EditSnapshot = "editSnapshot",
@@ -37,8 +51,130 @@ export declare enum IframeMessageType {
37
51
  ForgeTokenResponse = "ForgeTokenResponse",
38
52
  ShowBimUploadChoice = "showBimUploadChoice",
39
53
  ViewerLaunchFlags = "viewerLaunchFlags",
40
- CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
54
+ Fetch360DrawingIds = "fetch360DrawingIds",
55
+ DrawingIdsResponse = "drawingIdsResponse",
56
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview",
57
+ ChatInit = "chatInit",
58
+ ChatToken = "chatToken",
59
+ ChatContext = "chatContext",
60
+ ChatTheme = "chatTheme",
61
+ ChatNavigate = "chatNavigate",
62
+ ChatConversations = "chatConversations",
63
+ ChatOpenConversation = "chatOpenConversation",
64
+ ChatNewConversation = "chatNewConversation",
65
+ ChatRenameConversation = "chatRenameConversation",
66
+ ChatDeleteConversation = "chatDeleteConversation",
67
+ ChatOpenWalkMarker = "chatOpenWalkMarker",
68
+ ProjectMembers = "projectMembers",
69
+ FocusComment = "focusComment"
41
70
  }
71
+ export declare enum ChatTheme {
72
+ Dark = "dark",
73
+ Light = "light"
74
+ }
75
+ export type ChatUser = {
76
+ email: string;
77
+ name: string;
78
+ };
79
+ /**
80
+ * The dashboard's answer to the frame's `Ready`.
81
+ *
82
+ * The token travels here and nowhere else — never in the iframe URL, which
83
+ * would land it in history, referrers and logs.
84
+ */
85
+ export type ChatInitPayload = {
86
+ token: string;
87
+ user: ChatUser;
88
+ theme: ChatTheme;
89
+ timezone: string;
90
+ };
91
+ /** Pushed on rotation. A frame holding a mount-time token 401s the moment it changes. */
92
+ export type ChatTokenPayload = {
93
+ token: string;
94
+ };
95
+ /** Pushed on every dashboard route change. */
96
+ export type ChatContextPayload = {
97
+ pageId: string;
98
+ projectExid: string | null;
99
+ projectName: string | null;
100
+ cameraExid: string | null;
101
+ timezone: string;
102
+ /**
103
+ * A conversation to open, from `?chat=` on the dashboard's URL.
104
+ *
105
+ * Deep-linking lives in the *context* rather than in a message of its own
106
+ * because it is exactly that — a fact about where the host currently is, sent
107
+ * on every route change alongside the project and page. `null` means "no
108
+ * opinion", which is what every other page sends.
109
+ */
110
+ chatId: string | null;
111
+ };
112
+ export type ChatThemePayload = {
113
+ theme: ChatTheme;
114
+ };
115
+ /**
116
+ * A page id plus params, never a route string — the dashboard owns the
117
+ * id → route mapping.
118
+ */
119
+ export type ChatNavigatePayload = {
120
+ pageId: string;
121
+ params: Record<string, string>;
122
+ };
123
+ /**
124
+ * Open a 360-walk marker in the 360 viewer, facing one view.
125
+ *
126
+ * Sent by Chat when a `WalkView` in an answer is clicked. The dashboard opens the
127
+ * 360 app in its own dialog (`Walk360Preview`), outside the chat frame, so the
128
+ * viewer gets the whole screen. `walkName` and `walkDate` are how the 360 app
129
+ * knows a walk (its `floor` and `date` URL params); `camera` is the viewer's own
130
+ * azimuth/polar angles for that view, or null to open at the marker's default.
131
+ */
132
+ export type ChatOpenWalkMarkerPayload = {
133
+ projectExid: string;
134
+ walkId: string;
135
+ walkName: string;
136
+ walkDate: string;
137
+ markerId: string;
138
+ view: string;
139
+ camera: {
140
+ azimuthAngle: number;
141
+ polarAngle: number;
142
+ } | null;
143
+ };
144
+ /**
145
+ * One conversation, as the dashboard's sidebar needs it.
146
+ *
147
+ * A deliberate projection of the engine's `ChatSession` — a label and a
148
+ * timestamp, nothing else. The transcript stays in the frame: mirroring `turns`
149
+ * would put every message of every conversation on the bridge each time the list
150
+ * changed, to render a row that shows neither.
151
+ */
152
+ export type ChatSessionSummary = {
153
+ id: string;
154
+ title: string | null;
155
+ updatedAt: string;
156
+ };
157
+ /**
158
+ * The frame's conversation list, mirrored up for the left sidebar to draw.
159
+ *
160
+ * The frame stays the single owner of this data — it holds the engine client and
161
+ * the bearer. The host renders and sends intent back; it never fetches.
162
+ */
163
+ export type ChatConversationsPayload = {
164
+ sessions: ChatSessionSummary[];
165
+ openId: string | null;
166
+ isLoading: boolean;
167
+ };
168
+ export type ChatOpenConversationPayload = {
169
+ id: string;
170
+ };
171
+ export type ChatRenameConversationPayload = {
172
+ id: string;
173
+ title: string;
174
+ };
175
+ export type ChatDeleteConversationPayload = {
176
+ id: string;
177
+ };
42
178
  export declare enum NavigationArrow {
43
179
  Previous = "previous",
44
180
  Next = "next"
@@ -54,24 +190,6 @@ export declare enum PlayerMode {
54
190
  Video = "video",
55
191
  Jpegs = "jpegs"
56
192
  }
57
- export type TasksStatusMap = {
58
- [key: string]: TaskStatus;
59
- };
60
- export type TaskProgressItem = {
61
- status: TaskStatus;
62
- description: string;
63
- percentDone?: number;
64
- duration?: number;
65
- };
66
- export type GlobalSearchMatch = {
67
- path: Array<string>;
68
- value: string | number | boolean;
69
- };
70
- export type GlobalSearchResult = {
71
- index: number;
72
- matches: Array<GlobalSearchMatch>;
73
- };
74
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
75
193
  export type TimelineProviderRequestParams = TimelineDateInterval & {
76
194
  precision?: TimelinePrecision;
77
195
  labels?: string[];
@@ -182,12 +300,14 @@ export type TagSelectorItem = Tag & {
182
300
  };
183
301
  export declare enum FormSchemaComponents {
184
302
  SelectField = "SelectField",
303
+ HierarchicalSelect = "HierarchicalSelectField",
185
304
  MultiOption = "MultiOption",
186
305
  TextField = "TextField",
187
306
  SwitchField = "SwitchField",
188
307
  CheckBox = "CheckBoxField",
189
308
  Date = "DatePickerInput",
190
309
  DateTime = "DateTimeField",
310
+ Time = "TimeField",
191
311
  TextArea = "Textarea",
192
312
  Search = "Autocomplete",
193
313
  ReadOnly = "ReadOnly",
@@ -202,6 +322,7 @@ export declare enum FormSchemaDataType {
202
322
  export type FormSchemaOptions = {
203
323
  title: string;
204
324
  value: string;
325
+ parentId?: string | null;
205
326
  };
206
327
  export type FormSchemaField = {
207
328
  id: string;
@@ -243,24 +364,25 @@ export type SnapshotCardItem = {
243
364
  placeholderThumbnailUrl?: string;
244
365
  fallbackThumbnailUrl?: string;
245
366
  };
246
- export type DocumentExtended = Document & {
247
- webkitIsFullScreen?: boolean;
248
- mozFullScreen?: boolean;
249
- msFullscreenElement?: Element | null;
250
- fullscreenElement?: Element;
251
- webkitFullscreenElement?: Element;
252
- mozFullScreenElement?: Element;
253
- };
254
367
  export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
255
368
  data: T[];
256
369
  };
370
+ export type NotificationTitleSegment = {
371
+ text: string;
372
+ isBold?: boolean;
373
+ };
257
374
  export type FormattedNotificationData = {
258
375
  title: string;
376
+ titleSegments?: NotificationTitleSegment[];
259
377
  link: string;
260
378
  thumbnail?: string;
261
- icon?: string;
262
- drone?: boolean;
263
- is360?: boolean;
379
+ icon: string;
380
+ excerpt?: string;
381
+ commentTarget?: {
382
+ commentId: number;
383
+ dateId: string | number;
384
+ floorId: string;
385
+ };
264
386
  };
265
387
  export type FormattedNotification = FormattedNotificationData & {
266
388
  date: string;
@@ -289,6 +411,20 @@ export type AutodeskUploadFormData = {
289
411
  project: AutodeskProject | null;
290
412
  folder: AutodeskFolder | null;
291
413
  };
414
+ export type HammertechUploadFormData = {
415
+ project: HammertechProject | null;
416
+ issueType: HammertechIssueType | null;
417
+ description: string;
418
+ priority: HammertechPriority | null;
419
+ dueDate: string | null;
420
+ classification: HammertechClassification | null;
421
+ locationId: string | null;
422
+ isPositiveObservation: boolean;
423
+ isPhotoForFixRequired: boolean;
424
+ customFieldFormId: string | null;
425
+ customFieldValues: Record<string, unknown>;
426
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
427
+ };
292
428
  export interface MediaHubFilters {
293
429
  title: string;
294
430
  requesterEmail: string | undefined;
@@ -305,7 +441,6 @@ export interface MediaHubSortParameter {
305
441
  export type TableHeaderParams<TItem = unknown> = {
306
442
  value: string;
307
443
  text: string;
308
- cellClass?: string;
309
444
  align?: string;
310
445
  sortable?: boolean;
311
446
  visible?: boolean;
@@ -322,3 +457,56 @@ export type BimUploadFileResult = {
322
457
  title: string;
323
458
  fileExtension: string;
324
459
  };
460
+ export type CameraCardItem = {
461
+ thumbnail: string;
462
+ title: string;
463
+ exid: string;
464
+ status: CameraStatus;
465
+ disabled: boolean;
466
+ to: string;
467
+ isOffline: boolean;
468
+ isWaiting: boolean;
469
+ isUnderNda: boolean;
470
+ isAdmin: boolean;
471
+ batteryVoltage: number | null;
472
+ };
473
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
474
+ export interface ThreeSixtyWalk {
475
+ id: string;
476
+ name: string;
477
+ date: string;
478
+ monthKey: string;
479
+ color: string;
480
+ dateId: string;
481
+ floorId: string;
482
+ commentCount: number;
483
+ hasBim: boolean;
484
+ hasMinimodel: boolean;
485
+ }
486
+ export interface ThreeSixtyWalkGroup {
487
+ date: string;
488
+ walks: ThreeSixtyWalk[];
489
+ }
490
+ export type ThreeSixtyMediaDownloadOption = {
491
+ type: _360AssetType;
492
+ title: string;
493
+ icon: string;
494
+ };
495
+ export type DrawingSelection = {
496
+ pageNumber: number;
497
+ size: number;
498
+ thumbnail: string | null;
499
+ pageCount: number;
500
+ };
501
+ export type CommentCardComment = {
502
+ id?: number | string;
503
+ content?: string;
504
+ createdAt?: string;
505
+ archivedAt?: string;
506
+ creatorName?: string;
507
+ label?: string;
508
+ timestamp?: string;
509
+ cameraExid?: string;
510
+ position3d?: number[];
511
+ canDelete?: boolean;
512
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum CustomDataTableFilterType {
2
+ Select = "SelectSearchFilter",
3
+ Text = "TextFieldSearchFilter"
4
+ }
5
+ export interface CustomDataTableFilterField<T = unknown> {
6
+ component: CustomDataTableFilterType;
7
+ attributes?: Record<string, unknown>;
8
+ customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
9
+ }
10
+ export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
@@ -1,5 +1,7 @@
1
1
  export * from "@evercam/api/types";
2
2
  export * from "./components";
3
+ export * from "./customDataTableFilters";
3
4
  export * from "./imagePlayer";
4
5
  export * from "./timeline";
5
6
  export * from "./rbac";
7
+ export * from "./observations";
@@ -0,0 +1,25 @@
1
+ export type ObservationsTableHeader = {
2
+ isThumbnail?: boolean;
3
+ visible: boolean;
4
+ divider: boolean;
5
+ sortable: boolean;
6
+ text: string;
7
+ value: string;
8
+ class: string;
9
+ align: string;
10
+ };
11
+ export type ObservationsCountDay = {
12
+ day: string;
13
+ };
14
+ export type ObservationsTableOptionsUpdate = {
15
+ page: number;
16
+ sortBy: string[];
17
+ sortDesc: boolean[];
18
+ };
19
+ export type ObservationsEventsTableState = {
20
+ height: number | string;
21
+ };
22
+ export type ObservationTypeOption = {
23
+ value: string;
24
+ label: string;
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-3b6f67124",
3
+ "version": "1.0.0-3c7f69373",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,6 +28,8 @@
28
28
  },
29
29
  "readme": "README.md",
30
30
  "scripts": {
31
+ "preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
32
+ "bootstrap": "node ../shared/ci-scripts/bootstrap.js",
31
33
  "clean": "rimraf dist",
32
34
  "typecheck": "tsc --noEmit",
33
35
  "build:types": "tsc --declaration --emitDeclarationOnly",
@@ -1,162 +0,0 @@
1
- import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@evercam/api/types";
2
- export declare enum CopilotMessageAuthor {
3
- Copilot = "copilot",
4
- User = "user",
5
- System = "system"
6
- }
7
- export declare enum CopilotMessageType {
8
- Text = "text",
9
- Progress = "progress",
10
- Error = "error",
11
- Json = "json"
12
- }
13
- export type CopilotMessage = {
14
- content: string;
15
- url?: string;
16
- type: CopilotMessageType;
17
- id?: number;
18
- conversationId?: number;
19
- };
20
- export declare enum CopilotStepId {
21
- SendToLLM = "send_to_llm",
22
- FunctionCallRequest = "function_call_request",
23
- ExecFunctionCall = "exec_function_call",
24
- SendToUser = "send_to_user",
25
- RequestMissingFields = "request_missing_fields",
26
- CompletedFieldsResponse = "completed_fields_response",
27
- SendRawToolCallResponse = "send_raw_tool_call_response",
28
- SubmitToolOutputsToLLM = "submit_tool_outputs_to_llm",
29
- CancelCall = "cancel_call",
30
- RequestAgentCall = "request_agent_call",
31
- ExecAgentCall = "exec_agent_call"
32
- }
33
- export declare enum CopilotMissingFieldsLabels {
34
- ProjectExid = "Project",
35
- CameraExid = "Camera",
36
- FromDate = "Start date",
37
- ToDate = "End date"
38
- }
39
- export type CopilotMissingField<T = unknown> = {
40
- name: string;
41
- label: string;
42
- value: unknown;
43
- type: string;
44
- toolId: string;
45
- error?: T;
46
- };
47
- export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
48
- export type UserConversations = CopilotConversation & {
49
- Message: CopilotMessage[];
50
- };
51
- export declare enum CopilotSocketEvent {
52
- ConversationStart = "conversation:start",
53
- ConversationCreated = "conversation:created",
54
- LLMMessageChunk = "llm:message:chunk",
55
- LLMMessageComplete = "llm:message:complete",
56
- LLMMessageLoading = "llm:message:loading",
57
- LLMRequestCancel = "llm:request:cancel",
58
- LLMRequestCanceled = "llm:request:canceled",
59
- UserMessage = "user:message",
60
- ContextError = "chat:contextError",
61
- ChatError = "chat:chatError",
62
- MissingFields = "chat:missingFields",
63
- MissingFieldsCompleted = "chat:missingFields:completed",
64
- SystemToolCallResponse = "system:toolCall:response",
65
- ChangeProvider = "chat:changeProvider"
66
- }
67
- export type CopilotConversation = {
68
- id: number;
69
- user: string;
70
- model: string;
71
- context: string;
72
- cameraExid: CameraExid;
73
- projectExid: ProjectExid;
74
- startDate: string;
75
- endDate: string;
76
- messagesCount: number;
77
- };
78
- export declare enum CopilotProvider {
79
- Gemini = "gemini",
80
- ChatGPT = "chatgpt"
81
- }
82
- export declare enum CopilotSuggestion {
83
- UserManual = "user_manual",
84
- GateReport = "gate_report",
85
- Weather = "weather",
86
- Clip = "clip",
87
- Timelapse = "timelapse",
88
- Chart = "chart",
89
- SmartSearch = "smart_search"
90
- }
91
- export declare enum CopilotChatProvider {
92
- Gemini = "gemini",
93
- ChatGpt = "chatGpt"
94
- }
95
- export declare enum CopilotLayout {
96
- Floating = "floating"
97
- }
98
- export declare enum CopilotToolId {
99
- GetReports = "getReports",
100
- GetVehiclesDetections = "getVehiclesDetections",
101
- GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
102
- GetWeather = "getWeather",
103
- CreateClip = "createClip",
104
- NavigateToPage = "navigateToPage",
105
- CreateTimelapse = "createTimelapse",
106
- RequestMissingFields = "requestMissingFields",
107
- RenderCharts = "renderCharts",
108
- SmartSearch = "smartSearch"
109
- }
110
- export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
111
- toolId?: CopilotToolId;
112
- input?: I;
113
- output?: O;
114
- isAgent?: boolean;
115
- };
116
- export type CopilotCamera = {
117
- name: string;
118
- exid: CameraExid;
119
- status: CameraStatus;
120
- featureFlags?: CameraFeatureFlag[];
121
- };
122
- export type CopilotProject = {
123
- name: string;
124
- exid: ProjectExid;
125
- status: ProjectStatus;
126
- featureFlags?: ProjectFeatureFlag[];
127
- cameras?: CopilotCamera[];
128
- };
129
- export type CopilotMessageContext = {
130
- pageId?: AnalyticsEventPageId;
131
- selectedCamera?: CopilotCamera;
132
- selectedProject?: CopilotProject;
133
- };
134
- export type CopilotMessageStep = {
135
- args: string[];
136
- depth: number;
137
- id?: number;
138
- message_id?: number;
139
- step: CopilotStepId;
140
- timestamp: string;
141
- };
142
- export declare enum CopilotMissingFieldComponent {
143
- Select = "SelectField",
144
- DateTime = "DateTimeField",
145
- Schedule = "ScheduleField",
146
- MultiOptions = "MultiOptionsField",
147
- Switch = "SwitchField"
148
- }
149
- export declare enum CopilotMissingFieldName {
150
- ProjectExid = "projectExid",
151
- CameraExid = "cameraExid",
152
- FromDate = "fromDate",
153
- ToDate = "toDate",
154
- Schedule = "schedule",
155
- Duration = "duration"
156
- }
157
- export declare enum CopilotMissingFieldType {
158
- Boolean = "boolean",
159
- String = "string",
160
- Number = "number"
161
- }
162
- export type CopilotCompletedFields = Record<string, unknown>;
@@ -1,15 +0,0 @@
1
- export type VendorModel = {
2
- cameraCount: number;
3
- exid: string;
4
- h264Url: string;
5
- jpgUrl: string;
6
- name: string;
7
- online: number;
8
- playbackUrl: string;
9
- };
10
- export type VendorModelRequestPayload = {
11
- sort: string;
12
- };
13
- export type VendorModelResponsePayload = {
14
- data: VendorModel[];
15
- };