@awarevue/api-types 2.0.30 → 2.0.31
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/api/commands/io-board.js +2 -1
- package/dist/api/events/io-board.js +2 -1
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +11 -0
- package/dist/primitives.js +10 -1
- package/package.json +1 -1
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ioBoardCommands = exports.sIoBoardSetOutputCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../../primitives");
|
|
5
6
|
// COMMANDS
|
|
6
7
|
exports.sIoBoardSetOutputCommand = zod_1.z.object({
|
|
7
8
|
command: zod_1.z.literal('io-board.set-output'),
|
|
8
9
|
params: zod_1.z.object({
|
|
9
|
-
output:
|
|
10
|
+
output: primitives_1.sIoOutputSlotId,
|
|
10
11
|
value: zod_1.z.boolean(),
|
|
11
12
|
}),
|
|
12
13
|
});
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ioBoardEventSchemaByKind = exports.sIoBoardInputChangedEvent = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../../primitives");
|
|
5
6
|
// EVENTS
|
|
6
7
|
exports.sIoBoardInputChangedEvent = zod_1.z.object({
|
|
7
8
|
kind: zod_1.z.literal('io-board-input-changed'),
|
|
8
|
-
inputName:
|
|
9
|
+
inputName: primitives_1.sIoInputSlotId,
|
|
9
10
|
value: zod_1.z.boolean(),
|
|
10
11
|
});
|
|
11
12
|
exports.ioBoardEventSchemaByKind = {
|
package/dist/package.json
CHANGED
package/dist/primitives.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P R I M I T I V E S
|
|
3
|
+
* These are the basic building blocks used throughout the API type definitions.
|
|
4
|
+
* Funactionally, product components compare schema attribute types to these primitives - by reference equality - to provide custom handling
|
|
5
|
+
* for common data types. We're not talking about int, string and that, we're talking about
|
|
6
|
+
* domain-specific types like DeviceId, PresetId, Duration, URL, etc.
|
|
7
|
+
*/
|
|
1
8
|
import { z } from 'zod';
|
|
2
9
|
export declare const sDeviceId: z.ZodString;
|
|
3
10
|
export declare const sPresetId: z.ZodString;
|
|
@@ -6,6 +13,10 @@ export declare const sPersonId: z.ZodString;
|
|
|
6
13
|
export declare const sZoneId: z.ZodString;
|
|
7
14
|
export declare const sMacroId: z.ZodString;
|
|
8
15
|
export declare const sWorldObjectId: z.ZodString;
|
|
16
|
+
export declare const sIoInputSlotId: z.ZodString;
|
|
17
|
+
export type IoInputSlotId = z.infer<typeof sIoInputSlotId>;
|
|
18
|
+
export declare const sIoOutputSlotId: z.ZodString;
|
|
19
|
+
export type IoOutputSlotId = z.infer<typeof sIoOutputSlotId>;
|
|
9
20
|
export declare const sDuration: z.ZodNumber;
|
|
10
21
|
export declare const sUrl: z.ZodString;
|
|
11
22
|
export declare const sFileResponse: z.ZodNullable<z.ZodObject<{
|
package/dist/primitives.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* P R I M I T I V E S
|
|
4
|
+
* These are the basic building blocks used throughout the API type definitions.
|
|
5
|
+
* Funactionally, product components compare schema attribute types to these primitives - by reference equality - to provide custom handling
|
|
6
|
+
* for common data types. We're not talking about int, string and that, we're talking about
|
|
7
|
+
* domain-specific types like DeviceId, PresetId, Duration, URL, etc.
|
|
8
|
+
*/
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sWorldObjectId = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
10
|
+
exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
4
11
|
const zod_1 = require("zod");
|
|
5
12
|
const device_1 = require("./objects/device");
|
|
6
13
|
exports.sDeviceId = zod_1.z.string().uuid().nonempty();
|
|
@@ -10,6 +17,8 @@ exports.sPersonId = zod_1.z.string().uuid().nonempty();
|
|
|
10
17
|
exports.sZoneId = zod_1.z.string().uuid().nonempty();
|
|
11
18
|
exports.sMacroId = zod_1.z.string().uuid().nonempty();
|
|
12
19
|
exports.sWorldObjectId = zod_1.z.string().nonempty();
|
|
20
|
+
exports.sIoInputSlotId = zod_1.z.string().nonempty();
|
|
21
|
+
exports.sIoOutputSlotId = zod_1.z.string().nonempty();
|
|
13
22
|
// general
|
|
14
23
|
exports.sDuration = zod_1.z.number().min(0).describe('Duration in milliseconds');
|
|
15
24
|
exports.sUrl = zod_1.z.string().url().describe('A valid URL');
|