@evercam/api 1.0.0-003291add

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 (104) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +183 -0
  3. package/dist/api/api/adminApi.d.ts +377 -0
  4. package/dist/api/api/aiApi.d.ts +128 -0
  5. package/dist/api/api/authzApi.d.ts +37 -0
  6. package/dist/api/api/client/axios.d.ts +14 -0
  7. package/dist/api/api/client/customErrors.d.ts +90 -0
  8. package/dist/api/api/client/index.d.ts +5 -0
  9. package/dist/api/api/client/interceptors.d.ts +10 -0
  10. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  11. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  12. package/dist/api/api/evercamApi.d.ts +337 -0
  13. package/dist/api/api/evercamLabsApi.d.ts +45 -0
  14. package/dist/api/api/exNvrApi.d.ts +43 -0
  15. package/dist/api/api/index.d.ts +13 -0
  16. package/dist/api/api/ingestApi.d.ts +148 -0
  17. package/dist/api/api/ptzApi.d.ts +45 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/api/webRtcApi.d.ts +22 -0
  21. package/dist/api/index.d.ts +3 -0
  22. package/dist/api/types/360.d.ts +281 -0
  23. package/dist/api/types/aconex.d.ts +143 -0
  24. package/dist/api/types/admin.d.ts +51 -0
  25. package/dist/api/types/analytics.d.ts +597 -0
  26. package/dist/api/types/anpr.d.ts +114 -0
  27. package/dist/api/types/auditLogs.d.ts +99 -0
  28. package/dist/api/types/authz.d.ts +61 -0
  29. package/dist/api/types/autodesk.d.ts +29 -0
  30. package/dist/api/types/automation.d.ts +95 -0
  31. package/dist/api/types/axios.d.ts +71 -0
  32. package/dist/api/types/bim.d.ts +153 -0
  33. package/dist/api/types/camera.d.ts +535 -0
  34. package/dist/api/types/comments.d.ts +55 -0
  35. package/dist/api/types/company.d.ts +115 -0
  36. package/dist/api/types/compare.d.ts +72 -0
  37. package/dist/api/types/connector.d.ts +19 -0
  38. package/dist/api/types/coolify.d.ts +36 -0
  39. package/dist/api/types/copilot.d.ts +162 -0
  40. package/dist/api/types/countries.d.ts +500 -0
  41. package/dist/api/types/credentials.d.ts +6 -0
  42. package/dist/api/types/detections.d.ts +124 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/errors.d.ts +49 -0
  45. package/dist/api/types/gateReport.d.ts +332 -0
  46. package/dist/api/types/hdd.d.ts +88 -0
  47. package/dist/api/types/index.d.ts +65 -0
  48. package/dist/api/types/ingest.d.ts +147 -0
  49. package/dist/api/types/kit.d.ts +383 -0
  50. package/dist/api/types/map.d.ts +16 -0
  51. package/dist/api/types/media.d.ts +115 -0
  52. package/dist/api/types/notification.d.ts +57 -0
  53. package/dist/api/types/nvr.d.ts +36 -0
  54. package/dist/api/types/oauth.d.ts +62 -0
  55. package/dist/api/types/planner.d.ts +133 -0
  56. package/dist/api/types/posthog.d.ts +33 -0
  57. package/dist/api/types/procore.d.ts +229 -0
  58. package/dist/api/types/progressPhoto.d.ts +78 -0
  59. package/dist/api/types/project.d.ts +247 -0
  60. package/dist/api/types/recording.d.ts +125 -0
  61. package/dist/api/types/recycleBin.d.ts +14 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +27 -0
  64. package/dist/api/types/routeParams.d.ts +52 -0
  65. package/dist/api/types/router.d.ts +86 -0
  66. package/dist/api/types/shared.d.ts +219 -0
  67. package/dist/api/types/shares.d.ts +58 -0
  68. package/dist/api/types/sim.d.ts +114 -0
  69. package/dist/api/types/siteAnalytics.d.ts +287 -0
  70. package/dist/api/types/siteView.d.ts +74 -0
  71. package/dist/api/types/smartSeach.d.ts +5 -0
  72. package/dist/api/types/snapshots.d.ts +91 -0
  73. package/dist/api/types/sso.d.ts +55 -0
  74. package/dist/api/types/storageProvider.d.ts +19 -0
  75. package/dist/api/types/storyblok.d.ts +40 -0
  76. package/dist/api/types/streaming.d.ts +97 -0
  77. package/dist/api/types/systemCheck.d.ts +11 -0
  78. package/dist/api/types/tag.d.ts +12 -0
  79. package/dist/api/types/time.d.ts +7 -0
  80. package/dist/api/types/timelapse.d.ts +106 -0
  81. package/dist/api/types/user.d.ts +345 -0
  82. package/dist/api/types/vendorModel.d.ts +15 -0
  83. package/dist/api/types/videoWall.d.ts +66 -0
  84. package/dist/api/types/voyageControl.d.ts +6 -0
  85. package/dist/api/types/weather.d.ts +153 -0
  86. package/dist/api/types/widget.d.ts +252 -0
  87. package/dist/api/types/xweather.d.ts +12 -0
  88. package/dist/api/utils.d.ts +10 -0
  89. package/dist/index.d.ts +2 -0
  90. package/dist/index.js +3707 -0
  91. package/dist/index.js.map +1 -0
  92. package/dist/index.umd.cjs +2 -0
  93. package/dist/index.umd.cjs.map +1 -0
  94. package/dist/shared/api/index.d.ts +3 -0
  95. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  96. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  97. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  98. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  99. package/dist/shared/types/components.d.ts +301 -0
  100. package/dist/shared/types/imagePlayer.d.ts +34 -0
  101. package/dist/shared/types/index.d.ts +5 -0
  102. package/dist/shared/types/rbac.d.ts +67 -0
  103. package/dist/shared/types/timeline.d.ts +10 -0
  104. package/package.json +50 -0
