@evercam/api 1.0.0-51a0c8745 → 1.0.0-533505ee2

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 (91) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +204 -5
  3. package/dist/api/api/adminApi.d.ts +141 -95
  4. package/dist/api/api/aiApi.d.ts +108 -83
  5. package/dist/api/api/authzApi.d.ts +34 -15
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  8. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  9. package/dist/api/api/evercamApi.d.ts +139 -100
  10. package/dist/api/api/evercamLabsApi.d.ts +9 -7
  11. package/dist/api/api/exNvrApi.d.ts +1 -1
  12. package/dist/api/api/ingestApi.d.ts +121 -33
  13. package/dist/api/api/ptzApi.d.ts +12 -3
  14. package/dist/api/api/videoWallApi.d.ts +7 -7
  15. package/dist/api/api/weatherApi.d.ts +2 -2
  16. package/dist/api/types/360.d.ts +315 -9
  17. package/dist/api/types/aconex.d.ts +104 -6
  18. package/dist/api/types/admin.d.ts +51 -0
  19. package/dist/api/types/aiConfigs.d.ts +154 -0
  20. package/dist/api/types/analytics.d.ts +168 -41
  21. package/dist/api/types/anpr.d.ts +53 -13
  22. package/dist/api/types/auditLogs.d.ts +19 -1
  23. package/dist/api/types/authz.d.ts +107 -0
  24. package/dist/api/types/autodesk.d.ts +7 -7
  25. package/dist/api/types/automation.d.ts +86 -1
  26. package/dist/api/types/axios.d.ts +29 -7
  27. package/dist/api/types/bim.d.ts +37 -6
  28. package/dist/api/types/camera.d.ts +112 -95
  29. package/dist/api/types/comments.d.ts +26 -11
  30. package/dist/api/types/company.d.ts +43 -2
  31. package/dist/api/types/compare.d.ts +20 -5
  32. package/dist/api/types/connector.d.ts +4 -5
  33. package/dist/api/types/coolify.d.ts +20 -2
  34. package/dist/api/types/copilot.d.ts +11 -6
  35. package/dist/api/types/credentials.d.ts +1 -0
  36. package/dist/api/types/detections.d.ts +23 -34
  37. package/dist/api/types/drone.d.ts +96 -6
  38. package/dist/api/types/errors.d.ts +12 -0
  39. package/dist/api/types/gateReport.d.ts +50 -158
  40. package/dist/api/types/gateReportManagement.d.ts +175 -0
  41. package/dist/api/types/hdd.d.ts +26 -1
  42. package/dist/api/types/index.d.ts +13 -1
  43. package/dist/api/types/ingest.d.ts +114 -3
  44. package/dist/api/types/kit.d.ts +66 -8
  45. package/dist/api/types/map.d.ts +12 -0
  46. package/dist/api/types/media.d.ts +8 -2
  47. package/dist/api/types/notification.d.ts +32 -2
  48. package/dist/api/types/oauth.d.ts +62 -0
  49. package/dist/api/types/planner.d.ts +101 -1
  50. package/dist/api/types/posthog.d.ts +35 -0
  51. package/dist/api/types/procore.d.ts +13 -6
  52. package/dist/api/types/progressPhoto.d.ts +10 -24
  53. package/dist/api/types/project.d.ts +137 -18
  54. package/dist/api/types/recording.d.ts +9 -12
  55. package/dist/api/types/recycleBin.d.ts +14 -0
  56. package/dist/api/types/ring.d.ts +53 -0
  57. package/dist/api/types/roi.d.ts +4 -3
  58. package/dist/api/types/routeParams.d.ts +2 -1
  59. package/dist/api/types/router.d.ts +20 -1
  60. package/dist/api/types/shared.d.ts +31 -10
  61. package/dist/api/types/shares.d.ts +6 -144
  62. package/dist/api/types/sim.d.ts +6 -6
  63. package/dist/api/types/siteAnalytics.d.ts +194 -48
  64. package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
  65. package/dist/api/types/siteView.d.ts +73 -0
  66. package/dist/api/types/smartSeach.d.ts +5 -0
  67. package/dist/api/types/snapshots.d.ts +55 -1
  68. package/dist/api/types/sso.d.ts +55 -0
  69. package/dist/api/types/storageProvider.d.ts +19 -0
  70. package/dist/api/types/storyblok.d.ts +40 -0
  71. package/dist/api/types/streaming.d.ts +4 -5
  72. package/dist/api/types/tag.d.ts +1 -1
  73. package/dist/api/types/time.d.ts +4 -18
  74. package/dist/api/types/timelapse.d.ts +8 -5
  75. package/dist/api/types/user.d.ts +106 -35
  76. package/dist/api/types/videoWall.d.ts +47 -14
  77. package/dist/api/types/weather.d.ts +77 -11
  78. package/dist/api/types/widget.d.ts +96 -16
  79. package/dist/api/types/xweather.d.ts +4 -4
  80. package/dist/index.js +2357 -1019
  81. package/dist/index.js.map +1 -1
  82. package/dist/index.umd.cjs +1 -1
  83. package/dist/index.umd.cjs.map +1 -1
  84. package/dist/shared/types/components.d.ts +179 -17
  85. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  86. package/dist/shared/types/imagePlayer.d.ts +10 -3
  87. package/dist/shared/types/index.d.ts +2 -0
  88. package/dist/shared/types/rbac.d.ts +67 -0
  89. package/dist/shared/types/timeline.d.ts +2 -1
  90. package/package.json +7 -4
  91. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,4 +1,5 @@
