@awarevue/api-types 2.0.24 → 2.0.25
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/_legacy/index.js +18 -2
- package/dist/_legacy/milestone.js +2 -1
- package/dist/_legacy/orchid.js +2 -1
- package/dist/alarm-automation.js +37 -26
- package/dist/api/agent-protocol/index.js +17 -1
- package/dist/api/agent-protocol/protocol.js +219 -212
- package/dist/api/commands/alarm.js +46 -43
- package/dist/api/commands/all.js +25 -22
- package/dist/api/commands/camera-lift.js +13 -10
- package/dist/api/commands/camera.js +65 -61
- package/dist/api/commands/display.js +27 -24
- package/dist/api/commands/door.js +21 -18
- package/dist/api/commands/index.js +28 -12
- package/dist/api/commands/intercom-terminal.js +2 -1
- package/dist/api/commands/io-board.js +11 -8
- package/dist/api/commands/nvr-exporter.js +20 -17
- package/dist/api/commands/pbx.js +13 -10
- package/dist/api/commands/presence-tracker.js +25 -22
- package/dist/api/commands/server.js +21 -18
- package/dist/api/error.js +93 -89
- package/dist/api/events/alarm.js +53 -50
- package/dist/api/events/all.js +57 -53
- package/dist/api/events/camera.js +68 -65
- package/dist/api/events/display.js +6 -3
- package/dist/api/events/door.js +60 -57
- package/dist/api/events/index.js +28 -12
- package/dist/api/events/intercom-terminal.js +16 -13
- package/dist/api/events/io-board.js +10 -7
- package/dist/api/events/nvr-exporter.js +14 -11
- package/dist/api/events/panic-button.js +8 -5
- package/dist/api/events/presence-tracker.js +29 -26
- package/dist/api/events/reader.js +11 -8
- package/dist/api/events/server.js +12 -9
- package/dist/api/index.js +25 -9
- package/dist/api/mqtt/index.js +17 -1
- package/dist/api/mqtt/payloads.js +15 -12
- package/dist/api/queries/all.js +23 -20
- package/dist/api/queries/camera.js +19 -16
- package/dist/api/queries/index.js +21 -5
- package/dist/api/queries/nvr-analytics-server.js +57 -54
- package/dist/api/queries/nvr-exporter.js +26 -23
- package/dist/api/queries/nvr-recorder.js +32 -29
- package/dist/api/rest/access-rule.js +14 -8
- package/dist/api/rest/agreement.js +6 -3
- package/dist/api/rest/alarm.js +2 -1
- package/dist/api/rest/api-keys.js +11 -8
- package/dist/api/rest/app.js +11 -8
- package/dist/api/rest/auth.js +12 -9
- package/dist/api/rest/automation.js +13 -10
- package/dist/api/rest/aware-config.js +2 -1
- package/dist/api/rest/bookmarks.js +17 -14
- package/dist/api/rest/cast.js +11 -5
- package/dist/api/rest/custom-field.js +6 -3
- package/dist/api/rest/device-event.js +2 -1
- package/dist/api/rest/device-group.js +19 -13
- package/dist/api/rest/file.js +2 -1
- package/dist/api/rest/index.js +50 -34
- package/dist/api/rest/io-device.js +21 -14
- package/dist/api/rest/layout.js +23 -17
- package/dist/api/rest/macros.js +6 -3
- package/dist/api/rest/media.js +55 -52
- package/dist/api/rest/module-config.js +2 -1
- package/dist/api/rest/notifications.js +11 -8
- package/dist/api/rest/person-agreement.js +11 -5
- package/dist/api/rest/person-presence.js +26 -23
- package/dist/api/rest/person-type.js +6 -3
- package/dist/api/rest/person.js +11 -5
- package/dist/api/rest/query.js +13 -8
- package/dist/api/rest/schedule.js +11 -8
- package/dist/api/rest/security-level.js +6 -3
- package/dist/api/rest/template.js +13 -10
- package/dist/api/rest/token-conversion.js +6 -3
- package/dist/api/rest/user.js +31 -28
- package/dist/api/rest/view.js +20 -14
- package/dist/api/rest/webrtc-playback.js +12 -6
- package/dist/api/rest/zone.js +14 -8
- package/dist/api/state/index.js +2 -1
- package/dist/api/ws/device-communication.js +46 -38
- package/dist/api/ws/index.js +21 -5
- package/dist/api/ws/notifications.js +17 -10
- package/dist/api/ws/progress.js +37 -30
- package/dist/api/ws/web-rtc-signaling.js +72 -65
- package/dist/api/ws/web-socket.js +5 -2
- package/dist/index.js +22 -6
- package/dist/objects/access-rule.js +32 -29
- package/dist/objects/agent-metadata.js +33 -30
- package/dist/objects/agreement.js +10 -7
- package/dist/objects/all.js +7 -4
- package/dist/objects/api-key.js +10 -7
- package/dist/objects/automation-rule.js +28 -25
- package/dist/objects/bookmark.js +14 -11
- package/dist/objects/credential.js +15 -9
- package/dist/objects/custom-field.js +11 -8
- package/dist/objects/device/alarm.js +6 -3
- package/dist/objects/device/any-device.js +206 -203
- package/dist/objects/device/camera-lift.js +6 -3
- package/dist/objects/device/camera.js +30 -27
- package/dist/objects/device/device-gateway.js +4 -1
- package/dist/objects/device/device-import.js +26 -23
- package/dist/objects/device/device-relation.js +16 -13
- package/dist/objects/device/display.js +6 -3
- package/dist/objects/device/door.js +10 -7
- package/dist/objects/device/index.js +38 -22
- package/dist/objects/device/intercom-operator.js +4 -1
- package/dist/objects/device/intercom-terminal.js +20 -17
- package/dist/objects/device/io-board.js +8 -5
- package/dist/objects/device/motion-sensor.js +6 -3
- package/dist/objects/device/nvr-analytics-server.js +8 -5
- package/dist/objects/device/nvr-exporter.js +9 -6
- package/dist/objects/device/nvr-recorder.js +8 -5
- package/dist/objects/device/panic-button.js +6 -3
- package/dist/objects/device/pbx.js +7 -4
- package/dist/objects/device/presence-tracker.js +4 -1
- package/dist/objects/device/reader.js +4 -1
- package/dist/objects/device/server.js +4 -1
- package/dist/objects/device/system.js +7 -4
- package/dist/objects/device-group.js +11 -8
- package/dist/objects/index.js +44 -28
- package/dist/objects/layout.js +23 -20
- package/dist/objects/macro.js +20 -17
- package/dist/objects/module-config.js +2 -1
- package/dist/objects/notification.js +15 -12
- package/dist/objects/person-agreement.js +10 -7
- package/dist/objects/person-presence.js +32 -29
- package/dist/objects/person-type.js +17 -11
- package/dist/objects/person.js +42 -39
- package/dist/objects/role.js +11 -8
- package/dist/objects/schedule.js +45 -39
- package/dist/objects/security-level.js +13 -10
- package/dist/objects/template.js +10 -7
- package/dist/objects/token-conversion.js +10 -7
- package/dist/objects/user.js +14 -11
- package/dist/objects/view.js +53 -50
- package/dist/objects/world-object.js +8 -5
- package/dist/objects/zone.js +16 -13
- package/dist/package.json +1 -1
- package/dist/permissions.js +149 -146
- package/dist/primitives.js +30 -27
- package/package.json +1 -1
|
@@ -1,77 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sSetUnsetRelationRequest = exports.sGetEventCatalogResponse = exports.sEventDescription = exports.sEventVariantDescription = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sSystemDeviceDto = exports.sNvrAnalyticsServerDto = exports.sNvrExporterDto = exports.sRecorderDto = 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.sSystemDeviceSpecsWithType = exports.sNvrAnalyticsServerSpecsWithType = exports.sNvrExporterSpecsWithType = exports.sRecorderSpecsWithType = exports.sDisplaySpecsWithType = exports.DEVICE_TYPES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const camera_1 = require("./camera");
|
|
6
|
+
const door_1 = require("./door");
|
|
7
|
+
const io_board_1 = require("./io-board");
|
|
8
|
+
const camera_lift_1 = require("./camera-lift");
|
|
9
|
+
const motion_sensor_1 = require("./motion-sensor");
|
|
10
|
+
const panic_button_1 = require("./panic-button");
|
|
11
|
+
const intercom_operator_1 = require("./intercom-operator");
|
|
12
|
+
const intercom_terminal_1 = require("./intercom-terminal");
|
|
13
|
+
const pbx_1 = require("./pbx");
|
|
14
|
+
const server_1 = require("./server");
|
|
15
|
+
const alarm_1 = require("./alarm");
|
|
16
|
+
const device_relation_1 = require("./device-relation");
|
|
17
|
+
const device_gateway_1 = require("./device-gateway");
|
|
18
|
+
const presence_tracker_1 = require("./presence-tracker");
|
|
19
|
+
const display_1 = require("./display");
|
|
20
|
+
const nvr_recorder_1 = require("./nvr-recorder");
|
|
21
|
+
const nvr_exporter_1 = require("./nvr-exporter");
|
|
22
|
+
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
23
|
+
const system_1 = require("./system");
|
|
24
|
+
exports.DEVICE_TYPES = [
|
|
25
|
+
alarm_1.ALARM,
|
|
26
|
+
server_1.SERVER,
|
|
27
|
+
camera_1.CAMERA,
|
|
28
|
+
door_1.DOOR,
|
|
26
29
|
'reader',
|
|
27
|
-
IO_BOARD,
|
|
28
|
-
CAMERA_LIFT,
|
|
29
|
-
MOTION_SENSOR,
|
|
30
|
-
PANIC_BUTTON,
|
|
31
|
-
INTERCOM_OPERATOR,
|
|
32
|
-
INTERCOM_TERMINAL,
|
|
33
|
-
PBX,
|
|
34
|
-
DEVICE_GATEWAY,
|
|
35
|
-
PRESENCE_TRACKER,
|
|
36
|
-
DISPLAY,
|
|
37
|
-
NVR_RECORDER,
|
|
38
|
-
NVR_EXPORTER,
|
|
39
|
-
NVR_ANALYTICS_SERVER,
|
|
40
|
-
SYSTEM,
|
|
30
|
+
io_board_1.IO_BOARD,
|
|
31
|
+
camera_lift_1.CAMERA_LIFT,
|
|
32
|
+
motion_sensor_1.MOTION_SENSOR,
|
|
33
|
+
panic_button_1.PANIC_BUTTON,
|
|
34
|
+
intercom_operator_1.INTERCOM_OPERATOR,
|
|
35
|
+
intercom_terminal_1.INTERCOM_TERMINAL,
|
|
36
|
+
pbx_1.PBX,
|
|
37
|
+
device_gateway_1.DEVICE_GATEWAY,
|
|
38
|
+
presence_tracker_1.PRESENCE_TRACKER,
|
|
39
|
+
display_1.DISPLAY,
|
|
40
|
+
nvr_recorder_1.NVR_RECORDER,
|
|
41
|
+
nvr_exporter_1.NVR_EXPORTER,
|
|
42
|
+
nvr_analytics_server_1.NVR_ANALYTICS_SERVER,
|
|
43
|
+
system_1.SYSTEM,
|
|
41
44
|
];
|
|
42
|
-
const sDeviceType = z.enum(DEVICE_TYPES);
|
|
43
|
-
const sAlarmSpecsWithType = sAlarmSpecs.merge(z.object({ type: z.literal(ALARM) }));
|
|
44
|
-
const sCameraSpecsWithType = sCameraSpecs.merge(z.object({ type: z.literal(CAMERA) }));
|
|
45
|
-
const sDoorSpecsWithType = sDoorSpecs.merge(z.object({ type: z.literal(DOOR) }));
|
|
46
|
-
const sIoBoardSpecsWithType = sIoBoardSpecs.merge(z.object({ type: z.literal(IO_BOARD) }));
|
|
47
|
-
const sCameraLiftSpecsWithType = sCameraLiftSpecs.merge(z.object({ type: z.literal(CAMERA_LIFT) }));
|
|
48
|
-
const sMotionSensorSpecsWithType = sMotionSensorSpecs.merge(z.object({ type: z.literal(MOTION_SENSOR) }));
|
|
49
|
-
const sPanicButtonSpecsWithType = sPanicButtonSpecs.merge(z.object({ type: z.literal(PANIC_BUTTON) }));
|
|
50
|
-
const sIntercomTerminalSpecsWithType = sIntercomTerminalSpecs.merge(z.object({ type: z.literal(INTERCOM_TERMINAL) }));
|
|
51
|
-
const sPbxSpecsWithType = sPbxSpecs.merge(z.object({ type: z.literal(PBX) }));
|
|
52
|
-
const sServerSpecsWithType = z.object({ type: z.literal(SERVER) });
|
|
53
|
-
const sIntercomOperatorSpecsWithType = z.object({
|
|
54
|
-
type: z.literal(INTERCOM_OPERATOR),
|
|
45
|
+
const sDeviceType = zod_1.z.enum(exports.DEVICE_TYPES);
|
|
46
|
+
const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(alarm_1.ALARM) }));
|
|
47
|
+
const sCameraSpecsWithType = camera_1.sCameraSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(camera_1.CAMERA) }));
|
|
48
|
+
const sDoorSpecsWithType = door_1.sDoorSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(door_1.DOOR) }));
|
|
49
|
+
const sIoBoardSpecsWithType = io_board_1.sIoBoardSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(io_board_1.IO_BOARD) }));
|
|
50
|
+
const sCameraLiftSpecsWithType = camera_lift_1.sCameraLiftSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(camera_lift_1.CAMERA_LIFT) }));
|
|
51
|
+
const sMotionSensorSpecsWithType = motion_sensor_1.sMotionSensorSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(motion_sensor_1.MOTION_SENSOR) }));
|
|
52
|
+
const sPanicButtonSpecsWithType = panic_button_1.sPanicButtonSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(panic_button_1.PANIC_BUTTON) }));
|
|
53
|
+
const sIntercomTerminalSpecsWithType = intercom_terminal_1.sIntercomTerminalSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(intercom_terminal_1.INTERCOM_TERMINAL) }));
|
|
54
|
+
const sPbxSpecsWithType = pbx_1.sPbxSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(pbx_1.PBX) }));
|
|
55
|
+
const sServerSpecsWithType = zod_1.z.object({ type: zod_1.z.literal(server_1.SERVER) });
|
|
56
|
+
const sIntercomOperatorSpecsWithType = zod_1.z.object({
|
|
57
|
+
type: zod_1.z.literal(intercom_operator_1.INTERCOM_OPERATOR),
|
|
55
58
|
});
|
|
56
|
-
const sDeviceGatewaySpecsWithType = z.object({
|
|
57
|
-
type: z.literal(DEVICE_GATEWAY),
|
|
59
|
+
const sDeviceGatewaySpecsWithType = zod_1.z.object({
|
|
60
|
+
type: zod_1.z.literal(device_gateway_1.DEVICE_GATEWAY),
|
|
58
61
|
});
|
|
59
|
-
const sPresenceTrackerSpecsWithType = z.object({
|
|
60
|
-
type: z.literal(PRESENCE_TRACKER),
|
|
62
|
+
const sPresenceTrackerSpecsWithType = zod_1.z.object({
|
|
63
|
+
type: zod_1.z.literal(presence_tracker_1.PRESENCE_TRACKER),
|
|
61
64
|
});
|
|
62
|
-
const sReaderSpecsWithType = z.object({ type: z.literal('reader') });
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
type: z.literal(NVR_EXPORTER),
|
|
65
|
+
const sReaderSpecsWithType = zod_1.z.object({ type: zod_1.z.literal('reader') });
|
|
66
|
+
exports.sDisplaySpecsWithType = zod_1.z.object({ type: zod_1.z.literal(display_1.DISPLAY) });
|
|
67
|
+
exports.sRecorderSpecsWithType = nvr_recorder_1.sRecorderSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(nvr_recorder_1.NVR_RECORDER) }));
|
|
68
|
+
exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.merge(zod_1.z.object({
|
|
69
|
+
type: zod_1.z.literal(nvr_exporter_1.NVR_EXPORTER),
|
|
67
70
|
}));
|
|
68
|
-
|
|
69
|
-
type: z.literal(NVR_ANALYTICS_SERVER),
|
|
71
|
+
exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.merge(zod_1.z.object({
|
|
72
|
+
type: zod_1.z.literal(nvr_analytics_server_1.NVR_ANALYTICS_SERVER),
|
|
70
73
|
}));
|
|
71
|
-
|
|
72
|
-
.object({ type: z.literal(SYSTEM) })
|
|
73
|
-
.merge(sSystemDeviceSpecs);
|
|
74
|
-
|
|
74
|
+
exports.sSystemDeviceSpecsWithType = zod_1.z
|
|
75
|
+
.object({ type: zod_1.z.literal(system_1.SYSTEM) })
|
|
76
|
+
.merge(system_1.sSystemDeviceSpecs);
|
|
77
|
+
exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
75
78
|
sAlarmSpecsWithType,
|
|
76
79
|
sCameraSpecsWithType,
|
|
77
80
|
sDoorSpecsWithType,
|
|
@@ -86,154 +89,154 @@ export const sAnyDeviceSpecs = z.discriminatedUnion('type', [
|
|
|
86
89
|
sDeviceGatewaySpecsWithType,
|
|
87
90
|
sPresenceTrackerSpecsWithType,
|
|
88
91
|
sReaderSpecsWithType,
|
|
89
|
-
sDisplaySpecsWithType,
|
|
90
|
-
sRecorderSpecsWithType,
|
|
91
|
-
sNvrExporterSpecsWithType,
|
|
92
|
-
sNvrAnalyticsServerSpecsWithType,
|
|
93
|
-
sSystemDeviceSpecsWithType,
|
|
92
|
+
exports.sDisplaySpecsWithType,
|
|
93
|
+
exports.sRecorderSpecsWithType,
|
|
94
|
+
exports.sNvrExporterSpecsWithType,
|
|
95
|
+
exports.sNvrAnalyticsServerSpecsWithType,
|
|
96
|
+
exports.sSystemDeviceSpecsWithType,
|
|
94
97
|
]);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
id: z.string(),
|
|
98
|
-
name: z.string(),
|
|
99
|
-
params: z.unknown(),
|
|
100
|
-
isDefault: z.boolean(),
|
|
101
|
-
assignedRef: z.string().nullable(),
|
|
102
|
-
createdOn: z.string().datetime(),
|
|
103
|
-
lastModifiedOn: z.string().datetime(),
|
|
98
|
+
exports.sProviderMetadata = zod_1.z.object({}).catchall(zod_1.z.unknown());
|
|
99
|
+
exports.sPresetDto = zod_1.z.object({
|
|
100
|
+
id: zod_1.z.string(),
|
|
101
|
+
name: zod_1.z.string(),
|
|
102
|
+
params: zod_1.z.unknown(),
|
|
103
|
+
isDefault: zod_1.z.boolean(),
|
|
104
|
+
assignedRef: zod_1.z.string().nullable(),
|
|
105
|
+
createdOn: zod_1.z.string().datetime(),
|
|
106
|
+
lastModifiedOn: zod_1.z.string().datetime(),
|
|
104
107
|
});
|
|
105
|
-
|
|
106
|
-
id: z.string(),
|
|
107
|
-
presets: z.array(sPresetDto),
|
|
108
|
-
providerAssignedName: z.string().nonempty(),
|
|
109
|
-
notes: z.string().nullable(),
|
|
110
|
-
tags: z.array(z.string()),
|
|
111
|
-
relations: z.array(sDeviceRelationSide),
|
|
112
|
-
groups: z.array(z.string()),
|
|
113
|
-
enabled: z.boolean(),
|
|
114
|
-
createdOn: z.string().datetime(),
|
|
115
|
-
lastModifiedOn: z.string().datetime(),
|
|
108
|
+
exports.sDeviceMgmtInfo = zod_1.z.object({
|
|
109
|
+
id: zod_1.z.string(),
|
|
110
|
+
presets: zod_1.z.array(exports.sPresetDto),
|
|
111
|
+
providerAssignedName: zod_1.z.string().nonempty(),
|
|
112
|
+
notes: zod_1.z.string().nullable(),
|
|
113
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
114
|
+
relations: zod_1.z.array(device_relation_1.sDeviceRelationSide),
|
|
115
|
+
groups: zod_1.z.array(zod_1.z.string()),
|
|
116
|
+
enabled: zod_1.z.boolean(),
|
|
117
|
+
createdOn: zod_1.z.string().datetime(),
|
|
118
|
+
lastModifiedOn: zod_1.z.string().datetime(),
|
|
116
119
|
});
|
|
117
|
-
|
|
118
|
-
name: z.string(),
|
|
119
|
-
foreignRef: z.string(),
|
|
120
|
-
provider: z.string(),
|
|
121
|
-
providerMetadata: sProviderMetadata,
|
|
120
|
+
exports.sForeignDeviceInfo = zod_1.z.object({
|
|
121
|
+
name: zod_1.z.string(),
|
|
122
|
+
foreignRef: zod_1.z.string(),
|
|
123
|
+
provider: zod_1.z.string(),
|
|
124
|
+
providerMetadata: exports.sProviderMetadata,
|
|
122
125
|
});
|
|
123
|
-
|
|
124
|
-
.and(sDeviceMgmtInfo)
|
|
125
|
-
.and(sForeignDeviceInfo);
|
|
126
|
-
|
|
127
|
-
.and(sDeviceMgmtInfo)
|
|
128
|
-
.and(sForeignDeviceInfo);
|
|
129
|
-
|
|
130
|
-
.and(sDeviceMgmtInfo)
|
|
131
|
-
.and(sForeignDeviceInfo);
|
|
132
|
-
|
|
133
|
-
.and(sDeviceMgmtInfo)
|
|
134
|
-
.and(sForeignDeviceInfo);
|
|
135
|
-
|
|
136
|
-
.and(sDeviceMgmtInfo)
|
|
137
|
-
.and(sForeignDeviceInfo);
|
|
138
|
-
|
|
139
|
-
.and(sDeviceMgmtInfo)
|
|
140
|
-
.and(sForeignDeviceInfo);
|
|
141
|
-
|
|
142
|
-
.and(sDeviceMgmtInfo)
|
|
143
|
-
.and(sForeignDeviceInfo);
|
|
144
|
-
|
|
145
|
-
.and(sDeviceMgmtInfo)
|
|
146
|
-
.and(sForeignDeviceInfo);
|
|
147
|
-
|
|
148
|
-
.and(sDeviceMgmtInfo)
|
|
149
|
-
.and(sForeignDeviceInfo);
|
|
150
|
-
|
|
151
|
-
.and(sDeviceMgmtInfo)
|
|
152
|
-
.and(sForeignDeviceInfo);
|
|
153
|
-
|
|
154
|
-
.and(sDeviceMgmtInfo)
|
|
155
|
-
.and(sForeignDeviceInfo);
|
|
156
|
-
|
|
157
|
-
.and(sDeviceMgmtInfo)
|
|
158
|
-
.and(sForeignDeviceInfo);
|
|
159
|
-
|
|
160
|
-
.and(sDeviceMgmtInfo)
|
|
161
|
-
.and(sForeignDeviceInfo);
|
|
162
|
-
|
|
163
|
-
.and(sDeviceMgmtInfo)
|
|
164
|
-
.and(sForeignDeviceInfo);
|
|
165
|
-
|
|
166
|
-
.and(sDeviceMgmtInfo)
|
|
167
|
-
.and(sForeignDeviceInfo);
|
|
168
|
-
|
|
169
|
-
.and(sDeviceMgmtInfo)
|
|
170
|
-
.and(sForeignDeviceInfo);
|
|
171
|
-
|
|
172
|
-
.and(sDeviceMgmtInfo)
|
|
173
|
-
.and(sForeignDeviceInfo);
|
|
174
|
-
|
|
175
|
-
.and(sDeviceMgmtInfo)
|
|
176
|
-
.and(sForeignDeviceInfo);
|
|
177
|
-
|
|
178
|
-
.and(sDeviceMgmtInfo)
|
|
179
|
-
.and(sForeignDeviceInfo);
|
|
180
|
-
|
|
181
|
-
.and(sDeviceMgmtInfo)
|
|
182
|
-
.and(sForeignDeviceInfo);
|
|
183
|
-
|
|
184
|
-
name: z.string().nonempty(),
|
|
185
|
-
foreignRef: z.string().nonempty(),
|
|
186
|
-
notes: z.string().nullable(),
|
|
187
|
-
provider: z.string().nonempty(),
|
|
188
|
-
providerMetadata: sProviderMetadata,
|
|
189
|
-
tags: z.array(z.string().nonempty()),
|
|
190
|
-
relations: z.array(sDeviceRelationSide),
|
|
126
|
+
exports.sDeviceDto = exports.sAnyDeviceSpecs
|
|
127
|
+
.and(exports.sDeviceMgmtInfo)
|
|
128
|
+
.and(exports.sForeignDeviceInfo);
|
|
129
|
+
exports.sCameraDto = sCameraSpecsWithType
|
|
130
|
+
.and(exports.sDeviceMgmtInfo)
|
|
131
|
+
.and(exports.sForeignDeviceInfo);
|
|
132
|
+
exports.sDoorDto = sDoorSpecsWithType
|
|
133
|
+
.and(exports.sDeviceMgmtInfo)
|
|
134
|
+
.and(exports.sForeignDeviceInfo);
|
|
135
|
+
exports.sReaderDto = sReaderSpecsWithType
|
|
136
|
+
.and(exports.sDeviceMgmtInfo)
|
|
137
|
+
.and(exports.sForeignDeviceInfo);
|
|
138
|
+
exports.sIoBoardDto = sIoBoardSpecsWithType
|
|
139
|
+
.and(exports.sDeviceMgmtInfo)
|
|
140
|
+
.and(exports.sForeignDeviceInfo);
|
|
141
|
+
exports.sCameraLiftDto = sCameraLiftSpecsWithType
|
|
142
|
+
.and(exports.sDeviceMgmtInfo)
|
|
143
|
+
.and(exports.sForeignDeviceInfo);
|
|
144
|
+
exports.sMotionSensorDto = sMotionSensorSpecsWithType
|
|
145
|
+
.and(exports.sDeviceMgmtInfo)
|
|
146
|
+
.and(exports.sForeignDeviceInfo);
|
|
147
|
+
exports.sPanicButtonDto = sPanicButtonSpecsWithType
|
|
148
|
+
.and(exports.sDeviceMgmtInfo)
|
|
149
|
+
.and(exports.sForeignDeviceInfo);
|
|
150
|
+
exports.sIntercomTerminalDto = sIntercomTerminalSpecsWithType
|
|
151
|
+
.and(exports.sDeviceMgmtInfo)
|
|
152
|
+
.and(exports.sForeignDeviceInfo);
|
|
153
|
+
exports.sPbxDto = sPbxSpecsWithType
|
|
154
|
+
.and(exports.sDeviceMgmtInfo)
|
|
155
|
+
.and(exports.sForeignDeviceInfo);
|
|
156
|
+
exports.sDeviceGatewayDto = sDeviceGatewaySpecsWithType
|
|
157
|
+
.and(exports.sDeviceMgmtInfo)
|
|
158
|
+
.and(exports.sForeignDeviceInfo);
|
|
159
|
+
exports.sPresenceTrackerDto = sPresenceTrackerSpecsWithType
|
|
160
|
+
.and(exports.sDeviceMgmtInfo)
|
|
161
|
+
.and(exports.sForeignDeviceInfo);
|
|
162
|
+
exports.sServerDto = sServerSpecsWithType
|
|
163
|
+
.and(exports.sDeviceMgmtInfo)
|
|
164
|
+
.and(exports.sForeignDeviceInfo);
|
|
165
|
+
exports.sAlarmDto = sAlarmSpecsWithType
|
|
166
|
+
.and(exports.sDeviceMgmtInfo)
|
|
167
|
+
.and(exports.sForeignDeviceInfo);
|
|
168
|
+
exports.sIntercomOperatorDto = sIntercomOperatorSpecsWithType
|
|
169
|
+
.and(exports.sDeviceMgmtInfo)
|
|
170
|
+
.and(exports.sForeignDeviceInfo);
|
|
171
|
+
exports.sDisplayDto = exports.sDisplaySpecsWithType
|
|
172
|
+
.and(exports.sDeviceMgmtInfo)
|
|
173
|
+
.and(exports.sForeignDeviceInfo);
|
|
174
|
+
exports.sRecorderDto = exports.sRecorderSpecsWithType
|
|
175
|
+
.and(exports.sDeviceMgmtInfo)
|
|
176
|
+
.and(exports.sForeignDeviceInfo);
|
|
177
|
+
exports.sNvrExporterDto = exports.sNvrExporterSpecsWithType
|
|
178
|
+
.and(exports.sDeviceMgmtInfo)
|
|
179
|
+
.and(exports.sForeignDeviceInfo);
|
|
180
|
+
exports.sNvrAnalyticsServerDto = exports.sNvrAnalyticsServerSpecsWithType
|
|
181
|
+
.and(exports.sDeviceMgmtInfo)
|
|
182
|
+
.and(exports.sForeignDeviceInfo);
|
|
183
|
+
exports.sSystemDeviceDto = exports.sSystemDeviceSpecsWithType
|
|
184
|
+
.and(exports.sDeviceMgmtInfo)
|
|
185
|
+
.and(exports.sForeignDeviceInfo);
|
|
186
|
+
exports.sAddDeviceRequest = zod_1.z.object({
|
|
187
|
+
name: zod_1.z.string().nonempty(),
|
|
188
|
+
foreignRef: zod_1.z.string().nonempty(),
|
|
189
|
+
notes: zod_1.z.string().nullable(),
|
|
190
|
+
provider: zod_1.z.string().nonempty(),
|
|
191
|
+
providerMetadata: exports.sProviderMetadata,
|
|
192
|
+
tags: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
193
|
+
relations: zod_1.z.array(device_relation_1.sDeviceRelationSide),
|
|
191
194
|
type: sDeviceType,
|
|
192
|
-
specs: z.object({}).catchall(z.unknown()).optional(),
|
|
195
|
+
specs: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
|
|
193
196
|
});
|
|
194
|
-
|
|
195
|
-
id: z.string().nonempty(),
|
|
196
|
-
name: z.string().optional(),
|
|
197
|
-
notes: z.string().nullable().optional(),
|
|
198
|
-
providerMetadata: z.object({}).catchall(z.unknown()).optional(),
|
|
199
|
-
specs: z.object({}).catchall(z.unknown()).optional(),
|
|
200
|
-
tags: z.array(z.string()).optional(),
|
|
201
|
-
relations: z.array(sDeviceRelationSide).optional(),
|
|
202
|
-
enabled: z.boolean().optional(),
|
|
197
|
+
exports.sUpdateDeviceRequest = zod_1.z.object({
|
|
198
|
+
id: zod_1.z.string().nonempty(),
|
|
199
|
+
name: zod_1.z.string().optional(),
|
|
200
|
+
notes: zod_1.z.string().nullable().optional(),
|
|
201
|
+
providerMetadata: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
|
|
202
|
+
specs: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
|
|
203
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
204
|
+
relations: zod_1.z.array(device_relation_1.sDeviceRelationSide).optional(),
|
|
205
|
+
enabled: zod_1.z.boolean().optional(),
|
|
203
206
|
});
|
|
204
|
-
|
|
205
|
-
id: z.string(),
|
|
206
|
-
specs: z.object({}).catchall(z.unknown()),
|
|
207
|
+
exports.sOverrideDeviceSpecsRequest = zod_1.z.object({
|
|
208
|
+
id: zod_1.z.string(),
|
|
209
|
+
specs: zod_1.z.object({}).catchall(zod_1.z.unknown()),
|
|
207
210
|
});
|
|
208
|
-
|
|
209
|
-
name: z.string().nonempty(),
|
|
210
|
-
params: z.object({}).catchall(z.unknown()),
|
|
211
|
-
assignedRef: z.string().nullable(),
|
|
212
|
-
isDefault: z.boolean(),
|
|
213
|
-
deviceId: z.string().nonempty(),
|
|
211
|
+
exports.sAddDevicePresetRequest = zod_1.z.object({
|
|
212
|
+
name: zod_1.z.string().nonempty(),
|
|
213
|
+
params: zod_1.z.object({}).catchall(zod_1.z.unknown()),
|
|
214
|
+
assignedRef: zod_1.z.string().nullable(),
|
|
215
|
+
isDefault: zod_1.z.boolean(),
|
|
216
|
+
deviceId: zod_1.z.string().nonempty(),
|
|
214
217
|
});
|
|
215
|
-
|
|
216
|
-
name: z.string().optional(),
|
|
217
|
-
isDefault: z.boolean().optional(),
|
|
218
|
-
assignedRef: z.string().nullable().optional(),
|
|
219
|
-
deviceId: z.string().nonempty(),
|
|
220
|
-
presetId: z.string().nonempty(),
|
|
218
|
+
exports.sUpdateDevicePresetRequest = zod_1.z.object({
|
|
219
|
+
name: zod_1.z.string().optional(),
|
|
220
|
+
isDefault: zod_1.z.boolean().optional(),
|
|
221
|
+
assignedRef: zod_1.z.string().nullable().optional(),
|
|
222
|
+
deviceId: zod_1.z.string().nonempty(),
|
|
223
|
+
presetId: zod_1.z.string().nonempty(),
|
|
221
224
|
});
|
|
222
|
-
|
|
223
|
-
deviceId: z.string().nonempty(),
|
|
224
|
-
presetId: z.string().nonempty(),
|
|
225
|
+
exports.sRemoveDevicePresetRequest = zod_1.z.object({
|
|
226
|
+
deviceId: zod_1.z.string().nonempty(),
|
|
227
|
+
presetId: zod_1.z.string().nonempty(),
|
|
225
228
|
});
|
|
226
|
-
|
|
227
|
-
name: z.string().describe('The name of the variant'),
|
|
228
|
-
label: z.string().describe('A human-readable label for the variant'),
|
|
229
|
+
exports.sEventVariantDescription = zod_1.z.object({
|
|
230
|
+
name: zod_1.z.string().describe('The name of the variant'),
|
|
231
|
+
label: zod_1.z.string().describe('A human-readable label for the variant'),
|
|
229
232
|
});
|
|
230
|
-
|
|
231
|
-
kind: z.string().describe('The kind of event'),
|
|
232
|
-
label: z.string().describe('A human-readable label for the event'),
|
|
233
|
-
variants: z
|
|
234
|
-
.array(sEventVariantDescription)
|
|
233
|
+
exports.sEventDescription = zod_1.z.object({
|
|
234
|
+
kind: zod_1.z.string().describe('The kind of event'),
|
|
235
|
+
label: zod_1.z.string().describe('A human-readable label for the event'),
|
|
236
|
+
variants: zod_1.z
|
|
237
|
+
.array(exports.sEventVariantDescription)
|
|
235
238
|
.optional()
|
|
236
239
|
.describe('Possible variants derived from event data'),
|
|
237
240
|
});
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
exports.sGetEventCatalogResponse = zod_1.z.array(exports.sEventDescription);
|
|
242
|
+
exports.sSetUnsetRelationRequest = device_relation_1.sDeviceRelationDto;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sCameraLiftSpecs = exports.CAMERA_LIFT = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CAMERA_LIFT = 'camera-lift';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sCameraLiftSpecs = zod_1.z.object({});
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sCameraSpecs = exports.sStreamInfo = exports.sWebRtcPlaybackSource = exports.CAMERA = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CAMERA = 'camera';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sWebRtcPlaybackSource = zod_1.z
|
|
5
8
|
.object({
|
|
6
|
-
kind: z.string(),
|
|
9
|
+
kind: zod_1.z.string(),
|
|
7
10
|
})
|
|
8
|
-
.and(z.record(z.unknown()));
|
|
9
|
-
|
|
10
|
-
id: z.string().nonempty(),
|
|
11
|
-
displayName: z.string().nonempty(),
|
|
12
|
-
externalPlayerUrl: z.string().nullable(),
|
|
13
|
-
rtspUrl: z.string().nonempty(),
|
|
11
|
+
.and(zod_1.z.record(zod_1.z.unknown()));
|
|
12
|
+
exports.sStreamInfo = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().nonempty(),
|
|
14
|
+
displayName: zod_1.z.string().nonempty(),
|
|
15
|
+
externalPlayerUrl: zod_1.z.string().nullable(),
|
|
16
|
+
rtspUrl: zod_1.z.string().nonempty(),
|
|
14
17
|
});
|
|
15
|
-
|
|
16
|
-
lensType: z.enum(['flat', 'fisheye']),
|
|
17
|
-
mountPoint: z.enum(['wall', 'ceiling', 'floor']),
|
|
18
|
-
ptzCapable: z.boolean(),
|
|
19
|
-
ptzPanSpeed: z.number(),
|
|
20
|
-
ptzTiltSpeed: z.number(),
|
|
21
|
-
ptzZoomSpeed: z.number(),
|
|
22
|
-
panMin: z.number().min(-1).max(1),
|
|
23
|
-
panMax: z.number().min(-1).max(1),
|
|
24
|
-
tiltMin: z.number().min(-1).max(1),
|
|
25
|
-
tiltMax: z.number().min(-1).max(1),
|
|
26
|
-
zoomMin: z.number().min(0).max(1),
|
|
27
|
-
zoomMax: z.number().min(0).max(1),
|
|
28
|
-
recordingCapable: z.boolean(),
|
|
29
|
-
webrtcPlaybackSource: sWebRtcPlaybackSource.nullable(),
|
|
30
|
-
streams: z.array(sStreamInfo),
|
|
31
|
-
defaultStreamId: z.string().nonempty(),
|
|
18
|
+
exports.sCameraSpecs = zod_1.z.object({
|
|
19
|
+
lensType: zod_1.z.enum(['flat', 'fisheye']),
|
|
20
|
+
mountPoint: zod_1.z.enum(['wall', 'ceiling', 'floor']),
|
|
21
|
+
ptzCapable: zod_1.z.boolean(),
|
|
22
|
+
ptzPanSpeed: zod_1.z.number(),
|
|
23
|
+
ptzTiltSpeed: zod_1.z.number(),
|
|
24
|
+
ptzZoomSpeed: zod_1.z.number(),
|
|
25
|
+
panMin: zod_1.z.number().min(-1).max(1),
|
|
26
|
+
panMax: zod_1.z.number().min(-1).max(1),
|
|
27
|
+
tiltMin: zod_1.z.number().min(-1).max(1),
|
|
28
|
+
tiltMax: zod_1.z.number().min(-1).max(1),
|
|
29
|
+
zoomMin: zod_1.z.number().min(0).max(1),
|
|
30
|
+
zoomMax: zod_1.z.number().min(0).max(1),
|
|
31
|
+
recordingCapable: zod_1.z.boolean(),
|
|
32
|
+
webrtcPlaybackSource: exports.sWebRtcPlaybackSource.nullable(),
|
|
33
|
+
streams: zod_1.z.array(exports.sStreamInfo),
|
|
34
|
+
defaultStreamId: zod_1.z.string().nonempty(),
|
|
32
35
|
});
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDeviceGetChangesDto = exports.sDeviceDiscoveryDto = exports.sDuplicateDevice = exports.sImportedDevice = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const any_device_1 = require("./any-device");
|
|
6
|
+
const device_relation_1 = require("./device-relation");
|
|
7
|
+
exports.sImportedDevice = zod_1.z
|
|
5
8
|
.object({
|
|
6
|
-
tags: z.array(z.string()).optional(),
|
|
9
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
7
10
|
})
|
|
8
|
-
.and(sForeignDeviceInfo)
|
|
9
|
-
.and(sAnyDeviceSpecs);
|
|
10
|
-
|
|
11
|
-
name: z.string(),
|
|
12
|
-
refs: z.array(z.string()),
|
|
11
|
+
.and(any_device_1.sForeignDeviceInfo)
|
|
12
|
+
.and(any_device_1.sAnyDeviceSpecs);
|
|
13
|
+
exports.sDuplicateDevice = zod_1.z.object({
|
|
14
|
+
name: zod_1.z.string(),
|
|
15
|
+
refs: zod_1.z.array(zod_1.z.string()),
|
|
13
16
|
});
|
|
14
|
-
|
|
15
|
-
devices: z.array(sImportedDevice),
|
|
16
|
-
relations: z.array(sDeviceRelationDto.and(z.object({ provider: z.string() }))),
|
|
17
|
+
exports.sDeviceDiscoveryDto = zod_1.z.object({
|
|
18
|
+
devices: zod_1.z.array(exports.sImportedDevice),
|
|
19
|
+
relations: zod_1.z.array(device_relation_1.sDeviceRelationDto.and(zod_1.z.object({ provider: zod_1.z.string() }))),
|
|
17
20
|
});
|
|
18
|
-
|
|
19
|
-
added: z.array(sImportedDevice),
|
|
20
|
-
updated: z.array(z
|
|
21
|
+
exports.sDeviceGetChangesDto = zod_1.z.object({
|
|
22
|
+
added: zod_1.z.array(exports.sImportedDevice),
|
|
23
|
+
updated: zod_1.z.array(zod_1.z
|
|
21
24
|
.object({
|
|
22
|
-
id: z.string(),
|
|
23
|
-
provider: z.string(),
|
|
24
|
-
foreignRef: z.string(),
|
|
25
|
+
id: zod_1.z.string(),
|
|
26
|
+
provider: zod_1.z.string(),
|
|
27
|
+
foreignRef: zod_1.z.string(),
|
|
25
28
|
})
|
|
26
|
-
.catchall(z.unknown())),
|
|
27
|
-
removed: z.array(sDeviceDto),
|
|
28
|
-
relations: z.array(sDeviceRelationDto),
|
|
29
|
-
duplicates: z.array(sDuplicateDevice),
|
|
29
|
+
.catchall(zod_1.z.unknown())),
|
|
30
|
+
removed: zod_1.z.array(any_device_1.sDeviceDto),
|
|
31
|
+
relations: zod_1.z.array(device_relation_1.sDeviceRelationDto),
|
|
32
|
+
duplicates: zod_1.z.array(exports.sDuplicateDevice),
|
|
30
33
|
});
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sDeviceRelationKind = zod_1.z.enum([
|
|
3
6
|
'attachedTo',
|
|
4
7
|
'parent',
|
|
5
8
|
'child',
|
|
@@ -20,20 +23,20 @@ export const sDeviceRelationKind = z.enum([
|
|
|
20
23
|
'reads',
|
|
21
24
|
'isReadBy',
|
|
22
25
|
]);
|
|
23
|
-
|
|
26
|
+
exports.sDeviceRelationDto = zod_1.z
|
|
24
27
|
.object({
|
|
25
|
-
leftId: z.string(),
|
|
26
|
-
rightId: z.string(),
|
|
27
|
-
kind: sDeviceRelationKind,
|
|
28
|
+
leftId: zod_1.z.string(),
|
|
29
|
+
rightId: zod_1.z.string(),
|
|
30
|
+
kind: exports.sDeviceRelationKind,
|
|
28
31
|
})
|
|
29
|
-
.catchall(z.unknown());
|
|
30
|
-
|
|
32
|
+
.catchall(zod_1.z.unknown());
|
|
33
|
+
exports.sDeviceRelationSide = zod_1.z
|
|
31
34
|
.object({
|
|
32
|
-
id: z.string(),
|
|
33
|
-
kind: sDeviceRelationKind,
|
|
35
|
+
id: zod_1.z.string(),
|
|
36
|
+
kind: exports.sDeviceRelationKind,
|
|
34
37
|
})
|
|
35
|
-
.catchall(z.unknown());
|
|
36
|
-
|
|
38
|
+
.catchall(zod_1.z.unknown());
|
|
39
|
+
exports.relationKinds = {
|
|
37
40
|
attachedTo: 'attachedTo',
|
|
38
41
|
parent: 'parent',
|
|
39
42
|
child: 'child',
|
|
@@ -54,7 +57,7 @@ export const relationKinds = {
|
|
|
54
57
|
reads: 'reads',
|
|
55
58
|
isReadBy: 'isReadBy',
|
|
56
59
|
};
|
|
57
|
-
|
|
60
|
+
exports.inverseRelationKinds = {
|
|
58
61
|
attachedTo: 'attachedTo',
|
|
59
62
|
parent: 'child',
|
|
60
63
|
child: 'parent',
|