@evercam/api 1.0.0-462219997 → 1.0.0-4ba690d00

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.
@@ -8,7 +8,7 @@ export type AconexUserProjectsResponsePayload = Array<{
8
8
  export type AconexDocumentSchemaField = {
9
9
  dataType: AconexDocumentDataType;
10
10
  identifier: string;
11
- schemaValues: Array<{
11
+ schemaValues?: Array<{
12
12
  id: string;
13
13
  value: string;
14
14
  }>;
@@ -1,10 +1,3 @@
1
- import { DateType } from "@/types";
2
- export type AnalyticsRequestPayload = {
3
- name: string;
4
- cameraExid: string;
5
- } & {
6
- [key: string]: any;
7
- };
8
1
  export declare enum AnalyticsEventPageId {
9
2
  Timeline = "Timeline",
10
3
  Copilot = "Copilot",
@@ -17,6 +10,7 @@ export declare enum AnalyticsEventPageId {
17
10
  Project = "Project",
18
11
  AllProjects = "AllProjects",
19
12
  Tutorials = "Tutorials",
13
+ SystemCheck = "SystemCheck",
20
14
  ProjectMapView = "ProjectMapView",
21
15
  AccountMapView = "AccountMapView",
22
16
  Automations = "Automations",
@@ -26,6 +20,7 @@ export declare enum AnalyticsEventPageId {
26
20
  ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
27
21
  ProjectSettingsMembers = "ProjectSettings-Members",
28
22
  ProjectSettingsOverview = "ProjectSettings-Overview",
23
+ ProjectSettingsDangerZone = "ProjectSettings-DangerZone",
29
24
  Settings = "Settings",
30
25
  SettingsAccount = "Settings-Account",
31
26
  SettingsConnectors = "Settings-Connectors",
@@ -266,11 +261,11 @@ export declare enum AnalyticsEvent {
266
261
  ThreeSixtyChangeFloor = "ChangeFloor",
267
262
  ThreeSixtyCloseCompare = "CloseCompare",
268
263
  ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
269
- ThreeSixtyDeleteTag = "DeleteTag",
264
+ ThreeSixtyDeleteComment = "DeleteComment",
270
265
  ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
271
- ThreeSixtyDisableTagTool = "DisableTagTool",
266
+ ThreeSixtyDisableCommnetTool = "DisableCommentTool",
272
267
  ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
273
- ThreeSixtyEnableTagTool = "EnableTagTool",
268
+ ThreeSixtyEnableCommentTool = "EnableCommentTool",
274
269
  ThreeSixtyLockCompare = "LockCompare",
275
270
  ThreeSixtyLockForgeBIM = "LockForgeBIM",
276
271
  ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
@@ -279,14 +274,16 @@ export declare enum AnalyticsEvent {
279
274
  ThreeSixtyOpenCompare = "OpenCompare",
280
275
  ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
281
276
  ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
282
- ThreeSixtyOpenTagsList = "OpenTagsList",
283
- ThreeSixtySaveTag = "SaveTag",
277
+ ThreeSixtyOpenCommentsList = "OpenCommentsList",
278
+ ThreeSixtySaveComment = "SaveComment",
279
+ ThreeSixtyUnarchiveComment = "UnarchiveComment",
280
+ ThreeSixtyArchiveComment = "ArchiveComment",
284
281
  ThreeSixtyShareView = "ShareView",
285
- ThreeSixtyTagClicked = "TagClicked",
282
+ ThreeSixtyCommentClicked = "CommentClicked",
286
283
  ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
287
284
  ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
288
285
  ThreeSixtyToggleMiniModel = "ToggleMiniModel",
289
- ThreeSixtyToggleTagsVisibility = "ToggleTagsVisibility",
286
+ ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
290
287
  ThreeSixtyTourPause = "Tour-Pause",
291
288
  ThreeSixtyTourPlay = "Tour-Play",
292
289
  ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
@@ -453,26 +450,6 @@ export declare enum AnalyticsEvent {
453
450
  HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
454
451
  HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
455
452
  HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
456
- HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
453
+ HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
454
+ HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
457
455
  }
458
- export type ProjectPAStatsRequestPayload = {
459
- period: "day" | "week" | "month";
460
- startDate?: string;
461
- endDate?: string;
462
- };
463
- export type ProjectPAStatsResponsePayload = {
464
- period: DateType;
465
- name: string;
466
- count: number | string;
467
- };
468
- export type ActiveUsersStatsRequestPayload = {
469
- companyId: number;
470
- from: string;
471
- to: string;
472
- };
473
- export type ActiveUserStat = {
474
- date: string;
475
- dau: number;
476
- wau: number;
477
- mau: number;
478
- };
@@ -178,6 +178,8 @@ export declare enum CameraStatus {
178
178
  export declare enum CameraFeatureFlag {
179
179
  EdgeVideo = "edge_video",
180
180
  BimCompare = "bim_compare",
181
+ TwoDBimCompare = "2d_bim_compare",
182
+ ForgeBIMCompare = "forge_bim_compare",
181
183
  GateReport = "gate_report",
182
184
  VideoStream = "video_stream",
183
185
  WebRTC = "webrtc",
@@ -324,56 +326,6 @@ export type Hdd = {
324
326
  errorStatus: string;
325
327
  canExpand: boolean;
326
328
  };
327
- export declare enum ResolutionDimensions {
328
- QVGA = "320x240",
329
- VGA = "640x480",
330
- SVGA = "800x600",
331
- XGA = "1024x768",
332
- HD = "1280x720",
333
- WXGA = "1280x800",
334
- HDPlus = "1366x768",
335
- WXGAPlus = "1440x900",
336
- HDPlusPlus = "1600x900",
337
- UXGA = "1600x1200",
338
- FullHD = "1920x1080",
339
- WUXGA = "1920x1200",
340
- TwoK = "2048x1080",
341
- QHD = "2560x1440",
342
- WQXGA = "2560x1600",
343
- FourK = "3840x2160",
344
- FourKCinema = "4096x2160",
345
- FiveK = "5120x2880",
346
- EightK = "7680x4320",
347
- WHUXGA = "7680x4800"
348
- }
349
- export declare enum ResolutionLabel {
350
- QVGA = "QVGA",
351
- VGA = "VGA",
352
- SVGA = "SVGA",
353
- XGA = "XGA",
354
- HD = "HD",
355
- WXGA = "WXGA",
356
- HDPlus = "HD+",
357
- WXGAPlus = "WXGA++",
358
- HDPlusPlus = "HD++",
359
- UXGA = "UXGA",
360
- FullHD = "FullHD",
361
- WUXGA = "WUXGA",
362
- TwoK = "2K",
363
- QHD = "QHD",
364
- WQXGA = "WQXGA",
365
- FourK = "4K",
366
- FourKCinema = "4KCinema",
367
- FiveK = "5K",
368
- EightK = "8K",
369
- WHUXGA = "WHUXGA"
370
- }
371
- export type ResolutionInfo = {
372
- ratioString: string;
373
- ratioFloat: number;
374
- resolutionDimensions: ResolutionDimensions;
375
- resolutionLabel: ResolutionLabel;
376
- };
377
329
  export type CameraPath = {
378
330
  projectExid: ProjectExid;
379
331
  cameraExid: CameraExid;
@@ -1,15 +1,16 @@
1
1
  import { CameraExid, DateType, ProjectExid } from "@/types";
2
+ export declare enum CommentsScope {
3
+ Recordings = "recordings",
4
+ ThreeSixty = "360"
5
+ }
2
6
  export type CommentsRequestPayload = {
3
7
  cameraExid: CameraExid;
4
8
  fromDate: string;
5
9
  toDate: string;
10
+ scope: CommentsScope;
6
11
  page?: number;
7
12
  limit?: number;
8
13
  };
9
- export type CommentPosition = {
10
- coordinates: Array<number>;
11
- type: string;
12
- };
13
14
  export type Comment = {
14
15
  fromDate?: string;
15
16
  toDate?: string;
@@ -22,15 +23,21 @@ export type Comment = {
22
23
  createdAt?: string;
23
24
  creatorEmail?: string;
24
25
  creatorName?: string;
25
- position2d: CommentPosition;
26
+ position2d?: [number, number];
27
+ position3d?: [number, number, number];
28
+ context?: Record<string, unknown>;
26
29
  canDelete?: boolean;
30
+ archivedAt?: string;
27
31
  };
28
32
  export type CommentCreationRequestPayload = {
29
33
  fromDate?: DateType;
30
34
  toDate?: DateType;
31
- timestamp: DateType;
35
+ timestamp?: DateType;
36
+ scope?: CommentsScope;
32
37
  projectExid: ProjectExid;
33
- cameraExid: CameraExid;
38
+ cameraExid?: CameraExid;
34
39
  content: string;
35
- position2d: Array<number>;
40
+ position2d?: [number, number];
41
+ position3d?: [number, number, number];
42
+ context?: Record<string, unknown>;
36
43
  };
@@ -7,7 +7,12 @@ export declare enum Connector {
7
7
  Procore = "procore",
8
8
  Autodesk = "autodesk",
9
9
  AutodeskViewer = "autodesk_viewer",
10
- VoyageControl = "voyage_control"
10
+ VoyageControl = "voyage_control",
11
+ XWeather = "xweather"
12
+ }
13
+ export declare enum ProcoreType {
14
+ Observations = "observations",
15
+ Photos = "photos"
11
16
  }
12
17
  export type ConnectorResponsePayload = Array<{
13
18
  hostname: string;
@@ -9,7 +9,6 @@ export * from "./camera";
9
9
  export * from "./compare";
10
10
  export * from "./copilot";
11
11
  export * from "./credentials";
12
- export * from "./devices";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
15
14
  export * from "./gateReport";
@@ -28,6 +27,7 @@ export * from "./routeParams";
28
27
  export * from "./router";
29
28
  export * from "./shares";
30
29
  export * from "./sim";
30
+ export * from "./systemCheck";
31
31
  export * from "./planner";
32
32
  export * from "./storageServers";
33
33
  export * from "./streaming";
@@ -52,3 +52,4 @@ export * from "./countries";
52
52
  export * from "./automation";
53
53
  export * from "./coolify";
54
54
  export * from "./tag";
55
+ export * from "./xweather";
@@ -1,4 +1,4 @@
1
- import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
1
+ import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -32,11 +32,14 @@ export declare enum KitAlarm {
32
32
  FullSD = "full_sd",
33
33
  FullStorage = "full_storage",
34
34
  HddUnmounted = "hdd_unmounted",
35
- NoHdd = "no_hdd"
35
+ NoHdd = "no_hdd",
36
+ MissingRouterInfo = "missing_router_info",
37
+ PowerLost = "ac_failure",
38
+ UpsLowBattery = "low_battery"
36
39
  }
37
40
  export declare enum KitMetricId {
38
- BatteryStats = "battery",
39
- PanelPowerStats = "panel_power"
41
+ SolarCharger = "solar_charger",
42
+ PanelPower = "panel_power"
40
43
  }
41
44
  export declare enum KitMetricPeriod {
42
45
  Last15Minutes = "now-15m",
@@ -299,3 +302,27 @@ export type KitUpdatePayload = {
299
302
  kitStatus: KitStatus;
300
303
  type: string;
301
304
  };
305
+ export declare enum KitStorageTransport {
306
+ Sata = "sata",
307
+ Nvme = "nvme",
308
+ Usb = "usb"
309
+ }
310
+ export type KitStorageRequestPayload = {
311
+ kitId: number;
312
+ };
313
+ export type KitStorageResponsePayload = {
314
+ id: number;
315
+ serial: string;
316
+ status: string;
317
+ type: string;
318
+ metadata: {
319
+ formFactor: string;
320
+ };
321
+ model: string;
322
+ insertedAt: DateTime;
323
+ updatedAt: DateTime;
324
+ vendor: string;
325
+ kitId: number;
326
+ capacity: number;
327
+ tran: KitStorageTransport;
328
+ };
@@ -3,9 +3,47 @@ export type ProcoreUserCompaniesResponsePayload = Array<{
3
3
  isActive?: boolean;
4
4
  name: string;
5
5
  }>;
6
- export type ProcoreUserProjectRequestPayload = {
6
+ export type ProcoreCompanyRequestPayload = {
7
7
  companyId: number;
8
8
  };
9
+ export type ProcoreProjectRequestPayload = {
10
+ companyId: number;
11
+ projectId: number;
12
+ };
13
+ export type ProcoreObservationListItem = {
14
+ id: number;
15
+ name: string;
16
+ };
17
+ export type ProcoreObservationDefaultList = Array<ProcoreObservationListItem & {
18
+ active: boolean;
19
+ global: boolean;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }>;
23
+ export type ProcoreObservationAssignee = ProcoreObservationListItem & {
24
+ vendor: ProcoreObservationListItem;
25
+ };
26
+ export type ProcoreObservationDistributionMember = ProcoreObservationListItem & {
27
+ login: string;
28
+ };
29
+ export type ProcoreObservationTrades = ProcoreObservationListItem & {
30
+ active: boolean;
31
+ updatedAt: string;
32
+ };
33
+ export type ProcoreObservationLocation = ProcoreObservationListItem & {
34
+ nodeName: string;
35
+ parentId: number;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ code: string;
39
+ };
40
+ export type ProcoreObservationSpecificationSection = {
41
+ id: number;
42
+ number: string;
43
+ description: string;
44
+ label: string;
45
+ currentRevisionId: number;
46
+ };
9
47
  export type ProcoreUserProjectsResponsePayload = Array<{
10
48
  accountingProjectNumber?: number;
11
49
  active: boolean;
@@ -48,6 +86,33 @@ export type ProcoreUserProjectsResponsePayload = Array<{
48
86
  updatedAt: string;
49
87
  zip: number;
50
88
  }>;
89
+ export type ProcoreToolUserAccessLevel = {
90
+ id: ProcoreToolUserAccessLevelIds;
91
+ name: string;
92
+ };
93
+ export type ProcoreToolPermittedAction = {
94
+ id: number;
95
+ actionName: string;
96
+ label: string;
97
+ toolName: string;
98
+ };
99
+ export type ProcoreToolPermissions = {
100
+ id: number;
101
+ name: string;
102
+ friendlyName: string;
103
+ domainId: number;
104
+ tabGroup: string;
105
+ availableForUser: boolean;
106
+ url: string;
107
+ userAccessLevel: ProcoreToolUserAccessLevel;
108
+ permittedActions: Array<ProcoreToolPermittedAction>;
109
+ createUrl: string;
110
+ canCreate: boolean;
111
+ trial: boolean;
112
+ };
113
+ export type ProcoreUserProjectPermissionsResponsePayload = {
114
+ tools: Array<ProcoreToolPermissions>;
115
+ };
51
116
  export type ProcoreEditedImageUploadRequestPayload = {
52
117
  projectExid: string;
53
118
  companyId: number;
@@ -70,7 +135,85 @@ export type ProcoreProjectsAlbumsPayload = Array<{
70
135
  private: boolean;
71
136
  updatedAt: string;
72
137
  }>;
73
- export type ProcoreProjectsAlbumsRequestPayload = {
74
- companyId: number;
138
+ export type ProcoreObservationTypesResponsePayload = Array<{
139
+ id: number;
140
+ name: string;
141
+ localizedName: string;
142
+ category: string;
143
+ categoryKey: string;
144
+ companyActive: boolean;
145
+ active: boolean;
146
+ kind: string;
147
+ parentInactive: boolean;
148
+ isUse: boolean;
149
+ nameTranslations: string;
150
+ }>;
151
+ export type ProcoreObservationFormRequestPayload = {
75
152
  projectId: number;
153
+ companyId: number;
154
+ observationType: string;
155
+ };
156
+ export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
157
+ export type ProcoreObservationField = {
158
+ name: string;
159
+ required: boolean;
160
+ visible: boolean;
161
+ };
162
+ export type ProcoreObservationCustomField = {
163
+ id: number;
164
+ required: boolean;
165
+ visible: boolean;
166
+ name: string;
167
+ label: string;
168
+ description: string;
169
+ customFieldDefinitionId: number;
170
+ dataType: ProcoreObservationCustomFieldDataType;
171
+ variant: string;
172
+ position: number;
173
+ row: number;
174
+ column: number;
175
+ columnWidth: number;
176
+ optionsUrl: string | null;
177
+ defaultValue: string | null;
76
178
  };
179
+ export declare enum ProcoreObservationCustomFieldDataType {
180
+ RichText = "rich_text",
181
+ Date = "date",
182
+ DateTime = "datetime",
183
+ LovEnty = "lov_entry",
184
+ LovEntries = "lov_entries",
185
+ Boolean = "boolean",
186
+ Vendor = "vendor",
187
+ Decimal = "decimal",
188
+ String = "string",
189
+ LoginInformation = "login_information",
190
+ LoginInformations = "login_informations",
191
+ Dropdown = "dropdown"
192
+ }
193
+ export declare enum ProcoreObservationDefaultFieldNames {
194
+ Number = "number",
195
+ Name = "name",
196
+ Status = "status",
197
+ Trade = "trade_id",
198
+ Assignee = "assignee_id",
199
+ DueDate = "due_date",
200
+ SpecificationSection = "specification_section_id",
201
+ Priority = "priority",
202
+ Location = "location_id",
203
+ DistributionMembers = "distribution_member_ids",
204
+ Personal = "personal",
205
+ Hazard = "hazard_id",
206
+ ContributingBehavior = "contributing_behavior_id",
207
+ ContributingCondition = "contributing_condition_id",
208
+ Description = "description"
209
+ }
210
+ export declare enum ProcoreTools {
211
+ Observations = "observations",
212
+ ProgressPhotos = "images"
213
+ }
214
+ export declare enum ProcoreToolUserAccessLevelIds {
215
+ NoAccess = 1,
216
+ ReadOnly = 2,
217
+ Standard = 3,
218
+ Admin = 4
219
+ }
@@ -15,6 +15,8 @@ export type Project = {
15
15
  owner?: {
16
16
  email?: string;
17
17
  };
18
+ ownerEmail?: string;
19
+ ownerName?: string;
18
20
  camerasRestrictionType?: string;
19
21
  };
20
22
  export declare enum ProjectStatus {
@@ -55,7 +57,8 @@ export declare enum ProjectFeatureFlag {
55
57
  MediaHubSharing = "archives_sharing",
56
58
  GateReportAnprBased = "anpr_sourced",
57
59
  NoLicensePlate = "no_license_plate",
58
- DefaultToProjectApp = "default_to_project_app"
60
+ DefaultToProjectApp = "default_to_project_app",
61
+ SmartSearch = "smart_search"
59
62
  }
60
63
  export type ProjectBatteryReading = {
61
64
  exid: number;
@@ -9,7 +9,8 @@ export declare enum RoiShapeType {
9
9
  Polygon = "polygon",
10
10
  Line = "line",
11
11
  Direction = "direction",
12
- Rectangle = "rectangle"
12
+ Rectangle = "rectangle",
13
+ ROIBox = "ROIBox"
13
14
  }
14
15
  export type RoiShape = {
15
16
  id: number | null;
@@ -1,4 +1,4 @@
1
- import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
1
+ import type { BBox, BoundingBox, DateType, DetectionLabel, Schedule } from "@evercam/api/types";
2
2
  export declare enum SiteAnalyticsMode {
3
3
  Detections = "detections",
4
4
  Segments = "segments"
@@ -6,20 +6,26 @@ export declare enum SiteAnalyticsMode {
6
6
  export type SmartSearchOptionData = {
7
7
  id?: string;
8
8
  type: SmartSearchQueryComponentType;
9
- value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
9
+ value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
10
10
  };
11
- export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
11
+ export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
12
12
  export declare enum SmartSearchQueryComponentType {
13
13
  Condition = "condition",
14
14
  Object = "object",
15
15
  Area = "in_area",
16
16
  Time = "time",
17
- Operator = "operator"
17
+ Operator = "operator",
18
+ Camera = "camera",
19
+ DateRange = "date_range"
18
20
  }
21
+ export type SmartSearchDateRange = {
22
+ start: DateType;
23
+ end: DateType;
24
+ };
19
25
  export type SmartSearchQueryComponentData = {
20
26
  id: string;
21
27
  type: SmartSearchQueryComponentType;
22
- parts: SmartSearchQueryPart[];
28
+ parts: [SmartSearchQueryPart];
23
29
  };
24
30
  export declare enum SmartSearchCondition {
25
31
  InArea = "in_area",
@@ -30,24 +36,25 @@ export type SmartSearchConditionData = {
30
36
  condition: SmartSearchCondition;
31
37
  value: string | BoundingBox | DetectionLabel | Date;
32
38
  };
39
+ export type SmartSearchQueryCondition = {
40
+ type: SmartSearchQueryConditionTypes;
41
+ target: SmartSearchQueryTargets;
42
+ operator?: SmartSearchQueryOperators;
43
+ attribute?: string;
44
+ value: string | number | string[];
45
+ reference?: {
46
+ target: SmartSearchQueryTargets;
47
+ attribute: string;
48
+ value: string | number | string[];
49
+ };
50
+ polygon?: BBox;
51
+ };
33
52
  export type SmartSearchQuery = {
34
53
  returnTargets: SmartSearchQueryTargets[];
35
54
  rulesLogic: SmartSearchOperatorType;
36
55
  rules: {
37
56
  logic: SmartSearchOperatorType;
38
- conditions: {
39
- type: SmartSearchQueryConditionTypes;
40
- target: SmartSearchQueryTargets;
41
- operator?: SmartSearchQueryOperators;
42
- attribute?: string;
43
- value: string | number | string[];
44
- reference?: {
45
- target: SmartSearchQueryTargets;
46
- attribute: string;
47
- value: string | number | string[];
48
- };
49
- polygon?: BBox;
50
- }[];
57
+ conditions: SmartSearchQueryCondition[];
51
58
  }[];
52
59
  returnType: SmartSearchQueryReturnType;
53
60
  };
@@ -72,7 +79,8 @@ export declare enum SmartSearchQueryOperators {
72
79
  Outside = "outside",
73
80
  DistanceBelow = "distance_below",
74
81
  DistanceAbove = "distance_above",
75
- Area = "in_area"
82
+ Area = "in_area",
83
+ Equal = "="
76
84
  }
77
85
  export declare enum SmartSearchQueryConditionTypes {
78
86
  Selection = "selection",
@@ -82,3 +90,34 @@ export declare enum SmartSearchQueryConditionTypes {
82
90
  Near = "near",
83
91
  Far = "far"
84
92
  }
93
+ export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
94
+ export type SmartSearchQueryParams = {
95
+ cameraExid: string;
96
+ name: string;
97
+ description: string;
98
+ query: {
99
+ req: SmartSearchQuery;
100
+ timeSchedule?: Schedule | undefined;
101
+ };
102
+ fromDate?: DateType;
103
+ toDate?: DateType;
104
+ author: string;
105
+ createdAt: DateType;
106
+ params?: Record<string, unknown>;
107
+ };
108
+ export type SavedQuery = {
109
+ description: string;
110
+ id: number;
111
+ query: {
112
+ req: SmartSearchQuery;
113
+ timeSchedule?: Schedule | undefined;
114
+ };
115
+ params: Record<string, string>;
116
+ components?: Omit<SmartSearchOptionData, "id">[];
117
+ toDate?: DateType;
118
+ createdAt?: DateType;
119
+ cameraExid: string;
120
+ name: string;
121
+ fromDate?: DateType;
122
+ author?: string;
123
+ };
@@ -1,24 +1,4 @@
1
- import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
2
- export declare enum ExNvrHealthCheckTaskId {
3
- ExNvrLogin = "exNvrLogin",
4
- ExNvrConfigCheck = "exNvrGetDeviceInfo",
5
- ExNvrSystemStatus = "exNvrSystemStatus",
6
- ExNvrRecordings = "exNvrGetRecordings",
7
- CameraSystemConfigCheck = "getCameraSystemInfo",
8
- CameraTimeConfigCheck = "getCameraTimeInfo",
9
- CameraStreamsConfigCheck = "getCameraStreamsInfo",
10
- CameraNetworkConfigCheck = "getCameraNetworkInfo",
11
- CameraOsdConfigCheck = "getCameraOsdInfo",
12
- CameraStorageConfigCheck = "getCameraStorageInfo"
13
- }
14
- export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
15
- export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
16
- id: T;
17
- status: TaskStatus;
18
- duration?: number;
19
- result?: ExNvrHealthCheckTaskResult<T>;
20
- error?: Error;
21
- };
1
+ import { DateTime_Z_micros, KitMetricData } from "@/types";
22
2
  export type ExNvrLoginResponse = {
23
3
  accessToken: string;
24
4
  };
@@ -0,0 +1,11 @@
1
+ export declare enum PerformanceStatus {
2
+ Pending = "pending",
3
+ Done = "done"
4
+ }
5
+ export declare enum WebGLExtensions {
6
+ OESTextureFloat = "OES_texture_float",
7
+ EXTFloatBlend = "EXT_float_blend",
8
+ EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
9
+ OESElementIndexUint = "OES_element_index_uint",
10
+ WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
11
+ }
@@ -1,6 +1,10 @@
1
1
  import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
2
  export type HistoryWeatherRequestPayload = {
3
3
  day: string;
4
+ provider: WeatherProvider;
5
+ };
6
+ export type CurrentWeatherRequestPayload = {
7
+ provider: WeatherProvider;
4
8
  };
5
9
  export type WeatherResponsePayload = Array<{
6
10
  hour?: number;
@@ -26,8 +30,8 @@ export type HourlyReading = {
26
30
  "3h"?: number;
27
31
  };
28
32
  export declare enum WeatherProvider {
29
- WeatherStack = "WeatherStack",
30
- AerisWeather = "AerisWeather"
33
+ WeatherStack = "weather_stack",
34
+ XWeather = "xweather"
31
35
  }
32
36
  export type Weatherstatus = {
33
37
  description: string;