1
- import { PaginationParams, DateType } from "@/types";
1
+ import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
2
+ import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
2
3
  export declare enum IngestProcessingStatus {
3
4
  Completed = "completed",
4
5
  Uploading = "uploading",
@@ -9,9 +10,20 @@ export declare enum IngestProcessingStatus {
9
10
  InProgress = "inprogress",
10
11
  Pending = "pending"
11
12
  }
13
+ export declare enum MobileAssetsType {
14
+ Audio = "mobile_audios",
15
+ Photo = "mobile_photos"
16
+ }
12
17
  export declare enum IngestVersions {
13
18
  V1 = "v1",
14
- V2 = "v2"
19
+ V2 = "v2",
20
+ V3 = "v3",
21
+ V4 = "v4",
22
+ V5 = "v5"
23
+ }
24
+ export declare enum IngestTypes {
25
+ Drone = "drone",
26
+ ThreeSixty = "360"
15
27
  }
16
28
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
17
29
  projectId: string;
@@ -19,6 +31,36 @@ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
19
31
  token: string;
20
32
  processingStatus: IngestProcessingStatus;
21
33
  };
34
+ export type IngestPaginatedResponse<T> = {
35
+ items: T[];
36
+ page: number;
37
+ limit: number;
38
+ total: number;
39
+ pageCount?: number;
40
+ };
41
+ export type DroneUploadItem = {
42
+ id: number;
43
+ projectId: string;
44
+ consumed: boolean;
45
+ token: string;
46
+ flightDate: string;
47
+ flightGeolocation: string;
48
+ modelZip: string;
49
+ orthomosaicZip: string;
50
+ reportPdf: string;
51
+ processingLog: string;
52
+ uploadedBy: string;
53
+ processingStatus: IngestProcessingStatus | string;
54
+ modelCesiumAssetId: string;
55
+ updatedAt: string;
56
+ hasTusLinks: boolean;
57
+ aerialShots: AerialShotItem[];
58
+ };
59
+ export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
60
+ export type DroneQueueResponse = {
61
+ size: number;
62
+ assetsDrone: DroneUploadItem[];
63
+ };
22
64
  export type DroneUploadUpdateRequestPayload = {
23
65
  flightMetadata: {
24
66
  dateTime: string;
@@ -30,18 +72,87 @@ export type DroneUploadUpdateRequestPayload = {
30
72
  title: string;
31
73
  fileExtension: string;
32
74
  }[];
75
+ aerialShots: {
76
+ url: string;
77
+ title: string;
78
+ fileExtension: string;
79
+ gpsLatitude: string;
80
+ gpsLongitude: string;
81
+ gpsAltitude: string;
82
+ }[];
33
83
  projectName: string;
34
84
  };
35
85
  export type CalculateMeasuringOperationRequestPayload = {
36
86
  date: DateType;
37
- points: [number, number][];
87
+ points: TuplePoint2D[];
38
88
  operation: string;
39
89
  };
40
90
  export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
41
91
  date: DateType;
42
92
  };
