@awarevue/api-types 1.0.77 → 1.0.79

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.
package/dist/app.d.ts CHANGED
@@ -2,11 +2,20 @@ import { z } from 'zod';
2
2
  export declare const sAppInfo: z.ZodObject<{
3
3
  version: z.ZodString;
4
4
  releaseDate: z.ZodString;
5
+ serverDeviceId: z.ZodString;
6
+ alarmDeviceId: z.ZodString;
7
+ globalZoneId: z.ZodString;
5
8
  }, "strip", z.ZodTypeAny, {
6
9
  version: string;
7
10
  releaseDate: string;
11
+ serverDeviceId: string;
12
+ alarmDeviceId: string;
13
+ globalZoneId: string;
8
14
  }, {
9
15
  version: string;
10
16
  releaseDate: string;
17
+ serverDeviceId: string;
18
+ alarmDeviceId: string;
19
+ globalZoneId: string;
11
20
  }>;
12
21
  export type AppInfo = z.infer<typeof sAppInfo>;
package/dist/app.js CHANGED
@@ -5,4 +5,7 @@ const zod_1 = require("zod");
5
5
  exports.sAppInfo = zod_1.z.object({
6
6
  version: zod_1.z.string(),
7
7
  releaseDate: zod_1.z.string(),
8
+ serverDeviceId: zod_1.z.string(),
9
+ alarmDeviceId: zod_1.z.string(),
10
+ globalZoneId: zod_1.z.string(),
8
11
  });
