@evercam/api 1.0.0-0ff26c649 → 1.0.0-112ba26f5

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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -15
  3. package/dist/api/api/adminApi.d.ts +154 -138
  4. package/dist/api/api/aiApi.d.ts +184 -62
  5. package/dist/api/api/authzApi.d.ts +29 -17
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  8. package/dist/api/api/evercamApi.d.ts +153 -118
  9. package/dist/api/api/evercamLabsApi.d.ts +10 -17
  10. package/dist/api/api/exNvrApi.d.ts +2 -2
  11. package/dist/api/api/index.d.ts +1 -0
  12. package/dist/api/api/ingestApi.d.ts +132 -57
  13. package/dist/api/api/ptzApi.d.ts +9 -4
  14. package/dist/api/api/reportsApi.d.ts +15 -0
  15. package/dist/api/api/videoWallApi.d.ts +2 -2
  16. package/dist/api/api/weatherApi.d.ts +2 -2
  17. package/dist/api/types/360.d.ts +269 -48
  18. package/dist/api/types/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +85 -0
  20. package/dist/api/types/aiConfigs.d.ts +244 -0
  21. package/dist/api/types/analytics.d.ts +135 -75
  22. package/dist/api/types/anpr.d.ts +49 -2
  23. package/dist/api/types/apiKey.d.ts +70 -0
  24. package/dist/api/types/auditLogs.d.ts +179 -21
  25. package/dist/api/types/authz.d.ts +116 -6
  26. package/dist/api/types/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +65 -3
  28. package/dist/api/types/axios.d.ts +20 -14
  29. package/dist/api/types/bim.d.ts +65 -16
  30. package/dist/api/types/camera.d.ts +316 -193
  31. package/dist/api/types/comments.d.ts +68 -31
  32. package/dist/api/types/company.d.ts +53 -6
  33. package/dist/api/types/compare.d.ts +21 -6
  34. package/dist/api/types/connector.d.ts +5 -5
  35. package/dist/api/types/coolify.d.ts +18 -2
  36. package/dist/api/types/detections.d.ts +26 -18
  37. package/dist/api/types/drone.d.ts +95 -6
  38. package/dist/api/types/emailMessages.d.ts +27 -0
  39. package/dist/api/types/errors.d.ts +19 -2
  40. package/dist/api/types/gateReport.d.ts +51 -69
  41. package/dist/api/types/gateReportManagement.d.ts +170 -0
  42. package/dist/api/types/hammertech.d.ts +98 -0
  43. package/dist/api/types/hdd.d.ts +27 -2
  44. package/dist/api/types/index.d.ts +17 -3
  45. package/dist/api/types/ingest.d.ts +280 -17
  46. package/dist/api/types/kit.d.ts +121 -115
  47. package/dist/api/types/map.d.ts +12 -0
  48. package/dist/api/types/media.d.ts +33 -4
  49. package/dist/api/types/notification.d.ts +83 -3
  50. package/dist/api/types/nvr.d.ts +39 -8
  51. package/dist/api/types/oauth.d.ts +62 -0
  52. package/dist/api/types/observationEvents.d.ts +167 -0
  53. package/dist/api/types/observations.d.ts +89 -0
  54. package/dist/api/types/planner.d.ts +98 -8
  55. package/dist/api/types/posthog.d.ts +71 -0
  56. package/dist/api/types/procore.d.ts +13 -6
  57. package/dist/api/types/progressPhoto.d.ts +42 -25
  58. package/dist/api/types/project.d.ts +158 -32
  59. package/dist/api/types/recording.d.ts +9 -15
  60. package/dist/api/types/recycleBin.d.ts +9 -3
  61. package/dist/api/types/reports.d.ts +108 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +3 -11
  64. package/dist/api/types/routeParams.d.ts +1 -0
  65. package/dist/api/types/router.d.ts +34 -10
  66. package/dist/api/types/shared.d.ts +47 -30
  67. package/dist/api/types/shares.d.ts +6 -157
  68. package/dist/api/types/sim.d.ts +23 -11
  69. package/dist/api/types/siteAnalytics.d.ts +169 -47
  70. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  71. package/dist/api/types/siteView.d.ts +79 -0
  72. package/dist/api/types/smartSeach.d.ts +5 -0
  73. package/dist/api/types/snapshots.d.ts +99 -14
  74. package/dist/api/types/socket.d.ts +4 -0
  75. package/dist/api/types/sso.d.ts +11 -37
  76. package/dist/api/types/storageProvider.d.ts +30 -0
  77. package/dist/api/types/storyblok.d.ts +27 -0
  78. package/dist/api/types/streaming.d.ts +3 -3
  79. package/dist/api/types/tag.d.ts +1 -1
  80. package/dist/api/types/time.d.ts +0 -18
  81. package/dist/api/types/timelapse.d.ts +7 -11
  82. package/dist/api/types/user.d.ts +135 -54
  83. package/dist/api/types/videoWall.d.ts +21 -21
  84. package/dist/api/types/weather.d.ts +75 -11
  85. package/dist/api/types/widget.d.ts +83 -15
  86. package/dist/api/types/xweather.d.ts +4 -4
  87. package/dist/api/utils.d.ts +1 -1
  88. package/dist/index.js +2538 -1040
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.umd.cjs +1 -1
  91. package/dist/index.umd.cjs.map +1 -1
  92. package/dist/shared/types/components.d.ts +592 -34
  93. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  94. package/dist/shared/types/droneUpload.d.ts +93 -0
  95. package/dist/shared/types/imagePlayer.d.ts +9 -2
  96. package/dist/shared/types/index.d.ts +5 -0
  97. package/dist/shared/types/observations.d.ts +25 -0
  98. package/dist/shared/types/rbac.d.ts +67 -0
  99. package/dist/shared/types/report.d.ts +107 -0
  100. package/dist/shared/types/timeline.d.ts +2 -1
  101. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  102. package/dist/shared/utils/datePresets.d.ts +31 -0
  103. package/package.json +4 -2
  104. package/dist/api/types/copilot.d.ts +0 -157
  105. package/dist/api/types/storageServers.d.ts +0 -4
  106. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -0,0 +1,108 @@