93
+ export type AerialShotItem = {
94
+ id: number;
95
+ droneUploadId: number;
96
+ fileLink: string;
97
+ thumbnailLink: string;
98
+ gpsLatitude: string;
99
+ gpsLongitude: string;
100
+ gpsAltitude: string;
101
+ };
43
102
  export type InspectionToolRequestPayload = {
44
103
  date: DateType;
45
104
  gpsAltitude: string;
46
105
  gpsCoordinates: string;
47
106
  };
107
+ export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
108
+ export type _360AssetsCountsDay = {
109
+ day: number;
110
+ walks?: number;
111
+ mobilePhotos?: number;
112
+ [key: string]: JsonValue | undefined;
113
+ };
114
+ export type _360AssetsCountsResponse = {
115
+ days: _360AssetsCountsDay[];
116
+ };
117
+ export type _360QueueResponse = {
118
+ size: number;
119
+ assets360: _360WalkV2[];
120
+ };
121
+ export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
122
+ export type BimUploadItem = {
123
+ id: number;
124
+ projectId: string;
125
+ uploadedBy: string;
126
+ files: string[];
127
+ updatedAt: string;
128
+ archive?: string | null;
129
+ };
130
+ export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
131
+ export type IngestUploadInitResponse = {
132
+ id: number;
133
+ projectId: string;
134
+ token?: string;
135
+ projectName?: string;
136
+ };
137
+ export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
138
+ projectId?: string;
139
+ project_id?: string;
140
+ assetType?: MobileAssetsType | string;
141
+ date?: DateType;
142
+ isPaginated?: boolean;
143
+ };
144
+ export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
145
+ id: string;
146
+ projectId?: string;
147
+ uploadedBy: string;
148
+ updatedAt: string;
149
+ assetType: string;
150
+ thumbnailUrl: string;
151
+ }> | Array<{
152
+ id: string;
153
+ projectId?: string;
154
+ uploadedBy: string;
155
+ updatedAt: string;
156
+ assetType: string;
157
+ thumbnailUrl: string;
158
+ }>;
@@ -1,4 +1,4 @@
1
- import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
1
+ import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -16,7 +16,11 @@ export type Kit = {
16
16
  serial: string;
17
17
  status: KitStatus;
18
18
  powerSchedule: Schedule;
19
+ ups: boolean;
20
+ boxId: string;
19
21
  tags: Tag[];
22
+ storages: KitStorage[];
23
+ createdAt: string;
20
24
  };