@@ -0,0 +1,115 @@
1
+ import { z } from 'zod';
2
+ export declare const sBookmarkProps: z.ZodObject<{
3
+ timestamp: z.ZodNumber;
4
+ label: z.ZodString;
5
+ deviceId: z.ZodString;
6
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ label: string;
9
+ metadata: Record<string, unknown>;
10
+ timestamp: number;
11
+ deviceId: string;
12
+ }, {
13
+ label: string;
14
+ metadata: Record<string, unknown>;
15
+ timestamp: number;
16
+ deviceId: string;
17
+ }>;
18
+ export declare const sCreateBookmarkRq: z.ZodObject<{
19
+ timestamp: z.ZodNumber;
20
+ label: z.ZodString;
21
+ deviceId: z.ZodString;
22
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ label: string;
25
+ metadata: Record<string, unknown>;
26
+ timestamp: number;
27
+ deviceId: string;
28
+ }, {
29
+ label: string;
30
+ metadata: Record<string, unknown>;
31
+ timestamp: number;
32
+ deviceId: string;
33
+ }>;
34
+ export declare const sUpdateBookmarkRq: z.ZodIntersection<z.ZodObject<{
35
+ id: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ id: string;
38
+ }, {
39
+ id: string;
40
+ }>, z.ZodObject<{
41
+ timestamp: z.ZodOptional<z.ZodNumber>;
42
+ label: z.ZodOptional<z.ZodString>;
43
+ deviceId: z.ZodOptional<z.ZodString>;
44
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ label?: string | undefined;
47
+ metadata?: Record<string, unknown> | undefined;
48
+ timestamp?: number | undefined;
49
+ deviceId?: string | undefined;
50
+ }, {
51
+ label?: string | undefined;
52
+ metadata?: Record<string, unknown> | undefined;
53
+ timestamp?: number | undefined;
54
+ deviceId?: string | undefined;
55
+ }>>;
56
+ export declare const sDeleteBookmarkRq: z.ZodObject<{
57
+ id: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ }, {
61
+ id: string;
62
+ }>;
63
+ export declare const sBookmarkDto: z.ZodIntersection<z.ZodObject<{
64
+ timestamp: z.ZodNumber;
65
+ label: z.ZodString;
66
+ deviceId: z.ZodString;
67
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ label: string;
70
+ metadata: Record<string, unknown>;
71
+ timestamp: number;
72
+ deviceId: string;
73
+ }, {
74
+ label: string;
75
+ metadata: Record<string, unknown>;
76
+ timestamp: number;
77
+ deviceId: string;
78
+ }>, z.ZodObject<{
79
+ id: z.ZodString;
80
+ createdBy: z.ZodString;
81
+ createdOn: z.ZodString;
82
+ lastModifiedOn: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ id: string;
85
+ createdOn: string;
86
+ lastModifiedOn: string;
87
+ createdBy: string;
88
+ }, {
89
+ id: string;
90
+ createdOn: string;
91
+ lastModifiedOn: string;
92
+ createdBy: string;
93
+ }>>;
94
+ export declare const sBookmarkSearchCriteria: z.ZodObject<{
95
+ deviceId: z.ZodString;
96
+ createdBy: z.ZodString;
97
+ timeFrom: z.ZodNumber;
98
+ timeTo: z.ZodNumber;
99
+ }, "strip", z.ZodTypeAny, {
100
+ deviceId: string;
101
+ createdBy: string;
102
+ timeFrom: number;
103
+ timeTo: number;
104
+ }, {
105
+ deviceId: string;
106
+ createdBy: string;
107
+ timeFrom: number;
108
+ timeTo: number;
109
+ }>;
110
+ export type BookmarkProps = z.infer<typeof sBookmarkProps>;
111
+ export type CreateBookmarkRq = z.infer<typeof sCreateBookmarkRq>;
112
+ export type UpdateBookmarkRq = z.infer<typeof sUpdateBookmarkRq>;
113
+ export type DeleteBookmarkRq = z.infer<typeof sDeleteBookmarkRq>;
114
+ export type BookmarkDto = z.infer<typeof sBookmarkDto>;
115
+ export type BookmarkSearchCriteria = z.infer<typeof sBookmarkSearchCriteria>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sBookmarkSearchCriteria = exports.sBookmarkDto = exports.sDeleteBookmarkRq = exports.sUpdateBookmarkRq = exports.sCreateBookmarkRq = exports.sBookmarkProps = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sBookmarkProps = zod_1.z.object({
6
+ timestamp: zod_1.z.number().min(0),
7
+ label: zod_1.z.string().nonempty(),
8
+ deviceId: zod_1.z.string().nonempty(),
9
+ metadata: zod_1.z.record(zod_1.z.unknown()),
10
+ });
11
+ exports.sCreateBookmarkRq = exports.sBookmarkProps;
12
+ exports.sUpdateBookmarkRq = zod_1.z
13
+ .object({
14
+ id: zod_1.z.string().nonempty(),
15
+ })
16
+ .and(exports.sBookmarkProps.partial());
17
+ exports.sDeleteBookmarkRq = zod_1.z.object({
18
+ id: zod_1.z.string().nonempty(),
19
+ });
20
+ exports.sBookmarkDto = exports.sBookmarkProps.and(zod_1.z.object({
21
+ id: zod_1.z.string().nonempty(),
22
+ createdBy: zod_1.z.string().nonempty(),
23
+ createdOn: zod_1.z.string().datetime(),
24
+ lastModifiedOn: zod_1.z.string().datetime(),
25
+ }));
26
+ exports.sBookmarkSearchCriteria = zod_1.z.object({
27
+ deviceId: zod_1.z.string(),
28
+ createdBy: zod_1.z.string(),
29
+ timeFrom: zod_1.z.number().min(0),
30
+ timeTo: zod_1.z.number().min(0),
31
+ });
package/dist/index.d.ts CHANGED
@@ -31,3 +31,4 @@ export * from './cast';
31
31
  export * from './security-level';
32
32
  export * from './token-conversion';
33
33
  export * from './world-objects';
34
+ export * from './bookmarks';
package/dist/index.js CHANGED
@@ -47,3 +47,4 @@ __exportStar(require("./cast"), exports);
47
47
  __exportStar(require("./security-level"), exports);
48
48
  __exportStar(require("./token-conversion"), exports);
49
49
  __exportStar(require("./world-objects"), exports);
50
+ __exportStar(require("./bookmarks"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",