@@ -0,0 +1,74 @@
1
+ import { ForgeView } from "@evercam/api/types/360";
2
+ import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ export declare enum SiteViewSoftwareType {
4
+ Revit = "Revit",
5
+ Navisworks = "Navisworks",
6
+ Drone = "Drone",
7
+ Synchro = "Synchro"
8
+ }
9
+ export declare enum SiteViewerType {
10
+ ITwin = "iTwin",
11
+ Cesium = "Cesium",
12
+ Forge = "Forge"
13
+ }
14
+ export type SiteViewCameraListItem = {
15
+ projectId: string;
16
+ projectName: string;
17
+ software: SiteViewSoftwareType;
18
+ type: SiteViewerType;
19
+ uniqueId: string;
20
+ integrationType?: string;
21
+ };
22
+ export type ForgeUrn = {
23
+ displayName: string;
24
+ urn: string;
25
+ isModelHostedByEvercamACC?: boolean;
26
+ };
27
+ export type ForgeAccAlignmentData = {
28
+ bbox: {
29
+ min: Point2D;
30
+ max: Point2D;
31
+ };
32
+ transform: number[];
33
+ };
34
+ export type TimelineItem = {
35
+ taskNumber: number;
36
+ taskID: string;
37
+ actualStartDate: string;
38
+ actualEndDate: string;
39
+ plannedStartDate: string;
40
+ plannedEndDate: string;
41
+ objectIDs: number[];
42
+ };
43
+ export type ForgeMarkerTransform = {
44
+ default: {
45
+ position: Point3D;
46
+ type: string;
47
+ };
48
+ };
49
+ export type ForgeMarker = {
50
+ name: string;
51
+ cameraExid: string;
52
+ transforms: ForgeMarkerTransform;
53
+ };
54
+ export type ForgeProjectData = {
55
+ urns?: ForgeUrn[];
56
+ isEvercamAccount?: boolean;
57
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
58
+ timeline?: TimelineItem[];
59
+ savedView?: ForgeView;
60
+ markers?: ForgeMarker[];
61
+ };
62
+ export type ItwinModel = {
63
+ name: string;
64
+ iTwinId: string;
65
+ iModelId: string;
66
+ changeSetId?: string;
67
+ isIModel: boolean;
68
+ height?: number;
69
+ cesiumId?: number;
70
+ markerDistanceThreshold: number;
71
+ };
72
+ export type ItwinProjectData = {
73
+ models: ItwinModel[];
74
+ };
@@ -0,0 +1,5 @@
1
+ import { CameraExid } from "@evercam/api/types";
2
+ export type SmartSearchQueriesRequestPayload = {
3
+ camerasExid: CameraExid[];
4
+ name?: string;
5
+ };
@@ -0,0 +1,91 @@
1
+ import { CameraExid, DateType, PaginationParams, Schedule } from "@evercam/api/types";
2
+ export type SnapshotExtractionQyeryParams = PaginationParams & {
3
+ camera: string;
4
+ cameraExid: CameraExid;
5
+ status: SnapshotExtractionStatus;
6
+ };
7
+ export declare enum SnapshotExtractionStatus {
8
+ Completed = "completed",
9
+ Failed = "failed",
10
+ Processing = "processing"
11
+ }
12
+ export declare enum SnapshotExtractionType {
13
+ Cloud = "cloud",
14
+ Local = "local",
15
+ Timelapse = "timelapse"
16
+ }
17
+ export type SnapshotExtraction = {
18
+ id: number;
19
+ cameraId: number;
20
+ cameraExid: CameraExid;
21
+ cameraName: string;
22
+ fromDate: DateType;
23
+ toDate: DateType;
24
+ type: SnapshotExtractionType;
25
+ notes: string;
26
+ status: SnapshotExtractionStatus;
27
+ interval: number;
28
+ requestor: string;
29
+ jpegsToDropbox: boolean;
30
+ injectTo_cr: Boolean;
31
+ schedule: Schedule;
32
+ created_at: DateType;
33
+ };
34
+ export type SnapshotTestPayload = {
35
+ cameraExid?: CameraExid;
36
+ camUsername: string;
37
+ camPassword: string;
38
+ externalUrl: string;
39
+ jpgUrl: string;
40
+ };
41
+ export type SnapshotTestResponse = {
42
+ status: string;
43
+ data: string;
44
+ };
45
+ export type DeleteSnapshotQueryParams = {
46
+ fromDate: DateType;
47
+ toDate: DateType;
48
+ adminEmail: string;
49
+ adminFullname: string;
50
+ };
51
+ export type SnapshotTransfer = {
52
+ id: number;
53
+ sourceCamera: SnapshotTransferCamera;
54
+ targetCamera: SnapshotTransferCamera;
55
+ fromDate: DateType;
56
+ toDate: DateType;
57
+ overwriteExisting?: boolean | null;
58
+ deleteSource?: boolean | null;
59
+ requestor: SnapshotTransferRequestor;
60
+ status: SnapshotTransferStatus;
61
+ insertedAt: DateType;
62
+ attempts?: number | null;
63
+ errorMessage?: string | null;
64
+ snapshotsTransferred?: number | null;
65
+ };
66
+ export type SnapshotTransferCamera = {
67
+ id: number;
68
+ exid: CameraExid;
69
+ name: string;
70
+ };
71
+ export type SnapshotTransferRequestor = {
72
+ email: string;
73
+ firstname: string;
74
+ lastname: string;
75
+ };
76
+ export declare enum SnapshotTransferStatus {
77
+ Completed = "completed",
78
+ Failed = "failed",
79
+ Processing = "processing",
80
+ Pending = "pending",
81
+ Cancelled = "cancelled"
82
+ }
83
+ export type TransferCloudRecordingsQueryParams = PaginationParams & {
84
+ targetCameraExid: CameraExid;
85
+ fromDate: DateType;
86
+ toDate: DateType;
87
+ overwriteExisting?: boolean;
88
+ deleteSource?: boolean;
89
+ adminEmail?: string;
90
+ adminFullname?: string;
91
+ };
@@ -0,0 +1,55 @@
1
+ export type SsoProvider = {
2
+ id: number;
3
+ name: string;
4
+ exid: string;
5
+ clientId: string;
6
+ clientSecret: string;
7
+ scope: string;
8
+ responseType: string;
9
+ loginUrl: string;
10
+ iconUrl: string;
11
+ options: {
12
+ showOnLogin: boolean;
13
+ showOnSignup: boolean;
14
+ };
15
+ tokenUri: string;
16
+ tokenIntrospectionUri: string;
17
+ userInfoUri: string;
18
+ enabled: boolean;
19
+ };
20
+ export type SsoUpdatePayload = {
21
+ name: string;
22
+ exid: string;
23
+ clientId: string;
24
+ clientSecret: string;
25
+ scope: string;
26
+ responseType: string;
27
+ loginUrl: string;
28
+ iconUrl: string;
29
+ options: {
30
+ showOnLogin: boolean;
31
+ showOnSignup: boolean;
32
+ };
33
+ tokenUri: string;
34
+ tokenIntrospectionUri: string;
35
+ userInfoUri: string;
36
+ enabled: boolean;
37
+ };
38
+ export type SsoCreatePayload = {
39
+ name: string;
40
+ exid: string;
41
+ clientId: string;
42
+ clientSecret: string;
43
+ scope: string;
44
+ responseType: string;
45
+ loginUrl: string;
46
+ iconUrl: string;
47
+ options: {
48
+ showOnLogin: boolean;
49
+ showOnSignup: boolean;
50
+ };
51
+ tokenUri: string;
52
+ tokenIntrospectionUri: string;
53
+ userInfoUri: string;
54
+ enabled: boolean;
55
+ };
@@ -0,0 +1,19 @@
1
+ import type { DateType } from "@evercam/api/types";
2
+ export type StorageProvider = {
3
+ id?: number;
4
+ cameraId: number;
5
+ type: string;
6
+ provider: string;
7
+ url: string;
8
+ startDate: DateType;
9
+ endDate: DateType;
10
+ config: Record<string, any>;
11
+ insertedAt?: DateType;
12
+ };
13
+ export type StorageProvidersResponsePayload = {
14
+ providers: StorageProvider[];
15
+ };
16
+ export declare enum ProjectStorageProvider {
17
+ Seaweedfs = "seaweedfs",
18
+ S3 = "s3"
19
+ }
@@ -0,0 +1,40 @@
1
+ import type { JsonObject, JsonValue } from "@evercam/api/types";
2
+ export type StoryblokAsset = {
3
+ id: number | null;
4
+ alt: string | null;
5
+ name: string;
6
+ focus: string | null;
7
+ title: string | null;
8
+ filename: string;
9
+ copyright: string | null;
10
+ fieldtype: "asset";
11
+ source?: string;
12
+ metaData?: JsonObject;
13
+ isExternalUrl?: boolean;
14
+ };
15
+ export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
16
+ id: number;
17
+ uuid: string;
18
+ name: string;
19
+ slug: string;
20
+ fullSlug: string;
21
+ content: TContent;
22
+ createdAt: string;
23
+ publishedAt: string | null;
24
+ updatedAt: string;
25
+ position: number;
26
+ tagList: string[];
27
+ isStartpage: boolean;
28
+ parentId: number | null;
29
+ groupId: string;
30
+ firstPublishedAt: string | null;
31
+ releaseId: number | null;
32
+ lang: string;
33
+ path: string;
34
+ };
35
+ export type StoryblokResponse<TContent extends JsonObject = JsonObject> = {
36
+ story: StoryblokStory<TContent>;
37
+ cv: number;
38
+ rels: JsonValue[];
39
+ links: JsonValue[];
40
+ };
@@ -0,0 +1,97 @@
1
+ import { KitMetricData } from "@evercam/api/types";
2
+ export type ExNvrLoginResponse = {
3
+ accessToken: string;
4
+ };
5
+ export type ExNvrRecordingInterval = {
6
+ active: boolean;
7
+ startDate: string;
8
+ endDate: string;
9
+ };
10
+ export type ExNvrDeviceConfig = {
11
+ id: string;
12
+ name: string;
13
+ type: string;
14
+ state: ExNvrDeviceState;
15
+ credentials: {
16
+ password: string;
17
+ username: string;
18
+ };
19
+ mac: string;
20
+ url: string;
21
+ insertedAt: string;
22
+ updatedAt: string;
23
+ settings: {
24
+ storageAddress: string;
25
+ overrideOnFullDisk: boolean;
26
+ overrideOnFullDiskThreshold: number;
27
+ generateBif: boolean;
28
+ };
29
+ vendor: string;
30
+ model: string;
31
+ streamConfig: {
32
+ filename: string | null;
33
+ duration: string | null;
34
+ temporaryPath: string | null;
35
+ snapshotUri: string;
36
+ streamUri: string;
37
+ subStreamUri: string;
38
+ };
39
+ timezone: string;
40
+ };
41
+ export declare enum ExNvrFootageAvailableStatus {
42
+ Available = "Available",
43
+ NotAvailable = "Not Available"
44
+ }
45
+ export declare enum ExNvrDeviceState {
46
+ Recording = "recording",
47
+ Failed = "failed",
48
+ Stopped = "stopped"
49
+ }
50
+ export type ExNvrCpuStatus = {
51
+ load: number[];
52
+ numCores: number;
53
+ };
54
+ export type ExNvrMemoryStatus = {
55
+ systemTotalMemory: number;
56
+ freeMemory: number;
57
+ totalMemory: number;
58
+ bufferedMemory: number;
59
+ cachedMemory: number;
60
+ totalSwap: number;
61
+ freeSwap: number;
62
+ availableMemory: number;
63
+ };
64
+ export type ExNvrSolarChargerStatus = {
65
+ v: number;
66
+ vpv: number;
67
+ ppv: number;
68
+ i: number;
69
+ il: number;
70
+ load: string;
71
+ relayState: string;
72
+ offReason: number;
73
+ h19: number;
74
+ h20: number;
75
+ h21: number;
76
+ h22: number;
77
+ h23: number;
78
+ err: number;
79
+ cs: string;
80
+ fw: string;
81
+ pid: string;
82
+ serialNumber: string;
83
+ };
84
+ export type ExNvrSystemStatus = {
85
+ version: string;
86
+ cpu: ExNvrCpuStatus;
87
+ memory: ExNvrMemoryStatus;
88
+ solarCharger: ExNvrSolarChargerStatus;
89
+ };
90
+ export declare enum ExNvrMetricId {
91
+ CpuLoad = "cpu_load",
92
+ RamUsage = "ram_usage"
93
+ }
94
+ export type ExNvrMetric = KitMetricData & {
95
+ metricId: ExNvrMetricId;
96
+ value: number;
97
+ };
@@ -0,0 +1,11 @@
1
+ export declare enum PerformanceStatus {
2
+ Pending = "pending",
3
+ Done = "done"
4
+ }
5
+ export declare enum WebGLExtensions {
6
+ OESTextureFloat = "OES_texture_float",
7
+ EXTFloatBlend = "EXT_float_blend",
8
+ EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
9
+ OESElementIndexUint = "OES_element_index_uint",
10
+ WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
11
+ }
@@ -0,0 +1,12 @@
1
+ import { Kit } from "@evercam/api/types/kit";
2
+ export type Tag<T = string> = {
3
+ id?: number;
4
+ name: T;
5
+ description?: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ };
9
+ export type KitTag = {
10
+ kit: Kit;
11
+ tag: Tag;
12
+ };
@@ -0,0 +1,7 @@
1
+ import { Moment } from "moment-timezone";
2
+ export type DateType = Date | string | number;
3
+ export type ExtendedDateType = Moment | DateType;
4
+ export type DateRangeFilter = {
5
+ fromDate: DateType;
6
+ toDate: DateType;
7
+ };
@@ -0,0 +1,106 @@
1
+ import { DateType, Schedule } from "@evercam/api/types";
2
+ export declare enum TimelapseStatus {
3
+ Pending = 11,
4
+ Completed = 5,
5
+ Failed = 7
6
+ }
7
+ export declare enum TimelapseDuration {
8
+ ThirtySeconds = 30,
9
+ SixtySeconds = 60,
10
+ NintySeconds = 90,
11
+ TwoMinutes = 120
12
+ }
13
+ export type TimelapseVideoOptions = {
14
+ width?: number;
15
+ height?: number;
16
+ removeTimestamp: boolean;
17
+ smoothTransition: boolean;
18
+ evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
20
+ timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
22
+ };
23
+ export type TimestampPositionCoordinates = {
24
+ x: number;
25
+ y: number;
26
+ w: number;
27
+ h: number;
28
+ };
29
+ export type BlurRegionPoint = {
30
+ x: number;
31
+ y: number;
32
+ };
33
+ export type BlurRegionCoordinates = BlurRegionPoint[];
34
+ export type TimelapseLogoOptions = {
35
+ id?: number;
36
+ x: number;
37
+ y: number;
38
+ width: number;
39
+ height: number;
40
+ };
41
+ export declare enum TimelapseScheduleType {
42
+ Continuous = "continuous",
43
+ WorkingHours = "workingHours",
44
+ Custom = "custom"
45
+ }
46
+ export declare enum TimelapsePeriod {
47
+ Day = 1,
48
+ Week = 7,
49
+ Month = 30,
50
+ WholeProject = "whole_project",
51
+ Custom = "custom"
52
+ }
53
+ export declare enum TimelapseType {
54
+ Hour = "hour",
55
+ Day = "day",
56
+ Week = "week",
57
+ Month = "month",
58
+ Year = "year",
59
+ FullProject = "full_project"
60
+ }
61
+ export type TimelapseFilterQueryParams = {
62
+ from?: DateType;
63
+ to?: DateType;
64
+ period?: TimelapsePeriod;
65
+ duration?: number;
66
+ schedule?: Schedule;
67
+ };
68
+ export type TimelapseCreationRequestPayload = {
69
+ title: string;
70
+ duration: number;
71
+ fromDatetime: string;
72
+ toDatetime: string;
73
+ cameraExid: string;
74
+ schedule: Schedule;
75
+ videoOptions: TimelapseVideoOptions;
76
+ logo?: TimelapseLogoOptions;
77
+ };
78
+ export type TimelapseCreationResponsePayload = {
79
+ Timelapse: {
80
+ camera: string;
81
+ createdAt: string;
82
+ fromDate: string;
83
+ id: number;
84
+ duration: number;
85
+ requestor: string;
86
+ schedule: Schedule;
87
+ status: number;
88
+ toDate: string;
89
+ updatedAt: string;
90
+ };
91
+ };
92
+ export type TimelapseSnapshotRequestPayload = {
93
+ from: string;
94
+ to: string;
95
+ schedule: string;
96
+ count: number;
97
+ };
98
+ export type TimelapseSnapshotResponsePayload = {
99
+ snapshots: string[];
100
+ };
101
+ export declare enum TimelapseExportStep {
102
+ Format = 1,
103
+ Effects = 2,
104
+ Confirm = 3,
105
+ Finish = 4
106
+ }