@awarevue/api-types 1.0.103 → 1.0.105
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/device/any-device.d.ts +69 -0
- package/dist/device/any-device.js +14 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -2460,6 +2460,72 @@ export declare const sRemoveDevicePresetRequest: z.ZodObject<{
|
|
|
2460
2460
|
deviceId: string;
|
|
2461
2461
|
presetId: string;
|
|
2462
2462
|
}>;
|
|
2463
|
+
export declare const sEventVariantDescription: z.ZodObject<{
|
|
2464
|
+
name: z.ZodString;
|
|
2465
|
+
label: z.ZodString;
|
|
2466
|
+
}, "strip", z.ZodTypeAny, {
|
|
2467
|
+
name: string;
|
|
2468
|
+
label: string;
|
|
2469
|
+
}, {
|
|
2470
|
+
name: string;
|
|
2471
|
+
label: string;
|
|
2472
|
+
}>;
|
|
2473
|
+
export declare const sEventDescription: z.ZodObject<{
|
|
2474
|
+
kind: z.ZodString;
|
|
2475
|
+
label: z.ZodString;
|
|
2476
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2477
|
+
name: z.ZodString;
|
|
2478
|
+
label: z.ZodString;
|
|
2479
|
+
}, "strip", z.ZodTypeAny, {
|
|
2480
|
+
name: string;
|
|
2481
|
+
label: string;
|
|
2482
|
+
}, {
|
|
2483
|
+
name: string;
|
|
2484
|
+
label: string;
|
|
2485
|
+
}>, "many">>;
|
|
2486
|
+
}, "strip", z.ZodTypeAny, {
|
|
2487
|
+
label: string;
|
|
2488
|
+
kind: string;
|
|
2489
|
+
variants?: {
|
|
2490
|
+
name: string;
|
|
2491
|
+
label: string;
|
|
2492
|
+
}[] | undefined;
|
|
2493
|
+
}, {
|
|
2494
|
+
label: string;
|
|
2495
|
+
kind: string;
|
|
2496
|
+
variants?: {
|
|
2497
|
+
name: string;
|
|
2498
|
+
label: string;
|
|
2499
|
+
}[] | undefined;
|
|
2500
|
+
}>;
|
|
2501
|
+
export declare const sGetEventCatalogResponse: z.ZodArray<z.ZodObject<{
|
|
2502
|
+
kind: z.ZodString;
|
|
2503
|
+
label: z.ZodString;
|
|
2504
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2505
|
+
name: z.ZodString;
|
|
2506
|
+
label: z.ZodString;
|
|
2507
|
+
}, "strip", z.ZodTypeAny, {
|
|
2508
|
+
name: string;
|
|
2509
|
+
label: string;
|
|
2510
|
+
}, {
|
|
2511
|
+
name: string;
|
|
2512
|
+
label: string;
|
|
2513
|
+
}>, "many">>;
|
|
2514
|
+
}, "strip", z.ZodTypeAny, {
|
|
2515
|
+
label: string;
|
|
2516
|
+
kind: string;
|
|
2517
|
+
variants?: {
|
|
2518
|
+
name: string;
|
|
2519
|
+
label: string;
|
|
2520
|
+
}[] | undefined;
|
|
2521
|
+
}, {
|
|
2522
|
+
label: string;
|
|
2523
|
+
kind: string;
|
|
2524
|
+
variants?: {
|
|
2525
|
+
name: string;
|
|
2526
|
+
label: string;
|
|
2527
|
+
}[] | undefined;
|
|
2528
|
+
}>, "many">;
|
|
2463
2529
|
export declare const sSetUnsetRelationRequest: z.ZodObject<{
|
|
2464
2530
|
leftId: z.ZodString;
|
|
2465
2531
|
rightId: z.ZodString;
|
|
@@ -2501,4 +2567,7 @@ export type SetUnsetDeviceRelationRequest = z.infer<typeof sSetUnsetRelationRequ
|
|
|
2501
2567
|
export type DeviceSearchCriteria = {
|
|
2502
2568
|
type: DeviceType;
|
|
2503
2569
|
};
|
|
2570
|
+
export type EventDescription = z.infer<typeof sEventDescription>;
|
|
2571
|
+
export type EventVariantDescription = z.infer<typeof sEventVariantDescription>;
|
|
2572
|
+
export type GetEventCatalogResponse = z.infer<typeof sGetEventCatalogResponse>;
|
|
2504
2573
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sSetUnsetRelationRequest = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sDisplayDto = exports.sIntercomOperatorDto = exports.sAlarmDto = exports.sServerDto = exports.sPresenceTrackerDto = exports.sDeviceGatewayDto = exports.sPbxDto = exports.sIntercomTerminalDto = exports.sPanicButtonDto = exports.sMotionSensorDto = exports.sCameraLiftDto = exports.sIoBoardDto = exports.sReaderDto = exports.sDoorDto = exports.sCameraDto = exports.sDeviceDto = exports.sForeignDeviceInfo = exports.sDeviceMgmtInfo = exports.sPresetDto = exports.sProviderMetadata = exports.sAnyDeviceSpecs = exports.sDisplaySpecsWithType = exports.DEVICE_TYPES = void 0;
|
|
3
|
+
exports.sSetUnsetRelationRequest = exports.sGetEventCatalogResponse = exports.sEventDescription = exports.sEventVariantDescription = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sDisplayDto = exports.sIntercomOperatorDto = exports.sAlarmDto = exports.sServerDto = exports.sPresenceTrackerDto = exports.sDeviceGatewayDto = exports.sPbxDto = exports.sIntercomTerminalDto = exports.sPanicButtonDto = exports.sMotionSensorDto = exports.sCameraLiftDto = exports.sIoBoardDto = exports.sReaderDto = exports.sDoorDto = exports.sCameraDto = exports.sDeviceDto = exports.sForeignDeviceInfo = exports.sDeviceMgmtInfo = exports.sPresetDto = exports.sProviderMetadata = exports.sAnyDeviceSpecs = exports.sDisplaySpecsWithType = exports.DEVICE_TYPES = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const camera_1 = require("./camera");
|
|
6
6
|
const door_1 = require("./door");
|
|
@@ -189,4 +189,17 @@ exports.sRemoveDevicePresetRequest = zod_1.z.object({
|
|
|
189
189
|
deviceId: zod_1.z.string().nonempty(),
|
|
190
190
|
presetId: zod_1.z.string().nonempty(),
|
|
191
191
|
});
|
|
192
|
+
exports.sEventVariantDescription = zod_1.z.object({
|
|
193
|
+
name: zod_1.z.string().describe('The name of the variant'),
|
|
194
|
+
label: zod_1.z.string().describe('A human-readable label for the variant'),
|
|
195
|
+
});
|
|
196
|
+
exports.sEventDescription = zod_1.z.object({
|
|
197
|
+
kind: zod_1.z.string().describe('The kind of event'),
|
|
198
|
+
label: zod_1.z.string().describe('A human-readable label for the event'),
|
|
199
|
+
variants: zod_1.z
|
|
200
|
+
.array(exports.sEventVariantDescription)
|
|
201
|
+
.optional()
|
|
202
|
+
.describe('Possible variants derived from event data'),
|
|
203
|
+
});
|
|
204
|
+
exports.sGetEventCatalogResponse = zod_1.z.array(exports.sEventDescription);
|
|
192
205
|
exports.sSetUnsetRelationRequest = device_relation_1.sDeviceRelationDto;
|
package/dist/package.json
CHANGED