@evercam/api 1.0.0-e8fa39610 → 1.0.0-ea0d2c37e

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 (72) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +71 -26
  3. package/dist/api/api/adminApi.d.ts +31 -21
  4. package/dist/api/api/aiApi.d.ts +125 -2
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +45 -25
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  8. package/dist/api/api/index.d.ts +1 -0
  9. package/dist/api/api/ingestApi.d.ts +45 -32
  10. package/dist/api/api/workflowsApi.d.ts +15 -0
  11. package/dist/api/types/360.d.ts +127 -43
  12. package/dist/api/types/admin.d.ts +1 -1
  13. package/dist/api/types/aiConfigs.d.ts +244 -0
  14. package/dist/api/types/analytics.d.ts +29 -24
  15. package/dist/api/types/anpr.d.ts +31 -0
  16. package/dist/api/types/auditLogs.d.ts +1 -4
  17. package/dist/api/types/authz.d.ts +71 -0
  18. package/dist/api/types/automation.d.ts +32 -4
  19. package/dist/api/types/axios.d.ts +9 -9
  20. package/dist/api/types/bim.d.ts +12 -6
  21. package/dist/api/types/camera.d.ts +30 -23
  22. package/dist/api/types/comments.d.ts +9 -2
  23. package/dist/api/types/company.d.ts +1 -2
  24. package/dist/api/types/compare.d.ts +1 -1
  25. package/dist/api/types/connector.d.ts +2 -0
  26. package/dist/api/types/detections.d.ts +3 -1
  27. package/dist/api/types/drone.d.ts +1 -2
  28. package/dist/api/types/errors.d.ts +18 -2
  29. package/dist/api/types/gateReport.d.ts +1 -11
  30. package/dist/api/types/gateReportManagement.d.ts +170 -0
  31. package/dist/api/types/hammertech.d.ts +98 -0
  32. package/dist/api/types/index.d.ts +8 -2
  33. package/dist/api/types/ingest.d.ts +179 -25
  34. package/dist/api/types/kit.d.ts +44 -101
  35. package/dist/api/types/media.d.ts +7 -2
  36. package/dist/api/types/notification.d.ts +52 -2
  37. package/dist/api/types/observationEvents.d.ts +141 -0
  38. package/dist/api/types/observations.d.ts +80 -0
  39. package/dist/api/types/planner.d.ts +1 -8
  40. package/dist/api/types/posthog.d.ts +20 -0
  41. package/dist/api/types/project.d.ts +15 -3
  42. package/dist/api/types/recording.d.ts +5 -12
  43. package/dist/api/types/ring.d.ts +16 -16
  44. package/dist/api/types/roi.d.ts +2 -10
  45. package/dist/api/types/routeParams.d.ts +1 -0
  46. package/dist/api/types/shared.d.ts +5 -22
  47. package/dist/api/types/shares.d.ts +0 -13
  48. package/dist/api/types/siteAnalytics.d.ts +1 -3
  49. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  50. package/dist/api/types/siteView.d.ts +12 -8
  51. package/dist/api/types/snapshots.d.ts +5 -0
  52. package/dist/api/types/socket.d.ts +4 -0
  53. package/dist/api/types/storyblok.d.ts +0 -13
  54. package/dist/api/types/timelapse.d.ts +1 -8
  55. package/dist/api/types/user.d.ts +16 -4
  56. package/dist/api/types/workflows.d.ts +108 -0
  57. package/dist/api/utils.d.ts +1 -1
  58. package/dist/index.js +1749 -925
  59. package/dist/index.js.map +1 -1
  60. package/dist/index.umd.cjs +1 -1
  61. package/dist/index.umd.cjs.map +1 -1
  62. package/dist/shared/types/components.d.ts +223 -44
  63. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  64. package/dist/shared/types/droneUpload.d.ts +67 -0
  65. package/dist/shared/types/index.d.ts +4 -0
  66. package/dist/shared/types/observations.d.ts +25 -0
  67. package/dist/shared/types/report.d.ts +101 -0
  68. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  69. package/dist/shared/utils/datePresets.d.ts +31 -0
  70. package/package.json +3 -1
  71. package/dist/api/types/copilot.d.ts +0 -162
  72. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -0,0 +1,80 @@