1
+ /**
2
+ * The Evercam Reports engine (evercam-agent-kit), as the admin app sees it.
3
+ *
4
+ * These mirror `evercam_reports/api/schemas.py`. The engine speaks camelCase over
5
+ * the wire, so the admin client reads it with `preserveCasing: true` and these are
6
+ * the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
7
+ * own workflow types live in `packages/agent`, unreachable here.
8
+ */
9
+ /** What kind of conversation this is. Chat only ever opens `chat`. */
10
+ export declare enum ChatMode {
11
+ Report = "report",
12
+ Chat = "chat"
13
+ }
14
+ /** Whose conversations a list covers. Only an admin is ever given `all`. */
15
+ export declare enum ChatScope {
16
+ Mine = "mine",
17
+ Account = "account",
18
+ All = "all"
19
+ }
20
+ /** A flat token tally, as the engine reports it. */
21
+ export type ChatUsage = {
22
+ inputTokens?: number;
23
+ outputTokens?: number;
24
+ cacheCreationInputTokens?: number;
25
+ cacheReadInputTokens?: number;
26
+ };
27
+ /** One recorded tool step in a turn's trace, compacted by the engine. */
28
+ export type ChatTraceStep = {
29
+ step?: number | null;
30
+ tool?: string | null;
31
+ result?: string | null;
32
+ durationMs?: number | null;
33
+ usage?: ChatUsage | null;
34
+ args?: unknown;
35
+ };
36
+ /** One stored turn, as the engine returns it inside a conversation. */
37
+ export type ChatTurn = {
38
+ id: string;
39
+ userText?: string | null;
40
+ assistantText?: string | null;
41
+ thinkingSummary?: string | null;
42
+ artifact?: unknown;
43
+ /** The agent's tool steps for this answer. Absent on turns stored before traces. */
44
+ trace?: ChatTraceStep[] | null;
45
+ /** This turn's own token usage. */
46
+ usage?: ChatUsage | null;
47
+ runId?: string | null;
48
+ at?: string | null;
49
+ };
50
+ /** A conversation in full, with its transcript, cost ledger and per-turn traces. */
51
+ export type ChatSession = {
52
+ id: string;
53
+ environment: string;
54
+ mode: string;
55
+ title: string | null;
56
+ projectExid: string | null;
57
+ projectName: string | null;
58
+ cameraExids: string[] | null;
59
+ turns: ChatTurn[];
60
+ savedReportId: string | null;
61
+ createdBy: string | null;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ usage?: ChatUsage | null;
65
+ usageByModel?: Record<string, ChatUsage> | null;
66
+ model?: string | null;
67
+ /** Money as a string, or `null` (never `0`) when the conversation is unpriced. */
68
+ costUsd?: string | null;
69
+ priceBasis?: Record<string, unknown> | null;
70
+ };
71
+ /** One conversation as a list row — metadata and cost, without the transcript. */
72
+ export type ChatSummary = {
73
+ id: string;
74
+ environment: string;
75
+ mode: string;
76
+ title: string | null;
77
+ projectExid: string | null;
78
+ projectName: string | null;
79
+ cameraExids: string[] | null;
80
+ createdBy: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ turnCount: number;
84
+ usage?: ChatUsage | null;
85
+ model?: string | null;
86
+ costUsd?: string | null;
87
+ };
88
+ /** A page of conversations for the admin viewer. */
89
+ export type ChatListPage = {
90
+ chats: ChatSummary[];
91
+ total: number;
92
+ /** The scope the engine actually applied. */
93
+ scope: ChatScope;
94
+ };
95
+ /** Query params the admin conversations list accepts. */
96
+ export type ChatListParams = {
97
+ scope?: ChatScope;
98
+ mode?: ChatMode;
99
+ projectExid?: string;
100
+ createdBy?: string;
101
+ q?: string;
102
+ from?: string;
103
+ to?: string;
104
+ sort?: string;
105
+ direction?: "asc" | "desc";
106
+ offset?: number;
107
+ limit?: number;
108
+ };
@@ -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,23 +3,15 @@ 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",
10
11
  Line = "line",
