@awarevue/api-types 1.0.68 → 1.0.70

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.
@@ -36,17 +36,17 @@ export declare const sPersonIn: z.ZodObject<{
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  kind: "person-in";
38
38
  personId: string;
39
- zoneId: string | null;
40
39
  personFirstName: string;
41
40
  personLastName: string;
42
41
  personAvatarId: string | null;
42
+ zoneId: string | null;
43
43
  }, {
44
44
  kind: "person-in";
45
45
  personId: string;
46
- zoneId: string | null;
47
46
  personFirstName: string;
48
47
  personLastName: string;
49
48
  personAvatarId: string | null;
49
+ zoneId: string | null;
50
50
  }>;
51
51
  export declare const sPersonOut: z.ZodObject<{
52
52
  kind: z.ZodLiteral<"person-out">;
@@ -59,19 +59,19 @@ export declare const sPersonOut: z.ZodObject<{
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  kind: "person-out";
61
61
  personId: string;
62
- isLeave: boolean;
63
- zoneId: string | null;
64
62
  personFirstName: string;
65
63
  personLastName: string;
66
64
  personAvatarId: string | null;
65
+ zoneId: string | null;
66
+ isLeave: boolean;
67
67
  }, {
68
68
  kind: "person-out";
69
69
  personId: string;
70
- isLeave: boolean;
71
- zoneId: string | null;
72
70
  personFirstName: string;
73
71
  personLastName: string;
74
72
  personAvatarId: string | null;
73
+ zoneId: string | null;
74
+ isLeave: boolean;
75
75
  }>;
76
76
  export declare const presenceTrackerEventSchemaByKind: {
77
77
  readonly 'person-in': z.ZodObject<{
@@ -84,17 +84,17 @@ export declare const presenceTrackerEventSchemaByKind: {
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  kind: "person-in";
86
86
  personId: string;
87
- zoneId: string | null;
88
87
  personFirstName: string;
89
88
  personLastName: string;
90
89
  personAvatarId: string | null;
90
+ zoneId: string | null;
91
91
  }, {
92
92
  kind: "person-in";
93
93
  personId: string;
94
- zoneId: string | null;
95
94
  personFirstName: string;
96
95
  personLastName: string;
97
96
  personAvatarId: string | null;
97
+ zoneId: string | null;
98
98
  }>;
99
99
  readonly 'person-out': z.ZodObject<{
100
100
  kind: z.ZodLiteral<"person-out">;
@@ -107,19 +107,19 @@ export declare const presenceTrackerEventSchemaByKind: {
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  kind: "person-out";
109
109
  personId: string;
110
- isLeave: boolean;
111
- zoneId: string | null;
112
110
  personFirstName: string;
113
111
  personLastName: string;
114
112
  personAvatarId: string | null;
113
+ zoneId: string | null;
114
+ isLeave: boolean;
115
115
  }, {
116
116
  kind: "person-out";
117
117
  personId: string;
118
- isLeave: boolean;
119
- zoneId: string | null;
120
118
  personFirstName: string;
121
119
  personLastName: string;
122
120
  personAvatarId: string | null;
121
+ zoneId: string | null;
122
+ isLeave: boolean;
123
123
  }>;
124
124
  };
125
125
  export type PersonIn = z.infer<typeof sPersonIn>;
@@ -35,13 +35,13 @@ export declare const sEventHeader: z.ZodObject<{
35
35
  observedBy: z.ZodOptional<z.ZodString>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  id: string;
38
- deviceId: string;
39
38
  timestamp: number;
39
+ deviceId: string;
40
40
  observedBy?: string | undefined;
41
41
  }, {
42
42
  id: string;
43
- deviceId: string;
44
43
  timestamp: number;
44
+ deviceId: string;
45
45
  observedBy?: string | undefined;
46
46
  }>;
47
47
  type EventHeader = z.infer<typeof sEventHeader>;
@@ -74,17 +74,17 @@ export declare const eventSchemaByKind: {
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  kind: "person-in";
76
76
  personId: string;
77
- zoneId: string | null;
78
77
  personFirstName: string;
79
78
  personLastName: string;
80
79
  personAvatarId: string | null;
80
+ zoneId: string | null;
81
81
  }, {
82
82
  kind: "person-in";
83
83
  personId: string;
84
- zoneId: string | null;
85
84
  personFirstName: string;
86
85
  personLastName: string;
87
86
  personAvatarId: string | null;
87
+ zoneId: string | null;
88
88
  }>;
89
89
  'person-out': z.ZodObject<{
90
90
  kind: z.ZodLiteral<"person-out">;
@@ -97,19 +97,19 @@ export declare const eventSchemaByKind: {
97
97
  }, "strip", z.ZodTypeAny, {
98
98
  kind: "person-out";
99
99
  personId: string;
100
- isLeave: boolean;
101
- zoneId: string | null;
102
100
  personFirstName: string;
103
101
  personLastName: string;
104
102
  personAvatarId: string | null;
103
+ zoneId: string | null;
104
+ isLeave: boolean;
105
105
  }, {
106
106
  kind: "person-out";
107
107
  personId: string;
108
- isLeave: boolean;
109
- zoneId: string | null;
110
108
  personFirstName: string;
111
109
  personLastName: string;
112
110
  personAvatarId: string | null;
111
+ zoneId: string | null;
112
+ isLeave: boolean;
113
113
  }>;
114
114
  'panic-button-pressed': z.ZodObject<{
115
115
  kind: z.ZodLiteral<"panic-button-pressed">;
@@ -997,18 +997,18 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
997
997
  }, "strip", z.ZodTypeAny, {
998
998
  name: string;
999
999
  id: string;
1000
- createdOn: string;
1001
- lastModifiedOn: string;
1002
1000
  isDefault: boolean;
1003
1001
  assignedRef: string | null;
1002
+ createdOn: string;
1003
+ lastModifiedOn: string;
1004
1004
  params?: unknown;
1005
1005
  }, {
1006
1006
  name: string;
1007
1007
  id: string;
1008
- createdOn: string;
1009
- lastModifiedOn: string;
1010
1008
  isDefault: boolean;
1011
1009
  assignedRef: string | null;
1010
+ createdOn: string;
1011
+ lastModifiedOn: string;
1012
1012
  params?: unknown;
1013
1013
  }>, "many">;
1014
1014
  notes: z.ZodNullable<z.ZodString>;
@@ -1034,10 +1034,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1034
1034
  presets: {
1035
1035
  name: string;
1036
1036
  id: string;
1037
- createdOn: string;
1038
- lastModifiedOn: string;
1039
1037
  isDefault: boolean;
1040
1038
  assignedRef: string | null;
1039
+ createdOn: string;
1040
+ lastModifiedOn: string;
1041
1041
  params?: unknown;
1042
1042
  }[];
1043
1043
  notes: string | null;
@@ -1054,10 +1054,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1054
1054
  presets: {
1055
1055
  name: string;
1056
1056
  id: string;
1057
- createdOn: string;
1058
- lastModifiedOn: string;
1059
1057
  isDefault: boolean;
1060
1058
  assignedRef: string | null;
1059
+ createdOn: string;
1060
+ lastModifiedOn: string;
1061
1061
  params?: unknown;
1062
1062
  }[];
1063
1063
  notes: string | null;
@@ -1172,10 +1172,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1172
1172
  presets: {
1173
1173
  name: string;
1174
1174
  id: string;
1175
- createdOn: string;
1176
- lastModifiedOn: string;
1177
1175
  isDefault: boolean;
1178
1176
  assignedRef: string | null;
1177
+ createdOn: string;
1178
+ lastModifiedOn: string;
1179
1179
  params?: unknown;
1180
1180
  }[];
1181
1181
  notes: string | null;
@@ -1333,10 +1333,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1333
1333
  presets: {
1334
1334
  name: string;
1335
1335
  id: string;
1336
- createdOn: string;
1337
- lastModifiedOn: string;
1338
1336
  isDefault: boolean;
1339
1337
  assignedRef: string | null;
1338
+ createdOn: string;
1339
+ lastModifiedOn: string;
1340
1340
  params?: unknown;
1341
1341
  }[];
1342
1342
  notes: string | null;
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './module-config';
21
21
  export * from './device-group';
22
22
  export * from './app';
23
23
  export * from './automation';
24
+ export * from './alarm-automation';
24
25
  export * from './macros';
25
26
  export * from './template';
26
27
  export * from './webrtc-playback';
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ __exportStar(require("./module-config"), exports);
37
37
  __exportStar(require("./device-group"), exports);
38
38
  __exportStar(require("./app"), exports);
39
39
  __exportStar(require("./automation"), exports);
40
+ __exportStar(require("./alarm-automation"), exports);
40
41
  __exportStar(require("./macros"), exports);
41
42
  __exportStar(require("./template"), exports);
42
43
  __exportStar(require("./webrtc-playback"), exports);
package/dist/layout.d.ts CHANGED
@@ -156,9 +156,9 @@ export declare const sLayoutDto: z.ZodObject<{
156
156
  name: string;
157
157
  id: string;
158
158
  order: number;
159
+ isDefault: boolean;
159
160
  createdOn: string;
160
161
  lastModifiedOn: string;
161
- isDefault: boolean;
162
162
  devices: {
163
163
  scale: number;
164
164
  x: number;
@@ -172,9 +172,9 @@ export declare const sLayoutDto: z.ZodObject<{
172
172
  name: string;
173
173
  id: string;
174
174
  order: number;
175
+ isDefault: boolean;
175
176
  createdOn: string;
176
177
  lastModifiedOn: string;
177
- isDefault: boolean;
178
178
  devices: {
179
179
  scale: number;
180
180
  x: number;
package/dist/macros.d.ts CHANGED
@@ -8,14 +8,14 @@ export declare const sMacroItemDto: z.ZodObject<{
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string | null;
10
10
  params: Record<string, unknown>;
11
- command: string;
12
11
  deviceId: string;
12
+ command: string;
13
13
  stepId: string;
14
14
  }, {
15
15
  id: string | null;
16
16
  params: Record<string, unknown>;
17
- command: string;
18
17
  deviceId: string;
18
+ command: string;
19
19
  stepId: string;
20
20
  }>;
21
21
  export declare const sMacroDto: z.ZodObject<{
@@ -33,14 +33,14 @@ export declare const sMacroDto: z.ZodObject<{
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  id: string | null;
35
35
  params: Record<string, unknown>;
36
- command: string;
37
36
  deviceId: string;
37
+ command: string;
38
38
  stepId: string;
39
39
  }, {
40
40
  id: string | null;
41
41
  params: Record<string, unknown>;
42
- command: string;
43
42
  deviceId: string;
43
+ command: string;
44
44
  stepId: string;
45
45
  }>, "many">;
46
46
  }, "strip", z.ZodTypeAny, {
@@ -48,8 +48,8 @@ export declare const sMacroDto: z.ZodObject<{
48
48
  items: {
49
49
  id: string | null;
50
50
  params: Record<string, unknown>;
51
- command: string;
52
51
  deviceId: string;
52
+ command: string;
53
53
  stepId: string;
54
54
  }[];
55
55
  displayName: string;
@@ -61,8 +61,8 @@ export declare const sMacroDto: z.ZodObject<{
61
61
  items: {
62
62
  id: string | null;
63
63
  params: Record<string, unknown>;
64
- command: string;
65
64
  deviceId: string;
65
+ command: string;
66
66
  stepId: string;
67
67
  }[];
68
68
  displayName: string;
@@ -85,22 +85,22 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  id: string | null;
87
87
  params: Record<string, unknown>;
88
- command: string;
89
88
  deviceId: string;
89
+ command: string;
90
90
  stepId: string;
91
91
  }, {
92
92
  id: string | null;
93
93
  params: Record<string, unknown>;
94
- command: string;
95
94
  deviceId: string;
95
+ command: string;
96
96
  stepId: string;
97
97
  }>, "many">;
98
98
  }, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
99
99
  items: {
100
100
  id: string | null;
101
101
  params: Record<string, unknown>;
102
- command: string;
103
102
  deviceId: string;
103
+ command: string;
104
104
  stepId: string;
105
105
  }[];
106
106
  displayName: string;
@@ -108,8 +108,8 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
108
108
  items: {
109
109
  id: string | null;
110
110
  params: Record<string, unknown>;
111
- command: string;
112
111
  deviceId: string;
112
+ command: string;
113
113
  stepId: string;
114
114
  }[];
115
115
  displayName: string;
@@ -124,14 +124,14 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  id: string | null;
126
126
  params: Record<string, unknown>;
127
- command: string;
128
127
  deviceId: string;
128
+ command: string;
129
129
  stepId: string;
130
130
  }, {
131
131
  id: string | null;
132
132
  params: Record<string, unknown>;
133
- command: string;
134
133
  deviceId: string;
134
+ command: string;
135
135
  stepId: string;
136
136
  }>, "many">>;
137
137
  displayName: z.ZodOptional<z.ZodString>;
@@ -139,8 +139,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
139
139
  items?: {
140
140
  id: string | null;
141
141
  params: Record<string, unknown>;
142
- command: string;
143
142
  deviceId: string;
143
+ command: string;
144
144
  stepId: string;
145
145
  }[] | undefined;
146
146
  displayName?: string | undefined;
@@ -148,8 +148,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
148
148
  items?: {
149
149
  id: string | null;
150
150
  params: Record<string, unknown>;
151
- command: string;
152
151
  deviceId: string;
152
+ command: string;
153
153
  stepId: string;
154
154
  }[] | undefined;
155
155
  displayName?: string | undefined;
@@ -34,23 +34,23 @@ export declare const sStateUpdate: z.ZodObject<{
34
34
  state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  state: {};
37
- deviceId: string;
38
37
  timestamp: number;
38
+ deviceId: string;
39
39
  }, {
40
40
  state: {};
41
- deviceId: string;
42
41
  timestamp: number;
42
+ deviceId: string;
43
43
  }>;
44
44
  export type StateUpdatePayload = z.infer<typeof sStateUpdate>;
45
45
  export declare const sStateUnavailable: z.ZodObject<{
46
46
  timestamp: z.ZodNumber;
47
47
  deviceId: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- deviceId: string;
50
49
  timestamp: number;
51
- }, {
52
50
  deviceId: string;
51
+ }, {
53
52
  timestamp: number;
53
+ deviceId: string;
54
54
  }>;
55
55
  export type StateUnavailablePayload = z.infer<typeof sStateUnavailable>;
56
56
  export declare const sStateUpdateError: z.ZodObject<{
@@ -59,12 +59,12 @@ export declare const sStateUpdateError: z.ZodObject<{
59
59
  error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  error: {};
62
- deviceId: string;
63
62
  timestamp: number;
63
+ deviceId: string;
64
64
  }, {
65
65
  error: {};
66
- deviceId: string;
67
66
  timestamp: number;
67
+ deviceId: string;
68
68
  }>;
69
69
  export type StateUpdateErrorPayload = z.infer<typeof sStateUpdateError>;
70
70
  export declare const sStateSubscribe: z.ZodObject<{
@@ -72,12 +72,12 @@ export declare const sStateSubscribe: z.ZodObject<{
72
72
  requestId: z.ZodString;
73
73
  deviceId: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- deviceId: string;
76
75
  timestamp: number;
76
+ deviceId: string;
77
77
  requestId: string;
78
78
  }, {
79
- deviceId: string;
80
79
  timestamp: number;
80
+ deviceId: string;
81
81
  requestId: string;
82
82
  }>;
83
83
  export type StateSubscribePayload = z.infer<typeof sStateSubscribe>;
@@ -86,12 +86,12 @@ export declare const sStateUnsubscribe: z.ZodObject<{
86
86
  requestId: z.ZodString;
87
87
  deviceId: z.ZodString;
88
88
  }, "strip", z.ZodTypeAny, {
89
- deviceId: string;
90
89
  timestamp: number;
90
+ deviceId: string;
91
91
  requestId: string;
92
92
  }, {
93
- deviceId: string;
94
93
  timestamp: number;
94
+ deviceId: string;
95
95
  requestId: string;
96
96
  }>;
97
97
  export type StateUnsubscribePayload = z.infer<typeof sStateUnsubscribe>;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
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/dist/view.d.ts CHANGED
@@ -655,18 +655,18 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
655
655
  name: string;
656
656
  id: string;
657
657
  order: number;
658
+ isDefault: boolean;
658
659
  createdOn: string;
659
660
  lastModifiedOn: string;
660
- isDefault: boolean;
661
661
  createdBy: string;
662
662
  isPublic: boolean;
663
663
  }, {
664
664
  name: string;
665
665
  id: string;
666
666
  order: number;
667
+ isDefault: boolean;
667
668
  createdOn: string;
668
669
  lastModifiedOn: string;
669
- isDefault: boolean;
670
670
  createdBy: string;
671
671
  isPublic: boolean;
672
672
  }>, z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
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",