1
+ import { type ProjectExid, type CameraExid, type DateType, type BBox, AiObservationFeasibilityStatus, ObservationEventStatus, DownloadFileType } from "@evercam/api/types";
2
+ export type ObservationApproval = boolean | ObservationEventStatus.Unsure | null;
3
+ export type ObservationEvent = {
4
+ id: number;
5
+ observationTypeId: number;
6
+ observationCode: string | null;
7
+ cameraExid: CameraExid;
8
+ projectExid: ProjectExid | null;
9
+ capturedAt: DateType;
10
+ endTime: DateType | null;
11
+ confidence: number | null;
12
+ status: ObservationEventStatus;
13
+ isApproved: ObservationApproval;
14
+ reason: string | null;
15
+ personBbox: BBox | null;
16
+ modelVersion: string | null;
17
+ observationMetadata: Record<string, unknown> | null;
18
+ trigger: string;
19
+ reviewedBy: string | null;
20
+ reviewedAt: DateType | null;
21
+ };
22
+ export type ObservationType = {
23
+ id: number;
24
+ observationCode: string;
25
+ name: string;
26
+ description: string | null;
27
+ type: string;
28
+ severity: number | null;
29
+ feasibilityStatus: AiObservationFeasibilityStatus;
30
+ };
31
+ export declare enum ObservationMissingItem {
32
+ Helmet = "helmet",
33
+ HighVisVest = "high_vis_vest",
34
+ Gloves = "gloves",
35
+ Glasses = "glasses"
36
+ }
37
+ export type ObservationEventsQueryParams = {
38
+ cameraExid?: CameraExid;
39
+ observationCode?: string;
40
+ fromDate?: string;
41
+ toDate?: string;
42
+ missingItems?: string;
43
+ status?: ObservationEventStatus;
44
+ sort?: string;
45
+ page?: number;
46
+ limit?: number;
47
+ };
48
+ export type ObservationEventsExportQueryParams = {
49
+ cameraExid?: CameraExid;
50
+ observationCode?: string;
51
+ missingItems?: string;
52
+ status?: ObservationEventStatus;
53
+ fromDate: string;
54
+ toDate: string;
55
+ fileType: DownloadFileType;
56
+ directDownload?: boolean;
57
+ };
58
+ export type ObservationApprovalUpdateResponse = {
59
+ updated: boolean;
60
+ id: number | string | null;
61
+ message: string;
62
+ };
63
+ export declare enum ObservationCountsGranularity {
64
+ Day = "day",
65
+ Week = "week",
66
+ Month = "month"
67
+ }
68
+ export type ObservationEventsCountsQueryParams = {
69
+ cameraExid?: CameraExid;
70
+ observationCode?: string;
71
+ fromDate?: string;
72
+ toDate?: string;
73
+ missingItems?: string;
74
+ status?: ObservationEventStatus;
75
+ granularity?: ObservationCountsGranularity;
76
+ };
77
+ export type ObservationEventCount = {
78
+ bucket: DateType;
79
+ total: number;
80
+ };
@@ -29,6 +29,7 @@ export declare enum PlannerUrlParams {
29
29
  DealId = "deal_id"
30
30
  }
