@evercam/api 1.0.0-50bf90785 → 1.0.0-511ba8668

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 (124) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +27 -0
  3. package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +127 -63
  4. package/dist/api/api/aiApi.d.ts +128 -0
  5. package/dist/api/api/authzApi.d.ts +37 -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/{evercamApi.d.ts → api/evercamApi.d.ts} +140 -97
  12. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -4
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +13 -0
  15. package/dist/api/api/ingestApi.d.ts +148 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  17. package/dist/api/api/videoWallApi.d.ts +9 -0
  18. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  19. package/dist/api/index.d.ts +3 -13
  20. package/dist/api/types/360.d.ts +276 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/{types → api/types}/analytics.d.ts +184 -42
  24. package/dist/{types → api/types}/anpr.d.ts +26 -13
  25. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  26. package/dist/api/types/authz.d.ts +61 -0
  27. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +95 -0
  29. package/dist/{types → api/types}/axios.d.ts +22 -2
  30. package/dist/{types → api/types}/bim.d.ts +11 -5
  31. package/dist/{types → api/types}/camera.d.ts +106 -74
  32. package/dist/{types → api/types}/comments.d.ts +21 -9
  33. package/dist/api/types/company.d.ts +115 -0
  34. package/dist/{types → api/types}/compare.d.ts +20 -5
  35. package/dist/{types → api/types}/connector.d.ts +3 -5
  36. package/dist/api/types/coolify.d.ts +36 -0
  37. package/dist/{types → api/types}/copilot.d.ts +11 -6
  38. package/dist/{types → api/types}/countries.d.ts +0 -7
  39. package/dist/{types → api/types}/credentials.d.ts +1 -0
  40. package/dist/api/types/detections.d.ts +124 -0
  41. package/dist/{types → api/types}/drone.d.ts +1 -0
  42. package/dist/{types → api/types}/errors.d.ts +13 -0
  43. package/dist/{types → api/types}/gateReport.d.ts +46 -150
  44. package/dist/{types → api/types}/hdd.d.ts +26 -1
  45. package/dist/{types → api/types}/index.d.ts +10 -1
  46. package/dist/api/types/ingest.d.ts +147 -0
  47. package/dist/{types → api/types}/kit.d.ts +64 -9
  48. package/dist/{types → api/types}/media.d.ts +2 -1
  49. package/dist/api/types/notification.d.ts +57 -0
  50. package/dist/api/types/oauth.d.ts +62 -0
  51. package/dist/api/types/planner.d.ts +79 -0
  52. package/dist/api/types/posthog.d.ts +33 -0
  53. package/dist/{types → api/types}/procore.d.ts +26 -16
  54. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  55. package/dist/api/types/project.d.ts +246 -0
  56. package/dist/{types → api/types}/recording.d.ts +4 -4
  57. package/dist/api/types/recycleBin.d.ts +14 -0
  58. package/dist/api/types/ring.d.ts +53 -0
  59. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  60. package/dist/{types → api/types}/router.d.ts +20 -1
  61. package/dist/{types → api/types}/shared.d.ts +12 -10
  62. package/dist/api/types/shares.d.ts +58 -0
  63. package/dist/{types → api/types}/sim.d.ts +6 -6
  64. package/dist/api/types/siteAnalytics.d.ts +287 -0
  65. package/dist/api/types/smartSeach.d.ts +5 -0
  66. package/dist/{types → api/types}/snapshots.d.ts +42 -1
  67. package/dist/api/types/sso.d.ts +55 -0
  68. package/dist/api/types/storageProvider.d.ts +19 -0
  69. package/dist/api/types/storyblok.d.ts +40 -0
  70. package/dist/{types → api/types}/streaming.d.ts +4 -5
  71. package/dist/{types → api/types}/tag.d.ts +1 -1
  72. package/dist/api/types/time.d.ts +7 -0
  73. package/dist/{types → api/types}/timelapse.d.ts +12 -5
  74. package/dist/{types → api/types}/user.d.ts +105 -36
  75. package/dist/api/types/videoWall.d.ts +66 -0
  76. package/dist/api/types/weather.d.ts +153 -0
  77. package/dist/{types → api/types}/widget.d.ts +96 -16
  78. package/dist/{types → api/types}/xweather.d.ts +4 -4
  79. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  80. package/dist/index.d.ts +2 -3
  81. package/dist/index.js +1539 -899
  82. package/dist/index.js.map +1 -1
  83. package/dist/index.umd.cjs +1 -1
  84. package/dist/index.umd.cjs.map +1 -1
  85. package/dist/shared/api/index.d.ts +3 -0
  86. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  87. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  88. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  89. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  90. package/dist/shared/types/components.d.ts +305 -0
  91. package/dist/shared/types/imagePlayer.d.ts +34 -0
  92. package/dist/shared/types/index.d.ts +5 -0
  93. package/dist/shared/types/rbac.d.ts +67 -0
  94. package/dist/shared/types/timeline.d.ts +10 -0
  95. package/package.json +5 -4
  96. package/dist/api/3dFirebaseApi.d.ts +0 -10
  97. package/dist/api/aiApi.d.ts +0 -121
  98. package/dist/api/authzApi.d.ts +0 -21
  99. package/dist/api/ingestApi.d.ts +0 -68
  100. package/dist/api/videoWallApi.d.ts +0 -9
  101. package/dist/types/360.d.ts +0 -83
  102. package/dist/types/aconex.d.ts +0 -45
  103. package/dist/types/automation.d.ts +0 -6
  104. package/dist/types/company.d.ts +0 -46
  105. package/dist/types/coolify.d.ts +0 -18
  106. package/dist/types/detections.d.ts +0 -76
  107. package/dist/types/ingest.d.ts +0 -43
  108. package/dist/types/notification.d.ts +0 -27
  109. package/dist/types/planner.d.ts +0 -28
  110. package/dist/types/project.d.ts +0 -124
  111. package/dist/types/shares.d.ts +0 -196
  112. package/dist/types/siteAnalytics.d.ts +0 -123
  113. package/dist/types/storageServers.d.ts +0 -4
  114. package/dist/types/time.d.ts +0 -19
  115. package/dist/types/videoWall.d.ts +0 -33
  116. package/dist/types/weather.d.ts +0 -87
  117. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  118. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  119. /package/dist/{types → api/types}/map.d.ts +0 -0
  120. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  121. /package/dist/{types → api/types}/roi.d.ts +0 -0
  122. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  123. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  124. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,68 +0,0 @@
