@awarevue/api-types 1.0.10 → 1.0.12
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.
|
@@ -1319,14 +1319,27 @@ export declare const sValidateChangeRq: z.ZodObject<{
|
|
|
1319
1319
|
linkExists: boolean;
|
|
1320
1320
|
})[];
|
|
1321
1321
|
}>;
|
|
1322
|
+
export declare const sChangeIssueCode: z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>;
|
|
1322
1323
|
export declare const sChangeIssue: z.ZodObject<{
|
|
1323
1324
|
objectId: z.ZodOptional<z.ZodString>;
|
|
1324
|
-
|
|
1325
|
+
objectKind: z.ZodOptional<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>>;
|
|
1326
|
+
code: z.ZodOptional<z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>>;
|
|
1327
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
1329
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1325
1330
|
}, "strip", z.ZodTypeAny, {
|
|
1326
|
-
|
|
1331
|
+
index?: number | undefined;
|
|
1332
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1333
|
+
message?: string | undefined;
|
|
1334
|
+
path?: string | undefined;
|
|
1335
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1327
1336
|
objectId?: string | undefined;
|
|
1328
1337
|
}, {
|
|
1329
|
-
|
|
1338
|
+
index?: number | undefined;
|
|
1339
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1340
|
+
message?: string | undefined;
|
|
1341
|
+
path?: string | undefined;
|
|
1342
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1330
1343
|
objectId?: string | undefined;
|
|
1331
1344
|
}>;
|
|
1332
1345
|
export declare const sValidateChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
@@ -1341,22 +1354,42 @@ export declare const sValidateChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
|
1341
1354
|
}>, z.ZodObject<{
|
|
1342
1355
|
issues: z.ZodArray<z.ZodObject<{
|
|
1343
1356
|
objectId: z.ZodOptional<z.ZodString>;
|
|
1344
|
-
|
|
1357
|
+
objectKind: z.ZodOptional<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>>;
|
|
1358
|
+
code: z.ZodOptional<z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>>;
|
|
1359
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1360
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
1361
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1345
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1346
|
-
|
|
1363
|
+
index?: number | undefined;
|
|
1364
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1365
|
+
message?: string | undefined;
|
|
1366
|
+
path?: string | undefined;
|
|
1367
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1347
1368
|
objectId?: string | undefined;
|
|
1348
1369
|
}, {
|
|
1349
|
-
|
|
1370
|
+
index?: number | undefined;
|
|
1371
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1372
|
+
message?: string | undefined;
|
|
1373
|
+
path?: string | undefined;
|
|
1374
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1350
1375
|
objectId?: string | undefined;
|
|
1351
1376
|
}>, "many">;
|
|
1352
1377
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1353
1378
|
issues: {
|
|
1354
|
-
|
|
1379
|
+
index?: number | undefined;
|
|
1380
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1381
|
+
message?: string | undefined;
|
|
1382
|
+
path?: string | undefined;
|
|
1383
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1355
1384
|
objectId?: string | undefined;
|
|
1356
1385
|
}[];
|
|
1357
1386
|
}, {
|
|
1358
1387
|
issues: {
|
|
1359
|
-
|
|
1388
|
+
index?: number | undefined;
|
|
1389
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1390
|
+
message?: string | undefined;
|
|
1391
|
+
path?: string | undefined;
|
|
1392
|
+
objectKind?: "person" | "zone" | "reader" | "access-rule" | "schedule" | undefined;
|
|
1360
1393
|
objectId?: string | undefined;
|
|
1361
1394
|
}[];
|
|
1362
1395
|
}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sRelationMerge = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
3
|
+
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sRelationMerge = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
4
4
|
const device_1 = require("../device");
|
|
5
5
|
const device_import_1 = require("../device-import");
|
|
6
6
|
const credential_1 = require("../access-control/credential");
|
|
@@ -227,10 +227,32 @@ exports.sValidateChangeRq = zod_1.z
|
|
|
227
227
|
mutations: zod_1.z.array(exports.sAccessMutation),
|
|
228
228
|
})
|
|
229
229
|
.describe('Request to validate access changes');
|
|
230
|
+
exports.sChangeIssueCode = zod_1.z.enum([
|
|
231
|
+
'BAD_REFERENCE',
|
|
232
|
+
'NOT_FOUND',
|
|
233
|
+
'NOT_UNIQUE',
|
|
234
|
+
'INVALID',
|
|
235
|
+
'NOT_SUPPORTED',
|
|
236
|
+
]);
|
|
230
237
|
exports.sChangeIssue = zod_1.z
|
|
231
238
|
.object({
|
|
232
|
-
objectId: zod_1.z.string().optional(),
|
|
233
|
-
|
|
239
|
+
objectId: zod_1.z.string().optional().describe('Object ID as in backend'),
|
|
240
|
+
objectKind: exports.sAccessObjectKind.optional(),
|
|
241
|
+
code: exports.sChangeIssueCode
|
|
242
|
+
.optional()
|
|
243
|
+
.describe('Issue code that describes the issue to UI agent(s) or bots'),
|
|
244
|
+
path: zod_1.z
|
|
245
|
+
.string()
|
|
246
|
+
.optional()
|
|
247
|
+
.describe('Path - inside object referenced by ObjectID, points to a field or a related object'),
|
|
248
|
+
index: zod_1.z
|
|
249
|
+
.number()
|
|
250
|
+
.optional()
|
|
251
|
+
.describe('Index ofa value in field pointed at by path'),
|
|
252
|
+
message: zod_1.z
|
|
253
|
+
.string()
|
|
254
|
+
.optional()
|
|
255
|
+
.describe('Message that describes the issue to user or the details of what went wrong'),
|
|
234
256
|
})
|
|
235
257
|
.describe('Access change issue description');
|
|
236
258
|
exports.sValidateChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('validate-change-rs'), zod_1.z.object({
|
package/dist/package.json
CHANGED