@awarevue/agent-sdk 1.0.36 → 1.0.37

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.
@@ -76,7 +76,6 @@ const createValidator = (agent) => {
76
76
  ? (0, rxjs_1.of)(emptyMap)
77
77
  : agent.find$(context, 'zone', zoneIds.map((p) => p.ref)),
78
78
  ]).pipe((0, rxjs_1.mergeMap)(([persons, schedules, rules, zones]) => {
79
- var _a, _b;
80
79
  const issues = [];
81
80
  // check persons
82
81
  for (const personId of personIds) {
@@ -100,7 +99,7 @@ const createValidator = (agent) => {
100
99
  }
101
100
  // check rules
102
101
  for (const ruleId of ruleIds) {
103
- if (!((_a = rules['accessRule']) === null || _a === void 0 ? void 0 : _a[ruleId.ref])) {
102
+ if (!rules[ruleId.ref]) {
104
103
  issues.push({
105
104
  code: 'BAD_REFERENCE',
106
105
  objectId: ruleId.ref,
@@ -110,7 +109,7 @@ const createValidator = (agent) => {
110
109
  }
111
110
  // check zones
112
111
  for (const zoneId of zoneIds) {
113
- if (!((_b = zones['zone']) === null || _b === void 0 ? void 0 : _b[zoneId.ref])) {
112
+ if (!zones[zoneId.ref]) {
114
113
  issues.push({
115
114
  code: 'BAD_REFERENCE',
116
115
  objectId: zoneId.objectId,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^1.0.36",
30
+ "@awarevue/api-types": "^1.0.37",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^1.0.36",
30
+ "@awarevue/api-types": "^1.0.37",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"