1
- import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360AssetsUploadPayload, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, InspectionToolRequestPayload, MobileCaptureSnapshot } from "@evercam/api/types";
2
- export declare const IngestApi: {
3
- drone: {
4
- createUpload(projectId: string, params: {
5
- uploadedBy: string;
6
- }): Promise<import("axios").AxiosResponse<any, any>>;
7
- reprocessDrone(id: number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
8
- getDrones(params: {
9
- params: Partial<DronesQueryParams>;
10
- }): Promise<import("axios").AxiosResponse<any, any>>;
11
- getArchive(id: number, params: {
12
- dataType: string;
13
- }): Promise<import("axios").AxiosResponse<any, any>>;
14
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
15
- prepareForUpload(projectId: string, params: {
16
- uploadedBy: string;
17
- token: string;
18
- }): Promise<import("axios").AxiosResponse<any, any>>;
19
- upload(projectId: string, params: {
20
- uploadedBy: string;
21
- token: string;
22
- }, payload: DroneUploadUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
23
- verifyToken(projectId: string, params: {
24
- token: string;
25
- }): Promise<import("axios").AxiosResponse<any, any>>;
26
- calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
27
- inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
28
- isInspectionEnabled(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
29
- getDroneQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
30
- getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<import("axios").AxiosResponse<any, any>>;
31
- checkFlightAvailableFeatures(projectId: string, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
32
- };
33
- assets360: {
34
- get360Assets(params: {
35
- params: Partial<_360AssetsQueryParams>;
36
- }): Promise<import("axios").AxiosResponse<any, any>>;
37
- get360AssetLink(projectId: string, date: string, floor: string, assetType: string, marker: string | null): Promise<import("axios").AxiosResponse<any, any>>;
38
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
39
- getArchive(id: number, params: {
40
- dateType: string;
41
- }): Promise<import("axios").AxiosResponse<any, any>>;
42
- createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
43
- upload(id: number, params: Record<string, unknown>, payload: _360AssetsUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
44
- generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
45
- get360QueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
46
- };
47
- bim: {
48
- createUpload(projectId: string, params: {
49
- uploadedBy: string;
50
- }): Promise<import("axios").AxiosResponse<any, any>>;
51
- getBIMs(params: {
52
- params: Partial<BimUploadsQueryParams>;
53
- }): Promise<import("axios").AxiosResponse<any, any>>;
54
- getArchive(id: number): Promise<import("axios").AxiosResponse<any, any>>;
55
- deleteUpload(id: number): Promise<import("axios").AxiosResponse<any, any>>;
56
- upload(projectId: string, params: {
57
- id: string;
58
- name: string;
59
- }, payload: BimUploadPayload): Promise<import("axios").AxiosResponse<any, any>>;
60
- };
61
- mobileCapture: {
62
- getProjectMobileAssets(params: Record<string, unknown>): Promise<MobileCaptureSnapshot[]>;
63
- getMobileAssetPhoto(assetId: string | number, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
64
- };
65
- getTotalQueueSize(): Promise<import("axios").AxiosResponse<any, any>>;
66
- getProjectName(projectId: string): Promise<string>;
67
- loadAllAssetsInQueue(): Promise<any[]>;
68
- };
@@ -1,9 +0,0 @@
1
- import { VideoWallPreset } from "@evercam/api/types";
2
- export declare const VideoWallApi: {
3
- presets: {
4
- getProjectPresets(email: string, projectId: number): Promise<import("axios").AxiosResponse<any, any>>;
5
- saveProjectPreset(email: string, projectId: string, payload: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
6
- getGlobalPreset(email: string): Promise<VideoWallPreset>;
7
- saveGlobalPreset(email: string, payload: VideoWallPreset): Promise<void>;
8
- };
9
- };
@@ -1,83 +0,0 @@
1
- import { DateType } from "@/types/time";
2
- export type _360CameraParams = {
3
- azimuthAngle: number;
4
- polarAngle: number;
5
- };
6
- export type _360Floor = {
7
- floorID: string;
8
- name: string;
9
- };
10
- export type _360Scene = {
11
- date: string;
12
- dateID: string;
13
- floors: _360Floor[];
14
- polarAngle: number;
15
- azimuthAngle: number;
16
- };
17
- export type _360ProjectJsonResponse = {
18
- dates: _360Scene[];
19
- [key: string]: any;
20
- };
21
- export type MobileCaptureSnapshot = {
22
- id: string;
23
- uploadedBy: string;
24
- updatedAt: string;
25
- assetType: string;
26
- thumbnailUrl: string;
27
- };
28
- export declare enum _360UrlParams {
29
- DateId = "date_id",
30
- Floor = "floor",
31
- Marker = "marker",
32
- PolarAngle = "polarAngle",
33
- AzimuthAngle = "azimuthAngle"
34
- }
35
- export declare enum _360AssetType {
36
- Video = "video",
37
- Image = "image",
38
- Model = "model",
39
- Route = "route",
40
- MobilePhoto = "mobile_photos",
41
- MobileAudio = "mobile_audios"
42
- }
43
- export declare enum _360IntergrationType {
44
- Evercam = "Evercam",
45
- Matterport = "Matterport",
46
- OpenSpace = "Openspace",
47
- HoloBuilder = "Holobuilder",
48
- DroneDeploy = "Dronedeploy"
49
- }
50
- export type _360AssetsQueryParams = {
51
- page: number;
52
- limit: number;
53
- projectID: string;
54
- date: DateType;
55
- floor: string;
56
- id: string;
57
- };
58
- export type _360AssetsRequestPayload = {
59
- projectId: string;
60
- date: DateType;
61
- floor: string;
62
- uploadedBy?: string;
63
- };
64
- export type _360AssetsUploadPayload = {
65
- targetPointsCount: number;
66
- assetType: string;
67
- upload: {
68
- url: string;
69
- title: string;
70
- fileExtension: string;
71
- }[];
72
- deviceSerial: string;
73
- startPosition: string;
74
- endPosition: string;
75
- isTimelapse: boolean;
76
- };
77
- export type Generate360MapRequestPayload = {
78
- dateId: string;
79
- floorId: string;
80
- cameraOffset: string;
81
- startPoint: string;
82
- endPoint: string;
83
- };
@@ -1,45 +0,0 @@
1
- export type AconexUserProjectsResponsePayload = Array<{
2
- id: number;
3
- name: string;
4
- shortName: string;
5
- startDate: string;
6
- endDate: string;
7
- }>;
8
- export type AconexDocumentSchemaField = {
9
- dataType: AconexDocumentDataType;
10
- identifier: string;
11
- schemaValues?: Array<{
12
- id: string;
13
- value: string;
14
- }>;
15
- fieldName: string;
16
- mandatoryStatus: AconexMandatoryStatus;
17
- componentType?: AconexFormComponentType;
18
- items?: Array<any>;
19
- disabled?: boolean;
20
- };
21
- export declare enum AconexDocumentDataType {
22
- Long = "LONG",
23
- Integer = "INTEGER",
24
- String = "STRING",
25
- Boolean = "BOOLEAN",
26
- Date = "DATE"
27
- }
28
- export declare enum AconexFormComponentType {
29
- Select = "SelectField",
30
- Text = "TextField",
31
- DateTime = "DateTimeField",
32
- Switch = "SwitchField"
33
- }
34
- export declare enum AconexMandatoryStatus {
35
- Mandatory = "MANDATORY",
36
- NotMandatory = "NOT_MANDATORY"
37
- }
38
- export type AconexAuthCallbackParams = {
39
- code: string;
40
- location: string;
41
- };
42
- export type AconexEditedImageUploadRequestPayload = {
43
- projectExid: string;
44
- snapshot: string;
45
- };
@@ -1,6 +0,0 @@
1
- export declare enum AutomationProvider {
2
- Aconex = "aconex",
3
- Procore = "procore",
4
- Autodesk = "autodesk",
5
- Email = "email"
6
- }
@@ -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,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,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,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,124 +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
- SmartSearch = "smart_search"
60
- }
61
- export type ProjectBatteryReading = {
62
- exid: number;
63
- voltage: number;
64
- lastSeen: DateType;
65
- };
66
- export type ThumbnailData = {
67
- cameraExid: CameraExid;
68
- custom: boolean;
69
- image: string;
70
- };
71
- export type ProjectsQueryParams = PaginationParams & {
72
- name: string;
73
- exid: string;
74
- status: ProjectStatus;
75
- cameras: string;
76
- featureFlags: Array<ProjectFeatureFlag>;
77
- archived: string;
78
- };
79
- export type ProjectCreateRequestPayload = {
80
- projectExid?: string;
81
- projectName: string;
82
- ownerId: number;
83
- cameras: string[];
84
- };
85
- export type ProjectCreateResponse = {
86
- name: string;
87
- exid: string;
88
- id: number;
89
- userId: number;
90
- zohoId: string;
91
- };
92
- export type ProjectUpdateRequestPayload = {
93
- name: string;
94
- timezone: string;
95
- featureFlags: ProjectFeatureFlag[];
96
- cameras: string[];
97
- };
98
- export type ProjectStatusStats = {
99
- nil: number;
100
- Completed: number;
101
- "In Progress": number;
102
- "Not Applicable": number;
103
- "To Start": number;
104
- };
105
- export type ProjectUserProperty = {
106
- active: boolean;
107
- activeOneMonth: boolean;
108
- cameraExid: string;
109
- cameraName: string;
110
- cameraRights: string;
111
- email: string;
112
- eventsCount: number;
113
- fullname: string;
114
- id: number;
115
- lastSeenAt: DateTime;
116
- persona: string;
117
- };
118
- export type ProjectUsers = {
119
- cameras: {
120
- exid: string;
121
- name: string;
122
- }[];
123
- users: Record<string, ProjectUserProperty[]>;
124
- };