@evercam/api 1.0.0-0261f7ecb → 1.0.0-06a84f5e4

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.
@@ -63,6 +63,7 @@ export declare enum AnalyticsEvent {
63
63
  Comment = "Comment-Toggle",
64
64
  Compare = "Compare-Toggle",
65
65
  Copilot = "Copilot-Toggle",
66
+ DownloadMediaOpen = "DownloadMedia-Open",
66
67
  SettingsAccountUpdatePassword = "UpdatePassword",
67
68
  SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
68
69
  SettingsAccountRevokeSession = "RevokeSession",
@@ -51,3 +51,4 @@ export * from "./widget";
51
51
  export * from "./countries";
52
52
  export * from "./automation";
53
53
  export * from "./coolify";
54
+ export * from "./tag";
@@ -1,4 +1,4 @@
1
- import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
1
+ import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -16,6 +16,7 @@ export type Kit = {
16
16
  serial: string;
17
17
  status: KitStatus;
18
18
  powerSchedule: Schedule;
19
+ tags: Tag[];
19
20
  };
20
21
  export declare enum KitStatus {
21
22
  New = "new",
@@ -240,6 +241,7 @@ export type KitQueryParams = PaginationParams & {
240
241
  name: string;
241
242
  serial: string;
242
243
  status: KitStatus;
244
+ tagId: number | number[];
243
245
  };
244
246
  export type AdminKit = {
245
247
  id: number;
@@ -92,7 +92,6 @@ export declare enum ShareType {
92
92
  Request = "request"
93
93
  }
94
94
  export declare enum ShareRequestStatus {
95
- All = "",
96
95
  Pending = -1,
97
96
  Cancelled = -2,
98
97
  Failed = -3,
@@ -0,0 +1,12 @@
1
+ import { Kit } from "@/types/kit";
2
+ export type Tag<T = string> = {
3
+ id?: number;
4
+ name: T;
5
+ description?: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ };
9
+ export type KitTag = {
10
+ kit: Kit;
11
+ tag: Tag;
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-0261f7ecb",
3
+ "version": "1.0.0-06a84f5e4",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,10 +36,10 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.15.17",
39
+ "@types/node": "^22.15.21",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
- "vite-plugin-dts": "^4.5.3"
42
+ "vite-plugin-dts": "^4.5.4"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "axios": "^1.7.7",