@evercam/api 1.0.0-cfcbc946a → 1.0.0-d0847b9fa

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 (145) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +217 -0
  3. package/dist/api/api/adminApi.d.ts +381 -0
  4. package/dist/api/api/aiApi.d.ts +214 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +357 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +45 -0
  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 +162 -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/api/weatherApi.d.ts +9 -0
  19. package/dist/api/index.d.ts +3 -13
  20. package/dist/api/types/360.d.ts +375 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/api/types/aiConfigs.d.ts +242 -0
  24. package/dist/{types → api/types}/analytics.d.ts +220 -80
  25. package/dist/{types → api/types}/anpr.d.ts +56 -13
  26. package/dist/{types → api/types}/auditLogs.d.ts +19 -1
  27. package/dist/api/types/authz.d.ts +132 -0
  28. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  29. package/dist/api/types/automation.d.ts +114 -0
  30. package/dist/{types → api/types}/axios.d.ts +31 -11
  31. package/dist/{types → api/types}/bim.d.ts +38 -9
  32. package/dist/{types → api/types}/camera.d.ts +118 -151
  33. package/dist/api/types/comments.d.ts +58 -0
  34. package/dist/api/types/company.d.ts +115 -0
  35. package/dist/{types → api/types}/compare.d.ts +20 -5
  36. package/dist/api/types/connector.d.ts +21 -0
  37. package/dist/api/types/coolify.d.ts +36 -0
  38. package/dist/{types → api/types}/copilot.d.ts +11 -9
  39. package/dist/{types → api/types}/countries.d.ts +0 -7
  40. package/dist/{types → api/types}/credentials.d.ts +1 -0
  41. package/dist/api/types/detections.d.ts +117 -0
  42. package/dist/api/types/drone.d.ts +107 -0
  43. package/dist/{types → api/types}/errors.d.ts +25 -0
  44. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  45. package/dist/api/types/gateReportManagement.d.ts +170 -0
  46. package/dist/api/types/hammertech.d.ts +98 -0
  47. package/dist/{types → api/types}/hdd.d.ts +26 -1
  48. package/dist/{types → api/types}/index.d.ts +21 -3
  49. package/dist/api/types/ingest.d.ts +234 -0
  50. package/dist/{types → api/types}/kit.d.ts +130 -56
  51. package/dist/api/types/map.d.ts +16 -0
  52. package/dist/{types → api/types}/media.d.ts +10 -3
  53. package/dist/api/types/notification.d.ts +96 -0
  54. package/dist/api/types/oauth.d.ts +62 -0
  55. package/dist/api/types/observationEvents.d.ts +61 -0
  56. package/dist/api/types/observations.d.ts +85 -0
  57. package/dist/api/types/planner.d.ts +124 -0
  58. package/dist/api/types/posthog.d.ts +53 -0
  59. package/dist/api/types/procore.d.ts +229 -0
  60. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  61. package/dist/api/types/project.d.ts +254 -0
  62. package/dist/{types → api/types}/recording.d.ts +10 -16
  63. package/dist/api/types/recycleBin.d.ts +14 -0
  64. package/dist/api/types/ring.d.ts +53 -0
  65. package/dist/{types → api/types}/roi.d.ts +2 -9
  66. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  67. package/dist/{types → api/types}/router.d.ts +20 -1
  68. package/dist/{types → api/types}/shared.d.ts +31 -38
  69. package/dist/api/types/shares.d.ts +45 -0
  70. package/dist/{types → api/types}/sim.d.ts +6 -6
  71. package/dist/api/types/siteAnalytics.d.ts +285 -0
  72. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  73. package/dist/api/types/siteView.d.ts +73 -0
  74. package/dist/api/types/smartSeach.d.ts +5 -0
  75. package/dist/api/types/snapshots.d.ts +104 -0
  76. package/dist/api/types/socket.d.ts +4 -0
  77. package/dist/api/types/sso.d.ts +55 -0
  78. package/dist/api/types/storageProvider.d.ts +19 -0
  79. package/dist/api/types/storyblok.d.ts +27 -0
  80. package/dist/{types → api/types}/streaming.d.ts +4 -25
  81. package/dist/api/types/systemCheck.d.ts +11 -0
  82. package/dist/api/types/tag.d.ts +12 -0
  83. package/dist/api/types/time.d.ts +7 -0
  84. package/dist/{types → api/types}/timelapse.d.ts +7 -11
  85. package/dist/{types → api/types}/user.d.ts +106 -40
  86. package/dist/api/types/videoWall.d.ts +66 -0
  87. package/dist/api/types/weather.d.ts +153 -0
  88. package/dist/{types → api/types}/widget.d.ts +96 -16
  89. package/dist/api/types/xweather.d.ts +12 -0
  90. package/dist/index.d.ts +2 -3
  91. package/dist/index.js +2918 -1085
  92. package/dist/index.js.map +1 -1
  93. package/dist/index.umd.cjs +1 -1
  94. package/dist/index.umd.cjs.map +1 -1
  95. package/dist/shared/api/index.d.ts +3 -0
  96. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  97. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  98. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  99. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  100. package/dist/shared/types/components.d.ts +374 -0
  101. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  102. package/dist/shared/types/imagePlayer.d.ts +41 -0
  103. package/dist/shared/types/index.d.ts +7 -0
  104. package/dist/shared/types/observations.d.ts +21 -0
  105. package/dist/shared/types/rbac.d.ts +67 -0
  106. package/dist/shared/types/timeline.d.ts +10 -0
  107. package/package.json +8 -5
  108. package/dist/api/3dFirebaseApi.d.ts +0 -9
  109. package/dist/api/adminApi.d.ts +0 -304
  110. package/dist/api/aiApi.d.ts +0 -110
  111. package/dist/api/authzApi.d.ts +0 -21
  112. package/dist/api/evercamApi.d.ts +0 -266
  113. package/dist/api/evercamLabsApi.d.ts +0 -46
  114. package/dist/api/ingestApi.d.ts +0 -65
  115. package/dist/api/videoWallApi.d.ts +0 -9
  116. package/dist/api/weatherApi.d.ts +0 -27
  117. package/dist/types/360.d.ts +0 -83
  118. package/dist/types/aconex.d.ts +0 -45
  119. package/dist/types/automation.d.ts +0 -6
  120. package/dist/types/comments.d.ts +0 -36
  121. package/dist/types/company.d.ts +0 -46
  122. package/dist/types/connector.d.ts +0 -16
  123. package/dist/types/coolify.d.ts +0 -18
  124. package/dist/types/detections.d.ts +0 -76
  125. package/dist/types/devices.d.ts +0 -228
  126. package/dist/types/drone.d.ts +0 -17
  127. package/dist/types/ingest.d.ts +0 -43
  128. package/dist/types/map.d.ts +0 -4
  129. package/dist/types/notification.d.ts +0 -27
  130. package/dist/types/planner.d.ts +0 -28
  131. package/dist/types/procore.d.ts +0 -76
  132. package/dist/types/project.d.ts +0 -120
  133. package/dist/types/shares.d.ts +0 -192
  134. package/dist/types/siteAnalytics.d.ts +0 -84
  135. package/dist/types/snapshots.d.ts +0 -50
  136. package/dist/types/storageServers.d.ts +0 -4
  137. package/dist/types/time.d.ts +0 -19
  138. package/dist/types/vendorModel.d.ts +0 -15
  139. package/dist/types/videoWall.d.ts +0 -33
  140. package/dist/types/weather.d.ts +0 -83
  141. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  142. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  143. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  144. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  145. /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
