@awarevue/agent-sdk 2.0.86 → 2.0.88
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/agent-app.js +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/default-validator.d.ts +2 -2
- package/dist/default-validator.js +2 -2
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/dist/agent-app.js
CHANGED
package/dist/agent.d.ts
CHANGED
|
@@ -27,6 +27,6 @@ export interface Agent {
|
|
|
27
27
|
validateAccessChange$?: (context: AccessChangeContext, change: AccessValidateChangeRq) => Observable<AccessChangeIssue[]>;
|
|
28
28
|
applyAccessChange$?: (context: AccessChangeContext, change: AccessApplyChange) => Observable<AccessRefMap>;
|
|
29
29
|
find$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectIds: string[]) => Observable<Record<string, Record<string, unknown>>>;
|
|
30
|
-
describeObject$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectRef: string) => Observable<ExternalObjectProps[K]
|
|
30
|
+
describeObject$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectRef: string) => Observable<K extends keyof ExternalObjectProps ? ExternalObjectProps[K] : null>;
|
|
31
31
|
pushFile?: (context: Context, req: PushFile) => Observable<boolean>;
|
|
32
32
|
}
|
|
@@ -2,9 +2,9 @@ import { AccessValidateChangeRq } from '@awarevue/api-types';
|
|
|
2
2
|
import { Agent, Context } from './agent';
|
|
3
3
|
export declare const createValidator: <T extends Agent>(agent: T) => (context: Context, change: AccessValidateChangeRq) => import("rxjs").Observable<readonly [{
|
|
4
4
|
objectId?: string | undefined;
|
|
5
|
-
objectKind?: "accessRule" | "schedule" | "person" | "zone" | undefined;
|
|
5
|
+
objectKind?: "accessRule" | "schedule" | "person" | "zone" | "device" | undefined;
|
|
6
6
|
code?: "BAD_REFERENCE" | "NOT_SUPPORTED" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | undefined;
|
|
7
7
|
path?: string | undefined;
|
|
8
8
|
index?: number | undefined;
|
|
9
9
|
message?: string | undefined;
|
|
10
|
-
}[], Record<"accessRule" | "schedule" | "person" | "zone", Record<string, Record<string, unknown>>>]>;
|
|
10
|
+
}[], Record<"accessRule" | "schedule" | "person" | "zone" | "device", Record<string, Record<string, unknown>>>]>;
|
|
@@ -28,8 +28,8 @@ const createValidator = (agent) => {
|
|
|
28
28
|
]
|
|
29
29
|
: [])),
|
|
30
30
|
];
|
|
31
|
-
const notFoundPersonIds = personIds.filter((p) => !req.refMap['person'][p] || !req.refMap['person'][p].length);
|
|
32
|
-
const notFoundScheduleIds = scheduleIds.filter((s) => !req.refMap['schedule'][s] || !req.refMap['schedule'][s].length);
|
|
31
|
+
const notFoundPersonIds = personIds.filter((p) => { var _a; return !((_a = req.refMap['person']) === null || _a === void 0 ? void 0 : _a[p]) || !req.refMap['person'][p].length; });
|
|
32
|
+
const notFoundScheduleIds = scheduleIds.filter((s) => { var _a; return !((_a = req.refMap['schedule']) === null || _a === void 0 ? void 0 : _a[s]) || !req.refMap['schedule'][s].length; });
|
|
33
33
|
return [
|
|
34
34
|
...notFoundPersonIds.map((id) => ({
|
|
35
35
|
code: 'NOT_FOUND',
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.88",
|
|
8
8
|
"description": "SDK for building Agent implementations that speak the agent protocol.",
|
|
9
9
|
"author": "Yaser Awajan",
|
|
10
10
|
"license": "MIT",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"lint:fix": "yarn lint --fix"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@awarevue/api-types": "2.0.
|
|
34
|
+
"@awarevue/api-types": "2.0.88",
|
|
35
35
|
"rxjs": "^7.8.2",
|
|
36
36
|
"ws": "^8",
|
|
37
37
|
"zod": "4.4.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@awarevue/api-types": "2.0.
|
|
40
|
+
"@awarevue/api-types": "2.0.88",
|
|
41
41
|
"@types/node": "^20.12.7",
|
|
42
42
|
"@types/ws": "^8.18.1",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.88",
|
|
8
8
|
"description": "SDK for building Agent implementations that speak the agent protocol.",
|
|
9
9
|
"author": "Yaser Awajan",
|
|
10
10
|
"license": "MIT",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"lint:fix": "yarn lint --fix"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@awarevue/api-types": "2.0.
|
|
34
|
+
"@awarevue/api-types": "2.0.88",
|
|
35
35
|
"rxjs": "^7.8.2",
|
|
36
36
|
"ws": "^8",
|
|
37
37
|
"zod": "4.4.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@awarevue/api-types": "2.0.
|
|
40
|
+
"@awarevue/api-types": "2.0.88",
|
|
41
41
|
"@types/node": "^20.12.7",
|
|
42
42
|
"@types/ws": "^8.18.1",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^8.31.1",
|