@evercam/api 1.0.0-a255a7bd4 → 1.0.0-a355ed87e

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 (118) 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} +104 -62
  4. package/dist/api/api/aiApi.d.ts +127 -0
  5. package/dist/api/api/authzApi.d.ts +38 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  8. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  9. package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +97 -96
  10. package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +7 -3
  11. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  12. package/dist/api/api/index.d.ts +13 -0
  13. package/dist/api/api/ingestApi.d.ts +146 -0
  14. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  15. package/dist/api/api/videoWallApi.d.ts +9 -0
  16. package/dist/api/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
  17. package/dist/api/index.d.ts +3 -13
  18. package/dist/api/types/360.d.ts +276 -0
  19. package/dist/api/types/aconex.d.ts +143 -0
  20. package/dist/api/types/admin.d.ts +51 -0
  21. package/dist/{types → api/types}/analytics.d.ts +130 -14
  22. package/dist/{types → api/types}/anpr.d.ts +26 -13
  23. package/dist/{types → api/types}/auditLogs.d.ts +1 -1
  24. package/dist/api/types/authz.d.ts +60 -0
  25. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  26. package/dist/api/types/automation.d.ts +95 -0
  27. package/dist/{types → api/types}/axios.d.ts +22 -1
  28. package/dist/{types → api/types}/bim.d.ts +11 -5
  29. package/dist/{types → api/types}/camera.d.ts +97 -72
  30. package/dist/{types → api/types}/comments.d.ts +21 -9
  31. package/dist/api/types/company.d.ts +115 -0
  32. package/dist/{types → api/types}/compare.d.ts +20 -5
  33. package/dist/{types → api/types}/connector.d.ts +2 -5
  34. package/dist/api/types/coolify.d.ts +36 -0
  35. package/dist/{types → api/types}/copilot.d.ts +1 -1
  36. package/dist/{types → api/types}/countries.d.ts +0 -7
  37. package/dist/{types → api/types}/credentials.d.ts +1 -0
  38. package/dist/{types → api/types}/detections.d.ts +18 -24
  39. package/dist/{types → api/types}/errors.d.ts +1 -0
  40. package/dist/{types → api/types}/gateReport.d.ts +46 -150
  41. package/dist/{types → api/types}/hdd.d.ts +26 -1
  42. package/dist/{types → api/types}/index.d.ts +7 -0
  43. package/dist/api/types/ingest.d.ts +134 -0
  44. package/dist/{types → api/types}/kit.d.ts +64 -9
  45. package/dist/{types → api/types}/media.d.ts +1 -1
  46. package/dist/api/types/notification.d.ts +57 -0
  47. package/dist/{types → api/types}/planner.d.ts +4 -1
  48. package/dist/api/types/posthog.d.ts +33 -0
  49. package/dist/{types → api/types}/procore.d.ts +26 -16
  50. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  51. package/dist/api/types/project.d.ts +242 -0
  52. package/dist/{types → api/types}/recording.d.ts +3 -4
  53. package/dist/api/types/recycleBin.d.ts +14 -0
  54. package/dist/{types → api/types}/routeParams.d.ts +4 -2
  55. package/dist/{types → api/types}/router.d.ts +20 -1
  56. package/dist/{types → api/types}/shared.d.ts +12 -10
  57. package/dist/api/types/shares.d.ts +58 -0
  58. package/dist/{types → api/types}/sim.d.ts +6 -6
  59. package/dist/api/types/siteAnalytics.d.ts +287 -0
  60. package/dist/api/types/smartSeach.d.ts +5 -0
  61. package/dist/{types → api/types}/snapshots.d.ts +10 -1
  62. package/dist/api/types/sso.d.ts +55 -0
  63. package/dist/api/types/storyblok.d.ts +40 -0
  64. package/dist/{types → api/types}/streaming.d.ts +4 -5
  65. package/dist/{types → api/types}/tag.d.ts +1 -1
  66. package/dist/api/types/time.d.ts +7 -0
  67. package/dist/{types → api/types}/timelapse.d.ts +3 -4
  68. package/dist/{types → api/types}/user.d.ts +105 -35
  69. package/dist/api/types/videoWall.d.ts +66 -0
  70. package/dist/api/types/weather.d.ts +153 -0
  71. package/dist/{types → api/types}/widget.d.ts +96 -16
  72. package/dist/{types → api/types}/xweather.d.ts +4 -4
  73. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  74. package/dist/index.d.ts +2 -3
  75. package/dist/index.js +1340 -896
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/api/index.d.ts +3 -0
  80. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  81. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  82. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  83. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  84. package/dist/shared/types/components.d.ts +270 -0
  85. package/dist/shared/types/imagePlayer.d.ts +34 -0
  86. package/dist/shared/types/index.d.ts +4 -0
  87. package/dist/shared/types/timeline.d.ts +10 -0
  88. package/package.json +5 -4
  89. package/dist/api/3dFirebaseApi.d.ts +0 -10
  90. package/dist/api/aiApi.d.ts +0 -138
  91. package/dist/api/authzApi.d.ts +0 -21
  92. package/dist/api/ingestApi.d.ts +0 -67
  93. package/dist/api/videoWallApi.d.ts +0 -9
  94. package/dist/types/360.d.ts +0 -87
  95. package/dist/types/aconex.d.ts +0 -45
  96. package/dist/types/automation.d.ts +0 -6
  97. package/dist/types/company.d.ts +0 -46
  98. package/dist/types/coolify.d.ts +0 -18
  99. package/dist/types/ingest.d.ts +0 -43
  100. package/dist/types/notification.d.ts +0 -27
  101. package/dist/types/project.d.ts +0 -128
  102. package/dist/types/shares.d.ts +0 -196
  103. package/dist/types/siteAnalytics.d.ts +0 -141
  104. package/dist/types/time.d.ts +0 -21
  105. package/dist/types/videoWall.d.ts +0 -33
  106. package/dist/types/weather.d.ts +0 -87
  107. /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
  108. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  109. /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
  110. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  111. /package/dist/{types → api/types}/drone.d.ts +0 -0
  112. /package/dist/{types → api/types}/map.d.ts +0 -0
  113. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  114. /package/dist/{types → api/types}/roi.d.ts +0 -0
  115. /package/dist/{types → api/types}/storageServers.d.ts +0 -0
  116. /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
  117. /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
  118. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -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,87 +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 _360Feature {
44
- Minimap = "Minimap",
45
- BIM = "BIM"
46
- }
47
- export declare enum _360IntergrationType {
48
- Evercam = "Evercam",
49
- Matterport = "Matterport",
50
- OpenSpace = "Openspace",
51
- HoloBuilder = "Holobuilder",
52
- DroneDeploy = "Dronedeploy"
53
- }
54
- export type _360AssetsQueryParams = {
55
- page: number;
56
- limit: number;
57
- projectID: string;
58
- date: DateType;
59
- floor: string;
60
- id: string;
61
- };
62
- export type _360AssetsRequestPayload = {
63
- projectId: string;
64
- date: DateType;
65
- floor: string;
66
- uploadedBy?: string;
67
- };
68
- export type _360AssetsUploadPayload = {
69
- targetPointsCount: number;
70
- assetType: string;
71
- upload: {
72
- url: string;
73
- title: string;
74
- fileExtension: string;
75
- }[];
76
- deviceSerial: string;
77
- startPosition: string;
78
- endPosition: string;
79
- isTimelapse: boolean;
80
- };
81
- export type Generate360MapRequestPayload = {
82
- dateId: string;
83
- floorId: string;
84
- cameraOffset: string;
85
- startPoint: string;
86
- endPoint: string;
87
- };
@@ -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,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,128 +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
- userId?: number;
14
- cameras?: Array<Camera | AdminCamera>;
15
- featureFlags: Array<ProjectFeatureFlag>;
16
- owner?: {
17
- email?: string;
18
- };
19
- ownerEmail?: string;
20
- ownerName?: string;
21
- camerasRestrictionType?: string;
22
- };
23
- export declare enum ProjectStatus {
24
- ToStart = "To Start",
25
- InProgress = "In Progress",
26
- Completed = "Completed",
27
- NotAplicable = "Not Applicable"
28
- }
29
- export declare enum ProjectArchiveTier {
30
- Full = "Full",
31
- Partial = "Partial",
32
- Minimal = "Minimal",
33
- ScheduledForDeletion = "Scheduled for Deletion"
34
- }
35
- export type ProjectResponsePayload = {
36
- data?: Project[];
37
- };
38
- export type UpdateCameraRestrictionPayload = {
39
- isAccessRestricted?: boolean;
40
- };
41
- export type Logo = {
42
- name: string;
43
- url: string;
44
- };
45
- export type ProjectLogoResponsePayload = Logo[];
46
- export declare enum ProjectFeatureFlag {
47
- AnprLegacy = "anpr_legacy",
48
- DroneView = "drone_view",
49
- Bim = "4d_bim",
50
- BimItwin = "4d_bim_itwin",
51
- BimForge = "4d_bim_forge",
52
- ThreeSixtyView = "360_view",
53
- NdaMc = "NDA/MC",
54
- GateReport = "gate_report",
55
- GateReportAutoVerify = "auto_publish",
56
- GateReportMotionDetection = "motion_detection",
57
- FullEmpty = "full_empty",
58
- MediaHubSharing = "archives_sharing",
59
- GateReportAnprBased = "anpr_sourced",
60
- NoLicensePlate = "no_license_plate",
61
- DefaultToProjectApp = "default_to_project_app",
62
- SmartSearch = "smart_search",
63
- PpeMonitoring = "ppe_monitoring"
64
- }
65
- export type ProjectBatteryReading = {
66
- exid: number;
67
- voltage: number;
68
- lastSeen: DateType;
69
- };
70
- export type ThumbnailData = {
71
- cameraExid: CameraExid;
72
- custom: boolean;
73
- image: string;
74
- };
75
- export type ProjectsQueryParams = PaginationParams & {
76
- name: string;
77
- exid: string;
78
- status: ProjectStatus;
79
- cameras: string;
80
- featureFlags: Array<ProjectFeatureFlag>;
81
- archived: string;
82
- };
83
- export type ProjectCreateRequestPayload = {
84
- projectExid?: string;
85
- projectName: string;
86
- ownerId: number;
87
- cameras: string[];
88
- };
89
- export type ProjectCreateResponse = {
90
- name: string;
91
- exid: string;
92
- id: number;
93
- userId: number;
94
- zohoId: string;
95
- };
96
- export type ProjectUpdateRequestPayload = {
97
- name: string;
98
- timezone: string;
99
- featureFlags: ProjectFeatureFlag[];
100
- cameras: string[];
101
- };
102
- export type ProjectStatusStats = {
103
- nil: number;
104
- Completed: number;
105
- "In Progress": number;
106
- "Not Applicable": number;
107
- "To Start": number;
108
- };
109
- export type ProjectUserProperty = {
110
- active: boolean;
111
- activeOneMonth: boolean;
112
- cameraExid: string;
113
- cameraName: string;
114
- cameraRights: string;
115
- email: string;
116
- eventsCount: number;
117
- fullname: string;
118
- id: number;
119
- lastSeenAt: DateTime;
120
- persona: string;
121
- };
122
- export type ProjectUsers = {
123
- cameras: {
124
- exid: string;
125
- name: string;
126
- }[];
127
- users: Record<string, ProjectUserProperty[]>;
128
- };
@@ -1,196 +0,0 @@
1
- import type { CameraExid, DateTime, DateType } from "@/types";
2
- export type ShareRequest = {
3
- cameraId: string;
4
- createdAt: DateType | number;
5
- email: string;
6
- id: number;
7
- rights: string;
8
- sharerEmail: string;
9
- sharerName: string;
10
- userId: number;
11
- };
12
- export type Share = {
13
- cameraId: string;
14
- createdAt: DateType | number;
15
- email: string;
16
- fullname: string;
17
- id: number;
18
- lastSeenAt: DateType;
19
- rights: string;
20
- sessionCount: number;
21
- sharerEmail: string;
22
- sharerId: number;
23
- sharerName: string;
24
- userId: number;
25
- isUserAccessRestricted: boolean;
26
- };
27
- export type ShareRequestsResponsePayload = {
28
- shareRequests: ShareRequest[];
29
- };
30
- export type ShareOwner = {
31
- email: string;
32
- fullname: string;
33
- lastSeenAt: DateType;
34
- sessionCount: number;
35
- };
36
- export type SharesResponsePayload = {
37
- owner: ShareOwner;
38
- shares: Share[];
39
- };
40
- export type ShareDeletionRequestPayload = {
41
- email?: string;
42
- key?: string;
43
- origin?: string;
44
- };
45
- export type SharedUsersResponsePayload = Array<{
46
- email: string;
47
- name: string;
48
- }>;
49
- export type ShareCreateRequestPayload = {
50
- email: string[] | string;
51
- message?: string;
52
- permission?: string;
53
- rights: string;
54
- apiId?: string;
55
- apiKey?: string;
56
- };
57
- export type ShareProjectCamerasRequestPayload = {
58
- email: string[];
59
- cameraExids: CameraExid[];
60
- message: string;
61
- permission?: string;
62
- rights: string;
63
- };
64
- export type UpdateUserRestrictionPayload = {
65
- email: string[];
66
- isUserAccessRestricted: boolean;
67
- };
68
- export type ShareCreateResponsePayload = {
69
- shares: Share[];
70
- shareRequests: ShareRequest[];
71
- };
72
- export type ShareRequestByKeyResponsePayload = {
73
- shareRequests: Array<{
74
- id: string;
75
- email: string;
76
- rights: string;
77
- cameraId: string;
78
- sharerName: string;
79
- userId: string;
80
- sharerEmail: string;
81
- createdAt: DateType;
82
- }>;
83
- };
84
- export type ResendShareRequestPayload = {
85
- email: string;
86
- apiId?: string;
87
- apiKey?: string;
88
- };
89
- export declare enum SharePermission {
90
- Minimum = "minimum",
91
- Share = "minimal+share",
92
- Full = "full",
93
- Custom = "custom"
94
- }
95
- export declare enum ShareType {
96
- Share = "share",
97
- Request = "request"
98
- }
99
- export declare enum ShareRequestStatus {
100
- Pending = -1,
101
- Cancelled = -2,
102
- Failed = -3,
103
- Used = 1
104
- }
105
- export declare enum ShareVisibility {
106
- PublicDiscoverable = "publicDiscoverable",
107
- PublicUndiscoverable = "publicUndiscoverable",
108
- Private = "private"
109
- }
110
- export type ProjectShare = {
111
- id: number;
112
- projectId: string;
113
- userId: number;
114
- email: string;
115
- fullname: string;
116
- sharerId: number;
117
- sharerEmail: string;
118
- sharerName: string;
119
- role: "member" | "admin";
120
- cameras: Record<string, string>;
121
- message: string | null;
122
- updatedAt: DateType;
123
- insertedAt: DateType;
124
- };
125
- export type ProjectShareRequest = ProjectShare;
126
- export type ProjectShareResponse = {
127
- projectShares: ProjectShare[];
128
- projectShareRequests: ProjectShareRequest[];
129
- };
130
- export type AdminShare = {
131
- sharerId: number;
132
- sharerFullname: string;
133
- sharerApiId: string;
134
- sharerApiKey: string;
135
- shareeId: number;
136
- shareeFullname: string;
137
- shareeApiId: string;
138
- shareeApiKey: string;
139
- shareeEmail: string;
140
- cameraId: number;
141
- exid: string;
142
- projectId: string;
143
- name: string;
144
- id: number;
145
- message: string;
146
- createdAt: DateType;
147
- };
148
- export type CameraShareRequestPayload = {
149
- email: string[];
150
- rights: string;
151
- message?: string;
152
- };
153
- export type ShareQueryParams = {
154
- exid: string;
155
- sharerFullname: string;
156
- shareeFullname: string;
157
- shareeEmail: string;
158
- };
159
- export type CameraShare = {
160
- sharerId: number;
161
- sharerFullname: string;
162
- sharerApiId: string;
163
- sharerApiKey: string;
164
- shareeId: number;
165
- shareeFullname: string;
166
- shareeApiId: string;
167
- shareeApiKey: string;
168
- shareeEmail: string;
169
- cameraId: number;
170
- exid: string;
171
- projectId: string;
172
- name: string;
173
- id: number;
174
- message: string;
175
- createdAt: DateTime;
176
- };
177
- export type CameraShareRequestsQueryParams = {
178
- shareeEmail: string;
179
- camera: string;
180
- sharer: string;
181
- status: string;
182
- };
183
- export type CameraShareRequest = {
184
- id: number;
185
- shareeEmail: string;
186
- camera: string;
187
- sharer: string;
188
- message: number;
189
- rights: string;
190
- status: number;
191
- projectId: string;
192
- cameraExid: string;
193
- apiId: string;
194
- apiKey: number;
195
- createdAt: DateTime;
196
- };