21
25
  export declare enum KitStatus {
22
26
  New = "new",
@@ -32,20 +36,23 @@ export declare enum KitRegion {
32
36
  }
33
37
  export declare enum KitAlarm {
34
38
  NvrOffline = "nvr_offline",
39
+ OfflineScheduled = "offline_scheduled",
35
40
  UnknownCamera = "unknown_camera",
36
41
  NotRecordingCamera = "not_recording_camera",
37
- OfflineScheduled = "offline_scheduled",
38
42
  FullSD = "full_sd",
39
43
  FullStorage = "full_storage",
40
44
  HddUnmounted = "hdd_unmounted",
41
45
  NoHdd = "no_hdd",
42
46
  MissingRouterInfo = "missing_router_info",
43
- PowerLost = "ac_failure",
44
- UpsLowBattery = "low_battery"
47
+ AcFailure = "ac_failure",
48
+ LowBattery = "low_battery",
49
+ GeneratorOff = "generator_off"
45
50
  }
46
51
  export declare enum KitMetricId {
47
52
  SolarCharger = "solar_charger",
48
- PanelPower = "panel_power"
53
+ PanelPower = "panel_power",
54
+ Fan = "fan",
55
+ FanTemperature = "fan_temperature"
49
56
  }
50
57
  export declare enum KitMetricPeriod {
51
58
  Last15Minutes = "now-15m",
@@ -301,6 +308,19 @@ export type KitCreatePayload = {
301
308
  region: KitRegion;
302
309
  };
303
310
  };
311
+ export type KitMetricStatsEntry = {
312
+ timestamp: string;
313
+ voltage: number;
314
+ current: number;
315
+ panelVoltage: number;
316
+ panelPower: number;
317
+ };
318
+ export type KitFanStatsEntry = {
319
+ timestamp: string;
320
+ speed: number;
321
+ internalTemperature: number;
322
+ externalTemperature: number | null;
323
+ };
304
324
  export type KitUpdatePayload = {
305
325
  countryId: number;
306
326
  name: string;
@@ -316,7 +336,7 @@ export declare enum KitStorageTransport {
316
336
  export type KitStorageRequestPayload = {
317
337
  kitId: number;
318
338
  };
319
- export type KitStorageResponsePayload = {
339
+ export type KitStorage = {
320
340
  id: number;
321
341
  serial: string;
322
342
  status: string;
@@ -325,10 +345,48 @@ export type KitStorageResponsePayload = {
325
345
  formFactor: string;
326
346
  };
327
347
  model: string;
328
- insertedAt: DateTime;
329
- updatedAt: DateTime;
348
+ insertedAt: string;
349
+ updatedAt: string;
330
350
  vendor: string;
331
351
  kitId: number;
332
352
  capacity: number;
353
+ freeSpace: number;
333
354
  tran: KitStorageTransport;
334
355
  };
356
+ export type KitFootageRequestPayload = {
357
+ cameraId: CameraExid;
358
+ storageId: number;
359
+ };
360
+ export type KitFootage = {
361
+ id: number;
362
+ startDate: string;
363
+ endDate: string;
364
+ cameraId: number;
365
+ storageId: number;
366
+ };
367
+ export type KitAlarmItem = {
368
+ id: number;
369
+ kitId: number;
370
+ alarm: KitAlarm;
371
+ startDate: string;
372
+ endDate: string | null;
373
+ };
374
+ export type KitBox = {
375
+ id: string;
376
+ gatewaySerial: string;
377
+ gatewayMac: string;
378
+ gatewayConfig: Record<string, unknown> | null;
379
+ insertedAt: string;
380
+ updatedAt: string;
381
+ };
382
+ export type KitBoxCreatePayload = {
383
+ id?: string;
384
+ gatewaySerial: string;
385
+ gatewayMac: string;
386
+ gatewayConfig?: Record<string, unknown>;
387
+ };
388
+ export type KitBoxQueryParams = PaginationParams & {
389
+ id: string;
390
+ gatewaySerial: string;
391
+ gatewayMac: string;
392
+ };
@@ -2,3 +2,15 @@ export declare enum MapType {
2
2
  Hybrid = "hybrid",
3
3
  Terrain = "terrain"
4
4
  }
5
+ export type MapView = {
6
+ east?: number;
7
+ floorID?: string;
8
+ image?: string;
9
+ mapStyle?: MapType;
10
+ name: string;
11
+ north?: number;
12
+ projectId: string;
13
+ projectName: string;
14
+ south?: number;
15
+ west?: number;
16
+ };
@@ -1,4 +1,4 @@
1
- import type { CameraExid, Exid, DateType } from "@/types";
1
+ import type { CameraExid, Exid, DateType } from "@evercam/api/types";
2
2
  export type MediaExid = Exid;
3
3
  export type Media = {
4
4
  project_exid?: string;
@@ -25,6 +25,7 @@ export type Media = {
25
25
  projectExid?: string;
26
26
  thumbnailUrl?: string;
27
27
  mediaUrl?: string;
28
+ camera?: string;
28
29
  };
29
30
  export declare enum MediaType {
30
31
  EditedImage = "edit",
@@ -92,7 +93,7 @@ export type MediaCreateRequestPayload = {
92
93
  cameraExid?: string;
93
94
  requestedBy?: string;
94
95
  notes?: string;
95
- category?: ClipsCategory;
96
+ category?: MediaCategory | ClipsCategory;
96
97
  isUrgent?: boolean;
97
98
  storeAsType?: MediaType;
98
99
  };
@@ -107,6 +108,11 @@ export declare enum ClipsCategory {
107
108
  Marketing = "marketing",
108
109
  BestPracticies = "best_practices"
109
110
  }
111
+ export declare enum MediaCategory {
112
+ Weather = "weather",
113
+ SmartSearch = "smart_search",
114
+ Copilot = "copilot"
115
+ }
110
116
  export type MediaDeleteRequestPayload = {
111
117
  timelapseIds: (string | number)[];
112
118
  compareIds: (string | number)[];
@@ -7,11 +7,41 @@ export declare enum NotificationType {
7
7
  DroneProcessing = "drone_processing_done",
8
8
  Processing360 = "three_sixty_done"
9
9
  }
10
- export interface CameraShareContext {
10
+ export interface NotificationContextBase {
11
+ cameraExid?: string;
12
+ projectExid?: string;
13
+ }
14
+ export interface CameraShareContext extends NotificationContextBase {
11
15
  cameraExid: string;
12
16
  projectExid: string;
13
17
  shareId: number;
14
18
  }
19
+ export interface CameraStatusChangeContext extends NotificationContextBase {
20
+ cameraExid: string;
21
+ projectExid: string;
22
+ newStatus: string;
23
+ }
24
+ export interface MentionContext extends NotificationContextBase {
25
+ }
26
+ export interface TimelapseCreatedContext extends NotificationContextBase {
27
+ cameraExid: string;
28
+ projectExid: string;
29
+ archiveExid: string;
30
+ }
31
+ export interface TimelapseFailedContext extends NotificationContextBase {
32
+ cameraExid: string;
33
+ projectExid: string;
34
+ }
35
+ export interface DroneProcessingContext extends NotificationContextBase {
36
+ projectExid: string;
37
+ droneDate: string;
38
+ }
39
+ export interface Processing360Context extends NotificationContextBase {
40
+ projectExid: string;
41
+ date: string;
42
+ floor: string;
43
+ }
44
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
15
45
  export type Notification = {
16
46
  id: number;
17
47
  type: NotificationType;
@@ -23,5 +53,5 @@ export type Notification = {
23
53
  targetFullname: string;
24
54
  targetEmail: string;
25
55
  readTimestamp: string | null;
26
- context: CameraShareContext;
56
+ context: NotificationContext;
27
57
  };
@@ -0,0 +1,62 @@
1
+ export type OAuthClient = {
2
+ id: number;
3
+ name: string;
4
+ clientId: string;
5
+ redirectUris: string[];
6
+ logoUrl: string | null;
7
+ scopes: string[];
8
+ active: boolean;
9
+ description: string | null;
10
+ owner: {
11
+ id: number;
12
+ name: string;
13
+ email: string;
14
+ } | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ };
18
+ export type OAuthClientWithSecret = OAuthClient & {
19
+ clientSecret: string;
20
+ };
21
+ export type CreateOAuthClientPayload = {
22
+ name: string;
23
+ redirectUris: string[];
24
+ scopes?: string[];
25
+ description?: string;
26
+ logoUrl?: string;
27
+ };
28
+ export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
29
+ clientId?: string;
30
+ clientSecret?: string;
31
+ };
32
+ export type UpdateOAuthClientPayload = {
33
+ name?: string;
34
+ redirectUris?: string[];
35
+ scopes?: string[];
36
+ description?: string;
37
+ logoUrl?: string;
38
+ active?: boolean;
39
+ };
40
+ export type OAuthScopeDetail = {
41
+ scope: string;
42
+ description: string;
43
+ group: string;
44
+ };
45
+ export type OAuthConsentInfo = {
46
+ client: {
47
+ name: string;
48
+ logoUrl: string | null;
49
+ description: string | null;
50
+ };
51
+ scopes: OAuthScopeDetail[];
52
+ };
53
+ export type OAuthConsentPayload = {
54
+ clientId: string;
55
+ scope: string;
56
+ redirectUri: string;
57
+ state: string;
58
+ decision: "allow" | "deny";
59
+ };
60
+ export type OAuthConsentResponse = {
61
+ redirectUrl: string;
62
+ };
@@ -1,6 +1,39 @@
1
+ import { GeoPoint, TuplePoint2D } from "./shared";
2
+ import { MapType } from "./map";
3
+ export type PlannerListItem = {
4
+ id: string;
5
+ projectId: string;
6
+ projectName: string;
7
+ projectLocation: string;
8
+ createdDate: string;
9
+ updatedDate: string;
10
+ owner?: string;
11
+ lastUpdatedBy?: string;
12
+ camerasCount?: number;
13
+ hasPlan?: boolean;
14
+ thumbnailUrl?: string;
15
+ projectMapType?: MapType;
16
+ sessionId?: string;
17
+ };
18
+ export type PolygonPath = TuplePoint2D[];
19
+ export type PolygonCoordinates = PolygonPath[];
20
+ export interface GeoJSONPolygon {
21
+ type: "Polygon";
22
+ coordinates: PolygonCoordinates;
23
+ }
24
+ export declare enum PlannerUrlParams {
25
+ SitePlanId = "site_plan_id",
26
+ IsNewSitePlan = "is_new_site_plan",
27
+ IsBoundsMode = "is_bounds_mode",
28
+ ProjectPosition = "project_position",
29
+ DealId = "deal_id"
30
+ }
1
31
  export declare enum EDistortImageModes {
2
32
  FreeRotate = "freeRotate",
3
- Lock = "lock"
33
+ Lock = "lock",
34
+ Rotate = "rotate",
35
+ Scale = "scale",
36
+ Pan = "drag"
4
37
  }
5
38
  export declare enum EMapTypes {
6
39
  Blank = "Blank",
@@ -30,3 +63,70 @@ export declare enum ERoles {
30
63
  Admin = "admin",
31
64
  User = "user"
32
65
  }
66
+ export type PlannerOverlay = {
67
+ imageUrl?: string;
68
+ corners?: {
69
+ topLeft: GeoPoint;
70
+ topRight: GeoPoint;
71
+ bottomLeft: GeoPoint;
72
+ bottomRight: GeoPoint;
73
+ } | null;
74
+ };
75
+ export type PlannerCameraMarker = {
76
+ name?: string;
77
+ location?: GeoPoint;
78
+ heading?: number;
79
+ fovAngle?: number;
80
+ fovRadius?: number;
81
+ isVisible?: boolean;
82
+ color?: string;
83
+ };
84
+ export type SitePlanBounds = {
85
+ northEast: GeoPoint;
86
+ southWest: GeoPoint;
87
+ };
88
+ export type SitePlan = {
89
+ id?: string;
90
+ projectId?: string;
91
+ owner?: string;
92
+ lastUpdatedBy?: string;
93
+ projectName?: string;
94
+ projectLocation?: string;
95
+ projectMapType?: EMapTypes;
96
+ projectBounds?: SitePlanBounds;
97
+ overlay?: PlannerOverlay;
98
+ markers?: PlannerCameraMarker[];
99
+ thumbnailUrl?: string;
100
+ createdDate?: string;
101
+ updatedDate?: string;
102
+ };
103
+ export interface IDrawControl {
104
+ _toolbars: {
105
+ draw: {
106
+ _activeMode: {
107
+ handler: {
108
+ disable(): void;
109
+ completeShape(): void;
110
+ };
111
+ };
112
+ _modes: {
113
+ polygon: {
114
+ handler: {
115
+ enable(): void;
116
+ };
117
+ };
118
+ };
119
+ };
120
+ edit: {
121
+ _modes: {
122
+ edit: {
123
+ handler: {
124
+ enable(): void;
125
+ disable(): void;
126
+ save(): void;
127
+ };
128
+ };
129
+ };
130
+ };
131
+ };
132
+ }
@@ -16,3 +16,38 @@ export declare enum ActiveUsersMetric {
16
16
  WAU = "wau",
17
17
  MAU = "mau"
18
18
  }
19
+ export type PosthogUser = {
20
+ id: string;
21
+ email: string;
22
+ isWeeklyActiveUser: number;
23
+ isMonthlyActiveUser: number;
24
+ eventsCount: number;
25
+ };
26
+ export type PosthogUsersRequestParams = {
27
+ companyExid?: string;
28
+ projectExid?: string;
29
+ cameraExid?: string;
30
+ productsActivityOnly?: boolean;
31
+ afterId?: string;
32
+ size?: number;
33
+ };
34
+ export type PosthogUsersResponse = {
35
+ data: PosthogUser[];
36
+ hasMore: boolean;
37
+ size: number;
38
+ };
39
+ export type PosthogUserParams = {
40
+ firstname?: string;
41
+ lastname?: string;
42
+ email: string;
43
+ telephone?: string;
44
+ country?: string;
45
+ isAdmin?: boolean;
46
+ persona?: string;
47
+ companyExid: string;
48
+ companyName: string;
49
+ isImpersonationLogin: boolean;
50
+ ImpersonatedUserEmail?: string;
51
+ ImpersonatedUserFirstname?: string;
52
+ impersonatedUserLastname?: string;
53
+ };
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
44
44
  label: string;
45
45
  currentRevisionId: number;
46
46
  };
47
- export type ProcoreUserProjectsResponsePayload = Array<{
47
+ export type ProcoreUserProject = {
48
48
  accountingProjectNumber?: number;
49
49
  active: boolean;
50
50
  address: string;
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
85
85
  totalValue: string;
86
86
  updatedAt: string;
87
87
  zip: number;
88
- }>;
88
+ };
89
+ export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
89
90
  export type ProcoreToolUserAccessLevel = {
90
91
  id: ProcoreToolUserAccessLevelIds;
91
92
  name: string;
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
120
121
  snapshot: string;
121
122
  categoryId?: number;
122
123
  };
123
- export type ProcoreProjectsAlbumsPayload = Array<{
124
+ export type ProcoreProjectAlbum = {
124
125
  count: number;
125
126
  coverPhoto: string | null;
126
127
  createdAt: string;
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
134
135
  position: number;
135
136
  private: boolean;
136
137
  updatedAt: string;
137
- }>;
138
- export type ProcoreObservationTypesResponsePayload = Array<{
138
+ };
139
+ export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
140
+ export type ProcoreObservationType = {
139
141
  id: number;
140
142
  name: string;
141
143
  localizedName: string;
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
147
149
  parentInactive: boolean;
148
150
  isUse: boolean;
149
151
  nameTranslations: string;
150
- }>;
152
+ };
153
+ export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
151
154
  export type ProcoreObservationFormRequestPayload = {
152
155
  projectId: number;
153
156
  companyId: number;
154
157
  observationType: string;
155
158
  };
159
+ export type ProcoreCustomFieldOptionsRequestPayload = {
160
+ optionsUrl: string;
161
+ companyId: number;
162
+ };
156
163
  export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
157
164
  export type ProcoreObservationField = {
158
165
  name: string;
@@ -1,31 +1,14 @@
1
- import { DateTime, DateType, PaginationParams } from "@/types";
2
- export type ProgressPhoto = {
3
- cameraIds: string;
4
- cameraNames: number;
5
- createdAt: string;
6
- id: number;
7
- provider: string;
8
- type: string;
9
- config: Partial<{
10
- recipients: string;
11
- projectId: number;
12
- companyId: number;
13
- }>;
14
- isPaused: boolean;
15
- notifyDays: string;
16
- notifyTime: string;
17
- requesterEmail: string;
18
- requesterName: string;
19
- timezone: string;
20
- title: string;
21
- };
1
+ import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
22
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
23
3
  cameraExids?: string;
24
4
  notifyDays?: string;
5
+ compareDelay?: AutomationType;
25
6
  notifyTime?: string;
26
7
  provider?: string;
27
8
  type?: string;
28
9
  config?: {
10
+ compareDelay?: AutomationType;
11
+ period?: number;
29
12
  recipients?: string;
30
13
  projectId?: number;
31
14
  companyId?: number;
@@ -40,9 +23,12 @@ export type ProgressPhotosUnSubscribeParams = {
40
23
  token?: string;
41
24
  };
42
25
  export type ProgressPhotosResponsePayload = {
43
- progressPhotos: ProgressPhoto[];
26
+ progressPhotos: Automation[];
44
27
  };
45
- export declare enum ProgressPhotoDialogType {
28
+ export type ProgressPhotoItemResponsePayload = {
29
+ progressPhotos: Automation;
30
+ };
31
+ export declare enum AutomationDialogType {
46
32
  Create = "create",
47
33
  Edit = "edit",
48
34
  Pause = "pause"
@@ -88,5 +74,5 @@ export type ProgressPhotosHistory = {
88
74
  cameraIds: string;
89
75
  failedCameraIds: string;
90
76
  subject: string;
91
- recipients: DateTime;
77
+ recipients: string;
92
78
  };