11
12
  Direction = "direction",
12
- Rectangle = "rectangle",
13
- ROIBox = "ROIBox"
13
+ Rectangle = "rectangle"
14
14
  }
15
- export type RoiShape = {
16
- id: number | null;
17
- name: string;
18
- x1: number;
19
- x2: number;
20
- y1: number;
21
- y2: 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;
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@/types";
1
+ import { PaginationParams, SimSummary } from "@evercam/api/types";
2
2
  export type RouterBillPayer = {
3
3
  name: string;
4
4
  };
@@ -7,30 +7,31 @@ export type SimProvider = {
7
7
  };
8
8
  export type Router = {
9
9
  id?: number;
10
- kitId: number | null;
10
+ kitSerial?: string;
11
+ kitName?: string;
12
+ rmsId?: number | null;
11
13
  routerType: string;
12
14
  routerUserId: string;
13
15
  routerPassword: string;
14
16
  serialNumber: number | null;
15
17
  rmsUrl?: string;
16
- externalHost?: string;
17
18
  routerHttpPort: number | null;
18
19
  vpnPassword: string;
19
20
  vpnUserId: string;
20
21
  vpnServer: string;
21
- netbirdUrl: string;
22
+ netbirdUrl?: string;
22
23
  status: RouterStatus;
23
24
  powerType: PowerType;
24
- powerSchedule: string;
25
- battery?: {
25
+ powerSchedule: PowerSchedule;
26
+ battery: {
26
27
  lastVoltage: number;
27
28
  lastSeen: string;
28
- };
29
- sims: Array<Pick<Sim, "id" | "number">>;
29
+ } | null;
30
+ sims: SimSummary[];
30
31
  billPayers?: Array<RouterBillPayer>;
31
32
  simProviders?: Array<SimProvider>;
32
- projects?: Pick<Project, "exid" | "id" | "name">[];
33
- cameras?: Pick<Camera, "id" | "name">[];
33
+ lastSms?: string;
34
+ lastSmsAt?: string;
34
35
  };
35
36
  export declare enum PowerType {
36
37
  Mains = "mains",
@@ -47,6 +48,10 @@ export declare enum RouterStatus {
47
48
  Active = "active",
48
49
  Inactive = "inactive"
49
50
  }
51
+ export declare enum RouterScanInputMode {
52
+ Qr = "qr",
53
+ Manual = "manual"
54
+ }
50
55
  export type RouterQueryParams = PaginationParams & {
51
56
  routerType: string;
52
57
  vpnServer: string;
@@ -62,6 +67,25 @@ export type RouterCreatePayload = {
62
67
  routerHttpPort: number;
63
68
  powerType: PowerType;
64
69
  powerSchedule: PowerSchedule;
70
+ status: RouterStatus;
65
71
  vpnServer?: string;
66
72
  netbirdUrl?: string;
67
73
  };
74
+ export type RouterUpdatePayload = Partial<RouterCreatePayload> & {
75
+ kitId?: number | null;
76
+ };
77
+ export type RouterQRScanResult = {
78
+ raw: string;
79
+ timestamp: string;
80
+ sn?: string;
81
+ m?: string;
82
+ u?: string;
83
+ pw?: string;
84
+ t?: string;
85
+ s?: string;
86
+ p?: string;
87
+ i?: string;
88
+ b?: string;
89
+ boxId?: string;
90
+ isDuplicate?: boolean;
91
+ };
@@ -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;
@@ -98,25 +109,18 @@ export declare enum InfoPage {
98
109
  DroneView = "drone-view",
99
110
  Compare = "compare",
100
111
  Timeline = "timeline",
101
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
102
114
  }
103
115
  export declare enum DownloadFileType {
104
116
  Jpeg = "jpeg",
105
117
  Pdf = "pdf",
106
118
  Csv = "csv"
107
119
  }
108
- export declare enum FeedbackContext {
109
- CopilotMessage = "copilot_message"
120
+ export declare enum PromiseSettledStatus {
121
+ Fulfilled = "fulfilled",
122
+ Rejected = "rejected"
110
123
  }
111
- export type FeedbackPayload<T> = {
112
- id?: number;
113
- user: string;
114
- text: string;
115
- type: T;
116
- context: FeedbackContext;
117
- messageId?: number;
118
- conversationId?: number;
119
- };
120
124
  export type Stringified<T> = string & {
121
125
  [P in keyof T]: {
122
126
  "_ value": T[P];
@@ -126,18 +130,41 @@ export interface JSON {
126
130
  stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
127
131
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
128
132
  }
133
+ export type TuplePoint2D = [number, number];
134
+ export type TuplePoint3D = [number, number, number];
135
+ export type Point2D = {
136
+ x: number;
137
+ y: number;
138
+ };
139
+ export type Point3D = {
140
+ x: number;
141
+ y: number;
142
+ z: number;
143
+ };
144
+ export type GeoPoint = {
145
+ lat: number;
146
+ lng: number;
147
+ };
129
148
  export type Exid = string;
130
- export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
149
+ export type EntityByExid<Entity> = Record<Exid, Entity>;
131
150
  export type BatteryVoltage = {
132
151
  date: DateType;
133
- max_value: number;
134
- min_value: number;
152
+ maxValue: number;
153
+ minValue: number;
135
154
  };
155
+ export declare enum GlobalSearchResource {
156
+ Projects = "projects",
157
+ Users = "users",
158
+ Cameras = "cameras",
159
+ Companies = "companies",
160
+ Sims = "sims",
161
+ Routers = "routers"
162
+ }
136
163
  export type GlobalSearchQueryParams = PaginationParams & {
137
- resource: "projects" | "users" | "cameras" | "companies" | "sims" | "routers";
164
+ resource: GlobalSearchResource;
138
165
  term: string;
139
- email: string;
140
- featureFlag: string;
166
+ email?: string;
167
+ featureFlag?: string;
141
168
  };
142
169
  export type TimelineDateInterval = {
143
170
  fromDate: string;
@@ -152,16 +179,6 @@ export declare enum TimelinePrecision {
152
179
  Minute = "minute",
153
180
  Events = "events"
154
181
  }
155
- export type EntityStatsQueryParams = {
156
- period: "day" | "week" | "month";
157
- startDate: string;
158
- endDate: string;
159
- };
160
- export type EntityStat = {
161
- period: string;
162
- name: string;
163
- count: number;
164
- };
165
182
  export declare enum TaskStatus {
166
183
  Idle = "idle",
167
184
  Loading = "loading",
@@ -1,4 +1,4 @@
1
- import type { CameraExid, DateTime, DateType } from "@/types";
1
+ import type { DateType } from "@evercam/api/types";
2
2
  export type ShareRequest = {
3
3
  cameraId: string;
4
4
  createdAt: DateType | number;
@@ -24,19 +24,6 @@ export type Share = {
24
24
  userId: number;
25
25
  isUserAccessRestricted: boolean;
26
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
27
  export type ShareDeletionRequestPayload = {
41
28
  email?: string;
42
29
  key?: string;
@@ -46,151 +33,13 @@ export type SharedUsersResponsePayload = Array<{
46
33
  email: string;
47
34
  name: string;
48
35
  }>;
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
36
  export type ShareCreateResponsePayload = {
69
37
  shares: Share[];
70
38
  shareRequests: ShareRequest[];
71
39
  };
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"
40
+ export declare enum InviteStatus {
41
+ Pending = 0,
42
+ Cancelled = -1,
43
+ Used = 1,
44
+ Failed = -2
94
45
  }
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
- };
@@ -1,4 +1,4 @@
1
- import { DateTime, PaginationParams } from "@/types";
1
+ import { PaginationParams, PowerType, PowerSchedule, RouterStatus } from "@evercam/api/types";
2
2
  export declare enum SmsCommands {
3
3
  Cellular = "cellular",
4
4
  Gpson = "gpson",
@@ -42,7 +42,6 @@ export type SimCreateUpdatePayload = {
42
42
  puk?: string;
43
43
  iccid?: string;
44
44
  description?: string;
45
- cameraId: string[];
46
45
  };
47
46
  export type SimsQueryParams = PaginationParams & {
48
47
  simProvider: string;
@@ -51,6 +50,11 @@ export type SimsQueryParams = PaginationParams & {
51
50
  iccid: string;
52
51
  cameraName: string;
53
52
  description: string;
53
+ powerType: PowerType;
54
+ serialNumber: string;
55
+ status: RouterStatus;
56
+ powerSchedule: PowerSchedule;
57
+ routerType: string;
54
58
  };
55
59
  export type Sim = {
56
60
  id: number;
@@ -63,30 +67,37 @@ export type Sim = {
63
67
  puk: string;
64
68
  iccid: string;
65
69
  description: string;
66
- lastSmsAt: DateTime;
70
+ lastSmsAt: string;
67
71
  cameras: {
68
72
  name: string;
69
73
  exid: string;
70
74
  id: number;
71
75
  }[];
76
+ rmsUrl?: string;
77
+ serialNumber: number | null;
78
+ routerType: string;
79
+ rmsId?: string;
80
+ powerType: PowerType;
81
+ powerSchedule: PowerSchedule;
82
+ status: RouterStatus;
72
83
  };
73
84
  export type SendSmsPayload = {
74
85
  number: string;
75
86
  smsMessage: string;
76
87
  };
88
+ export declare enum SendSmsStatus {
89
+ Success = "0"
90
+ }
77
91
  export type SendSmsResponse = {
78
- status: number;
92
+ status: SendSmsStatus | string;
79
93
  errorText: string;
80
94
  };
81
95
  export type SmsHistory = {
82
- insertedAt: DateTime;
96
+ insertedAt: string;
83
97
  type: string;
84
98
  status: string;
85
99
  text: string;
86
- deliveryDatetime: DateTime;
87
- };
88
- export type SmsHistoryResponse = {
89
- singleSimSms: SmsHistory[];
100
+ deliveryDatetime: string;
90
101
  };
91
102
  export type Sms = {
92
103
  id: number;
@@ -98,8 +109,8 @@ export type Sms = {
98
109
  status: string;
99
110
  text: string;
100
111
  type: string;
101
- insertedAt: DateTime;
102
- deliveryDatetime: DateTime;
112
+ insertedAt: string;
113
+ deliveryDatetime: string;
103
114
  };
104
115
  export type SmsQueryParams = PaginationParams & {
105
116
  dateRange: string;
@@ -112,3 +123,4 @@ export type SmsQueryParams = PaginationParams & {
112
123
  smsStatus: SmsStatuses;
113
124
  deliveryDatetime: string;
114
125
  };
126
+ export type SimSummary = Pick<Sim, "id" | "number">;