@evercam/api 1.0.0-cd4690ce8 → 1.0.0-d0847b9fa

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 (131) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +217 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +104 -96
  4. package/dist/api/api/aiApi.d.ts +214 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/swr/Swr.d.ts +1 -1
  8. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +144 -101
  9. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -6
  10. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  11. package/dist/api/api/index.d.ts +13 -0
  12. package/dist/api/api/ingestApi.d.ts +162 -0
  13. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  14. package/dist/api/api/videoWallApi.d.ts +9 -0
  15. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  16. package/dist/api/index.d.ts +3 -13
  17. package/dist/api/types/360.d.ts +375 -0
  18. package/dist/{types → api/types}/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +51 -0
  20. package/dist/api/types/aiConfigs.d.ts +242 -0
  21. package/dist/{types → api/types}/analytics.d.ts +149 -59
  22. package/dist/{types → api/types}/anpr.d.ts +48 -2
  23. package/dist/{types → api/types}/auditLogs.d.ts +19 -1
  24. package/dist/api/types/authz.d.ts +132 -0
  25. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  26. package/dist/{types → api/types}/automation.d.ts +56 -3
  27. package/dist/{types → api/types}/axios.d.ts +19 -14
  28. package/dist/{types → api/types}/bim.d.ts +38 -9
  29. package/dist/{types → api/types}/camera.d.ts +102 -106
  30. package/dist/{types → api/types}/comments.d.ts +10 -11
  31. package/dist/{types → api/types}/company.d.ts +42 -1
  32. package/dist/{types → api/types}/compare.d.ts +20 -5
  33. package/dist/{types → api/types}/connector.d.ts +5 -5
  34. package/dist/{types → api/types}/coolify.d.ts +18 -2
  35. package/dist/{types → api/types}/copilot.d.ts +11 -9
  36. package/dist/{types → api/types}/credentials.d.ts +1 -0
  37. package/dist/{types → api/types}/detections.d.ts +23 -18
  38. package/dist/api/types/drone.d.ts +107 -0
  39. package/dist/{types → api/types}/errors.d.ts +13 -1
  40. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  41. package/dist/api/types/gateReportManagement.d.ts +170 -0
  42. package/dist/api/types/hammertech.d.ts +98 -0
  43. package/dist/{types → api/types}/hdd.d.ts +26 -1
  44. package/dist/{types → api/types}/index.d.ts +15 -2
  45. package/dist/api/types/ingest.d.ts +234 -0
  46. package/dist/{types → api/types}/kit.d.ts +74 -56
  47. package/dist/api/types/map.d.ts +16 -0
  48. package/dist/{types → api/types}/media.d.ts +10 -3
  49. package/dist/api/types/notification.d.ts +96 -0
  50. package/dist/api/types/oauth.d.ts +62 -0
  51. package/dist/api/types/observationEvents.d.ts +61 -0
  52. package/dist/api/types/observations.d.ts +85 -0
  53. package/dist/api/types/planner.d.ts +124 -0
  54. package/dist/api/types/posthog.d.ts +53 -0
  55. package/dist/{types → api/types}/procore.d.ts +13 -6
  56. package/dist/{types → api/types}/progressPhoto.d.ts +6 -2
  57. package/dist/api/types/project.d.ts +254 -0
  58. package/dist/{types → api/types}/recording.d.ts +10 -15
  59. package/dist/{types → api/types}/recycleBin.d.ts +1 -1
  60. package/dist/api/types/ring.d.ts +53 -0
  61. package/dist/{types → api/types}/roi.d.ts +3 -11
  62. package/dist/{types → api/types}/routeParams.d.ts +1 -0
  63. package/dist/{types → api/types}/router.d.ts +20 -1
  64. package/dist/{types → api/types}/shared.d.ts +29 -22
  65. package/dist/api/types/shares.d.ts +45 -0
  66. package/dist/{types → api/types}/sim.d.ts +6 -6
  67. package/dist/api/types/siteAnalytics.d.ts +285 -0
  68. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  69. package/dist/api/types/siteView.d.ts +73 -0
  70. package/dist/api/types/smartSeach.d.ts +5 -0
  71. package/dist/{types → api/types}/snapshots.d.ts +49 -4
  72. package/dist/api/types/socket.d.ts +4 -0
  73. package/dist/api/types/storageProvider.d.ts +19 -0
  74. package/dist/api/types/storyblok.d.ts +27 -0
  75. package/dist/{types → api/types}/streaming.d.ts +3 -3
  76. package/dist/{types → api/types}/tag.d.ts +1 -1
  77. package/dist/api/types/time.d.ts +7 -0
  78. package/dist/{types → api/types}/timelapse.d.ts +7 -11
  79. package/dist/{types → api/types}/user.d.ts +106 -35
  80. package/dist/api/types/videoWall.d.ts +66 -0
  81. package/dist/{types → api/types}/weather.d.ts +75 -11
  82. package/dist/{types → api/types}/widget.d.ts +72 -11
  83. package/dist/{types → api/types}/xweather.d.ts +4 -4
  84. package/dist/{utils.d.ts → api/utils.d.ts} +0 -1
  85. package/dist/index.d.ts +2 -3
  86. package/dist/index.js +2334 -1087
  87. package/dist/index.js.map +1 -1
  88. package/dist/index.umd.cjs +1 -1
  89. package/dist/index.umd.cjs.map +1 -1
  90. package/dist/shared/api/index.d.ts +3 -0
  91. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  92. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  93. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  94. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  95. package/dist/shared/types/components.d.ts +374 -0
  96. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  97. package/dist/shared/types/imagePlayer.d.ts +41 -0
  98. package/dist/shared/types/index.d.ts +7 -0
  99. package/dist/shared/types/observations.d.ts +21 -0
  100. package/dist/shared/types/rbac.d.ts +67 -0
  101. package/dist/shared/types/timeline.d.ts +10 -0
  102. package/package.json +4 -2
  103. package/dist/api/3dFirebaseApi.d.ts +0 -21
  104. package/dist/api/aiApi.d.ts +0 -155
  105. package/dist/api/authzApi.d.ts +0 -21
  106. package/dist/api/ingestApi.d.ts +0 -95
  107. package/dist/api/videoWallApi.d.ts +0 -9
  108. package/dist/types/360.d.ts +0 -141
  109. package/dist/types/drone.d.ts +0 -17
  110. package/dist/types/ingest.d.ts +0 -51
  111. package/dist/types/map.d.ts +0 -4
  112. package/dist/types/notification.d.ts +0 -27
  113. package/dist/types/planner.d.ts +0 -32
  114. package/dist/types/posthog.d.ts +0 -18
  115. package/dist/types/project.d.ts +0 -132
  116. package/dist/types/shares.d.ts +0 -196
  117. package/dist/types/siteAnalytics.d.ts +0 -163
  118. package/dist/types/storageServers.d.ts +0 -4
  119. package/dist/types/time.d.ts +0 -25
  120. package/dist/types/vendorModel.d.ts +0 -15
  121. package/dist/types/videoWall.d.ts +0 -33
  122. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  123. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  124. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  125. /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
  126. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  127. /package/dist/{types → api/types}/countries.d.ts +0 -0
  128. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  129. /package/dist/{types → api/types}/sso.d.ts +0 -0
  130. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  131. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,96 @@
