@evercam/api 1.0.0-e82be48cd → 1.0.0-ea5c7d976

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.
@@ -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;
@@ -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-e82be48cd",
3
+ "version": "1.0.0-ea5c7d976",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",