@evercam/api 1.0.0-739cf3776 → 1.0.0-741727bc1

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 (150) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +221 -0
  3. package/dist/api/api/adminApi.d.ts +394 -0
  4. package/dist/api/api/aiApi.d.ts +251 -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}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +360 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +34 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +14 -0
  15. package/dist/api/api/ingestApi.d.ts +166 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  17. package/dist/api/api/reportsApi.d.ts +15 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  20. package/dist/api/index.d.ts +3 -13
  21. package/dist/api/types/360.d.ts +365 -0
  22. package/dist/api/types/aconex.d.ts +143 -0
  23. package/dist/api/types/admin.d.ts +51 -0
  24. package/dist/api/types/aiConfigs.d.ts +244 -0
  25. package/dist/{types → api/types}/analytics.d.ts +225 -58
  26. package/dist/{types → api/types}/anpr.d.ts +55 -13
  27. package/dist/api/types/apiKey.d.ts +70 -0
  28. package/dist/api/types/auditLogs.d.ts +242 -0
  29. package/dist/api/types/authz.d.ts +132 -0
  30. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  31. package/dist/api/types/automation.d.ts +123 -0
  32. package/dist/{types → api/types}/axios.d.ts +32 -11
  33. package/dist/{types → api/types}/bim.d.ts +39 -10
  34. package/dist/{types → api/types}/camera.d.ts +148 -121
  35. package/dist/api/types/comments.d.ts +64 -0
  36. package/dist/api/types/company.d.ts +114 -0
  37. package/dist/{types → api/types}/compare.d.ts +21 -6
  38. package/dist/{types → api/types}/connector.d.ts +9 -5
  39. package/dist/api/types/coolify.d.ts +36 -0
  40. package/dist/{types → api/types}/countries.d.ts +0 -7
  41. package/dist/{types → api/types}/credentials.d.ts +1 -0
  42. package/dist/api/types/detections.d.ts +117 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/{types → api/types}/errors.d.ts +30 -1
  45. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  46. package/dist/api/types/gateReportManagement.d.ts +170 -0
  47. package/dist/api/types/hammertech.d.ts +98 -0
  48. package/dist/{types → api/types}/hdd.d.ts +26 -1
  49. package/dist/{types → api/types}/index.d.ts +20 -3
  50. package/dist/api/types/ingest.d.ts +301 -0
  51. package/dist/{types → api/types}/kit.d.ts +103 -105
  52. package/dist/api/types/map.d.ts +16 -0
  53. package/dist/{types → api/types}/media.d.ts +9 -3
  54. package/dist/api/types/notification.d.ts +107 -0
  55. package/dist/{types → api/types}/nvr.d.ts +8 -8
  56. package/dist/api/types/oauth.d.ts +62 -0
  57. package/dist/api/types/observationEvents.d.ts +141 -0
  58. package/dist/api/types/observations.d.ts +80 -0
  59. package/dist/api/types/planner.d.ts +125 -0
  60. package/dist/api/types/posthog.d.ts +53 -0
  61. package/dist/api/types/procore.d.ts +229 -0
  62. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  63. package/dist/api/types/project.d.ts +259 -0
  64. package/dist/{types → api/types}/recording.d.ts +10 -16
  65. package/dist/api/types/recycleBin.d.ts +14 -0
  66. package/dist/api/types/reports.d.ts +108 -0
  67. package/dist/api/types/ring.d.ts +53 -0
  68. package/dist/{types → api/types}/roi.d.ts +3 -11
  69. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  70. package/dist/{types → api/types}/router.d.ts +20 -1
  71. package/dist/{types → api/types}/shared.d.ts +43 -31
  72. package/dist/api/types/shares.d.ts +45 -0
  73. package/dist/{types → api/types}/sim.d.ts +6 -6
  74. package/dist/api/types/siteAnalytics.d.ts +285 -0
  75. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  76. package/dist/api/types/siteView.d.ts +78 -0
  77. package/dist/api/types/smartSeach.d.ts +5 -0
  78. package/dist/api/types/snapshots.d.ts +104 -0
  79. package/dist/api/types/socket.d.ts +4 -0
  80. package/dist/api/types/sso.d.ts +55 -0
  81. package/dist/api/types/storageProvider.d.ts +19 -0
  82. package/dist/api/types/storyblok.d.ts +27 -0
  83. package/dist/{types → api/types}/streaming.d.ts +4 -5
  84. package/dist/{types → api/types}/tag.d.ts +1 -1
  85. package/dist/api/types/time.d.ts +7 -0
  86. package/dist/{types → api/types}/timelapse.d.ts +7 -11
  87. package/dist/{types → api/types}/user.d.ts +121 -40
  88. package/dist/api/types/videoWall.d.ts +66 -0
  89. package/dist/api/types/weather.d.ts +153 -0
  90. package/dist/{types → api/types}/widget.d.ts +96 -16
  91. package/dist/{types → api/types}/xweather.d.ts +4 -4
  92. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  93. package/dist/index.d.ts +2 -3
  94. package/dist/index.js +3086 -1068
  95. package/dist/index.js.map +1 -1
  96. package/dist/index.umd.cjs +1 -1
  97. package/dist/index.umd.cjs.map +1 -1
  98. package/dist/shared/api/index.d.ts +3 -0
  99. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  100. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  101. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  102. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  103. package/dist/shared/types/components.d.ts +540 -0
  104. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  105. package/dist/shared/types/droneUpload.d.ts +93 -0
  106. package/dist/shared/types/imagePlayer.d.ts +41 -0
  107. package/dist/shared/types/index.d.ts +9 -0
  108. package/dist/shared/types/observations.d.ts +25 -0
  109. package/dist/shared/types/rbac.d.ts +67 -0
  110. package/dist/shared/types/report.d.ts +107 -0
  111. package/dist/shared/types/timeline.d.ts +10 -0
  112. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  113. package/dist/shared/utils/datePresets.d.ts +31 -0
  114. package/package.json +7 -4
  115. package/dist/api/3dFirebaseApi.d.ts +0 -9
  116. package/dist/api/adminApi.d.ts +0 -313
  117. package/dist/api/aiApi.d.ts +0 -121
  118. package/dist/api/authzApi.d.ts +0 -21
  119. package/dist/api/evercamApi.d.ts +0 -273
  120. package/dist/api/evercamLabsApi.d.ts +0 -42
  121. package/dist/api/ingestApi.d.ts +0 -68
  122. package/dist/api/videoWallApi.d.ts +0 -9
  123. package/dist/types/360.d.ts +0 -83
  124. package/dist/types/aconex.d.ts +0 -45
  125. package/dist/types/auditLogs.d.ts +0 -99
  126. package/dist/types/automation.d.ts +0 -6
  127. package/dist/types/comments.d.ts +0 -43
  128. package/dist/types/company.d.ts +0 -46
  129. package/dist/types/coolify.d.ts +0 -18
  130. package/dist/types/copilot.d.ts +0 -157
  131. package/dist/types/detections.d.ts +0 -76
  132. package/dist/types/drone.d.ts +0 -17
  133. package/dist/types/ingest.d.ts +0 -43
  134. package/dist/types/map.d.ts +0 -4
  135. package/dist/types/notification.d.ts +0 -27
  136. package/dist/types/planner.d.ts +0 -28
  137. package/dist/types/procore.d.ts +0 -76
  138. package/dist/types/project.d.ts +0 -123
  139. package/dist/types/shares.d.ts +0 -196
  140. package/dist/types/siteAnalytics.d.ts +0 -123
  141. package/dist/types/snapshots.d.ts +0 -50
  142. package/dist/types/storageServers.d.ts +0 -4
  143. package/dist/types/time.d.ts +0 -19
  144. package/dist/types/vendorModel.d.ts +0 -15
  145. package/dist/types/videoWall.d.ts +0 -33
  146. package/dist/types/weather.d.ts +0 -87
  147. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  148. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  149. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  150. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,43 +0,0 @@