1
+ export declare enum NotificationType {
2
+ CameraShare = "camera_share",
3
+ CameraStatusChange = "camera_status_changed",
4
+ Mention = "mention",
5
+ TimelapseCreated = "timelapse_created",
6
+ TimelapseFailed = "timelapse_failed",
7
+ DroneProcessing = "drone_processing_done",
8
+ Processing360 = "three_sixty_done",
9
+ SmartSearchExportReady = "smart_search_export_ready",
10
+ SmartSearchExportFailed = "smart_search_export_failed",
11
+ GateReportExportReady = "gate_report_export_ready",
12
+ GateReportExportFailed = "gate_report_export_failed",
13
+ PpeExportReady = "ppe_export_ready",
14
+ PpeExportFailed = "ppe_export_failed",
15
+ WeatherExportReady = "weather_export_ready",
16
+ WeatherExportFailed = "weather_export_failed",
17
+ CompareReady = "compare_ready",
18
+ CompareFailed = "compare_failed",
19
+ ClipExportReady = "clip_export_ready",
20
+ ClipExportFailed = "clip_export_failed",
21
+ NvrClipReady = "nvr_clip_ready",
22
+ NvrClipFailed = "nvr_clip_failed",
23
+ UploadComplete = "upload_complete",
24
+ UploadFailed = "upload_failed",
25
+ RingCamerasImported = "ring_cameras_imported",
26
+ StorageWarning = "storage_warning",
27
+ Other = "other"
28
+ }
29
+ export interface NotificationContextBase {
30
+ cameraExid?: string;
31
+ projectExid?: string;
32
+ }
33
+ export interface CameraShareContext extends NotificationContextBase {
34
+ cameraExid: string;
35
+ projectExid: string;
36
+ shareId: number;
37
+ }
38
+ export interface CameraStatusChangeContext extends NotificationContextBase {
39
+ cameraExid: string;
40
+ projectExid: string;
41
+ newStatus: string;
42
+ }
43
+ export interface MentionContext extends NotificationContextBase {
44
+ }
45
+ export interface TimelapseCreatedContext extends NotificationContextBase {
46
+ cameraExid: string;
47
+ projectExid: string;
48
+ archiveExid: string;
49
+ }
50
+ export interface TimelapseFailedContext extends NotificationContextBase {
51
+ cameraExid: string;
52
+ projectExid: string;
53
+ }
54
+ export interface DroneProcessingContext extends NotificationContextBase {
55
+ projectExid: string;
56
+ droneDate: string;
57
+ }
58
+ export interface Processing360Context extends NotificationContextBase {
59
+ projectExid: string;
60
+ date: string;
61
+ floor: string;
62
+ }
63
+ export interface ExportNotificationContext extends NotificationContextBase {
64
+ projectExid: string;
65
+ archiveExid?: string;
66
+ compareExid?: string;
67
+ }
68
+ export interface UploadNotificationContext extends NotificationContextBase {
69
+ projectExid: string;
70
+ }
71
+ export interface RingCamerasImportedContext extends NotificationContextBase {
72
+ projectExid: string;
73
+ projectName: string;
74
+ cameras: Array<{
75
+ exid: string;
76
+ name: string;
77
+ }>;
78
+ }
79
+ export interface StorageWarningContext extends NotificationContextBase {
80
+ projectExid: string;
81
+ cameraName: string;
82
+ }
83
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext;
84
+ export type Notification = {
85
+ id: number;
86
+ type: NotificationType;
87
+ insertedAt: string;
88
+ initiatorId: number;
89
+ initiatorFullname: string;
90
+ initiatorEmail: string;
91
+ targetId: number;
92
+ targetFullname: string;
93
+ targetEmail: string;
94
+ readTimestamp: string | null;
95
+ context: NotificationContext;
96
+ };
@@ -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
+ };
@@ -0,0 +1,61 @@
1
+ export declare enum ObservationEventStatus {
2
+ Detected = "detected",
3
+ Approved = "approved",
4
+ Disapproved = "disapproved",
5
+ Unsure = "unsure"
6
+ }
7
+ export interface ObservationEventStatusConfig {
8
+ bg: string;
9
+ fg: string;
10
+ border: string;
11
+ label: string;
12
+ }
13
+ export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
14
+ export interface SiteAnalyticsObservationEvent {
15
+ id: number;
16
+ observationTypeId: number;
17
+ observationName: string | null;
18
+ observationCode: string | null;
19
+ cameraExid: string;
20
+ projectExid: string | null;
21
+ startTime: string;
22
+ endTime: string | null;
23
+ confidence: number | null;
24
+ status: ObservationEventStatus;
25
+ aiEvidence: string | null;
26
+ bbox: number[] | null;
27
+ model: string | null;
28
+ promptId: number | null;
29
+ observationMetadata: Record<string, unknown> | null;
30
+ trigger: string;
31
+ reviewedBy: string | null;
32
+ reviewedAt: string | null;
33
+ insertedAt: string;
34
+ }
35
+ export type ObservationEventQueryParams = {
36
+ cameraExid?: string;
37
+ projectExid?: string;
38
+ observationTypeIds?: string;
39
+ status?: ObservationEventStatus | string;
40
+ sortBy?: string;
41
+ sortDir?: "asc" | "desc";
42
+ page?: number;
43
+ limit?: number;
44
+ };
45
+ export interface ObservationEventListResponse {
46
+ items: SiteAnalyticsObservationEvent[];
47
+ total: number;
48
+ page: number;
49
+ limit: number;
50
+ from: number;
51
+ to: number;
52
+ }
53
+ export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
54
+ export interface ObservationEventReviewPayload {
55
+ status: ObservationEventVerdict;
56
+ }
57
+ export interface ObservationEventReviewResponse {
58
+ updated: boolean;
59
+ id: number | string;
60
+ message: string;
61
+ }
@@ -0,0 +1,85 @@
1
+ import { type ProjectExid, type CameraExid, type DateType, type BBox, PpeLabel, DownloadFileType } from "@evercam/api/types";
2
+ export declare enum ObservationItemState {
3
+ Absent = 0,
4
+ Present = 1,
5
+ NotVisible = 2
6
+ }
7
+ export type ObservationEventEquipment = {
8
+ score: number;
9
+ bbox: BBox;
10
+ };
11
+ export type ObservationEvent = {
12
+ id: number;
13
+ cameraExid: CameraExid;
14
+ projectExid: ProjectExid;
15
+ capturedAt: DateType;
16
+ personIndex: number;
17
+ personBbox: BBox;
18
+ personScore: number;
19
+ ppe: Partial<Record<PpeLabel, ObservationEventEquipment>>;
20
+ hasHelmet: ObservationItemState | null;
21
+ hasHighVisVest: ObservationItemState | null;
22
+ hasGloves: ObservationItemState | null;
23
+ hasGlasses: ObservationItemState | null;
24
+ modelVersion: string;
25
+ createdAt: DateType;
26
+ compliant: boolean;
27
+ reason: string | null;
28
+ isApproved: boolean | null;
29
+ };
30
+ export type ObservationEventsQueryParams = {
31
+ cameraExid?: CameraExid;
32
+ fromDate?: string;
33
+ toDate?: string;
34
+ required?: string;
35
+ compliant?: boolean;
36
+ hasHelmet?: boolean;
37
+ hasHighVisVest?: boolean;
38
+ hasGloves?: boolean;
39
+ hasGlasses?: boolean;
40
+ sort?: string;
41
+ page?: number;
42
+ limit?: number;
43
+ };
44
+ export type ObservationEventsExportQueryParams = {
45
+ cameraExid?: CameraExid;
46
+ fromDate: string;
47
+ toDate: string;
48
+ required?: string;
49
+ compliant?: boolean;
50
+ fileType: DownloadFileType;
51
+ directDownload?: boolean;
52
+ includeInvalid?: boolean;
53
+ };
54
+ export type ObservationApprovalUpdateResponse = {
55
+ updated: boolean;
56
+ id: number | string | null;
57
+ message: string;
58
+ };
59
+ export declare enum ObservationCountsGranularity {
60
+ Day = "day",
61
+ Week = "week",
62
+ Month = "month"
63
+ }
64
+ export type ObservationEventsCountsQueryParams = {
65
+ cameraExid?: CameraExid;
66
+ fromDate?: string;
67
+ toDate?: string;
68
+ required?: string;
69
+ compliant?: boolean;
70
+ hasHelmet?: boolean;
71
+ hasHighVisVest?: boolean;
72
+ hasGloves?: boolean;
73
+ hasGlasses?: boolean;
74
+ granularity?: ObservationCountsGranularity;
75
+ };
76
+ export type ObservationEventCount = {
77
+ bucket: DateType;
78
+ total: number;
79
+ compliant: number;
80
+ nonCompliant: number;
81
+ };
82
+ export declare enum ObservationRequiredItem {
83
+ Helmet = "has_helmet",
84
+ HighVisVest = "has_high_vis_vest"
85
+ }
@@ -0,0 +1,124 @@
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
+ }
31
+ export declare enum EDistortImageModes {
32
+ FreeRotate = "freeRotate",
33
+ Lock = "lock",
34
+ Rotate = "rotate",
35
+ Scale = "scale",
36
+ Pan = "drag"
37
+ }
38
+ export declare enum EMapTypes {
39
+ Blank = "Blank",
40
+ Satellite = "Satellite",
41
+ Street = "Street",
42
+ GoogleSatellite = "hybrid",
43
+ GoogleStreet = "roadmap",
44
+ GoogleTerrain = "terrain"
45
+ }
46
+ export declare enum EMarkers {
47
+ CameraMarker = "cameraMarker",
48
+ ThreeSixtyMarker = "threeSixtyMarkers"
49
+ }
50
+ export declare enum EPageType {
51
+ List = "list",
52
+ Item = "item"
53
+ }
54
+ export declare enum ERoles {
55
+ Admin = "admin",
56
+ User = "user"
57
+ }
58
+ export type PlannerOverlay = {
59
+ imageUrl?: string;
60
+ corners?: {
61
+ topLeft: GeoPoint;
62
+ topRight: GeoPoint;
63
+ bottomLeft: GeoPoint;
64
+ bottomRight: GeoPoint;
65
+ } | null;
66
+ };
67
+ export type PlannerCameraMarker = {
68
+ name?: string;
69
+ location?: GeoPoint;
70
+ heading?: number;
71
+ fovAngle?: number;
72
+ fovRadius?: number;
73
+ isVisible?: boolean;
74
+ color?: string;
75
+ };
76
+ export type SitePlanBounds = {
77
+ northEast: GeoPoint;
78
+ southWest: GeoPoint;
79
+ };
80
+ export type SitePlan = {
81
+ id?: string;
82
+ projectId?: string;
83
+ owner?: string;
84
+ lastUpdatedBy?: string;
85
+ projectName?: string;
86
+ projectLocation?: string;
87
+ projectMapType?: EMapTypes;
88
+ projectBounds?: SitePlanBounds;
89
+ overlay?: PlannerOverlay;
90
+ markers?: PlannerCameraMarker[];
91
+ thumbnailUrl?: string;
92
+ createdDate?: string;
93
+ updatedDate?: string;
94
+ };
95
+ export interface IDrawControl {
96
+ _toolbars: {
97
+ draw: {
98
+ _activeMode: {
99
+ handler: {
100
+ disable(): void;
101
+ completeShape(): void;
102
+ };
103
+ };
104
+ _modes: {
105
+ polygon: {
106
+ handler: {
107
+ enable(): void;
108
+ };
109
+ };
110
+ };
111
+ };
112
+ edit: {
113
+ _modes: {
114
+ edit: {
115
+ handler: {
116
+ enable(): void;
117
+ disable(): void;
118
+ save(): void;
119
+ };
120
+ };
121
+ };
122
+ };
123
+ };
124
+ }
@@ -0,0 +1,53 @@
1
+ export type ActiveUsersRequestPayload = {
2
+ from?: string;
3
+ to?: string;
4
+ companyExid?: string;
5
+ projectExid?: string;
6
+ cameraExid?: string;
7
+ };
8
+ export type ActiveUsersResponsePayload = Array<{
9
+ date?: string;
10
+ dau?: number;
11
+ wau?: number;
12
+ mau?: number;
13
+ }>;
14
+ export declare enum ActiveUsersMetric {
15
+ DAU = "dau",
16
+ WAU = "wau",
17
+ MAU = "mau"
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,4 +1,4 @@
1
- import { Automation, AutomationType, DateTime, DateType, PaginationParams } from "@/types";
1
+ import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
2
2
  export type ProgressPhotosCreateUpdateRequestPayload = {
3
3
  cameraExids?: string;
4
4
  notifyDays?: string;
@@ -8,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
8
8
  type?: string;
9
9
  config?: {
10
10
  compareDelay?: AutomationType;
11
+ period?: number;
11
12
  recipients?: string;
12
13
  projectId?: number;
13
14
  companyId?: number;
@@ -24,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
24
25
  export type ProgressPhotosResponsePayload = {
25
26
  progressPhotos: Automation[];
26
27
  };
28
+ export type ProgressPhotoItemResponsePayload = {
29
+ progressPhotos: Automation;
30
+ };
27
31
  export declare enum AutomationDialogType {
28
32
  Create = "create",
29
33
  Edit = "edit",
@@ -70,5 +74,5 @@ export type ProgressPhotosHistory = {
70
74
  cameraIds: string;
71
75
  failedCameraIds: string;
72
76
  subject: string;
73
- recipients: DateTime;
77
+ recipients: string;
74
78
  };