@awarevue/api-types 1.0.73 → 1.0.74

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.
@@ -106,10 +106,10 @@ const encodeComparison = (value) => {
106
106
  const createAlarmRuleBody = (eventKind, behavior, deviceType, eventCriteria, deviceId) => {
107
107
  let runIf = 'source.type == "' + deviceType + '"';
108
108
  if (deviceId) {
109
- runIf += ` && source.id == "${deviceId}"`;
109
+ runIf += ` and source.id == "${deviceId}"`;
110
110
  }
111
111
  for (const criterion of eventCriteria) {
112
- runIf += ` && event.${criterion.field} ${encodeComparison(criterion.value)}`;
112
+ runIf += ` and event.${criterion.field} ${encodeComparison(criterion.value)}`;
113
113
  }
114
114
  return {
115
115
  onEvent: eventKind,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
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.73",
3
+ "version": "1.0.74",
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",