@@ -1,21 +1,24 @@
1
- import { ApiCredentials } from "@/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
+ includeImage?: boolean;
14
+ view?: boolean;
13
15
  };
14
16
  export type AvailableDaysRequestPayload = {
15
17
  cameraId: string;
16
18
  year: string;
17
19
  month: string;
18
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
19
22
  };
20
23
  export type AvailableDaysResponsePayload = {
21
24
  days: Array<number>;
@@ -38,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
38
41
  notes?: string;
39
42
  }>;
40
43
  };
41
- export type SnapshotRangeRequestPayload = {
44
+ export type SnapshotRangeRequestPayload = PaginationParams & {
42
45
  from: string;
43
46
  to: string;
44
- limit?: number;
45
- page?: number;
46
47
  schedule?: boolean;
47
48
  count?: number;
48
49
  };
@@ -55,9 +56,7 @@ export type SnapshotRangeResponsePayload = {
55
56
  snapshots: Array<SnapshotInstance>;
56
57
  };
57
58
  export declare enum BrainTool {
58
- Detections = "detections",
59
- Segmentation = "sam",
60
- DepthAnalysis = "depthAnalysis"
59
+ Detections = "detections"
61
60
  }
62
61
  export declare enum CloudRecordingFrequency {
63
62
  EverySecond = 60,
@@ -77,6 +76,7 @@ export declare enum CloudRecordingDuration {
77
76
  Month = 30,
78
77
  ThreeMonths = 90
79
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
80
80
  export declare enum CloudRecordingStatus {
81
81
  On = "on",
82
82
  Off = "off",
@@ -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",
@@ -120,5 +113,6 @@ export declare enum VpnServer {
120
113
  WireGuard7 = "WireGuard7",
121
114
  WireGuard8 = "WireGuard8",
122
115
  WireGuard9 = "WireGuard9",
123
- WireGuard10 = "WireGuard10"
116
+ WireGuard10 = "WireGuard10",
117
+ WgHub = "WgHub"
124
118
  }
@@ -0,0 +1,14 @@
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
+ export type RecycleBin = {
3
+ id?: number;
4
+ exid: string;
5
+ name: string;
6
+ type: string;
7
+ deletedBy: string;
8
+ deletedAt: DateType;
9
+ };
10
+ export type RecycleBinQueryParams = PaginationParams & {
11
+ name: string;
12
+ type: string;
13
+ deletedBy: string;
14
+ };
@@ -0,0 +1,53 @@
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
+ };
13
+ export type RingDevice = {
14
+ deviceId: string;
15
+ name: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
19
+ firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
21
+ batteryLife: number | null;
22
+ location: string | null;
23
+ imported: boolean;
24
+ cameraExid?: string;
25
+ projectExid?: string;
26
+ projectName?: string;
27
+ };
28
+ export type RingDevicesResponsePayload = {
29
+ devices: RingDevice[];
30
+ };
31
+ export type RingMoveDevicePayload = {
32
+ projectExid: string;
33
+ };
34
+ export type RingMoveDeviceResponsePayload = {
35
+ status: string;
36
+ cameraExid: string;
37
+ projectExid: string;
38
+ };
39
+ export type RingLiveViewPayload = {
40
+ sdpOffer: string;
41
+ };
42
+ export type RingLiveViewResponse = {
43
+ sdpAnswer: string;
44
+ sessionUrl: string;
45
+ iceServers: Array<{
46
+ urls: string;
47
+ username?: string;
48
+ credential?: string;
49
+ }>;
50
+ };
51
+ export type RingStopLiveViewResponse = {
52
+ status: string;
53
+ };
@@ -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,14 +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
- };
22
15
  export declare enum RoiDirection {
23
16
  Arrived = "arrived",
24
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;
@@ -16,8 +17,9 @@ export declare enum TimelineUrlParam {
16
17
  ToDate = "toDate",
17
18
  Live = "live",
18
19
  Video = "video",
19
- BeforeTimestamp = "beforeTimestamp",
20
20
  OverlayType = "overlayType",
21
+ ShowOverlay = "showOverlay",
22
+ ShowCompare = "showCompare",
21
23
  Sidebar = "sidebar",
22
24
  ThreeSixtyId = "_360Id",
23
25
  DroneId = "droneId",
@@ -45,6 +47,7 @@ export declare enum TimelineMobileCaptureUrlParams {
45
47
  ShowMobileCapture = "showMobileCapture"
46
48
  }
47
49
  export declare enum TimelineCommentsUrlParams {
48
- ShowComments = "showComments"
50
+ ShowComments = "showComments",
51
+ SelectedCommentId = "selectedCommentId"
49
52
  }
50
53
  export type TimelineUrlParams = Record<TimelineUrlParam | TimelineMediaUrlParams | TimelineBimUrlParams | TimelineExNvrRecordingsUrlParams | TimelineAnprUrlParams | TimelineMobileCaptureUrlParams | TimelineCommentsUrlParams, string | null>;
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@/types";
1
+ import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
2
2
  export type RouterBillPayer = {
3
3
  name: string;
4
4
  };
@@ -47,6 +47,10 @@ export declare enum RouterStatus {
47
47
  Active = "active",
48
48
  Inactive = "inactive"
49
49
  }
50
+ export declare enum RouterScanInputMode {
51
+ Qr = "qr",
52
+ Manual = "manual"
53
+ }
50
54
  export type RouterQueryParams = PaginationParams & {
51
55
  routerType: string;
52
56
  vpnServer: string;
@@ -65,3 +69,18 @@ export type RouterCreatePayload = {
65
69
  vpnServer?: string;
66
70
  netbirdUrl?: string;
67
71
  };
72
+ export type RouterQRScanResult = {
73
+ raw: string;
74
+ timestamp: string;
75
+ sn?: string;
76
+ m?: string;
77
+ u?: string;
78
+ pw?: string;
79
+ t?: string;
80
+ s?: string;
81
+ p?: string;
82
+ i?: string;
83
+ b?: string;
84
+ boxId?: string;
85
+ isDuplicate?: boolean;
86
+ };
@@ -1,7 +1,17 @@
1
- import { DateType } from "@/types";
1
+ import { DateType } from "@evercam/api/types";
2
+ export declare enum Operator {
3
+ AND = "and",
4
+ OR = "or"
5
+ }
2
6
  type sortby = string;
3
7
  type sortDirection = "asc" | "desc";
4
8
  export type SortingUrlParam = `${sortby}|${sortDirection}`;
9
+ export type JsonPrimitive = string | number | boolean | null;
10
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
11
+ export type JsonObject = {
12
+ [key: string]: JsonValue;
13
+ };
14
+ export type JsonArray = JsonValue[];
5
15
  export type BatteryReading = {
6
16
  id: number;
7
17
  voltage: number;
@@ -53,7 +63,7 @@ export declare enum UnitSystem {
53
63
  Metric = "metric"
54
64
  }
55
65
  export type Timestamp = string | number;
56
- export type Schedule = {
66
+ export type ScheduleUppercase = {
57
67
  Friday: string[];
58
68
  Monday: string[];
59
69
  Saturday: string[];
@@ -71,6 +81,7 @@ export type ScheduleLowercase = {
71
81
  tuesday: string[];
72
82
  wednesday: string[];
73
83
  };
84
+ export type Schedule = ScheduleUppercase | ScheduleLowercase;
74
85
  export type PaginationParams = {
75
86
  sort?: SortingUrlParam;
76
87
  page?: number;
@@ -90,11 +101,6 @@ export declare enum _3dViewer {
90
101
  Itwin = "itwin",
91
102
  Cesium = "cesium"
92
103
  }
93
- export declare enum SsoProvider {
94
- Microsoft = "microsoft",
95
- Google = "google",
96
- Evercam = "evercam"
97
- }
98
104
  export declare enum InfoPage {
99
105
  ThreeSixtyView = "360",
100
106
  BIMView = "bim",
@@ -103,18 +109,9 @@ export declare enum InfoPage {
103
109
  DroneView = "drone-view",
104
110
  Compare = "compare",
105
111
  Timeline = "timeline",
106
- WeatherReport = "weather-report",
107
- EvercamGo = "evercam-go"
112
+ WeatherReport = "weather-report"
108
113
  }
109
- export declare enum EvercamGoFeatures {
110
- XRay = "xray",
111
- MagicWand = "magic-wand",
112
- Weather = "weather",
113
- DownloadSnapshot = "download-snapshot",
114
- LocalRecordings = "local-recordings",
115
- MarkupTool = "markup-tool"
116
- }
117
- export declare enum DownloadTypes {
114
+ export declare enum DownloadFileType {
118
115
  Jpeg = "jpeg",
119
116
  Pdf = "pdf",
120
117
  Csv = "csv"
@@ -122,24 +119,30 @@ export declare enum DownloadTypes {
122
119
  export declare enum FeedbackContext {
123
120
  CopilotMessage = "copilot_message"
124
121
  }
125
- export type FeedbackPayload<T> = {
122
+ export type FeedbackPayload = {
126
123
  id?: number;
127
124
  user: string;
128
125
  text: string;
129
- type: T;
126
+ type: string;
130
127
  context: FeedbackContext;
131
128
  messageId?: number;
132
129
  conversationId?: number;
133
130
  };
134
- export type Stringified<T> = string & {
135
- [P in keyof T]: {
136
- "_ value": T[P];
137
- };
131
+ export type TuplePoint2D = [number, number];
132
+ export type TuplePoint3D = [number, number, number];
133
+ export type Point2D = {
134
+ x: number;
135
+ y: number;
136
+ };
137
+ export type Point3D = {
138
+ x: number;
139
+ y: number;
140
+ z: number;
141
+ };
142
+ export type GeoPoint = {
143
+ lat: number;
144
+ lng: number;
138
145
  };
139
- export interface JSON {
140
- stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
141
- parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
142
- }
143
146
  export type Exid = string;
144
147
  export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
145
148
  export type BatteryVoltage = {
@@ -166,16 +169,6 @@ export declare enum TimelinePrecision {
166
169
  Minute = "minute",
167
170
  Events = "events"
168
171
  }
169
- export type EntityStatsQueryParams = {
170
- period: "day" | "week" | "month";
171
- startDate: string;
172
- endDate: string;
173
- };
174
- export type EntityStat = {
175
- period: string;
176
- name: string;
177
- count: number;
178
- };
179
172
  export declare enum TaskStatus {
180
173
  Idle = "idle",
181
174
  Loading = "loading",
@@ -0,0 +1,45 @@
1
+ import type { DateType } from "@evercam/api/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 ShareDeletionRequestPayload = {
28
+ email?: string;
29
+ key?: string;
30
+ origin?: string;
31
+ };
32
+ export type SharedUsersResponsePayload = Array<{
33
+ email: string;
34
+ name: string;
35
+ }>;
36
+ export type ShareCreateResponsePayload = {
37
+ shares: Share[];
38
+ shareRequests: ShareRequest[];
39
+ };
40
+ export declare enum InviteStatus {
41
+ Pending = 0,
42
+ Cancelled = -1,
43
+ Used = 1,
44
+ Failed = -2
45
+ }
@@ -1,4 +1,4 @@
1
- import { DateTime, PaginationParams } from "@/types";
1
+ import { PaginationParams } from "@evercam/api/types";
2
2
  export declare enum SmsCommands {
3
3
  Cellular = "cellular",
4
4
  Gpson = "gpson",
@@ -63,7 +63,7 @@ export type Sim = {
63
63
  puk: string;
64
64
  iccid: string;
65
65
  description: string;
66
- lastSmsAt: DateTime;
66
+ lastSmsAt: string;
67
67
  cameras: {
68
68
  name: string;
69
69
  exid: string;
@@ -79,11 +79,11 @@ export type SendSmsResponse = {
79
79
  errorText: string;
80
80
  };
81
81
  export type SmsHistory = {
82
- insertedAt: DateTime;
82
+ insertedAt: string;
83
83
  type: string;
84
84
  status: string;
85
85
  text: string;
86
- deliveryDatetime: DateTime;
86
+ deliveryDatetime: string;
87
87
  };
88
88
  export type SmsHistoryResponse = {
89
89
  singleSimSms: SmsHistory[];
@@ -98,8 +98,8 @@ export type Sms = {
98
98
  status: string;
99
99
  text: string;
100
100
  type: string;
101
- insertedAt: DateTime;
102
- deliveryDatetime: DateTime;
101
+ insertedAt: string;
102
+ deliveryDatetime: string;
103
103
  };
104
104
  export type SmsQueryParams = PaginationParams & {
105
105
  dateRange: string;