1
- import { CameraExid, DateType, ProjectExid } from "@/types";
2
- export declare enum CommentsScope {
3
- Recordings = "recordings",
4
- ThreeSixty = "360"
5
- }
6
- export type CommentsRequestPayload = {
7
- cameraExid: CameraExid;
8
- fromDate: string;
9
- toDate: string;
10
- scope: CommentsScope;
11
- page?: number;
12
- limit?: number;
13
- };
14
- export type Comment = {
15
- fromDate?: string;
16
- toDate?: string;
17
- timestamp: string;
18
- projectExid: ProjectExid;
19
- updatedAt?: string;
20
- id?: number;
21
- cameraExid: CameraExid;
22
- content: string;
23
- createdAt?: string;
24
- creatorEmail?: string;
25
- creatorName?: string;
26
- position2d?: [number, number];
27
- position3d?: [number, number, number];
28
- context?: Record<string, unknown>;
29
- canDelete?: boolean;
30
- archivedAt?: string;
31
- };
32
- export type CommentCreationRequestPayload = {
33
- fromDate?: DateType;
34
- toDate?: DateType;
35
- timestamp?: DateType;
36
- scope?: CommentsScope;
37
- projectExid: ProjectExid;
38
- cameraExid?: CameraExid;
39
- content: string;
40
- position2d?: [number, number];
41
- position3d?: [number, number, number];
42
- context?: Record<string, unknown>;
43
- };
@@ -1,46 +0,0 @@
1
- import type { DateType, PaginationParams } from "@/types";
2
- export type CompanyUser = {
3
- id: number;
4
- fullname: string;
5
- email: string;
6
- eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
9
- };
10
- export type CompanyProject = {
11
- exid: string;
12
- name: string;
13
- status: string;
14
- startedAt: DateType;
15
- };
16
- export type Company = {
17
- id: number;
18
- exid: string;
19
- name: string;
20
- zohoId: string;
21
- domains: string;
22
- linkedinUrl: string;
23
- sessions: number;
24
- projects: number;
25
- cameras: number;
26
- users: number;
27
- activeUsers: number;
28
- createdAt: DateType;
29
- };
30
- export type CompanyQueryParams = PaginationParams & {
31
- name: string;
32
- exid: string;
33
- domains: string;
34
- projects: string;
35
- cameras: string;
36
- users: string;
37
- activeUsers: string;
38
- sessions: string;
39
- };
40
- export type CompanyUpdatePayload = {
41
- name: string;
42
- exid: string;
43
- linkedinUrl?: string;
44
- domains?: string;
45
- zohoId?: string;
46
- };
@@ -1,18 +0,0 @@
1
- import { DateType } from "@/types/time";
2
- export type CreateCoolifyAppRequestPayload = {
3
- cameraExid: string;
4
- startDate: DateType;
5
- modelVersion: string;
6
- snapshotRequestTimeout: string | number;
7
- serverUuid: string;
8
- branch: string;
9
- };
10
- export type SaveCoolifyAppRequestPayload = {
11
- contextCameraExid: string;
12
- coolifyServiceId: string;
13
- modelVersion: string;
14
- startTime: string;
15
- branchName: string;
16
- snapshotRequestTimeout: string | number;
17
- serverUuid: string;
18
- };
@@ -1,157 +0,0 @@
1
- import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/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
- }
31
- export declare enum CopilotMissingFieldsLabels {
32
- ProjectExid = "Project",
33
- CameraExid = "Camera",
34
- FromDate = "Start date",
35
- ToDate = "End date"
36
- }
37
- export type CopilotMissingField<T = any> = {
38
- name: string;
39
- label: string;
40
- value: any;
41
- type: string;
42
- toolId: string;
43
- error?: T;
44
- };
45
- export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
46
- export type UserConversations = CopilotConversation & {
47
- Message: CopilotMessage[];
48
- };
49
- export declare enum CopilotSocketEvent {
50
- ConversationStart = "conversation:start",
51
- ConversationCreated = "conversation:created",
52
- LLMMessageChunk = "llm:message:chunk",
53
- LLMMessageComplete = "llm:message:complete",
54
- LLMMessageLoading = "llm:message:loading",
55
- LLMRequestCancel = "llm:request:cancel",
56
- LLMRequestCanceled = "llm:request:canceled",
57
- UserMessage = "user:message",
58
- ContextError = "chat:contextError",
59
- ChatError = "chat:chatError",
60
- MissingFields = "chat:missingFields",
61
- MissingFieldsCompleted = "chat:missingFields:completed",
62
- SystemToolCallResponse = "system:toolCall:response",
63
- ChangeProvider = "chat:changeProvider"
64
- }
65
- export type CopilotConversation = {
66
- id: number;
67
- user: string;
68
- model: string;
69
- context: string;
70
- cameraExid: CameraExid;
71
- projectExid: ProjectExid;
72
- startDate: string;
73
- endDate: string;
74
- messagesCount: number;
75
- };
76
- export declare enum CopilotProvider {
77
- Gemini = "gemini",
78
- ChatGPT = "chatgpt"
79
- }
80
- export declare enum CopilotSuggestion {
81
- UserManual = "user_manual",
82
- GateReport = "gate_report",
83
- Weather = "weather",
84
- Clip = "clip",
85
- Timelapse = "timelapse",
86
- Chart = "chart"
87
- }
88
- export declare enum CopilotChatProvider {
89
- Gemini = "gemini",
90
- ChatGpt = "chatGpt"
91
- }
92
- export declare enum CopilotLayout {
93
- Floating = "floating"
94
- }
95
- export declare enum CopilotToolId {
96
- GetReports = "getReports",
97
- GetVehiclesDetections = "getVehiclesDetections",
98
- GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
99
- GetWeather = "getWeather",
100
- CreateClip = "createClip",
101
- NavigateToPage = "navigateToPage",
102
- CreateTimelapse = "createTimelapse",
103
- RequestMissingFields = "requestMissingFields",
104
- RenderCharts = "renderCharts"
105
- }
106
- export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
107
- toolId?: CopilotToolId;
108
- input?: I;
109
- output?: O;
110
- };
111
- export type CopilotCamera = {
112
- name: string;
113
- exid: CameraExid;
114
- status: CameraStatus;
115
- featureFlags?: CameraFeatureFlag[];
116
- };
117
- export type CopilotProject = {
118
- name: string;
119
- exid: ProjectExid;
120
- status: ProjectStatus;
121
- featureFlags?: ProjectFeatureFlag[];
122
- cameras?: CopilotCamera[];
123
- };
124
- export type CopilotMessageContext = {
125
- pageId?: AnalyticsEventPageId;
126
- selectedCamera?: CopilotCamera;
127
- selectedProject?: CopilotProject;
128
- };
129
- export type CopilotMessageStep = {
130
- args: string[];
131
- depth: number;
132
- id?: number;
133
- message_id?: number;
134
- step: CopilotStepId;
135
- timestamp: string;
136
- };
137
- export declare enum CopilotMissingFieldComponent {
138
- Select = "SelectField",
139
- DateTime = "DateTimeField",
140
- Schedule = "ScheduleField",
141
- MultiOptions = "MultiOptionsField",
142
- Switch = "SwitchField"
143
- }
144
- export declare enum CopilotMissingFieldName {
145
- ProjectExid = "projectExid",
146
- CameraExid = "cameraExid",
147
- FromDate = "fromDate",
148
- ToDate = "toDate",
149
- Schedule = "schedule",
150
- Duration = "duration"
151
- }
152
- export declare enum CopilotMissingFieldType {
153
- Boolean = "boolean",
154
- String = "string",
155
- Number = "number"
156
- }
157
- export type CopilotCompletedFields = Record<string, unknown>;
@@ -1,76 +0,0 @@
1
- import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
2
- export type DetectionsFilters = {
3
- cameraExid: CameraExid;
4
- fromDate: string | Date;
5
- toDate: string | Date;
6
- labels: DetectionLabel | DetectionLabel[];
7
- trackId?: number;
8
- };
9
- export type BBox = number[];
10
- export type SelectedObjectPath = {
11
- label: string;
12
- trackId: string;
13
- paths: Array<{
14
- timestamp: number;
15
- center: [number, number];
16
- bbox: BBox;
17
- }>;
18
- };
19
- export type Detection = {
20
- bbox: BBox;
21
- timestamp: string | Date;
22
- };
23
- export type Tracking = {
24
- trackId: number;
25
- fromDate: string | Date;
26
- toDate: string | Date;
27
- detections: Detection[];
28
- };
29
- export type TrackingLabel = string;
30
- export type TrackingsByLabel = Record<TrackingLabel, Tracking[]>;
31
- export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
32
- export type SegmentPolygonCoords = number[][];
33
- export type Segment = {
34
- id: number;
35
- mask?: SegmentPolygonCoords;
36
- label: string;
37
- timestamp: string | Date;
38
- cameraExid?: CameraExid;
39
- bbox?: BoundingBox;
40
- area?: number;
41
- };
42
- export type SegmentSimilarityResult = {
43
- distance: number;
44
- segment: Segment;
45
- };
46
- export type SegmentsSimilaritySearchResult = {
47
- firstSeen: DateType | null;
48
- lastSeen: DateType | null;
49
- similarSegments: SegmentSimilarityResult[];
50
- };
51
- export type SegmentsSimilaritySearchParams = {
52
- cameraExid: CameraExid;
53
- referenceId: string;
54
- iouThreshold?: number;
55
- fromDate: string;
56
- toDate: string;
57
- };
58
- export type CountsParams = {
59
- cameraExid: CameraExid;
60
- fromDate: string | Date;
61
- toDate: string | Date;
62
- precision: keyof typeof TimelinePrecision;
63
- trackId: number;
64
- labels: DetectionLabel | DetectionLabel[];
65
- };
66
- export type CountByPeriod = {
67
- date: string | Date;
68
- counts: Record<string, number>;
69
- };
70
- export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
71
- export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
72
- export type LuminanceReading = {
73
- timestamp: string;
74
- luminanceDelta: number;
75
- luminanceAverage: number;
76
- };
@@ -1,17 +0,0 @@
1
- export type DroneModel = {
2
- cesiumId: string;
3
- cesiumId2D: string;
4
- date: string;
5
- cesiumPointCloudId: string;
6
- pointSize: string;
7
- maximumScreenSpaceError: string;
8
- link: string;
9
- trueIndex: number;
10
- };
11
- export type DroneProjectJsonResponse = {
12
- models: DroneModel[];
13
- [key: string]: any;
14
- };
15
- export declare enum DroneUrlParams {
16
- Date = "date"
17
- }
@@ -1,43 +0,0 @@
1
- import { PaginationParams, DateType } from "@/types";
2
- export declare enum IngestProcessingStatus {
3
- Completed = "completed",
4
- Uploading = "uploading",
5
- Created = "created",
6
- Failed = "failed",
7
- Aborted = "aborted",
8
- Paused = "paused",
9
- InProgress = "inprogress",
10
- Pending = "pending"
11
- }
12
- export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
13
- projectId: string;
14
- consumed: string;
15
- token: string;
16
- processingStatus: IngestProcessingStatus;
17
- };
18
- export type DroneUploadUpdateRequestPayload = {
19
- flightMetadata: {
20
- dateTime: string;
21
- gpsAltitude: string;
22
- gpsCoordinates: string;
23
- };
24
- upload: {
25
- url: string;
26
- title: string;
27
- fileExtension: string;
28
- }[];
29
- projectName: string;
30
- };
31
- export type CalculateMeasuringOperationRequestPayload = {
32
- date: DateType;
33
- points: [number, number][];
34
- operation: string;
35
- };
36
- export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
37
- date: DateType;
38
- };
39
- export type InspectionToolRequestPayload = {
40
- date: DateType;
41
- gpsAltitude: string;
42
- gpsCoordinates: string;
43
- };
@@ -1,4 +0,0 @@
1
- export declare enum MapType {
2
- Hybrid = "hybrid",
3
- Terrain = "terrain"
4
- }
@@ -1,27 +0,0 @@
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
- }
10
- export interface CameraShareContext {
11
- cameraExid: string;
12
- projectExid: string;
13
- shareId: number;
14
- }
15
- export type Notification = {
16
- id: number;
17
- type: NotificationType;
18
- insertedAt: string;
19
- initiatorId: number;
20
- initiatorFullname: string;
21
- initiatorEmail: string;
22
- targetId: number;
23
- targetFullname: string;
24
- targetEmail: string;
25
- readTimestamp: string | null;
26
- context: CameraShareContext;
27
- };
@@ -1,28 +0,0 @@
1
- export declare enum EMapTypes {
2
- Blank = "Blank",
3
- Satellite = "Satellite",
4
- Street = "Street",
5
- GoogleSatellite = "hybrid",
6
- GoogleStreet = "roadmap",
7
- GoogleTerrain = "terrain"
8
- }
9
- export declare enum EMarkers {
10
- CameraMarker = "cameraMarker",
11
- ThreeSixtyMarker = "threeSixtyMarkers"
12
- }
13
- export declare enum EPageType {
14
- List = "list",
15
- Item = "item"
16
- }
17
- export declare enum EPaths {
18
- Home = "/",
19
- Session = "/session"
20
- }
21
- export declare enum EProjectItems {
22
- Camera = "camera",
23
- Overlay = "overlay"
24
- }
25
- export declare enum ERoles {
26
- Admin = "admin",
27
- User = "user"
28
- }
@@ -1,76 +0,0 @@
1
- export type ProcoreUserCompaniesResponsePayload = Array<{
2
- id: number;
3
- isActive?: boolean;
4
- name: string;
5
- }>;
6
- export type ProcoreUserProjectRequestPayload = {
7
- companyId: number;
8
- };
9
- export type ProcoreUserProjectsResponsePayload = Array<{
10
- accountingProjectNumber?: number;
11
- active: boolean;
12
- address: string;
13
- city: string;
14
- company: {
15
- id: number;
16
- name: string;
17
- };
18
- completionDate: string;
19
- countryCode: string;
20
- county: string;
21
- createdAt: string;
22
- customFields?: object;
23
- designatedMarketArea: string;
24
- displayName: string;
25
- estimatedValue: string;
26
- id: number;
27
- isDemo: boolean;
28
- latitude: number;
29
- longitude: number;
30
- name: string;
31
- originCode: string | number | null;
32
- originData: string | null;
33
- originId: number | null;
34
- ownersProjectId: number | null;
35
- parentJobId: number | null;
36
- phone: string | number;
37
- photoId: number;
38
- projectBidTypeId: number | null;
39
- projectNumber: string;
40
- projectOwnerTypeId: number | null;
41
- projectRegionId: number | null;
42
- stage: string;
43
- startDate: string;
44
- stateCode: string;
45
- storeNumber?: string;
46
- timeZone: string;
47
- totalValue: string;
48
- updatedAt: string;
49
- zip: number;
50
- }>;
51
- export type ProcoreEditedImageUploadRequestPayload = {
52
- projectExid: string;
53
- companyId: number;
54
- projectId: number;
55
- snapshot: string;
56
- categoryId?: number;
57
- };
58
- export type ProcoreProjectsAlbumsPayload = Array<{
59
- count: number;
60
- coverPhoto: string | null;
61
- createdAt: string;
62
- id: number;
63
- links: {
64
- delete: string;
65
- show: string;
66
- update: string;
67
- };
68
- name: string;
69
- position: number;
70
- private: boolean;
71
- updatedAt: string;
72
- }>;
73
- export type ProcoreProjectsAlbumsRequestPayload = {
74
- companyId: number;
75
- projectId: number;
76
- };
@@ -1,123 +0,0 @@
1
- import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
2
- export type ProjectExid = Exid;
3
- export type ProjectsByExid = EntityByExid<Project>;
4
- export type Project = {
5
- id: string | number;
6
- exid: ProjectExid;
7
- name: string;
8
- status?: ProjectStatus;
9
- insertedAt?: string;
10
- startedAt?: string;
11
- timezone?: string;
12
- zohoId?: string;
13
- cameras?: Array<Camera | AdminCamera>;
14
- featureFlags: Array<ProjectFeatureFlag>;
15
- owner?: {
16
- email?: string;
17
- };
18
- camerasRestrictionType?: string;
19
- };
20
- export declare enum ProjectStatus {
21
- ToStart = "To Start",
22
- InProgress = "In Progress",
23
- Completed = "Completed",
24
- NotAplicable = "Not Applicable"
25
- }
26
- export declare enum ProjectArchiveTier {
27
- Full = "Full",
28
- Partial = "Partial",
29
- Minimal = "Minimal",
30
- ScheduledForDeletion = "Scheduled for Deletion"
31
- }
32
- export type ProjectResponsePayload = {
33
- data?: Project[];
34
- };
35
- export type UpdateCameraRestrictionPayload = {
36
- isAccessRestricted?: boolean;
37
- };
38
- export type Logo = {
39
- name: string;
40
- url: string;
41
- };
42
- export type ProjectLogoResponsePayload = Logo[];
43
- export declare enum ProjectFeatureFlag {
44
- AnprLegacy = "anpr_legacy",
45
- DroneView = "drone_view",
46
- Bim = "4d_bim",
47
- BimItwin = "4d_bim_itwin",
48
- BimForge = "4d_bim_forge",
49
- ThreeSixtyView = "360_view",
50
- NdaMc = "NDA/MC",
51
- GateReport = "gate_report",
52
- GateReportAutoVerify = "auto_publish",
53
- GateReportMotionDetection = "motion_detection",
54
- FullEmpty = "full_empty",
55
- MediaHubSharing = "archives_sharing",
56
- GateReportAnprBased = "anpr_sourced",
57
- NoLicensePlate = "no_license_plate",
58
- DefaultToProjectApp = "default_to_project_app"
59
- }
60
- export type ProjectBatteryReading = {
61
- exid: number;
62
- voltage: number;
63
- lastSeen: DateType;
64
- };
65
- export type ThumbnailData = {
66
- cameraExid: CameraExid;
67
- custom: boolean;
68
- image: string;
69
- };
70
- export type ProjectsQueryParams = PaginationParams & {
71
- name: string;
72
- exid: string;
73
- status: ProjectStatus;
74
- cameras: string;
75
- featureFlags: Array<ProjectFeatureFlag>;
76
- archived: string;
77
- };
78
- export type ProjectCreateRequestPayload = {
79
- projectExid?: string;
80
- projectName: string;
81
- ownerId: number;
82
- cameras: string[];
83
- };
84
- export type ProjectCreateResponse = {
85
- name: string;
86
- exid: string;
87
- id: number;
88
- userId: number;
89
- zohoId: string;
90
- };
91
- export type ProjectUpdateRequestPayload = {
92
- name: string;
93
- timezone: string;
94
- featureFlags: ProjectFeatureFlag[];
95
- cameras: string[];
96
- };
97
- export type ProjectStatusStats = {
98
- nil: number;
99
- Completed: number;
100
- "In Progress": number;
101
- "Not Applicable": number;
102
- "To Start": number;
103
- };
104
- export type ProjectUserProperty = {
105
- active: boolean;
106
- activeOneMonth: boolean;
107
- cameraExid: string;
108
- cameraName: string;
109
- cameraRights: string;
110
- email: string;
111
- eventsCount: number;
112
- fullname: string;
113
- id: number;
114
- lastSeenAt: DateTime;
115
- persona: string;
116
- };
117
- export type ProjectUsers = {
118
- cameras: {
119
- exid: string;
120
- name: string;
121
- }[];
122
- users: Record<string, ProjectUserProperty[]>;
123
- };