31
31
  export declare enum EDistortImageModes {
32
+ Edit = "edit",
32
33
  FreeRotate = "freeRotate",
33
34
  Lock = "lock",
34
35
  Rotate = "rotate",
@@ -51,14 +52,6 @@ export declare enum EPageType {
51
52
  List = "list",
52
53
  Item = "item"
53
54
  }
54
- export declare enum EPaths {
55
- Home = "/",
56
- Session = "/session"
57
- }
58
- export declare enum EProjectItems {
59
- Camera = "camera",
60
- Overlay = "overlay"
61
- }
62
55
  export declare enum ERoles {
63
56
  Admin = "admin",
64
57
  User = "user"
@@ -16,6 +16,26 @@ export declare enum ActiveUsersMetric {
16
16
  WAU = "wau",
17
17
  MAU = "mau"
18
18
  }
19
+ export type PosthogUser = {
20
+ id: string;
21
+ email: string;
22
+ isWeeklyActiveUser: number;
23
+ isMonthlyActiveUser: number;
24
+ eventsCount: number;
25
+ };
26
+ export type PosthogUsersRequestParams = {
27
+ companyExid?: string;
28
+ projectExid?: string;
29
+ cameraExid?: string;
30
+ productsActivityOnly?: boolean;
31
+ afterId?: string;
32
+ size?: number;
33
+ };
34
+ export type PosthogUsersResponse = {
35
+ data: PosthogUser[];
36
+ hasMore: boolean;
37
+ size: number;
38
+ };
19
39
  export type PosthogUserParams = {
20
40
  firstname?: string;
21
41
  lastname?: string;
@@ -68,6 +68,13 @@ export declare enum ProjectArchiveTier {
68
68
  export type UpdateCameraRestrictionPayload = {
69
69
  isAccessRestricted?: boolean;
70
70
  };
71
+ export type CameraPosition = {
72
+ cameraExid: CameraExid;
73
+ position: number;
74
+ };
75
+ export type ReorderCamerasPayload = {
76
+ positions: CameraPosition[];
77
+ };
71
78
  export type Logo = {
72
79
  id: number;
73
80
  projectId: number;
@@ -89,10 +96,10 @@ export declare enum ProjectFeatureFlag {
89
96
  MediaHubSharing = "archives_sharing",
90
97
  GateReportAnprBased = "anpr_sourced",
91
98
  NoLicensePlate = "no_license_plate",
92
- DefaultToProjectApp = "default_to_project_app",
93
99
  SmartSearch = "smart_search",
94
100
  PpeMonitoring = "ppe_monitoring",
95
- NoGdpr = "no_gdpr"
101
+ NoGdpr = "no_gdpr",
102
+ Chat = "chat"
96
103
  }
97
104
  export type ProjectBatteryReading = {
98
105
  exid: number;
@@ -180,7 +187,7 @@ export type ProjectMember = {
180
187
  } | null;
181
188
  };
182
189
  export type ProjectInvite = {
183
- id?: string;
190
+ id: number;
184
191
  email: string;
185
192
  role?: ProjectRole;
186
193
  permissions?: string[];
@@ -223,6 +230,11 @@ export type ProjectUsersResponsePayload = {
223
230
  invites: ProjectInvite[];
224
231
  errors: ProjectUserError[];
225
232
  };
233
+ export type MentionableUser = {
234
+ id: number;
235
+ fullname: string;
236
+ email: string;
237
+ };
226
238
  export type ProjectStorageQueryParams = PaginationParams & {
227
239
  cameraName: string;
228
240
  cameraExid: CameraExid;
@@ -1,22 +1,24 @@
1
- import { ApiCredentials } from "@evercam/api/types";
1
+ import { ApiCredentials, PaginationParams } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
5
5
  data: string;
6
6
  status?: string;
7
7
  };
8
- export type NearestSnapshotRequestPayload = {
8
+ export type SnapshotRequestPayload = {
9
9
  apiKey?: string;
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
13
  includeImage?: boolean;
14
+ view?: boolean;
14
15
  };
15
16
  export type AvailableDaysRequestPayload = {
16
17
  cameraId: string;
17
18
  year: string;
18
19
  month: string;
19
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
20
22
  };
21
23
  export type AvailableDaysResponsePayload = {
22
24
  days: Array<number>;
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
39
41
  notes?: string;
40
42
  }>;
41
43
  };
42
- export type SnapshotRangeRequestPayload = {
44
+ export type SnapshotRangeRequestPayload = PaginationParams & {
43
45
  from: string;
44
46
  to: string;
45
- limit?: number;
46
- page?: number;
47
47
  schedule?: boolean;
48
48
  count?: number;
49
49
  };
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
104
104
  }
105
105
  export declare enum VpnServer {
106
106
  None = "None",
107
- OpenVPN1 = "OpenVPN1",
108
- OpenVPN2 = "OpenVPN2",
109
- OpenVPN3 = "OpenVPN3",
110
- OpenVPN4 = "OpenVPN4",
111
- OpenVPN5 = "OpenVPN5",
112
- PPTP1 = "PPTP1",
113
- PPTP2 = "PPTP2",
114
107
  WireGuard1 = "WireGuard1",
115
108
  WireGuard2 = "WireGuard2",
116
109
  WireGuard3 = "WireGuard3",
@@ -1,8 +1,23 @@
1
+ export type RingCompleteLinkingPayload = {
2
+ nonce: string;
3
+ time: string;
4
+ };
5
+ /** The only auto-import status complete-linking returns today. */
6
+ export declare const RING_AUTO_IMPORT_QUEUED = "queued";
7
+ export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
8
+ export type RingCompleteLinkingResponsePayload = {
9
+ status: string;
10
+ /** Absent when the API did not schedule an import. */
11
+ autoImport?: RingAutoImportStatus;
12
+ };
1
13
  export type RingDevice = {
2
14
  deviceId: string;
3
15
  name: string;
4
- deviceType: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
5
19
  firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
6
21
  batteryLife: number | null;
7
22
  location: string | null;
8
23
  imported: boolean;
@@ -13,21 +28,6 @@ export type RingDevice = {
13
28
  export type RingDevicesResponsePayload = {
14
29
  devices: RingDevice[];
15
30
  };
16
- export type RingImportDevicesPayload = {
17
- deviceIds: string[];
18
- projectExid: string;
19
- deviceNames?: Record<string, string>;
20
- };
21
- export type RingImportResponsePayload = {
22
- cameras: Array<{
23
- exid: string;
24
- name: string;
25
- }>;
26
- project: {
27
- exid: string;
28
- name: string;
29
- };
30
- };
31
31
  export type RingMoveDevicePayload = {
32
32
  projectExid: string;
33
33
  };
@@ -3,7 +3,8 @@ export declare enum RoiType {
3
3
  AnprContext = "anpr_context",
4
4
  ExclusionZone = "exclusion_zone",
5
5
  WorkflowArea = "workflow_area",
6
- SiteAnalytics = "site_analytics"
6
+ SiteAnalytics = "site_analytics",
7
+ Ppe = "ppe_roi"
7
8
  }
8
9
  export declare enum RoiShapeType {
9
10
  Polygon = "polygon",
@@ -11,15 +12,6 @@ export declare enum RoiShapeType {
11
12
  Direction = "direction",
12
13
  Rectangle = "rectangle"
13
14
  }
14
- export type RoiShape = {
15
- id: number | null;
16
- name: string;
17
- x1: number;
18
- x2: number;
19
- y1: number;
20
- y2: number;
21
- points?: [number, number][];
22
- };
23
15
  export declare enum RoiDirection {
24
16
  Arrived = "arrived",
25
17
  Left = "left",
@@ -1,6 +1,7 @@
1
1
  export type RouteParams = {
2
2
  projectExid?: string;
3
3
  cameraExid?: string;
4
+ mediaExid?: string;
4
5
  timestamp?: string;
5
6
  fromDate?: string;
6
7
  toDate?: string;
@@ -109,25 +109,18 @@ export declare enum InfoPage {
109
109
  DroneView = "drone-view",
110
110
  Compare = "compare",
111
111
  Timeline = "timeline",
112
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
113
114
  }
114
115
  export declare enum DownloadFileType {
115
116
  Jpeg = "jpeg",
116
117
  Pdf = "pdf",
117
118
  Csv = "csv"
118
119
  }
119
- export declare enum FeedbackContext {
120
- CopilotMessage = "copilot_message"
120
+ export declare enum PromiseSettledStatus {
121
+ Fulfilled = "fulfilled",
122
+ Rejected = "rejected"
121
123
  }
122
- export type FeedbackPayload = {
123
- id?: number;
124
- user: string;
125
- text: string;
126
- type: string;
127
- context: FeedbackContext;
128
- messageId?: number;
129
- conversationId?: number;
130
- };
131
124
  export type Stringified<T> = string & {
132
125
  [P in keyof T]: {
133
126
  "_ value": T[P];
@@ -178,16 +171,6 @@ export declare enum TimelinePrecision {
178
171
  Minute = "minute",
179
172
  Events = "events"
180
173
  }
181
- export type EntityStatsQueryParams = {
182
- period: "day" | "week" | "month";
183
- startDate: string;
184
- endDate: string;
185
- };
186
- export type EntityStat = {
187
- period: string;
188
- name: string;
189
- count: number;
190
- };
191
174
  export declare enum TaskStatus {
192
175
  Idle = "idle",
193
176
  Loading = "loading",
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
33
33
  email: string;
34
34
  name: string;
35
35
  }>;
36
- export type ShareCreateRequestPayload = {
37
- email: string[] | string;
38
- message?: string;
39
- permission?: string;
40
- rights: string;
41
- apiId?: string;
42
- apiKey?: string;
43
- };
44
36
  export type ShareCreateResponsePayload = {
45
37
  shares: Share[];
46
38
  shareRequests: ShareRequest[];
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
51
43
  Used = 1,
52
44
  Failed = -2
53
45
  }
54
- export declare enum ShareVisibility {
55
- PublicDiscoverable = "publicDiscoverable",
56
- PublicUndiscoverable = "publicUndiscoverable",
57
- Private = "private"
58
- }
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
232
232
  feature: CameraFeatureFlag;
233
233
  processedIntervals: TimelineDateInterval[];
234
234
  };
235
- export type SmartSearchRequestPayload = {
235
+ export type SmartSearchRequestPayload = PaginationParams & {
236
236
  cameraExids?: CameraExid[];
237
237
  drawingIds?: _360FloorId[];
238
238
  walkIds?: string[];
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
240
240
  payload: SmartSearchBackendQuery;
241
241
  fromDate?: string;
242
242
  toDate?: string;
243
- page?: number;
244
- limit?: number;
245
243
  threshold?: number;
246
244
  };
247
245
  type SmartSearchResultItemBase = {
@@ -0,0 +1,127 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export declare enum VisionProvider {
3
+ Gemini = "gemini",
4
+ Gemma = "gemma"
5
+ }
6
+ export declare const VISION_PROVIDER_OPTIONS: {
7
+ text: string;
8
+ value: VisionProvider;
9
+ }[];
10
+ export type SiteAnalyticsCoolifyStatus = {
11
+ appUuid: string | null;
12
+ name: string | null;
13
+ serverUuid: string | null;
14
+ serverName: string | null;
15
+ appUrl: string | null;
16
+ status: string | null;
17
+ isRunning: boolean;
18
+ updatedAt: string | null;
19
+ };
20
+ export type SiteAnalyticsProjectMeta = {
21
+ exid: ProjectExid;
22
+ name: string | null;
23
+ timezone: string | null;
24
+ featureFlags: string[] | null;
25
+ };
26
+ export type SiteAnalyticsCameraMeta = {
27
+ exid: CameraExid;
28
+ name: string | null;
29
+ status: string | null;
30
+ featureFlags: string[] | null;
31
+ };
32
+ export type SiteAnalyticsManagedApp = {
33
+ id: number;
34
+ projectExid: ProjectExid;
35
+ cameraExid: CameraExid;
36
+ coolifyAppId: string | null;
37
+ appVersion: string;
38
+ modelId: number | null;
39
+ startDate: DateType | null;
40
+ endDate: DateType | null;
41
+ startHour: number;
42
+ endHour: number;
43
+ source: string;
44
+ override: boolean;
45
+ timeIncreaseFrequency: number;
46
+ skipWeekends: boolean;
47
+ tracking: boolean;
48
+ observations: boolean;
49
+ visionProvider?: VisionProvider | null;
50
+ insertedAt: DateType | null;
51
+ updatedAt: DateType | null;
52
+ coolify: SiteAnalyticsCoolifyStatus | null;
53
+ project: SiteAnalyticsProjectMeta | null;
54
+ camera: SiteAnalyticsCameraMeta | null;
55
+ lastTrackingAt: DateType | null;
56
+ };
57
+ export type CreateSiteAnalyticsAppPayload = {
58
+ projectExid: ProjectExid;
59
+ cameraExid: CameraExid;
60
+ coolifyServerUuid: string;
61
+ appVersion?: string;
62
+ modelId?: number | null;
63
+ startDate?: DateType | null;
64
+ endDate?: DateType | null;
65
+ startHour?: number;
66
+ endHour?: number;
67
+ source?: string;
68
+ override?: boolean;
69
+ skipWeekends?: boolean;
70
+ timeIncreaseFrequency?: number;
71
+ tracking?: boolean;
72
+ observations?: boolean;
73
+ observationPromptId?: number | null;
74
+ visionProvider?: VisionProvider;
75
+ };
76
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
77
+ export type ModelOption = {
78
+ modelId: number;
79
+ version: string;
80
+ };
81
+ export type SiteAnalyticsAppConfigFormValue = {
82
+ appVersion: string;
83
+ modelId: number | null;
84
+ startDate: string | null;
85
+ endDate: string | null;
86
+ startHour: number;
87
+ endHour: number;
88
+ source: string;
89
+ override: boolean;
90
+ timeIncreaseFrequency: number;
91
+ skipWeekends: boolean;
92
+ };
93
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
94
+ projectExid?: ProjectExid;
95
+ includeStatus?: boolean;
96
+ };
97
+ export type CreateSiteAnalyticsAppResponse = {
98
+ created: boolean;
99
+ id: number | null;
100
+ data: SiteAnalyticsManagedApp | null;
101
+ count: number | null;
102
+ message: string;
103
+ };
104
+ export type DeleteSiteAnalyticsAppResponse = {
105
+ deleted: boolean;
106
+ count: number;
107
+ message: string;
108
+ };
109
+ export type ObservationConfigActivity = {
110
+ observationTypeId: number;
111
+ every: number | null;
112
+ };
113
+ export type ObservationConfig = {
114
+ id: number;
115
+ cameraExid: CameraExid;
116
+ projectExid: ProjectExid | null;
117
+ enabled: boolean;
118
+ activities: ObservationConfigActivity[];
119
+ createdBy: string | null;
120
+ insertedAt: DateType | null;
121
+ updatedAt: DateType | null;
122
+ };
123
+ export type UpsertObservationConfigPayload = {
124
+ projectExid?: ProjectExid;
125
+ enabled: boolean;
126
+ activities: ObservationConfigActivity[];
127
+ };
@@ -20,9 +20,11 @@ export type SiteViewCameraListItem = {
20
20
  integrationType?: string;
21
21
  };
22
22
  export type ForgeUrn = {
23
+ id?: string;
23
24
  displayName: string;
24
25
  urn: string;
25
26
  isModelHostedByEvercamACC?: boolean;
27
+ savedViews?: Record<string, ForgeView>;
26
28
  };
27
29
  export type ForgeAccAlignmentData = {
28
30
  bbox: {
@@ -30,6 +32,11 @@ export type ForgeAccAlignmentData = {
30
32
  max: Point2D;
31
33
  };
32
34
  transform: number[];
35
+ coordinateSystem?: {
36
+ context?: {
37
+ type?: string;
38
+ };
39
+ } | null;
33
40
  };
34
41
  export type TimelineItem = {
35
42
  taskNumber: number;
@@ -41,23 +48,20 @@ export type TimelineItem = {
41
48
  objectIDs: number[];
42
49
  };
43
50
  export type ForgeMarkerTransform = {
44
- default: {
45
- position: Point3D;
46
- type: string;
47
- };
51
+ position?: Point3D;
52
+ hidden?: boolean;
48
53
  };
49
54
  export type ForgeMarker = {
50
55
  name: string;
51
56
  cameraExid: string;
52
- transforms: ForgeMarkerTransform;
57
+ type: string;
58
+ transforms: Record<string, ForgeMarkerTransform>;
53
59
  };
54
60
  export type ForgeProjectData = {
55
61
  urns?: ForgeUrn[];
56
- isEvercamAccount?: boolean;
57
62
  accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
58
63
  timeline?: TimelineItem[];
59
- savedView?: ForgeView;
60
- markers?: ForgeMarker[];
64
+ cameraMarkers?: Record<string, ForgeMarker>;
61
65
  };
62
66
  export type ItwinModel = {
63
67
  name: string;
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
5
5
  status: SnapshotExtractionStatus;
6
6
  };
7
7
  export declare enum SnapshotExtractionStatus {
8
+ Cancelling = "canceling",
9
+ Cancelled = "cancelled",
8
10
  Completed = "completed",
9
11
  Failed = "failed",
12
+ Pending = "pending",
10
13
  Processing = "processing"
11
14
  }
12
15
  export declare enum SnapshotExtractionType {
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
30
33
  injectTo_cr: Boolean;
31
34
  schedule: Schedule;
32
35
  created_at: DateType;
36
+ jpegCount?: number;
37
+ obanJobId?: number;
33
38
  };
34
39
  export type SnapshotTestPayload = {
35
40
  cameraExid?: CameraExid;
@@ -0,0 +1,4 @@
1
+ export type SocketAuthResponsePayload = {
2
+ wsToken: string;
3
+ expiresIn: number;
4
+ };
@@ -1,17 +1,4 @@
1
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
2
  export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
16
3
  id: number;
17
4
  uuid: string;
@@ -1,4 +1,4 @@
1
- import { DateType, Point2D, Schedule } from "@evercam/api/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -54,13 +54,6 @@ export declare enum TimelapseType {
54
54
  Year = "year",
55
55
  FullProject = "full_project"
56
56
  }
57
- export type TimelapseFilterQueryParams = {
58
- from?: DateType;
59
- to?: DateType;
60
- period?: TimelapsePeriod;
61
- duration?: number;
62
- schedule?: Schedule;
63
- };
64
57
  export type TimelapseCreationRequestPayload = {
65
58
  title: string;
66
59
  duration: number;
@@ -151,6 +151,21 @@ export type SessionsListRequestPayload = {
151
151
  limit: number;
152
152
  page: number;
153
153
  };
154
+ export type AuthorizedApp = {
155
+ id: number;
156
+ clientId: string;
157
+ clientName: string;
158
+ clientDescription: string | null;
159
+ logoUrl: string | null;
160
+ scopes: string[];
161
+ grantedAt: string;
162
+ };
163
+ export type AuthorizedAppsListRequestPayload = {
164
+ search?: string;
165
+ sort?: string;
166
+ limit?: number;
167
+ page?: number;
168
+ };
154
169
  export type SessionActivityCamSettingsDetail = {
155
170
  new: any;
156
171
  old: any;
@@ -176,7 +191,6 @@ export type SessionActivitiesListRequestPayload = {
176
191
  };
177
192
  export type SignupUserRequestPayload = {
178
193
  telephone: string;
179
- token: string;
180
194
  firstname: string;
181
195
  lastname: string;
182
196
  email: string;
@@ -194,9 +208,6 @@ export type UserUpdateRequestPayload = {
194
208
  country: string;
195
209
  persona: string;
196
210
  };
197
- export type UserDeleteRequestPayload = {
198
- verifEmail: string;
199
- };
200
211
  export type GoogleAuthRequestPayload = {
201
212
  code: string;
202
213
  redirectUri: string;
@@ -338,6 +349,7 @@ export type ProjectUserWithRole = {
338
349
  name: string;
339
350
  exid: string;
340
351
  };
352
+ persona: Persona;
341
353
  permissions: string[];
342
354
  role: Role;
343
355
  subRoles: RoleSubRole[];